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.
Files changed (2) hide show
  1. package/index.ts +3 -1
  2. 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
- await wasmInit();
6
+ if (typeof window !== 'undefined') {
7
+ await wasmInit();
8
+ }
7
9
 
8
10
  export class DeepData {
9
11
  private _wasm: WasmDeepData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepwoken",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",