node-opcua-common
Advanced tools
Comparing version 2.107.0 to 2.108.0
"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; |
/// <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
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
21070
319
+ Addednode-opcua-basic-types@2.108.0(transitive)
+ Addednode-opcua-binary-stream@2.108.0(transitive)
+ Addednode-opcua-buffer-utils@2.108.0(transitive)
+ Addednode-opcua-crypto@3.1.0(transitive)
+ Addednode-opcua-data-model@2.108.0(transitive)
+ Addednode-opcua-data-value@2.108.0(transitive)
+ Addednode-opcua-date-time@2.108.0(transitive)
+ Addednode-opcua-debug@2.108.0(transitive)
+ Addednode-opcua-enum@2.108.0(transitive)
+ Addednode-opcua-extension-object@2.108.0(transitive)
+ Addednode-opcua-factory@2.108.0(transitive)
+ Addednode-opcua-generator@2.108.0(transitive)
+ Addednode-opcua-nodeid@2.108.0(transitive)
+ Addednode-opcua-numeric-range@2.108.0(transitive)
+ Addednode-opcua-schemas@2.108.0(transitive)
+ Addednode-opcua-status-code@2.108.0(transitive)
+ Addednode-opcua-types@2.108.0(transitive)
+ Addednode-opcua-utils@2.108.0(transitive)
+ Addednode-opcua-variant@2.108.0(transitive)
+ Addednode-opcua-xml2json@2.108.0(transitive)
- Removednode-opcua-basic-types@2.105.0(transitive)
- Removednode-opcua-binary-stream@2.105.0(transitive)
- Removednode-opcua-buffer-utils@2.105.0(transitive)
- Removednode-opcua-crypto@3.0.6(transitive)
- Removednode-opcua-data-model@2.105.0(transitive)
- Removednode-opcua-data-value@2.105.0(transitive)
- Removednode-opcua-date-time@2.105.0(transitive)
- Removednode-opcua-debug@2.105.0(transitive)
- Removednode-opcua-enum@2.105.0(transitive)
- Removednode-opcua-extension-object@2.105.0(transitive)
- Removednode-opcua-factory@2.105.0(transitive)
- Removednode-opcua-generator@2.107.0(transitive)
- Removednode-opcua-nodeid@2.105.0(transitive)
- Removednode-opcua-numeric-range@2.105.0(transitive)
- Removednode-opcua-schemas@2.107.0(transitive)
- Removednode-opcua-status-code@2.105.0(transitive)
- Removednode-opcua-types@2.107.0(transitive)
- Removednode-opcua-utils@2.105.0(transitive)
- Removednode-opcua-variant@2.105.0(transitive)
- Removednode-opcua-xml2json@2.107.0(transitive)
Updatednode-opcua-crypto@3.1.0
Updatednode-opcua-types@2.108.0