/var/www/greso.tech/server/nsm/node_modules/bluebird/js/release
NameSizeModeActions
any.js4210644editdlrm
assert.js16530644editdlrm
async.js28760644editdlrm
bind.js19700644editdlrm
bluebird.js2910644editdlrm
call_get.js43550644editdlrm
cancel.js37070644editdlrm
catch_filter.js14260644editdlrm
context.js23820644editdlrm
debuggability.js321700644editdlrm
direct_resolve.js13950644editdlrm
each.js7890644editdlrm
errors.js37170644editdlrm
es5.js19780644editdlrm
filter.js3140644editdlrm
finally.js46130644editdlrm
generators.js77610644editdlrm
join.js81360644editdlrm
map.js56020644editdlrm
method.js17680644editdlrm
nodeback.js15600644editdlrm
nodeify.js16470644editdlrm
promise.js269860644editdlrm
promise_array.js52520644editdlrm
promisify.js121820644editdlrm
props.js31170644editdlrm
queue.js18730644editdlrm
race.js12500644editdlrm
reduce.js53720644editdlrm
schedule.js21480644editdlrm
settle.js13660644editdlrm
some.js39590644editdlrm
synchronous_inspection.js28130644editdlrm
thenables.js21310644editdlrm
timers.js23950644editdlrm
using.js75250644editdlrm
util.js113790644editdlrm
Edit: /var/www/greso.tech/server/nsm/node_modules/bluebird/js/release/queue.js (1873B)
"use strict"; function arrayMove(src, srcIndex, dst, dstIndex, len) { for (var j = 0; j < len; ++j) { dst[j + dstIndex] = src[j + srcIndex]; src[j + srcIndex] = void 0; } } function Queue(capacity) { this._capacity = capacity; this._length = 0; this._front = 0; } Queue.prototype._willBeOverCapacity = function (size) { return this._capacity < size; }; Queue.prototype._pushOne = function (arg) { var length = this.length(); this._checkCapacity(length + 1); var i = (this._front + length) & (this._capacity - 1); this[i] = arg; this._length = length + 1; }; Queue.prototype.push = function (fn, receiver, arg) { var length = this.length() + 3; if (this._willBeOverCapacity(length)) { this._pushOne(fn); this._pushOne(receiver); this._pushOne(arg); return; } var j = this._front + length - 3; this._checkCapacity(length); var wrapMask = this._capacity - 1; this[(j + 0) & wrapMask] = fn; this[(j + 1) & wrapMask] = receiver; this[(j + 2) & wrapMask] = arg; this._length = length; }; Queue.prototype.shift = function () { var front = this._front, ret = this[front]; this[front] = undefined; this._front = (front + 1) & (this._capacity - 1); this._length--; return ret; }; Queue.prototype.length = function () { return this._length; }; Queue.prototype._checkCapacity = function (size) { if (this._capacity < size) { this._resizeTo(this._capacity << 1); } }; Queue.prototype._resizeTo = function (capacity) { var oldCapacity = this._capacity; this._capacity = capacity; var front = this._front; var length = this._length; var moveItemsCount = (front + length) & (oldCapacity - 1); arrayMove(this, 0, this, oldCapacity, moveItemsCount); }; module.exports = Queue;