mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-28 14:21:34 +00:00
Chore: Add Node 25 compatibility polyfill for SlowBuffer
This commit is contained in:
parent
5f92babc02
commit
8673169280
1 changed files with 6 additions and 0 deletions
6
index.js
6
index.js
|
|
@ -1,3 +1,9 @@
|
|||
// Node 25 compatibility: SlowBuffer is removed
|
||||
const buffer = require('buffer')
|
||||
if (!buffer.SlowBuffer) {
|
||||
buffer.SlowBuffer = buffer.Buffer
|
||||
}
|
||||
|
||||
const optionDefinitions = [
|
||||
{ name: 'config', alias: 'c', type: String },
|
||||
{ name: 'metadata', alias: 'm', type: String },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue