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

yaschema

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaschema - npm Package Compare versions

Comparing version 2.0.0-alpha.0 to 2.0.0-alpha.1

2

CHANGELOG.md
# Changelog
## [2.0.0-alpha.0] - 2022-09-02
## [2.0.0-alpha.x] - 2022-09-02

@@ -5,0 +5,0 @@ ### Added

@@ -41,5 +41,2 @@ "use strict";

}
if (validatorOptions.shouldRemoveUnknownKeys) {
validatorOptions.inoutUnknownKeysByPath[path] = 'allow-all';
}
let errorResult;

@@ -55,2 +52,14 @@ let valueKeys;

}
let unknownKeysSet;
if (validatorOptions.shouldRemoveUnknownKeys) {
const unknownKeys = validatorOptions.inoutUnknownKeysByPath[path];
if (unknownKeys === undefined) {
// If this path hasn't been examined before
unknownKeysSet = new Set(valueKeys);
validatorOptions.inoutUnknownKeysByPath[path] = unknownKeysSet;
}
else if (unknownKeys instanceof Set) {
unknownKeysSet = unknownKeys;
}
}
for (const valueKey of valueKeys) {

@@ -62,2 +71,5 @@ if (keys instanceof RegExp) {

}
else {
unknownKeysSet === null || unknownKeysSet === void 0 ? void 0 : unknownKeysSet.delete(valueKey);
}
}

@@ -70,2 +82,5 @@ else {

}
else {
unknownKeysSet === null || unknownKeysSet === void 0 ? void 0 : unknownKeysSet.delete(valueKey);
}
}

@@ -72,0 +87,0 @@ const result = valueSchema.internalValidate(

{
"name": "yaschema",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"description": "Yet another schema",

@@ -5,0 +5,0 @@ "keywords": [

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc