New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kenjiuno/msgreader

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kenjiuno/msgreader - npm Package Compare versions

Comparing version 1.18.0 to 1.19.0-alpha.1

5

lib/DataStream.js

@@ -43,3 +43,6 @@ "use strict";

else if (arrayBuffer && arrayBuffer.buffer instanceof ArrayBuffer) {
this.buffer = arrayBuffer.buffer;
this._byteOffset += arrayBuffer.byteOffset;
this._buffer = arrayBuffer.buffer;
this._dataView = new DataView(this._buffer, this._byteOffset);
this._byteLength = this._dataView.byteLength + this._byteOffset;
}

@@ -46,0 +49,0 @@ else {

18

lib/Reader.js

@@ -281,5 +281,17 @@ "use strict";

else {
var offset = this.getBlockOffsetAt(fieldProperty.startBlock);
this.ds.seek(offset);
return this.ds.readUint8Array(fieldProperty.sizeBlock);
var nextBlock = fieldProperty.startBlock;
var remaining = fieldProperty.sizeBlock;
var position = 0;
var resultData = new Uint8Array(fieldProperty.sizeBlock);
while (1 <= remaining) {
var blockStartOffset = this.getBlockOffsetAt(nextBlock);
this.ds.seek(blockStartOffset);
var partSize = Math.min(remaining, this.bigBlockSize);
var part = this.ds.readUint8Array(partSize);
resultData.set(part, position);
position += partSize;
remaining -= partSize;
nextBlock = this.getNextBlock(nextBlock);
}
return resultData;
}

@@ -286,0 +298,0 @@ };

{
"name": "@kenjiuno/msgreader",
"version": "1.18.0",
"version": "1.19.0-alpha.1",
"description": "Outlook Item File (.msg) reader in JavaScript Npm Module",

@@ -10,3 +10,3 @@ "main": "lib/index.js",

"build": "tsc",
"test": "npm run mocha",
"test": "npm run mocha test/ test2/",
"prepare": "npm run build && npm run test",

@@ -13,0 +13,0 @@ "mocha": "set NODE_ENV=test && mocha",

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