node-opcua-assert
Advanced tools
Comparing version 2.98.1 to 2.104.0
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -7,3 +10,3 @@ exports.renderError = exports.assert = void 0; | ||
*/ | ||
const chalk = require("chalk"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const displayAssert = typeof process === "object" ? (process.env.DISPLAY_ASSERT ? true : false) : false; | ||
@@ -16,5 +19,5 @@ function assert(cond, message) { | ||
// tslint:disable:no-console | ||
console.log(chalk.whiteBright.bgRed("-----------------------------------------------------------")); | ||
console.log(chalk.whiteBright.bgRed(message)); | ||
console.log(chalk.whiteBright.bgRed("-----------------------------------------------------------")); | ||
console.log(chalk_1.default.whiteBright.bgRed("-----------------------------------------------------------")); | ||
console.log(chalk_1.default.whiteBright.bgRed(message)); | ||
console.log(chalk_1.default.whiteBright.bgRed("-----------------------------------------------------------")); | ||
} | ||
@@ -21,0 +24,0 @@ throw err; |
{ | ||
"name": "node-opcua-assert", | ||
"version": "2.98.1", | ||
"version": "2.104.0", | ||
"description": "pure nodejs OPCUA SDK - module assert", | ||
@@ -31,3 +31,3 @@ "main": "./dist/index.js", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "e4d73afdfcccb3491423149d9b9785888f4ebb3c", | ||
"gitHead": "3cd6d355e8b3c66822d08a3ca682659ea5d1a55d", | ||
"files": [ | ||
@@ -34,0 +34,0 @@ "dist", |
/*** | ||
* @module node-opcua-assert | ||
*/ | ||
import * as chalk from "chalk"; | ||
import chalk from "chalk"; | ||
@@ -6,0 +6,0 @@ const displayAssert = typeof process === "object" ? (process.env.DISPLAY_ASSERT ? true : false) : false; |
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
5196
57