@onflow/util-invariant
Advanced tools
Comparing version 1.0.1 to 1.0.2-alpha.0
# @onflow/util-invariant | ||
## 1.0.2-alpha.0 | ||
### Patch Changes | ||
- [#1227](https://github.com/onflow/fcl-js/pull/1227) [`352f1460`](https://github.com/onflow/fcl-js/commit/352f1460a2f34d228a74fa4bbc6fcf6e68a968b6) Thanks [@jribbink](https://github.com/jribbink)! - Switch to fcl-bundle instead of microbundle for build scripts | ||
## 1.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -0,1 +1,5 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function invariant(fact, msg) { | ||
@@ -5,3 +9,3 @@ if (!fact) { | ||
var error = new Error("INVARIANT " + msg); | ||
var error = new Error("INVARIANT ".concat(msg)); | ||
error.stack = error.stack.split("\n").filter(function (d) { | ||
@@ -11,4 +15,8 @@ return !/at invariant/.test(d); | ||
(_console = console).error.apply(_console, ["\n\n---\n\n", error, "\n\n"].concat([].slice.call(arguments, 2), ["\n\n---\n\n"])); | ||
for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
rest[_key - 2] = arguments[_key]; | ||
} | ||
(_console = console).error.apply(_console, ["\n\n---\n\n", error, "\n\n"].concat(rest, ["\n\n---\n\n"])); | ||
throw error; | ||
@@ -15,0 +23,0 @@ } |
@@ -5,3 +5,3 @@ function invariant(fact, msg) { | ||
var error = new Error("INVARIANT " + msg); | ||
var error = new Error("INVARIANT ".concat(msg)); | ||
error.stack = error.stack.split("\n").filter(function (d) { | ||
@@ -11,4 +11,8 @@ return !/at invariant/.test(d); | ||
(_console = console).error.apply(_console, ["\n\n---\n\n", error, "\n\n"].concat([].slice.call(arguments, 2), ["\n\n---\n\n"])); | ||
for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
rest[_key - 2] = arguments[_key]; | ||
} | ||
(_console = console).error.apply(_console, ["\n\n---\n\n", error, "\n\n"].concat(rest, ["\n\n---\n\n"])); | ||
throw error; | ||
@@ -15,0 +19,0 @@ } |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(global = global || self, factory(global.utilInvariant = {})); | ||
}(this, (function (exports) { | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["onflowUtil-invariant"] = {})); | ||
})(this, (function (exports) { 'use strict'; | ||
function invariant(fact, msg) { | ||
@@ -10,3 +11,3 @@ if (!fact) { | ||
var error = new Error("INVARIANT " + msg); | ||
var error = new Error("INVARIANT ".concat(msg)); | ||
error.stack = error.stack.split("\n").filter(function (d) { | ||
@@ -16,4 +17,8 @@ return !/at invariant/.test(d); | ||
(_console = console).error.apply(_console, ["\n\n---\n\n", error, "\n\n"].concat([].slice.call(arguments, 2), ["\n\n---\n\n"])); | ||
for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
rest[_key - 2] = arguments[_key]; | ||
} | ||
(_console = console).error.apply(_console, ["\n\n---\n\n", error, "\n\n"].concat(rest, ["\n\n---\n\n"])); | ||
throw error; | ||
@@ -25,3 +30,5 @@ } | ||
}))); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
})); | ||
//# sourceMappingURL=util-invariant.umd.js.map |
{ | ||
"name": "@onflow/util-invariant", | ||
"version": "1.0.1", | ||
"version": "1.0.2-alpha.0", | ||
"description": "Flow JS SDK Util -- Invariant", | ||
@@ -21,6 +21,6 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@onflow/types": "^1.0.1", | ||
"@onflow/fcl-bundle": "^1.0.1-alpha.0", | ||
"@onflow/types": "^1.0.3-alpha.0", | ||
"jest": "26.4.2", | ||
"jest-esm-transformer": "1.0.0", | ||
"microbundle": "0.12.4" | ||
"jest-esm-transformer": "1.0.0" | ||
}, | ||
@@ -34,6 +34,9 @@ "source": "src/index.js", | ||
"test": "jest", | ||
"build": "microbundle --no-compress", | ||
"build": "fcl-bundle", | ||
"test:watch": "jest --watch", | ||
"start": "microbundle watch --no-compress" | ||
"start": "fcl-bundle --watch" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.18.6" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
export function invariant (fact, msg, ...rest) { | ||
export function invariant(fact, msg, ...rest) { | ||
if (!fact) { | ||
@@ -3,0 +3,0 @@ const error = new Error(`INVARIANT ${msg}`) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
10382
71
1
11
1
+ Added@babel/runtime@^7.18.6
+ Added@babel/runtime@7.26.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)