awesome-ajv-errors
Advanced tools
Comparing version 4.1.4 to 5.0.0
@@ -8,3 +8,3 @@ import { managerOptions } from './style/style-plain.js'; | ||
.catch(err => ({ managerOptions })), | ||
import('./code/impl-babel.js') | ||
import('./code/impl-code-frame.js') | ||
.catch(err => ({ printCode })), | ||
@@ -11,0 +11,0 @@ ]); |
@@ -1,2 +0,2 @@ | ||
import { getAstByObject } from "jsonpos"; | ||
import { getParsedByObject } from "jsonpos"; | ||
import { ensureArray } from "./util.js"; | ||
@@ -56,3 +56,3 @@ import { parseDataPath } from "./data-path.js"; | ||
return styleManager.style.good("No errors"); | ||
const parsedJson = getAstByObject(opts.data, 2); | ||
const parsedJson = getParsedByObject(opts.data, 2); | ||
const preparedText = prepareText({ maxNumber: errors.length + 1 }); | ||
@@ -59,0 +59,0 @@ return errors.map((error, index) => { |
@@ -1,4 +0,4 @@ | ||
import chalk from "chalk"; | ||
import chalk, { supportsColor } from "chalk"; | ||
import terminalLink from "terminal-link"; | ||
const { supportsColor, dim, red, blue, green, yellow, magenta, white, } = chalk; | ||
const { dim, red, blue, green, yellow, magenta, white, } = chalk; | ||
const styles = { | ||
@@ -5,0 +5,0 @@ title: red.bold, |
{ | ||
"name": "awesome-ajv-errors", | ||
"version": "4.1.4", | ||
"version": "5.0.0", | ||
"description": "Prettified AJV errors", | ||
@@ -11,9 +11,25 @@ "author": "Gustaf Räntilä", | ||
"homepage": "https://github.com/grantila/awesome-ajv-errors#readme", | ||
"main": "./dist/index-node.js", | ||
"browser": "./dist/index-browser.js", | ||
"types": "./dist/index-node.d.ts", | ||
"main": "./dist/index-default.js", | ||
"browser": "./dist/index-default.js", | ||
"exports": { | ||
".": "./dist/index-default.js", | ||
"./plain": "./dist/index-plain.js", | ||
"./try-styled": "./dist/index-try-styled.js", | ||
"./package.json": "./package.json" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"plain": [ | ||
"./dist/index-plain.d.ts" | ||
], | ||
"try-styled": [ | ||
"./dist/index-try-styled.d.ts" | ||
] | ||
} | ||
}, | ||
"types": "./dist/index-default.d.ts", | ||
"type": "module", | ||
"sideEffects": false, | ||
"engines": { | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
"node": "^14.13.1 || >=16.0.0" | ||
}, | ||
@@ -48,3 +64,2 @@ "files": [ | ||
"@babel/preset-typescript": "^7.16.5", | ||
"@types/babel__code-frame": "^7.0.3", | ||
"@types/hapi__joi": "^17.1.7", | ||
@@ -63,6 +78,6 @@ "@types/jest": "^27.0.3", | ||
"dependencies": { | ||
"@babel/code-frame": "^7.16.7", | ||
"chalk": "^4.1.2", | ||
"awesome-code-frame": "^1.0.1", | ||
"chalk": "^5.0.1", | ||
"jsonpointer": "^5.0.0", | ||
"jsonpos": "^3.1.0", | ||
"jsonpos": "^4.1.1", | ||
"leven": "^4.0.0", | ||
@@ -69,0 +84,0 @@ "terminal-link": "^3.0.0" |
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
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
73727
13
+ Addedawesome-code-frame@^1.0.1
+ Addedawesome-code-frame@1.1.0(transitive)
+ Addedchalk@5.3.0(transitive)
+ Addedcharcodes@0.2.0(transitive)
+ Addedjs-tokens@8.0.3(transitive)
+ Addedjson-cst@1.2.0(transitive)
+ Addedjson-lexer@1.2.0(transitive)
+ Addedjsonpos@4.1.2(transitive)
- Removed@babel/code-frame@^7.16.7
- Removed@babel/code-frame@7.26.2(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcode-error-fragment@0.0.230(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedgrapheme-splitter@1.0.4(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjson-to-ast@2.1.0(transitive)
- Removedjsonpos@3.2.1(transitive)
- Removedpicocolors@1.1.1(transitive)
Updatedchalk@^5.0.1
Updatedjsonpos@^4.1.1