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

awesome-ajv-errors

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awesome-ajv-errors - npm Package Compare versions

Comparing version 4.1.4 to 5.0.0

dist/code/impl-code-frame.d.ts

2

dist/index-try-styled.js

@@ -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"

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