Skip to content

Commit

Permalink
Use word-count fork
Browse files Browse the repository at this point in the history
Fork is used until PRs get merged into the `word-count` upstream:

- TypeScript type definitions
- Fix for word counting with Cyrillic script (fixes samuelmeuli#63)
  • Loading branch information
samuelmeuli committed Mar 25, 2020
1 parent 81f77e6 commit 8804d34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"remark-stringify": "^7.0.3",
"semver": "^7.1.3",
"strip-markdown": "^3.1.0",
"word-count": "^0.2.2"
"word-count": "github:samuelmeuli/word-count"
},
"devDependencies": {
"@babel/core": "^7.8.4",
Expand Down
5 changes: 0 additions & 5 deletions src/renderer/d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,3 @@ declare module "*.svg" {
declare module "markdown-draft-js";

declare module "strip-markdown";

// TODO: Remove once https://github.com/yuehu/word-count/pull/5 is merged
declare module "word-count" {
export default function count(data: string): number;
}
5 changes: 2 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11029,10 +11029,9 @@ widest-line@^3.1.0:
dependencies:
string-width "^4.0.0"

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

word-wrap@~1.2.3:
version "1.2.3"
Expand Down

0 comments on commit 8804d34

Please sign in to comment.