visual-song 0.20.4 → 0.20.6

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 CHANGED
@@ -2,9 +2,9 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef, useState, useRef, useEffect, createContext, useContext, useCallback, useImperativeHandle } from 'react';
3
3
  import VSModule from './wasm_src/visualsong-core.js';
4
4
 
5
- const WASM_CDN_BASE_URL = "https://unpkg.com/visual-song@0.20.4/dist/wasm_src";
6
- const locateWasmFile = (path, scriptDirectory)=>{
7
- if (path === "visualsong-core.wasm") {
5
+ const WASM_CDN_BASE_URL = "https://unpkg.com/visual-song@0.20.6/dist/wasm_src";
6
+ const locateRuntimeFile = (path, scriptDirectory)=>{
7
+ if (path === "visualsong-core.wasm" || path === "visualsong-core.js") {
8
8
  return `${WASM_CDN_BASE_URL}/${path}`;
9
9
  }
10
10
  return `${scriptDirectory}${path}`;
@@ -55,7 +55,7 @@ function VisualSongProvider({ children }) {
55
55
  useEffect(()=>{
56
56
  let mounted = true;
57
57
  VSModule({
58
- locateFile: locateWasmFile
58
+ locateFile: locateRuntimeFile
59
59
  }).then((m)=>{
60
60
  if (!mounted) return;
61
61
  VSEngineRef.current = m;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "visual-song",
3
- "version": "0.20.4",
3
+ "version": "0.20.6",
4
4
  "description": "visual-song core library",
5
5
  "author": "kunyoungparkk (rjsdud3263@gmail.com)",
6
6
  "license": "MIT",