diff --git a/package.json b/package.json index 814dfa6..8d8446f 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test.js b/test.js index fbf5b59..b662202 100644 --- a/test.js +++ b/test.js @@ -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 @@ -251,7 +251,7 @@ test('nested child circular reference in toJSON', function (assert) { } } } - var o = { + const o = { a, bar: a } @@ -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 ) @@ -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) )