@dion-js/extension-test-utils 0.3.0 → 0.4.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 +13 -6
- package/src/main.ts +5 -0
package/package.json
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dion-js/extension-test-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/bldng1337/dion-runtime.git"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
5
12
|
"exports": {
|
|
6
13
|
".": "./src/main.ts"
|
|
7
14
|
},
|
|
@@ -9,13 +16,13 @@
|
|
|
9
16
|
"image-url-validator": "^1.0.4",
|
|
10
17
|
"m3u8-parser": "^7.2.0",
|
|
11
18
|
"node-fetch": "^3.3.2",
|
|
12
|
-
"@dion-js/extension-types": "
|
|
13
|
-
"@dion-js/runtime-types": "
|
|
19
|
+
"@dion-js/extension-types": "0.15.0",
|
|
20
|
+
"@dion-js/runtime-types": "0.15.0"
|
|
14
21
|
},
|
|
15
22
|
"devDependencies": {
|
|
16
23
|
"@types/m3u8-parser": "^7.2.2",
|
|
17
|
-
"@dion-js/config": "
|
|
18
|
-
"@dion-js/extension-types": "
|
|
19
|
-
"@types/bun": "
|
|
24
|
+
"@dion-js/config": "0.1.0",
|
|
25
|
+
"@dion-js/extension-types": "0.15.0",
|
|
26
|
+
"@types/bun": "1.3.3"
|
|
20
27
|
}
|
|
21
28
|
}
|
package/src/main.ts
CHANGED
|
@@ -334,6 +334,11 @@ export async function assertValidSource(source: Source) {
|
|
|
334
334
|
for (const paragraph of sample(source.paragraphs, 5)) {
|
|
335
335
|
await assertValidParagraph(paragraph);
|
|
336
336
|
}
|
|
337
|
+
for (const audio of sample(source.audio, 5)) {
|
|
338
|
+
await assertValidURL(audio.link, {
|
|
339
|
+
assertmsg: `Source ${source.type} has an invalid url ${audio.link}`,
|
|
340
|
+
});
|
|
341
|
+
}
|
|
337
342
|
break;
|
|
338
343
|
}
|
|
339
344
|
}
|