@thi.ng/units 1.2.0 → 1.2.2

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +9 -9
  3. package/unit.js +1 -0
package/README.md CHANGED
@@ -688,7 +688,7 @@ For Node.js REPL:
688
688
  const units = await import("@thi.ng/units");
689
689
  ```
690
690
 
691
- Package sizes (brotli'd, pre-treeshake): ESM: 5.67 KB
691
+ Package sizes (brotli'd, pre-treeshake): ESM: 5.75 KB
692
692
 
693
693
  ## Dependencies
694
694
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/units",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Extensible SI unit creation, conversions, quantities & calculations (incl. Lisp-like DSL and ~170 predefined units & constants)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,15 +40,15 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.12.18",
44
- "@thi.ng/checks": "^3.8.8",
45
- "@thi.ng/equiv": "^2.1.107",
46
- "@thi.ng/errors": "^2.6.7",
47
- "@thi.ng/sexpr": "^1.1.27"
43
+ "@thi.ng/api": "^8.12.19",
44
+ "@thi.ng/checks": "^3.8.9",
45
+ "@thi.ng/equiv": "^2.1.108",
46
+ "@thi.ng/errors": "^2.6.8",
47
+ "@thi.ng/sexpr": "^1.1.29"
48
48
  },
49
49
  "devDependencies": {
50
- "esbuild": "^0.27.2",
51
- "typedoc": "^0.28.16",
50
+ "esbuild": "^0.28.0",
51
+ "typedoc": "^0.28.18",
52
52
  "typescript": "^5.9.3"
53
53
  },
54
54
  "keywords": [
@@ -189,5 +189,5 @@
189
189
  "status": "beta",
190
190
  "year": 2021
191
191
  },
192
- "gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
192
+ "gitHead": "a780d4a5f6f5fc595c9d28527686f63534927d32"
193
193
  }
package/unit.js CHANGED
@@ -42,6 +42,7 @@ class Quantity {
42
42
  constructor(value) {
43
43
  this.value = value;
44
44
  }
45
+ value;
45
46
  deref() {
46
47
  return isArray(this.value) ? this.value.map((x) => x.scale) : this.value.scale;
47
48
  }