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

ts-invariant

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-invariant - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

lib/invariant.d.ts

@@ -15,5 +15,5 @@ /// <reference types="node" />

}
export declare function setVerbosity(level: VerbosityLevel): void;
export declare function setVerbosity(level: VerbosityLevel): VerbosityLevel;
declare let processStub: NodeJS.Process;
export { processStub as process };
export default invariant;

@@ -42,3 +42,5 @@ import { __extends } from 'tslib';

function setVerbosity(level) {
var old = verbosityLevels[verbosityLevel];
verbosityLevel = Math.max(0, verbosityLevels.indexOf(level));
return old;
}

@@ -45,0 +47,0 @@ // Code that uses ts-invariant with rollup-plugin-invariant may want to

@@ -46,3 +46,5 @@ 'use strict';

function setVerbosity(level) {
var old = verbosityLevels[verbosityLevel];
verbosityLevel = Math.max(0, verbosityLevels.indexOf(level));
return old;
}

@@ -49,0 +51,0 @@ // Code that uses ts-invariant with rollup-plugin-invariant may want to

{
"name": "ts-invariant",
"version": "0.5.0",
"version": "0.5.1",
"author": "Ben Newman <ben@apollographql.com>",

@@ -39,3 +39,3 @@ "description": "TypeScript implementation of invariant(condition, message)",

"rollup": "^2.32.1",
"rollup-plugin-typescript2": "^0.19.2"
"rollup-plugin-typescript2": "^0.28.0"
},

@@ -45,3 +45,3 @@ "engines": {

},
"gitHead": "147ada905c356e1229f2dc49ee9473e0a4d29df6"
"gitHead": "754e330a1f85c70790312c3555e94b13dd222b67"
}

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