/home/techb158/balavpn.abdallabala.com/.next/standalone/node_modules/next/dist/shared/lib
NameSizeModeActions
errors/-0777rm
i18n/-0777rm
isomorphic/-0777rm
lazy-dynamic/-0777rm
page-path/-0777rm
router/-0777rm
segment-cache/-0777rm
turbopack/-0777rm
utils/-0777rm
amp-context.shared-runtime.js5920666editdlrm
amp-mode.js4190666editdlrm
app-router-context.shared-runtime.js16860666editdlrm
bloom-filter.js29650666editdlrm
canary-only.js12820666editdlrm
constants.js149340666editdlrm
deep-freeze.js8680666editdlrm
dset.js19140666editdlrm
encode-uri-path.js3620666editdlrm
error-source.js8580666editdlrm
escape-regexp.js6940666editdlrm
format-webpack-messages.js84980666editdlrm
get-hostname.js6790666editdlrm
get-rspack.js25850666editdlrm
get-webpack-bundler.js6320666editdlrm
hash.js13260666editdlrm
head-manager-context.shared-runtime.js6160666editdlrm
head.js70060666editdlrm
hooks-client-context.shared-runtime.js11080666editdlrm
html-context.shared-runtime.js11490666editdlrm
htmlescape.js14170666editdlrm
image-blur-svg.js14950666editdlrm
image-config-context.shared-runtime.js6930666editdlrm
image-config.js14280666editdlrm
invariant-error.js5010666editdlrm
is-internal.js12980666editdlrm
is-plain-object.js11800666editdlrm
is-thenable.js5370666editdlrm
loadable-context.shared-runtime.js6130666editdlrm
loadable.shared-runtime.js84580666editdlrm
magic-identifier.js36540666editdlrm
match-local-pattern.js13010666editdlrm
match-remote-pattern.js19310666editdlrm
mitt.js22470666editdlrm
modern-browserslist-target.js6520666editdlrm
no-fallback-error.external.js4080666editdlrm
normalized-asset-prefix.js9610666editdlrm
promise-with-resolvers.js6060666editdlrm
router-context.shared-runtime.js5870666editdlrm
runtime-config.external.js7220666editdlrm
segment.js15620666editdlrm
server-inserted-html.shared-runtime.js11710666editdlrm
server-reference-info.js16010666editdlrm
side-effect.js27490666editdlrm
utils.js62890666editdlrm
zod.js33590666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/.next/standalone/node_modules/next/dist/shared/lib/zod.js (3359B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { formatZodError: null, normalizeZodErrors: null, reportZodError: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { formatZodError: function() { return formatZodError; }, normalizeZodErrors: function() { return normalizeZodErrors; }, reportZodError: function() { return reportZodError; } }); const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); const _zod = require("next/dist/compiled/zod"); const _zodvalidationerror = require("next/dist/compiled/zod-validation-error"); const _log = /*#__PURE__*/ _interop_require_wildcard._(require("../../build/output/log")); function processZodErrorMessage(issue) { let message = issue.message; let path; if (issue.path.length > 0) { if (issue.path.length === 1) { const identifier = issue.path[0]; if (typeof identifier === 'number') { // The first identifier inside path is a number path = "index " + identifier; } else { path = '"' + identifier + '"'; } } else { // joined path to be shown in the error message path = '"' + issue.path.reduce((acc, cur)=>{ if (typeof cur === 'number') { // array index return acc + "[" + cur + "]"; } if (cur.includes('"')) { // escape quotes return acc + '["' + cur.replaceAll('"', '\\"') + '"]'; } // dot notation const separator = acc.length === 0 ? '' : '.'; return acc + separator + cur; }, '') + '"'; } } else { path = ''; } if (issue.code === 'invalid_type' && issue.received === _zod.ZodParsedType.undefined) { // Missing key in object. return path + " is missing, expected " + issue.expected; } if (issue.code === 'invalid_enum_value') { // Remove "Invalid enum value" prefix from zod default error message return "Expected " + _zod.util.joinValues(issue.options) + ", received '" + issue.received + "' at " + path; } return message + (path ? " at " + path : ''); } function normalizeZodErrors(error) { return error.issues.flatMap((issue)=>{ const issues = [ { issue, message: processZodErrorMessage(issue) } ]; if ('unionErrors' in issue) { for (const unionError of issue.unionErrors){ issues.push(...normalizeZodErrors(unionError)); } } return issues; }); } function formatZodError(prefix, error) { return Object.defineProperty(new Error((0, _zodvalidationerror.fromZodError)(error, { prefix: prefix }).toString()), "__NEXT_ERROR_CODE", { value: "E394", enumerable: false, configurable: true }); } function reportZodError(prefix, error) { _log.error(formatZodError(prefix, error).message); } //# sourceMappingURL=zod.js.map