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

@react-dnd/invariant

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-dnd/invariant - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

2

dist/index.d.ts

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

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