node-opcua-debug
Advanced tools
Comparing version 2.20.0 to 2.22.0
@@ -8,5 +8,5 @@ "use strict"; | ||
// tslint:disable:no-console | ||
const util = require("util"); | ||
const util_1 = require("util"); | ||
function dump(obj) { | ||
console.log("\n", util.inspect(JSON.parse(JSON.stringify(obj)), { colors: true, depth: 10 })); | ||
console.log("\n", util_1.inspect(JSON.parse(JSON.stringify(obj)), { colors: true, depth: 10 })); | ||
} | ||
@@ -13,0 +13,0 @@ exports.dump = dump; |
/** | ||
* @module node-opcua-debug | ||
*/ | ||
export { removeDecoration } from "./remove_decoration"; | ||
export { traceFromThisProjectOnly, displayTraceFromThisProjectOnly } from "./display_trace"; | ||
@@ -5,0 +6,0 @@ export { checkDebugFlag, setDebugFlag, make_debugLog, make_errorLog } from "./make_loggers"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
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; | ||
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 = exports.removeDecoration = void 0; | ||
/** | ||
* @module node-opcua-debug | ||
*/ | ||
var remove_decoration_1 = require("./remove_decoration"); | ||
Object.defineProperty(exports, "removeDecoration", { enumerable: true, get: function () { return remove_decoration_1.removeDecoration; } }); | ||
var display_trace_1 = require("./display_trace"); | ||
@@ -8,0 +10,0 @@ Object.defineProperty(exports, "traceFromThisProjectOnly", { enumerable: true, get: function () { return display_trace_1.traceFromThisProjectOnly; } }); |
@@ -10,3 +10,3 @@ "use strict"; | ||
const fs = require("fs"); | ||
const util = require("util"); | ||
const util_1 = require("util"); | ||
const node_opcua_assert_1 = require("node-opcua-assert"); | ||
@@ -29,3 +29,3 @@ const get_temp_filename_1 = require("./get_temp_filename"); | ||
function _write_to_file(...args) { | ||
const msg = util.format.apply(null, args); | ||
const msg = util_1.format.apply(null, args); | ||
f.write(msg + "\n"); | ||
@@ -32,0 +32,0 @@ if (process.env.DEBUG) { |
{ | ||
"name": "node-opcua-debug", | ||
"version": "2.20.0", | ||
"version": "2.22.0", | ||
"description": "pure nodejs OPCUA SDK - module -debug", | ||
@@ -13,4 +13,4 @@ "scripts": { | ||
"hexy": "^0.3.0", | ||
"node-opcua-assert": "2.16.0", | ||
"node-opcua-buffer-utils": "2.17.0" | ||
"node-opcua-assert": "2.22.0", | ||
"node-opcua-buffer-utils": "2.22.0" | ||
}, | ||
@@ -38,3 +38,3 @@ "devDependencies": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "9bccf4ce0486ec766445e71f9c7e906b329fd423" | ||
"gitHead": "8eb6d67ecc89e34aa5bb99e9d6025aec2fa79743" | ||
} |
@@ -7,3 +7,3 @@ /** | ||
import * as fs from "fs"; | ||
import * as util from "util"; | ||
import { format } from "util"; | ||
@@ -33,3 +33,3 @@ import { assert } from "node-opcua-assert"; | ||
function _write_to_file(...args: [any, ...any[]]) { | ||
const msg = util.format.apply(null, args); | ||
const msg = format.apply(null, args); | ||
f.write(msg + "\n"); | ||
@@ -36,0 +36,0 @@ if (process.env.DEBUG) { |
@@ -5,6 +5,6 @@ /** | ||
// tslint:disable:no-console | ||
import * as util from "util"; | ||
import { inspect } from "util"; | ||
export function dump(obj: any) { | ||
console.log("\n", util.inspect(JSON.parse(JSON.stringify(obj)), { colors: true, depth: 10 })); | ||
console.log("\n", inspect(JSON.parse(JSON.stringify(obj)), { colors: true, depth: 10 })); | ||
} | ||
@@ -11,0 +11,0 @@ export function dumpIf(condition: boolean, obj: any) { |
/** | ||
* @module node-opcua-debug | ||
*/ | ||
export { removeDecoration } from "./remove_decoration"; | ||
export { traceFromThisProjectOnly, displayTraceFromThisProjectOnly } from "./display_trace"; | ||
@@ -5,0 +6,0 @@ export { checkDebugFlag, setDebugFlag, make_debugLog, make_errorLog } from "./make_loggers"; |
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
48162
53
833
+ Addednode-opcua-assert@2.22.0(transitive)
+ Addednode-opcua-buffer-utils@2.22.0(transitive)
- Removednode-opcua-assert@2.16.0(transitive)
- Removednode-opcua-buffer-utils@2.17.0(transitive)
Updatednode-opcua-assert@2.22.0