Files
2026-01-23 01:33:35 +01:00

1 line
1.6 KiB
Plaintext

{"version":3,"sources":["../../src/pg_hashids/index.ts","../../../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.47.7_@types+node@20.16.11__postcss@8.4.47_tsx@4.19.2_typescript@5.6.3/node_modules/tsup/assets/cjs_shims.js"],"sourcesContent":["import type {\n Extension,\n ExtensionSetupResult,\n PGliteInterface,\n} from '../interface'\n\nconst setup = async (_pg: PGliteInterface, emscriptenOpts: any) => {\n return {\n emscriptenOpts,\n bundlePath: new URL('../../release/pg_hashids.tar.gz', import.meta.url),\n } satisfies ExtensionSetupResult\n}\n\nexport const pg_hashids = {\n name: 'pg_hashids',\n setup,\n} satisfies Extension\n","// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () =>\n typeof document === 'undefined'\n ? new URL(`file:${__filename}`).href\n : (document.currentScript && document.currentScript.src) ||\n new URL('main.js', document.baseURI).href\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,IAAA,eAAAC,EAAAH,GCKA,IAAMI,EAAmB,IACvB,OAAO,SAAa,IAChB,IAAI,IAAI,QAAQ,UAAU,EAAE,EAAE,KAC7B,SAAS,eAAiB,SAAS,cAAc,KAClD,IAAI,IAAI,UAAW,SAAS,OAAO,EAAE,KAE9BC,EAAgCD,EAAiB,EDL9D,IAAME,EAAQ,MAAOC,EAAsBC,KAClC,CACL,eAAAA,EACA,WAAY,IAAI,IAAI,kCAAmCC,CAAe,CACxE,GAGWC,EAAa,CACxB,KAAM,aACN,MAAAJ,CACF","names":["pg_hashids_exports","__export","pg_hashids","__toCommonJS","getImportMetaUrl","importMetaUrl","setup","_pg","emscriptenOpts","importMetaUrl","pg_hashids"]}