node-opcua-chunkmanager
Advanced tools
Comparing version 0.5.0 to 2.0.0-alpha.2
{ | ||
"name": "node-opcua-chunkmanager", | ||
"version": "0.5.0", | ||
"version": "2.0.0-alpha.2", | ||
"description": "pure nodejs OPCUA SDK - module -chunkmanager", | ||
"main": "index.js", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"test": "exit 0 " | ||
"build": "tsc", | ||
"test": "exit 0 ", | ||
"clean": "node -e \"require('rimraf').sync('dist');\"", | ||
"lint": "tslint source/**/*.ts" | ||
}, | ||
"dependencies": { | ||
"node-opcua-assert": "^0.5.0", | ||
"node-opcua-binary-stream": "^0.5.0", | ||
"node-opcua-buffer-utils": "^0.5.0", | ||
"chalk": "^2.4.1", | ||
"node-opcua-assert": "^2.0.0-alpha.2", | ||
"node-opcua-basic-types": "^2.0.0-alpha.2", | ||
"node-opcua-binary-stream": "^2.0.0-alpha.2", | ||
"node-opcua-buffer-utils": "^2.0.0-alpha.2", | ||
"node-opcua-factory": "^2.0.0-alpha.2", | ||
"node-opcua-packet-assembler": "^2.0.0-alpha.2", | ||
"underscore": "^1.9.1" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-debug": "^0.5.0", | ||
"should": "13.2.3" | ||
"@types/node": "^10.12.0", | ||
"@types/underscore": "^1.8.9", | ||
"node-opcua-debug": "^2.0.0-alpha.2", | ||
"should": "13.2.3", | ||
"source-map-support": "^0.5.9" | ||
}, | ||
@@ -34,3 +45,3 @@ "author": "Etienne Rossignon", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "7c2f2dcb6ebdc49e57da1a028406a307df502d4e" | ||
"gitHead": "7f57dd90e9d8bd1abcb8d330b3470999ac51e33f" | ||
} |
@@ -22,3 +22,3 @@ "use strict"; | ||
function compute_fake_signature(section_to_sign) { | ||
function computeFakeSignature(section_to_sign) { | ||
@@ -32,3 +32,3 @@ const signature = Buffer.allocUnsafe(4); | ||
function write_fake_header(block, isLast, total_length) { | ||
function writeFakeHeader(block, isLast, total_length) { | ||
for (let i = 0; i < this.headerSize; i++) { | ||
@@ -39,3 +39,3 @@ block.writeUInt8(0xAA, i); | ||
function write_fake_sequence_header(block) { | ||
function writeFakeSequenceHeader(block) { | ||
for (let i = 0; i < this.sequenceHeaderSize; i++) { | ||
@@ -223,3 +223,3 @@ block.writeUInt8(0xBB, i); | ||
sequenceHeaderSize: 8, | ||
writeSequenceHeaderFunc: write_fake_sequence_header | ||
writeSequenceHeaderFunc: writeFakeSequenceHeader | ||
@@ -253,2 +253,3 @@ }); | ||
beforeEach(function () { | ||
chunkManager = new ChunkManager({ | ||
@@ -258,6 +259,6 @@ chunkSize: 32, | ||
sequenceHeaderSize: 8, | ||
writeSequenceHeaderFunc: write_fake_sequence_header, | ||
writeSequenceHeaderFunc: writeFakeSequenceHeader, | ||
signatureLength: 4, | ||
compute_signature: compute_fake_signature | ||
signBufferFunc: computeFakeSignature | ||
@@ -300,16 +301,16 @@ }); | ||
cipherBlockSize: 8, | ||
encrypt_buffer: no_encrypt_block, | ||
encryptBufferFunc: no_encrypt_block, | ||
headerSize: 4, | ||
writeHeaderFunc: write_fake_header, | ||
writeHeaderFunc: writeFakeHeader, | ||
sequenceHeaderSize: 2, | ||
writeSequenceHeaderFunc: write_fake_sequence_header, | ||
writeSequenceHeaderFunc: writeFakeSequenceHeader, | ||
signatureLength: 4, | ||
compute_signature: compute_fake_signature | ||
signBufferFunc: computeFakeSignature | ||
}); | ||
chunkManager.chunkSize.should.equal(32); | ||
chunkManager.maxBodySize.should.equal(17); | ||
chunkManager.compute_signature.should.equal(compute_fake_signature); | ||
chunkManager.signBufferFunc.should.equal(computeFakeSignature); | ||
@@ -424,13 +425,13 @@ }); | ||
headerSize: 8, | ||
writeHeaderFunc: write_fake_header, | ||
writeHeaderFunc: writeFakeHeader, | ||
sequenceHeaderSize: 8, | ||
writeSequenceHeaderFunc: write_fake_sequence_header, | ||
writeSequenceHeaderFunc: writeFakeSequenceHeader, | ||
plainBlockSize: 6, | ||
cipherBlockSize: 8, | ||
encrypt_buffer: fake_encrypt_buffer, | ||
encryptBufferFunc: fake_encrypt_buffer, | ||
signatureLength: 4, | ||
compute_signature: compute_fake_signature | ||
signBufferFunc: computeFakeSignature | ||
}); | ||
@@ -437,0 +438,0 @@ chunkManager.chunkSize.should.equal(64); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
65931
21
1113
8
5
1
+ Addedchalk@^2.4.1
+ Added@types/long@4.0.2(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedhexy@0.3.5(transitive)
+ Addedlong@4.0.0(transitive)
+ Addednode-opcua-assert@2.139.0(transitive)
+ Addednode-opcua-basic-types@2.139.0(transitive)
+ Addednode-opcua-binary-stream@2.139.0(transitive)
+ Addednode-opcua-buffer-utils@2.139.0(transitive)
+ Addednode-opcua-constants@2.139.0(transitive)
+ Addednode-opcua-date-time@2.139.0(transitive)
+ Addednode-opcua-debug@2.139.0(transitive)
+ Addednode-opcua-enum@2.139.0(transitive)
+ Addednode-opcua-factory@2.139.0(transitive)
+ Addednode-opcua-guid@2.139.0(transitive)
+ Addednode-opcua-nodeid@2.139.0(transitive)
+ Addednode-opcua-packet-assembler@2.139.0(transitive)
+ Addednode-opcua-status-code@2.139.0(transitive)
+ Addednode-opcua-utils@2.139.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedbetter-assert@1.0.2(transitive)
- Removedcallsite@1.0.0(transitive)
- Removedcolors@1.4.0(transitive)
- Removednode-opcua-assert@0.5.0(transitive)
- Removednode-opcua-binary-stream@0.5.6(transitive)
- Removednode-opcua-buffer-utils@0.5.6(transitive)