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

@thi.ng/bitstream

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/bitstream - npm Package Compare versions

Comparing version 0.4.8 to 0.4.9

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

<a name="0.4.9"></a>
## [0.4.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@0.4.8...@thi.ng/bitstream@0.4.9) (2018-05-10)
**Note:** Version bump only for package @thi.ng/bitstream
<a name="0.4.8"></a>

@@ -8,0 +16,0 @@ ## [0.4.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@0.4.7...@thi.ng/bitstream@0.4.8) (2018-05-09)

6

input.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("@thi.ng/api/error");
const errors_1 = require("@thi.ng/errors");
const U32 = Math.pow(2, 32);

@@ -33,3 +33,3 @@ class BitInputStream {

if (pos < this.start || pos >= this.limit) {
error_1.illegalArgs(`seek pos out of bounds: ${pos}`);
errors_1.illegalArgs(`seek pos out of bounds: ${pos}`);
}

@@ -107,3 +107,3 @@ this.pos = pos >>> 3;

if (this.bitPos + requested > this.limit) {
error_1.illegalState(`can't read past EOF`);
errors_1.illegalState(`can't read past EOF`);
}

@@ -110,0 +110,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("@thi.ng/api/error");
const errors_1 = require("@thi.ng/errors");
const input_1 = require("./input");

@@ -23,3 +23,3 @@ const DEFAULT_BUF_SIZE = 0x10;

if (pos < this.start || pos >= this.buffer.length << 3) {
error_1.illegalArgs(`seek pos out of bounds: ${pos}`);
errors_1.illegalArgs(`seek pos out of bounds: ${pos}`);
}

@@ -26,0 +26,0 @@ this.pos = pos >>> 3;

{
"name": "@thi.ng/bitstream",
"version": "0.4.8",
"version": "0.4.9",
"description": "ES6 iterator based read/write bit streams & support for variable word widths",

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

"dependencies": {
"@thi.ng/api": "^2.3.2"
"@thi.ng/errors": "^0.1.0"
},

@@ -22,0 +22,0 @@ "devDependencies": {

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