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

@hookun/bitbybit

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hookun/bitbybit - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

4

lib/Wrapper.d.ts

@@ -9,7 +9,7 @@ export declare class Wrapper {

get bitLength(): number;
get bitOffsetFromStart(): number;
get residualBitLength(): number;
get byte(): number;
get bitOffsetFromStart(): number;
get done(): boolean;
residualBitLength(): number;
protected step(bitLength: number): boolean;
}

@@ -19,14 +19,14 @@ "use strict";

}
get bitOffsetFromStart() {
return this.byteOffset * constants_1.WordSize + this.bitOffset;
}
get residualBitLength() {
return this.bitLength - this.bitOffsetFromStart;
}
get byte() {
return this.view.getUint8(this.byteOffset);
}
get bitOffsetFromStart() {
return this.byteOffset * constants_1.WordSize + this.bitOffset;
}
get done() {
return this.byteLength <= this.byteOffset;
}
residualBitLength() {
return this.bitLength - this.bitOffsetFromStart;
}
step(bitLength) {

@@ -33,0 +33,0 @@ const bitOffset = this.bitOffset + bitLength;

@@ -11,3 +11,3 @@ {

},
"version": "0.0.13",
"version": "0.0.14",
"license": "Apache-2.0",

@@ -14,0 +14,0 @@ "author": {

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