/opt/canhelp/node_modules/next/dist/next-devtools/shared
NameSizeModeActions
console-error.d.ts3440644editdlrm
console-error.js16060644editdlrm
console-error.js.map16670644editdlrm
deepmerge.d.ts660644editdlrm
deepmerge.js13710644editdlrm
deepmerge.js.map16640644editdlrm
devtools-config-schema.d.ts1750644editdlrm
devtools-config-schema.js14190644editdlrm
devtools-config-schema.js.map17630644editdlrm
forward-logs-shared.d.ts13600644editdlrm
forward-logs-shared.js20820644editdlrm
forward-logs-shared.js.map38460644editdlrm
hydration-error.d.ts1000644editdlrm
hydration-error.js4490644editdlrm
hydration-error.js.map670644editdlrm
react-18-hydration-error.d.ts3110644editdlrm
react-18-hydration-error.js30160644editdlrm
react-18-hydration-error.js.map34400644editdlrm
react-19-hydration-error.d.ts5030644editdlrm
react-19-hydration-error.js39730644editdlrm
react-19-hydration-error.js.map47100644editdlrm
stack-frame.d.ts8250644editdlrm
stack-frame.js57380644editdlrm
stack-frame.js.map84070644editdlrm
types.d.ts740644editdlrm
types.js4390644editdlrm
types.js.map670644editdlrm
version-staleness.d.ts2290644editdlrm
version-staleness.js21900644editdlrm
version-staleness.js.map23190644editdlrm
webpack-module-path.d.ts4180644editdlrm
webpack-module-path.js13900644editdlrm
webpack-module-path.js.map14190644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/next-devtools/shared/react-18-hydration-error.js.map (3440B)
{"version":3,"sources":["../../../src/next-devtools/shared/react-18-hydration-error.ts"],"sourcesContent":["import isError from '../../lib/is-error'\n\nexport function isHydrationError(error: unknown): boolean {\n return (\n isError(error) &&\n (error.message ===\n 'Hydration failed because the initial UI does not match what was rendered on the server.' ||\n error.message === 'Text content does not match server-rendered HTML.')\n )\n}\n\nexport function isHydrationWarning(message: unknown): message is string {\n return (\n isHtmlTagsWarning(message) ||\n isTextInTagsMismatchWarning(message) ||\n isTextWarning(message)\n )\n}\n\ntype NullableText = string | null | undefined\n\n// https://github.com/facebook/react/blob/main/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js used as a reference\nconst htmlTagsWarnings = new Set([\n 'Warning: Expected server HTML to contain a matching <%s> in <%s>.%s',\n 'Warning: Did not expect server HTML to contain a <%s> in <%s>.%s',\n])\nconst textAndTagsMismatchWarnings = new Set([\n 'Warning: Expected server HTML to contain a matching text node for \"%s\" in <%s>.%s',\n 'Warning: Did not expect server HTML to contain the text node \"%s\" in <%s>.%s',\n])\nconst textWarnings = new Set([\n 'Warning: Text content did not match. Server: \"%s\" Client: \"%s\"%s',\n])\n\nexport const getHydrationWarningType = (\n message: NullableText\n): 'tag' | 'text' | 'text-in-tag' => {\n if (typeof message !== 'string') {\n // TODO: Doesn't make sense to treat no message as a hydration error message.\n // We should bail out somewhere earlier.\n return 'text'\n }\n\n const normalizedMessage = message.startsWith('Warning: ')\n ? message\n : `Warning: ${message}`\n\n if (isHtmlTagsWarning(normalizedMessage)) return 'tag'\n if (isTextInTagsMismatchWarning(normalizedMessage)) return 'text-in-tag'\n\n return 'text'\n}\n\nconst isHtmlTagsWarning = (message: unknown) =>\n typeof message === 'string' && htmlTagsWarnings.has(message)\n\nconst isTextInTagsMismatchWarning = (msg: unknown) =>\n typeof msg === 'string' && textAndTagsMismatchWarnings.has(msg)\n\nconst isTextWarning = (msg: unknown) =>\n typeof msg === 'string' && textWarnings.has(msg)\n"],"names":["getHydrationWarningType","isHydrationError","isHydrationWarning","error","isError","message","isHtmlTagsWarning","isTextInTagsMismatchWarning","isTextWarning","htmlTagsWarnings","Set","textAndTagsMismatchWarnings","textWarnings","normalizedMessage","startsWith","has","msg"],"mappings":";;;;;;;;;;;;;;;;IAkCaA,uBAAuB;eAAvBA;;IAhCGC,gBAAgB;eAAhBA;;IASAC,kBAAkB;eAAlBA;;;;kEAXI;AAEb,SAASD,iBAAiBE,KAAc;IAC7C,OACEC,IAAAA,gBAAO,EAACD,UACPA,CAAAA,MAAME,OAAO,KACZ,6FACAF,MAAME,OAAO,KAAK,mDAAkD;AAE1E;AAEO,SAASH,mBAAmBG,OAAgB;IACjD,OACEC,kBAAkBD,YAClBE,4BAA4BF,YAC5BG,cAAcH;AAElB;AAIA,iIAAiI;AACjI,MAAMI,mBAAmB,IAAIC,IAAI;IAC/B;IACA;CACD;AACD,MAAMC,8BAA8B,IAAID,IAAI;IAC1C;IACA;CACD;AACD,MAAME,eAAe,IAAIF,IAAI;IAC3B;CACD;AAEM,MAAMV,0BAA0B,CACrCK;IAEA,IAAI,OAAOA,YAAY,UAAU;QAC/B,6EAA6E;QAC7E,wCAAwC;QACxC,OAAO;IACT;IAEA,MAAMQ,oBAAoBR,QAAQS,UAAU,CAAC,eACzCT,UACA,AAAC,cAAWA;IAEhB,IAAIC,kBAAkBO,oBAAoB,OAAO;IACjD,IAAIN,4BAA4BM,oBAAoB,OAAO;IAE3D,OAAO;AACT;AAEA,MAAMP,oBAAoB,CAACD,UACzB,OAAOA,YAAY,YAAYI,iBAAiBM,GAAG,CAACV;AAEtD,MAAME,8BAA8B,CAACS,MACnC,OAAOA,QAAQ,YAAYL,4BAA4BI,GAAG,CAACC;AAE7D,MAAMR,gBAAgB,CAACQ,MACrB,OAAOA,QAAQ,YAAYJ,aAAaG,GAAG,CAACC","ignoreList":[0]}