audio-decode 2.0.0 → 2.0.1

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/audio-decode.js +2 -1
  2. package/package.json +1 -1
package/audio-decode.js CHANGED
@@ -47,7 +47,8 @@ export const decoders = {
47
47
  return (decoders.opus = async buf => buf && createBuffer(await decoder.decodeFile(buf)))(buf)
48
48
  },
49
49
  async wav(buf) {
50
- let {decode} = await import('node-wav')
50
+ let module = await import('node-wav')
51
+ let { decode } = module.default
51
52
  return (decoders.wav = buf => buf && createBuffer(decode(buf)) )(buf)
52
53
  }
53
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "audio-decode",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Decode audio data in node or browser",
5
5
  "main": "audio-decode.js",
6
6
  "type": "module",