From 03a8caac0cb849ec7079c05a0fb47c60ca6cb9e9 Mon Sep 17 00:00:00 2001 From: lucas cordeiro da Silva Date: Sun, 22 Jan 2023 18:23:47 -0300 Subject: [PATCH] chore: upgrade json-difference (#37) --- examples/package.json | 2 +- examples/src/stress.ts | 3 +-- examples/yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/examples/package.json b/examples/package.json index f658983..ffc3bfd 100644 --- a/examples/package.json +++ b/examples/package.json @@ -11,7 +11,7 @@ "author": "lukascivil", "license": "MIT", "dependencies": { - "json-difference": "^1.9.0" + "json-difference": "^1.9.1" }, "devDependencies": { "@types/node": "^12.12.12", diff --git a/examples/src/stress.ts b/examples/src/stress.ts index 363bae1..efe69a5 100644 --- a/examples/src/stress.ts +++ b/examples/src/stress.ts @@ -1,8 +1,7 @@ // Packages -import { getDiff } from 'json-difference' +import { getDiff, Delta } from 'json-difference' import * as fs from 'fs' import * as path from 'path' -import { Delta } from 'json-difference/dist/models/jsondiffer.model' const oldJson = JSON.parse(fs.readFileSync(path.join(__dirname, './assets/oldJson.json'), 'utf8')) const newJson = JSON.parse(fs.readFileSync(path.join(__dirname, './assets/newJson.json'), 'utf8')) diff --git a/examples/yarn.lock b/examples/yarn.lock index 45f8bec..2a72fda 100644 --- a/examples/yarn.lock +++ b/examples/yarn.lock @@ -136,10 +136,10 @@ isarray@~1.0.0: resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== -json-difference@^1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/json-difference/-/json-difference-1.9.0.tgz#735d510e8bfcf6654fc74d3c7f84d14792cac5e9" - integrity sha512-HSo5RX/b+dfMWNbUzSnZ8a71tN9So4TinbDOOr6qAK9iCn6NstLhbMrorhMpmYBw7jrGJqrQI94m8LNqvkmO4Q== +json-difference@^1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/json-difference/-/json-difference-1.9.1.tgz#648aa806da2e3c4b7db24c34f6b04963b542fec2" + integrity sha512-5c2xaHKMkTq6T9KfCh4r3PVHQObpOyKMZzrySCAoYPBYJ0VqKDUW7dioddKLNS9z4Jey7yyMNSTH3bNF95Z1Nw== minimatch@^3.0.3, minimatch@^3.1.1: version "3.1.2"