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

node-opcua-common

Package Overview
Dependencies
Maintainers
1
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-common - npm Package Compare versions

Comparing version 2.5.10 to 2.6.0-alpha.5

10

dist/applicationurn.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module node-opcua-common
*/
exports.makeApplicationUrn = void 0;
const crypto = require("crypto");
const node_opcua_assert_1 = require("node-opcua-assert");
function makeApplicationUrn(hostname, suffix) {
// beware : Openssl doesn't support urn with length greater than 64 !!
// sometimes hostname length could be too long ...
// application urn length must not exceed 64 car. to comply with openssl
// see cryptoCA
let hostnameHash = hostname;
if (hostnameHash.length + 7 + suffix.length >= 64) {
// we need to reduce the applicationUrn side => let's take
// a portion of the hostname hash.
hostnameHash = crypto.createHash("md5").update(hostname).digest("hex").substr(0, 16);

@@ -18,0 +10,0 @@ }

@@ -1,12 +0,3 @@

/**
* @module node-opcua-common
*/
export { ServerState, ServerStatusDataType, // ServerStatus
RedundantServerDataType, // RedundantServer
ModelChangeStructureDataType, // ModelChangeStructure
SubscriptionDiagnosticsDataType, // SubscriptionDiagnostics
SamplingIntervalDiagnosticsDataType, // SamplingIntervalDiagnostics
SemanticChangeStructureDataType, // SemanticChangeStructure
ServerDiagnosticsSummaryDataType, SessionSecurityDiagnosticsDataType, ServiceCounterDataType, SessionDiagnosticsDataType, BuildInfo, DataTypeDefinition, EnumValueType, TimeZoneDataType, } from "node-opcua-types";
export { ServerState, ServerStatusDataType, RedundantServerDataType, ModelChangeStructureDataType, SubscriptionDiagnosticsDataType, SamplingIntervalDiagnosticsDataType, SemanticChangeStructureDataType, ServerDiagnosticsSummaryDataType, SessionSecurityDiagnosticsDataType, ServiceCounterDataType, SessionDiagnosticsDataType, BuildInfo, DataTypeDefinition, EnumValueType, TimeZoneDataType, } from "node-opcua-types";
export * from "./applicationurn";
export * from "./opcua_secure_object";

48

dist/index.js
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
}
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module node-opcua-common
*/
var node_opcua_types_1 = require("node-opcua-types");
exports.ServerState = node_opcua_types_1.ServerState;
exports.ServerStatusDataType = node_opcua_types_1.ServerStatusDataType;
exports.RedundantServerDataType = node_opcua_types_1.RedundantServerDataType;
exports.ModelChangeStructureDataType = node_opcua_types_1.ModelChangeStructureDataType;
exports.SubscriptionDiagnosticsDataType = node_opcua_types_1.SubscriptionDiagnosticsDataType;
exports.SamplingIntervalDiagnosticsDataType = node_opcua_types_1.SamplingIntervalDiagnosticsDataType;
exports.SemanticChangeStructureDataType = node_opcua_types_1.SemanticChangeStructureDataType;
exports.ServerDiagnosticsSummaryDataType = node_opcua_types_1.ServerDiagnosticsSummaryDataType;
exports.SessionSecurityDiagnosticsDataType = node_opcua_types_1.SessionSecurityDiagnosticsDataType;
exports.ServiceCounterDataType = node_opcua_types_1.ServiceCounterDataType;
exports.SessionDiagnosticsDataType = node_opcua_types_1.SessionDiagnosticsDataType;
exports.BuildInfo = node_opcua_types_1.BuildInfo;
exports.DataTypeDefinition = node_opcua_types_1.DataTypeDefinition;
exports.EnumValueType = node_opcua_types_1.EnumValueType;
exports.TimeZoneDataType = node_opcua_types_1.TimeZoneDataType;
__export(require("./applicationurn"));
__export(require("./opcua_secure_object"));
Object.defineProperty(exports, "ServerState", { enumerable: true, get: function () { return node_opcua_types_1.ServerState; } });
Object.defineProperty(exports, "ServerStatusDataType", { enumerable: true, get: function () { return node_opcua_types_1.ServerStatusDataType; } });
Object.defineProperty(exports, "RedundantServerDataType", { enumerable: true, get: function () { return node_opcua_types_1.RedundantServerDataType; } });
Object.defineProperty(exports, "ModelChangeStructureDataType", { enumerable: true, get: function () { return node_opcua_types_1.ModelChangeStructureDataType; } });
Object.defineProperty(exports, "SubscriptionDiagnosticsDataType", { enumerable: true, get: function () { return node_opcua_types_1.SubscriptionDiagnosticsDataType; } });
Object.defineProperty(exports, "SamplingIntervalDiagnosticsDataType", { enumerable: true, get: function () { return node_opcua_types_1.SamplingIntervalDiagnosticsDataType; } });
Object.defineProperty(exports, "SemanticChangeStructureDataType", { enumerable: true, get: function () { return node_opcua_types_1.SemanticChangeStructureDataType; } });
Object.defineProperty(exports, "ServerDiagnosticsSummaryDataType", { enumerable: true, get: function () { return node_opcua_types_1.ServerDiagnosticsSummaryDataType; } });
Object.defineProperty(exports, "SessionSecurityDiagnosticsDataType", { enumerable: true, get: function () { return node_opcua_types_1.SessionSecurityDiagnosticsDataType; } });
Object.defineProperty(exports, "ServiceCounterDataType", { enumerable: true, get: function () { return node_opcua_types_1.ServiceCounterDataType; } });
Object.defineProperty(exports, "SessionDiagnosticsDataType", { enumerable: true, get: function () { return node_opcua_types_1.SessionDiagnosticsDataType; } });
Object.defineProperty(exports, "BuildInfo", { enumerable: true, get: function () { return node_opcua_types_1.BuildInfo; } });
Object.defineProperty(exports, "DataTypeDefinition", { enumerable: true, get: function () { return node_opcua_types_1.DataTypeDefinition; } });
Object.defineProperty(exports, "EnumValueType", { enumerable: true, get: function () { return node_opcua_types_1.EnumValueType; } });
Object.defineProperty(exports, "TimeZoneDataType", { enumerable: true, get: function () { return node_opcua_types_1.TimeZoneDataType; } });
__exportStar(require("./applicationurn"), exports);
__exportStar(require("./opcua_secure_object"), exports);
//# sourceMappingURL=index.js.map

@@ -13,10 +13,2 @@ /// <reference types="node" />

}
/**
* an object that provides a certificate and a privateKey
* @class OPCUASecureObject
* @param options
* @param options.certificateFile {string}
* @param options.privateKeyFile {string}
* @constructor
*/
export declare class OPCUASecureObject extends EventEmitter implements ICertificateKeyPairProvider {

@@ -23,0 +15,0 @@ readonly certificateFile: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OPCUASecureObject = void 0;
const events_1 = require("events");

@@ -14,10 +15,2 @@ const fs = require("fs");

}
/**
* an object that provides a certificate and a privateKey
* @class OPCUASecureObject
* @param options
* @param options.certificateFile {string}
* @param options.privateKeyFile {string}
* @constructor
*/
class OPCUASecureObject extends events_1.EventEmitter {

@@ -24,0 +17,0 @@ constructor(options) {

{
"name": "node-opcua-common",
"version": "2.5.10",
"version": "2.6.0-alpha.5+2620e75a",
"description": "pure nodejs OPCUA SDK - module -common",

@@ -14,11 +14,11 @@ "scripts": {

"dependencies": {
"node-opcua-assert": "2.5.8",
"node-opcua-assert": "^2.5.8",
"node-opcua-basic-types": "^2.5.9",
"node-opcua-crypto": "^1.1.4",
"node-opcua-crypto": "^1.3.2",
"node-opcua-data-model": "^2.5.10",
"node-opcua-factory": "^2.5.10",
"node-opcua-nodeid": "^2.5.9",
"node-opcua-service-endpoints": "^2.5.10",
"node-opcua-service-secure-channel": "^2.5.10",
"node-opcua-types": "^2.5.10",
"node-opcua-service-endpoints": "^2.6.0-alpha.5+2620e75a",
"node-opcua-service-secure-channel": "^2.6.0-alpha.5+2620e75a",
"node-opcua-types": "^2.6.0-alpha.5+2620e75a",
"underscore": "^1.10.2"

@@ -28,4 +28,4 @@ },

"@types/mocha": "^7.0.2",
"@types/node": "^13.13.0",
"node-opcua-generator": "^2.5.10",
"@types/node": "^14.0.1",
"node-opcua-generator": "^2.6.0-alpha.5+2620e75a",
"should": "^13.2.3"

@@ -48,3 +48,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "f83ada4e88fdeedc0710c5a3b75bbd4b44d9ff76"
"gitHead": "2620e75a3de3fd14b2c084d864e39c3ea7003d10"
}

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