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

@thi.ng/binary

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/binary - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

align.d.ts

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

import type { Pow2 } from "./api";
import type { Pow2 } from "./api.js";
/**

@@ -3,0 +3,0 @@ * Aligns `addr` to next multiple of `size`. The latter must be a power

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

import { floatToUintBits, floatToUintBits64 } from "./float";
import { floatToUintBits, floatToUintBits64 } from "./float.js";
export const bytes16 = (x, le = false) => {

@@ -3,0 +3,0 @@ const b0 = x & 0xff;

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

## [3.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@3.0.0...@thi.ng/binary@3.0.1) (2021-10-13)
**Note:** Version bump only for package @thi.ng/binary
# [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.2.11...@thi.ng/binary@3.0.0) (2021-10-12)

@@ -8,0 +16,0 @@

import type { FnU3 } from "@thi.ng/api";
import type { Bit } from "./api";
import type { Bit } from "./api.js";
/**

@@ -4,0 +4,0 @@ * Clears bit in given uint `x`.

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

import { defMask } from "./mask";
import { defMask } from "./mask.js";
/**

@@ -3,0 +3,0 @@ * Clears bit in given uint `x`.

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

export * from "./align";
export * from "./api";
export * from "./bytes";
export * from "./constants";
export * from "./count";
export * from "./edit";
export * from "./float";
export * from "./gray";
export * from "./logic";
export * from "./mask";
export * from "./one-hot";
export * from "./pow";
export * from "./rotate";
export * from "./splat";
export * from "./swizzle";
export * from "./align.js";
export * from "./api.js";
export * from "./bytes.js";
export * from "./constants.js";
export * from "./count.js";
export * from "./edit.js";
export * from "./float.js";
export * from "./gray.js";
export * from "./logic.js";
export * from "./mask.js";
export * from "./one-hot.js";
export * from "./pow.js";
export * from "./rotate.js";
export * from "./splat.js";
export * from "./swizzle.js";
//# sourceMappingURL=index.d.ts.map

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

export * from "./align";
export * from "./api";
export * from "./bytes";
export * from "./constants";
export * from "./count";
export * from "./edit";
export * from "./float";
export * from "./gray";
export * from "./logic";
export * from "./mask";
export * from "./one-hot";
export * from "./pow";
export * from "./rotate";
export * from "./splat";
export * from "./swizzle";
export * from "./align.js";
export * from "./api.js";
export * from "./bytes.js";
export * from "./constants.js";
export * from "./count.js";
export * from "./edit.js";
export * from "./float.js";
export * from "./gray.js";
export * from "./logic.js";
export * from "./mask.js";
export * from "./one-hot.js";
export * from "./pow.js";
export * from "./rotate.js";
export * from "./splat.js";
export * from "./swizzle.js";

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

import { maskL } from "./mask";
import { maskL } from "./mask.js";
export const bitNot = (x) => ~x;

@@ -3,0 +3,0 @@ export const bitAnd = (a, b) => a & b;

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

import { MASKS } from "./constants";
import { MASKS } from "./constants.js";
/**

@@ -3,0 +3,0 @@ * Creates bit mask by enabling bit `a` to bit `b-1`, both in range

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

import { clz32 } from "./count";
import { clz32 } from "./count.js";
/**

@@ -3,0 +3,0 @@ * Converts binary `x` to one-hot format.

{
"name": "@thi.ng/binary",
"version": "3.0.0",
"version": "3.0.1",
"description": "100+ assorted binary / bitwise operations, conversions, utilities, lookup tables",

@@ -37,6 +37,6 @@ "type": "module",

"dependencies": {
"@thi.ng/api": "^8.0.0"
"@thi.ng/api": "^8.0.1"
},
"devDependencies": {
"@thi.ng/testament": "^0.1.0"
"@thi.ng/testament": "^0.1.1"
},

@@ -66,2 +66,5 @@ "keywords": [

},
"engines": {
"node": ">=12.7"
},
"files": [

@@ -126,3 +129,3 @@ "*.js",

},
"gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
"gitHead": "2e6b3d7c0f4c5686c1e9bdb4902ed7d3f90bcc19"
}
import type { FnN } from "@thi.ng/api";
import type { Pow2 } from "./api";
import type { Pow2 } from "./api.js";
export declare const isPow2: (x: number) => x is Pow2;

@@ -4,0 +4,0 @@ export declare const ceilPow2: FnN;

@@ -50,6 +50,7 @@ <!-- This file is generated - DO NOT EDIT! -->

For NodeJS (v14.6+):
For Node.js REPL:
```text
node --experimental-specifier-resolution=node --experimental-repl-await
# with flag only for < v16
node --experimental-repl-await

@@ -56,0 +57,0 @@ > const binary = await import("@thi.ng/binary");

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

import type { Bit } from "./api";
import type { Bit } from "./api.js";
/**

@@ -3,0 +3,0 @@ * Rotates `x` `n` bits to the left.

import type { FnN, FnN3 } from "@thi.ng/api";
import type { Lane16, Lane2, Lane4, Lane8 } from "./api";
import type { Lane16, Lane2, Lane4, Lane8 } from "./api.js";
/**

@@ -4,0 +4,0 @@ * Extracts 16-bit lane from given 32bit uint and returns as unsigned

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