node-opcua-extension-object
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 }); | ||
@@ -13,3 +16,3 @@ exports.decodeExtensionObject = exports.OpaqueStructure = exports.encodeExtensionObject = exports.ExtensionObject = void 0; | ||
const warningLog = (0, node_opcua_debug_1.make_warningLog)(__filename); | ||
const chalk = require("chalk"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
/* tslint:disable:no-empty */ | ||
@@ -21,2 +24,3 @@ class ExtensionObject extends node_opcua_factory_1.BaseUAObject { | ||
} | ||
exports.ExtensionObject = ExtensionObject; | ||
ExtensionObject.schema = new node_opcua_factory_1.StructuredTypeSchema({ | ||
@@ -29,3 +33,2 @@ baseType: "", | ||
}); | ||
exports.ExtensionObject = ExtensionObject; | ||
ExtensionObject.prototype.schema = ExtensionObject.schema; | ||
@@ -83,3 +86,3 @@ // OPC-UA Part 6 - $5.2.2.15 ExtensionObject | ||
if (!encodingDefaultBinary) { | ||
debugLog(chalk.yellow("encoding ExtObj "), object); | ||
debugLog(chalk_1.default.yellow("encoding ExtObj "), object); | ||
throw new Error("Cannot find encodingDefaultBinary for this object : " + object.schema.name); | ||
@@ -89,3 +92,3 @@ } | ||
if (encodingDefaultBinary.isEmpty()) { | ||
debugLog(chalk.yellow("encoding ExtObj "), object.constructor.encodingDefaultBinary.toString()); | ||
debugLog(chalk_1.default.yellow("encoding ExtObj "), object.constructor.encodingDefaultBinary.toString()); | ||
throw new Error("Cannot find encodingDefaultBinary for this object : " + object.schema.name); | ||
@@ -95,3 +98,3 @@ } | ||
if ((0, node_opcua_factory_1.is_internal_id)(encodingDefaultBinary.value)) { | ||
debugLog(chalk.yellow("encoding ExtObj "), object.constructor.encodingDefaultBinary.toString(), object.schema.name); | ||
debugLog(chalk_1.default.yellow("encoding ExtObj "), object.constructor.encodingDefaultBinary.toString(), object.schema.name); | ||
throw new Error("Cannot find valid OPCUA encodingDefaultBinary for this object : " + object.schema.name); | ||
@@ -176,3 +179,3 @@ } | ||
// causing 2 extra member to be added. | ||
debugLog(chalk.bgWhiteBright.red("=========================================")); | ||
debugLog(chalk_1.default.bgWhiteBright.red("=========================================")); | ||
warningLog("WARNING => decodeExtensionObject: Extension object decoding error on ", object === null || object === void 0 ? void 0 : object.constructor.name, " expected size was", length, "but only this amount of bytes have been read :", stream.length - streamLengthBefore, "\n encoding nodeId = ", nodeId.toString(), "encodingType = ", encodingType); | ||
@@ -179,0 +182,0 @@ stream.length = streamLengthBefore + length; |
{ | ||
"name": "node-opcua-extension-object", | ||
"version": "2.99.0", | ||
"version": "2.104.0", | ||
"description": "pure nodejs OPCUA SDK - module extension-object", | ||
@@ -16,7 +16,7 @@ "main": "./dist/index.js", | ||
"chalk": "4.1.2", | ||
"node-opcua-basic-types": "2.99.0", | ||
"node-opcua-binary-stream": "2.98.1", | ||
"node-opcua-debug": "2.99.0", | ||
"node-opcua-factory": "2.99.0", | ||
"node-opcua-nodeid": "2.99.0" | ||
"node-opcua-basic-types": "2.104.0", | ||
"node-opcua-binary-stream": "2.104.0", | ||
"node-opcua-debug": "2.104.0", | ||
"node-opcua-factory": "2.104.0", | ||
"node-opcua-nodeid": "2.104.0" | ||
}, | ||
@@ -38,3 +38,3 @@ "author": "Etienne Rossignon", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "90ce9f5b44d74198d84a384de622dfa94fd05c0c", | ||
"gitHead": "3cd6d355e8b3c66822d08a3ca682659ea5d1a55d", | ||
"files": [ | ||
@@ -41,0 +41,0 @@ "dist", |
@@ -20,3 +20,3 @@ /** | ||
import * as chalk from "chalk"; | ||
import chalk from "chalk"; | ||
@@ -23,0 +23,0 @@ /* tslint:disable:no-empty */ |
Sorry, the diff of this file is not supported yet
25967
429
+ Addednode-opcua-assert@2.104.0(transitive)
+ Addednode-opcua-basic-types@2.104.0(transitive)
+ Addednode-opcua-binary-stream@2.104.0(transitive)
+ Addednode-opcua-buffer-utils@2.104.0(transitive)
+ Addednode-opcua-date-time@2.104.0(transitive)
+ Addednode-opcua-debug@2.104.0(transitive)
+ Addednode-opcua-enum@2.104.0(transitive)
+ Addednode-opcua-factory@2.104.0(transitive)
+ Addednode-opcua-nodeid@2.104.0(transitive)
+ Addednode-opcua-status-code@2.104.0(transitive)
+ Addednode-opcua-utils@2.104.0(transitive)
- Removednode-opcua-assert@2.98.1(transitive)
- Removednode-opcua-basic-types@2.99.0(transitive)
- Removednode-opcua-binary-stream@2.98.1(transitive)
- Removednode-opcua-buffer-utils@2.98.1(transitive)
- Removednode-opcua-date-time@2.99.0(transitive)
- Removednode-opcua-debug@2.99.0(transitive)
- Removednode-opcua-enum@2.98.1(transitive)
- Removednode-opcua-factory@2.99.0(transitive)
- Removednode-opcua-nodeid@2.99.0(transitive)
- Removednode-opcua-status-code@2.98.1(transitive)
- Removednode-opcua-utils@2.98.1(transitive)
Updatednode-opcua-debug@2.104.0
Updatednode-opcua-factory@2.104.0
Updatednode-opcua-nodeid@2.104.0