mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 07:02:00 +00:00
Webpack build: 2c26d79f50
This commit is contained in:
parent
ff7edd40c2
commit
6688942253
2 changed files with 5 additions and 12 deletions
|
|
@ -11096,14 +11096,7 @@ module.exports = RequestHandler;
|
|||
/* 53 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* WEBPACK VAR INJECTION */(function(Buffer) {function arrayBufferToBuffer(ab) {
|
||||
const buffer = new Buffer(ab.byteLength);
|
||||
const view = new Uint8Array(ab);
|
||||
for (var i = 0; i < buffer.length; ++i) buffer[i] = view[i];
|
||||
return buffer;
|
||||
}
|
||||
|
||||
function str2ab(str) {
|
||||
/* WEBPACK VAR INJECTION */(function(Buffer) {function str2ab(str) {
|
||||
const buffer = new ArrayBuffer(str.length * 2);
|
||||
const view = new Uint16Array(buffer);
|
||||
for (var i = 0, strLen = str.length; i < strLen; i++) view[i] = str.charCodeAt(i);
|
||||
|
|
@ -11112,7 +11105,7 @@ function str2ab(str) {
|
|||
|
||||
module.exports = function convertArrayBuffer(x) {
|
||||
if (typeof x === 'string') x = str2ab(x);
|
||||
return arrayBufferToBuffer(x);
|
||||
return Buffer.from(x);
|
||||
};
|
||||
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20).Buffer))
|
||||
|
|
|
|||
6
discord.master.min.js
vendored
6
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue