lettras 0.2.1 → 0.2.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.
@@ -303,9 +303,8 @@ async function __wbg_init(module_or_path) {
303
303
  console.warn('using deprecated parameters for the initialization function; pass a single object instead')
304
304
  }
305
305
  }
306
-
307
306
  if (module_or_path === undefined) {
308
- module_or_path = new URL('lettras_engine_bg.wasm', import.meta.url);
307
+ throw new Error('lettras: pass a module to init(), or import the package entry point (the engine is embedded)');
309
308
  }
310
309
  const imports = __wbg_get_imports();
311
310
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lettras",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Word-search generator for 6 languages with native accented letters (es, en, pt, fr, de, it). Runs locally via WebAssembly. Library and CLI.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",