node-opcua-assert
Advanced tools
Comparing version 2.52.0 to 2.55.0
declare type func = (...args: any[]) => any; | ||
export declare function assert(cond: boolean | unknown | null | undefined | func, message?: string): void; | ||
export default assert; | ||
export declare function renderError(err: unknown): Error; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.assert = void 0; | ||
exports.renderError = exports.assert = void 0; | ||
/*** | ||
@@ -8,4 +8,2 @@ * @module node-opcua-assert | ||
const chalk = require("chalk"); | ||
const PrettyError = require("pretty-error"); | ||
const pe = new PrettyError(); | ||
const displayAssert = process.env.DISPLAY_ASSERT ? true : false; | ||
@@ -20,3 +18,2 @@ function assert(cond, message) { | ||
console.log(chalk.whiteBright.bgRed(message)); | ||
console.log(pe.render(err)); | ||
console.log(chalk.whiteBright.bgRed("-----------------------------------------------------------")); | ||
@@ -29,2 +26,6 @@ } | ||
exports.default = assert; | ||
function renderError(err) { | ||
return err; | ||
} | ||
exports.renderError = renderError; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "node-opcua-assert", | ||
"version": "2.52.0", | ||
"version": "2.55.0", | ||
"description": "pure nodejs OPCUA SDK - module -assert", | ||
@@ -15,4 +15,3 @@ "main": "./dist/index.js", | ||
"better-assert": "^1.0.2", | ||
"chalk": "4.1.2", | ||
"pretty-error": "^3.0.4" | ||
"chalk": "4.1.2" | ||
}, | ||
@@ -34,3 +33,3 @@ "author": "Etienne Rossignon", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "3ec6296e8fd4df0e05b9d887f0b7dd20113a9ce1" | ||
"gitHead": "28fdbfe1c5306fd0e69758ccacfa2c6d1722115c" | ||
} |
@@ -5,4 +5,2 @@ /*** | ||
import * as chalk from "chalk"; | ||
import * as PrettyError from "pretty-error"; | ||
const pe = new PrettyError(); | ||
@@ -21,3 +19,2 @@ const displayAssert = process.env.DISPLAY_ASSERT ? true : false; | ||
console.log(chalk.whiteBright.bgRed(message!)); | ||
console.log(pe.render(err)); | ||
console.log(chalk.whiteBright.bgRed("-----------------------------------------------------------")); | ||
@@ -29,1 +26,5 @@ } | ||
export default assert; | ||
export function renderError(err: unknown): Error { | ||
return err as Error; | ||
} |
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
2
54
4806
- Removedpretty-error@^3.0.4
- Removedansi-regex@2.1.1(transitive)
- Removedboolbase@1.0.0(transitive)
- Removedcss-select@4.3.0(transitive)
- Removedcss-what@6.1.0(transitive)
- Removeddom-converter@0.2.0(transitive)
- Removeddom-serializer@1.4.1(transitive)
- Removeddomelementtype@2.3.0(transitive)
- Removeddomhandler@4.3.1(transitive)
- Removeddomutils@2.8.0(transitive)
- Removedentities@2.2.0(transitive)
- Removedhtmlparser2@6.1.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removednth-check@2.1.1(transitive)
- Removedpretty-error@3.0.4(transitive)
- Removedrenderkid@2.0.7(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedutila@0.4.0(transitive)