@thi.ng/lowdisc 1.0.21 → 1.0.22

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
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-09-01T16:38:35Z
3
+ - **Last updated**: 2025-09-25T11:10:32Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -99,7 +99,7 @@ For Node.js REPL:
99
99
  const ld = await import("@thi.ng/lowdisc");
100
100
  ```
101
101
 
102
- Package sizes (brotli'd, pre-treeshake): ESM: 456 bytes
102
+ Package sizes (brotli'd, pre-treeshake): ESM: 458 bytes
103
103
 
104
104
  ## Dependencies
105
105
 
package/lowdisc.js CHANGED
@@ -3,21 +3,21 @@ const lowDiscrepancy = (dims, offset = 0) => {
3
3
  const num = dims.length;
4
4
  assert(num > 0, `invalid dimensions`);
5
5
  const [x, y, z] = dims;
6
- const iter = num === 1 ? function* () {
6
+ const iter = num === 1 ? (function* () {
7
7
  while (true) yield [x.next().value];
8
- }() : num === 2 ? function* () {
8
+ })() : num === 2 ? (function* () {
9
9
  while (true)
10
10
  yield [x.next().value, y.next().value];
11
- }() : num === 3 ? function* () {
11
+ })() : num === 3 ? (function* () {
12
12
  while (true)
13
13
  yield [
14
14
  x.next().value,
15
15
  y.next().value,
16
16
  z.next().value
17
17
  ];
18
- }() : function* () {
18
+ })() : (function* () {
19
19
  while (true) yield dims.map((d) => d.next().value);
20
- }();
20
+ })();
21
21
  for (; offset-- > 0; ) iter.next();
22
22
  return iter;
23
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/lowdisc",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "n-dimensional low-discrepancy sequence generators/iterators",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -96,5 +96,5 @@
96
96
  "status": "beta",
97
97
  "year": 2020
98
98
  },
99
- "gitHead": "e215a3e8de3809736ba0042c93bd8703a5a1a337\n"
99
+ "gitHead": "b7ede4f099767e0175ea8e09257208f73970b220\n"
100
100
  }