Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/@request/api/lib/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
module.exports = (config, define) => {
var wrap = {
method: function (key) {
return (value) => {
var self
if (!this._options) {
var api = init()
api._options = {}
self = api
}
else {
self = this
}
self._options.method = key.toUpperCase()
self._options.url = value || ''
return self
}
},
option: function (key) {
return (value) => {
var self
if (!this._options) {
var api = init()
api._options = {}
self = api
}
else {
self = this
}
self._options[key] = value
return self
}
},
custom: function (key) {
return function () {
var self
if (!this._options) {
var api = init()
api._options = {}
self = api
}
else {
self = this
}
var args = Array.prototype.slice.call(arguments)
args.splice(0, 0, self._options)
var result = define[key].apply(null, args)
return result || self
}
}
}
function init () {
var api = {}
for (var type in config) {
for (var method in config[type]) {
api[method] = wrap[type].call(api, method)
config[type][method].forEach((alias) => {
api[alias] = wrap[type].call(api, method)
})
}
}
return api
}
return init()
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.004 ]-- |