Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

better-ajv-errors

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-ajv-errors - npm Package Compare versions

Comparing version 0.8.2 to 1.0.0-next.0

lib/cjs/helpers.js

85

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc