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.6 to 0.0.8

2

lib/toString.d.ts

@@ -1,1 +0,1 @@

export declare const toString: (buffer: ArrayBuffer, bitsPerLine?: number, delimiter?: string) => string;
export declare const toString: (buffer: ArrayBuffer, bitsPerLine?: number, maxLineCount?: number, delimiter?: string) => string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toString = (buffer, bitsPerLine = 32, delimiter = '') => {
exports.toString = (buffer, bitsPerLine = 32, maxLineCount = Infinity, delimiter = '') => {
const lines = [];

@@ -12,3 +12,6 @@ let line = [];

if (length === bitsPerLine) {
lines.push(line.join(delimiter));
const lineCount = lines.push(line.join(delimiter));
if (maxLineCount <= lineCount) {
return lines.join('\n');
}
line = [];

@@ -15,0 +18,0 @@ }

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

},
"version": "0.0.6",
"version": "0.0.8",
"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