node-opcua-factory
Advanced tools
Comparing version 2.112.0 to 2.113.0
@@ -176,5 +176,5 @@ "use strict"; | ||
dump() { | ||
console.log(" dumping registered factories"); | ||
console.log(" Factory ", [...this.structuredTypesNames()].sort().forEach((e) => e)); | ||
console.log(" done"); | ||
warningLog(" dumping registered factories"); | ||
warningLog(" Factory ", [...this.structuredTypesNames()].sort().forEach((e) => e)); | ||
warningLog(" done"); | ||
} | ||
@@ -245,5 +245,5 @@ registerAbstractStructure(dataTypeNodeId, className, schema) { | ||
const structureInfo = this.getStructureInfoByTypeName(className); | ||
if (doDebug) { | ||
debugLog(" associateWithBinaryEncoding ", className, expandedNodeId.toString()); | ||
} | ||
// if (doDebug) { | ||
// debugLog(" associateWithBinaryEncoding ", className, expandedNodeId.toString()); | ||
// } | ||
verifyExpandedNodeId(expandedNodeId); | ||
@@ -250,0 +250,0 @@ const expandedNodeIdKey = makeExpandedNodeIdKey(expandedNodeId); |
@@ -20,2 +20,3 @@ "use strict"; | ||
const warningLog = (0, node_opcua_debug_1.make_warningLog)(__filename); | ||
const errorLog = (0, node_opcua_debug_1.make_errorLog)(__filename); | ||
function figureOutFieldCategory(field, dataTypeFactory) { | ||
@@ -72,4 +73,5 @@ const fieldType = field.fieldType; | ||
returnValue = dataTypeFactory.getStructuredTypeSchema(fieldTypeWithoutNS); | ||
// istanbul ignore next | ||
if (returnValue) { | ||
console.log("Why ?"); | ||
warningLog("Why can't we find a basic type here ?"); | ||
} | ||
@@ -269,7 +271,7 @@ } | ||
// tslint:disable:no-console | ||
console.log("expected schema", schema.name); | ||
console.log(chalk_1.default.yellow("possible fields= "), possibleFields.sort().join(" ")); | ||
console.log(chalk_1.default.red("current fields= "), currentFields.sort().join(" ")); | ||
console.log(chalk_1.default.cyan("invalid_options_fields= "), invalidOptionsFields.sort().join(" ")); | ||
console.log("options = ", options); | ||
errorLog("expected schema", schema.name); | ||
errorLog(chalk_1.default.yellow("possible fields= "), possibleFields.sort().join(" ")); | ||
errorLog(chalk_1.default.red("current fields= "), currentFields.sort().join(" ")); | ||
errorLog(chalk_1.default.cyan("invalid_options_fields= "), invalidOptionsFields.sort().join(" ")); | ||
errorLog("options = ", options); | ||
} | ||
@@ -279,4 +281,4 @@ /* istanbul ignore next */ | ||
// tslint:disable:no-console | ||
console.log(chalk_1.default.yellow("possible fields= "), possibleFields.sort().join(" ")); | ||
console.log(chalk_1.default.red("current fields= "), currentFields.sort().join(" ")); | ||
errorLog(chalk_1.default.yellow("possible fields= "), possibleFields.sort().join(" ")); | ||
errorLog(chalk_1.default.red("current fields= "), currentFields.sort().join(" ")); | ||
throw new Error(" invalid field found in option :" + JSON.stringify(invalidOptionsFields)); | ||
@@ -283,0 +285,0 @@ } |
{ | ||
"name": "node-opcua-factory", | ||
"version": "2.112.0", | ||
"version": "2.113.0", | ||
"description": "pure nodejs OPCUA SDK - module factory", | ||
@@ -20,9 +20,9 @@ "main": "./dist/index.js", | ||
"node-opcua-assert": "2.105.0", | ||
"node-opcua-basic-types": "2.111.0", | ||
"node-opcua-basic-types": "2.113.0", | ||
"node-opcua-binary-stream": "2.110.0", | ||
"node-opcua-constants": "2.98.1", | ||
"node-opcua-debug": "2.110.0", | ||
"node-opcua-debug": "2.113.0", | ||
"node-opcua-enum": "2.110.0", | ||
"node-opcua-guid": "2.98.1", | ||
"node-opcua-nodeid": "2.110.0", | ||
"node-opcua-nodeid": "2.113.0", | ||
"node-opcua-status-code": "2.110.0", | ||
@@ -46,3 +46,3 @@ "node-opcua-utils": "2.110.0" | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "af1c21306612b11aa4265e9e6c094c91fe9beebb", | ||
"gitHead": "36db335391fedd39726990a1b37f7768da16466a", | ||
"files": [ | ||
@@ -49,0 +49,0 @@ "dist", |
@@ -186,8 +186,8 @@ /** | ||
public dump(): void { | ||
console.log(" dumping registered factories"); | ||
console.log( | ||
warningLog(" dumping registered factories"); | ||
warningLog( | ||
" Factory ", | ||
[...this.structuredTypesNames()].sort().forEach((e) => e) | ||
); | ||
console.log(" done"); | ||
warningLog(" done"); | ||
} | ||
@@ -265,5 +265,5 @@ | ||
const structureInfo = this.getStructureInfoByTypeName(className); | ||
if (doDebug) { | ||
debugLog(" associateWithBinaryEncoding ", className, expandedNodeId.toString()); | ||
} | ||
// if (doDebug) { | ||
// debugLog(" associateWithBinaryEncoding ", className, expandedNodeId.toString()); | ||
// } | ||
@@ -270,0 +270,0 @@ verifyExpandedNodeId(expandedNodeId); |
@@ -8,3 +8,3 @@ /** | ||
import { BinaryStream } from "node-opcua-binary-stream"; | ||
import { make_warningLog } from "node-opcua-debug"; | ||
import { make_errorLog, make_warningLog } from "node-opcua-debug"; | ||
import { ExpandedNodeId, NodeId } from "node-opcua-nodeid"; | ||
@@ -27,3 +27,5 @@ import { lowerFirstLetter } from "node-opcua-utils"; | ||
const warningLog = make_warningLog(__filename); | ||
const errorLog = make_errorLog(__filename); | ||
function figureOutFieldCategory(field: FieldInterfaceOptions, dataTypeFactory: DataTypeFactory): FieldCategory { | ||
@@ -89,4 +91,6 @@ const fieldType = field.fieldType; | ||
returnValue = dataTypeFactory.getStructuredTypeSchema(fieldTypeWithoutNS); | ||
// istanbul ignore next | ||
if (returnValue) { | ||
console.log("Why ?"); | ||
warningLog("Why can't we find a basic type here ?"); | ||
} | ||
@@ -342,7 +346,7 @@ } | ||
// tslint:disable:no-console | ||
console.log("expected schema", schema.name); | ||
console.log(chalk.yellow("possible fields= "), possibleFields.sort().join(" ")); | ||
console.log(chalk.red("current fields= "), currentFields.sort().join(" ")); | ||
console.log(chalk.cyan("invalid_options_fields= "), invalidOptionsFields.sort().join(" ")); | ||
console.log("options = ", options); | ||
errorLog("expected schema", schema.name); | ||
errorLog(chalk.yellow("possible fields= "), possibleFields.sort().join(" ")); | ||
errorLog(chalk.red("current fields= "), currentFields.sort().join(" ")); | ||
errorLog(chalk.cyan("invalid_options_fields= "), invalidOptionsFields.sort().join(" ")); | ||
errorLog("options = ", options); | ||
} | ||
@@ -352,4 +356,4 @@ /* istanbul ignore next */ | ||
// tslint:disable:no-console | ||
console.log(chalk.yellow("possible fields= "), possibleFields.sort().join(" ")); | ||
console.log(chalk.red("current fields= "), currentFields.sort().join(" ")); | ||
errorLog(chalk.yellow("possible fields= "), possibleFields.sort().join(" ")); | ||
errorLog(chalk.red("current fields= "), currentFields.sort().join(" ")); | ||
throw new Error(" invalid field found in option :" + JSON.stringify(invalidOptionsFields)); | ||
@@ -356,0 +360,0 @@ } |
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
250565
4707
+ Addednode-opcua-basic-types@2.113.0(transitive)
+ Addednode-opcua-date-time@2.113.0(transitive)
+ Addednode-opcua-debug@2.113.0(transitive)
+ Addednode-opcua-nodeid@2.113.0(transitive)
- Removednode-opcua-basic-types@2.111.0(transitive)
- Removednode-opcua-date-time@2.111.0(transitive)
- Removednode-opcua-debug@2.110.0(transitive)
- Removednode-opcua-nodeid@2.110.0(transitive)
Updatednode-opcua-debug@2.113.0
Updatednode-opcua-nodeid@2.113.0