node-opcua-buffer-utils 2.42.0 → 2.62.5
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/buffer_utils.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @module node-opcua-buffer-utils
|
|
3
3
|
*/
|
|
4
4
|
/// <reference types="node" />
|
|
5
|
-
export declare const createFastUninitializedBuffer:
|
|
5
|
+
export declare const createFastUninitializedBuffer: (size: number) => Buffer;
|
|
6
6
|
/**
|
|
7
7
|
* @method makeBuffer
|
|
8
8
|
* turn a string make of hexadecimal bytes into a buffer
|
package/dist/buffer_utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buffer_utils.js","sourceRoot":"","sources":["../source/buffer_utils.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,EAAE;AACF,8FAA8F;AAC9F,4DAA4D;AAC5D,kEAAkE;AAClE,EAAE;AACF,iFAAiF;AACjF,2BAA2B;AAC3B,EAAE;AACF,qCAAqC;AACxB,QAAA,6BAA6B,
|
|
1
|
+
{"version":3,"file":"buffer_utils.js","sourceRoot":"","sources":["../source/buffer_utils.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,EAAE;AACF,8FAA8F;AAC9F,4DAA4D;AAC5D,kEAAkE;AAClE,EAAE;AACF,iFAAiF;AACjF,2BAA2B;AAC3B,EAAE;AACF,qCAAqC;AACxB,QAAA,6BAA6B,GAAG,MAAM,CAAC,WAAW,CAAC;AAEhE;;;;;;;;;GASG;AACH,SAAgB,UAAU,CAAC,WAAmB;IAC1C,MAAM,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,MAAM,CAAC,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAC1D,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QAChB,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACrC,CAAC,IAAI,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,CAAC;AACb,CAAC;AATD,gCASC;AAED,SAAgB,YAAY,CAAC,MAAc;IACvC,MAAM,KAAK,GAAG,OAAO,CAAC,6BAA6B,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACnE,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACzB,OAAO,KAAK,CAAC;AACjB,CAAC;AAJD,oCAIC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-buffer-utils",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.62.5",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -buffer-utils",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"build": "tsc -b",
|
|
9
9
|
"test": "mocha",
|
|
10
10
|
"clean": "node -e \"require('rimraf').sync('dist');\"",
|
|
11
|
-
"lint": "
|
|
11
|
+
"lint": "eslint source/**/*.ts"
|
|
12
12
|
},
|
|
13
13
|
"author": "Etienne Rossignon",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"node-opcua-assert": "2.
|
|
16
|
+
"node-opcua-assert": "2.55.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"node-opcua-benchmarker": "2.
|
|
19
|
+
"node-opcua-benchmarker": "2.62.5"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"internet of things"
|
|
32
32
|
],
|
|
33
33
|
"homepage": "http://node-opcua.github.io/",
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "cb95f55c77e94127d0f9f2ab00a7e78c27b57633"
|
|
35
35
|
}
|
package/source/buffer_utils.ts
CHANGED
|
@@ -11,11 +11,7 @@
|
|
|
11
11
|
// in node 0.11 new Buffer
|
|
12
12
|
//
|
|
13
13
|
// tslint:disable-next-line:ban-types
|
|
14
|
-
export const createFastUninitializedBuffer
|
|
15
|
-
Buffer.allocUnsafe
|
|
16
|
-
/* ? Buffer.allocUnsafe : (size: number) => {
|
|
17
|
-
return new Buffer(size);
|
|
18
|
-
}*/;
|
|
14
|
+
export const createFastUninitializedBuffer = Buffer.allocUnsafe;
|
|
19
15
|
|
|
20
16
|
/**
|
|
21
17
|
* @method makeBuffer
|