New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-extension-object

Package Overview
Dependencies
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-extension-object - npm Package Compare versions

Comparing version 2.99.0 to 2.104.0

15

dist/extension_object.js
"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;

14

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc