@onflow/util-invariant
Advanced tools
Comparing version 1.0.3 to 1.1.0-alpha.0
# @onflow/util-invariant | ||
## 1.1.0-alpha.0 | ||
### Minor Changes | ||
- [#1577](https://github.com/onflow/fcl-js/pull/1577) [`d9a49531`](https://github.com/onflow/fcl-js/commit/d9a495316cd03ed0de99e0f01d1b8850a1f0eec4) Thanks [@chasefleming](https://github.com/chasefleming)! - Add npmignore file for build | ||
## 1.0.3 | ||
@@ -4,0 +10,0 @@ |
@@ -5,2 +5,9 @@ 'use strict'; | ||
/** | ||
* Asserts fact is true, otherwise throw an error with invariant message | ||
* @param {boolean} fact | ||
* @param {string} msg | ||
* @param {Array} rest | ||
* @returns {void} | ||
*/ | ||
function invariant(fact, msg) { | ||
@@ -7,0 +14,0 @@ if (!fact) { |
@@ -0,1 +1,8 @@ | ||
/** | ||
* Asserts fact is true, otherwise throw an error with invariant message | ||
* @param {boolean} fact | ||
* @param {string} msg | ||
* @param {Array} rest | ||
* @returns {void} | ||
*/ | ||
function invariant(fact, msg) { | ||
@@ -2,0 +9,0 @@ if (!fact) { |
@@ -7,2 +7,9 @@ (function (global, factory) { | ||
/** | ||
* Asserts fact is true, otherwise throw an error with invariant message | ||
* @param {boolean} fact | ||
* @param {string} msg | ||
* @param {Array} rest | ||
* @returns {void} | ||
*/ | ||
function invariant(fact, msg) { | ||
@@ -9,0 +16,0 @@ if (!fact) { |
{ | ||
"name": "@onflow/util-invariant", | ||
"version": "1.0.3", | ||
"version": "1.1.0-alpha.0", | ||
"description": "Flow JS SDK Util -- Invariant", | ||
@@ -21,4 +21,4 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@onflow/fcl-bundle": "^1.2.0", | ||
"@onflow/types": "^1.0.4", | ||
"@onflow/fcl-bundle": "^1.3.0-alpha.0", | ||
"@onflow/types": "^1.1.0-alpha.0", | ||
"jest": "26.4.2", | ||
@@ -25,0 +25,0 @@ "jest-esm-transformer": "1.0.0" |
@@ -0,1 +1,8 @@ | ||
/** | ||
* Asserts fact is true, otherwise throw an error with invariant message | ||
* @param {boolean} fact | ||
* @param {string} msg | ||
* @param {Array} rest | ||
* @returns {void} | ||
*/ | ||
export function invariant(fact, msg, ...rest) { | ||
@@ -2,0 +9,0 @@ if (!fact) { |
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
12572
99
1