@buffered-audio/nodes 0.19.0 → 0.20.0

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
@@ -29851,6 +29851,7 @@ var BufferedAudioNode = class {
29851
29851
  }
29852
29852
  };
29853
29853
  BufferedAudioNode.packageVersion = "0.0.0";
29854
+ BufferedAudioNode.apiVersion = 1;
29854
29855
  BufferedAudioNode.description = "";
29855
29856
  BufferedAudioNode.schema = external_exports2.object({});
29856
29857
  var BufferedSourceStream = class extends BufferedStream {
@@ -30126,6 +30127,7 @@ var graphEdgeSchema = external_exports2.object({
30126
30127
  external_exports2.object({
30127
30128
  id: external_exports2.uuid(),
30128
30129
  name: external_exports2.string().default("Untitled"),
30130
+ apiVersion: external_exports2.number().int().min(1),
30129
30131
  nodes: external_exports2.array(graphNodeSchema),
30130
30132
  edges: external_exports2.array(graphEdgeSchema)
30131
30133
  });
@@ -30133,7 +30135,7 @@ external_exports2.object({
30133
30135
  // package.json
30134
30136
  var package_default = {
30135
30137
  name: "@buffered-audio/nodes",
30136
- version: "0.19.0"};
30138
+ version: "0.20.0"};
30137
30139
 
30138
30140
  // src/package-metadata.ts
30139
30141
  var PACKAGE_NAME = package_default.name;
@@ -2,11 +2,12 @@ import { applyNlmSmoothingRange } from './chunk-YJWZP2OD.js';
2
2
  import { parentPort } from 'worker_threads';
3
3
 
4
4
  var port = parentPort;
5
- if (!port) throw new Error("nlm-worker must be run as a worker thread");
6
- port.on("message", (message) => {
7
- const { maskSab, outputSab, numFrames, numBins, options, blockFrameStart, blockFrameEnd } = message;
8
- const mask = new Float32Array(maskSab, 0, numFrames * numBins);
9
- const output = new Float32Array(outputSab, 0, numFrames * numBins);
10
- applyNlmSmoothingRange(mask, numFrames, numBins, options, output, blockFrameStart, blockFrameEnd);
11
- port.postMessage(null);
12
- });
5
+ if (port) {
6
+ port.on("message", (message) => {
7
+ const { maskSab, outputSab, numFrames, numBins, options, blockFrameStart, blockFrameEnd } = message;
8
+ const mask = new Float32Array(maskSab, 0, numFrames * numBins);
9
+ const output = new Float32Array(outputSab, 0, numFrames * numBins);
10
+ applyNlmSmoothingRange(mask, numFrames, numBins, options, output, blockFrameStart, blockFrameEnd);
11
+ port.postMessage(null);
12
+ });
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buffered-audio/nodes",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -46,8 +46,8 @@
46
46
  "vitest": "^3.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@buffered-audio/core": "0.8.0",
50
- "@buffered-audio/utils": "0.6.3",
49
+ "@buffered-audio/core": "0.9.0",
50
+ "@buffered-audio/utils": "0.6.4",
51
51
  "bufferfy": "^4.0.3",
52
52
  "commander": "^14.0.3",
53
53
  "tsx": "^4.21.0",