decibri 3.0.0-rc.5 → 3.0.0-rc.7

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/README.md ADDED
@@ -0,0 +1,294 @@
1
+ <!-- markdownlint-disable MD033 MD041 -->
2
+ <div align="center">
3
+ <img width="100" height="100" alt="decibri" src="https://github.com/user-attachments/assets/a1a7aa23-6954-4cac-9490-76354f0865ee" />
4
+
5
+ # decibri
6
+
7
+ Cross-platform audio capture, output, and processing for Node.js and browsers.
8
+
9
+ <!-- badges: start -->
10
+ <table>
11
+ <tr>
12
+ <td><strong>Meta</strong></td>
13
+ <td>
14
+ <a href="https://www.npmjs.com/package/decibri"><img src="https://img.shields.io/npm/v/decibri" alt="npm version"></a>&nbsp;
15
+ <a href="https://crates.io/crates/decibri"><img src="https://img.shields.io/crates/v/decibri" alt="crates.io version"></a>&nbsp;
16
+ <a href="https://github.com/decibri/decibri/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="Apache 2.0 License"></a>&nbsp;
17
+ <a href="https://decibri.com"><img src="https://img.shields.io/badge/Website-decibri.com-blue" alt="decibri.com"></a>&nbsp;
18
+ <a href="https://decibri.com/docs/"><img src="https://img.shields.io/badge/docs-passing-brightgreen" alt="Docs"></a>
19
+ </td>
20
+ </tr>
21
+ <tr>
22
+ <td><strong>Binaries</strong></td>
23
+ <td>
24
+ <a href="https://github.com/decibri/decibri/actions/workflows/release.yml"><img src="https://img.shields.io/github/actions/workflow/status/decibri/decibri/release.yml?job=Build%20x86_64-pc-windows-msvc&label=Windows%20x64&logo=microsoft&logoColor=white" alt="Windows x64"></a>&nbsp;
25
+ <a href="https://github.com/decibri/decibri/actions/workflows/release.yml"><img src="https://img.shields.io/github/actions/workflow/status/decibri/decibri/release.yml?job=Build%20aarch64-apple-darwin&label=macOS%20ARM64&logo=apple" alt="macOS ARM64"></a>&nbsp;
26
+ <a href="https://github.com/decibri/decibri/actions/workflows/release.yml"><img src="https://img.shields.io/github/actions/workflow/status/decibri/decibri/release.yml?job=Build%20x86_64-unknown-linux-gnu&label=Linux%20x64&logo=linux&logoColor=white" alt="Linux x64"></a>&nbsp;
27
+ <a href="https://github.com/decibri/decibri/actions/workflows/release.yml"><img src="https://img.shields.io/github/actions/workflow/status/decibri/decibri/release.yml?job=Build%20aarch64-unknown-linux-gnu&label=Linux%20ARM64&logo=linux&logoColor=white" alt="Linux ARM64"></a>
28
+ </td>
29
+ </tr>
30
+ <tr>
31
+ <tr>
32
+ <td><strong>Integrations</strong></td>
33
+ <td>
34
+ <a href="https://decibri.com/docs/node/integrations/openai-realtime"><img src="https://img.shields.io/badge/OpenAI-cloud-blue" alt="OpenAI"></a>&nbsp;
35
+ <a href="https://decibri.com/docs/node/integrations/deepgram"><img src="https://img.shields.io/badge/Deepgram-cloud-blue" alt="Deepgram"></a>&nbsp;
36
+ <a href="https://decibri.com/docs/node/integrations/assemblyai"><img src="https://img.shields.io/badge/AssemblyAI-cloud-blue" alt="AssemblyAI"></a>&nbsp;
37
+ <a href="https://decibri.com/docs/node/integrations/mistral-voxtral"><img src="https://img.shields.io/badge/Mistral-cloud-blue" alt="Mistral"></a>&nbsp;
38
+ <a href="https://decibri.com/docs/node/integrations/aws-transcribe"><img src="https://img.shields.io/badge/AWS_Transcribe-cloud-blue" alt="AWS Transcribe"></a>&nbsp;
39
+ <a href="https://decibri.com/docs/node/integrations/google-speech"><img src="https://img.shields.io/badge/Google_Speech-cloud-blue" alt="Google Speech-to-Text"></a>&nbsp;
40
+ <a href="https://decibri.com/docs/node/integrations/azure-speech"><img src="https://img.shields.io/badge/Azure_Speech-cloud-blue" alt="Azure Speech-to-Text"></a>&nbsp;
41
+ <a href="https://decibri.com/docs/node/integrations/sherpa-onnx-stt"><img src="https://img.shields.io/badge/Sherpa--ONNX-local-brightgreen" alt="Sherpa-ONNX"></a>&nbsp;
42
+ <a href="https://decibri.com/docs/node/integrations/whisper-cpp"><img src="https://img.shields.io/badge/Whisper.cpp-local-brightgreen" alt="Whisper.cpp"></a>
43
+ </td>
44
+ </tr>
45
+ </table>
46
+ <!-- badges: end -->
47
+ </div>
48
+
49
+ ---
50
+
51
+ ## Installation
52
+
53
+ ```bash
54
+ npm install decibri
55
+ ```
56
+
57
+ One package for Node.js and browsers. Node.js gets a native addon (Rust via napi-rs). Browsers get a JavaScript AudioWorklet implementation. Platform-specific binaries are installed automatically.
58
+
59
+ Requires Node.js >= 18. TypeScript definitions are bundled.
60
+
61
+ ---
62
+
63
+ ## Quick Start
64
+
65
+ ### Capture audio
66
+
67
+ ```javascript
68
+ const Decibri = require('decibri');
69
+
70
+ const mic = new Decibri({ sampleRate: 16000, channels: 1 });
71
+ mic.on('data', (chunk) => { /* Buffer of Int16 PCM samples */ });
72
+ setTimeout(() => mic.stop(), 5000);
73
+ ```
74
+
75
+ ### Play audio
76
+
77
+ ```javascript
78
+ const { DecibriOutput } = require('decibri');
79
+
80
+ const speaker = new DecibriOutput({ sampleRate: 16000, channels: 1 });
81
+ speaker.write(pcmBuffer);
82
+ speaker.end();
83
+ ```
84
+
85
+ ### Browser capture
86
+
87
+ ```javascript
88
+ import { Decibri } from 'decibri'; // browser entry via conditional export
89
+
90
+ const mic = new Decibri({ sampleRate: 16000 });
91
+ mic.on('data', (chunk) => { /* Int16Array of PCM samples */ });
92
+ await mic.start(); // requires user gesture in Safari
93
+ ```
94
+
95
+ ### Pipe capture to playback (echo)
96
+
97
+ ```javascript
98
+ const mic = new Decibri({ sampleRate: 16000, channels: 1 });
99
+ const speaker = new DecibriOutput({ sampleRate: 16000, channels: 1 });
100
+ mic.pipe(speaker);
101
+ ```
102
+
103
+ ---
104
+
105
+ ## API: Decibri (Capture)
106
+
107
+ ### `new Decibri(options?)`
108
+
109
+ Creates a `Readable` stream that captures from the microphone.
110
+
111
+ | Option | Type | Default | Description |
112
+ | --- | --- | --- | --- |
113
+ | `sampleRate` | number | `16000` | Samples per second (1000–384000) |
114
+ | `channels` | number | `1` | Input channels (1–32) |
115
+ | `framesPerBuffer` | number | `1600` | Frames per chunk (64–65536). At 16kHz mono, 1600 = 100ms = 3200 bytes |
116
+ | `device` | number \| string | system default | Device index or case-insensitive name substring |
117
+ | `format` | `'int16'` \| `'float32'` | `'int16'` | Sample encoding |
118
+ | `vad` | boolean | `false` | Enable voice activity detection |
119
+ | `vadMode` | `'energy'` \| `'silero'` | `'energy'` | VAD engine: RMS threshold or Silero ML model |
120
+ | `vadThreshold` | number | `0.01` / `0.5` | Speech threshold. Default depends on vadMode |
121
+ | `vadHoldoff` | number | `300` | Silence holdoff in ms |
122
+
123
+ Standard `ReadableOptions` (e.g. `highWaterMark`) are also accepted.
124
+
125
+ ### Methods
126
+
127
+ | Method | Description |
128
+ | --- | --- |
129
+ | `mic.stop()` | Stop capture and end stream. Safe to call multiple times |
130
+ | `Decibri.devices()` | List available input devices |
131
+ | `Decibri.version()` | Version info: `{ decibri: '3.0.0', portaudio: 'cpal 0.17' }` |
132
+
133
+ ### Properties
134
+
135
+ | Property | Type | Description |
136
+ | --- | --- | --- |
137
+ | `mic.isOpen` | boolean | `true` while capturing |
138
+
139
+ ### Events
140
+
141
+ | Event | Payload | Description |
142
+ | --- | --- | --- |
143
+ | `'data'` | `Buffer` | Audio chunk (Int16 LE or Float32 LE) |
144
+ | `'backpressure'` | - | Internal buffer full, consumer too slow |
145
+ | `'speech'` | - | VAD: audio crosses threshold |
146
+ | `'silence'` | - | VAD: audio below threshold for `vadHoldoff` ms |
147
+ | `'end'` | - | Stream ended |
148
+ | `'error'` | `Error` | An error occurred |
149
+
150
+ ---
151
+
152
+ ## API: DecibriOutput (Playback)
153
+
154
+ ### `new DecibriOutput(options?)`
155
+
156
+ Creates a `Writable` stream for speaker playback.
157
+
158
+ | Option | Type | Default | Description |
159
+ | --- | --- | --- | --- |
160
+ | `sampleRate` | number | `16000` | Playback sample rate (1000–384000) |
161
+ | `channels` | number | `1` | Output channels (1–32) |
162
+ | `format` | `'int16'` \| `'float32'` | `'int16'` | Sample encoding of incoming data |
163
+ | `device` | number \| string | system default | Output device index or name substring |
164
+
165
+ Standard `WritableOptions` (e.g. `highWaterMark`) are also accepted.
166
+
167
+ | Method / Property | Description |
168
+ | --- | --- |
169
+ | `speaker.write(chunk)` | Write PCM data for playback |
170
+ | `speaker.end()` | Signal end. Drains remaining audio, then emits `'finish'` |
171
+ | `speaker.stop()` | Immediate stop. Discards remaining audio |
172
+ | `speaker.isPlaying` | `true` while audio is being output |
173
+ | `DecibriOutput.devices()` | List available output devices |
174
+ | `DecibriOutput.version()` | Same as `Decibri.version()` |
175
+
176
+ ---
177
+
178
+ ## API: Browser
179
+
180
+ The browser API uses `getUserMedia` and `AudioWorklet`. It differs from the Node.js API because browser audio is fundamentally async.
181
+
182
+ ### `new Decibri(options?)`
183
+
184
+ Same options as Node.js, plus:
185
+
186
+ | Option | Type | Default | Description |
187
+ | --- | --- | --- | --- |
188
+ | `device` | string | system default | Device ID from `Decibri.devices()` (not index) |
189
+ | `echoCancellation` | boolean | `true` | Browser echo cancellation |
190
+ | `noiseSuppression` | boolean | `true` | Browser noise suppression |
191
+ | `workletUrl` | string | inline blob | Custom worklet URL for strict CSP |
192
+
193
+ ### Key differences from Node.js
194
+
195
+ | Aspect | Node.js | Browser |
196
+ | --- | --- | --- |
197
+ | Start | Automatic on first read | `await mic.start()` |
198
+ | Base class | `Readable` stream | Custom `Emitter` |
199
+ | Data type | `Buffer` | `Int16Array` / `Float32Array` |
200
+ | `devices()` | Sync, returns array | Async, returns `Promise` |
201
+ | Sample rate | Direct via cpal | Resampled from native rate |
202
+
203
+ ---
204
+
205
+ ## Voice Activity Detection
206
+
207
+ ### Energy mode (default)
208
+
209
+ Lightweight RMS energy threshold. No model required.
210
+
211
+ ```javascript
212
+ const mic = new Decibri({ vad: true, vadThreshold: 0.01 });
213
+ mic.on('speech', () => console.log('speaking'));
214
+ mic.on('silence', () => console.log('silent'));
215
+ ```
216
+
217
+ ### Silero mode
218
+
219
+ ML-based detection using the Silero VAD v5 ONNX model. More accurate than energy mode, especially in noisy environments.
220
+
221
+ ```javascript
222
+ const mic = new Decibri({ vad: true, vadMode: 'silero', vadThreshold: 0.5 });
223
+ mic.on('speech', () => console.log('speaking'));
224
+ mic.on('silence', () => console.log('silent'));
225
+ ```
226
+
227
+ The Silero model (~2MB) ships inside the npm package. No downloads or API keys required.
228
+
229
+ ---
230
+
231
+ ## Device Selection
232
+
233
+ ```javascript
234
+ // System default
235
+ const mic = new Decibri();
236
+
237
+ // By name (case-insensitive substring match)
238
+ const mic = new Decibri({ device: 'USB' });
239
+
240
+ // By index
241
+ const devices = Decibri.devices();
242
+ const mic = new Decibri({ device: devices[1].index });
243
+ ```
244
+
245
+ ```javascript
246
+ Decibri.devices();
247
+ // [
248
+ // { index: 0, name: 'Microphone', maxInputChannels: 2, defaultSampleRate: 48000, isDefault: true },
249
+ // { index: 1, name: 'USB Headset', maxInputChannels: 1, defaultSampleRate: 44100, isDefault: false }
250
+ // ]
251
+ ```
252
+
253
+ ---
254
+
255
+ ## Examples
256
+
257
+ Runnable examples are in [`examples/`](examples/).
258
+
259
+ ```bash
260
+ # Capture to WAV file (no dependencies)
261
+ node examples/wav-capture.js
262
+
263
+ # Stream to WebSocket (requires: npm install ws)
264
+ node examples/websocket-server.js # terminal 1
265
+ node examples/websocket-stream.js # terminal 2
266
+ ```
267
+
268
+ Integration guides for OpenAI, Deepgram, AssemblyAI, and other providers are at [decibri.com/docs](https://decibri.com/docs/).
269
+
270
+ ---
271
+
272
+ ## Platform Support
273
+
274
+ | Platform | Architecture | Audio Backend |
275
+ | --- | --- | --- |
276
+ | Windows | x64 | WASAPI |
277
+ | macOS | arm64 | CoreAudio |
278
+ | Linux | x64 | ALSA |
279
+ | Linux | arm64 | ALSA |
280
+ | Browser | - | Web Audio API (AudioWorklet) |
281
+
282
+ ---
283
+
284
+ ## How It Works
285
+
286
+ decibri is a Rust library using [cpal](https://github.com/RustAudio/cpal) for cross-platform audio I/O. The Rust core compiles to a Node.js native addon via [napi-rs](https://napi.rs/) and ships pre-built binaries for each platform. Browser support uses a JavaScript AudioWorklet implementation with the same event-driven API.
287
+
288
+ Audio flows from the OS audio device through cpal's callback, into a crossbeam channel, through frame-exact buffering (guarantees consistent chunk sizes), and into Node.js via a threadsafe function. The JavaScript layer wraps this in a standard `Readable` stream.
289
+
290
+ ---
291
+
292
+ ## License
293
+
294
+ Apache-2.0 © [decibri](https://github.com/decibri)
package/index.js CHANGED
@@ -75,10 +75,10 @@ function requireNative() {
75
75
  loadErrors.push(e)
76
76
  }
77
77
  try {
78
- const binding = require('@decibri-android-arm64')
79
- const bindingPackageVersion = require('@decibri-android-arm64/package.json').version
80
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
78
+ const binding = require('@decibri/decibri-android-arm64')
79
+ const bindingPackageVersion = require('@decibri/decibri-android-arm64/package.json').version
80
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
82
82
  }
83
83
  return binding
84
84
  } catch (e) {
@@ -91,10 +91,10 @@ function requireNative() {
91
91
  loadErrors.push(e)
92
92
  }
93
93
  try {
94
- const binding = require('@decibri-android-arm-eabi')
95
- const bindingPackageVersion = require('@decibri-android-arm-eabi/package.json').version
96
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
94
+ const binding = require('@decibri/decibri-android-arm-eabi')
95
+ const bindingPackageVersion = require('@decibri/decibri-android-arm-eabi/package.json').version
96
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
98
98
  }
99
99
  return binding
100
100
  } catch (e) {
@@ -112,10 +112,10 @@ function requireNative() {
112
112
  loadErrors.push(e)
113
113
  }
114
114
  try {
115
- const binding = require('@decibri-win32-x64-gnu')
116
- const bindingPackageVersion = require('@decibri-win32-x64-gnu/package.json').version
117
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
115
+ const binding = require('@decibri/decibri-win32-x64-gnu')
116
+ const bindingPackageVersion = require('@decibri/decibri-win32-x64-gnu/package.json').version
117
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
119
119
  }
120
120
  return binding
121
121
  } catch (e) {
@@ -128,10 +128,10 @@ function requireNative() {
128
128
  loadErrors.push(e)
129
129
  }
130
130
  try {
131
- const binding = require('@decibri-win32-x64-msvc')
132
- const bindingPackageVersion = require('@decibri-win32-x64-msvc/package.json').version
133
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
131
+ const binding = require('@decibri/decibri-win32-x64-msvc')
132
+ const bindingPackageVersion = require('@decibri/decibri-win32-x64-msvc/package.json').version
133
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
135
135
  }
136
136
  return binding
137
137
  } catch (e) {
@@ -145,10 +145,10 @@ function requireNative() {
145
145
  loadErrors.push(e)
146
146
  }
147
147
  try {
148
- const binding = require('@decibri-win32-ia32-msvc')
149
- const bindingPackageVersion = require('@decibri-win32-ia32-msvc/package.json').version
150
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
148
+ const binding = require('@decibri/decibri-win32-ia32-msvc')
149
+ const bindingPackageVersion = require('@decibri/decibri-win32-ia32-msvc/package.json').version
150
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
152
  }
153
153
  return binding
154
154
  } catch (e) {
@@ -161,10 +161,10 @@ function requireNative() {
161
161
  loadErrors.push(e)
162
162
  }
163
163
  try {
164
- const binding = require('@decibri-win32-arm64-msvc')
165
- const bindingPackageVersion = require('@decibri-win32-arm64-msvc/package.json').version
166
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
164
+ const binding = require('@decibri/decibri-win32-arm64-msvc')
165
+ const bindingPackageVersion = require('@decibri/decibri-win32-arm64-msvc/package.json').version
166
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
168
168
  }
169
169
  return binding
170
170
  } catch (e) {
@@ -180,10 +180,10 @@ function requireNative() {
180
180
  loadErrors.push(e)
181
181
  }
182
182
  try {
183
- const binding = require('@decibri-darwin-universal')
184
- const bindingPackageVersion = require('@decibri-darwin-universal/package.json').version
185
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
183
+ const binding = require('@decibri/decibri-darwin-universal')
184
+ const bindingPackageVersion = require('@decibri/decibri-darwin-universal/package.json').version
185
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
187
187
  }
188
188
  return binding
189
189
  } catch (e) {
@@ -196,10 +196,10 @@ function requireNative() {
196
196
  loadErrors.push(e)
197
197
  }
198
198
  try {
199
- const binding = require('@decibri-darwin-x64')
200
- const bindingPackageVersion = require('@decibri-darwin-x64/package.json').version
201
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
199
+ const binding = require('@decibri/decibri-darwin-x64')
200
+ const bindingPackageVersion = require('@decibri/decibri-darwin-x64/package.json').version
201
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
203
203
  }
204
204
  return binding
205
205
  } catch (e) {
@@ -212,10 +212,10 @@ function requireNative() {
212
212
  loadErrors.push(e)
213
213
  }
214
214
  try {
215
- const binding = require('@decibri-darwin-arm64')
216
- const bindingPackageVersion = require('@decibri-darwin-arm64/package.json').version
217
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
215
+ const binding = require('@decibri/decibri-darwin-arm64')
216
+ const bindingPackageVersion = require('@decibri/decibri-darwin-arm64/package.json').version
217
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
219
219
  }
220
220
  return binding
221
221
  } catch (e) {
@@ -232,10 +232,10 @@ function requireNative() {
232
232
  loadErrors.push(e)
233
233
  }
234
234
  try {
235
- const binding = require('@decibri-freebsd-x64')
236
- const bindingPackageVersion = require('@decibri-freebsd-x64/package.json').version
237
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
235
+ const binding = require('@decibri/decibri-freebsd-x64')
236
+ const bindingPackageVersion = require('@decibri/decibri-freebsd-x64/package.json').version
237
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
239
239
  }
240
240
  return binding
241
241
  } catch (e) {
@@ -248,10 +248,10 @@ function requireNative() {
248
248
  loadErrors.push(e)
249
249
  }
250
250
  try {
251
- const binding = require('@decibri-freebsd-arm64')
252
- const bindingPackageVersion = require('@decibri-freebsd-arm64/package.json').version
253
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
251
+ const binding = require('@decibri/decibri-freebsd-arm64')
252
+ const bindingPackageVersion = require('@decibri/decibri-freebsd-arm64/package.json').version
253
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
255
255
  }
256
256
  return binding
257
257
  } catch (e) {
@@ -269,10 +269,10 @@ function requireNative() {
269
269
  loadErrors.push(e)
270
270
  }
271
271
  try {
272
- const binding = require('@decibri-linux-x64-musl')
273
- const bindingPackageVersion = require('@decibri-linux-x64-musl/package.json').version
274
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
272
+ const binding = require('@decibri/decibri-linux-x64-musl')
273
+ const bindingPackageVersion = require('@decibri/decibri-linux-x64-musl/package.json').version
274
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
276
276
  }
277
277
  return binding
278
278
  } catch (e) {
@@ -285,10 +285,10 @@ function requireNative() {
285
285
  loadErrors.push(e)
286
286
  }
287
287
  try {
288
- const binding = require('@decibri-linux-x64-gnu')
289
- const bindingPackageVersion = require('@decibri-linux-x64-gnu/package.json').version
290
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
288
+ const binding = require('@decibri/decibri-linux-x64-gnu')
289
+ const bindingPackageVersion = require('@decibri/decibri-linux-x64-gnu/package.json').version
290
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
292
292
  }
293
293
  return binding
294
294
  } catch (e) {
@@ -303,10 +303,10 @@ function requireNative() {
303
303
  loadErrors.push(e)
304
304
  }
305
305
  try {
306
- const binding = require('@decibri-linux-arm64-musl')
307
- const bindingPackageVersion = require('@decibri-linux-arm64-musl/package.json').version
308
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
306
+ const binding = require('@decibri/decibri-linux-arm64-musl')
307
+ const bindingPackageVersion = require('@decibri/decibri-linux-arm64-musl/package.json').version
308
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
310
  }
311
311
  return binding
312
312
  } catch (e) {
@@ -319,10 +319,10 @@ function requireNative() {
319
319
  loadErrors.push(e)
320
320
  }
321
321
  try {
322
- const binding = require('@decibri-linux-arm64-gnu')
323
- const bindingPackageVersion = require('@decibri-linux-arm64-gnu/package.json').version
324
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
322
+ const binding = require('@decibri/decibri-linux-arm64-gnu')
323
+ const bindingPackageVersion = require('@decibri/decibri-linux-arm64-gnu/package.json').version
324
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
326
  }
327
327
  return binding
328
328
  } catch (e) {
@@ -337,10 +337,10 @@ function requireNative() {
337
337
  loadErrors.push(e)
338
338
  }
339
339
  try {
340
- const binding = require('@decibri-linux-arm-musleabihf')
341
- const bindingPackageVersion = require('@decibri-linux-arm-musleabihf/package.json').version
342
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
340
+ const binding = require('@decibri/decibri-linux-arm-musleabihf')
341
+ const bindingPackageVersion = require('@decibri/decibri-linux-arm-musleabihf/package.json').version
342
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
344
  }
345
345
  return binding
346
346
  } catch (e) {
@@ -353,10 +353,10 @@ function requireNative() {
353
353
  loadErrors.push(e)
354
354
  }
355
355
  try {
356
- const binding = require('@decibri-linux-arm-gnueabihf')
357
- const bindingPackageVersion = require('@decibri-linux-arm-gnueabihf/package.json').version
358
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
356
+ const binding = require('@decibri/decibri-linux-arm-gnueabihf')
357
+ const bindingPackageVersion = require('@decibri/decibri-linux-arm-gnueabihf/package.json').version
358
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
360
  }
361
361
  return binding
362
362
  } catch (e) {
@@ -371,10 +371,10 @@ function requireNative() {
371
371
  loadErrors.push(e)
372
372
  }
373
373
  try {
374
- const binding = require('@decibri-linux-loong64-musl')
375
- const bindingPackageVersion = require('@decibri-linux-loong64-musl/package.json').version
376
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
374
+ const binding = require('@decibri/decibri-linux-loong64-musl')
375
+ const bindingPackageVersion = require('@decibri/decibri-linux-loong64-musl/package.json').version
376
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
378
  }
379
379
  return binding
380
380
  } catch (e) {
@@ -387,10 +387,10 @@ function requireNative() {
387
387
  loadErrors.push(e)
388
388
  }
389
389
  try {
390
- const binding = require('@decibri-linux-loong64-gnu')
391
- const bindingPackageVersion = require('@decibri-linux-loong64-gnu/package.json').version
392
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
390
+ const binding = require('@decibri/decibri-linux-loong64-gnu')
391
+ const bindingPackageVersion = require('@decibri/decibri-linux-loong64-gnu/package.json').version
392
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
394
  }
395
395
  return binding
396
396
  } catch (e) {
@@ -405,10 +405,10 @@ function requireNative() {
405
405
  loadErrors.push(e)
406
406
  }
407
407
  try {
408
- const binding = require('@decibri-linux-riscv64-musl')
409
- const bindingPackageVersion = require('@decibri-linux-riscv64-musl/package.json').version
410
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
408
+ const binding = require('@decibri/decibri-linux-riscv64-musl')
409
+ const bindingPackageVersion = require('@decibri/decibri-linux-riscv64-musl/package.json').version
410
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
412
  }
413
413
  return binding
414
414
  } catch (e) {
@@ -421,10 +421,10 @@ function requireNative() {
421
421
  loadErrors.push(e)
422
422
  }
423
423
  try {
424
- const binding = require('@decibri-linux-riscv64-gnu')
425
- const bindingPackageVersion = require('@decibri-linux-riscv64-gnu/package.json').version
426
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
424
+ const binding = require('@decibri/decibri-linux-riscv64-gnu')
425
+ const bindingPackageVersion = require('@decibri/decibri-linux-riscv64-gnu/package.json').version
426
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
428
  }
429
429
  return binding
430
430
  } catch (e) {
@@ -438,10 +438,10 @@ function requireNative() {
438
438
  loadErrors.push(e)
439
439
  }
440
440
  try {
441
- const binding = require('@decibri-linux-ppc64-gnu')
442
- const bindingPackageVersion = require('@decibri-linux-ppc64-gnu/package.json').version
443
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
441
+ const binding = require('@decibri/decibri-linux-ppc64-gnu')
442
+ const bindingPackageVersion = require('@decibri/decibri-linux-ppc64-gnu/package.json').version
443
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
445
  }
446
446
  return binding
447
447
  } catch (e) {
@@ -454,10 +454,10 @@ function requireNative() {
454
454
  loadErrors.push(e)
455
455
  }
456
456
  try {
457
- const binding = require('@decibri-linux-s390x-gnu')
458
- const bindingPackageVersion = require('@decibri-linux-s390x-gnu/package.json').version
459
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
457
+ const binding = require('@decibri/decibri-linux-s390x-gnu')
458
+ const bindingPackageVersion = require('@decibri/decibri-linux-s390x-gnu/package.json').version
459
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
461
  }
462
462
  return binding
463
463
  } catch (e) {
@@ -474,10 +474,10 @@ function requireNative() {
474
474
  loadErrors.push(e)
475
475
  }
476
476
  try {
477
- const binding = require('@decibri-openharmony-arm64')
478
- const bindingPackageVersion = require('@decibri-openharmony-arm64/package.json').version
479
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
477
+ const binding = require('@decibri/decibri-openharmony-arm64')
478
+ const bindingPackageVersion = require('@decibri/decibri-openharmony-arm64/package.json').version
479
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
481
  }
482
482
  return binding
483
483
  } catch (e) {
@@ -490,10 +490,10 @@ function requireNative() {
490
490
  loadErrors.push(e)
491
491
  }
492
492
  try {
493
- const binding = require('@decibri-openharmony-x64')
494
- const bindingPackageVersion = require('@decibri-openharmony-x64/package.json').version
495
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
493
+ const binding = require('@decibri/decibri-openharmony-x64')
494
+ const bindingPackageVersion = require('@decibri/decibri-openharmony-x64/package.json').version
495
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
497
  }
498
498
  return binding
499
499
  } catch (e) {
@@ -506,10 +506,10 @@ function requireNative() {
506
506
  loadErrors.push(e)
507
507
  }
508
508
  try {
509
- const binding = require('@decibri-openharmony-arm')
510
- const bindingPackageVersion = require('@decibri-openharmony-arm/package.json').version
511
- if (bindingPackageVersion !== '3.0.0-rc.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
- throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
509
+ const binding = require('@decibri/decibri-openharmony-arm')
510
+ const bindingPackageVersion = require('@decibri/decibri-openharmony-arm/package.json').version
511
+ if (bindingPackageVersion !== '3.0.0-rc.7' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
+ throw new Error(`Native binding package version mismatch, expected 3.0.0-rc.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
513
  }
514
514
  return binding
515
515
  } catch (e) {
@@ -538,7 +538,7 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
538
538
  }
539
539
  if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
540
540
  try {
541
- wasiBinding = require('@decibri-wasm32-wasi')
541
+ wasiBinding = require('@decibri/decibri-wasm32-wasi')
542
542
  nativeBinding = wasiBinding
543
543
  } catch (err) {
544
544
  if (process.env.NAPI_RS_FORCE_WASI) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decibri",
3
- "version": "3.0.0-rc.5",
3
+ "version": "3.0.0-rc.7",
4
4
  "description": "Cross-platform audio capture, output, and processing for Node.js and browsers",
5
5
  "main": "src/decibri.js",
6
6
  "types": "src/decibri.d.ts",
@@ -54,7 +54,6 @@
54
54
  },
55
55
  "napi": {
56
56
  "binaryName": "decibri",
57
- "packageName": "@decibri",
58
57
  "targets": [
59
58
  "x86_64-pc-windows-msvc",
60
59
  "aarch64-apple-darwin",
@@ -66,19 +65,20 @@
66
65
  "src/",
67
66
  "models/",
68
67
  "index.js",
69
- "index.d.ts"
68
+ "index.d.ts",
69
+ "README.md"
70
70
  ],
71
71
  "optionalDependencies": {
72
- "@decibri/win32-x64-msvc": "3.0.0-rc.5",
73
- "@decibri/darwin-arm64": "3.0.0-rc.5",
74
- "@decibri/linux-x64-gnu": "3.0.0-rc.5",
75
- "@decibri/linux-arm64-gnu": "3.0.0-rc.5"
72
+ "@decibri/decibri-win32-x64-msvc": "3.0.0-rc.7",
73
+ "@decibri/decibri-darwin-arm64": "3.0.0-rc.7",
74
+ "@decibri/decibri-linux-x64-gnu": "3.0.0-rc.7",
75
+ "@decibri/decibri-linux-arm64-gnu": "3.0.0-rc.7"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@napi-rs/cli": "^3.0.0"
79
79
  },
80
80
  "scripts": {
81
- "build": "napi build --platform --release -p decibri-node --manifest-path ../../bindings/node/Cargo.toml -o .",
81
+ "build": "napi build --platform --release -p decibri-node --manifest-path ../../bindings/node/Cargo.toml --js-package-name @decibri/decibri -o .",
82
82
  "artifacts": "napi artifacts",
83
83
  "version": "napi version"
84
84
  }
@@ -3,7 +3,7 @@
3
3
  const { Emitter } = require('./emitter.js');
4
4
  const { WORKLET_SOURCE } = require('./worklet-inline.js');
5
5
 
6
- const VERSION = '3.0.0-rc.5';
6
+ const VERSION = '3.0.0-rc.7';
7
7
 
8
8
  /**
9
9
  * Browser microphone capture.