Rocky_Mountain_Vending/.pnpm-store/v10/files/e1/bdb641471213607bbb9718b715e80022cdcf6fd398c5e3e937ecbafa2f26ce45009bbd7347b41f5057ce76b5cfbfccbec5f04f62fa35d148dd3c996df19740
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

1 line
No EOL
22 KiB
Text

{"version":3,"sources":["../../../src/lib/typescript/diagnosticFormatter.ts"],"sourcesContent":["import { bold, cyan, red, yellow } from '../picocolors'\nimport path from 'path'\n\nfunction getFormattedLinkDiagnosticMessageText(\n diagnostic: import('typescript').Diagnostic\n) {\n const message = diagnostic.messageText\n if (typeof message === 'string' && diagnostic.code === 2322) {\n const match =\n message.match(\n /Type '\"(.+)\"' is not assignable to type 'RouteImpl<.+> \\| UrlObject'\\./\n ) ||\n message.match(\n /Type '\"(.+)\"' is not assignable to type 'UrlObject \\| RouteImpl<.+>'\\./\n )\n\n if (match) {\n const [, href] = match\n return `\"${bold(\n href\n )}\" is not an existing route. If it is intentional, please type it explicitly with \\`as Route\\`.`\n } else if (\n message === \"Type 'string' is not assignable to type 'UrlObject'.\"\n ) {\n const relatedMessage = diagnostic.relatedInformation?.[0]?.messageText\n if (\n typeof relatedMessage === 'string' &&\n relatedMessage.match(\n /The expected type comes from property 'href' which is declared here on type 'IntrinsicAttributes & /\n )\n ) {\n return `Invalid \\`href\\` property of \\`Link\\`: the route does not exist. If it is intentional, please type it explicitly with \\`as Route\\`.`\n }\n }\n } else if (typeof message === 'string' && diagnostic.code === 2820) {\n const match =\n message.match(\n /Type '\"(.+)\"' is not assignable to type 'RouteImpl<.+> \\| UrlObject'\\. Did you mean '\"(.+)\"'?/\n ) ||\n message.match(\n /Type '\"(.+)\"' is not assignable to type 'UrlObject \\| RouteImpl<.+>'\\. Did you mean '\"(.+)\"'?/\n )\n\n if (match) {\n const [, href, suggestion] = match\n return `\"${bold(href)}\" is not an existing route. Did you mean \"${bold(\n suggestion\n )}\" instead? If it is intentional, please type it explicitly with \\`as Route\\`.`\n }\n }\n}\n\nfunction getFormattedLayoutAndPageDiagnosticMessageText(\n relativeSourceFilepath: string,\n diagnostic: import('typescript').Diagnostic\n) {\n const message =\n typeof diagnostic.messageText === 'string'\n ? diagnostic\n : diagnostic.messageText\n const messageText = message.messageText\n\n if (typeof messageText === 'string') {\n const type = /page\\.[^.]+$/.test(relativeSourceFilepath)\n ? 'Page'\n : /route\\.[^.]+$/.test(relativeSourceFilepath)\n ? 'Route'\n : 'Layout'\n\n // Reference of error codes:\n // https://github.com/Microsoft/TypeScript/blob/main/src/compiler/diagnosticMessages.json\n switch (message.code) {\n case 2344:\n const filepathAndType = messageText.match(/typeof import\\(\"(.+)\"\\)/)\n if (filepathAndType) {\n let main = `${type} \"${bold(\n relativeSourceFilepath\n )}\" does not match the required types of a Next.js ${type}.`\n\n function processNext(\n indent: number,\n next?: import('typescript').DiagnosticMessageChain[]\n ) {\n if (!next) return\n\n for (const item of next) {\n switch (item.code) {\n case 2200:\n const mismatchedField =\n item.messageText.match(/The types of '(.+)'/)\n if (mismatchedField) {\n main += '\\n' + ' '.repeat(indent * 2)\n main += `\"${bold(mismatchedField[1])}\" has the wrong type:`\n }\n break\n case 2322:\n const types = item.messageText.match(\n /Type '(.+)' is not assignable to type '(.+)'./\n )\n if (types) {\n main += '\\n' + ' '.repeat(indent * 2)\n\n if (\n types[2] === 'PageComponent' ||\n types[2] === 'LayoutComponent'\n ) {\n main += `The exported ${type} component isn't correctly typed.`\n } else {\n main += `Expected \"${bold(\n types[2].replace(\n '\"__invalid_negative_number__\"',\n 'number (>= 0)'\n )\n )}\", got \"${bold(types[1])}\".`\n }\n }\n break\n case 2326:\n const invalidConfig = item.messageText.match(\n /Types of property '(.+)' are incompatible\\./\n )\n main += '\\n' + ' '.repeat(indent * 2)\n main += `Invalid configuration${\n invalidConfig ? ` \"${bold(invalidConfig[1])}\"` : ''\n }:`\n break\n case 2530:\n const invalidField = item.messageText.match(\n /Property '(.+)' is incompatible with index signature/\n )\n if (invalidField) {\n main += '\\n' + ' '.repeat(indent * 2)\n main += `\"${bold(\n invalidField[1]\n )}\" is not a valid ${type} export field.`\n }\n return\n case 2739:\n const invalidProp = item.messageText.match(\n /Type '(.+)' is missing the following properties from type '(.+)'/\n )\n if (invalidProp) {\n if (\n invalidProp[1] === 'LayoutProps' ||\n invalidProp[1] === 'PageProps'\n ) {\n main += '\\n' + ' '.repeat(indent * 2)\n main += `Prop \"${invalidProp[2]}\" is incompatible with the ${type}.`\n }\n }\n break\n case 2559:\n const invalid = item.messageText.match(/Type '(.+)' has/)\n if (invalid) {\n main += '\\n' + ' '.repeat(indent * 2)\n main += `Type \"${bold(invalid[1])}\" isn't allowed.`\n }\n break\n case 2741:\n const incompatPageProp = item.messageText.match(\n /Property '(.+)' is missing in type 'PageProps'/\n )\n if (incompatPageProp) {\n main += '\\n' + ' '.repeat(indent * 2)\n main += `Prop \"${bold(\n incompatPageProp[1]\n )}\" will never be passed. Remove it from the component's props.`\n } else {\n const extraLayoutProp = item.messageText.match(\n /Property '(.+)' is missing in type 'LayoutProps' but required in type '(.+)'/\n )\n if (extraLayoutProp) {\n main += '\\n' + ' '.repeat(indent * 2)\n main += `Prop \"${bold(\n extraLayoutProp[1]\n )}\" is not valid for this Layout, remove it to fix.`\n }\n }\n break\n default:\n }\n\n processNext(indent + 1, item.next)\n }\n }\n\n if ('next' in message) processNext(1, message.next)\n return main\n }\n\n const invalidExportFnArg = messageText.match(\n /Type 'OmitWithTag<(.+), .+, \"(.+)\">' does not satisfy the constraint/\n )\n if (invalidExportFnArg) {\n const main = `${type} \"${bold(\n relativeSourceFilepath\n )}\" has an invalid \"${bold(\n invalidExportFnArg[2]\n )}\" export:\\n Type \"${bold(invalidExportFnArg[1])}\" is not valid.`\n return main\n }\n\n function processNextItems(\n indent: number,\n next?: import('typescript').DiagnosticMessageChain[]\n ) {\n if (!next) return ''\n\n let result = ''\n\n for (const item of next) {\n switch (item.code) {\n case 2322:\n const types = item.messageText.match(\n /Type '(.+)' is not assignable to type '(.+)'./\n )\n if (types) {\n result += '\\n' + ' '.repeat(indent * 2)\n result += `Expected \"${bold(types[2])}\", got \"${bold(\n types[1]\n )}\".`\n }\n break\n default:\n }\n\n result += processNextItems(indent + 1, item.next)\n }\n\n return result\n }\n\n const invalidParamFn = messageText.match(\n /Type '{ __tag__: (.+); __param_position__: \"(.*)\"; __param_type__: (.+); }' does not satisfy/\n )\n if (invalidParamFn) {\n let main = `${type} \"${bold(\n relativeSourceFilepath\n )}\" has an invalid ${invalidParamFn[1]} export:\\n Type \"${bold(\n invalidParamFn[3]\n )}\" is not a valid type for the function's ${\n invalidParamFn[2]\n } argument.`\n\n if ('next' in message) main += processNextItems(1, message.next)\n return main\n }\n\n const invalidExportFnReturn = messageText.match(\n /Type '{ __tag__: \"(.+)\"; __return_type__: (.+); }' does not satisfy/\n )\n if (invalidExportFnReturn) {\n let main = `${type} \"${bold(\n relativeSourceFilepath\n )}\" has an invalid export:\\n \"${bold(\n invalidExportFnReturn[2]\n )}\" is not a valid ${invalidExportFnReturn[1]} return type:`\n\n if ('next' in message) main += processNextItems(1, message.next)\n return main\n }\n\n break\n case 2345:\n const filepathAndInvalidExport = messageText.match(\n /'typeof import\\(\"(.+)\"\\)'.+Impossible<\"(.+)\">/\n )\n if (filepathAndInvalidExport) {\n const main = `${type} \"${bold(\n relativeSourceFilepath\n )}\" exports an invalid \"${bold(\n filepathAndInvalidExport[2]\n )}\" field. ${type} should only export a default React component and configuration options. Learn more: https://nextjs.org/docs/messages/invalid-segment-export`\n return main\n }\n break\n case 2559:\n const invalid = messageText.match(\n /Type '(.+)' has no properties in common with type '(.+)'/\n )\n if (invalid) {\n const main = `${type} \"${bold(\n relativeSourceFilepath\n )}\" contains an invalid type \"${bold(invalid[1])}\" as ${invalid[2]}.`\n return main\n }\n break\n default:\n }\n }\n}\n\nfunction getAppEntrySourceFilePath(\n baseDir: string,\n diagnostic: import('typescript').Diagnostic\n) {\n const sourceFilepath =\n diagnostic.file?.text.trim().match(/^\\/\\/ File: (.+)\\n/)?.[1] || ''\n\n return path.relative(baseDir, sourceFilepath)\n}\n\nexport function getFormattedDiagnostic(\n ts: typeof import('typescript'),\n baseDir: string,\n distDir: string,\n diagnostic: import('typescript').Diagnostic,\n isAppDirEnabled?: boolean\n): string {\n // If the error comes from .next/types/, we handle it specially.\n const isLayoutOrPageError =\n isAppDirEnabled &&\n diagnostic.file?.fileName.startsWith(path.join(baseDir, distDir, 'types'))\n\n let message = ''\n\n const appPath = isLayoutOrPageError\n ? getAppEntrySourceFilePath(baseDir, diagnostic)\n : null\n const linkReason = getFormattedLinkDiagnosticMessageText(diagnostic)\n const appReason =\n !linkReason && isLayoutOrPageError && appPath\n ? getFormattedLayoutAndPageDiagnosticMessageText(appPath, diagnostic)\n : null\n\n const reason =\n linkReason ||\n appReason ||\n ts.flattenDiagnosticMessageText(diagnostic.messageText, '\\n')\n const category = diagnostic.category\n switch (category) {\n // Warning\n case ts.DiagnosticCategory.Warning: {\n message += yellow(bold('Type warning')) + ': '\n break\n }\n // Error\n case ts.DiagnosticCategory.Error: {\n message += red(bold('Type error')) + ': '\n break\n }\n // 2 = Suggestion, 3 = Message\n case ts.DiagnosticCategory.Suggestion:\n case ts.DiagnosticCategory.Message:\n message += cyan(bold(category === 2 ? 'Suggestion' : 'Info')) + ': '\n break\n default: {\n category satisfies never\n }\n }\n\n message += reason + '\\n'\n\n if (!isLayoutOrPageError && diagnostic.file) {\n const { codeFrameColumns } =\n require('next/dist/compiled/babel/code-frame') as typeof import('next/dist/compiled/babel/code-frame')\n const pos = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start!)\n const line = pos.line + 1\n const character = pos.character + 1\n\n let fileName = path.posix.normalize(\n path.relative(baseDir, diagnostic.file.fileName).replace(/\\\\/g, '/')\n )\n if (!fileName.startsWith('.')) {\n fileName = './' + fileName\n }\n\n message =\n cyan(fileName) +\n ':' +\n yellow(line.toString()) +\n ':' +\n yellow(character.toString()) +\n '\\n' +\n message\n\n message +=\n '\\n' +\n codeFrameColumns(\n diagnostic.file.getFullText(diagnostic.file.getSourceFile()),\n {\n start: { line: line, column: character },\n },\n { forceColor: true }\n )\n } else if (isLayoutOrPageError && appPath) {\n message = cyan(appPath) + '\\n' + message\n }\n\n return message\n}\n"],"names":["bold","cyan","red","yellow","path","getFormattedLinkDiagnosticMessageText","diagnostic","message","messageText","code","match","href","relatedMessage","relatedInformation","suggestion","getFormattedLayoutAndPageDiagnosticMessageText","relativeSourceFilepath","type","test","filepathAndType","main","processNext","indent","next","item","mismatchedField","repeat","types","replace","invalidConfig","invalidField","invalidProp","invalid","incompatPageProp","extraLayoutProp","invalidExportFnArg","processNextItems","result","invalidParamFn","invalidExportFnReturn","filepathAndInvalidExport","getAppEntrySourceFilePath","baseDir","sourceFilepath","file","text","trim","relative","getFormattedDiagnostic","ts","distDir","isAppDirEnabled","isLayoutOrPageError","fileName","startsWith","join","appPath","linkReason","appReason","reason","flattenDiagnosticMessageText","category","DiagnosticCategory","Warning","Error","Suggestion","Message","codeFrameColumns","require","pos","getLineAndCharacterOfPosition","start","line","character","posix","normalize","toString","getFullText","getSourceFile","column","forceColor"],"mappings":"AAAA,SAASA,IAAI,EAAEC,IAAI,EAAEC,GAAG,EAAEC,MAAM,QAAQ,gBAAe;AACvD,OAAOC,UAAU,OAAM;AAEvB,SAASC,sCACPC,UAA2C;IAE3C,MAAMC,UAAUD,WAAWE,WAAW;IACtC,IAAI,OAAOD,YAAY,YAAYD,WAAWG,IAAI,KAAK,MAAM;QAC3D,MAAMC,QACJH,QAAQG,KAAK,CACX,6EAEFH,QAAQG,KAAK,CACX;QAGJ,IAAIA,OAAO;YACT,MAAM,GAAGC,KAAK,GAAGD;YACjB,OAAO,CAAC,CAAC,EAAEV,KACTW,MACA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