New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/morton

Package Overview
Dependencies
Maintainers
0
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/morton - npm Package Compare versions

Comparing version 3.1.86 to 3.1.87

8

CHANGELOG.md
# Change Log
- **Last updated**: 2024-05-08T18:24:32Z
- **Last updated**: 2024-06-21T19:34:38Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -12,2 +12,8 @@

### [3.1.87](https://github.com/thi-ng/umbrella/tree/@thi.ng/morton@3.1.87) (2024-06-21)
#### ♻️ Refactoring
- enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
### [3.1.52](https://github.com/thi-ng/umbrella/tree/@thi.ng/morton@3.1.52) (2023-11-09)

@@ -14,0 +20,0 @@

20

package.json
{
"name": "@thi.ng/morton",
"version": "3.1.86",
"version": "3.1.87",
"description": "Z-order curve / Morton encoding, decoding & range extraction for arbitrary dimensions",

@@ -13,3 +13,3 @@ "type": "module",

},
"homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/morton#readme",
"homepage": "https://thi.ng/morton",
"funding": [

@@ -40,12 +40,12 @@ {

"dependencies": {
"@thi.ng/api": "^8.11.2",
"@thi.ng/binary": "^3.4.25",
"@thi.ng/errors": "^2.5.7",
"@thi.ng/math": "^5.10.13"
"@thi.ng/api": "^8.11.3",
"@thi.ng/binary": "^3.4.26",
"@thi.ng/errors": "^2.5.8",
"@thi.ng/math": "^5.11.0"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.43.2",
"esbuild": "^0.21.1",
"@microsoft/api-extractor": "^7.47.0",
"esbuild": "^0.21.5",
"typedoc": "^0.25.13",
"typescript": "^5.4.5"
"typescript": "^5.5.2"
},

@@ -110,3 +110,3 @@ "keywords": [

},
"gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
"gitHead": "154c95cf9d6bab32174498ec3b5b5d87e42be7f9\n"
}

@@ -10,3 +10,3 @@ <!-- This file is generated - DO NOT EDIT! -->

> [!NOTE]
> This is one of 192 standalone projects, maintained as part
> This is one of 193 standalone projects, maintained as part
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo

@@ -13,0 +13,0 @@ > and anti-framework.

@@ -13,9 +13,9 @@ import { MASKS } from "@thi.ng/binary/constants";

} from "./raw.js";
const prescale = (x, min, max, bits) => {
const __prescale = (x, min, max, bits) => {
assert(inRange(x, min, max), `value ${x} not in range [${min}..${max}]`);
return Math.round(fit(x, min, max, 0, MASKS[bits]));
};
const encodeScaled5 = (x, min = 0, max = 1) => encode5(prescale(x, min, max, 5));
const encodeScaled10 = (x, min = 0, max = 1) => encode10(prescale(x, min, max, 10));
const encodeScaled16 = (x, min = 0, max = 1) => encode16(prescale(x, min, max, 16));
const encodeScaled5 = (x, min = 0, max = 1) => encode5(__prescale(x, min, max, 5));
const encodeScaled10 = (x, min = 0, max = 1) => encode10(__prescale(x, min, max, 10));
const encodeScaled16 = (x, min = 0, max = 1) => encode16(__prescale(x, min, max, 16));
const decodeScaled5 = (x, min = 0, max = 1) => fit01(decode5(x) / 31, min, max);

@@ -22,0 +22,0 @@ const decodeScaled10 = (x, min = 0, max = 1) => fit01(decode10(x) / 1023, min, max);

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