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

node-opcua-basic-types

Package Overview
Dependencies
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-basic-types - npm Package Compare versions

Comparing version 2.47.0 to 2.51.0

2

dist/array.js

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

}
node_opcua_assert_1.assert(Array.isArray(arr));
(0, node_opcua_assert_1.assert)(Array.isArray(arr));
stream.writeUInt32(arr.length);

@@ -22,0 +22,0 @@ for (const value of arr) {

import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
export declare function isValidBoolean(value: any): boolean;
export declare function isValidBoolean(value: unknown): boolean;
export declare function randomBoolean(): boolean;

@@ -4,0 +4,0 @@ export declare function encodeBoolean(value: boolean, stream: OutputBinaryStream): void;

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

function encodeBoolean(value, stream) {
node_opcua_assert_1.assert(isValidBoolean(value));
(0, node_opcua_assert_1.assert)(isValidBoolean(value));
stream.writeUInt8(value ? 1 : 0);

@@ -20,0 +20,0 @@ }

@@ -6,7 +6,7 @@ /// <reference types="node" />

import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
export declare function isValidByteString(value: any): boolean;
export declare function isValidByteString(value: unknown): boolean;
export declare type ByteString = Buffer;
export declare function randomByteString(value: any, len: number): ByteString;
export declare function randomByteString(value: unknown, len: number): ByteString;
export declare function encodeByteString(byteString: ByteString, stream: OutputBinaryStream): void;
export declare function decodeByteString(stream: BinaryStream, _value?: ByteString): ByteString;
export declare function coerceByteString(value: number[] | string | ByteString): ByteString;

@@ -11,6 +11,6 @@ "use strict";

function randomByteString(value, len) {
len = len || utils_1.getRandomInt(1, 200);
const b = node_opcua_buffer_utils_1.createFastUninitializedBuffer(len);
len = len || (0, utils_1.getRandomInt)(1, 200);
const b = (0, node_opcua_buffer_utils_1.createFastUninitializedBuffer)(len);
for (let i = 0; i < len; i++) {
b.writeUInt8(utils_1.getRandomInt(0, 255), i);
b.writeUInt8((0, utils_1.getRandomInt)(0, 255), i);
}

@@ -17,0 +17,0 @@ return b;

@@ -5,3 +5,3 @@ /***

import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
export declare function isValidFloat(value: any): boolean;
export declare function isValidFloat(value: number): boolean;
export declare type Float = number;

@@ -11,8 +11,8 @@ export declare function randomFloat(): Float;

export declare function decodeFloat(stream: BinaryStream, value?: number): Float;
export declare function isValidDouble(value: any): boolean;
export declare function isValidDouble(value: number): boolean;
export declare type Double = number;
export declare function randomDouble(): Double;
export declare function encodeDouble(value: Double, stream: OutputBinaryStream): void;
export declare function decodeDouble(stream: BinaryStream, value?: number): number;
export declare function decodeDouble(stream: BinaryStream, value?: number): Double;
export declare function coerceFloat(value: number | null | string): Float;
export declare function coerceDouble(value: number | null | string): Double;

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

for (let i = 0; i < 20; i++) {
b.writeUInt8(utils_1.getRandomInt(0, 255));
b.writeUInt8((0, utils_1.getRandomInt)(0, 255));
}

@@ -40,8 +40,8 @@ b.rewind();

};
node_opcua_assert_1.default(hexCharToNum("A".charCodeAt(0)) === 10);
node_opcua_assert_1.default(hexCharToNum("a".charCodeAt(0)) === 10);
node_opcua_assert_1.default(hexCharToNum("b".charCodeAt(0)) === 11);
node_opcua_assert_1.default(hexCharToNum("B".charCodeAt(0)) === 11);
node_opcua_assert_1.default(hexCharToNum("0".charCodeAt(0)) === 0);
node_opcua_assert_1.default(hexCharToNum("9".charCodeAt(0)) === 9);
(0, node_opcua_assert_1.default)(hexCharToNum("A".charCodeAt(0)) === 10);
(0, node_opcua_assert_1.default)(hexCharToNum("a".charCodeAt(0)) === 10);
(0, node_opcua_assert_1.default)(hexCharToNum("b".charCodeAt(0)) === 11);
(0, node_opcua_assert_1.default)(hexCharToNum("B".charCodeAt(0)) === 11);
(0, node_opcua_assert_1.default)(hexCharToNum("0".charCodeAt(0)) === 0);
(0, node_opcua_assert_1.default)(hexCharToNum("9".charCodeAt(0)) === 9);
const doDebug = false;

@@ -90,3 +90,3 @@ function write_UInt32(stream, guid, starts) {

function encodeGuid(guid, stream) {
if (!node_opcua_guid_1.isValidGuid(guid)) {
if (!(0, node_opcua_guid_1.isValidGuid)(guid)) {
throw new Error(" Invalid GUID : '" + JSON.stringify(guid) + "'");

@@ -93,0 +93,0 @@ }

import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
export declare function isValidUInt16(value: any): boolean;
export declare function isValidUInt16(value: number): boolean;
export declare type UInt8 = number;

@@ -16,15 +16,15 @@ export declare type UInt16 = number;

export declare function decodeUInt16(stream: BinaryStream, value?: number): UInt16;
export declare function isValidInt16(value: any): boolean;
export declare function isValidInt16(value: number): boolean;
export declare function randomInt16(): Int16;
export declare function encodeInt16(value: Int16, stream: OutputBinaryStream): void;
export declare function decodeInt16(stream: BinaryStream, value?: number): Int16;
export declare function isValidInt32(value: any): boolean;
export declare function isValidInt32(value: number): boolean;
export declare function randomInt32(): Int32;
export declare function encodeInt32(value: Int32, stream: OutputBinaryStream): void;
export declare function decodeInt32(stream: BinaryStream, value?: number): Int32;
export declare function isValidUInt32(value: any): boolean;
export declare function isValidUInt32(value: number): boolean;
export declare function randomUInt32(): UInt32;
export declare function encodeUInt32(value: UInt32, stream: OutputBinaryStream): void;
export declare function decodeUInt32(stream: BinaryStream, value?: number): UInt32;
export declare function isValidInt8(value: any): boolean;
export declare function isValidInt8(value: number): boolean;
export declare function randomInt8(): Int8;

@@ -37,3 +37,3 @@ export declare function encodeInt8(value: Int8, stream: OutputBinaryStream): void;

export declare const decodeSByte: typeof decodeInt8;
export declare function isValidUInt8(value: any): boolean;
export declare function isValidUInt8(value: number): boolean;
export declare function randomUInt8(): UInt8;

@@ -46,7 +46,7 @@ export declare function encodeUInt8(value: UInt8, stream: OutputBinaryStream): void;

export declare const decodeByte: typeof decodeUInt8;
export declare function isValidUInt64(value: any): boolean;
export declare function isValidUInt64(value?: number | number[]): boolean;
export declare function randomUInt64(): UInt64;
export declare function encodeUInt64(value: UInt64 | number, stream: OutputBinaryStream): void;
export declare function decodeUInt64(stream: BinaryStream, value?: UInt64): UInt64;
export declare function constructInt64(high: UInt32, low: UInt32): number[];
export declare function constructInt64(high: UInt32, low: UInt32): Int64;
export declare function coerceUInt64(value: number | UInt64 | Int32 | string | null): UInt64;

@@ -53,0 +53,0 @@ export declare function randomInt64(): Int64;

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

function randomUInt16() {
return utils_1.getRandomInt(0, 0xffff);
return (0, utils_1.getRandomInt)(0, 0xffff);
}

@@ -39,7 +39,7 @@ exports.randomUInt16 = randomUInt16;

function randomInt16() {
return utils_1.getRandomInt(-0x8000, 0x7fff);
return (0, utils_1.getRandomInt)(-0x8000, 0x7fff);
}
exports.randomInt16 = randomInt16;
function encodeInt16(value, stream) {
node_opcua_assert_1.assert(isFinite(value));
(0, node_opcua_assert_1.assert)(isFinite(value));
stream.writeInt16(value);

@@ -60,7 +60,7 @@ }

function randomInt32() {
return utils_1.getRandomInt(-0x80000000, 0x7fffffff);
return (0, utils_1.getRandomInt)(-0x80000000, 0x7fffffff);
}
exports.randomInt32 = randomInt32;
function encodeInt32(value, stream) {
node_opcua_assert_1.assert(isFinite(value));
(0, node_opcua_assert_1.assert)(isFinite(value));
stream.writeInteger(value);

@@ -81,3 +81,3 @@ }

function randomUInt32() {
return utils_1.getRandomInt(0, 0xffffffff);
return (0, utils_1.getRandomInt)(0, 0xffffffff);
}

@@ -101,7 +101,7 @@ exports.randomUInt32 = randomUInt32;

function randomInt8() {
return utils_1.getRandomInt(-0x7f, 0x7e);
return (0, utils_1.getRandomInt)(-0x7f, 0x7e);
}
exports.randomInt8 = randomInt8;
function encodeInt8(value, stream) {
node_opcua_assert_1.assert(isValidInt8(value));
(0, node_opcua_assert_1.assert)(isValidInt8(value));
stream.writeInt8(value);

@@ -126,3 +126,3 @@ }

function randomUInt8() {
return utils_1.getRandomInt(0x00, 0xff);
return (0, utils_1.getRandomInt)(0x00, 0xff);
}

@@ -147,3 +147,3 @@ exports.randomUInt8 = randomUInt8;

function randomUInt64() {
return [utils_1.getRandomInt(0, 0xffffffff), utils_1.getRandomInt(0, 0xffffffff)];
return [(0, utils_1.getRandomInt)(0, 0xffffffff), (0, utils_1.getRandomInt)(0, 0xffffffff)];
}

@@ -170,4 +170,4 @@ exports.randomUInt64 = randomUInt64;

function constructInt64(high, low) {
node_opcua_assert_1.assert(low >= 0 && low <= 0xffffffff);
node_opcua_assert_1.assert(high >= 0 && high <= 0xffffffff);
(0, node_opcua_assert_1.assert)(low >= 0 && low <= 0xffffffff);
(0, node_opcua_assert_1.assert)(high >= 0 && high <= 0xffffffff);
return [high, low];

@@ -184,4 +184,4 @@ }

if (value instanceof Array) {
node_opcua_assert_1.assert(typeof value[0] === "number");
node_opcua_assert_1.assert(typeof value[1] === "number");
(0, node_opcua_assert_1.assert)(typeof value[0] === "number");
(0, node_opcua_assert_1.assert)(typeof value[1] === "number");
return value;

@@ -207,3 +207,3 @@ }

// High, low
return [utils_1.getRandomInt(0, 0xffffffff), utils_1.getRandomInt(0, 0xffffffff)];
return [(0, utils_1.getRandomInt)(0, 0xffffffff), (0, utils_1.getRandomInt)(0, 0xffffffff)];
}

@@ -279,3 +279,3 @@ exports.randomInt64 = randomInt64;

}
if (value && value.hasOwnProperty("value")) {
if (value && Object.prototype.hasOwnProperty.call(value, "value")) {
// xx assert(value.constructor.name === "EnumItem");

@@ -282,0 +282,0 @@ return coerceUInt32(value.value);

@@ -6,5 +6,5 @@ /***

import { UAString } from "./string";
export declare function validateLocaleId(value: any): boolean;
export declare function validateLocaleId(value: unknown): boolean;
export declare type LocaleId = UAString;
export declare function encodeLocaleId(localeId: LocaleId, stream: OutputBinaryStream): void;
export declare function decodeLocaleId(stream: BinaryStream): LocaleId;

@@ -12,9 +12,9 @@ "use strict";

function encodeLocaleId(localeId, stream) {
return string_1.encodeUAString(localeId, stream);
return (0, string_1.encodeUAString)(localeId, stream);
}
exports.encodeLocaleId = encodeLocaleId;
function decodeLocaleId(stream) {
return string_1.decodeUAString(stream);
return (0, string_1.decodeUAString)(stream);
}
exports.decodeLocaleId = decodeLocaleId;
//# sourceMappingURL=locale_id.js.map

@@ -48,6 +48,6 @@ "use strict";

}
if (nodeId.hasOwnProperty("namespaceUri") && nodeId.namespaceUri) {
if (Object.prototype.hasOwnProperty.call(nodeId, "namespaceUri") && nodeId.namespaceUri) {
encodingByte = encodingByte | 128 /* NamespaceUriFlag */;
}
if (nodeId.hasOwnProperty("serverIndex") && nodeId.serverIndex) {
if (Object.prototype.hasOwnProperty.call(nodeId, "serverIndex") && nodeId.serverIndex) {
encodingByte = encodingByte | 64 /* ServerIndexFlag */;

@@ -62,5 +62,5 @@ }

function randomNodeId() {
const value = utils_1.getRandomInt(0, 0xfffff);
const namespace = utils_1.getRandomInt(0, 3);
return node_opcua_nodeid_1.makeNodeId(value, namespace);
const value = (0, utils_1.getRandomInt)(0, 0xfffff);
const namespace = (0, utils_1.getRandomInt)(0, 3);
return (0, node_opcua_nodeid_1.makeNodeId)(value, namespace);
}

@@ -86,12 +86,12 @@ exports.randomNodeId = randomNodeId;

stream.writeUInt16(nodeId.namespace);
string_1.encodeString(nodeId.value, stream);
(0, string_1.encodeString)(nodeId.value, stream);
break;
case 5 /* ByteString */:
stream.writeUInt16(nodeId.namespace);
byte_string_1.encodeByteString(nodeId.value, stream);
(0, byte_string_1.encodeByteString)(nodeId.value, stream);
break;
default:
node_opcua_assert_1.assert(encodingByte === 4 /* Guid */);
(0, node_opcua_assert_1.assert)(encodingByte === 4 /* Guid */);
stream.writeUInt16(nodeId.namespace);
guid_1.encodeGuid(nodeId.value, stream);
(0, guid_1.encodeGuid)(nodeId.value, stream);
break;

@@ -108,10 +108,10 @@ }

function encodeExpandedNodeId(expandedNodeId, stream) {
node_opcua_assert_1.assert(expandedNodeId, "encodeExpandedNodeId: must provide a valid expandedNodeId");
(0, node_opcua_assert_1.assert)(expandedNodeId, "encodeExpandedNodeId: must provide a valid expandedNodeId");
const encodingByte = nodeID_encodingByte(expandedNodeId);
_encodeNodeId(encodingByte, expandedNodeId, stream);
if (encodingByte & 128 /* NamespaceUriFlag */) {
string_1.encodeString(expandedNodeId.namespaceUri, stream);
(0, string_1.encodeString)(expandedNodeId.namespaceUri, stream);
}
if (encodingByte & 64 /* ServerIndexFlag */) {
integers_1.encodeUInt32(expandedNodeId.serverIndex, stream);
(0, integers_1.encodeUInt32)(expandedNodeId.serverIndex, stream);
}

@@ -143,3 +143,3 @@ }

namespace = stream.readUInt16();
value = string_1.decodeString(stream);
value = (0, string_1.decodeString)(stream);
identifierType = node_opcua_nodeid_1.NodeIdType.STRING;

@@ -149,3 +149,3 @@ break;

namespace = stream.readUInt16();
value = byte_string_1.decodeByteString(stream);
value = (0, byte_string_1.decodeByteString)(stream);
identifierType = node_opcua_nodeid_1.NodeIdType.BYTESTRING;

@@ -163,5 +163,5 @@ break;

namespace = stream.readUInt16();
value = guid_1.decodeGuid(stream);
value = (0, guid_1.decodeGuid)(stream);
identifierType = node_opcua_nodeid_1.NodeIdType.GUID;
node_opcua_assert_1.assert(guid_1.isValidGuid(value));
(0, node_opcua_assert_1.assert)((0, guid_1.isValidGuid)(value));
break;

@@ -188,6 +188,6 @@ }

if (encodingByte & 128 /* NamespaceUriFlag */) {
expandedNodeId.namespaceUri = string_1.decodeString(stream);
expandedNodeId.namespaceUri = (0, string_1.decodeString)(stream);
}
if (encodingByte & 64 /* ServerIndexFlag */) {
expandedNodeId.serverIndex = integers_1.decodeUInt32(stream);
expandedNodeId.serverIndex = (0, integers_1.decodeUInt32)(stream);
}

@@ -194,0 +194,0 @@ const e = expandedNodeId;

@@ -5,3 +5,3 @@ /***

import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
export declare function isValidString(value: any): boolean;
export declare function isValidString(value: unknown): boolean;
export declare function randomString(): string;

@@ -8,0 +8,0 @@ export declare function decodeString(stream: BinaryStream, value?: string | null): string | null;

@@ -13,6 +13,6 @@ "use strict";

function randomString() {
const nbCar = utils_1.getRandomInt(1, 20);
const nbCar = (0, utils_1.getRandomInt)(1, 20);
const cars = [];
for (let i = 0; i < nbCar; i++) {
cars.push(String.fromCharCode(65 + utils_1.getRandomInt(0, 26)));
cars.push(String.fromCharCode(65 + (0, utils_1.getRandomInt)(0, 26)));
}

@@ -19,0 +19,0 @@ return cars.join("");

@@ -0,0 +0,0 @@ module.exports = {

{
"name": "node-opcua-basic-types",
"version": "2.47.0",
"version": "2.51.0",
"description": "pure nodejs OPCUA SDK - module -basic-types",

@@ -14,16 +14,16 @@ "main": "./dist/index.js",

"dependencies": {
"node-opcua-assert": "2.42.0",
"node-opcua-binary-stream": "2.42.0",
"node-opcua-buffer-utils": "2.42.0",
"node-opcua-date-time": "2.42.0",
"node-opcua-enum": "2.42.0",
"node-opcua-guid": "2.42.0",
"node-opcua-nodeid": "2.45.0",
"node-opcua-status-code": "2.42.0",
"node-opcua-utils": "2.44.0"
"node-opcua-assert": "2.51.0",
"node-opcua-binary-stream": "2.51.0",
"node-opcua-buffer-utils": "2.51.0",
"node-opcua-date-time": "2.51.0",
"node-opcua-enum": "2.51.0",
"node-opcua-guid": "2.51.0",
"node-opcua-nodeid": "2.51.0",
"node-opcua-status-code": "2.51.0",
"node-opcua-utils": "2.51.0"
},
"devDependencies": {
"@types/node": "15.6.1",
"node-opcua-benchmarker": "2.42.0",
"node-opcua-debug": "2.42.0",
"@types/node": "16.7.10",
"node-opcua-benchmarker": "2.51.0",
"node-opcua-debug": "2.51.0",
"should": "^13.2.3"

@@ -46,3 +46,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "bc0fd185f4905cd03c83c7a278365424f2b46bac"
"gitHead": "75feb111daf7ec65fa0111e4fa5beb8987fd4945"
}

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

@@ -48,4 +48,4 @@ /**

export function isValidAttributeId(attributeId: number) {
export function isValidAttributeId(attributeId: number): boolean {
return attributeId >= 1 && attributeId < AttributeIds.LAST;
}

@@ -7,7 +7,7 @@ /***

export function isValidBoolean(value: any): boolean {
export function isValidBoolean(value: unknown): boolean {
return typeof value === "boolean";
}
export function randomBoolean() {
export function randomBoolean(): boolean {
return Math.random() > 0.5;

@@ -14,0 +14,0 @@ }

@@ -9,3 +9,3 @@ /***

export function isValidByteString(value: any): boolean {
export function isValidByteString(value: unknown): boolean {
return value === null || value instanceof Buffer;

@@ -16,3 +16,3 @@ }

export function randomByteString(value: any, len: number): ByteString {
export function randomByteString(value: unknown, len: number): ByteString {
len = len || getRandomInt(1, 200);

@@ -26,3 +26,3 @@ const b = createFastUninitializedBuffer(len);

export function encodeByteString(byteString: ByteString, stream: OutputBinaryStream) {
export function encodeByteString(byteString: ByteString, stream: OutputBinaryStream): void {
stream.writeByteStream(byteString);

@@ -29,0 +29,0 @@ }

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

@@ -21,3 +21,3 @@ /***

export function isValidFloat(value: any): boolean {
export function isValidFloat(value: number): boolean {
if (!isFinite(value)) {

@@ -51,3 +51,3 @@ return false;

export function isValidDouble(value: any): boolean {
export function isValidDouble(value: number): boolean {
if (!isFinite(value)) {

@@ -65,7 +65,7 @@ return false;

export function encodeDouble(value: Double, stream: OutputBinaryStream) {
export function encodeDouble(value: Double, stream: OutputBinaryStream): void {
stream.writeDouble(value);
}
export function decodeDouble(stream: BinaryStream, value?: number) {
export function decodeDouble(stream: BinaryStream, value?: number): Double {
return stream.readDouble();

@@ -72,0 +72,0 @@ }

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

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

@@ -8,3 +8,3 @@ /***

export function isValidUInt16(value: any): boolean {
export function isValidUInt16(value: number): boolean {
if (!isFinite(value)) {

@@ -43,3 +43,3 @@ return false;

export function isValidInt16(value: any): boolean {
export function isValidInt16(value: number): boolean {
if (!isFinite(value)) {

@@ -64,3 +64,3 @@ return false;

export function isValidInt32(value: any): boolean {
export function isValidInt32(value: number): boolean {
if (!isFinite(value)) {

@@ -85,3 +85,3 @@ return false;

export function isValidUInt32(value: any): boolean {
export function isValidUInt32(value: number): boolean {
if (!isFinite(value)) {

@@ -97,3 +97,3 @@ return false;

export function encodeUInt32(value: UInt32, stream: OutputBinaryStream) {
export function encodeUInt32(value: UInt32, stream: OutputBinaryStream): void {
stream.writeUInt32(value);

@@ -106,3 +106,3 @@ }

export function isValidInt8(value: any): boolean {
export function isValidInt8(value: number): boolean {
if (!isFinite(value)) {

@@ -132,3 +132,3 @@ return false;

export function isValidUInt8(value: any): boolean {
export function isValidUInt8(value: number): boolean {
if (!isFinite(value)) {

@@ -157,3 +157,3 @@ return false;

export function isValidUInt64(value: any): boolean {
export function isValidUInt64(value?: number | number[]): boolean {
return value instanceof Array && value.length === 2;

@@ -166,3 +166,3 @@ }

export function encodeUInt64(value: UInt64 | number, stream: OutputBinaryStream) {
export function encodeUInt64(value: UInt64 | number, stream: OutputBinaryStream): void {
if (typeof value === "number") {

@@ -184,3 +184,3 @@ const arr = coerceUInt64(value);

export function constructInt64(high: UInt32, low: UInt32) {
export function constructInt64(high: UInt32, low: UInt32): Int64 {
assert(low >= 0 && low <= 0xffffffff);

@@ -297,3 +297,3 @@ assert(high >= 0 && high <= 0xffffffff);

}
if (value && value.hasOwnProperty("value")) {
if (value && Object.prototype.hasOwnProperty.call(value, "value")) {
// xx assert(value.constructor.name === "EnumItem");

@@ -300,0 +300,0 @@ return coerceUInt32((value as EnumItemLike).value);

@@ -8,3 +8,3 @@ /***

export function validateLocaleId(value: any): boolean {
export function validateLocaleId(value: unknown): boolean {
// TODO : check that localeID is well-formed

@@ -11,0 +11,0 @@ // see part 3 $8.4 page 63

@@ -65,6 +65,6 @@ /***

if (nodeId.hasOwnProperty("namespaceUri") && (nodeId as ExpandedNodeId).namespaceUri) {
if (Object.prototype.hasOwnProperty.call(nodeId,"namespaceUri") && (nodeId as ExpandedNodeId).namespaceUri) {
encodingByte = encodingByte | EnumNodeIdEncoding.NamespaceUriFlag;
}
if (nodeId.hasOwnProperty("serverIndex") && (nodeId as ExpandedNodeId).serverIndex) {
if (Object.prototype.hasOwnProperty.call(nodeId,"serverIndex") && (nodeId as ExpandedNodeId).serverIndex) {
encodingByte = encodingByte | EnumNodeIdEncoding.ServerIndexFlag;

@@ -126,3 +126,3 @@ }

export function encodeExpandedNodeId(expandedNodeId: ExpandedNodeId, stream: OutputBinaryStream) {
export function encodeExpandedNodeId(expandedNodeId: ExpandedNodeId, stream: OutputBinaryStream): void {
assert(expandedNodeId, "encodeExpandedNodeId: must provide a valid expandedNodeId");

@@ -129,0 +129,0 @@ const encodingByte = nodeID_encodingByte(expandedNodeId);

@@ -0,0 +0,0 @@ export function roundToFloat2(float: number): number {

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

@@ -9,3 +9,3 @@ /***

export function isValidString(value: any): boolean {
export function isValidString(value: unknown): boolean {
return typeof value === "string";

@@ -12,0 +12,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

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

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

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