@thi.ng/strings
Advanced tools
Comparing version 1.8.9 to 1.8.10
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.8.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.8.9...@thi.ng/strings@1.8.10) (2020-06-14) | ||
**Note:** Version bump only for package @thi.ng/strings | ||
## [1.8.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.8.8...@thi.ng/strings@1.8.9) (2020-06-01) | ||
@@ -8,0 +16,0 @@ |
@@ -227,3 +227,3 @@ 'use strict'; | ||
x[2] != null ? x[2] : prec, | ||
x[1] | ||
x[1], | ||
]) | ||
@@ -250,3 +250,3 @@ .sort((a, b) => a[0] - b[0]); | ||
[KB ** 2, " Mb"], | ||
[KB ** 3, " Gb"] | ||
[KB ** 3, " Gb"], | ||
], " bits", 2); | ||
@@ -259,3 +259,3 @@ const bytes = units([ | ||
[KB ** 4, " TB"], | ||
[KB ** 5, " PB"] | ||
[KB ** 5, " PB"], | ||
], " bytes", 2); | ||
@@ -270,3 +270,3 @@ const seconds = units([ | ||
[60 * 60, " hours"], | ||
[24 * 60 * 60, " days"] | ||
[24 * 60 * 60, " days"], | ||
], " secs", 3); | ||
@@ -280,3 +280,3 @@ const meters = units([ | ||
[1, " m"], | ||
[1e3, " km"] | ||
[1e3, " km"], | ||
], " m", 2); | ||
@@ -292,3 +292,3 @@ const grams = units([ | ||
[1e9, " kt"], | ||
[1e12, " Mt"] | ||
[1e12, " Mt"], | ||
], " g", 2); | ||
@@ -316,3 +316,3 @@ | ||
U8(id[i++]), | ||
U8(id[i++]) | ||
U8(id[i++]), | ||
].join(""); | ||
@@ -319,0 +319,0 @@ |
{ | ||
"name": "@thi.ng/strings", | ||
"version": "1.8.9", | ||
"version": "1.8.10", | ||
"description": "Various string formatting & utility functions", | ||
@@ -46,5 +46,5 @@ "module": "./index.js", | ||
"dependencies": { | ||
"@thi.ng/api": "^6.11.0", | ||
"@thi.ng/api": "^6.11.1", | ||
"@thi.ng/errors": "^1.2.14", | ||
"@thi.ng/memoize": "^2.0.12", | ||
"@thi.ng/memoize": "^2.0.13", | ||
"tslib": "^1.12.0" | ||
@@ -85,3 +85,3 @@ }, | ||
}, | ||
"gitHead": "a25c4eed5fba2c7d1fddb02dd706bae534affc93" | ||
"gitHead": "ddf9b8b67d3d60bcca88143528ee33b843cc089e" | ||
} |
12
units.js
@@ -7,3 +7,3 @@ import { memoizeJ } from "@thi.ng/memoize"; | ||
x[2] != null ? x[2] : prec, | ||
x[1] | ||
x[1], | ||
]) | ||
@@ -30,3 +30,3 @@ .sort((a, b) => a[0] - b[0]); | ||
[KB ** 2, " Mb"], | ||
[KB ** 3, " Gb"] | ||
[KB ** 3, " Gb"], | ||
], " bits", 2); | ||
@@ -39,3 +39,3 @@ export const bytes = units([ | ||
[KB ** 4, " TB"], | ||
[KB ** 5, " PB"] | ||
[KB ** 5, " PB"], | ||
], " bytes", 2); | ||
@@ -50,3 +50,3 @@ export const seconds = units([ | ||
[60 * 60, " hours"], | ||
[24 * 60 * 60, " days"] | ||
[24 * 60 * 60, " days"], | ||
], " secs", 3); | ||
@@ -60,3 +60,3 @@ export const meters = units([ | ||
[1, " m"], | ||
[1e3, " km"] | ||
[1e3, " km"], | ||
], " m", 2); | ||
@@ -72,3 +72,3 @@ export const grams = units([ | ||
[1e9, " kt"], | ||
[1e12, " Mt"] | ||
[1e12, " Mt"], | ||
], " g", 2); |
@@ -29,3 +29,3 @@ import { U8 } from "./radix"; | ||
U8(id[i++]), | ||
U8(id[i++]) | ||
U8(id[i++]), | ||
].join(""); |
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
101181
Updated@thi.ng/api@^6.11.1
Updated@thi.ng/memoize@^2.0.13