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

@onflow/util-invariant

Package Overview
Dependencies
Maintainers
14
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onflow/util-invariant - npm Package Compare versions

Comparing version 1.0.0-alpha.0 to 1.0.0-alpha.1

8

CHANGELOG.md

@@ -0,1 +1,9 @@

# @onflow/util-invariant
## 1.0.0-alpha.1
### Patch Changes
- [#1164](https://github.com/onflow/fcl-js/pull/1164) [`11229868`](https://github.com/onflow/fcl-js/commit/11229868cf916d204901f8bb3f76ee234e9152a8) Thanks [@justinbarry](https://github.com/justinbarry)! - No longer minify released source code.
## 1.0.0-alpha.0

@@ -2,0 +10,0 @@

17

dist/util-invariant.js

@@ -1,2 +0,17 @@

exports.invariant=function(n,t){if(!n){var r,a=new Error("INVARIANT "+t);throw a.stack=a.stack.split("\n").filter(function(n){return!/at invariant/.test(n)}).join("\n"),(r=console).error.apply(r,["\n\n---\n\n",a,"\n\n"].concat([].slice.call(arguments,2),["\n\n---\n\n"])),a}};
function invariant(fact, msg) {
if (!fact) {
var _console;
var error = new Error("INVARIANT " + msg);
error.stack = error.stack.split("\n").filter(function (d) {
return !/at invariant/.test(d);
}).join("\n");
(_console = console).error.apply(_console, ["\n\n---\n\n", error, "\n\n"].concat([].slice.call(arguments, 2), ["\n\n---\n\n"]));
throw error;
}
}
exports.invariant = invariant;
//# sourceMappingURL=util-invariant.js.map

@@ -1,2 +0,11 @@

function n(n,t,...r){if(!n){const n=new Error("INVARIANT "+t);throw n.stack=n.stack.split("\n").filter(n=>!/at invariant/.test(n)).join("\n"),console.error("\n\n---\n\n",n,"\n\n",...r,"\n\n---\n\n"),n}}export{n as invariant};
function invariant(fact, msg, ...rest) {
if (!fact) {
const error = new Error(`INVARIANT ${msg}`);
error.stack = error.stack.split("\n").filter(d => !/at invariant/.test(d)).join("\n");
console.error("\n\n---\n\n", error, "\n\n", ...rest, "\n\n---\n\n");
throw error;
}
}
export { invariant };
//# sourceMappingURL=util-invariant.modern.js.map

@@ -1,2 +0,17 @@

function n(n,t){if(!n){var r,o=new Error("INVARIANT "+t);throw o.stack=o.stack.split("\n").filter(function(n){return!/at invariant/.test(n)}).join("\n"),(r=console).error.apply(r,["\n\n---\n\n",o,"\n\n"].concat([].slice.call(arguments,2),["\n\n---\n\n"])),o}}export{n as invariant};
function invariant(fact, msg) {
if (!fact) {
var _console;
var error = new Error("INVARIANT " + msg);
error.stack = error.stack.split("\n").filter(function (d) {
return !/at invariant/.test(d);
}).join("\n");
(_console = console).error.apply(_console, ["\n\n---\n\n", error, "\n\n"].concat([].slice.call(arguments, 2), ["\n\n---\n\n"]));
throw error;
}
}
export { invariant };
//# sourceMappingURL=util-invariant.module.js.map

@@ -1,2 +0,24 @@

!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).utilInvariant={})}(this,function(n){n.invariant=function(n,t){if(!n){var e,i=new Error("INVARIANT "+t);throw i.stack=i.stack.split("\n").filter(function(n){return!/at invariant/.test(n)}).join("\n"),(e=console).error.apply(e,["\n\n---\n\n",i,"\n\n"].concat([].slice.call(arguments,2),["\n\n---\n\n"])),i}}});
(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) {
function invariant(fact, msg) {
if (!fact) {
var _console;
var error = new Error("INVARIANT " + msg);
error.stack = error.stack.split("\n").filter(function (d) {
return !/at invariant/.test(d);
}).join("\n");
(_console = console).error.apply(_console, ["\n\n---\n\n", error, "\n\n"].concat([].slice.call(arguments, 2), ["\n\n---\n\n"]));
throw error;
}
}
exports.invariant = invariant;
})));
//# sourceMappingURL=util-invariant.umd.js.map

6

package.json
{
"name": "@onflow/util-invariant",
"version": "1.0.0-alpha.0",
"version": "1.0.0-alpha.1",
"description": "Flow JS SDK Util -- Invariant",

@@ -21,3 +21,3 @@ "license": "Apache-2.0",

"devDependencies": {
"@onflow/types": "^1.0.0-alpha.0",
"@onflow/types": "^1.0.0-alpha.1",
"jest": "26.4.2",

@@ -34,3 +34,3 @@ "jest-esm-transformer": "1.0.0",

"test": "jest",
"build": "microbundle",
"build": "microbundle --no-compress",
"test:watch": "jest --watch",

@@ -37,0 +37,0 @@ "start": "microbundle watch"

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

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