mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 05:10:05 +02:00
update dependencies
This commit is contained in:
22
app/node_modules/bluebird/js/release/async.js
generated
vendored
22
app/node_modules/bluebird/js/release/async.js
generated
vendored
@@ -126,24 +126,28 @@ if (!util.hasDevTools) {
|
||||
};
|
||||
}
|
||||
|
||||
Async.prototype._drainQueue = function(queue) {
|
||||
function _drainQueue(queue) {
|
||||
while (queue.length() > 0) {
|
||||
var fn = queue.shift();
|
||||
if (typeof fn !== "function") {
|
||||
fn._settlePromises();
|
||||
continue;
|
||||
}
|
||||
_drainQueueStep(queue);
|
||||
}
|
||||
}
|
||||
|
||||
function _drainQueueStep(queue) {
|
||||
var fn = queue.shift();
|
||||
if (typeof fn !== "function") {
|
||||
fn._settlePromises();
|
||||
} else {
|
||||
var receiver = queue.shift();
|
||||
var arg = queue.shift();
|
||||
fn.call(receiver, arg);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Async.prototype._drainQueues = function () {
|
||||
this._drainQueue(this._normalQueue);
|
||||
_drainQueue(this._normalQueue);
|
||||
this._reset();
|
||||
this._haveDrainedQueues = true;
|
||||
this._drainQueue(this._lateQueue);
|
||||
_drainQueue(this._lateQueue);
|
||||
};
|
||||
|
||||
Async.prototype._queueTick = function () {
|
||||
|
19
app/node_modules/bluebird/js/release/debuggability.js
generated
vendored
19
app/node_modules/bluebird/js/release/debuggability.js
generated
vendored
@@ -4,6 +4,7 @@ var getDomain = Promise._getDomain;
|
||||
var async = Promise._async;
|
||||
var Warning = require("./errors").Warning;
|
||||
var util = require("./util");
|
||||
var es5 = require("./es5");
|
||||
var canAttachTrace = util.canAttachTrace;
|
||||
var unhandledRejectionHandled;
|
||||
var possiblyUnhandledRejection;
|
||||
@@ -122,6 +123,7 @@ Promise.longStackTraces = function () {
|
||||
if (!config.longStackTraces && longStackTracesIsSupported()) {
|
||||
var Promise_captureStackTrace = Promise.prototype._captureStackTrace;
|
||||
var Promise_attachExtraTrace = Promise.prototype._attachExtraTrace;
|
||||
var Promise_dereferenceTrace = Promise.prototype._dereferenceTrace;
|
||||
config.longStackTraces = true;
|
||||
disableLongStackTraces = function() {
|
||||
if (async.haveItemsQueued() && !config.longStackTraces) {
|
||||
@@ -129,12 +131,14 @@ Promise.longStackTraces = function () {
|
||||
}
|
||||
Promise.prototype._captureStackTrace = Promise_captureStackTrace;
|
||||
Promise.prototype._attachExtraTrace = Promise_attachExtraTrace;
|
||||
Promise.prototype._dereferenceTrace = Promise_dereferenceTrace;
|
||||
Context.deactivateLongStackTraces();
|
||||
async.enableTrampoline();
|
||||
config.longStackTraces = false;
|
||||
};
|
||||
Promise.prototype._captureStackTrace = longStackTracesCaptureStackTrace;
|
||||
Promise.prototype._attachExtraTrace = longStackTracesAttachExtraTrace;
|
||||
Promise.prototype._dereferenceTrace = longStackTracesDereferenceTrace;
|
||||
Context.activateLongStackTraces();
|
||||
async.disableTrampolineIfNecessary();
|
||||
}
|
||||
@@ -150,10 +154,14 @@ var fireDomEvent = (function() {
|
||||
var event = new CustomEvent("CustomEvent");
|
||||
util.global.dispatchEvent(event);
|
||||
return function(name, event) {
|
||||
var domEvent = new CustomEvent(name.toLowerCase(), {
|
||||
var eventData = {
|
||||
detail: event,
|
||||
cancelable: true
|
||||
});
|
||||
};
|
||||
es5.defineProperty(
|
||||
eventData, "promise", {value: event.promise});
|
||||
es5.defineProperty(eventData, "reason", {value: event.reason});
|
||||
var domEvent = new CustomEvent(name.toLowerCase(), eventData);
|
||||
return !util.global.dispatchEvent(domEvent);
|
||||
};
|
||||
} else if (typeof Event === "function") {
|
||||
@@ -164,6 +172,8 @@ var fireDomEvent = (function() {
|
||||
cancelable: true
|
||||
});
|
||||
domEvent.detail = event;
|
||||
es5.defineProperty(domEvent, "promise", {value: event.promise});
|
||||
es5.defineProperty(domEvent, "reason", {value: event.reason});
|
||||
return !util.global.dispatchEvent(domEvent);
|
||||
};
|
||||
} else {
|
||||
@@ -312,6 +322,7 @@ Promise.prototype._attachCancellationCallback = function(onCancel) {
|
||||
};
|
||||
Promise.prototype._captureStackTrace = function () {};
|
||||
Promise.prototype._attachExtraTrace = function () {};
|
||||
Promise.prototype._dereferenceTrace = function () {};
|
||||
Promise.prototype._clearCancellationData = function() {};
|
||||
Promise.prototype._propagateFrom = function (parent, flags) {
|
||||
;
|
||||
@@ -417,6 +428,10 @@ function longStackTracesAttachExtraTrace(error, ignoreSelf) {
|
||||
}
|
||||
}
|
||||
|
||||
function longStackTracesDereferenceTrace() {
|
||||
this._trace = undefined;
|
||||
}
|
||||
|
||||
function checkForgottenReturns(returnValue, promiseCreated, name, promise,
|
||||
parent) {
|
||||
if (returnValue === undefined && promiseCreated !== null &&
|
||||
|
3
app/node_modules/bluebird/js/release/promise.js
generated
vendored
3
app/node_modules/bluebird/js/release/promise.js
generated
vendored
@@ -639,6 +639,7 @@ Promise.prototype._fulfill = function (value) {
|
||||
} else {
|
||||
async.settlePromises(this);
|
||||
}
|
||||
this._dereferenceTrace();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -733,7 +734,7 @@ require("./synchronous_inspection")(Promise);
|
||||
require("./join")(
|
||||
Promise, PromiseArray, tryConvertToPromise, INTERNAL, async, getDomain);
|
||||
Promise.Promise = Promise;
|
||||
Promise.version = "3.5.1";
|
||||
Promise.version = "3.5.2";
|
||||
require('./map.js')(Promise, PromiseArray, apiRejection, tryConvertToPromise, INTERNAL, debug);
|
||||
require('./call_get.js')(Promise);
|
||||
require('./using.js')(Promise, apiRejection, tryConvertToPromise, createContext, INTERNAL, debug);
|
||||
|
8
app/node_modules/bluebird/js/release/util.js
generated
vendored
8
app/node_modules/bluebird/js/release/util.js
generated
vendored
@@ -195,8 +195,12 @@ function toFastProperties(obj) {
|
||||
/*jshint -W027,-W055,-W031*/
|
||||
function FakeConstructor() {}
|
||||
FakeConstructor.prototype = obj;
|
||||
var l = 8;
|
||||
while (l--) new FakeConstructor();
|
||||
var receiver = new FakeConstructor();
|
||||
function ic() {
|
||||
return typeof receiver.foo;
|
||||
}
|
||||
ic();
|
||||
ic();
|
||||
return obj;
|
||||
eval(obj);
|
||||
}
|
||||
|
Reference in New Issue
Block a user