node-opcua-extension-object 2.52.0 → 2.56.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.
- package/LICENSE +20 -20
- package/dist/extension_object.d.ts +1 -1
- package/dist/extension_object.js +1 -1
- package/dist/extension_object.js.map +1 -1
- package/package.json +10 -9
- package/source/extension_object.ts +3 -4
- package/source/index.ts +4 -4
package/LICENSE
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2014-2021 Etienne Rossignon
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
-
the Software without restriction, including without limitation the rights to
|
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
-
subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2021 Etienne Rossignon
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -4,7 +4,7 @@ import { BaseUAObject, StructuredTypeSchema } from "node-opcua-factory";
|
|
|
4
4
|
import { NodeId } from "node-opcua-nodeid";
|
|
5
5
|
export declare class ExtensionObject extends BaseUAObject {
|
|
6
6
|
static schema: StructuredTypeSchema;
|
|
7
|
-
constructor(options
|
|
7
|
+
constructor(options?: null | Record<string, any>);
|
|
8
8
|
}
|
|
9
9
|
export declare function encodeExtensionObject(object: BaseUAObject | null, stream: OutputBinaryStream): void;
|
|
10
10
|
export declare class OpaqueStructure extends ExtensionObject {
|
package/dist/extension_object.js
CHANGED
|
@@ -101,7 +101,7 @@ exports.encodeExtensionObject = encodeExtensionObject;
|
|
|
101
101
|
// tslint:disable:max-classes-per-file
|
|
102
102
|
class OpaqueStructure extends ExtensionObject {
|
|
103
103
|
constructor(nodeId, buffer) {
|
|
104
|
-
super(
|
|
104
|
+
super();
|
|
105
105
|
this.nodeId = nodeId;
|
|
106
106
|
this.buffer = buffer;
|
|
107
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension_object.js","sourceRoot":"","sources":["../source/extension_object.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,mEAAoE;AAEpE,uDAA0E;AAC1E,2DAA8H;AAC9H,yDAAuE;AAEvE,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAE3C,+BAA+B;AAE/B,6BAA6B;AAC7B,MAAa,eAAgB,SAAQ,iCAAY;IAQ7C,YAAY,
|
|
1
|
+
{"version":3,"file":"extension_object.js","sourceRoot":"","sources":["../source/extension_object.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,mEAAoE;AAEpE,uDAA0E;AAC1E,2DAA8H;AAC9H,yDAAuE;AAEvE,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAE3C,+BAA+B;AAE/B,6BAA6B;AAC7B,MAAa,eAAgB,SAAQ,iCAAY;IAQ7C,YAAY,OAAoC;QAC5C,KAAK,EAAE,CAAC;IACZ,CAAC;;AAVL,0CAWC;AAViB,sBAAM,GAAyB,IAAI,yCAAoB,CAAC;IAClE,QAAQ,EAAE,EAAE;IACZ,aAAa,EAAE,EAAE;IACjB,MAAM,EAAE,EAAE;IACV,IAAI,EAAE,iBAAiB;CAC1B,CAAC,CAAC;AAOP,eAAe,CAAC,SAAS,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;AAE1D,SAAS,6BAA6B,CAAC,cAAsB;IACzD,OAAO,IAAA,oCAAe,EAAC,cAAgC,CAAC,CAAC;AAC7D,CAAC;AAED,4CAA4C;AAC5C,oFAAoF;AACpF,oDAAoD;AAEpD,+DAA+D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,CAAC;SAClC;aAAM;YACH,IAAI;gBACA,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;aACzB;YAAC,OAAO,GAAG,EAAE;gBACV,QAAQ,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;aAC1C;SACJ;KACJ;IAED,IAAI,kBAAkB,GAAG,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE;QAC/C,4EAA4E;QAC5E,sGAAsG;QACtG,sCAAsC;QACtC,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC,CAAC;QAE/E,sCAAsC;QACtC,OAAO,CAAC,IAAI,CACR,gDAAgD,EAChD,MAAM,CAAC,WAAW,CAAC,IAAI,EACvB,oBAAoB,EACpB,MAAM,EACN,gDAAgD,EAChD,MAAM,CAAC,MAAM,GAAG,kBAAkB,CACrC,CAAC;QACF,MAAM,CAAC,MAAM,GAAG,kBAAkB,GAAG,MAAM,CAAC;KAC/C;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AA9DD,sDA8DC;AAED,IAAA,wCAAmB,EAAC;IAChB,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,EAAE;IAEX,MAAM,EAAE,qBAAqB;IAE7B,MAAM,EAAE,qBAAqB;IAE7B,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI;CAC3B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-extension-object",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.56.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -extension-object",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc -b",
|
|
9
|
-
"lint": "eslint source
|
|
9
|
+
"lint": "eslint source",
|
|
10
|
+
"format": "prettier --write source",
|
|
10
11
|
"clean": "node -e \"require('rimraf').sync('dist');\"",
|
|
11
12
|
"test": "echo no test"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
15
|
"chalk": "4.1.2",
|
|
15
|
-
"node-opcua-assert": "2.
|
|
16
|
-
"node-opcua-basic-types": "2.
|
|
17
|
-
"node-opcua-binary-stream": "2.
|
|
18
|
-
"node-opcua-debug": "2.
|
|
19
|
-
"node-opcua-factory": "2.
|
|
20
|
-
"node-opcua-nodeid": "2.
|
|
16
|
+
"node-opcua-assert": "2.55.0",
|
|
17
|
+
"node-opcua-basic-types": "2.56.0",
|
|
18
|
+
"node-opcua-binary-stream": "2.55.0",
|
|
19
|
+
"node-opcua-debug": "2.55.0",
|
|
20
|
+
"node-opcua-factory": "2.56.0",
|
|
21
|
+
"node-opcua-nodeid": "2.55.0"
|
|
21
22
|
},
|
|
22
23
|
"author": "Etienne Rossignon",
|
|
23
24
|
"license": "MIT",
|
|
@@ -34,5 +35,5 @@
|
|
|
34
35
|
"internet of things"
|
|
35
36
|
],
|
|
36
37
|
"homepage": "http://node-opcua.github.io/",
|
|
37
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "9f6eac1c658c0d182fbe03cf58f799af468615eb"
|
|
38
39
|
}
|
|
@@ -20,7 +20,7 @@ export class ExtensionObject extends BaseUAObject {
|
|
|
20
20
|
name: "ExtensionObject"
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
constructor(options
|
|
23
|
+
constructor(options?: null | Record<string, any>) {
|
|
24
24
|
super();
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -110,14 +110,13 @@ export function encodeExtensionObject(object: BaseUAObject | null, stream: Outpu
|
|
|
110
110
|
|
|
111
111
|
// tslint:disable:max-classes-per-file
|
|
112
112
|
export class OpaqueStructure extends ExtensionObject {
|
|
113
|
-
|
|
114
113
|
// the nodeId is the same as the encodingDefaultBinary
|
|
115
114
|
public nodeId: NodeId;
|
|
116
|
-
|
|
115
|
+
|
|
117
116
|
public buffer: Buffer;
|
|
118
117
|
|
|
119
118
|
constructor(nodeId: NodeId, buffer: Buffer) {
|
|
120
|
-
super(
|
|
119
|
+
super();
|
|
121
120
|
this.nodeId = nodeId;
|
|
122
121
|
this.buffer = buffer;
|
|
123
122
|
}
|
package/source/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-extension-object
|
|
3
|
-
*/
|
|
4
|
-
export * from "./extension_object";
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-extension-object
|
|
3
|
+
*/
|
|
4
|
+
export * from "./extension_object";
|