ts-invariant
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -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
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
20662
212