Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
console.log(
`warning node-opcua: Required nodejs version ${version} not satisfied with current nodejs version ${
process.version
}.`.cyan
);
}
//---------------------------------------------------------------------------------------------------------------------
// Common
// ---------------------------------------------------------------------------------------------------------------------
module.exports.NodeId = require("node-opcua-nodeid").NodeId;
module.exports.resolveNodeId = require("node-opcua-nodeid").resolveNodeId;
module.exports.makeNodeId = require("node-opcua-nodeid").makeNodeId;
module.exports.coerceNodeId = require("node-opcua-nodeid").coerceNodeId;
module.exports.sameNodeId = require("node-opcua-nodeid").sameNodeId;
module.exports.NodeIdType = require("node-opcua-nodeid").NodeIdType;
module.exports.ExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").ExpandedNodeId;
module.exports.makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId;
module.exports.coerceExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").coerceExpandedNodeId;
module.exports.StatusCodes = require("node-opcua-status-code").StatusCodes;
module.exports.Enum = require("node-opcua-enum");
module.exports.DataType = require("node-opcua-variant").DataType;
module.exports.Variant = require("node-opcua-variant").Variant;
module.exports.VariantArrayType = require("node-opcua-variant").VariantArrayType;
module.exports.buildVariantArray = require("node-opcua-variant").buildVariantArray;
module.exports.DataValue = require("node-opcua-data-value").DataValue;
module.exports.sameDataValue = require("node-opcua-data-value").sameDataValue;
"use strict";
/**
* @module opcua.server
*/
const _ = require("underscore");
const crypto = require("crypto");
const NodeId = require("node-opcua-nodeid").NodeId;
const sameNodeId = require("node-opcua-nodeid").sameNodeId;
const NodeIdType = require("node-opcua-nodeid").NodeIdType;
const ServerSidePublishEngine = require("./server_publish_engine").ServerSidePublishEngine;
const StatusCodes = require("node-opcua-status-code").StatusCodes;
const NodeClass = require("node-opcua-data-model").NodeClass;
const QualifiedName = require("node-opcua-data-model").QualifiedName;
const DataValue = require("node-opcua-data-value").DataValue;
const VariableIds = require("node-opcua-constants").VariableIds;
const ec = require("node-opcua-basic-types");
const assert = require("node-opcua-assert").assert;
const util = require("util");
const EventEmitter = require("events").EventEmitter;
const eoan = require("node-opcua-address-space");
const makeNodeId = require("node-opcua-nodeid").makeNodeId;
const ObjectIds = require("node-opcua-constants").ObjectIds;
"use strict";
const Enum = require("node-opcua-enum");
const assert = require("node-opcua-assert").assert;
const makeNodeId = (exports.makeNodeId = require("node-opcua-nodeid").makeNodeId);
const NodeIdType = (exports.NodeIdType = require("node-opcua-nodeid").NodeIdType);
const NodeId = require("node-opcua-nodeid").NodeId;
const ExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").ExpandedNodeId;
const set_flag = require("node-opcua-utils").set_flag;
const check_flag = require("node-opcua-utils").check_flag;
const isValidGuid = require("./guid").isValidGuid;
const decodeGuid = require("./guid").decodeGuid;
const decodeString = require("./string").decodeString;
const decodeByteString = require("./byte_string").decodeByteString;
const decodeUInt32 = require("./integers").decodeUInt32;
const encodeGuid = require("./guid").encodeGuid;
const encodeString = require("./string").encodeString;
const encodeByteString = require("./byte_string").encodeByteString;
* @module opcua.server
*/
const _ = require("underscore");
const assert = require("node-opcua-assert").assert;
const async = require("async");
const util = require("util");
const EventEmitter = require("events").EventEmitter;
const SessionContext = require("node-opcua-address-space").SessionContext;
const NodeId = require("node-opcua-nodeid").NodeId;
const resolveNodeId = require("node-opcua-nodeid").resolveNodeId;
const makeNodeId = require("node-opcua-nodeid").makeNodeId;
const NodeIdType = require("node-opcua-nodeid").NodeIdType;
const NumericRange = require("node-opcua-numeric-range").NumericRange;
const BrowseDirection = require("node-opcua-data-model").BrowseDirection;
const BrowseResult = require("node-opcua-service-browse").BrowseResult;
const ReadRequest = require("node-opcua-service-read").ReadRequest;
require("node-opcua-common");
const read_service = require("node-opcua-service-read");
const AttributeIds = require("node-opcua-data-model").AttributeIds;
const TimestampsToReturn = read_service.TimestampsToReturn;
const UAVariable = require("node-opcua-address-space").UAVariable;
const ServerSidePublishEngine = require("./server_publish_engine").ServerSidePublishEngine;
const historizing_service = require("node-opcua-service-history");