Server IP : 162.213.251.212 / Your IP : 13.58.2.42 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/allssztx/needapair.com/node_modules/pako/lib/utils/ |
Upload File : |
'use strict'; const _has = (obj, key) => { return Object.prototype.hasOwnProperty.call(obj, key); }; module.exports.assign = function (obj /*from1, from2, from3, ...*/) { const sources = Array.prototype.slice.call(arguments, 1); while (sources.length) { const source = sources.shift(); if (!source) { continue; } if (typeof source !== 'object') { throw new TypeError(source + 'must be non-object'); } for (const p in source) { if (_has(source, p)) { obj[p] = source[p]; } } } return obj; }; // Join array of chunks to single array. module.exports.flattenChunks = (chunks) => { // calculate data length let len = 0; for (let i = 0, l = chunks.length; i < l; i++) { len += chunks[i].length; } // join chunks const result = new Uint8Array(len); for (let i = 0, pos = 0, l = chunks.length; i < l; i++) { let chunk = chunks[i]; result.set(chunk, pos); pos += chunk.length; } return result; };