react-native-audio-api 0.11.0-nightly-1ca2db9-20251204 → 0.11.0-nightly-db51488-20251205
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-audio-api",
|
|
3
|
-
"version": "0.11.0-nightly-
|
|
3
|
+
"version": "0.11.0-nightly-db51488-20251205",
|
|
4
4
|
"description": "react-native-audio-api provides system for controlling audio in React Native environment compatible with Web Audio API specification",
|
|
5
5
|
"bin": {
|
|
6
6
|
"setup-rn-audio-api-web": "./scripts/setup-rn-audio-api-web.js"
|
package/metro-config/index.d.ts
DELETED
package/metro-config/index.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
const COLLAPSED_STACK_REGEX = new RegExp(
|
|
2
|
-
[
|
|
3
|
-
// For internal usage in the example app
|
|
4
|
-
'/packages/react-native-audio-api/.+\\.(t|j)sx?$',
|
|
5
|
-
// When audio-api is installed as a dependency (node_modules)
|
|
6
|
-
'/node_modules/react-native-audio-api/.+\\.(t|j)sx?$',
|
|
7
|
-
]
|
|
8
|
-
// Make patterns work with both Windows and POSIX paths.
|
|
9
|
-
.map((pathPattern) => pathPattern.replaceAll('/', '[/\\\\]'))
|
|
10
|
-
.join('|')
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Wraps and returns a modified Metro configuration to handle stack frames for audio API.
|
|
15
|
-
* It collapses frames from either the library's directory in development or from `node_modules` when installed.
|
|
16
|
-
*
|
|
17
|
-
* @param {import('@react-native/metro-config').MetroConfig} config - The original Metro configuration object to be wrapped.
|
|
18
|
-
* @returns {import('@react-native/metro-config').MetroConfig} - Modified Metro configuration which customizes stack frame collapsing.
|
|
19
|
-
*/
|
|
20
|
-
function wrapWithAudioAPIMetroConfig(config) {
|
|
21
|
-
return {
|
|
22
|
-
...config,
|
|
23
|
-
symbolicator: {
|
|
24
|
-
async customizeFrame(frame) {
|
|
25
|
-
const collapse = Boolean(
|
|
26
|
-
// Collapse the stack frame based on user's config symbolicator settings
|
|
27
|
-
(await config?.symbolicator?.customizeFrame?.(frame))?.collapse ||
|
|
28
|
-
// or, if not already collapsed, collapse the stack frame with path
|
|
29
|
-
// to react-native-audio-api source code
|
|
30
|
-
(frame.file && COLLAPSED_STACK_REGEX.test(frame.file))
|
|
31
|
-
);
|
|
32
|
-
return {
|
|
33
|
-
collapse,
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
module.exports = {
|
|
40
|
-
wrapWithAudioAPIMetroConfig,
|
|
41
|
-
};
|