Update puppeteer to v6.0.0

DISABLE_THIRD_PARTY_CHECK=Update node deps

Bug: None
Change-Id: I775f172f4def88e816d3cfa6881dfedd20f90630
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2667202
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
This commit is contained in:
Jan Scheffler
2021-02-02 14:36:39 +00:00
committed by Commit Bot
parent 0e84cd982c
commit a402513aba
317 changed files with 4443 additions and 1327 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ var Extract = function (opts) {
var offset = self._offset
var header
try {
header = self._header = headers.decode(b.slice(0, 512), opts.filenameEncoding)
header = self._header = headers.decode(b.slice(0, 512), opts.filenameEncoding, opts.allowUnknownFormat)
} catch (err) {
self.emit('error', err)
}
+4 -2
View File
@@ -237,7 +237,7 @@ exports.encode = function (opts) {
return buf
}
exports.decode = function (buf, filenameEncoding) {
exports.decode = function (buf, filenameEncoding, allowUnknownFormat) {
var typeflag = buf[156] === 0 ? 0 : buf[156] - ZERO_OFFSET
var name = decodeStr(buf, 0, 100, filenameEncoding)
@@ -270,7 +270,9 @@ exports.decode = function (buf, filenameEncoding) {
// 'gnu'/'oldgnu' format. Similar to ustar, but has support for incremental and
// multi-volume tarballs.
} else {
throw new Error('Invalid tar header: unknown format.')
if (!allowUnknownFormat) {
throw new Error('Invalid tar header: unknown format.')
}
}
// to support old tar versions that use trailing / to indicate dirs
+1 -1
View File
@@ -54,5 +54,5 @@
"test": "standard && tape test/extract.js test/pack.js",
"test-all": "standard && tape test/*.js"
},
"version": "2.1.4"
"version": "2.2.0"
}