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
219
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.107.0 to 2.108.0

27

dist/applicationurn.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -30,3 +7,3 @@ exports.makeApplicationUrn = void 0;

*/
const crypto = __importStar(require("crypto"));
const crypto_1 = require("crypto");
const node_opcua_assert_1 = require("node-opcua-assert");

@@ -43,3 +20,3 @@ function makeApplicationUrn(hostname, suffix) {

// a portion of the hostname hash.
hostnameHash = crypto.createHash("md5").update(hostname).digest("hex").substring(0, 16);
hostnameHash = (0, crypto_1.createHash)("md5").update(hostname).digest("hex").substring(0, 16);
}

@@ -46,0 +23,0 @@ const applicationUrn = "urn:" + hostnameHash + ":" + suffix;

3

dist/opcua_secure_object.d.ts
/// <reference types="node" />
/**
* @module node-opcua-common
*/
import { EventEmitter } from "events";

@@ -3,0 +6,0 @@ import { Certificate, PrivateKey } from "node-opcua-crypto";

@@ -27,2 +27,5 @@ "use strict";

exports.OPCUASecureObject = void 0;
/**
* @module node-opcua-common
*/
const events_1 = require("events");

@@ -29,0 +32,0 @@ const fs = __importStar(require("fs"));

{
"name": "node-opcua-common",
"version": "2.107.0",
"version": "2.108.0",
"description": "pure nodejs OPCUA SDK - module common",

@@ -15,7 +15,7 @@ "scripts": {

"node-opcua-assert": "2.105.0",
"node-opcua-crypto": "3.0.6",
"node-opcua-types": "2.107.0"
"node-opcua-crypto": "3.1.0",
"node-opcua-types": "2.108.0"
},
"devDependencies": {
"@types/node": "20.2.6",
"@types/node": "20.4.2",
"should": "^13.2.3"

@@ -38,3 +38,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "df5c9168eea0d1a521603d181fa66ace7649e79e",
"gitHead": "dc706ceab443d98df06b0d5e808daf998d6c7708",
"files": [

@@ -41,0 +41,0 @@ "dist",

/**
* @module node-opcua-common
*/
import * as crypto from "crypto";
import {createHash} from "crypto";

@@ -9,2 +9,3 @@ import { assert } from "node-opcua-assert";

export function makeApplicationUrn(hostname: string, suffix: string): string {
assert(!suffix.match(/urn:/), "already a application URN ?");

@@ -19,3 +20,3 @@ // beware : Openssl doesn't support urn with length greater than 64 !!

// a portion of the hostname hash.
hostnameHash = crypto.createHash("md5").update(hostname).digest("hex").substring(0, 16);
hostnameHash = createHash("md5").update(hostname).digest("hex").substring(0, 16);
}

@@ -22,0 +23,0 @@ const applicationUrn = "urn:" + hostnameHash + ":" + suffix;

/**
* @module node-opcua-common
*/
import { createPrivateKey } from "crypto";
import { EventEmitter } from "events";

@@ -6,0 +5,0 @@ import * as fs from "fs";

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