Skip to content

Commit

Permalink
chore: update dependencies and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BridgeAR committed Sep 17, 2022
1 parent f001e74 commit 3aa9f8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@
"license": "MIT",
"typings": "index.d.ts",
"devDependencies": {
"@types/json-stable-stringify": "^1.0.32",
"@types/json-stable-stringify": "^1.0.34",
"@types/node": "^16.11.1",
"benchmark": "^2.1.4",
"clone": "^2.1.2",
"fast-json-stable-stringify": "^2.1.0",
"fast-safe-stringify": "^2.0.7",
"fast-safe-stringify": "^2.1.1",
"fast-stable-stringify": "^1.0.0",
"faster-stable-stringify": "^1.0.0",
"fastest-stable-stringify": "^2.0.2",
"json-stable-stringify": "^1.0.1",
"json-stringify-deterministic": "^1.0.1",
"json-stringify-deterministic": "^1.0.7",
"json-stringify-safe": "^5.0.1",
"standard": "^15.0.0",
"standard": "^16.0.4",
"tap": "^15.0.9",
"typescript": "^4.4.3"
"typescript": "^4.8.3"
},
"repository": {
"type": "git",
Expand Down
8 changes: 3 additions & 5 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ test('null property', function (assert) {
})

test('nested child circular reference in toJSON', function (assert) {
var circle = { some: 'data' }
const circle = { some: 'data' }
circle.circle = circle
var a = {
const a = {
b: {
toJSON: function () {
// @ts-expect-error
Expand All @@ -251,7 +251,7 @@ test('nested child circular reference in toJSON', function (assert) {
}
}
}
var o = {
const o = {
a,
bar: a
}
Expand Down Expand Up @@ -736,7 +736,6 @@ test('indent properly; regression test for issue #16', function (assert) {
indentedJSONArrayEmpty
)
assert.equal(
// @ts-ignore
stringify(o, (k, v) => v, 2),
indentedJSONReplacer
)
Expand All @@ -755,7 +754,6 @@ test('indent properly; regression test for issue #16', function (assert) {
indentedJSON.replace(circularIdentifier, circularReplacement)
)
assert.equal(
// @ts-ignore
stringify(o, (k, v) => v, 2),
indentedJSONReplacer.replace(circularIdentifier, circularReplacement)
)
Expand Down

0 comments on commit 3aa9f8f

Please sign in to comment.