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

optimal

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optimal - npm Package Compare versions

Comparing version 2.0.0-1 to 2.0.0-2

2

esm/optimal.js

@@ -24,3 +24,3 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread";

if (builder instanceof Builder) {
if (builder instanceof Builder || isObject(builder) && builder.constructor.name.endsWith('Builder')) {
builtStruct[key] = builder.runChecks(path, value, struct, options);

@@ -27,0 +27,0 @@ } else if ("production" !== process.env.NODE_ENV) {

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

if (builder instanceof _Builder.default) {
if (builder instanceof _Builder.default || (0, _isObject.default)(builder) && builder.constructor.name.endsWith('Builder')) {
builtStruct[key] = builder.runChecks(path, value, struct, options);

@@ -36,0 +36,0 @@ } else if ("production" !== process.env.NODE_ENV) {

{
"name": "optimal",
"version": "2.0.0-1",
"version": "2.0.0-2",
"description": "A system for building and validating defined object structures.",

@@ -5,0 +5,0 @@ "main": "./lib/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