@warren-bank/hls-proxy 2.0.2 → 2.0.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/hls-proxy/utils.js +3 -1
- package/package.json +1 -1
package/hls-proxy/utils.js
CHANGED
|
@@ -24,7 +24,7 @@ const add_CORS_headers = function(res) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
const debug = function() {
|
|
27
|
-
|
|
27
|
+
let args = [...arguments]
|
|
28
28
|
const params = args.shift()
|
|
29
29
|
const verbosity = args.shift()
|
|
30
30
|
const append_LF = true
|
|
@@ -34,6 +34,8 @@ const debug = function() {
|
|
|
34
34
|
if (append_LF) args.push("\n")
|
|
35
35
|
|
|
36
36
|
if (debug_level >= verbosity) {
|
|
37
|
+
args = args.map(arg => (typeof arg === 'string') ? arg : JSON.stringify(arg, null, 2))
|
|
38
|
+
|
|
37
39
|
console.log.apply(console.log, args)
|
|
38
40
|
}
|
|
39
41
|
}
|
package/package.json
CHANGED