tunelet 0.3.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 +2 -2
- package/package.json +1 -1
- package/pkg/tunelet_bg.wasm +0 -0
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
|
|
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
|
|
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
package/pkg/tunelet_bg.wasm
CHANGED
|
Binary file
|