node-opcua-debug
Advanced tools
Comparing version 2.99.0 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 }); | ||
@@ -8,6 +11,6 @@ exports.displayTraceFromThisProjectOnly = exports.traceFromThisProjectOnly = void 0; | ||
// tslint:disable:no-console | ||
const chalk = require("chalk"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
function traceFromThisProjectOnly(err) { | ||
const str = []; | ||
str.push(chalk.cyan.bold(" display_trace_from_this_project_only = ")); | ||
str.push(chalk_1.default.cyan.bold(" display_trace_from_this_project_only = ")); | ||
if (err) { | ||
@@ -20,6 +23,6 @@ str.push(err.message); | ||
stack = stack.split("\n").filter((el) => el.match(/node-opcua/) && !el.match(/node_modules/)); | ||
str.push(chalk.yellow(stack.join("\n"))); | ||
str.push(chalk_1.default.yellow(stack.join("\n"))); | ||
} | ||
else { | ||
str.push(chalk.red(" NO STACK TO TRACE !!!!")); | ||
str.push(chalk_1.default.red(" NO STACK TO TRACE !!!!")); | ||
} | ||
@@ -26,0 +29,0 @@ return str.join("\n"); |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -10,3 +13,3 @@ exports.make_warningLog = exports.make_errorLog = exports.messageLogger = exports.MessageLogger = exports.make_debugLog = exports.checkDebugFlag = exports.setDebugFlag = void 0; | ||
const util_1 = require("util"); | ||
const chalk = require("chalk"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const debugFlags = {}; | ||
@@ -49,4 +52,4 @@ const _process = (typeof process === "object") ? process : { env: {} }; | ||
if (sTraceFlag && sTraceFlag.length > 1 && flag) { | ||
const decoratedFilename = chalk.yellow(w(filename, 60)); | ||
console.log(" Setting debug for ", decoratedFilename, " to ", (flag ? chalk.cyan : chalk.red)(flag.toString(), sTraceFlag)); | ||
const decoratedFilename = chalk_1.default.yellow(w(filename, 60)); | ||
console.log(" Setting debug for ", decoratedFilename, " to ", (flag ? chalk_1.default.cyan : chalk_1.default.red)(flag.toString(), sTraceFlag)); | ||
} | ||
@@ -74,9 +77,9 @@ debugFlags[filename] = flag; | ||
if (mode === "W") { | ||
return chalk.bgCyan.white(w(d, 14) + ":" + w(filename, 30) + ":" + w(callerLine.toString(), 5)); | ||
return chalk_1.default.bgCyan.white(w(d, 14) + ":" + w(filename, 30) + ":" + w(callerLine.toString(), 5)); | ||
} | ||
else if (mode === "D") { | ||
return chalk.bgWhite.cyan(w(d, 14) + ":" + w(filename, 30) + ":" + w(callerLine.toString(), 5)); | ||
return chalk_1.default.bgWhite.cyan(w(d, 14) + ":" + w(filename, 30) + ":" + w(callerLine.toString(), 5)); | ||
} | ||
else { | ||
return chalk.bgRed.white(w(d, 14) + ":" + w(filename, 30) + ":" + w(callerLine.toString(), 5)); | ||
return chalk_1.default.bgRed.white(w(d, 14) + ":" + w(filename, 30) + ":" + w(callerLine.toString(), 5)); | ||
} | ||
@@ -83,0 +86,0 @@ } |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -7,4 +30,4 @@ exports.getTempFilename = void 0; | ||
*/ | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const fs = __importStar(require("fs")); | ||
const path = __importStar(require("path")); | ||
function getTempFilename(tmpFilename) { | ||
@@ -11,0 +34,0 @@ tmpFilename = tmpFilename || ""; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -9,3 +32,3 @@ exports.redirectToFile = void 0; | ||
// tslint:disable:ban-types | ||
const fs = require("fs"); | ||
const fs = __importStar(require("fs")); | ||
const util_1 = require("util"); | ||
@@ -12,0 +35,0 @@ const node_opcua_assert_1 = require("node-opcua-assert"); |
{ | ||
"name": "node-opcua-debug", | ||
"version": "2.99.0", | ||
"version": "2.104.0", | ||
"description": "pure nodejs OPCUA SDK - module debug", | ||
@@ -13,4 +13,4 @@ "scripts": { | ||
"hexy": "0.3.4", | ||
"node-opcua-assert": "2.98.1", | ||
"node-opcua-buffer-utils": "2.98.1" | ||
"node-opcua-assert": "2.104.0", | ||
"node-opcua-buffer-utils": "2.104.0" | ||
}, | ||
@@ -37,3 +37,3 @@ "devDependencies": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "90ce9f5b44d74198d84a384de622dfa94fd05c0c", | ||
"gitHead": "3cd6d355e8b3c66822d08a3ca682659ea5d1a55d", | ||
"files": [ | ||
@@ -40,0 +40,0 @@ "dist", |
@@ -5,3 +5,3 @@ /** | ||
// tslint:disable:no-console | ||
import * as chalk from "chalk"; | ||
import chalk from "chalk"; | ||
@@ -8,0 +8,0 @@ export function traceFromThisProjectOnly(err?: Error): string { |
@@ -7,3 +7,3 @@ /** | ||
import { format } from "util"; | ||
import * as chalk from "chalk"; | ||
import chalk from "chalk"; | ||
@@ -10,0 +10,0 @@ const debugFlags: { [id: string]: boolean } = {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
48822
856
+ Addednode-opcua-assert@2.104.0(transitive)
+ Addednode-opcua-buffer-utils@2.104.0(transitive)
- Removednode-opcua-assert@2.98.1(transitive)
- Removednode-opcua-buffer-utils@2.98.1(transitive)
Updatednode-opcua-assert@2.104.0