tunelet 0.2.0 → 0.3.1

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/dist/index.js CHANGED
@@ -7,7 +7,7 @@
7
7
  * that wasm-bindgen generates, which include `Tunelet`, `defaultConfig`,
8
8
  * `initSync` and the configuration, event and feedback types.
9
9
  */
10
- import init, { initSync } from "../pkg/tunelet.js";
10
+ import init from "../pkg/tunelet.js";
11
11
  export * from "../pkg/tunelet.js";
12
12
  /** The shared initialization promise, which a failure clears. */
13
13
  let initialization;
@@ -62,7 +62,7 @@ async function initialize(source) {
62
62
  const moduleName = "node:fs/promises";
63
63
  const fs = await import(
64
64
  /* webpackIgnore: true */ /* @vite-ignore */ moduleName);
65
- return initSync({ module: await fs.readFile(input) });
65
+ return init({ module_or_path: await fs.readFile(input) });
66
66
  }
67
67
  return init({ module_or_path: input });
68
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tunelet",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Vocal pitch correction, choir, harmony, formant control and effects for WebAssembly",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -29,9 +29,10 @@
29
29
  "sideEffects": false,
30
30
  "scripts": {
31
31
  "build": "npm run build:wasm && npm run build:ts",
32
- "build:wasm": "wasm-pack build --target web --out-dir pkg --release --no-opt --features wasm --locked",
32
+ "build:wasm": "wasm-pack build --target web --out-dir pkg --release --no-pack --features wasm --locked && node --input-type=module -e \"import fs from 'node:fs'; fs.rmSync('pkg/.gitignore', { force: true })\"",
33
33
  "build:ts": "tsc",
34
- "prepack": "npm run build"
34
+ "prepack": "npm run build",
35
+ "verify:pack": "node scripts/verify-pack.mjs"
35
36
  },
36
37
  "devDependencies": {
37
38
  "@types/node": "^22.20.5",