Skip to content
This repository has been archived by the owner on Mar 23, 2018. It is now read-only.

Commit

Permalink
fix(prh): upgrade [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Sep 6, 2017
1 parent 220e10c commit 7323ed9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"@types/node": "^8.0.24",
"cross-env": "^5.0.5",
"mocha": "^3.5.0",
"proofdict": "^1.2.0",
"proofdict": "^1.2.1",
"ts-node": "^3.3.0",
"typescript": "^2.4.2"
"typescript": "^2.5.2"
},
"dependencies": {
"prh": "5.3.0"
"prh": "^5.4.3"
}
}
5 changes: 3 additions & 2 deletions src/proofdict-tester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ export class ProofdictTester {
}

match(text: string): Promise<ProofdictTesterResult> {
// TODO: prh type is wrong?
const changeSet = this.prhEngine.makeChangeSet(<any> null, text);
// pass empty string for working in browser
// https://github.com/prh/prh/issues/29
const changeSet = this.prhEngine.makeChangeSet("", text);
const sortedDiffs = changeSet.diffs.sort(function (a, b) {
return a.index - b.index;
});
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -306,17 +306,17 @@ path-is-absolute@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"

prh@5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/prh/-/prh-5.3.0.tgz#d9b97467188623d3d3084aca8b076004251485b0"
prh@^5.4.3:
version "5.4.3"
resolved "https://registry.yarnpkg.com/prh/-/prh-5.4.3.tgz#d3864a6de2f35c6603e33c700106dce01c22876d"
dependencies:
commandpost "^1.2.1"
diff "^3.3.0"
js-yaml "^3.9.1"

proofdict@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/proofdict/-/proofdict-1.2.0.tgz#6a5b52f561cfc204b6dd1d876f93b93b5863b18e"
proofdict@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/proofdict/-/proofdict-1.2.1.tgz#f6815831b0ab69e81698f3901bc2073ce62b5f1d"
dependencies:
fetch-ponyfill "^4.1.0"

Expand Down Expand Up @@ -390,9 +390,9 @@ tsconfig@^6.0.0:
strip-bom "^3.0.0"
strip-json-comments "^2.0.0"

typescript@^2.4.2:
version "2.5.1"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.5.1.tgz#ce7cc93ada3de19475cc9d17e3adea7aee1832aa"
typescript@^2.5.2:
version "2.5.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.5.2.tgz#038a95f7d9bbb420b1bf35ba31d4c5c1dd3ffe34"

user-home@^1.1.1:
version "1.1.1"
Expand Down

0 comments on commit 7323ed9

Please sign in to comment.