node-opcua-common 2.66.0 → 2.68.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/applicationurn.js +1 -1
- package/dist/applicationurn.js.map +1 -1
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/source/applicationurn.ts +1 -1
package/dist/applicationurn.js
CHANGED
|
@@ -16,7 +16,7 @@ function makeApplicationUrn(hostname, suffix) {
|
|
|
16
16
|
if (hostnameHash.length + 7 + suffix.length >= 64) {
|
|
17
17
|
// we need to reduce the applicationUrn side => let's take
|
|
18
18
|
// a portion of the hostname hash.
|
|
19
|
-
hostnameHash = crypto.createHash("md5").update(hostname).digest("hex").
|
|
19
|
+
hostnameHash = crypto.createHash("md5").update(hostname).digest("hex").substring(0, 16);
|
|
20
20
|
}
|
|
21
21
|
const applicationUrn = "urn:" + hostnameHash + ":" + suffix;
|
|
22
22
|
(0, node_opcua_assert_1.assert)(applicationUrn.length <= 64);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationurn.js","sourceRoot":"","sources":["../source/applicationurn.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,iCAAiC;AAEjC,yDAA2C;AAE3C,SAAgB,kBAAkB,CAAC,QAAgB,EAAE,MAAc;IAC/D,IAAA,0BAAM,EAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,6BAA6B,CAAC,CAAC;IAC7D,sEAAsE;IACtE,2DAA2D;IAC3D,wEAAwE;IACxE,eAAe;IACf,IAAI,YAAY,GAAG,QAAQ,CAAC;IAC5B,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,IAAI,EAAE,EAAE;QAC/C,0DAA0D;QAC1D,kCAAkC;QAClC,YAAY,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"applicationurn.js","sourceRoot":"","sources":["../source/applicationurn.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,iCAAiC;AAEjC,yDAA2C;AAE3C,SAAgB,kBAAkB,CAAC,QAAgB,EAAE,MAAc;IAC/D,IAAA,0BAAM,EAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,6BAA6B,CAAC,CAAC;IAC7D,sEAAsE;IACtE,2DAA2D;IAC3D,wEAAwE;IACxE,eAAe;IACf,IAAI,YAAY,GAAG,QAAQ,CAAC;IAC5B,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,IAAI,EAAE,EAAE;QAC/C,0DAA0D;QAC1D,kCAAkC;QAClC,YAAY,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;KAC3F;IACD,MAAM,cAAc,GAAG,MAAM,GAAG,YAAY,GAAG,GAAG,GAAG,MAAM,CAAC;IAC5D,IAAA,0BAAM,EAAC,cAAc,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IACpC,OAAO,cAAc,CAAC;AAC1B,CAAC;AAfD,gDAeC"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;GAEG;AACH,qDAgB0B;AAftB,+GAAA,WAAW,OAAA;AACX,wHAAA,oBAAoB,OAAA;AACpB,2HAAA,uBAAuB,OAAA;AACvB,gIAAA,4BAA4B,OAAA;AAC5B,mIAAA,+BAA+B,OAAA;AAC/B,uIAAA,mCAAmC,OAAA;AACnC,mIAAA,+BAA+B,OAAA;AAC/B,oIAAA,gCAAgC,OAAA;AAChC,sIAAA,kCAAkC,OAAA;AAClC,0HAAA,sBAAsB,OAAA;AACtB,8HAAA,0BAA0B,OAAA;AAC1B,6GAAA,SAAS,OAAA;AACT,sHAAA,kBAAkB,OAAA;AAClB,iHAAA,aAAa,OAAA;AACb,oHAAA,gBAAgB,OAAA;AAGpB,mDAAiC;AACjC,wDAAsC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-common",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.68.1",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -common",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "mocha",
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"node-opcua-assert": "2.66.0",
|
|
15
|
-
"node-opcua-basic-types": "2.
|
|
15
|
+
"node-opcua-basic-types": "2.68.0",
|
|
16
16
|
"node-opcua-crypto": "^1.10.0",
|
|
17
|
-
"node-opcua-data-model": "2.
|
|
18
|
-
"node-opcua-factory": "2.
|
|
19
|
-
"node-opcua-nodeid": "2.
|
|
20
|
-
"node-opcua-service-endpoints": "2.
|
|
21
|
-
"node-opcua-service-secure-channel": "2.
|
|
22
|
-
"node-opcua-types": "2.
|
|
17
|
+
"node-opcua-data-model": "2.68.0",
|
|
18
|
+
"node-opcua-factory": "2.68.0",
|
|
19
|
+
"node-opcua-nodeid": "2.68.0",
|
|
20
|
+
"node-opcua-service-endpoints": "2.68.1",
|
|
21
|
+
"node-opcua-service-secure-channel": "2.68.1",
|
|
22
|
+
"node-opcua-types": "2.68.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": "17.0.23",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"internet of things"
|
|
41
41
|
],
|
|
42
42
|
"homepage": "http://node-opcua.github.io/",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "7bcb67b06ea755d438e91f5c143d20531497e286"
|
|
44
44
|
}
|
package/source/applicationurn.ts
CHANGED
|
@@ -15,7 +15,7 @@ export function makeApplicationUrn(hostname: string, suffix: string): string {
|
|
|
15
15
|
if (hostnameHash.length + 7 + suffix.length >= 64) {
|
|
16
16
|
// we need to reduce the applicationUrn side => let's take
|
|
17
17
|
// a portion of the hostname hash.
|
|
18
|
-
hostnameHash = crypto.createHash("md5").update(hostname).digest("hex").
|
|
18
|
+
hostnameHash = crypto.createHash("md5").update(hostname).digest("hex").substring(0, 16);
|
|
19
19
|
}
|
|
20
20
|
const applicationUrn = "urn:" + hostnameHash + ":" + suffix;
|
|
21
21
|
assert(applicationUrn.length <= 64);
|