node-opcua-assert
Advanced tools
Comparing version 2.0.0-alpha.8 to 2.0.0-alpha.9
@@ -1,2 +0,3 @@ | ||
export declare function assert(cond: boolean | object | null | undefined | Function, message?: string): void; | ||
declare type func = (...args: any[]) => any; | ||
export declare function assert(cond: boolean | object | null | undefined | func, message?: string): void; | ||
export default assert; |
{ | ||
"name": "node-opcua-assert", | ||
"version": "2.0.0-alpha.8", | ||
"version": "2.0.0-alpha.9", | ||
"description": "pure nodejs OPCUA SDK - module -assert", | ||
@@ -32,3 +32,3 @@ "main": "./dist/index.js", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "7bbf38d5a3cd29cb6aed6ca38078f4d89d3f956a" | ||
"gitHead": "cd7120d1840593757f0f3c9e53be4e85883dc0e6" | ||
} |
@@ -8,3 +8,5 @@ /*** | ||
export function assert(cond: boolean | object | null | undefined | Function, message?: string): void { | ||
type func = (...args: any[]) => any; | ||
export function assert(cond: boolean | object | null | undefined | func , message?: string): void { | ||
if (!cond) { | ||
@@ -11,0 +13,0 @@ const err = new Error(message); |
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
4568
7
55