@antha/audio 0.0.1
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/LICENSE-CC0 +121 -0
- package/LICENSE-MIT +21 -0
- package/README.md +11 -0
- package/dist/antha-audio.mod.d.ts +28 -0
- package/dist/antha-audio.mod.js +20 -0
- package/dist/audio-file.d.ts +277 -0
- package/dist/audio-file.js +318 -0
- package/dist/audio-player.d.ts +73 -0
- package/dist/audio-player.js +112 -0
- package/dist/codecs.d.ts +292 -0
- package/dist/codecs.js +101 -0
- package/dist/detect-play.d.ts +6 -0
- package/dist/detect-play.js +29 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/package.json +59 -0
- package/sample-files/back_004.mp3 +0 -0
- package/sample-files/confirmation_002.mp3 +0 -0
- package/sample-files/powerUp3 +0 -0
- package/sample-files/powerUp3.mp3 +0 -0
package/dist/codecs.d.ts
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The codec determining code is largely copied from
|
|
3
|
+
* https://github.com/goldfire/howler.js/blob/a2a47933f1ffcee659e4939a65e075fa7f25706c/src/howler.core.js,
|
|
4
|
+
* which has the following license:
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2013-2020 James Simpson and GoldFire Studios, Inc.
|
|
7
|
+
*
|
|
8
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
9
|
+
* a copy of this software and associated documentation files (the
|
|
10
|
+
* "Software"), to deal in the Software without restriction, including
|
|
11
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
12
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
13
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
14
|
+
* the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be
|
|
17
|
+
* included in all copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
20
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
21
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
22
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
23
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
24
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
25
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
26
|
+
*/
|
|
27
|
+
import { type Values } from '@augment-vir/common';
|
|
28
|
+
/**
|
|
29
|
+
* An enum of audio codec names.
|
|
30
|
+
*
|
|
31
|
+
* @category Internal
|
|
32
|
+
*/
|
|
33
|
+
export declare const Codec: {
|
|
34
|
+
mp3: "mp3";
|
|
35
|
+
mpeg: "mp3";
|
|
36
|
+
opus: "mp3";
|
|
37
|
+
ogg: "mp3";
|
|
38
|
+
oga: "mp3";
|
|
39
|
+
wav: "mp3";
|
|
40
|
+
aac: "mp3";
|
|
41
|
+
caf: "mp3";
|
|
42
|
+
m4a: "mp3";
|
|
43
|
+
m4b: "mp3";
|
|
44
|
+
mp4: "mp3";
|
|
45
|
+
weba: "mp3";
|
|
46
|
+
webm: "mp3";
|
|
47
|
+
dolby: "mp3";
|
|
48
|
+
flac: "mp3";
|
|
49
|
+
} | {
|
|
50
|
+
mp3: "mpeg";
|
|
51
|
+
mpeg: "mpeg";
|
|
52
|
+
opus: "mpeg";
|
|
53
|
+
ogg: "mpeg";
|
|
54
|
+
oga: "mpeg";
|
|
55
|
+
wav: "mpeg";
|
|
56
|
+
aac: "mpeg";
|
|
57
|
+
caf: "mpeg";
|
|
58
|
+
m4a: "mpeg";
|
|
59
|
+
m4b: "mpeg";
|
|
60
|
+
mp4: "mpeg";
|
|
61
|
+
weba: "mpeg";
|
|
62
|
+
webm: "mpeg";
|
|
63
|
+
dolby: "mpeg";
|
|
64
|
+
flac: "mpeg";
|
|
65
|
+
} | {
|
|
66
|
+
mp3: "opus";
|
|
67
|
+
mpeg: "opus";
|
|
68
|
+
opus: "opus";
|
|
69
|
+
ogg: "opus";
|
|
70
|
+
oga: "opus";
|
|
71
|
+
wav: "opus";
|
|
72
|
+
aac: "opus";
|
|
73
|
+
caf: "opus";
|
|
74
|
+
m4a: "opus";
|
|
75
|
+
m4b: "opus";
|
|
76
|
+
mp4: "opus";
|
|
77
|
+
weba: "opus";
|
|
78
|
+
webm: "opus";
|
|
79
|
+
dolby: "opus";
|
|
80
|
+
flac: "opus";
|
|
81
|
+
} | {
|
|
82
|
+
mp3: "ogg";
|
|
83
|
+
mpeg: "ogg";
|
|
84
|
+
opus: "ogg";
|
|
85
|
+
ogg: "ogg";
|
|
86
|
+
oga: "ogg";
|
|
87
|
+
wav: "ogg";
|
|
88
|
+
aac: "ogg";
|
|
89
|
+
caf: "ogg";
|
|
90
|
+
m4a: "ogg";
|
|
91
|
+
m4b: "ogg";
|
|
92
|
+
mp4: "ogg";
|
|
93
|
+
weba: "ogg";
|
|
94
|
+
webm: "ogg";
|
|
95
|
+
dolby: "ogg";
|
|
96
|
+
flac: "ogg";
|
|
97
|
+
} | {
|
|
98
|
+
mp3: "oga";
|
|
99
|
+
mpeg: "oga";
|
|
100
|
+
opus: "oga";
|
|
101
|
+
ogg: "oga";
|
|
102
|
+
oga: "oga";
|
|
103
|
+
wav: "oga";
|
|
104
|
+
aac: "oga";
|
|
105
|
+
caf: "oga";
|
|
106
|
+
m4a: "oga";
|
|
107
|
+
m4b: "oga";
|
|
108
|
+
mp4: "oga";
|
|
109
|
+
weba: "oga";
|
|
110
|
+
webm: "oga";
|
|
111
|
+
dolby: "oga";
|
|
112
|
+
flac: "oga";
|
|
113
|
+
} | {
|
|
114
|
+
mp3: "wav";
|
|
115
|
+
mpeg: "wav";
|
|
116
|
+
opus: "wav";
|
|
117
|
+
ogg: "wav";
|
|
118
|
+
oga: "wav";
|
|
119
|
+
wav: "wav";
|
|
120
|
+
aac: "wav";
|
|
121
|
+
caf: "wav";
|
|
122
|
+
m4a: "wav";
|
|
123
|
+
m4b: "wav";
|
|
124
|
+
mp4: "wav";
|
|
125
|
+
weba: "wav";
|
|
126
|
+
webm: "wav";
|
|
127
|
+
dolby: "wav";
|
|
128
|
+
flac: "wav";
|
|
129
|
+
} | {
|
|
130
|
+
mp3: "aac";
|
|
131
|
+
mpeg: "aac";
|
|
132
|
+
opus: "aac";
|
|
133
|
+
ogg: "aac";
|
|
134
|
+
oga: "aac";
|
|
135
|
+
wav: "aac";
|
|
136
|
+
aac: "aac";
|
|
137
|
+
caf: "aac";
|
|
138
|
+
m4a: "aac";
|
|
139
|
+
m4b: "aac";
|
|
140
|
+
mp4: "aac";
|
|
141
|
+
weba: "aac";
|
|
142
|
+
webm: "aac";
|
|
143
|
+
dolby: "aac";
|
|
144
|
+
flac: "aac";
|
|
145
|
+
} | {
|
|
146
|
+
mp3: "caf";
|
|
147
|
+
mpeg: "caf";
|
|
148
|
+
opus: "caf";
|
|
149
|
+
ogg: "caf";
|
|
150
|
+
oga: "caf";
|
|
151
|
+
wav: "caf";
|
|
152
|
+
aac: "caf";
|
|
153
|
+
caf: "caf";
|
|
154
|
+
m4a: "caf";
|
|
155
|
+
m4b: "caf";
|
|
156
|
+
mp4: "caf";
|
|
157
|
+
weba: "caf";
|
|
158
|
+
webm: "caf";
|
|
159
|
+
dolby: "caf";
|
|
160
|
+
flac: "caf";
|
|
161
|
+
} | {
|
|
162
|
+
mp3: "m4a";
|
|
163
|
+
mpeg: "m4a";
|
|
164
|
+
opus: "m4a";
|
|
165
|
+
ogg: "m4a";
|
|
166
|
+
oga: "m4a";
|
|
167
|
+
wav: "m4a";
|
|
168
|
+
aac: "m4a";
|
|
169
|
+
caf: "m4a";
|
|
170
|
+
m4a: "m4a";
|
|
171
|
+
m4b: "m4a";
|
|
172
|
+
mp4: "m4a";
|
|
173
|
+
weba: "m4a";
|
|
174
|
+
webm: "m4a";
|
|
175
|
+
dolby: "m4a";
|
|
176
|
+
flac: "m4a";
|
|
177
|
+
} | {
|
|
178
|
+
mp3: "m4b";
|
|
179
|
+
mpeg: "m4b";
|
|
180
|
+
opus: "m4b";
|
|
181
|
+
ogg: "m4b";
|
|
182
|
+
oga: "m4b";
|
|
183
|
+
wav: "m4b";
|
|
184
|
+
aac: "m4b";
|
|
185
|
+
caf: "m4b";
|
|
186
|
+
m4a: "m4b";
|
|
187
|
+
m4b: "m4b";
|
|
188
|
+
mp4: "m4b";
|
|
189
|
+
weba: "m4b";
|
|
190
|
+
webm: "m4b";
|
|
191
|
+
dolby: "m4b";
|
|
192
|
+
flac: "m4b";
|
|
193
|
+
} | {
|
|
194
|
+
mp3: "mp4";
|
|
195
|
+
mpeg: "mp4";
|
|
196
|
+
opus: "mp4";
|
|
197
|
+
ogg: "mp4";
|
|
198
|
+
oga: "mp4";
|
|
199
|
+
wav: "mp4";
|
|
200
|
+
aac: "mp4";
|
|
201
|
+
caf: "mp4";
|
|
202
|
+
m4a: "mp4";
|
|
203
|
+
m4b: "mp4";
|
|
204
|
+
mp4: "mp4";
|
|
205
|
+
weba: "mp4";
|
|
206
|
+
webm: "mp4";
|
|
207
|
+
dolby: "mp4";
|
|
208
|
+
flac: "mp4";
|
|
209
|
+
} | {
|
|
210
|
+
mp3: "weba";
|
|
211
|
+
mpeg: "weba";
|
|
212
|
+
opus: "weba";
|
|
213
|
+
ogg: "weba";
|
|
214
|
+
oga: "weba";
|
|
215
|
+
wav: "weba";
|
|
216
|
+
aac: "weba";
|
|
217
|
+
caf: "weba";
|
|
218
|
+
m4a: "weba";
|
|
219
|
+
m4b: "weba";
|
|
220
|
+
mp4: "weba";
|
|
221
|
+
weba: "weba";
|
|
222
|
+
webm: "weba";
|
|
223
|
+
dolby: "weba";
|
|
224
|
+
flac: "weba";
|
|
225
|
+
} | {
|
|
226
|
+
mp3: "webm";
|
|
227
|
+
mpeg: "webm";
|
|
228
|
+
opus: "webm";
|
|
229
|
+
ogg: "webm";
|
|
230
|
+
oga: "webm";
|
|
231
|
+
wav: "webm";
|
|
232
|
+
aac: "webm";
|
|
233
|
+
caf: "webm";
|
|
234
|
+
m4a: "webm";
|
|
235
|
+
m4b: "webm";
|
|
236
|
+
mp4: "webm";
|
|
237
|
+
weba: "webm";
|
|
238
|
+
webm: "webm";
|
|
239
|
+
dolby: "webm";
|
|
240
|
+
flac: "webm";
|
|
241
|
+
} | {
|
|
242
|
+
mp3: "dolby";
|
|
243
|
+
mpeg: "dolby";
|
|
244
|
+
opus: "dolby";
|
|
245
|
+
ogg: "dolby";
|
|
246
|
+
oga: "dolby";
|
|
247
|
+
wav: "dolby";
|
|
248
|
+
aac: "dolby";
|
|
249
|
+
caf: "dolby";
|
|
250
|
+
m4a: "dolby";
|
|
251
|
+
m4b: "dolby";
|
|
252
|
+
mp4: "dolby";
|
|
253
|
+
weba: "dolby";
|
|
254
|
+
webm: "dolby";
|
|
255
|
+
dolby: "dolby";
|
|
256
|
+
flac: "dolby";
|
|
257
|
+
} | {
|
|
258
|
+
mp3: "flac";
|
|
259
|
+
mpeg: "flac";
|
|
260
|
+
opus: "flac";
|
|
261
|
+
ogg: "flac";
|
|
262
|
+
oga: "flac";
|
|
263
|
+
wav: "flac";
|
|
264
|
+
aac: "flac";
|
|
265
|
+
caf: "flac";
|
|
266
|
+
m4a: "flac";
|
|
267
|
+
m4b: "flac";
|
|
268
|
+
mp4: "flac";
|
|
269
|
+
weba: "flac";
|
|
270
|
+
webm: "flac";
|
|
271
|
+
dolby: "flac";
|
|
272
|
+
flac: "flac";
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* An enum of audio codec names.
|
|
276
|
+
*
|
|
277
|
+
* @category Internal
|
|
278
|
+
*/
|
|
279
|
+
export type Codec = Values<typeof Codec>;
|
|
280
|
+
/**
|
|
281
|
+
* Check if the given audio codec/extension is supported in the current browser.
|
|
282
|
+
*
|
|
283
|
+
* @category Internal
|
|
284
|
+
*/
|
|
285
|
+
export declare function isCodecSupported(codec: string): boolean;
|
|
286
|
+
/**
|
|
287
|
+
* Check if the given audio file is supported in the current browser by extracting its file
|
|
288
|
+
* extension.
|
|
289
|
+
*
|
|
290
|
+
* @category Internal
|
|
291
|
+
*/
|
|
292
|
+
export declare function isFileSupported(fileName: string): boolean;
|
package/dist/codecs.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The codec determining code is largely copied from
|
|
3
|
+
* https://github.com/goldfire/howler.js/blob/a2a47933f1ffcee659e4939a65e075fa7f25706c/src/howler.core.js,
|
|
4
|
+
* which has the following license:
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2013-2020 James Simpson and GoldFire Studios, Inc.
|
|
7
|
+
*
|
|
8
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
9
|
+
* a copy of this software and associated documentation files (the
|
|
10
|
+
* "Software"), to deal in the Software without restriction, including
|
|
11
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
12
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
13
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
14
|
+
* the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be
|
|
17
|
+
* included in all copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
20
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
21
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
22
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
23
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
24
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
25
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
26
|
+
*/
|
|
27
|
+
import { mapObjectValues } from '@augment-vir/common';
|
|
28
|
+
function readCodecs() {
|
|
29
|
+
const audioTest = new Audio();
|
|
30
|
+
/* node:coverage disable: there's no way to reasonably test all the different below possibilities. */
|
|
31
|
+
const mpegTest = !!audioTest.canPlayType('audio/mpeg;');
|
|
32
|
+
// Opera version <33 has mixed MP3 support, so we need to check for and block it.
|
|
33
|
+
const userAgent = globalThis.navigator.userAgent;
|
|
34
|
+
const operaAgent = userAgent.match(/OPR\/(\d+)/g);
|
|
35
|
+
const operaVersion = operaAgent?.[0].split('/')[1];
|
|
36
|
+
const isOldOpera = operaAgent && operaVersion ? parseInt(operaVersion) < 33 : false;
|
|
37
|
+
const checkSafari = userAgent.includes('Safari') && !userAgent.includes('Chrome');
|
|
38
|
+
const safariVersion = userAgent.match(/Version\/(.*?) /)?.[1];
|
|
39
|
+
const isOldSafari = checkSafari && safariVersion ? parseInt(safariVersion, 10) < 15 : false;
|
|
40
|
+
return {
|
|
41
|
+
mp3: !!(!isOldOpera && (mpegTest || audioTest.canPlayType('audio/mp3;'))),
|
|
42
|
+
mpeg: mpegTest,
|
|
43
|
+
opus: !!audioTest.canPlayType('audio/ogg; codecs="opus"'),
|
|
44
|
+
ogg: !!audioTest.canPlayType('audio/ogg; codecs="vorbis"'),
|
|
45
|
+
oga: !!audioTest.canPlayType('audio/ogg; codecs="vorbis"'),
|
|
46
|
+
wav: !!(audioTest.canPlayType('audio/wav; codecs="1"') || audioTest.canPlayType('audio/wav')),
|
|
47
|
+
aac: !!audioTest.canPlayType('audio/aac;'),
|
|
48
|
+
caf: !!audioTest.canPlayType('audio/x-caf;'),
|
|
49
|
+
m4a: !!(audioTest.canPlayType('audio/x-m4a;') ||
|
|
50
|
+
audioTest.canPlayType('audio/m4a;') ||
|
|
51
|
+
audioTest.canPlayType('audio/aac;')),
|
|
52
|
+
m4b: !!(audioTest.canPlayType('audio/x-m4b;') ||
|
|
53
|
+
audioTest.canPlayType('audio/m4b;') ||
|
|
54
|
+
audioTest.canPlayType('audio/aac;')),
|
|
55
|
+
mp4: !!(audioTest.canPlayType('audio/x-mp4;') ||
|
|
56
|
+
audioTest.canPlayType('audio/mp4;') ||
|
|
57
|
+
audioTest.canPlayType('audio/aac;')),
|
|
58
|
+
weba: !!(!isOldSafari && audioTest.canPlayType('audio/webm; codecs="vorbis"')),
|
|
59
|
+
webm: !!(!isOldSafari && audioTest.canPlayType('audio/webm; codecs="vorbis"')),
|
|
60
|
+
dolby: !!audioTest.canPlayType('audio/mp4; codecs="ec-3"'),
|
|
61
|
+
flac: !!(audioTest.canPlayType('audio/x-flac;') || audioTest.canPlayType('audio/flac;')),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/* node:coverage enable */
|
|
65
|
+
const supportedCodecs = readCodecs();
|
|
66
|
+
/**
|
|
67
|
+
* An enum of audio codec names.
|
|
68
|
+
*
|
|
69
|
+
* @category Internal
|
|
70
|
+
*/
|
|
71
|
+
export const Codec = mapObjectValues(supportedCodecs, (key) => key);
|
|
72
|
+
/**
|
|
73
|
+
* Check if the given audio codec/extension is supported in the current browser.
|
|
74
|
+
*
|
|
75
|
+
* @category Internal
|
|
76
|
+
*/
|
|
77
|
+
// eslint-disable-next-line sonarjs/prefer-type-guard
|
|
78
|
+
export function isCodecSupported(codec) {
|
|
79
|
+
return !!supportedCodecs[codec];
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if the given audio file is supported in the current browser by extracting its file
|
|
83
|
+
* extension.
|
|
84
|
+
*
|
|
85
|
+
* @category Internal
|
|
86
|
+
*/
|
|
87
|
+
export function isFileSupported(fileName) {
|
|
88
|
+
const fileExtension = extractFileExtension(fileName);
|
|
89
|
+
if (!fileExtension) {
|
|
90
|
+
throw new Error(`Cannot determine file extension from '${fileName}'`);
|
|
91
|
+
}
|
|
92
|
+
return isCodecSupported(fileExtension);
|
|
93
|
+
}
|
|
94
|
+
function extractFileExtension(fileName) {
|
|
95
|
+
// Extract the file extension from the URL or base64 data URI.
|
|
96
|
+
const fromBase64DataUri = /^data:audio\/([^;,]+);/i.exec(fileName);
|
|
97
|
+
const preSearch = fileName.split('?', 1)[0];
|
|
98
|
+
const fromUrl = preSearch && /\.([^.]+)$/.exec(preSearch);
|
|
99
|
+
const finalValue = fromBase64DataUri || fromUrl;
|
|
100
|
+
return finalValue?.[1]?.toLowerCase();
|
|
101
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DeferredPromise } from '@augment-vir/common';
|
|
2
|
+
/**
|
|
3
|
+
* Detects if the browser session currently supports playing audio.
|
|
4
|
+
*
|
|
5
|
+
* @category Internal
|
|
6
|
+
*/
|
|
7
|
+
export async function isPlayingEnabled(audioContext = new AudioContext()) {
|
|
8
|
+
/** Firefox requires an explicit resume after user gesture; other browsers auto-resume. */
|
|
9
|
+
if (audioContext instanceof AudioContext && audioContext.state === 'suspended') {
|
|
10
|
+
audioContext.resume().catch(() => { });
|
|
11
|
+
}
|
|
12
|
+
const source = audioContext.createBufferSource();
|
|
13
|
+
source.buffer = audioContext.createBuffer(1, 1, 22_050);
|
|
14
|
+
source.connect(audioContext.destination);
|
|
15
|
+
const deferredPromise = new DeferredPromise();
|
|
16
|
+
source.addEventListener('ended', () => {
|
|
17
|
+
source.disconnect();
|
|
18
|
+
if (!deferredPromise.isSettled) {
|
|
19
|
+
deferredPromise.resolve(true);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
source.start();
|
|
23
|
+
globalThis.setTimeout(() => {
|
|
24
|
+
if (!deferredPromise.isSettled) {
|
|
25
|
+
deferredPromise.resolve(false);
|
|
26
|
+
}
|
|
27
|
+
}, 100);
|
|
28
|
+
return deferredPromise.promise;
|
|
29
|
+
}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@antha/audio",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "An Antha mod for handling audio.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"vir",
|
|
7
|
+
"antha",
|
|
8
|
+
"audio"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/electrovir/antha",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/electrovir/antha/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/electrovir/antha.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "(MIT OR CC0-1.0)",
|
|
19
|
+
"author": {
|
|
20
|
+
"name": "electrovir",
|
|
21
|
+
"url": "https://github.com/electrovir"
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"type": "module",
|
|
25
|
+
"main": "dist/index.js",
|
|
26
|
+
"module": "dist/index.js",
|
|
27
|
+
"types": "dist/index.d.ts",
|
|
28
|
+
"scripts": {
|
|
29
|
+
"compile": "virmator compile",
|
|
30
|
+
"docs": "virmator docs",
|
|
31
|
+
"test": "virmator test web",
|
|
32
|
+
"test:coverage": "npm test coverage",
|
|
33
|
+
"test:docs": "virmator docs check"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@augment-vir/assert": "^31.73.1",
|
|
37
|
+
"@augment-vir/common": "^31.73.1"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@antha/engine": "*",
|
|
41
|
+
"@augment-vir/test": "^31.73.1",
|
|
42
|
+
"@web/dev-server-esbuild": "^1.0.5",
|
|
43
|
+
"@web/test-runner": "^0.20.2",
|
|
44
|
+
"@web/test-runner-playwright": "^0.11.1",
|
|
45
|
+
"istanbul-smart-text-reporter": "^1.1.5",
|
|
46
|
+
"typed-event-target": "^4.3.1"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@antha/engine": "*",
|
|
50
|
+
"element-vir": ">=26",
|
|
51
|
+
"typed-event-target": ">4.3"
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=22"
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|