beancount-wasm 0.2.0 → 0.3.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.
- package/README.md +20 -2
- package/dist/inline/v2.d.ts +1 -1
- package/dist/inline/v2.js +4 -4
- package/dist/inline/v3.d.ts +1 -1
- package/dist/inline/v3.js +4 -4
- package/dist/{runtime-CjQYvWNf.js → runtime-7p7VByO6.js} +6 -5
- package/dist/{runtime-CLbGKyHZ.d.ts → runtime-Dbi2LVys.d.ts} +3 -2
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +2 -2
- package/dist/v2.d.ts +2 -2
- package/dist/v2.js +2 -2
- package/dist/v3.d.ts +2 -2
- package/dist/v3.js +2 -2
- package/package.json +6 -1
- package/wheels/v2/{beancount-2.3.6-cp311-cp311-emscripten_3_1_46_wasm32.whl → beancount-2.3.6-cp313-cp313-emscripten_4_0_9_wasm32.whl} +0 -0
- package/wheels/v3/beancount-3.2.0-cp313-cp313-emscripten_4_0_9_wasm32.whl +0 -0
- package/wheels/v3/beancount-3.2.0-cp311-cp311-emscripten_3_1_46_wasm32.whl +0 -0
package/README.md
CHANGED
|
@@ -12,8 +12,8 @@ const { pyodide } = await createBeancountRuntime({
|
|
|
12
12
|
version: "v3",
|
|
13
13
|
// Optional: override the base URL for Pyodide assets.
|
|
14
14
|
// The base URL must contain pyodide.mjs and follow the same layout as
|
|
15
|
-
// https://cdn.jsdelivr.net/pyodide/v0.
|
|
16
|
-
// pyodideBaseUrl: "https://cdn.jsdelivr.net/pyodide/v0.
|
|
15
|
+
// https://cdn.jsdelivr.net/pyodide/v0.29.3/full/
|
|
16
|
+
// pyodideBaseUrl: "https://cdn.jsdelivr.net/pyodide/v0.29.3/full/",
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
const result = await pyodide.runPythonAsync(`
|
|
@@ -83,6 +83,11 @@ Returns the URL used for the selected wheel.
|
|
|
83
83
|
### `getWheelInfo(version)`
|
|
84
84
|
Returns `{ version, filename, deps }` for the selected Beancount version.
|
|
85
85
|
|
|
86
|
+
### `BUILD_PROFILE`
|
|
87
|
+
Compile-time profile embedded in the package build:
|
|
88
|
+
- `"release"` for normal publish (`latest`)
|
|
89
|
+
- `"debug-symbols"` for profiling publish (`debug`)
|
|
90
|
+
|
|
86
91
|
## Wheel assets
|
|
87
92
|
|
|
88
93
|
The wheels live under `wheels/v2/` and `wheels/v3/` within the package. When
|
|
@@ -105,3 +110,16 @@ import { createBeancountRuntime } from "beancount-wasm/v3";
|
|
|
105
110
|
|
|
106
111
|
const { pyodide } = await createBeancountRuntime();
|
|
107
112
|
```
|
|
113
|
+
|
|
114
|
+
## npm dist-tags
|
|
115
|
+
|
|
116
|
+
This package uses one package name with two dist-tags:
|
|
117
|
+
- `latest`: release wheels + release inline wheels
|
|
118
|
+
- `debug`: debug-symbol wheels + debug inline wheels
|
|
119
|
+
|
|
120
|
+
Install examples:
|
|
121
|
+
|
|
122
|
+
```sh
|
|
123
|
+
npm i beancount-wasm@latest
|
|
124
|
+
npm i beancount-wasm@debug
|
|
125
|
+
```
|
package/dist/inline/v2.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/inline/v2.d.ts
|
|
2
2
|
declare const VERSION = "v2";
|
|
3
|
-
declare const FILENAME = "beancount-2.3.6-
|
|
3
|
+
declare const FILENAME = "beancount-2.3.6-cp313-cp313-emscripten_4_0_9_wasm32.whl";
|
|
4
4
|
declare function getInlineWheelBytes(): any;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { FILENAME, VERSION, getInlineWheelBytes };
|