node-opcua-debug
Advanced tools
Comparing version 2.17.0 to 2.20.0
@@ -1,2 +0,2 @@ | ||
export declare function trace_from_this_projet_only(err?: Error): string; | ||
export declare function display_trace_from_this_projet_only(err?: Error): void; | ||
export declare function traceFromThisProjectOnly(err?: Error): string; | ||
export declare function displayTraceFromThisProjectOnly(err?: Error): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.display_trace_from_this_projet_only = exports.trace_from_this_projet_only = void 0; | ||
exports.displayTraceFromThisProjectOnly = exports.traceFromThisProjectOnly = void 0; | ||
/** | ||
@@ -9,3 +9,3 @@ * @module node-opcua-debug | ||
const chalk = require("chalk"); | ||
function trace_from_this_projet_only(err) { | ||
function traceFromThisProjectOnly(err) { | ||
const str = []; | ||
@@ -27,7 +27,7 @@ str.push(chalk.cyan.bold(" display_trace_from_this_project_only = ")); | ||
} | ||
exports.trace_from_this_projet_only = trace_from_this_projet_only; | ||
function display_trace_from_this_projet_only(err) { | ||
console.log(trace_from_this_projet_only(err)); | ||
exports.traceFromThisProjectOnly = traceFromThisProjectOnly; | ||
function displayTraceFromThisProjectOnly(err) { | ||
console.log(traceFromThisProjectOnly(err)); | ||
} | ||
exports.display_trace_from_this_projet_only = display_trace_from_this_projet_only; | ||
exports.displayTraceFromThisProjectOnly = displayTraceFromThisProjectOnly; | ||
//# sourceMappingURL=display_trace.js.map |
/// <reference types="node" /> | ||
export declare function hexDump(buffer: Buffer | null, width?: number, maxSize?: number): any; | ||
export declare function hexDump(buffer: Buffer | null, width?: number, maxSize?: number): string; |
/** | ||
* @module node-opcua-debug | ||
*/ | ||
export { trace_from_this_projet_only, display_trace_from_this_projet_only } from "./display_trace"; | ||
export { traceFromThisProjectOnly, displayTraceFromThisProjectOnly } from "./display_trace"; | ||
export { checkDebugFlag, setDebugFlag, make_debugLog, make_errorLog } from "./make_loggers"; | ||
export { getTempFilename } from "./get_temp_filename"; | ||
export { makebuffer_from_trace, inlineText } from "./makebuffer_from_trace"; | ||
export { hexDump } from "./hexDump"; | ||
export { redirectToFile } from "./redirect_to_file"; | ||
export { dump, dumpIf } from "./dump_if"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.dumpIf = exports.dump = exports.redirectToFile = exports.hexDump = exports.inlineText = exports.makebuffer_from_trace = exports.getTempFilename = exports.make_errorLog = exports.make_debugLog = exports.setDebugFlag = exports.checkDebugFlag = exports.display_trace_from_this_projet_only = exports.trace_from_this_projet_only = void 0; | ||
exports.dumpIf = exports.dump = exports.hexDump = exports.inlineText = exports.makebuffer_from_trace = exports.make_errorLog = exports.make_debugLog = exports.setDebugFlag = exports.checkDebugFlag = exports.displayTraceFromThisProjectOnly = exports.traceFromThisProjectOnly = void 0; | ||
/** | ||
@@ -8,4 +8,4 @@ * @module node-opcua-debug | ||
var display_trace_1 = require("./display_trace"); | ||
Object.defineProperty(exports, "trace_from_this_projet_only", { enumerable: true, get: function () { return display_trace_1.trace_from_this_projet_only; } }); | ||
Object.defineProperty(exports, "display_trace_from_this_projet_only", { enumerable: true, get: function () { return display_trace_1.display_trace_from_this_projet_only; } }); | ||
Object.defineProperty(exports, "traceFromThisProjectOnly", { enumerable: true, get: function () { return display_trace_1.traceFromThisProjectOnly; } }); | ||
Object.defineProperty(exports, "displayTraceFromThisProjectOnly", { enumerable: true, get: function () { return display_trace_1.displayTraceFromThisProjectOnly; } }); | ||
var make_loggers_1 = require("./make_loggers"); | ||
@@ -16,4 +16,2 @@ Object.defineProperty(exports, "checkDebugFlag", { enumerable: true, get: function () { return make_loggers_1.checkDebugFlag; } }); | ||
Object.defineProperty(exports, "make_errorLog", { enumerable: true, get: function () { return make_loggers_1.make_errorLog; } }); | ||
var get_temp_filename_1 = require("./get_temp_filename"); | ||
Object.defineProperty(exports, "getTempFilename", { enumerable: true, get: function () { return get_temp_filename_1.getTempFilename; } }); | ||
var makebuffer_from_trace_1 = require("./makebuffer_from_trace"); | ||
@@ -24,4 +22,2 @@ Object.defineProperty(exports, "makebuffer_from_trace", { enumerable: true, get: function () { return makebuffer_from_trace_1.makebuffer_from_trace; } }); | ||
Object.defineProperty(exports, "hexDump", { enumerable: true, get: function () { return hexDump_1.hexDump; } }); | ||
var redirect_to_file_1 = require("./redirect_to_file"); | ||
Object.defineProperty(exports, "redirectToFile", { enumerable: true, get: function () { return redirect_to_file_1.redirectToFile; } }); | ||
var dump_if_1 = require("./dump_if"); | ||
@@ -28,0 +24,0 @@ Object.defineProperty(exports, "dump", { enumerable: true, get: function () { return dump_if_1.dump; } }); |
@@ -9,3 +9,3 @@ "use strict"; | ||
const chalk = require("chalk"); | ||
const path = require("path"); | ||
const path_1 = require("path"); | ||
const util_1 = require("util"); | ||
@@ -17,3 +17,3 @@ const debugFlags = {}; | ||
function extractBasename(name) { | ||
return path.basename(name).replace(/\.(js|ts)$/, ""); | ||
return path_1.basename(name).replace(/\.(js|ts)$/, ""); | ||
} | ||
@@ -43,3 +43,3 @@ function w(str, l) { | ||
/** | ||
* file_line return a 51 caracter string | ||
* file_line return a 51 character string | ||
* @param filename | ||
@@ -46,0 +46,0 @@ * @param callerLine |
{ | ||
"name": "node-opcua-debug", | ||
"version": "2.17.0", | ||
"version": "2.20.0", | ||
"description": "pure nodejs OPCUA SDK - module -debug", | ||
@@ -37,3 +37,3 @@ "scripts": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "545072c8184378254468c383b78e74e7e8e31ab7" | ||
"gitHead": "9bccf4ce0486ec766445e71f9c7e906b329fd423" | ||
} |
@@ -7,4 +7,3 @@ /** | ||
export function trace_from_this_projet_only(err?: Error): string { | ||
export function traceFromThisProjectOnly(err?: Error): string { | ||
const str = []; | ||
@@ -18,4 +17,3 @@ str.push(chalk.cyan.bold(" display_trace_from_this_project_only = ")); | ||
if (stack) { | ||
stack = stack.split("\n").filter((el: string) => | ||
el.match(/node-opcua/) && !el.match(/node_modules/)); | ||
stack = stack.split("\n").filter((el: string) => el.match(/node-opcua/) && !el.match(/node_modules/)); | ||
str.push(chalk.yellow(stack.join("\n"))); | ||
@@ -28,4 +26,4 @@ } else { | ||
export function display_trace_from_this_projet_only(err?: Error): void { | ||
console.log(trace_from_this_projet_only(err)); | ||
export function displayTraceFromThisProjectOnly(err?: Error): void { | ||
console.log(traceFromThisProjectOnly(err)); | ||
} |
@@ -6,3 +6,3 @@ /** | ||
const hexy = require("hexy"); | ||
export function hexDump(buffer: Buffer | null, width: number = 32, maxSize: number = 1024) { | ||
export function hexDump(buffer: Buffer | null, width: number = 32, maxSize: number = 1024): string { | ||
if (!buffer) { | ||
@@ -9,0 +9,0 @@ return "<>"; |
/** | ||
* @module node-opcua-debug | ||
*/ | ||
export { trace_from_this_projet_only, display_trace_from_this_projet_only } from "./display_trace"; | ||
export { | ||
checkDebugFlag, | ||
setDebugFlag, | ||
make_debugLog, | ||
make_errorLog | ||
} from "./make_loggers"; | ||
export { getTempFilename } from "./get_temp_filename"; | ||
export { traceFromThisProjectOnly, displayTraceFromThisProjectOnly } from "./display_trace"; | ||
export { checkDebugFlag, setDebugFlag, make_debugLog, make_errorLog } from "./make_loggers"; | ||
export { makebuffer_from_trace, inlineText } from "./makebuffer_from_trace"; | ||
export { hexDump } from "./hexDump"; | ||
export { redirectToFile } from "./redirect_to_file"; | ||
export { dump, dumpIf} from "./dump_if"; | ||
export { dump, dumpIf } from "./dump_if"; |
@@ -6,3 +6,3 @@ /** | ||
import * as chalk from "chalk"; | ||
import * as path from "path"; | ||
import { basename } from "path"; | ||
import { format } from "util"; | ||
@@ -17,4 +17,4 @@ | ||
function extractBasename(name: string) { | ||
return path.basename(name).replace(/\.(js|ts)$/, ""); | ||
function extractBasename(name: string): string { | ||
return basename(name).replace(/\.(js|ts)$/, ""); | ||
} | ||
@@ -51,3 +51,3 @@ | ||
/** | ||
* file_line return a 51 caracter string | ||
* file_line return a 51 character string | ||
* @param filename | ||
@@ -54,0 +54,0 @@ * @param callerLine |
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
46883
49
816
17