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

openapi-enforcer

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-enforcer - npm Package Compare versions

Comparing version 0.11.4 to 0.11.5

5

bin/validate.js

@@ -19,2 +19,3 @@ /**

const format = require('./format');
const rx = require('./rx');
const util = require('./util');

@@ -167,2 +168,4 @@

if (value === null && schema['x-nullable'] === true) return;
if (typeof value === 'string' && rx.date.test(value)) value = new Date(value + 'T00:00:00.000Z');
if (typeof value === 'string' && rx.dateTime.test(value)) value = new Date(value);
if (!util.isDate(value)) {

@@ -186,2 +189,4 @@ v.error(prefix, 'Expected a valid date object. Received: ' + smart(value));

if (value === null && schema['x-nullable'] === true) return;
if (typeof value === 'string' && rx.date.test(value)) value = new Date(value + 'T00:00:00.000Z');
if (typeof value === 'string' && rx.dateTime.test(value)) value = new Date(value);
if (!util.isDate(value)) {

@@ -188,0 +193,0 @@ v.error(prefix, 'Expected a valid date object. Received: ' + smart(value));

2

package.json

@@ -83,3 +83,3 @@ {

"types": "index.d.ts",
"version": "0.11.4"
"version": "0.11.5"
}
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