@amazon/vinyl-hls-parser 1.1.0 → 1.2.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/README.md +37 -0
- package/dist/hlsTestAssets/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +9 -2
- package/dist/index.js.map +3 -3
- package/dist/test/benchmark.es5.js +56 -248
- package/dist/test/benchmark.js +164 -972
- package/dist/test/benchmark.js.map +4 -4
- package/dist/types/current/parse/parseMainPlaylist.d.ts.map +1 -1
- package/dist/types/current/parse/parseMainPlaylist.js +16 -2
- package/dist/types/current/parse/parseMediaPlaylist.d.ts.map +1 -1
- package/dist/types/current/tsconfig.tsbuildinfo +1 -1
- package/package.json +24 -13
- package/dist/test/benchmark.css +0 -71
- package/dist/test/benchmark.html +0 -67
- package/dist/test/favicon.png +0 -0
- package/dist/test/index.html +0 -61
- package/dist/test/integ.es5.js +0 -410
- package/dist/test/integ.js +0 -2127
- package/dist/test/integ.js.map +0 -7
- package/dist/test/jasmine.css +0 -304
- package/dist/test/jasmineHtml.es5.js +0 -670
- package/dist/test/jasmineHtml.js +0 -10851
- package/dist/test/jasmineHtml.js.map +0 -7
- package/dist/test/styles.css +0 -42
- package/dist/unit/types/current/index.d.ts +0 -7
- package/dist/unit/types/current/index.d.ts.map +0 -1
- package/dist/unit/types/current/index.js +0 -6
- package/dist/unit/types/current/parse/parseAttributes.test.d.ts +0 -2
- package/dist/unit/types/current/parse/parseAttributes.test.d.ts.map +0 -1
- package/dist/unit/types/current/parse/parseAttributes.test.js +0 -70
- package/dist/unit/types/current/parse/parseMainPlaylist.test.d.ts +0 -2
- package/dist/unit/types/current/parse/parseMainPlaylist.test.d.ts.map +0 -1
- package/dist/unit/types/current/parse/parseMainPlaylist.test.js +0 -194
- package/dist/unit/types/current/parse/parseMediaPlaylist.test.d.ts +0 -2
- package/dist/unit/types/current/parse/parseMediaPlaylist.test.d.ts.map +0 -1
- package/dist/unit/types/current/parse/parseMediaPlaylist.test.js +0 -401
- package/dist/unit/types/current/parse/parseUtil.test.d.ts +0 -2
- package/dist/unit/types/current/parse/parseUtil.test.d.ts.map +0 -1
- package/dist/unit/types/current/parse/parseUtil.test.js +0 -67
- package/dist/unit/types/current/setup.d.ts +0 -2
- package/dist/unit/types/current/setup.d.ts.map +0 -1
- package/dist/unit/types/current/setup.js +0 -19
- package/dist/unit/types/current/tsconfig.tsbuildinfo +0 -1
package/dist/test/benchmark.html
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
~ Copyright (c) 2024. Amazon.com, Inc. or its affiliates. All rights reserved.
|
|
3
|
-
-->
|
|
4
|
-
|
|
5
|
-
<!doctype html>
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<meta charset="utf-8" />
|
|
9
|
-
<title>Vinyl Performance Benchmarks</title>
|
|
10
|
-
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
12
|
-
<link rel="shortcut icon" type="image/png" href="favicon.png" />
|
|
13
|
-
<link rel="stylesheet" href="jasmine.css" />
|
|
14
|
-
<link rel="stylesheet" href="benchmark.css" />
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
/**
|
|
18
|
-
* Loads a script.
|
|
19
|
-
*
|
|
20
|
-
* @param options {{
|
|
21
|
-
* src: string,
|
|
22
|
-
* module?: boolean
|
|
23
|
-
* }}
|
|
24
|
-
*/
|
|
25
|
-
function loadScript(options) {
|
|
26
|
-
const script = document.createElement('script')
|
|
27
|
-
if (options.module) script.type = 'module'
|
|
28
|
-
script.src = options.src
|
|
29
|
-
script.async = false
|
|
30
|
-
document.head.appendChild(script)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const isModernBrowser = typeof BigInt !== 'undefined'
|
|
34
|
-
|
|
35
|
-
// Detects if this is a modern es2020 browser.
|
|
36
|
-
// Otherwise, loads the es5 version.
|
|
37
|
-
if (isModernBrowser) {
|
|
38
|
-
loadScript({
|
|
39
|
-
src: 'jasmineHtml.js',
|
|
40
|
-
module: true,
|
|
41
|
-
})
|
|
42
|
-
loadScript({
|
|
43
|
-
src: 'benchmark.js',
|
|
44
|
-
module: true,
|
|
45
|
-
})
|
|
46
|
-
} else {
|
|
47
|
-
loadScript({
|
|
48
|
-
src: 'jasmineHtml.es5.js',
|
|
49
|
-
})
|
|
50
|
-
loadScript({
|
|
51
|
-
src: 'benchmark.es5.js',
|
|
52
|
-
})
|
|
53
|
-
}
|
|
54
|
-
</script>
|
|
55
|
-
|
|
56
|
-
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
57
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
58
|
-
<link
|
|
59
|
-
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap"
|
|
60
|
-
rel="stylesheet"
|
|
61
|
-
/>
|
|
62
|
-
</head>
|
|
63
|
-
|
|
64
|
-
<body>
|
|
65
|
-
<div id="jasmineContainer"></div>
|
|
66
|
-
</body>
|
|
67
|
-
</html>
|
package/dist/test/favicon.png
DELETED
|
Binary file
|
package/dist/test/index.html
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
~ Copyright (c) 2025. Amazon.com, Inc. or its affiliates. All rights reserved.
|
|
3
|
-
-->
|
|
4
|
-
|
|
5
|
-
<!doctype html>
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<meta charset="utf-8" />
|
|
9
|
-
<title>Jasmine Spec Runner</title>
|
|
10
|
-
|
|
11
|
-
<link rel="shortcut icon" type="image/png" href="favicon.png" />
|
|
12
|
-
<link rel="stylesheet" href="styles.css" />
|
|
13
|
-
<link rel="stylesheet" href="jasmine.css" />
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
/**
|
|
17
|
-
* Loads a script.
|
|
18
|
-
*
|
|
19
|
-
* @param options {{
|
|
20
|
-
* src: string,
|
|
21
|
-
* module?: boolean
|
|
22
|
-
* }}
|
|
23
|
-
*/
|
|
24
|
-
function loadScript(options) {
|
|
25
|
-
const script = document.createElement('script')
|
|
26
|
-
if (options.module) script.type = 'module'
|
|
27
|
-
script.src = options.src
|
|
28
|
-
script.async = false
|
|
29
|
-
document.head.appendChild(script)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const isModernBrowser = typeof BigInt !== 'undefined'
|
|
33
|
-
|
|
34
|
-
// Detects if this is a modern es2020 browser.
|
|
35
|
-
// Otherwise, loads the es5 version.
|
|
36
|
-
if (isModernBrowser) {
|
|
37
|
-
loadScript({
|
|
38
|
-
src: 'jasmineHtml.js',
|
|
39
|
-
module: true,
|
|
40
|
-
})
|
|
41
|
-
loadScript({
|
|
42
|
-
src: 'integ.js',
|
|
43
|
-
module: true,
|
|
44
|
-
})
|
|
45
|
-
} else {
|
|
46
|
-
loadScript({
|
|
47
|
-
src: 'jasmineHtml.es5.js',
|
|
48
|
-
})
|
|
49
|
-
loadScript({
|
|
50
|
-
src: 'integ.es5.js',
|
|
51
|
-
})
|
|
52
|
-
}
|
|
53
|
-
</script>
|
|
54
|
-
</head>
|
|
55
|
-
|
|
56
|
-
<body>
|
|
57
|
-
<div class="callout" id="unlockAudioPrompt" style="display: none">
|
|
58
|
-
<div class="instructions">Press any key or click to begin.</div>
|
|
59
|
-
</div>
|
|
60
|
-
</body>
|
|
61
|
-
</html>
|