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

@onflow/util-invariant

Package Overview
Dependencies
Maintainers
16
Versions
24
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.1 to 1.0.2-alpha.0

6

CHANGELOG.md
# @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 @@

12

dist/util-invariant.js

@@ -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 @@ }

8

dist/util-invariant.module.js

@@ -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

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