@warren-bank/hls-proxy 3.5.0 → 3.5.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/README.md +2 -3
- package/hls-proxy/manifest_parser.js +1 -1
- package/hls-proxy/url.js +31 -0
- package/hls-proxy/utils.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -637,11 +637,10 @@ curl --silent --insecure "$URL"
|
|
|
637
637
|
* important requirement: the path for a custom route needs to include exactly one unnamed [parameter](https://expressjs.com/en/guide/routing.html#route-parameters) that matches the base64 encoded URL and (optionally) a file extension (ex: `'/proxy/*'`)
|
|
638
638
|
* the use of nested routers is supported
|
|
639
639
|
- system requirements:
|
|
640
|
-
* Node.js version:
|
|
641
|
-
- transitive [dependency](https://github.com/warren-bank/HLS-Proxy/blob/v3.5.
|
|
640
|
+
* Node.js version: v8.6.0 (and higher)
|
|
641
|
+
- transitive [dependency](https://github.com/warren-bank/HLS-Proxy/blob/v3.5.1/package.json#L13-L14) requirements:
|
|
642
642
|
* v08.06.00+: [`@warren-bank/node-process-argv`](https://github.com/warren-bank/node-process-argv#requirements)
|
|
643
643
|
* v08.06.00+: [`@warren-bank/node-request`](https://github.com/warren-bank/node-request#requirements)
|
|
644
|
-
* v12.00.00+: [`@warren-bank/url`](https://github.com/warren-bank/js-url#requirements)
|
|
645
644
|
|
|
646
645
|
- - - -
|
|
647
646
|
|
package/hls-proxy/url.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
let parse, URL
|
|
2
|
+
|
|
3
|
+
if (!parse || !URL) {
|
|
4
|
+
try {
|
|
5
|
+
({parse, URL} = require('@warren-bank/url/es6-node/jsURL'));
|
|
6
|
+
}
|
|
7
|
+
catch(e){}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
if (!parse || !URL) {
|
|
11
|
+
try {
|
|
12
|
+
({parse, URL} = require('@warren-bank/url/es5-browser/jsURL'));
|
|
13
|
+
}
|
|
14
|
+
catch(e){}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (!parse || !URL) {
|
|
18
|
+
try {
|
|
19
|
+
({parse, URL} = require('url'));
|
|
20
|
+
}
|
|
21
|
+
catch(e){}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (!parse || !URL) {
|
|
25
|
+
throw new Error('URL class is not supported')
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
module.exports = {
|
|
29
|
+
parse,
|
|
30
|
+
URL
|
|
31
|
+
}
|
package/hls-proxy/utils.js
CHANGED
package/package.json
CHANGED