deepwoken 0.1.2 → 0.1.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.
- package/index.ts +3 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -3,7 +3,9 @@ export type { Talent, Weapon, Mantra, Outfit, Aspect, Stat } from './types.js';
|
|
|
3
3
|
import wasmInit, { DeepData as WasmDeepData } from './pkg/deepwoken.js';
|
|
4
4
|
import type { Talent, Weapon, Mantra, Outfit, Aspect } from './types.js';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
if (typeof window !== 'undefined') {
|
|
7
|
+
await wasmInit();
|
|
8
|
+
}
|
|
7
9
|
|
|
8
10
|
export class DeepData {
|
|
9
11
|
private _wasm: WasmDeepData;
|