Skip to content

Commit 534bb29

Browse files
committed
replace json-stable-stringify
1 parent 83094f9 commit 534bb29

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@types/cross-spawn": "^6.0.0",
6060
"@types/fs-extra": "^9.0.0",
6161
"@types/jest": "^24.0.11",
62-
"@types/json-stable-stringify": "^1.0.34",
62+
"@types/json-stable-stringify": "^1.0.36",
6363
"@types/minimist": "^1.2.2",
6464
"@types/node": "^12.0.0",
6565
"@types/rimraf": "^2.0.2",
@@ -77,12 +77,12 @@
7777
"typescript": "^4.2.2"
7878
},
7979
"dependencies": {
80+
"@nolyfill/json-stable-stringify": "^1.0.30",
8081
"@yarnpkg/lockfile": "^1.1.0",
8182
"ci-info": "^3.7.0",
8283
"cross-spawn": "^7.0.3",
8384
"find-yarn-workspace-root": "^2.0.0",
8485
"fs-extra": "^9.0.0",
85-
"json-stable-stringify": "^1.0.2",
8686
"klaw-sync": "^6.0.0",
8787
"minimist": "^1.2.6",
8888
"open": "^7.4.2",

src/mod.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module "@nolyfill/json-stable-stringify" {
2+
import m from "json-stable-stringify"
3+
export = m
4+
}

src/stateFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { existsSync, readFileSync, unlinkSync, writeFileSync } from "fs"
22
import { join } from "path"
33
import { PackageDetails } from "./PackageDetails"
4-
import stringify from "json-stable-stringify"
4+
import stringify from "@nolyfill/json-stable-stringify"
55
import { hashFile } from "./hash"
66
import picocolors from "picocolors"
77
export interface PatchState {

yarn.lock

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,19 @@ dependencies:
548548
"@nodelib/fs.scandir" "2.1.4"
549549
fastq "^1.6.0"
550550

551-
"@samverschueren/stream-to-observable@^0.3.0", "@samverschueren/stream-to-observable@^0.3.1":
551+
"@nolyfill/json-stable-stringify@^1.0.30":
552+
version "1.0.30"
553+
resolved "https://registry.yarnpkg.com/@nolyfill/json-stable-stringify/-/json-stable-stringify-1.0.30.tgz#edff60da41cee9dd7f81028c527acf7f7b91df64"
554+
integrity sha512-o1iEMo6ad7T2cKxZTzAb3u+Q3/H21SSsKFf5oAVn7PjmT7MJ0Ek2SeVcEdgVUmLmj31/jKo7U5zJWcTaC10Qow==
555+
556+
"@samverschueren/stream-to-observable@^0.3.0":
557+
version "0.3.0"
558+
resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f"
559+
integrity sha512-MI4Xx6LHs4Webyvi6EbspgyAb4D2Q2VtnCQ1blOJcoLS6mVa8lNN2rkIy1CVxfTUpoyIbCTkXES1rLXztFD1lg==
560+
dependencies:
561+
any-observable "^0.3.0"
562+
563+
"@samverschueren/stream-to-observable@^0.3.1":
552564
version "0.3.1"
553565
resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.1.tgz#a21117b19ee9be70c379ec1877537ef2e1c63301"
554566
integrity sha512-c/qwwcHyafOQuVQJj0IlBjf5yYgBI7YPJ77k4fOJYesb41jio65eaJODRUmfYKhTOFBrIZ66kgvGPlNbjuoRdQ==
@@ -681,10 +693,10 @@ integrity sha512-2kLuPC5FDnWIDvaJBzsGTBQaBbnDweznicvK7UGYzlIJP4RJR2a4A/ByLUXEyEg
681693
dependencies:
682694
"@types/jest-diff" "*"
683695

684-
"@types/json-stable-stringify@^1.0.34":
685-
version "1.0.34"
686-
resolved "https://registry.yarnpkg.com/@types/json-stable-stringify/-/json-stable-stringify-1.0.34.tgz#c0fb25e4d957e0ee2e497c1f553d7f8bb668fd75"
687-
integrity sha512-s2cfwagOQAS8o06TcwKfr9Wx11dNGbH2E9vJz1cqV+a/LOyhWNLUNd6JSRYNzvB4d29UuJX2M0Dj9vE1T8fRXw==
696+
"@types/json-stable-stringify@^1.0.36":
697+
version "1.0.36"
698+
resolved "https://registry.yarnpkg.com/@types/json-stable-stringify/-/json-stable-stringify-1.0.36.tgz#fe6c6001a69ff8160a772da08779448a333c7ddd"
699+
integrity sha512-b7bq23s4fgBB76n34m2b3RBf6M369B0Z9uRR8aHTMd8kZISRkmDEpPD8hhpYvDFzr3bJCPES96cm3Q6qRNDbQw==
688700

689701
"@types/keyv@*", "@types/keyv@^3.1.1":
690702
version "3.1.1"
@@ -3814,13 +3826,6 @@ [email protected]:
38143826
version "0.2.3"
38153827
resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
38163828

3817-
json-stable-stringify@^1.0.2:
3818-
version "1.0.2"
3819-
resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.2.tgz#e06f23128e0bbe342dc996ed5a19e28b57b580e0"
3820-
integrity sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g==
3821-
dependencies:
3822-
jsonify "^0.0.1"
3823-
38243829
json-stringify-safe@~5.0.1:
38253830
version "5.0.1"
38263831
resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
@@ -3848,11 +3853,6 @@ universalify "^2.0.0"
38483853
optionalDependencies:
38493854
graceful-fs "^4.1.6"
38503855

3851-
jsonify@^0.0.1:
3852-
version "0.0.1"
3853-
resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.1.tgz#2aa3111dae3d34a0f151c63f3a45d995d9420978"
3854-
integrity sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==
3855-
38563856
jsprim@^1.2.2:
38573857
version "1.4.0"
38583858
resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.0.tgz#a3b87e40298d8c380552d8cc7628a0bb95a22918"

0 commit comments

Comments
 (0)