Rocky_Mountain_Vending/.pnpm-store/v10/files/df/bbc2d6f1f9733b1a60c812fbcb69fe953109bb9d8b48f48064cb484fe4aaeaa160c0cdccb574181860737b610940a9b1d50706e5c6f0a413d5c2cb226d5af1
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
3.8 KiB
Text

{"version":3,"file":"systemError.js","sources":["../../../src/integrations/systemError.ts"],"sourcesContent":["import * as util from 'node:util';\nimport { defineIntegration } from '@sentry/core';\n\nconst INTEGRATION_NAME = 'NodeSystemError';\n\ntype SystemErrorContext = {\n dest?: string; // If present, the file path destination when reporting a file system error\n errno: number; // The system-provided error number\n path?: string; // If present, the file path when reporting a file system error\n};\n\ntype SystemError = Error & SystemErrorContext;\n\nfunction isSystemError(error: unknown): error is SystemError {\n if (!(error instanceof Error)) {\n return false;\n }\n\n if (!('errno' in error) || typeof error.errno !== 'number') {\n return false;\n }\n\n // Appears this is the recommended way to check for Node.js SystemError\n // https://github.com/nodejs/node/issues/46869\n return util.getSystemErrorMap().has(error.errno);\n}\n\ntype Options = {\n /**\n * If true, includes the `path` and `dest` properties in the error context.\n */\n includePaths?: boolean;\n};\n\n/**\n * Captures context for Node.js SystemError errors.\n */\nexport const systemErrorIntegration = defineIntegration((options: Options = {}) => {\n return {\n name: INTEGRATION_NAME,\n processEvent: (event, hint, client) => {\n if (!isSystemError(hint.originalException)) {\n return event;\n }\n\n const error = hint.originalException;\n\n const errorContext: SystemErrorContext = {\n ...error,\n };\n\n if (!client.getOptions().sendDefaultPii && options.includePaths !== true) {\n delete errorContext.path;\n delete errorContext.dest;\n }\n\n event.contexts = {\n ...event.contexts,\n node_system_error: errorContext,\n };\n\n for (const exception of event.exception?.values || []) {\n if (exception.value) {\n if (error.path && exception.value.includes(error.path)) {\n exception.value = exception.value.replace(`'${error.path}'`, '').trim();\n }\n if (error.dest && exception.value.includes(error.dest)) {\n exception.value = exception.value.replace(`'${error.dest}'`, '').trim();\n }\n }\n }\n\n return event;\n },\n };\n});\n"],"names":[],"mappings":";;;AAGA,MAAM,gBAAA,GAAmB,iBAAiB;;AAU1C,SAAS,aAAa,CAAC,KAAK,EAAiC;AAC7D,EAAE,IAAI,EAAE,iBAAiB,KAAK,CAAC,EAAE;AACjC,IAAI,OAAO,KAAK;AAChB;;AAEA,EAAE,IAAI,EAAE,WAAW,KAAK,CAAA,IAAK,OAAO,KAAK,CAAC,KAAA,KAAU,QAAQ,EAAE;AAC9D,IAAI,OAAO,KAAK;AAChB;;AAEA;AACA;AACA,EAAE,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC;AAClD;;AASA;AACA;AACA;AACO,MAAM,sBAAA,GAAyB,iBAAiB,CAAC,CAAC,OAAO,GAAY,EAAE,KAAK;AACnF,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,gBAAgB;AAC1B,IAAI,YAAY,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK;AAC3C,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE;AAClD,QAAQ,OAAO,KAAK;AACpB;;AAEA,MAAM,MAAM,KAAA,GAAQ,IAAI,CAAC,iBAAiB;;AAE1C,MAAM,MAAM,YAAY,GAAuB;AAC/C,QAAQ,GAAG,KAAK;AAChB,OAAO;;AAEP,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,cAAA,IAAkB,OAAO,CAAC,YAAA,KAAiB,IAAI,EAAE;AAChF,QAAQ,OAAO,YAAY,CAAC,IAAI;AAChC,QAAQ,OAAO,YAAY,CAAC,IAAI;AAChC;;AAEA,MAAM,KAAK,CAAC,QAAA,GAAW;AACvB,QAAQ,GAAG,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