motely-wasm 17.2.2 → 17.2.3

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 (2) hide show
  1. package/index.mjs +9 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3,8 +3,16 @@ import { manifest } from "./resources.mjs";
3
3
  import { app } from "./dotnet/index.mjs";
4
4
  import { Motely } from "./generated/index.g.mjs";
5
5
 
6
+ const PACKAGE_VERSION = "17.2.3";
7
+
6
8
  const MotelyWasm = {
7
- getVersion: Motely.getVersion,
9
+ getVersion: () => {
10
+ try {
11
+ return Motely.getVersion();
12
+ } catch {
13
+ return PACKAGE_VERSION;
14
+ }
15
+ },
8
16
  validateJaml: Motely.validateJaml,
9
17
  explainJaml: Motely.explainJaml,
10
18
  getTallyLabels: Motely.getTallyLabels,
package/package.json CHANGED
@@ -19,6 +19,6 @@
19
19
  "node:crypto": false,
20
20
  "node:process": false
21
21
  },
22
- "version": "17.2.2",
22
+ "version": "17.2.3",
23
23
  "types": "./index.d.mts"
24
24
  }