Skip to content
This repository was archived by the owner on Jul 12, 2021. It is now read-only.

Commit 8804d34

Browse files
committedMar 25, 2020
Use word-count fork
Fork is used until PRs get merged into the `word-count` upstream: - TypeScript type definitions - Fix for word counting with Cyrillic script (fixes #63)
1 parent 81f77e6 commit 8804d34

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"remark-stringify": "^7.0.3",
7979
"semver": "^7.1.3",
8080
"strip-markdown": "^3.1.0",
81-
"word-count": "^0.2.2"
81+
"word-count": "github:samuelmeuli/word-count"
8282
},
8383
"devDependencies": {
8484
"@babel/core": "^7.8.4",

‎src/renderer/d.ts

-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,3 @@ declare module "*.svg" {
1111
declare module "markdown-draft-js";
1212

1313
declare module "strip-markdown";
14-
15-
// TODO: Remove once https://github.com/yuehu/word-count/pull/5 is merged
16-
declare module "word-count" {
17-
export default function count(data: string): number;
18-
}

‎yarn.lock

+2-3
Original file line numberDiff line numberDiff line change
@@ -11029,10 +11029,9 @@ widest-line@^3.1.0:
1102911029
dependencies:
1103011030
string-width "^4.0.0"
1103111031

11032-
word-count@^0.2.2:
11032+
"word-count@github:samuelmeuli/word-count":
1103311033
version "0.2.2"
11034-
resolved "https://registry.yarnpkg.com/word-count/-/word-count-0.2.2.tgz#699192fca6829fe936d41cb0d95db9248c570451"
11035-
integrity sha1-aZGS/KaCn+k21Byw2V25JIxXBFE=
11034+
resolved "https://codeload.github.com/samuelmeuli/word-count/tar.gz/10765b790119ff0506db73f186b01a908e146a12"
1103611035

1103711036
word-wrap@~1.2.3:
1103811037
version "1.2.3"

0 commit comments

Comments
 (0)
This repository has been archived.