Socket
Socket
Sign inDemoInstall

ajv

Package Overview
Dependencies
5
Maintainers
2
Versions
351
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.6.1 to 8.6.2

2

dist/compile/errors.js

@@ -8,3 +8,3 @@ "use strict";

exports.keywordError = {
message: ({ keyword }) => codegen_1.str `should pass "${keyword}" keyword validation`,
message: ({ keyword }) => codegen_1.str `must pass "${keyword}" keyword validation`,
};

@@ -11,0 +11,0 @@ exports.keyword$DataError = {

@@ -183,3 +183,3 @@ "use strict";

case "timestamp":
gen.if(codegen_1._ `${data} instanceof Date`, () => gen.add(names_1.default.json, codegen_1._ `${data}.toISOString()`), () => serializeString(cxt));
gen.if(codegen_1._ `${data} instanceof Date`, () => gen.add(names_1.default.json, codegen_1._ `'"' + ${data}.toISOString() + '"'`), () => serializeString(cxt));
break;

@@ -186,0 +186,0 @@ default:

@@ -9,3 +9,3 @@ import type {KeywordErrorCxt, KeywordErrorDefinition} from "../types"

export const keywordError: KeywordErrorDefinition = {
message: ({keyword}) => str`should pass "${keyword}" keyword validation`,
message: ({keyword}) => str`must pass "${keyword}" keyword validation`,
}

@@ -12,0 +12,0 @@

@@ -216,3 +216,3 @@ import type Ajv from "../../core"

_`${data} instanceof Date`,
() => gen.add(N.json, _`${data}.toISOString()`),
() => gen.add(N.json, _`'"' + ${data}.toISOString() + '"'`),
() => serializeString(cxt)

@@ -219,0 +219,0 @@ )

{
"name": "ajv",
"version": "8.6.1",
"version": "8.6.2",
"description": "Another JSON Schema Validator",

@@ -73,3 +73,3 @@ "main": "dist/ajv.js",

"@types/mocha": "^8.0.3",
"@types/node": "^15.0.2",
"@types/node": "^16.3.2",
"@types/require-from-string": "^1.2.0",

@@ -87,3 +87,3 @@ "@typescript-eslint/eslint-plugin": "^3.8.0",

"glob": "^7.0.0",
"husky": "^6.0.0",
"husky": "^7.0.1",
"if-node-version": "^1.0.0",

@@ -90,0 +90,0 @@ "jimp": "^0.16.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc