New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

airtight

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airtight - npm Package Compare versions

Comparing version 0.7.4 to 0.7.5

9

out/main/job.js

@@ -91,5 +91,8 @@ "use strict";

}
if (schema.regex != null && new RegExp(schema.regex, (_a = schema.regexFlags) !== null && _a !== void 0 ? _a : '').test(str)) {
this.errors.push({ path, message: `must be in allowed format` });
valid = false;
if (schema.regex != null) {
const regex = new RegExp(schema.regex, (_a = schema.regexFlags) !== null && _a !== void 0 ? _a : '');
if (!regex.test(str)) {
this.errors.push({ path, message: `must be in allowed format` });
valid = false;
}
}

@@ -96,0 +99,0 @@ return valid ? str : this.defaultValue(schema);

{
"name": "airtight",
"version": "0.7.4",
"version": "0.7.5",
"description": "Tight subset of JSON schema",

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

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