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 0.18.0 to 0.19.0

lib/Builder.d.ts

10

lib/Builder.js

@@ -107,7 +107,7 @@ "use strict";

}
var name = this.options.name;
var name_1 = this.options.name;
var prefix = '';
if (path) {
if (name) {
prefix += "Invalid " + name + " field \"" + path + "\". ";
if (name_1) {
prefix += "Invalid " + name_1 + " field \"" + path + "\". ";
}

@@ -118,4 +118,4 @@ else {

}
else if (name) {
prefix += name + ": ";
else if (name_1) {
prefix += name_1 + ": ";
}

@@ -122,0 +122,0 @@ throw new Error("" + prefix + (this.errorMessage || message));

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -33,4 +36,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

exports.union = UnionBuilder_1.union;
var types_1 = require("./types");
exports.SupportedType = types_1.SupportedType;
__export(require("./types"));
exports.default = optimal_1.default;
{
"name": "optimal",
"version": "0.18.0",
"version": "0.19.0",
"description": "A system for building and validating defined object structures",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"module": "./esm/index.js",
"scripts": {
"babel": "beemo typescript",
"build": "yarn run babel && yarn run build:dts",
"build:dts": "beemo run-script generate-dts",
"babel": "beemo typescript --declaration",
"build": "yarn run babel",
"clean": "rimraf ./{lib,esm}/",

@@ -51,7 +51,4 @@ "coverage": "yarn run jest --coverage",

"homepage": "https://github.com/milesj/optimal#readme",
"dependencies": {
"babel-runtime": "^6.26.0"
},
"devDependencies": {
"@milesj/build-tool-config": "^0.79.0"
"@milesj/build-tool-config": "^0.82.2"
},

@@ -58,0 +55,0 @@ "beemo": {

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