@react-dnd/invariant
Advanced tools
Comparing version 1.0.2 to 2.0.0
@@ -11,2 +11,2 @@ /** | ||
*/ | ||
export default function invariant(condition: any, format: string, ...args: any[]): void; | ||
export declare function invariant(condition: any, format: string, ...args: any[]): void; |
@@ -43,3 +43,3 @@ 'use strict'; | ||
exports.default = invariant; | ||
exports.invariant = invariant; | ||
//# sourceMappingURL=invariant.cjs.development.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";exports.default=function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];if(!e){var a;if(void 0===r)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var t=0;(a=new Error(r.replace(/%s/g,(function(){return i[t++]})))).name="Invariant Violation"}throw a.framesToPop=1,a}}; | ||
"use strict";exports.invariant=function(r,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];if(!r){var a;if(void 0===e)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var t=0;(a=new Error(e.replace(/%s/g,(function(){return i[t++]})))).name="Invariant Violation"}throw a.framesToPop=1,a}}; | ||
//# sourceMappingURL=invariant.cjs.production.min.js.map |
@@ -41,3 +41,3 @@ /** | ||
export default invariant; | ||
export { invariant }; | ||
//# sourceMappingURL=invariant.esm.js.map |
{ | ||
"name": "@react-dnd/invariant", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "invariantx", |
@@ -12,7 +12,3 @@ /** | ||
export default function invariant( | ||
condition: any, | ||
format: string, | ||
...args: any[] | ||
) { | ||
export function invariant(condition: any, format: string, ...args: any[]) { | ||
if (process.env.NODE_ENV !== 'production') { | ||
@@ -19,0 +15,0 @@ if (format === undefined) { |
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
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
18280
215