Skip to content

Commit

Permalink
chore: adjust export (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukascivil authored Jan 22, 2023
1 parent 44dae26 commit 9dc182c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "lukascivil",
"license": "MIT",
"dependencies": {
"json-difference": "^1.6.0"
"json-difference": "^1.9.0"
},
"devDependencies": {
"@types/node": "^12.12.12",
Expand Down
5 changes: 4 additions & 1 deletion examples/src/stress.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
// Packages
import { getDiff } 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'))

const start: any = new Date()

getDiff(oldJson, newJson)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const delta: Delta = getDiff(oldJson, newJson)

const end: any = new Date()
const diffTime = end - start
Expand Down
8 changes: 4 additions & 4 deletions examples/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/json-difference/-/json-difference-1.6.0.tgz#f265eee6361b73cc93a78e1a771d1f58c2c50c26"
integrity sha512-qqRNgHQEP86NopFiwwkQ55OB+Vs1BjLPMVmk+LMSDGl+bj3de7PP+eLD+ALUUC1aPyV3ukJiIgTJhmYr05PdPw==
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==

minimatch@^3.0.3, minimatch@^3.1.1:
version "3.1.2"
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "json-difference",
"version": "1.9.0",
"version": "1.9.1",
"description": "json diff lib",
"license": "MIT",
"main": "dist/core",
"types": "dist/core/index.d.ts",
"main": "dist",
"types": "dist/index.d.ts",
"engines": {
"node": ">=14.x"
},
Expand Down

0 comments on commit 9dc182c

Please sign in to comment.