Update remaining NPM dependencies
DISABLE_THIRD_PARTY_CHECK=NPM fix
R=jacktfranklin@chromium.org
Bug: none
Change-Id: I41baa3294f88b7e4463fdc580c050932c5abe40e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3372932
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
diff --git a/node_modules/buffer/AUTHORS.md b/node_modules/buffer/AUTHORS.md
index 396b45f..22eb171 100644
--- a/node_modules/buffer/AUTHORS.md
+++ b/node_modules/buffer/AUTHORS.md
@@ -57,6 +57,14 @@
- Sergey Ukustov (sergey.ukustov@machinomy.com)
- Fei Liu (liu.feiwood@gmail.com)
- Blaine Bublitz (blaine.bublitz@gmail.com)
+- clement (clement@seald.io)
+- Koushik Dutta (koushd@gmail.com)
+- Jordan Harband (ljharb@gmail.com)
- Niklas Mischkulnig (mischnic@users.noreply.github.com)
+- Nikolai Vavilov (vvnicholas@gmail.com)
+- Fedor Nezhivoi (gyzerok@users.noreply.github.com)
+- Peter Newman (peternewman@users.noreply.github.com)
+- mathmakgakpak (44949126+mathmakgakpak@users.noreply.github.com)
+- jkkang (jkkang@smartauth.kr)
#### Generated by bin/update-authors.sh.
diff --git a/node_modules/buffer/README.md b/node_modules/buffer/README.md
index 2aab37d..9a23d7c 100644
--- a/node_modules/buffer/README.md
+++ b/node_modules/buffer/README.md
@@ -34,12 +34,6 @@
- Does not modify any browser prototypes or put anything on `window`
- Comprehensive test suite (including all buffer tests from node.js core)
-## `buffer` for enterprise
-
-Available as part of the Tidelift Subscription.
-
-The maintainers of `buffer` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-buffer?utm_source=npm-buffer&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
-
## install
To use this module directly (without browserify), install it:
diff --git a/node_modules/buffer/index.d.ts b/node_modules/buffer/index.d.ts
index 0227c9c..5d1a804 100644
--- a/node_modules/buffer/index.d.ts
+++ b/node_modules/buffer/index.d.ts
@@ -166,7 +166,7 @@
* @param size count of octets to allocate.
* @param fill if specified, buffer will be initialized by calling buf.fill(fill).
* If parameter is omitted, buffer will be filled with zeros.
- * @param encoding encoding used for call to buf.fill while initalizing
+ * @param encoding encoding used for call to buf.fill while initializing
*/
static alloc(size: number, fill?: string | Buffer | number, encoding?: string): Buffer;
/**
diff --git a/node_modules/buffer/index.js b/node_modules/buffer/index.js
index e87bfaa..609cf31 100644
--- a/node_modules/buffer/index.js
+++ b/node_modules/buffer/index.js
@@ -11,8 +11,8 @@
var base64 = require('base64-js')
var ieee754 = require('ieee754')
var customInspectSymbol =
- (typeof Symbol === 'function' && typeof Symbol.for === 'function')
- ? Symbol.for('nodejs.util.inspect.custom')
+ (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation
+ ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation
: null
exports.Buffer = Buffer
@@ -116,7 +116,7 @@
}
if (ArrayBuffer.isView(value)) {
- return fromArrayLike(value)
+ return fromArrayView(value)
}
if (value == null) {
@@ -197,7 +197,7 @@
if (fill !== undefined) {
// Only pay attention to encoding if it's a string. This
// prevents accidentally sending in a number that would
- // be interpretted as a start offset.
+ // be interpreted as a start offset.
return typeof encoding === 'string'
? createBuffer(size).fill(fill, encoding)
: createBuffer(size).fill(fill)
@@ -264,6 +264,14 @@
return buf
}
+function fromArrayView (arrayView) {
+ if (isInstance(arrayView, Uint8Array)) {
+ var copy = new Uint8Array(arrayView)
+ return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)
+ }
+ return fromArrayLike(arrayView)
+}
+
function fromArrayBuffer (array, byteOffset, length) {
if (byteOffset < 0 || array.byteLength < byteOffset) {
throw new RangeError('"offset" is outside of buffer bounds')
@@ -403,12 +411,20 @@
for (i = 0; i < list.length; ++i) {
var buf = list[i]
if (isInstance(buf, Uint8Array)) {
- buf = Buffer.from(buf)
- }
- if (!Buffer.isBuffer(buf)) {
+ if (pos + buf.length > buffer.length) {
+ Buffer.from(buf).copy(buffer, pos)
+ } else {
+ Uint8Array.prototype.set.call(
+ buffer,
+ buf,
+ pos
+ )
+ }
+ } else if (!Buffer.isBuffer(buf)) {
throw new TypeError('"list" argument must be an Array of Buffers')
+ } else {
+ buf.copy(buffer, pos)
}
- buf.copy(buffer, pos)
pos += buf.length
}
return buffer
@@ -490,7 +506,7 @@
return ''
}
- // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
+ // Force coercion to uint32. This will also coerce falsey/NaN values to 0.
end >>>= 0
start >>>= 0
@@ -841,10 +857,6 @@
return blitBuffer(asciiToBytes(string), buf, offset, length)
}
-function latin1Write (buf, string, offset, length) {
- return asciiWrite(buf, string, offset, length)
-}
-
function base64Write (buf, string, offset, length) {
return blitBuffer(base64ToBytes(string), buf, offset, length)
}
@@ -900,11 +912,9 @@
return utf8Write(this, string, offset, length)
case 'ascii':
- return asciiWrite(this, string, offset, length)
-
case 'latin1':
case 'binary':
- return latin1Write(this, string, offset, length)
+ return asciiWrite(this, string, offset, length)
case 'base64':
// Warning: maxLength not taken into account in base64Write
@@ -947,10 +957,13 @@
while (i < end) {
var firstByte = buf[i]
var codePoint = null
- var bytesPerSequence = (firstByte > 0xEF) ? 4
- : (firstByte > 0xDF) ? 3
- : (firstByte > 0xBF) ? 2
- : 1
+ var bytesPerSequence = (firstByte > 0xEF)
+ ? 4
+ : (firstByte > 0xDF)
+ ? 3
+ : (firstByte > 0xBF)
+ ? 2
+ : 1
if (i + bytesPerSequence <= end) {
var secondByte, thirdByte, fourthByte, tempCodePoint
@@ -1071,7 +1084,8 @@
function utf16leSlice (buf, start, end) {
var bytes = buf.slice(start, end)
var res = ''
- for (var i = 0; i < bytes.length; i += 2) {
+ // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)
+ for (var i = 0; i < bytes.length - 1; i += 2) {
res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))
}
return res
@@ -1113,6 +1127,7 @@
if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
}
+Buffer.prototype.readUintLE =
Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
offset = offset >>> 0
byteLength = byteLength >>> 0
@@ -1128,6 +1143,7 @@
return val
}
+Buffer.prototype.readUintBE =
Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
offset = offset >>> 0
byteLength = byteLength >>> 0
@@ -1144,24 +1160,28 @@
return val
}
+Buffer.prototype.readUint8 =
Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
offset = offset >>> 0
if (!noAssert) checkOffset(offset, 1, this.length)
return this[offset]
}
+Buffer.prototype.readUint16LE =
Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
offset = offset >>> 0
if (!noAssert) checkOffset(offset, 2, this.length)
return this[offset] | (this[offset + 1] << 8)
}
+Buffer.prototype.readUint16BE =
Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
offset = offset >>> 0
if (!noAssert) checkOffset(offset, 2, this.length)
return (this[offset] << 8) | this[offset + 1]
}
+Buffer.prototype.readUint32LE =
Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
offset = offset >>> 0
if (!noAssert) checkOffset(offset, 4, this.length)
@@ -1172,6 +1192,7 @@
(this[offset + 3] * 0x1000000)
}
+Buffer.prototype.readUint32BE =
Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
offset = offset >>> 0
if (!noAssert) checkOffset(offset, 4, this.length)
@@ -1289,6 +1310,7 @@
if (offset + ext > buf.length) throw new RangeError('Index out of range')
}
+Buffer.prototype.writeUintLE =
Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
value = +value
offset = offset >>> 0
@@ -1308,6 +1330,7 @@
return offset + byteLength
}
+Buffer.prototype.writeUintBE =
Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
value = +value
offset = offset >>> 0
@@ -1327,6 +1350,7 @@
return offset + byteLength
}
+Buffer.prototype.writeUint8 =
Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
value = +value
offset = offset >>> 0
@@ -1335,6 +1359,7 @@
return offset + 1
}
+Buffer.prototype.writeUint16LE =
Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
value = +value
offset = offset >>> 0
@@ -1344,6 +1369,7 @@
return offset + 2
}
+Buffer.prototype.writeUint16BE =
Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
value = +value
offset = offset >>> 0
@@ -1353,6 +1379,7 @@
return offset + 2
}
+Buffer.prototype.writeUint32LE =
Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
value = +value
offset = offset >>> 0
@@ -1364,6 +1391,7 @@
return offset + 4
}
+Buffer.prototype.writeUint32BE =
Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
value = +value
offset = offset >>> 0
@@ -1543,11 +1571,6 @@
if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {
// Use built-in when available, missing from IE11
this.copyWithin(targetStart, start, end)
- } else if (this === target && start < targetStart && targetStart < end) {
- // descending copy from end
- for (var i = len - 1; i >= 0; --i) {
- target[i + targetStart] = this[i + start]
- }
} else {
Uint8Array.prototype.set.call(
target,
diff --git a/node_modules/buffer/package.json b/node_modules/buffer/package.json
index 8fecd36..3b1b498 100644
--- a/node_modules/buffer/package.json
+++ b/node_modules/buffer/package.json
@@ -1,11 +1,11 @@
{
"name": "buffer",
"description": "Node.js Buffer API, for the browser",
- "version": "5.6.0",
+ "version": "5.7.1",
"author": {
"name": "Feross Aboukhadijeh",
"email": "feross@feross.org",
- "url": "http://feross.org"
+ "url": "https://feross.org"
},
"bugs": {
"url": "https://github.com/feross/buffer/issues"
@@ -15,22 +15,22 @@
"James Halliday <mail@substack.net>"
],
"dependencies": {
- "base64-js": "^1.0.2",
- "ieee754": "^1.1.4"
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
},
"devDependencies": {
"airtap": "^3.0.0",
- "benchmark": "^2.0.0",
- "browserify": "^16.1.0",
+ "benchmark": "^2.1.4",
+ "browserify": "^17.0.0",
"concat-stream": "^2.0.0",
- "hyperquest": "^2.0.0",
- "is-buffer": "^2.0.0",
- "is-nan": "^1.0.1",
- "split": "^1.0.0",
+ "hyperquest": "^2.1.3",
+ "is-buffer": "^2.0.4",
+ "is-nan": "^1.3.0",
+ "split": "^1.0.1",
"standard": "*",
- "tape": "^4.0.0",
- "through2": "^3.0.1",
- "uglify-js": "^3.4.5"
+ "tape": "^5.0.1",
+ "through2": "^4.0.2",
+ "uglify-js": "^3.11.3"
},
"homepage": "https://github.com/feross/buffer",
"jspm": {
@@ -78,5 +78,19 @@
"globals": [
"SharedArrayBuffer"
]
- }
+ },
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ]
}