/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/method.js (1768B)
"use strict"; module.exports = function(Promise, INTERNAL, tryConvertToPromise, apiRejection, debug) { var util = require("./util"); var tryCatch = util.tryCatch; Promise.method = function (fn) { if (typeof fn !== "function") { throw new Promise.TypeError("expecting a function but got " + util.classString(fn)); } return function () { var ret = new Promise(INTERNAL); ret._captureStackTrace(); ret._pushContext(); var value = tryCatch(fn).apply(this, arguments); var promiseCreated = ret._popContext(); debug.checkForgottenReturns( value, promiseCreated, "Promise.method", ret); ret._resolveFromSyncValue(value); return ret; }; }; Promise.attempt = Promise["try"] = function (fn) { if (typeof fn !== "function") { return apiRejection("expecting a function but got " + util.classString(fn)); } var ret = new Promise(INTERNAL); ret._captureStackTrace(); ret._pushContext(); var value; if (arguments.length > 1) { debug.deprecated("calling Promise.try with more than 1 argument"); var arg = arguments[1]; var ctx = arguments[2]; value = util.isArray(arg) ? tryCatch(fn).apply(ctx, arg) : tryCatch(fn).call(ctx, arg); } else { value = tryCatch(fn)(); } var promiseCreated = ret._popContext(); debug.checkForgottenReturns( value, promiseCreated, "Promise.try", ret); ret._resolveFromSyncValue(value); return ret; }; Promise.prototype._resolveFromSyncValue = function (value) { if (value === util.errorObj) { this._rejectCallback(value.e, false); } else { this._resolveCallback(value, true); } }; };