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) /usr/local/lib/node_modules/homebridge-camera-ui/node_modules/@jsdevtools/ono/cjs/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addInspectMethod = exports.format = void 0;
const util = require("util");
const to_json_1 = require("./to-json");
// The `inspect()` method is actually a Symbol, not a string key.
// https://nodejs.org/api/util.html#util_util_inspect_custom
const inspectMethod = util.inspect.custom || Symbol.for("nodejs.util.inspect.custom");
/**
* Ono supports Node's `util.format()` formatting for error messages.
*
* @see https://nodejs.org/api/util.html#util_util_format_format_args
*/
exports.format = util.format;
/**
* Adds an `inspect()` method to support Node's `util.inspect()` function.
*
* @see https://nodejs.org/api/util.html#util_util_inspect_custom
*/
function addInspectMethod(newError) {
// @ts-expect-error - TypeScript doesn't support symbol indexers
newError[inspectMethod] = inspect;
}
exports.addInspectMethod = addInspectMethod;
/**
* Returns a representation of the error for Node's `util.inspect()` method.
*
* @see https://nodejs.org/api/util.html#util_custom_inspection_functions_on_objects
*/
function inspect() {
// HACK: We have to cast the objects to `any` so we can use symbol indexers.
// see https://github.com/Microsoft/TypeScript/issues/1863
let pojo = {};
let error = this;
for (let key of to_json_1.getDeepKeys(error)) {
let value = error[key];
pojo[key] = value;
}
// Don't include the `inspect()` method on the output object,
// otherwise it will cause `util.inspect()` to go into an infinite loop
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
delete pojo[inspectMethod];
return pojo;
}
//# sourceMappingURL=isomorphic.node.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0048 ]-- |