@scntix/animate 0.0.1 → 0.0.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.
@@ -1,6 +1,6 @@
1
1
  /* @ts-self-types="../types/bundler.d.ts" */
2
2
 
3
- import * as wasm from "../wasm/scntix_animate_wasm_bg.wasm";
3
+ import * as wasm from "./scntix_animate_wasm_bg.wasm";
4
4
  import { __wbg_set_wasm } from "./scntix_animate_wasm_bg.js";
5
5
  __wbg_set_wasm(wasm);
6
6
  wasm.__wbindgen_start();
@@ -5915,7 +5915,7 @@ if (!('encodeInto' in cachedTextEncoder)) {
5915
5915
 
5916
5916
  let WASM_VECTOR_LEN = 0;
5917
5917
 
5918
- const wasmPath = require('path').join(__dirname, '..', 'wasm', 'scntix_animate_wasm_bg.wasm');
5918
+ const wasmPath = `${__dirname}/scntix_animate_wasm_bg.wasm`;
5919
5919
  const wasmBytes = require('fs').readFileSync(wasmPath);
5920
5920
  const wasmModule = new WebAssembly.Module(wasmBytes);
5921
5921
  let wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
@@ -5934,7 +5934,7 @@ async function __wbg_init(module_or_path) {
5934
5934
  }
5935
5935
 
5936
5936
  if (module_or_path === undefined) {
5937
- module_or_path = new URL('../wasm/scntix_animate_wasm_bg.wasm', import.meta.url);
5937
+ module_or_path = new URL('scntix_animate_wasm_bg.wasm', import.meta.url);
5938
5938
  }
5939
5939
  const imports = __wbg_get_imports();
5940
5940
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scntix/animate",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "WebAssembly animation engine — production-grade DOM animations powered by Rust",
5
5
  "type": "module",
6
6
  "sideEffects": false,