Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-extension-object

Package Overview
Dependencies
Maintainers
1
Versions
184
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.4.0 to 2.4.2

2

dist/extension_object.d.ts

@@ -9,3 +9,3 @@ /// <reference types="node" />

}
export declare function encodeExtensionObject(object: ExtensionObject | null, stream: OutputBinaryStream): void;
export declare function encodeExtensionObject(object: BaseUAObject | null, stream: OutputBinaryStream): void;
export declare class OpaqueStructure extends ExtensionObject {

@@ -12,0 +12,0 @@ nodeId: NodeId;

@@ -61,3 +61,3 @@ "use strict";

/* istanbul ignore next */
if (!(object instanceof ExtensionObject)) {
if (!(object instanceof node_opcua_factory_1.BaseUAObject)) {
throw new Error("Expecting a extension object");

@@ -75,3 +75,3 @@ }

debugLog(chalk.yellow("encoding ExtObj "), object);
throw new Error("Cannot find encodingDefaultBinary for this object");
throw new Error("Cannot find encodingDefaultBinary for this object : " + object.schema.name);
}

@@ -81,3 +81,3 @@ /* istanbul ignore next */

debugLog(chalk.yellow("encoding ExtObj "), object.constructor.encodingDefaultBinary.toString());
throw new Error("Cannot find encodingDefaultBinary for this object");
throw new Error("Cannot find encodingDefaultBinary for this object : " + object.schema.name);
}

@@ -87,3 +87,3 @@ /* istanbul ignore next */

debugLog(chalk.yellow("encoding ExtObj "), object.constructor.encodingDefaultBinary.toString(), object.schema.name);
throw new Error("Cannot find valid OPCUA encodingDefaultBinary for this object");
throw new Error("Cannot find valid OPCUA encodingDefaultBinary for this object : " + object.schema.name);
}

@@ -90,0 +90,0 @@ node_opcua_basic_types_1.encodeNodeId(encodingDefaultBinary, stream);

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

{
"name": "node-opcua-extension-object",
"version": "2.4.0",
"version": "2.4.2",
"description": "pure nodejs OPCUA SDK - module -extension-object",

@@ -15,7 +15,7 @@ "main": "./dist/index.js",

"node-opcua-assert": "^2.3.0",
"node-opcua-basic-types": "^2.4.0",
"node-opcua-binary-stream": "^2.3.0",
"node-opcua-debug": "^2.3.0",
"node-opcua-factory": "^2.4.0",
"node-opcua-nodeid": "^2.3.0"
"node-opcua-basic-types": "^2.4.2",
"node-opcua-binary-stream": "^2.4.2",
"node-opcua-debug": "^2.4.2",
"node-opcua-factory": "^2.4.2",
"node-opcua-nodeid": "^2.4.2"
},

@@ -37,3 +37,3 @@ "author": "Etienne Rossignon",

"homepage": "http://node-opcua.github.io/",
"gitHead": "21f5967e799ef2b4d6491b8fc670964127c11431"
"gitHead": "6e4967fd20a09317ddd00098bcfe93e92c1df510"
}

@@ -68,3 +68,3 @@ /**

export function encodeExtensionObject(object: ExtensionObject | null, stream: OutputBinaryStream): void {
export function encodeExtensionObject(object: BaseUAObject | null, stream: OutputBinaryStream): void {

@@ -77,3 +77,3 @@ if (!object) {

/* istanbul ignore next */
if (!((object as any) instanceof ExtensionObject)) {
if (!((object as any) instanceof BaseUAObject)) {
throw new Error("Expecting a extension object");

@@ -91,3 +91,3 @@ }

debugLog(chalk.yellow("encoding ExtObj "), object);
throw new Error("Cannot find encodingDefaultBinary for this object");
throw new Error("Cannot find encodingDefaultBinary for this object : " + object.schema.name);
}

@@ -97,3 +97,3 @@ /* istanbul ignore next */

debugLog(chalk.yellow("encoding ExtObj "), (object.constructor as any).encodingDefaultBinary.toString());
throw new Error("Cannot find encodingDefaultBinary for this object");
throw new Error("Cannot find encodingDefaultBinary for this object : " + object.schema.name);
}

@@ -104,3 +104,3 @@ /* istanbul ignore next */

(object.constructor as any).encodingDefaultBinary.toString(), object.schema.name);
throw new Error("Cannot find valid OPCUA encodingDefaultBinary for this object");
throw new Error("Cannot find valid OPCUA encodingDefaultBinary for this object : " + object.schema.name);
}

@@ -107,0 +107,0 @@

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ {

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

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