node-web-audio-api 1.0.3 → 1.0.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.0.4 - 2025-03-20
4
+
5
+ - Fix parsing of parameterData for AudioWorkletNode
6
+
3
7
  ## v1.0.3 - 2025-03-06
4
8
 
5
9
  - Improve typescript support
package/README.md CHANGED
@@ -9,7 +9,7 @@ This library aims to provide an implementation that is both efficient and compli
9
9
  - see [`orottier/web-audio-api-rs`](https://github.com/orottier/web-audio-api-rs/) for the "real" audio guts
10
10
  - use [`napi-rs`](https://github.com/napi-rs/napi-rs/) for the Node.js bindings
11
11
 
12
- For library authors who which to write components that run both in Node.js and the browser, we also provide [isomorphic-web-audio-api](https://github.com/ircam-ismm/isomorphic-web-audio-api)
12
+ For library authors who want to write components that run both in Node.js and the browser, we also provide [isomorphic-web-audio-api](https://github.com/ircam-ismm/isomorphic-web-audio-api)
13
13
 
14
14
  ## Install
15
15
 
@@ -114,7 +114,7 @@ module.exports = (jsExport, nativeBinding) => {
114
114
  if (typeof options.parameterData === 'object' && options.parameterData !== null) {
115
115
  parsedOptions.parameterData = {};
116
116
 
117
- for (let [key, value] in Object.entries(options.parameterData)) {
117
+ for (let [key, value] of Object.entries(options.parameterData)) {
118
118
  const parsedKey = conversions['DOMString'](key, {
119
119
  context: `Failed to construct 'AudioWorkletNode': Invalid 'parameterData' property from AudioWorkletNodeOptions: Invalid key (${key})`,
120
120
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-web-audio-api",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "author": "Benjamin Matuszewski",
5
5
  "description": "Web Audio API implementation for Node.js",
6
6
  "exports": {