Socket
Socket
Sign inDemoInstall

ajv-keywords

Package Overview
Dependencies
6
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

2

dist/definitions/select.js

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

cxt.setParams({ schemaProp });
gen.elseIf(codegen_1._ `${value} == ${schemaProp}`); // intentional ==, to match numbers and booleans
gen.elseIf(codegen_1._ `"" + ${value} == ${schemaProp}`); // intentional ==, to match numbers and booleans
const schCxt = cxt.subschema({ keyword: "selectCases", schemaProp }, schValid);

@@ -32,0 +32,0 @@ cxt.mergeEvaluated(schCxt, codegen_1.Name);

@@ -30,2 +30,4 @@ "use strict";

module.exports = ajvKeywords;
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
module.exports.default = ajvKeywords;
//# sourceMappingURL=index.js.map
{
"name": "ajv-keywords",
"version": "4.0.0",
"version": "4.0.1",
"description": "Custom JSON-Schema keywords for Ajv validator",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -36,3 +36,3 @@ import type {KeywordDefinition, KeywordErrorDefinition, KeywordCxt, ErrorObject} from "ajv"

cxt.setParams({schemaProp})
gen.elseIf(_`${value} == ${schemaProp}`) // intentional ==, to match numbers and booleans
gen.elseIf(_`"" + ${value} == ${schemaProp}`) // intentional ==, to match numbers and booleans
const schCxt = cxt.subschema({keyword: "selectCases", schemaProp}, schValid)

@@ -39,0 +39,0 @@ cxt.mergeEvaluated(schCxt, Name)

@@ -30,1 +30,4 @@ import type Ajv from "ajv"

module.exports = ajvKeywords
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
module.exports.default = ajvKeywords

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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