|
Server IP : 161.35.85.9 / Your IP : 216.73.217.134 Web Server : nginx/1.30.1 System : Linux cheapdeb-ams3 7.0.9+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.0.9-1 (2026-05-22) x86_64 User : root ( 0) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/python3/../nodejs/err-code/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
(function(modules, cache, entry) {
window.err-code = req(entry);
function req(name) {
if (cache[name]) return cache[name].exports;
var m = cache[name] = {exports: {}};
modules[name][0].call(m.exports, modRequire, m, m.exports, window);
return m.exports;
function modRequire(alias) {
var id = modules[name][1][alias];
if (!id) throw new Error("Cannot find module " + alias);
return req(id);
}
}
})({0: [function(require,module,exports,global){
'use strict';
function assign(obj, props) {
for (const key in props) {
Object.defineProperty(obj, key, {
value: props[key],
enumerable: true,
configurable: true,
});
}
return obj;
}
function createError(err, code, props) {
if (!err || typeof err === 'string') {
throw new TypeError('Please pass an Error to err-code');
}
if (!props) {
props = {};
}
if (typeof code === 'object') {
props = code;
code = undefined;
}
if (code != null) {
props.code = code;
}
try {
return assign(err, props);
} catch (_) {
props.message = err.message;
props.stack = err.stack;
const ErrClass = function () {};
ErrClass.prototype = Object.create(Object.getPrototypeOf(err));
return assign(new ErrClass(), props);
}
}
module.exports = createError;
}, {}],}, {}, 0);