Socket
Socket
Sign inDemoInstall

@tokenizer/range

Package Overview
Dependencies
5
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.3 to 0.4.0

1

lib/chunked-file-data.d.ts

@@ -30,2 +30,3 @@ /// <reference types="node" />

private _getChunkRange;
getByteAt(offset: number): number;
}

@@ -145,4 +145,12 @@ "use strict";

}
getByteAt(offset) {
const buf = Buffer.alloc(1);
const bytesRead = this.readToBuffer(buf, 0, offset, 1);
if (bytesRead < 1) {
throw new Error('Offset ' + offset + " hasn't been loaded yet.");
}
return buf[0];
}
}
exports.ChunkedFileData = ChunkedFileData;
//# sourceMappingURL=chunked-file-data.js.map

2

package.json
{
"name": "@tokenizer/range",
"version": "0.3.3",
"version": "0.4.0",
"description": "Range-request tokenizer adapter",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc