Update dependency pako to v3 (#34080)
* Update dependency pako to v3 * Handle breaking changes --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
co-authored by
renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Michael Telatynski
parent
27d97d3661
commit
392fcf5eea
@@ -89,7 +89,7 @@
|
||||
"mime": "^4.0.4",
|
||||
"oidc-client-ts": "^3.0.1",
|
||||
"opus-recorder": "^8.0.3",
|
||||
"pako": "^2.0.3",
|
||||
"pako": "^3.0.0",
|
||||
"png-chunks-extract": "^1.0.0",
|
||||
"posthog-js": "1.394.0",
|
||||
"qrcode": "1.5.4",
|
||||
@@ -154,7 +154,6 @@
|
||||
"@types/lodash": "^4.14.168",
|
||||
"@types/modernizr": "^3.5.3",
|
||||
"@types/node": "catalog:",
|
||||
"@types/pako": "^2.0.0",
|
||||
"@types/postcss-import": "^14.0.3",
|
||||
"@types/qrcode": "^1.3.5",
|
||||
"@types/react": "catalog:",
|
||||
|
||||
@@ -320,8 +320,8 @@ async function collectLogs(
|
||||
let buf = new TextEncoder().encode(entry.lines);
|
||||
|
||||
// compress
|
||||
if (gzipLogs) {
|
||||
buf = pako!.gzip(buf);
|
||||
if (pako) {
|
||||
buf = pako.gzip(buf).slice();
|
||||
}
|
||||
|
||||
body.append("compressed-log", new Blob([buf]), entry.id);
|
||||
|
||||
Reference in New Issue
Block a user