better-ajv-errors
Advanced tools
Comparing version 0.8.2 to 1.0.0-next.0
{ | ||
"name": "better-ajv-errors", | ||
"version": "0.8.2", | ||
"version": "1.0.0-next.0", | ||
"description": "JSON Schema validation for Human", | ||
"repository": "atlassian/better-ajv-errors", | ||
"main": "index.js", | ||
"main": "./lib/cjs/index.js", | ||
"exports": { | ||
".": { | ||
"require": "./lib/cjs/index.js", | ||
"default": "./lib/esm/index.js" | ||
} | ||
}, | ||
"module": "./lib/esm/index.js", | ||
"engines": { | ||
"node": ">= 12.13.0" | ||
}, | ||
"keywords": [ | ||
@@ -19,6 +29,5 @@ "json-schema", | ||
"license": "Apache-2.0", | ||
"typings": "typings.d.ts", | ||
"types": "./typings.d.ts", | ||
"files": [ | ||
"lib", | ||
"index.js", | ||
"typings.d.ts" | ||
@@ -28,17 +37,17 @@ ], | ||
"prebuild": "rm -rf lib", | ||
"build": "yarn build:modern && yarn build:legacy", | ||
"build:modern": "BABEL_ENV=modern babel src -d lib/modern/", | ||
"build:legacy": "BABEL_ENV=legacy babel src -d lib/legacy", | ||
"prerelease": "yarn build", | ||
"release": "changeset release", | ||
"format": "prettier --write src/*.js src/**/*.js .changeset/*.js", | ||
"build": "npm run build:cjs && npm run build:esm", | ||
"build:cjs": "node build.js --cjs", | ||
"build:esm": "node build.js", | ||
"prerelease": "npm run build", | ||
"release": "changeset publish", | ||
"format": "prettier --write './src/**/*.js' './.changeset/*.json'", | ||
"test": "jest", | ||
"test-ci": "jest --coverage --colors", | ||
"screenshot": "svg-term --command='node screenshot' --out=media/screenshot.svg --padding=5 --width=80 --height=13 --at=1000 --no-cursor --term iterm2 --profile='deep' --window" | ||
"screenshot": "svg-term --command='node screenshot' --out=./media/screenshot.svg --padding=5 --width=80 --height=13 --at=1000 --no-cursor --term iterm2 --profile='deep' --window", | ||
"prepare": "is-ci || husky install", | ||
"dependabot:changeset": "node ./.changeset/create-dependabot-dependabot.js" | ||
}, | ||
"dependencies": { | ||
"@babel/code-frame": "^7.0.0", | ||
"@babel/runtime": "^7.0.0", | ||
"chalk": "^2.4.1", | ||
"core-js": "^3.2.1", | ||
"@babel/code-frame": "^7.16.0", | ||
"chalk": "^4.1.2", | ||
"json-to-ast": "^2.0.3", | ||
@@ -49,24 +58,19 @@ "jsonpointer": "^5.0.0", | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "7.6.0", | ||
"@babel/plugin-syntax-object-rest-spread": "^7.0.0", | ||
"@babel/plugin-transform-runtime": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/preset-flow": "7.0.0", | ||
"@changesets/cli": "^1.3.0", | ||
"ajv": "^8.5.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-jest": "^24.9.0", | ||
"babel-plugin-add-module-exports": "^1.0.0", | ||
"dotenv": "^8.1.0", | ||
"eslint": "^6.3.0", | ||
"eslint-config-prettier": "^6.2.0", | ||
"eslint-plugin-jest": "^22.17.0", | ||
"eslint-plugin-prettier": "^3.1.0", | ||
"flow-bin": "^0.107.0", | ||
"husky": "^3.0.5", | ||
"jest": "^24.9.0", | ||
"@changesets/cli": "^2.18.0", | ||
"@changesets/write": "^0.1.5", | ||
"ajv": "^8.6.3", | ||
"esbuild": "^0.13.12", | ||
"esbuild-jest-transform": "^1.1.0", | ||
"eslint": "^8.2.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-jest": "^25.2.4", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"fast-glob": "^3.2.7", | ||
"flow-bin": "^0.163.0", | ||
"git-format-staged": "^2.1.2", | ||
"husky": "^7.0.0", | ||
"is-ci": "^3.0.1", | ||
"jest": "^27.3.1", | ||
"jest-fixtures": "^0.6.0", | ||
"prettier": "^1.14.2", | ||
"pretty-quick": "^1.6.0", | ||
"prettier": "^2.4.1", | ||
"svg-term-cli": "^2.1.1" | ||
@@ -80,4 +84,9 @@ }, | ||
"<rootDir>/src/**/__tests__/**/*.js" | ||
] | ||
], | ||
"transform": { | ||
"^.+\\.js$": [ | ||
"esbuild-jest-transform" | ||
] | ||
} | ||
} | ||
} | ||
} |
@@ -17,5 +17,5 @@ <h1 align="center"> | ||
```bash | ||
$ npm i better-ajv-errors | ||
$ # Or | ||
$ yarn add better-ajv-errors | ||
$ # Or | ||
$ npm i better-ajv-errors | ||
``` | ||
@@ -33,6 +33,8 @@ | ||
// const Ajv = require('ajv'); | ||
// const betterAjvErrors = require('better-ajv-errors'); | ||
// const betterAjvErrors = require('better-ajv-errors').default; | ||
// Or | ||
// const { default: betterAjvErrors } = require('better-ajv-errors'); | ||
// You need to pass `jsonPointers: true` | ||
const ajv = new Ajv({ jsonPointers: true }); | ||
// You need to pass `{ jsonPointers: true }` for older versions of ajv | ||
const ajv = new Ajv(); | ||
@@ -39,0 +41,0 @@ // Load schema and data |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106603
6
18
64
1279
120
1
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removed@babel/runtime@^7.0.0
- Removedcore-js@^3.2.1
- Removed@babel/runtime@7.26.0(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcore-js@3.39.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedsupports-color@5.5.0(transitive)
Updated@babel/code-frame@^7.16.0
Updatedchalk@^4.1.2