@mediabunny/server 1.48.1 → 1.49.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mediabunny/server",
3
3
  "author": "Vanilagy",
4
- "version": "1.48.1",
4
+ "version": "1.49.0",
5
5
  "description": "Adds full video and audio decoder and encoder support to Mediabunny for use in server-side environments (Node, Bun, Deno). Based on NodeAV.",
6
6
  "main": "./dist/bundles/mediabunny-server.cjs",
7
7
  "module": "./dist/bundles/mediabunny-server.mjs",
package/src/index.ts CHANGED
@@ -8,6 +8,7 @@
8
8
 
9
9
  import {
10
10
  AudioSample,
11
+ Logging,
11
12
  MaybePromise,
12
13
  registerDecoder,
13
14
  registerEncoder,
@@ -24,7 +25,7 @@ import { copyAudioSampleToAvFrame, AvFrameAudioSampleResource } from './audio-sa
24
25
 
25
26
  const SERVER_LOADED_SYMBOL = Symbol.for('@mediabunny/server loaded');
26
27
  if ((globalThis as Record<symbol, unknown>)[SERVER_LOADED_SYMBOL]) {
27
- console.error(
28
+ Logging._error(
28
29
  '[WARNING]\n@mediabunny/server was loaded twice.'
29
30
  + ' This will likely cause the package not to work correctly.'
30
31
  + ' Check if multiple dependencies are importing different versions of @mediabunny/server,'