node-opcua-client-dynamic-extension-object 2.78.0 → 2.79.0
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.
|
@@ -410,7 +410,7 @@ function _exploreDataTypeDefinition(session, dataTypeDictionaryTypeNode, dataTyp
|
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
|
-
const regexTargetNamespaceAttribute = /TargetNamespace="([^"]+)"|TargetNamespace='([^
|
|
413
|
+
const regexTargetNamespaceAttribute = /TargetNamespace="([^"]+)"|TargetNamespace='([^']+)'/;
|
|
414
414
|
function extractTargetNamespaceAttribute(xmlElement) {
|
|
415
415
|
// warning TargetNamespace could have ' or " , Wago PLC for instance uses simple quotes
|
|
416
416
|
const c2 = xmlElement.match(regexTargetNamespaceAttribute);
|
|
@@ -424,7 +424,7 @@ function extraNamespaceRef(attribute) {
|
|
|
424
424
|
const c = attribute.match(regexNamespaceRef);
|
|
425
425
|
if (c) {
|
|
426
426
|
const xmlns = c[1];
|
|
427
|
-
const namespace = c[
|
|
427
|
+
const namespace = c[4] || c[5];
|
|
428
428
|
return { xmlns, namespace };
|
|
429
429
|
}
|
|
430
430
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-client-dynamic-extension-object",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.79.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module client-dynamic-extension-object",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
"chalk": "4.1.2",
|
|
14
14
|
"node-opcua-assert": "2.77.0",
|
|
15
15
|
"node-opcua-binary-stream": "2.77.0",
|
|
16
|
-
"node-opcua-data-model": "2.
|
|
17
|
-
"node-opcua-data-value": "2.
|
|
16
|
+
"node-opcua-data-model": "2.79.0",
|
|
17
|
+
"node-opcua-data-value": "2.79.0",
|
|
18
18
|
"node-opcua-debug": "2.77.0",
|
|
19
|
-
"node-opcua-extension-object": "2.
|
|
20
|
-
"node-opcua-factory": "2.
|
|
21
|
-
"node-opcua-nodeid": "2.
|
|
22
|
-
"node-opcua-pseudo-session": "2.
|
|
23
|
-
"node-opcua-schemas": "2.
|
|
24
|
-
"node-opcua-service-browse": "2.
|
|
25
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
19
|
+
"node-opcua-extension-object": "2.79.0",
|
|
20
|
+
"node-opcua-factory": "2.79.0",
|
|
21
|
+
"node-opcua-nodeid": "2.79.0",
|
|
22
|
+
"node-opcua-pseudo-session": "2.79.0",
|
|
23
|
+
"node-opcua-schemas": "2.79.0",
|
|
24
|
+
"node-opcua-service-browse": "2.79.0",
|
|
25
|
+
"node-opcua-service-translate-browse-path": "2.79.0",
|
|
26
26
|
"node-opcua-status-code": "2.77.0",
|
|
27
|
-
"node-opcua-types": "2.
|
|
28
|
-
"node-opcua-variant": "2.
|
|
27
|
+
"node-opcua-types": "2.79.0",
|
|
28
|
+
"node-opcua-variant": "2.79.0"
|
|
29
29
|
},
|
|
30
30
|
"author": "Etienne Rossignon",
|
|
31
31
|
"license": "MIT",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"internet of things"
|
|
43
43
|
],
|
|
44
44
|
"homepage": "http://node-opcua.github.io/",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "1a6d41827954dccf2c2cdff9344cc11fc99767f3"
|
|
46
46
|
}
|
|
@@ -497,7 +497,7 @@ async function _exploreDataTypeDefinition(
|
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
-
const regexTargetNamespaceAttribute = /TargetNamespace="([^"]+)"|TargetNamespace='([^
|
|
500
|
+
const regexTargetNamespaceAttribute = /TargetNamespace="([^"]+)"|TargetNamespace='([^']+)'/;
|
|
501
501
|
function extractTargetNamespaceAttribute(xmlElement: string): string {
|
|
502
502
|
// warning TargetNamespace could have ' or " , Wago PLC for instance uses simple quotes
|
|
503
503
|
const c2 = xmlElement.match(regexTargetNamespaceAttribute);
|
|
@@ -511,7 +511,7 @@ function extraNamespaceRef(attribute: string): { xmlns: string; namespace: strin
|
|
|
511
511
|
const c = attribute.match(regexNamespaceRef);
|
|
512
512
|
if (c) {
|
|
513
513
|
const xmlns = c[1] as string;
|
|
514
|
-
const namespace: string = c[
|
|
514
|
+
const namespace: string = c[4] || c[5];
|
|
515
515
|
return { xmlns, namespace };
|
|
516
516
|
}
|
|
517
517
|
return null;
|