Comparing version 0.18.0 to 0.19.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
29
352507
1048
- Removedbabel-runtime@^6.26.0
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.11.1(transitive)