Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-chunkmanager

Package Overview
Dependencies
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-chunkmanager - npm Package Compare versions

Comparing version 0.5.0 to 2.0.0-alpha.2

dist/chunk_manager.d.ts

29

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc