node-opcua-basic-types
Advanced tools
Comparing version 2.126.0 to 2.128.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decodeArray = exports.encodeArray = void 0; | ||
exports.encodeArray = encodeArray; | ||
exports.decodeArray = decodeArray; | ||
/*** | ||
@@ -25,3 +26,2 @@ * @module node-opcua-basic-types | ||
} | ||
exports.encodeArray = encodeArray; | ||
/** | ||
@@ -45,3 +45,2 @@ * decode an array from a BinaryStream | ||
} | ||
exports.decodeArray = decodeArray; | ||
//# sourceMappingURL=array.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isValidAttributeId = exports.attributeNameById = exports.AttributeIds = void 0; | ||
exports.attributeNameById = exports.AttributeIds = void 0; | ||
exports.isValidAttributeId = isValidAttributeId; | ||
var AttributeIds; | ||
@@ -48,3 +49,2 @@ (function (AttributeIds) { | ||
} | ||
exports.isValidAttributeId = isValidAttributeId; | ||
//# sourceMappingURL=attributeIds.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decodeUABoolean = exports.encodeUABoolean = exports.coerceBoolean = exports.decodeBoolean = exports.encodeBoolean = exports.randomBoolean = exports.isValidBoolean = void 0; | ||
exports.decodeUABoolean = exports.encodeUABoolean = void 0; | ||
exports.isValidBoolean = isValidBoolean; | ||
exports.randomBoolean = randomBoolean; | ||
exports.encodeBoolean = encodeBoolean; | ||
exports.decodeBoolean = decodeBoolean; | ||
exports.coerceBoolean = coerceBoolean; | ||
/*** | ||
@@ -11,7 +16,5 @@ * @module node-opcua-basic-types | ||
} | ||
exports.isValidBoolean = isValidBoolean; | ||
function randomBoolean() { | ||
return Math.random() > 0.5; | ||
} | ||
exports.randomBoolean = randomBoolean; | ||
function encodeBoolean(value, stream) { | ||
@@ -21,7 +24,5 @@ (0, node_opcua_assert_1.assert)(isValidBoolean(value)); | ||
} | ||
exports.encodeBoolean = encodeBoolean; | ||
function decodeBoolean(stream, _value) { | ||
return !!stream.readUInt8(); | ||
} | ||
exports.decodeBoolean = decodeBoolean; | ||
const falseDetectionRegex = /^(?:f(?:alse)?|no?|0+)$/i; | ||
@@ -33,5 +34,4 @@ function coerceBoolean(value) { | ||
} | ||
exports.coerceBoolean = coerceBoolean; | ||
exports.encodeUABoolean = encodeBoolean; | ||
exports.decodeUABoolean = decodeBoolean; | ||
//# sourceMappingURL=boolean.js.map |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
/*** | ||
@@ -3,0 +2,0 @@ * @module node-opcua-basic-types |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.coerceByteString = exports.decodeByteString = exports.encodeByteString = exports.randomByteString = exports.isValidByteString = void 0; | ||
exports.isValidByteString = isValidByteString; | ||
exports.randomByteString = randomByteString; | ||
exports.encodeByteString = encodeByteString; | ||
exports.decodeByteString = decodeByteString; | ||
exports.coerceByteString = coerceByteString; | ||
const node_opcua_buffer_utils_1 = require("node-opcua-buffer-utils"); | ||
@@ -9,3 +13,2 @@ const utils_1 = require("./utils"); | ||
} | ||
exports.isValidByteString = isValidByteString; | ||
function randomByteString(value, len) { | ||
@@ -19,11 +22,8 @@ len = len || (0, utils_1.getRandomInt)(1, 200); | ||
} | ||
exports.randomByteString = randomByteString; | ||
function encodeByteString(byteString, stream) { | ||
stream.writeByteStream(byteString); | ||
} | ||
exports.encodeByteString = encodeByteString; | ||
function decodeByteString(stream, _value) { | ||
return stream.readByteStream(); | ||
} | ||
exports.decodeByteString = decodeByteString; | ||
function coerceByteString(value) { | ||
@@ -38,3 +38,2 @@ if (Array.isArray(value)) { | ||
} | ||
exports.coerceByteString = coerceByteString; | ||
//# sourceMappingURL=byte_string.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.coerceDouble = exports.coerceFloat = exports.decodeDouble = exports.encodeDouble = exports.randomDouble = exports.isValidDouble = exports.decodeFloat = exports.encodeFloat = exports.randomFloat = exports.isValidFloat = void 0; | ||
exports.isValidFloat = isValidFloat; | ||
exports.randomFloat = randomFloat; | ||
exports.encodeFloat = encodeFloat; | ||
exports.decodeFloat = decodeFloat; | ||
exports.isValidDouble = isValidDouble; | ||
exports.randomDouble = randomDouble; | ||
exports.encodeDouble = encodeDouble; | ||
exports.decodeDouble = decodeDouble; | ||
exports.coerceFloat = coerceFloat; | ||
exports.coerceDouble = coerceDouble; | ||
const minFloat = -3.4 * Math.pow(10, 38); | ||
@@ -23,3 +32,2 @@ const maxFloat = 3.4 * Math.pow(10, 38); | ||
} | ||
exports.isValidFloat = isValidFloat; | ||
const r = new Float32Array(1); | ||
@@ -34,11 +42,8 @@ function roundToFloat(float) { | ||
} | ||
exports.randomFloat = randomFloat; | ||
function encodeFloat(value, stream) { | ||
stream.writeFloat(value); | ||
} | ||
exports.encodeFloat = encodeFloat; | ||
function decodeFloat(stream, value) { | ||
return stream.readFloat(); | ||
} | ||
exports.decodeFloat = decodeFloat; | ||
function isValidDouble(value) { | ||
@@ -50,15 +55,11 @@ if (!isFinite(value)) { | ||
} | ||
exports.isValidDouble = isValidDouble; | ||
function randomDouble() { | ||
return getRandomDouble(-1000000, 1000000); | ||
} | ||
exports.randomDouble = randomDouble; | ||
function encodeDouble(value, stream) { | ||
stream.writeDouble(value); | ||
} | ||
exports.encodeDouble = encodeDouble; | ||
function decodeDouble(stream, value) { | ||
return stream.readDouble(); | ||
} | ||
exports.decodeDouble = decodeDouble; | ||
function coerceFloat(value) { | ||
@@ -73,3 +74,2 @@ if (value === null || value === undefined) { | ||
} | ||
exports.coerceFloat = coerceFloat; | ||
function coerceDouble(value) { | ||
@@ -84,3 +84,2 @@ if (value === null || value === undefined) { | ||
} | ||
exports.coerceDouble = coerceDouble; | ||
//# sourceMappingURL=floats.js.map |
@@ -9,3 +9,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decodeGuid = exports.encodeGuid = exports.randomGuid = exports.emptyGuid = exports.isValidGuid = void 0; | ||
exports.emptyGuid = exports.isValidGuid = void 0; | ||
exports.randomGuid = randomGuid; | ||
exports.encodeGuid = encodeGuid; | ||
exports.decodeGuid = decodeGuid; | ||
const node_opcua_assert_1 = __importDefault(require("node-opcua-assert")); | ||
@@ -30,3 +33,2 @@ const node_opcua_binary_stream_1 = require("node-opcua-binary-stream"); | ||
} | ||
exports.randomGuid = randomGuid; | ||
// 1 2 3 | ||
@@ -100,3 +102,2 @@ // 012345678901234567890123456789012345 | ||
} | ||
exports.encodeGuid = encodeGuid; | ||
function read_UInt32(stream) { | ||
@@ -127,3 +128,2 @@ return toHex(stream.readUInt32(), 8); | ||
} | ||
exports.decodeGuid = decodeGuid; | ||
//# sourceMappingURL=guid.js.map |
/*** | ||
* @module node-opcua-basic-types | ||
*/ | ||
/// <reference types="node" /> | ||
export * from "./array"; | ||
@@ -6,0 +5,0 @@ export * from "./attributeIds"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.coerceUInt32 = exports.coerceInt16 = exports.coerceUInt16 = exports.coerceSByte = exports.coerceByte = exports.coerceUInt8 = exports.coerceInt8 = exports.decodeInt64 = exports.encodeInt64 = exports.isValidInt64 = exports.coerceInt64 = exports.randomInt64 = exports.coerceUInt64 = exports.constructInt64 = exports.decodeUInt64 = exports.encodeUInt64 = exports.randomUInt64 = exports.isValidUInt64 = exports.decodeByte = exports.encodeByte = exports.randomByte = exports.isValidByte = exports.decodeUInt8 = exports.encodeUInt8 = exports.randomUInt8 = exports.isValidUInt8 = exports.decodeSByte = exports.encodeSByte = exports.randomSByte = exports.isValidSByte = exports.decodeInt8 = exports.encodeInt8 = exports.randomInt8 = exports.isValidInt8 = exports.decodeUInt32 = exports.encodeUInt32 = exports.randomUInt32 = exports.isValidUInt32 = exports.decodeInt32 = exports.encodeInt32 = exports.randomInt32 = exports.isValidInt32 = exports.decodeInt16 = exports.encodeInt16 = exports.randomInt16 = exports.isValidInt16 = exports.decodeUInt16 = exports.encodeUInt16 = exports.randomUInt16 = exports.isValidUInt16 = void 0; | ||
exports.coerceUInt64toInt32 = exports.coerceInt64toInt32 = exports.UInt64ToBigInt = exports.Int64ToBigInt = exports.coerceInt32 = void 0; | ||
exports.decodeInt64 = exports.encodeInt64 = exports.isValidInt64 = exports.coerceInt64 = exports.decodeByte = exports.encodeByte = exports.randomByte = exports.isValidByte = exports.decodeSByte = exports.encodeSByte = exports.randomSByte = exports.isValidSByte = void 0; | ||
exports.isValidUInt16 = isValidUInt16; | ||
exports.randomUInt16 = randomUInt16; | ||
exports.encodeUInt16 = encodeUInt16; | ||
exports.decodeUInt16 = decodeUInt16; | ||
exports.isValidInt16 = isValidInt16; | ||
exports.randomInt16 = randomInt16; | ||
exports.encodeInt16 = encodeInt16; | ||
exports.decodeInt16 = decodeInt16; | ||
exports.isValidInt32 = isValidInt32; | ||
exports.randomInt32 = randomInt32; | ||
exports.encodeInt32 = encodeInt32; | ||
exports.decodeInt32 = decodeInt32; | ||
exports.isValidUInt32 = isValidUInt32; | ||
exports.randomUInt32 = randomUInt32; | ||
exports.encodeUInt32 = encodeUInt32; | ||
exports.decodeUInt32 = decodeUInt32; | ||
exports.isValidInt8 = isValidInt8; | ||
exports.randomInt8 = randomInt8; | ||
exports.encodeInt8 = encodeInt8; | ||
exports.decodeInt8 = decodeInt8; | ||
exports.isValidUInt8 = isValidUInt8; | ||
exports.randomUInt8 = randomUInt8; | ||
exports.encodeUInt8 = encodeUInt8; | ||
exports.decodeUInt8 = decodeUInt8; | ||
exports.isValidUInt64 = isValidUInt64; | ||
exports.randomUInt64 = randomUInt64; | ||
exports.encodeUInt64 = encodeUInt64; | ||
exports.decodeUInt64 = decodeUInt64; | ||
exports.constructInt64 = constructInt64; | ||
exports.coerceUInt64 = coerceUInt64; | ||
exports.randomInt64 = randomInt64; | ||
exports.coerceInt8 = coerceInt8; | ||
exports.coerceUInt8 = coerceUInt8; | ||
exports.coerceByte = coerceByte; | ||
exports.coerceSByte = coerceSByte; | ||
exports.coerceUInt16 = coerceUInt16; | ||
exports.coerceInt16 = coerceInt16; | ||
exports.coerceUInt32 = coerceUInt32; | ||
exports.coerceInt32 = coerceInt32; | ||
exports.Int64ToBigInt = Int64ToBigInt; | ||
exports.UInt64ToBigInt = UInt64ToBigInt; | ||
exports.coerceInt64toInt32 = coerceInt64toInt32; | ||
exports.coerceUInt64toInt32 = coerceUInt64toInt32; | ||
/*** | ||
@@ -16,3 +58,2 @@ * @module node-opcua-basic-types | ||
} | ||
exports.isValidUInt16 = isValidUInt16; | ||
// --------------------------------------- | ||
@@ -22,11 +63,8 @@ function randomUInt16() { | ||
} | ||
exports.randomUInt16 = randomUInt16; | ||
function encodeUInt16(value, stream) { | ||
stream.writeUInt16(value); | ||
} | ||
exports.encodeUInt16 = encodeUInt16; | ||
function decodeUInt16(stream, value) { | ||
return stream.readUInt16(); | ||
} | ||
exports.decodeUInt16 = decodeUInt16; | ||
function isValidInt16(value) { | ||
@@ -38,7 +76,5 @@ if (!isFinite(value)) { | ||
} | ||
exports.isValidInt16 = isValidInt16; | ||
function randomInt16() { | ||
return (0, utils_1.getRandomInt)(-0x8000, 0x7fff); | ||
} | ||
exports.randomInt16 = randomInt16; | ||
function encodeInt16(value, stream) { | ||
@@ -48,7 +84,5 @@ (0, node_opcua_assert_1.assert)(isFinite(value)); | ||
} | ||
exports.encodeInt16 = encodeInt16; | ||
function decodeInt16(stream, value) { | ||
return stream.readInt16(); | ||
} | ||
exports.decodeInt16 = decodeInt16; | ||
function isValidInt32(value) { | ||
@@ -60,7 +94,5 @@ if (!isFinite(value)) { | ||
} | ||
exports.isValidInt32 = isValidInt32; | ||
function randomInt32() { | ||
return (0, utils_1.getRandomInt)(-0x80000000, 0x7fffffff); | ||
} | ||
exports.randomInt32 = randomInt32; | ||
function encodeInt32(value, stream) { | ||
@@ -70,7 +102,5 @@ (0, node_opcua_assert_1.assert)(isFinite(value)); | ||
} | ||
exports.encodeInt32 = encodeInt32; | ||
function decodeInt32(stream, value) { | ||
return stream.readInteger(); | ||
} | ||
exports.decodeInt32 = decodeInt32; | ||
function isValidUInt32(value) { | ||
@@ -82,15 +112,11 @@ if (!isFinite(value)) { | ||
} | ||
exports.isValidUInt32 = isValidUInt32; | ||
function randomUInt32() { | ||
return (0, utils_1.getRandomInt)(0, 0xffffffff); | ||
} | ||
exports.randomUInt32 = randomUInt32; | ||
function encodeUInt32(value, stream) { | ||
stream.writeUInt32(value); | ||
} | ||
exports.encodeUInt32 = encodeUInt32; | ||
function decodeUInt32(stream, value) { | ||
return stream.readUInt32(); | ||
} | ||
exports.decodeUInt32 = decodeUInt32; | ||
function isValidInt8(value) { | ||
@@ -102,7 +128,5 @@ if (!isFinite(value)) { | ||
} | ||
exports.isValidInt8 = isValidInt8; | ||
function randomInt8() { | ||
return (0, utils_1.getRandomInt)(-0x7f, 0x7e); | ||
} | ||
exports.randomInt8 = randomInt8; | ||
function encodeInt8(value, stream) { | ||
@@ -112,7 +136,5 @@ (0, node_opcua_assert_1.assert)(isValidInt8(value)); | ||
} | ||
exports.encodeInt8 = encodeInt8; | ||
function decodeInt8(stream, value) { | ||
return stream.readInt8(); | ||
} | ||
exports.decodeInt8 = decodeInt8; | ||
exports.isValidSByte = isValidInt8; | ||
@@ -128,15 +150,11 @@ exports.randomSByte = randomInt8; | ||
} | ||
exports.isValidUInt8 = isValidUInt8; | ||
function randomUInt8() { | ||
return (0, utils_1.getRandomInt)(0x00, 0xff); | ||
} | ||
exports.randomUInt8 = randomUInt8; | ||
function encodeUInt8(value, stream) { | ||
stream.writeUInt8(value); | ||
} | ||
exports.encodeUInt8 = encodeUInt8; | ||
function decodeUInt8(stream, value) { | ||
return stream.readUInt8(); | ||
} | ||
exports.decodeUInt8 = decodeUInt8; | ||
exports.isValidByte = isValidUInt8; | ||
@@ -149,7 +167,5 @@ exports.randomByte = randomUInt8; | ||
} | ||
exports.isValidUInt64 = isValidUInt64; | ||
function randomUInt64() { | ||
return [(0, utils_1.getRandomInt)(0, 0xffffffff), (0, utils_1.getRandomInt)(0, 0xffffffff)]; | ||
} | ||
exports.randomUInt64 = randomUInt64; | ||
function encodeUInt64(value, stream) { | ||
@@ -166,3 +182,2 @@ if (typeof value === "number") { | ||
} | ||
exports.encodeUInt64 = encodeUInt64; | ||
function decodeUInt64(stream, value) { | ||
@@ -173,3 +188,2 @@ const low = stream.readUInt32(); | ||
} | ||
exports.decodeUInt64 = decodeUInt64; | ||
function constructInt64(high, low) { | ||
@@ -184,3 +198,2 @@ if (high === 0 && low < 0) { | ||
} | ||
exports.constructInt64 = constructInt64; | ||
function coerceUInt64(value) { | ||
@@ -225,3 +238,2 @@ let high; | ||
} | ||
exports.coerceUInt64 = coerceUInt64; | ||
function randomInt64() { | ||
@@ -231,3 +243,2 @@ // High, low | ||
} | ||
exports.randomInt64 = randomInt64; | ||
exports.coerceInt64 = coerceUInt64; | ||
@@ -246,3 +257,2 @@ exports.isValidInt64 = isValidUInt64; | ||
} | ||
exports.coerceInt8 = coerceInt8; | ||
function coerceUInt8(value) { | ||
@@ -257,3 +267,2 @@ if (value === null || value === undefined) { | ||
} | ||
exports.coerceUInt8 = coerceUInt8; | ||
function coerceByte(value) { | ||
@@ -268,3 +277,2 @@ if (value === null || value === undefined) { | ||
} | ||
exports.coerceByte = coerceByte; | ||
function coerceSByte(value) { | ||
@@ -279,3 +287,2 @@ if (value === null || value === undefined) { | ||
} | ||
exports.coerceSByte = coerceSByte; | ||
function coerceUInt16(value) { | ||
@@ -290,3 +297,2 @@ if (value === null || value === undefined) { | ||
} | ||
exports.coerceUInt16 = coerceUInt16; | ||
function coerceInt16(value) { | ||
@@ -301,3 +307,2 @@ if (value === null || value === undefined) { | ||
} | ||
exports.coerceInt16 = coerceInt16; | ||
function coerceUInt32(value) { | ||
@@ -316,3 +321,2 @@ if (value === null || value === undefined) { | ||
} | ||
exports.coerceUInt32 = coerceUInt32; | ||
function coerceInt32(value) { | ||
@@ -331,3 +335,2 @@ if (value === null || value === undefined) { | ||
} | ||
exports.coerceInt32 = coerceInt32; | ||
const signMask = 1n << 31n; | ||
@@ -347,3 +350,2 @@ const shiftHigh = 1n << 32n; | ||
} | ||
exports.Int64ToBigInt = Int64ToBigInt; | ||
function UInt64ToBigInt(value) { | ||
@@ -355,3 +357,2 @@ const h = BigInt(value[0]); | ||
} | ||
exports.UInt64ToBigInt = UInt64ToBigInt; | ||
function coerceInt64toInt32(value) { | ||
@@ -364,3 +365,2 @@ if (value instanceof Array) { | ||
} | ||
exports.coerceInt64toInt32 = coerceInt64toInt32; | ||
function coerceUInt64toInt32(value) { | ||
@@ -373,3 +373,2 @@ if (value instanceof Array) { | ||
} | ||
exports.coerceUInt64toInt32 = coerceUInt64toInt32; | ||
//# sourceMappingURL=integers.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decodeLocaleId = exports.encodeLocaleId = exports.validateLocaleId = void 0; | ||
exports.validateLocaleId = validateLocaleId; | ||
exports.encodeLocaleId = encodeLocaleId; | ||
exports.decodeLocaleId = decodeLocaleId; | ||
const string_1 = require("./string"); | ||
@@ -10,11 +12,8 @@ function validateLocaleId(value) { | ||
} | ||
exports.validateLocaleId = validateLocaleId; | ||
function encodeLocaleId(localeId, stream) { | ||
return (0, string_1.encodeUAString)(localeId, stream); | ||
} | ||
exports.encodeLocaleId = encodeLocaleId; | ||
function decodeLocaleId(stream) { | ||
return (0, string_1.decodeUAString)(stream); | ||
} | ||
exports.decodeLocaleId = decodeLocaleId; | ||
//# sourceMappingURL=locale_id.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.coerceExpandedNodeId = exports.coerceNodeId = exports.decodeExpandedNodeId = exports.decodeNodeId = exports.encodeExpandedNodeId = exports.encodeNodeId = exports.randomNodeId = exports.isValidNodeId = void 0; | ||
exports.coerceExpandedNodeId = exports.coerceNodeId = void 0; | ||
exports.isValidNodeId = isValidNodeId; | ||
exports.randomNodeId = randomNodeId; | ||
exports.encodeNodeId = encodeNodeId; | ||
exports.encodeExpandedNodeId = encodeExpandedNodeId; | ||
exports.decodeNodeId = decodeNodeId; | ||
exports.decodeExpandedNodeId = decodeExpandedNodeId; | ||
/*** | ||
@@ -59,3 +65,2 @@ * @module node-opcua-basic-types | ||
} | ||
exports.isValidNodeId = isValidNodeId; | ||
function randomNodeId() { | ||
@@ -66,3 +71,2 @@ const value = (0, utils_1.getRandomInt)(0, 0xfffff); | ||
} | ||
exports.randomNodeId = randomNodeId; | ||
function _encodeNodeId(encodingByte, nodeId, stream) { | ||
@@ -105,3 +109,2 @@ stream.writeUInt8(encodingByte); // encoding byte | ||
} | ||
exports.encodeNodeId = encodeNodeId; | ||
function encodeExpandedNodeId(expandedNodeId, stream) { | ||
@@ -118,3 +121,2 @@ (0, node_opcua_assert_1.assert)(expandedNodeId, "encodeExpandedNodeId: must provide a valid expandedNodeId"); | ||
} | ||
exports.encodeExpandedNodeId = encodeExpandedNodeId; | ||
function _decodeNodeId(encodingByte, stream, _nodeId) { | ||
@@ -174,3 +176,2 @@ let value; | ||
} | ||
exports.decodeNodeId = decodeNodeId; | ||
function decodeExpandedNodeId(stream, _nodeId) { | ||
@@ -190,3 +191,2 @@ const encodingByte = stream.readUInt8(); | ||
} | ||
exports.decodeExpandedNodeId = decodeExpandedNodeId; | ||
var node_opcua_nodeid_2 = require("node-opcua-nodeid"); | ||
@@ -193,0 +193,0 @@ Object.defineProperty(exports, "coerceNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_2.coerceNodeId; } }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.roundToFloat2 = void 0; | ||
exports.roundToFloat2 = roundToFloat2; | ||
function roundToFloat2(float) { | ||
@@ -26,3 +26,2 @@ if (float === 0) { | ||
} | ||
exports.roundToFloat2 = roundToFloat2; | ||
//# sourceMappingURL=round_to_float.js.map |
@@ -6,3 +6,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encodeUAString = exports.decodeUAString = exports.encodeString = exports.decodeString = exports.randomString = exports.isValidString = void 0; | ||
exports.encodeUAString = exports.decodeUAString = void 0; | ||
exports.isValidString = isValidString; | ||
exports.randomString = randomString; | ||
exports.decodeString = decodeString; | ||
exports.encodeString = encodeString; | ||
const utils_1 = require("./utils"); | ||
@@ -12,3 +16,2 @@ function isValidString(value) { | ||
} | ||
exports.isValidString = isValidString; | ||
function randomString() { | ||
@@ -22,13 +25,10 @@ const nbCar = (0, utils_1.getRandomInt)(1, 20); | ||
} | ||
exports.randomString = randomString; | ||
function decodeString(stream, value) { | ||
return stream.readString(); | ||
} | ||
exports.decodeString = decodeString; | ||
function encodeString(value, stream) { | ||
stream.writeString(value); | ||
} | ||
exports.encodeString = encodeString; | ||
exports.decodeUAString = decodeString; | ||
exports.encodeUAString = encodeString; | ||
//# sourceMappingURL=string.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getRandomInt = void 0; | ||
exports.getRandomInt = getRandomInt; | ||
/*** | ||
@@ -19,3 +19,2 @@ * @module node-opcua-basic-types | ||
} | ||
exports.getRandomInt = getRandomInt; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "node-opcua-basic-types", | ||
"version": "2.126.0", | ||
"version": "2.128.0", | ||
"description": "pure nodejs OPCUA SDK - module basic-types", | ||
@@ -15,14 +15,12 @@ "main": "./dist/index.js", | ||
"node-opcua-assert": "2.120.0", | ||
"node-opcua-binary-stream": "2.125.0", | ||
"node-opcua-buffer-utils": "2.125.0", | ||
"node-opcua-date-time": "2.125.0", | ||
"node-opcua-guid": "2.120.0", | ||
"node-opcua-nodeid": "2.125.0", | ||
"node-opcua-status-code": "2.125.0" | ||
"node-opcua-binary-stream": "2.128.0", | ||
"node-opcua-buffer-utils": "2.128.0", | ||
"node-opcua-date-time": "2.128.0", | ||
"node-opcua-guid": "2.128.0", | ||
"node-opcua-nodeid": "2.128.0", | ||
"node-opcua-status-code": "2.128.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "20.14.5", | ||
"node-opcua-benchmarker": "2.125.0", | ||
"node-opcua-debug": "2.125.0", | ||
"should": "^13.2.3" | ||
"node-opcua-benchmarker": "2.128.0", | ||
"node-opcua-debug": "2.128.0" | ||
}, | ||
@@ -44,3 +42,3 @@ "author": "Etienne Rossignon", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "81b467f284c41813ab8caf17f6d20322d4734fdc", | ||
"gitHead": "67a73af6b831d8651a0e66ceb295f159cab4386b", | ||
"files": [ | ||
@@ -47,0 +45,0 @@ "dist", |
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
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
2
120339
2369
+ Addednode-opcua-binary-stream@2.128.0(transitive)
+ Addednode-opcua-buffer-utils@2.128.0(transitive)
+ Addednode-opcua-date-time@2.128.0(transitive)
+ Addednode-opcua-guid@2.128.0(transitive)
+ Addednode-opcua-nodeid@2.128.0(transitive)
+ Addednode-opcua-status-code@2.128.0(transitive)
+ Addednode-opcua-utils@2.128.0(transitive)
- Removednode-opcua-binary-stream@2.125.0(transitive)
- Removednode-opcua-buffer-utils@2.125.0(transitive)
- Removednode-opcua-date-time@2.125.0(transitive)
- Removednode-opcua-guid@2.120.0(transitive)
- Removednode-opcua-nodeid@2.125.0(transitive)
- Removednode-opcua-status-code@2.125.0(transitive)
- Removednode-opcua-utils@2.125.0(transitive)
Updatednode-opcua-date-time@2.128.0
Updatednode-opcua-guid@2.128.0
Updatednode-opcua-nodeid@2.128.0