Socket
Socket
Sign inDemoInstall

node-opcua-assert

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-assert - npm Package Compare versions

Comparing version 2.0.0 to 2.3.0

tsconfig.tsbuildinfo

0

dist/index.d.ts
declare type func = (...args: any[]) => any;
export declare function assert(cond: boolean | object | null | undefined | func, message?: string): void;
export default assert;

8

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc