tiny-invariant
Advanced tools
Comparing version 1.0.3 to 1.0.4
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global.invariant = factory()); | ||
}(this, (function () { 'use strict'; | ||
(global = global || self, global.invariant = factory()); | ||
}(this, function () { 'use strict'; | ||
@@ -20,2 +20,2 @@ var prefix = 'Invariant failed'; | ||
}))); | ||
})); |
@@ -1,1 +0,1 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.invariant=n()}(this,function(){"use strict";return function(e,n){if(!e)throw new Error("Invariant failed")}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).invariant=n()}(this,function(){"use strict";return function(e,n){if(!e)throw new Error("Invariant failed")}}); |
{ | ||
"name": "tiny-invariant", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"keywords": [ | ||
@@ -11,2 +11,3 @@ "invariant", | ||
"module": "dist/tiny-invariant.esm.js", | ||
"types": "src/index.d.ts", | ||
"sideEffects": false, | ||
@@ -18,2 +19,6 @@ "files": [ | ||
"author": "Alex Reardon <alexreardon@gmail.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/alexreardon/tiny-invariant.git" | ||
}, | ||
"license": "MIT", | ||
@@ -32,16 +37,17 @@ "scripts": { | ||
"devDependencies": { | ||
"@babel/core": "^7.1.5", | ||
"@babel/preset-env": "^7.1.5", | ||
"@babel/core": "^7.4.0", | ||
"@babel/preset-env": "^7.4.2", | ||
"@babel/preset-flow": "^7.0.0", | ||
"@babel/runtime-corejs2": "^7.4.2", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-jest": "^23.6.0", | ||
"flow-bin": "^0.85.0", | ||
"jest": "^23.6.0", | ||
"prettier": "^1.15.0", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.67.0", | ||
"rollup-plugin-babel": "^4.0.3", | ||
"rollup-plugin-replace": "^2.1.0", | ||
"rollup-plugin-uglify": "^6.0.0" | ||
"babel-jest": "^24.5.0", | ||
"flow-bin": "^0.95.1", | ||
"jest": "^24.5.0", | ||
"prettier": "^1.16.4", | ||
"rimraf": "^2.6.3", | ||
"rollup": "^1.7.3", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-replace": "^2.1.1", | ||
"rollup-plugin-uglify": "^6.0.2" | ||
} | ||
} |
@@ -19,5 +19,5 @@ // @flow | ||
// When not in production we allow the message to pass through | ||
// *This block will be removed in non-production builds* | ||
// *This block will be removed in production builds* | ||
throw new Error(`${prefix}: ${message || ''}`); | ||
} | ||
} |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
8496
10
65
0
14