@thi.ng/bitstream
Advanced tools
Comparing version 0.4.8 to 0.4.9
@@ -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) |
"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": { |
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
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
28224
+ Added@thi.ng/errors@^0.1.0
+ Added@thi.ng/errors@0.1.12(transitive)
- Removed@thi.ng/api@^2.3.2
- Removed@thi.ng/api@2.3.2(transitive)
- Removed@thi.ng/checks@1.5.14(transitive)