mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 12:11:11 +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 */
|
/* 53 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */(function(Buffer) {function arrayBufferToBuffer(ab) {
|
/* WEBPACK VAR INJECTION */(function(Buffer) {function str2ab(str) {
|
||||||
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) {
|
|
||||||
const buffer = new ArrayBuffer(str.length * 2);
|
const buffer = new ArrayBuffer(str.length * 2);
|
||||||
const view = new Uint16Array(buffer);
|
const view = new Uint16Array(buffer);
|
||||||
for (var i = 0, strLen = str.length; i < strLen; i++) view[i] = str.charCodeAt(i);
|
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) {
|
module.exports = function convertArrayBuffer(x) {
|
||||||
if (typeof x === 'string') x = str2ab(x);
|
if (typeof x === 'string') x = str2ab(x);
|
||||||
return arrayBufferToBuffer(x);
|
return Buffer.from(x);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20).Buffer))
|
/* 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