@warren-bank/hls-proxy 3.2.2 → 3.2.3

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 CHANGED
@@ -572,6 +572,41 @@ curl --silent --insecure "$URL"
572
572
 
573
573
  - - - -
574
574
 
575
+ #### Major Versions:
576
+
577
+ * `v1.x`
578
+ - commit history is in branch: [`v01`](https://github.com/warren-bank/HLS-Proxy/commits/v01)
579
+ - summary:
580
+ * m3u8 manifest parser uses regex patterns to identify all URL patterns without any special knowledge of the m3u8 manifest specification
581
+ * internal `proxy` module exports a function that accepts an instance of [`http.Server`](https://nodejs.org/api/http.html#class-httpserver) and adds event listeners to process requests
582
+ - system requirements:
583
+ * Node.js v6.4.0 and higher
584
+ - required features: [`Proxy` constructor](https://node.green/#ES2015-built-ins-Proxy-constructor-requires-new), [`Proxy` 'apply' handler](https://node.green/#ES2015-built-ins-Proxy--apply--handler), [`Reflect.apply`](https://node.green/#ES2015-built-ins-Reflect-Reflect-apply)
585
+ * `v2.x`
586
+ - commit history is in branch: [`v02`](https://github.com/warren-bank/HLS-Proxy/commits/v02)
587
+ - summary:
588
+ * m3u8 manifest parser uses regex patterns to identify all URL patterns without any special knowledge of the m3u8 manifest specification
589
+ * internal `proxy` module exports an Object containing event listeners to process requests that can be either:
590
+ - added to an instance of [`http.Server`](https://nodejs.org/api/http.html#class-httpserver)
591
+ - added to an [`Express.js`](https://github.com/expressjs/express) application as middleware to handle a custom route
592
+ * important limitation: since `/` is a valid character in a base64 encoded URL, the path for a custom route needs to end with a character that is not allowed in base64 encoding (ex: `'/proxy_/*'`)
593
+ - system requirements:
594
+ * Node.js v6.4.0 and higher
595
+ - required features: [`Proxy` constructor](https://node.green/#ES2015-built-ins-Proxy-constructor-requires-new), [`Proxy` 'apply' handler](https://node.green/#ES2015-built-ins-Proxy--apply--handler), [`Reflect.apply`](https://node.green/#ES2015-built-ins-Reflect-Reflect-apply)
596
+ * `v3.x`
597
+ - commit history is in branch: [`v03`](https://github.com/warren-bank/HLS-Proxy/commits/v03)
598
+ - summary:
599
+ * m3u8 manifest parser uses special knowledge of the m3u8 manifest specification to contextually identify URLs
600
+ * internal `proxy` module exports an Object containing event listeners to process requests that can be either:
601
+ - added to an instance of [`http.Server`](https://nodejs.org/api/http.html#class-httpserver)
602
+ - added to an [`Express.js`](https://github.com/expressjs/express) application as middleware to handle a custom route
603
+ * important limitation: since `/` is a valid character in a base64 encoded URL, the path for a custom route needs to end with a character that is not allowed in base64 encoding (ex: `'/proxy_/*'`)
604
+ - system requirements:
605
+ * Node.js v16.0.0 and higher
606
+ - required features: [`Proxy` constructor](https://node.green/#ES2015-built-ins-Proxy-constructor-requires-new), [`Proxy` 'apply' handler](https://node.green/#ES2015-built-ins-Proxy--apply--handler), [`Reflect.apply`](https://node.green/#ES2015-built-ins-Reflect-Reflect-apply), [`RegExp` 'd' flag](https://node.green/#ES2022-features-RegExp-Match-Indices---hasIndices-----d--flag-)
607
+
608
+ - - - -
609
+
575
610
  #### Legal:
576
611
 
577
612
  * copyright: [Warren Bank](https://github.com/warren-bank)
@@ -1,17 +1,17 @@
1
- const {CookieJar} = require('tough-cookie')
2
-
3
- let cookieJar = null
4
-
5
- const useCookieJar = function(){
6
- if (!cookieJar)
7
- cookieJar = new CookieJar()
8
- }
9
-
10
- const getCookieJar = function(){
11
- return cookieJar
12
- }
13
-
14
- module.exports = {
15
- useCookieJar,
16
- getCookieJar
17
- }
1
+ const {CookieJar} = require('tough-cookie')
2
+
3
+ let cookieJar = null
4
+
5
+ const useCookieJar = function(){
6
+ if (!cookieJar)
7
+ cookieJar = new CookieJar()
8
+ }
9
+
10
+ const getCookieJar = function(){
11
+ return cookieJar
12
+ }
13
+
14
+ module.exports = {
15
+ useCookieJar,
16
+ getCookieJar
17
+ }