@thi.ng/strings 3.1.3 → 3.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@3.1.3...@thi.ng/strings@3.1.4) (2021-11-10)
7
+
8
+ **Note:** Version bump only for package @thi.ng/strings
9
+
10
+
11
+
12
+
13
+
6
14
  ## [3.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@3.1.2...@thi.ng/strings@3.1.3) (2021-11-03)
7
15
 
8
16
  **Note:** Version bump only for package @thi.ng/strings
package/README.md CHANGED
@@ -142,7 +142,7 @@ node --experimental-repl-await
142
142
  > const strings = await import("@thi.ng/strings");
143
143
  ```
144
144
 
145
- Package sizes (gzipped, pre-treeshake): ESM: 4.38 KB
145
+ Package sizes (gzipped, pre-treeshake): ESM: 4.53 KB
146
146
 
147
147
  ## Dependencies
148
148
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/strings",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Various string formatting & utility functions",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,10 +34,10 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.1.0",
37
+ "@thi.ng/api": "^8.2.0",
38
38
  "@thi.ng/errors": "^2.0.6",
39
39
  "@thi.ng/hex": "^2.0.6",
40
- "@thi.ng/memoize": "^3.0.7"
40
+ "@thi.ng/memoize": "^3.0.8"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@thi.ng/testament": "^0.1.6"
@@ -192,5 +192,5 @@
192
192
  "thi.ng": {
193
193
  "year": 2015
194
194
  },
195
- "gitHead": "852cd2450617c86d15d18477dc634f17f04202eb"
195
+ "gitHead": "5fe52419af63984ebe53032201b2a6174b9cb159"
196
196
  }
package/units.js CHANGED
@@ -12,7 +12,7 @@ export const units = memoizeJ((exp, base, prec = 2) => {
12
12
  return `0${base}`;
13
13
  }
14
14
  const absX = Math.abs(x);
15
- for (let i = groups.length; --i >= 0;) {
15
+ for (let i = groups.length; i-- > 0;) {
16
16
  const g = groups[i];
17
17
  if (absX >= g[0] || i === 0) {
18
18
  return (x / g[0]).toFixed(g[1]) + g[2];