node-opcua-assert
Advanced tools
Comparing version 2.0.0 to 2.3.0
declare type func = (...args: any[]) => any; | ||
export declare function assert(cond: boolean | object | null | undefined | func, message?: string): void; | ||
export default assert; |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
const chalk_1 = require("chalk"); | ||
const chalk = require("chalk"); | ||
const displayAssert = process.env.DISPLAY_ASSERT ? true : false; | ||
@@ -15,6 +15,6 @@ function assert(cond, message) { | ||
// tslint:disable:no-console | ||
console.log(chalk_1.default.whiteBright.bgRed("-----------------------------------------------------------")); | ||
console.log(chalk_1.default.whiteBright.bgRed(message)); | ||
console.log(chalk.whiteBright.bgRed("-----------------------------------------------------------")); | ||
console.log(chalk.whiteBright.bgRed(message)); | ||
console.log(err); | ||
console.log(chalk_1.default.whiteBright.bgRed("-----------------------------------------------------------")); | ||
console.log(chalk.whiteBright.bgRed("-----------------------------------------------------------")); | ||
} | ||
@@ -21,0 +21,0 @@ throw err; |
{ | ||
"name": "node-opcua-assert", | ||
"version": "2.0.0", | ||
"version": "2.3.0", | ||
"description": "pure nodejs OPCUA SDK - module -assert", | ||
@@ -15,3 +15,3 @@ "main": "./dist/index.js", | ||
"better-assert": "1.0.2", | ||
"chalk": "^2.4.2" | ||
"chalk": "^3.0.0" | ||
}, | ||
@@ -33,3 +33,3 @@ "author": "Etienne Rossignon", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "deed061b032e8490d44f59fc42559d413968ab89" | ||
"gitHead": "3fc22180b26cd0d0481e57e7bb6a2cab7623e6d1" | ||
} |
/*** | ||
* @module node-opcua-assert | ||
*/ | ||
import chalk from "chalk"; | ||
import * as chalk from "chalk"; | ||
@@ -10,3 +10,3 @@ const displayAssert = process.env.DISPLAY_ASSERT ? true : false; | ||
export function assert(cond: boolean | object | null | undefined | func , message?: string): void { | ||
export function assert(cond: boolean | object | null | undefined | func, message?: string): void { | ||
if (!cond) { | ||
@@ -13,0 +13,0 @@ const err = new Error(message); |
@@ -0,0 +0,0 @@ { |
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
99375
8
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@3.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)
Updatedchalk@^3.0.0