orcaq 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +15 -0
- package/.output/public/_nuxt/8qASMGdV.js +1 -0
- package/.output/public/_nuxt/9lJACZIQ.js +19 -0
- package/.output/public/_nuxt/B2DnNiWd.js +1 -0
- package/.output/public/_nuxt/B6E6ObS_.js +8 -0
- package/.output/public/_nuxt/BH83_dXo.js +39 -0
- package/.output/public/_nuxt/BIKqrFbQ.js +1 -0
- package/.output/public/_nuxt/BNjPC06x.js +1 -0
- package/.output/public/_nuxt/BPQ-Pz1w.js +39 -0
- package/.output/public/_nuxt/BRpgKkVT.js +51 -0
- package/.output/public/_nuxt/BTCLPbPY.js +4 -0
- package/.output/public/_nuxt/BUV-RarV.js +1 -0
- package/.output/public/_nuxt/Bh6RgYlO.js +1 -0
- package/.output/public/_nuxt/Bq3cyzOD.js +1 -0
- package/.output/public/_nuxt/Bt9sU68B.js +9 -0
- package/.output/public/_nuxt/BwpH2ZxJ.js +1 -0
- package/.output/public/_nuxt/C25Tmn1m.js +1 -0
- package/.output/public/_nuxt/C2HlI1ss.js +1 -0
- package/.output/public/_nuxt/CU3ZV9iV.js +1 -0
- package/.output/public/_nuxt/CbcyysXi.js +1 -0
- package/.output/public/_nuxt/CepyvMhE.js +1 -0
- package/.output/public/_nuxt/CrgoNCm2.js +2 -0
- package/.output/public/_nuxt/CuBKbBH_.js +1 -0
- package/.output/public/_nuxt/CulD8qYQ.js +193 -0
- package/.output/public/_nuxt/CustomEdge.BNBpjEHb.css +1 -0
- package/.output/public/_nuxt/CylkLpwm.js +1 -0
- package/.output/public/_nuxt/D-bWLYHw.js +1 -0
- package/.output/public/_nuxt/D-zecHND.js +1 -0
- package/.output/public/_nuxt/D8vj6kFe.js +160 -0
- package/.output/public/_nuxt/DIETYtCL.js +1 -0
- package/.output/public/_nuxt/DJ4vUzxS.js +1 -0
- package/.output/public/_nuxt/DK-itzXx.js +8 -0
- package/.output/public/_nuxt/DL3T5jYo.js +3867 -0
- package/.output/public/_nuxt/DUsuhY9i.js +1 -0
- package/.output/public/_nuxt/DXV2HFBA.js +224 -0
- package/.output/public/_nuxt/Dh2zppOR.js +1 -0
- package/.output/public/_nuxt/DlAUqK2U.js +1 -0
- package/.output/public/_nuxt/DlmSeCnw.js +5 -0
- package/.output/public/_nuxt/DswTpYG4.js +1 -0
- package/.output/public/_nuxt/DynamicTable.DJeANwbG.css +1 -0
- package/.output/public/_nuxt/G830WtVn.js +1 -0
- package/.output/public/_nuxt/ICwM1E4-.js +15 -0
- package/.output/public/_nuxt/QZbJy9YW.js +31 -0
- package/.output/public/_nuxt/QuickQueryTable.DS_ON57S.css +1 -0
- package/.output/public/_nuxt/UXhX8z2W.js +1 -0
- package/.output/public/_nuxt/WrapperErdDiagram.DwhUd9Wr.css +1 -0
- package/.output/public/_nuxt/_fileId_.DmPfwyyD.css +1 -0
- package/.output/public/_nuxt/_tabViewId_.9Axt3zoi.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/6364d5cf-4642-479f-ba12-6440c56702af.json +1 -0
- package/.output/public/_nuxt/default.DixIpIal.css +1 -0
- package/.output/public/_nuxt/entry.GqPNPe1e.css +1 -0
- package/.output/public/_nuxt/index.CrXmf4gr.css +1 -0
- package/.output/public/_nuxt/ivUnXl9B.js +1 -0
- package/.output/public/_nuxt/pAheHeBV.js +36 -0
- package/.output/public/_nuxt/s5fCn4j5.js +1 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/logo.png +0 -0
- package/.output/public/manifest.json +25 -0
- package/.output/public/robots.txt +1 -0
- package/.output/public/vite.svg +1 -0
- package/.output/server/chunks/_/error-500.mjs +8 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/build/client.manifest.mjs +773 -0
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +6432 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/api/ai/chat.mjs +77 -0
- package/.output/server/chunks/routes/api/ai/chat.mjs.map +1 -0
- package/.output/server/chunks/routes/api/execute-bulk-delete.mjs +100 -0
- package/.output/server/chunks/routes/api/execute-bulk-delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/execute-bulk-update.mjs +105 -0
- package/.output/server/chunks/routes/api/execute-bulk-update.mjs.map +1 -0
- package/.output/server/chunks/routes/api/execute.mjs +47 -0
- package/.output/server/chunks/routes/api/execute.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-one-function.mjs +28 -0
- package/.output/server/chunks/routes/api/get-one-function.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-one-table.mjs +180 -0
- package/.output/server/chunks/routes/api/get-one-table.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-over-view-function.mjs +41 -0
- package/.output/server/chunks/routes/api/get-over-view-function.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-over-view-tables.mjs +53 -0
- package/.output/server/chunks/routes/api/get-over-view-tables.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-reverse-table-schemas.mjs +112 -0
- package/.output/server/chunks/routes/api/get-reverse-table-schemas.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-schema-meta-data.mjs +152 -0
- package/.output/server/chunks/routes/api/get-schema-meta-data.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-table-size.mjs +49 -0
- package/.output/server/chunks/routes/api/get-table-size.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-table-structure.mjs +111 -0
- package/.output/server/chunks/routes/api/get-table-structure.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-tables.mjs +287 -0
- package/.output/server/chunks/routes/api/get-tables.mjs.map +1 -0
- package/.output/server/chunks/routes/api/getMetricMonitor.mjs +46 -0
- package/.output/server/chunks/routes/api/getMetricMonitor.mjs.map +1 -0
- package/.output/server/chunks/routes/api/managment-connection/health-check.mjs +28 -0
- package/.output/server/chunks/routes/api/managment-connection/health-check.mjs.map +1 -0
- package/.output/server/chunks/routes/api/raw-execute.mjs +48 -0
- package/.output/server/chunks/routes/api/raw-execute.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +316 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +14 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/@ai-sdk/anthropic/dist/index.mjs +4374 -0
- package/.output/server/node_modules/@ai-sdk/anthropic/package.json +74 -0
- package/.output/server/node_modules/@ai-sdk/gateway/dist/index.mjs +1082 -0
- package/.output/server/node_modules/@ai-sdk/gateway/package.json +69 -0
- package/.output/server/node_modules/@ai-sdk/google/dist/index.mjs +2007 -0
- package/.output/server/node_modules/@ai-sdk/google/package.json +74 -0
- package/.output/server/node_modules/@ai-sdk/openai/dist/index.mjs +5956 -0
- package/.output/server/node_modules/@ai-sdk/openai/package.json +74 -0
- package/.output/server/node_modules/@ai-sdk/openai-compatible/dist/index.mjs +1551 -0
- package/.output/server/node_modules/@ai-sdk/openai-compatible/package.json +74 -0
- package/.output/server/node_modules/@ai-sdk/provider/dist/index.mjs +377 -0
- package/.output/server/node_modules/@ai-sdk/provider/package.json +57 -0
- package/.output/server/node_modules/@ai-sdk/provider-utils/dist/index.mjs +2549 -0
- package/.output/server/node_modules/@ai-sdk/provider-utils/package.json +75 -0
- package/.output/server/node_modules/@ai-sdk/xai/dist/index.mjs +2214 -0
- package/.output/server/node_modules/@ai-sdk/xai/package.json +68 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14246 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.mjs +350 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.mjs +188 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/common.mjs +90 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/format.mjs +38 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.mjs +76 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.mjs +168 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.mjs +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.mjs +14 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.mjs +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.mjs +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.mjs +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.mjs +51 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.mjs +84 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.mjs +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.mjs +44 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.mjs +58 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.mjs +231 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.mjs +31 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.mjs +164 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.mjs +216 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.mjs +113 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.mjs +104 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.mjs +34 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.mjs +75 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.mjs +97 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.mjs +54 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.mjs +97 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.mjs +45 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.mjs +105 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.mjs +54 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.mjs +24 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.mjs +20 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.mjs +53 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.mjs +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.mjs +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.mjs +182 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.mjs +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.mjs +46 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.mjs +66 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.mjs +51 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.mjs +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.mjs +62 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.mjs +161 -0
- package/.output/server/node_modules/@iconify/utils/lib/index.mjs +64 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.mjs +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.mjs +59 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.mjs +80 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.mjs +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.mjs +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.mjs +17 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.mjs +5 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.mjs +119 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.mjs +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.mjs +20 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.mjs +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.mjs +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.mjs +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.mjs +83 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.mjs +70 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.mjs +40 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.mjs +5 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.mjs +11 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.mjs +8 -0
- package/.output/server/node_modules/@iconify/utils/package.json +447 -0
- package/.output/server/node_modules/@ioredis/commands/built/commands.json +2447 -0
- package/.output/server/node_modules/@ioredis/commands/built/index.js +208 -0
- package/.output/server/node_modules/@ioredis/commands/package.json +52 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/api/context.js +81 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/api/diag.js +93 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/api/metrics.js +61 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/api/propagation.js +89 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/api/trace.js +79 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js +63 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js +55 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js +23 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/baggage/utils.js +51 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js +38 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/context/context.js +55 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/context-api.js +24 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js +59 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js +57 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js +45 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/diag/types.js +44 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/diag-api.js +29 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/index.js +81 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/internal/global-utils.js +64 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/internal/semver.js +122 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/metrics/Metric.js +25 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js +127 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js +31 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/metrics-api.js +24 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/platform/index.js +29 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js +22 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/platform/node/index.js +29 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js +34 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js +41 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/propagation-api.js +24 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js +69 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js +75 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js +32 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js +55 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js +54 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js +42 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/context-utils.js +82 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js +103 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js +46 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js +24 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js +27 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/span_kind.js +46 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js +49 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/status.js +23 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js +26 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/trace-api.js +24 -0
- package/.output/server/node_modules/@opentelemetry/api/build/src/version.js +21 -0
- package/.output/server/node_modules/@opentelemetry/api/package.json +113 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/core/Formatter.js +234 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/core/Indentation.js +42 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/core/InlineBlock.js +60 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/core/Params.js +21 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/core/Tokenizer.js +272 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/core/escapeRegExp.js +10 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/core/last.js +7 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/core/types.js +22 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/languages/Db2Formatter.js +585 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/languages/N1qlFormatter.js +257 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/languages/PlSqlFormatter.js +459 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/languages/StandardSqlFormatter.js +369 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/languages/utils/abstract.js +23 -0
- package/.output/server/node_modules/@sqltools/formatter/lib/sqlFormatter.js +34 -0
- package/.output/server/node_modules/@sqltools/formatter/package.json +59 -0
- package/.output/server/node_modules/@standard-schema/spec/dist/index.js +0 -0
- package/.output/server/node_modules/@standard-schema/spec/package.json +52 -0
- package/.output/server/node_modules/@vercel/oidc/dist/auth-config.js +84 -0
- package/.output/server/node_modules/@vercel/oidc/dist/get-context.js +34 -0
- package/.output/server/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.js +80 -0
- package/.output/server/node_modules/@vercel/oidc/dist/index.js +33 -0
- package/.output/server/node_modules/@vercel/oidc/dist/oauth.js +88 -0
- package/.output/server/node_modules/@vercel/oidc/dist/token-error.js +40 -0
- package/.output/server/node_modules/@vercel/oidc/dist/token-io.js +78 -0
- package/.output/server/node_modules/@vercel/oidc/dist/token-util.js +198 -0
- package/.output/server/node_modules/@vercel/oidc/dist/token.js +53 -0
- package/.output/server/node_modules/@vercel/oidc/package.json +52 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6690 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +686 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1404 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1789 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6654 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1669 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +857 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +594 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/ai/dist/index.mjs +12363 -0
- package/.output/server/node_modules/ai/package.json +106 -0
- package/.output/server/node_modules/ansis/index.js +1 -0
- package/.output/server/node_modules/ansis/package.json +28 -0
- package/.output/server/node_modules/app-root-path/index.js +4 -0
- package/.output/server/node_modules/app-root-path/lib/app-root-path.js +30 -0
- package/.output/server/node_modules/app-root-path/lib/resolve.js +128 -0
- package/.output/server/node_modules/app-root-path/package.json +66 -0
- package/.output/server/node_modules/balanced-match/index.js +62 -0
- package/.output/server/node_modules/balanced-match/package.json +48 -0
- package/.output/server/node_modules/bindings/bindings.js +221 -0
- package/.output/server/node_modules/bindings/package.json +28 -0
- package/.output/server/node_modules/brace-expansion/index.js +203 -0
- package/.output/server/node_modules/brace-expansion/package.json +46 -0
- package/.output/server/node_modules/cluster-key-slot/lib/index.js +166 -0
- package/.output/server/node_modules/cluster-key-slot/package.json +56 -0
- package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/.output/server/node_modules/consola/package.json +136 -0
- package/.output/server/node_modules/dayjs/dayjs.min.js +1 -0
- package/.output/server/node_modules/dayjs/package.json +84 -0
- package/.output/server/node_modules/debug/package.json +65 -0
- package/.output/server/node_modules/debug/src/browser.js +272 -0
- package/.output/server/node_modules/debug/src/common.js +292 -0
- package/.output/server/node_modules/debug/src/index.js +10 -0
- package/.output/server/node_modules/debug/src/node.js +263 -0
- package/.output/server/node_modules/dedent/dist/dedent.js +73 -0
- package/.output/server/node_modules/dedent/package.json +119 -0
- package/.output/server/node_modules/denque/index.js +481 -0
- package/.output/server/node_modules/denque/package.json +58 -0
- package/.output/server/node_modules/devalue/index.js +3 -0
- package/.output/server/node_modules/devalue/package.json +34 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +160 -0
- package/.output/server/node_modules/devalue/src/stringify.js +232 -0
- package/.output/server/node_modules/devalue/src/uneval.js +351 -0
- package/.output/server/node_modules/devalue/src/utils.js +113 -0
- package/.output/server/node_modules/dotenv/lib/main.js +361 -0
- package/.output/server/node_modules/dotenv/package.json +61 -0
- package/.output/server/node_modules/entities/lib/decode.js +536 -0
- package/.output/server/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.output/server/node_modules/entities/package.json +90 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/eventsource-parser/dist/index.js +106 -0
- package/.output/server/node_modules/eventsource-parser/dist/stream.js +29 -0
- package/.output/server/node_modules/eventsource-parser/package.json +115 -0
- package/.output/server/node_modules/file-uri-to-path/index.js +66 -0
- package/.output/server/node_modules/file-uri-to-path/package.json +32 -0
- package/.output/server/node_modules/glob/dist/commonjs/glob.js +247 -0
- package/.output/server/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/.output/server/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/.output/server/node_modules/glob/dist/commonjs/index.js +68 -0
- package/.output/server/node_modules/glob/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/glob/dist/commonjs/pattern.js +219 -0
- package/.output/server/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/.output/server/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/.output/server/node_modules/glob/package.json +99 -0
- package/.output/server/node_modules/has-flag/index.js +8 -0
- package/.output/server/node_modules/has-flag/package.json +46 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
- package/.output/server/node_modules/hookable/package.json +49 -0
- package/.output/server/node_modules/inherits/inherits.js +9 -0
- package/.output/server/node_modules/inherits/inherits_browser.js +27 -0
- package/.output/server/node_modules/inherits/package.json +29 -0
- package/.output/server/node_modules/ioredis/built/Command.js +349 -0
- package/.output/server/node_modules/ioredis/built/DataHandler.js +220 -0
- package/.output/server/node_modules/ioredis/built/Pipeline.js +334 -0
- package/.output/server/node_modules/ioredis/built/Redis.js +697 -0
- package/.output/server/node_modules/ioredis/built/ScanStream.js +51 -0
- package/.output/server/node_modules/ioredis/built/Script.js +62 -0
- package/.output/server/node_modules/ioredis/built/SubscriptionSet.js +41 -0
- package/.output/server/node_modules/ioredis/built/autoPipelining.js +159 -0
- package/.output/server/node_modules/ioredis/built/cluster/ClusterOptions.js +22 -0
- package/.output/server/node_modules/ioredis/built/cluster/ClusterSubscriber.js +202 -0
- package/.output/server/node_modules/ioredis/built/cluster/ClusterSubscriberGroup.js +224 -0
- package/.output/server/node_modules/ioredis/built/cluster/ConnectionPool.js +154 -0
- package/.output/server/node_modules/ioredis/built/cluster/DelayQueue.js +53 -0
- package/.output/server/node_modules/ioredis/built/cluster/index.js +862 -0
- package/.output/server/node_modules/ioredis/built/cluster/util.js +100 -0
- package/.output/server/node_modules/ioredis/built/connectors/AbstractConnector.js +26 -0
- package/.output/server/node_modules/ioredis/built/connectors/SentinelConnector/FailoverDetector.js +45 -0
- package/.output/server/node_modules/ioredis/built/connectors/SentinelConnector/SentinelIterator.js +37 -0
- package/.output/server/node_modules/ioredis/built/connectors/SentinelConnector/index.js +305 -0
- package/.output/server/node_modules/ioredis/built/connectors/StandaloneConnector.js +69 -0
- package/.output/server/node_modules/ioredis/built/connectors/index.js +7 -0
- package/.output/server/node_modules/ioredis/built/constants/TLSProfiles.js +149 -0
- package/.output/server/node_modules/ioredis/built/errors/ClusterAllFailedError.js +15 -0
- package/.output/server/node_modules/ioredis/built/errors/MaxRetriesPerRequestError.js +14 -0
- package/.output/server/node_modules/ioredis/built/errors/index.js +5 -0
- package/.output/server/node_modules/ioredis/built/index.js +62 -0
- package/.output/server/node_modules/ioredis/built/redis/RedisOptions.js +55 -0
- package/.output/server/node_modules/ioredis/built/redis/event_handler.js +292 -0
- package/.output/server/node_modules/ioredis/built/transaction.js +93 -0
- package/.output/server/node_modules/ioredis/built/utils/Commander.js +117 -0
- package/.output/server/node_modules/ioredis/built/utils/applyMixin.js +8 -0
- package/.output/server/node_modules/ioredis/built/utils/debug.js +95 -0
- package/.output/server/node_modules/ioredis/built/utils/index.js +297 -0
- package/.output/server/node_modules/ioredis/built/utils/lodash.js +9 -0
- package/.output/server/node_modules/ioredis/package.json +100 -0
- package/.output/server/node_modules/lodash.defaults/index.js +668 -0
- package/.output/server/node_modules/lodash.defaults/package.json +19 -0
- package/.output/server/node_modules/lodash.isarguments/index.js +229 -0
- package/.output/server/node_modules/lodash.isarguments/package.json +19 -0
- package/.output/server/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
- package/.output/server/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/lru-cache/package.json +116 -0
- package/.output/server/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/.output/server/node_modules/minimatch/dist/commonjs/ast.js +592 -0
- package/.output/server/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
- package/.output/server/node_modules/minimatch/dist/commonjs/escape.js +22 -0
- package/.output/server/node_modules/minimatch/dist/commonjs/index.js +1017 -0
- package/.output/server/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/minimatch/dist/commonjs/unescape.js +24 -0
- package/.output/server/node_modules/minimatch/package.json +82 -0
- package/.output/server/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/.output/server/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/minipass/package.json +82 -0
- package/.output/server/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/ms/package.json +38 -0
- package/.output/server/node_modules/path-scurry/dist/commonjs/index.js +2014 -0
- package/.output/server/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/path-scurry/package.json +89 -0
- package/.output/server/node_modules/pg/lib/client.js +650 -0
- package/.output/server/node_modules/pg/lib/connection-parameters.js +167 -0
- package/.output/server/node_modules/pg/lib/connection.js +222 -0
- package/.output/server/node_modules/pg/lib/crypto/cert-signatures.js +121 -0
- package/.output/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/.output/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/.output/server/node_modules/pg/lib/crypto/utils-webcrypto.js +88 -0
- package/.output/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/.output/server/node_modules/pg/lib/defaults.js +84 -0
- package/.output/server/node_modules/pg/lib/index.js +58 -0
- package/.output/server/node_modules/pg/lib/native/client.js +307 -0
- package/.output/server/node_modules/pg/lib/native/index.js +2 -0
- package/.output/server/node_modules/pg/lib/native/query.js +168 -0
- package/.output/server/node_modules/pg/lib/query.js +253 -0
- package/.output/server/node_modules/pg/lib/result.js +108 -0
- package/.output/server/node_modules/pg/lib/stream.js +81 -0
- package/.output/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/.output/server/node_modules/pg/lib/utils.js +206 -0
- package/.output/server/node_modules/pg/package.json +62 -0
- package/.output/server/node_modules/pg-cloudflare/dist/empty.js +4 -0
- package/.output/server/node_modules/pg-cloudflare/package.json +32 -0
- package/.output/server/node_modules/pg-connection-string/index.js +112 -0
- package/.output/server/node_modules/pg-connection-string/package.json +40 -0
- package/.output/server/node_modules/pg-cursor/index.js +265 -0
- package/.output/server/node_modules/pg-cursor/package.json +38 -0
- package/.output/server/node_modules/pg-int8/index.js +100 -0
- package/.output/server/node_modules/pg-int8/package.json +24 -0
- package/.output/server/node_modules/pg-pool/index.js +471 -0
- package/.output/server/node_modules/pg-pool/package.json +41 -0
- package/.output/server/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
- package/.output/server/node_modules/pg-protocol/dist/buffer-writer.js +81 -0
- package/.output/server/node_modules/pg-protocol/dist/index.js +15 -0
- package/.output/server/node_modules/pg-protocol/dist/messages.js +160 -0
- package/.output/server/node_modules/pg-protocol/dist/parser.js +304 -0
- package/.output/server/node_modules/pg-protocol/dist/serializer.js +189 -0
- package/.output/server/node_modules/pg-protocol/package.json +35 -0
- package/.output/server/node_modules/pg-query-stream/dist/index.js +48 -0
- package/.output/server/node_modules/pg-query-stream/package.json +60 -0
- package/.output/server/node_modules/pg-types/index.js +47 -0
- package/.output/server/node_modules/pg-types/lib/arrayParser.js +11 -0
- package/.output/server/node_modules/pg-types/lib/binaryParsers.js +257 -0
- package/.output/server/node_modules/pg-types/lib/builtins.js +73 -0
- package/.output/server/node_modules/pg-types/lib/textParsers.js +215 -0
- package/.output/server/node_modules/pg-types/package.json +42 -0
- package/.output/server/node_modules/pgpass/lib/helper.js +233 -0
- package/.output/server/node_modules/pgpass/lib/index.js +23 -0
- package/.output/server/node_modules/pgpass/package.json +41 -0
- package/.output/server/node_modules/postgres-array/index.js +97 -0
- package/.output/server/node_modules/postgres-array/package.json +35 -0
- package/.output/server/node_modules/postgres-bytea/index.js +31 -0
- package/.output/server/node_modules/postgres-bytea/package.json +34 -0
- package/.output/server/node_modules/postgres-date/index.js +116 -0
- package/.output/server/node_modules/postgres-date/package.json +33 -0
- package/.output/server/node_modules/postgres-interval/index.js +125 -0
- package/.output/server/node_modules/postgres-interval/package.json +36 -0
- package/.output/server/node_modules/redis-errors/index.js +7 -0
- package/.output/server/node_modules/redis-errors/lib/modern.js +59 -0
- package/.output/server/node_modules/redis-errors/lib/old.js +119 -0
- package/.output/server/node_modules/redis-errors/package.json +41 -0
- package/.output/server/node_modules/redis-parser/index.js +3 -0
- package/.output/server/node_modules/redis-parser/lib/parser.js +552 -0
- package/.output/server/node_modules/redis-parser/package.json +53 -0
- package/.output/server/node_modules/reflect-metadata/Reflect.js +1415 -0
- package/.output/server/node_modules/reflect-metadata/package.json +68 -0
- package/.output/server/node_modules/safe-buffer/index.js +65 -0
- package/.output/server/node_modules/safe-buffer/package.json +51 -0
- package/.output/server/node_modules/sha.js/hash.js +81 -0
- package/.output/server/node_modules/sha.js/index.js +15 -0
- package/.output/server/node_modules/sha.js/package.json +30 -0
- package/.output/server/node_modules/sha.js/sha.js +94 -0
- package/.output/server/node_modules/sha.js/sha1.js +99 -0
- package/.output/server/node_modules/sha.js/sha224.js +53 -0
- package/.output/server/node_modules/sha.js/sha256.js +135 -0
- package/.output/server/node_modules/sha.js/sha384.js +57 -0
- package/.output/server/node_modules/sha.js/sha512.js +260 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/split2/index.js +141 -0
- package/.output/server/node_modules/split2/package.json +39 -0
- package/.output/server/node_modules/sql-highlight/lib/escapeHtml.js +59 -0
- package/.output/server/node_modules/sql-highlight/lib/index.js +85 -0
- package/.output/server/node_modules/sql-highlight/lib/keywords.js +145 -0
- package/.output/server/node_modules/sql-highlight/package.json +49 -0
- package/.output/server/node_modules/sqlite3/build/Release/node_sqlite3.node +0 -0
- package/.output/server/node_modules/sqlite3/build/Release/node_sqlite3.node.bak +0 -0
- package/.output/server/node_modules/sqlite3/lib/sqlite3-binding.js +1 -0
- package/.output/server/node_modules/sqlite3/lib/sqlite3.js +207 -0
- package/.output/server/node_modules/sqlite3/lib/trace.js +38 -0
- package/.output/server/node_modules/sqlite3/package.json +89 -0
- package/.output/server/node_modules/standard-as-callback/built/index.js +41 -0
- package/.output/server/node_modules/standard-as-callback/built/utils.js +23 -0
- package/.output/server/node_modules/standard-as-callback/package.json +40 -0
- package/.output/server/node_modules/supports-color/index.js +152 -0
- package/.output/server/node_modules/supports-color/package.json +58 -0
- package/.output/server/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/typeorm/cache/DbQueryResultCache.js +264 -0
- package/.output/server/node_modules/typeorm/cache/QueryResultCacheFactory.js +42 -0
- package/.output/server/node_modules/typeorm/cache/RedisQueryResultCache.js +197 -0
- package/.output/server/node_modules/typeorm/common/DeepPartial.js +4 -0
- package/.output/server/node_modules/typeorm/common/EntityTarget.js +4 -0
- package/.output/server/node_modules/typeorm/common/MixedList.js +4 -0
- package/.output/server/node_modules/typeorm/common/ObjectLiteral.js +4 -0
- package/.output/server/node_modules/typeorm/common/ObjectType.js +4 -0
- package/.output/server/node_modules/typeorm/common/RelationType.js +4 -0
- package/.output/server/node_modules/typeorm/connection/Connection.js +16 -0
- package/.output/server/node_modules/typeorm/connection/ConnectionManager.js +66 -0
- package/.output/server/node_modules/typeorm/connection/ConnectionMetadataBuilder.js +74 -0
- package/.output/server/node_modules/typeorm/connection/ConnectionOptionsReader.js +198 -0
- package/.output/server/node_modules/typeorm/connection/options-reader/ConnectionOptionsEnvReader.js +111 -0
- package/.output/server/node_modules/typeorm/container.js +60 -0
- package/.output/server/node_modules/typeorm/data-source/DataSource.js +517 -0
- package/.output/server/node_modules/typeorm/decorator/Check.js +27 -0
- package/.output/server/node_modules/typeorm/decorator/EntityRepository.js +21 -0
- package/.output/server/node_modules/typeorm/decorator/Exclusion.js +27 -0
- package/.output/server/node_modules/typeorm/decorator/ForeignKey.js +44 -0
- package/.output/server/node_modules/typeorm/decorator/Generated.js +24 -0
- package/.output/server/node_modules/typeorm/decorator/Index.js +56 -0
- package/.output/server/node_modules/typeorm/decorator/Unique.js +50 -0
- package/.output/server/node_modules/typeorm/decorator/columns/Column.js +78 -0
- package/.output/server/node_modules/typeorm/decorator/columns/CreateDateColumn.js +21 -0
- package/.output/server/node_modules/typeorm/decorator/columns/DeleteDateColumn.js +20 -0
- package/.output/server/node_modules/typeorm/decorator/columns/ObjectIdColumn.js +27 -0
- package/.output/server/node_modules/typeorm/decorator/columns/PrimaryColumn.js +63 -0
- package/.output/server/node_modules/typeorm/decorator/columns/PrimaryGeneratedColumn.js +59 -0
- package/.output/server/node_modules/typeorm/decorator/columns/UpdateDateColumn.js +20 -0
- package/.output/server/node_modules/typeorm/decorator/columns/VersionColumn.js +21 -0
- package/.output/server/node_modules/typeorm/decorator/columns/ViewColumn.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/columns/VirtualColumn.js +49 -0
- package/.output/server/node_modules/typeorm/decorator/entity/ChildEntity.js +25 -0
- package/.output/server/node_modules/typeorm/decorator/entity/Entity.js +31 -0
- package/.output/server/node_modules/typeorm/decorator/entity/TableInheritance.js +22 -0
- package/.output/server/node_modules/typeorm/decorator/entity-view/ViewEntity.js +32 -0
- package/.output/server/node_modules/typeorm/decorator/listeners/AfterInsert.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/listeners/AfterLoad.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/listeners/AfterRecover.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/listeners/AfterRemove.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/listeners/AfterSoftRemove.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/listeners/AfterUpdate.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/listeners/BeforeInsert.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/listeners/BeforeRecover.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/listeners/BeforeRemove.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/listeners/BeforeSoftRemove.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/listeners/BeforeUpdate.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/listeners/EventSubscriber.js +17 -0
- package/.output/server/node_modules/typeorm/decorator/options/ColumnOptions.js +4 -0
- package/.output/server/node_modules/typeorm/decorator/options/EntityOptions.js +4 -0
- package/.output/server/node_modules/typeorm/decorator/options/IndexOptions.js +4 -0
- package/.output/server/node_modules/typeorm/decorator/options/JoinColumnOptions.js +4 -0
- package/.output/server/node_modules/typeorm/decorator/options/JoinTableOptions.js +4 -0
- package/.output/server/node_modules/typeorm/decorator/options/RelationOptions.js +4 -0
- package/.output/server/node_modules/typeorm/decorator/options/ValueTransformer.js +4 -0
- package/.output/server/node_modules/typeorm/decorator/relations/JoinColumn.js +27 -0
- package/.output/server/node_modules/typeorm/decorator/relations/JoinTable.js +34 -0
- package/.output/server/node_modules/typeorm/decorator/relations/ManyToMany.js +46 -0
- package/.output/server/node_modules/typeorm/decorator/relations/ManyToOne.js +46 -0
- package/.output/server/node_modules/typeorm/decorator/relations/OneToMany.js +37 -0
- package/.output/server/node_modules/typeorm/decorator/relations/OneToOne.js +45 -0
- package/.output/server/node_modules/typeorm/decorator/relations/RelationCount.js +23 -0
- package/.output/server/node_modules/typeorm/decorator/relations/RelationId.js +22 -0
- package/.output/server/node_modules/typeorm/decorator/tree/Tree.js +21 -0
- package/.output/server/node_modules/typeorm/decorator/tree/TreeChildren.js +34 -0
- package/.output/server/node_modules/typeorm/decorator/tree/TreeLevelColumn.js +19 -0
- package/.output/server/node_modules/typeorm/decorator/tree/TreeParent.js +33 -0
- package/.output/server/node_modules/typeorm/driver/DriverFactory.js +98 -0
- package/.output/server/node_modules/typeorm/driver/DriverUtils.js +228 -0
- package/.output/server/node_modules/typeorm/driver/Query.js +16 -0
- package/.output/server/node_modules/typeorm/driver/SqlInMemory.js +15 -0
- package/.output/server/node_modules/typeorm/driver/aurora-mysql/AuroraMysqlDriver.js +847 -0
- package/.output/server/node_modules/typeorm/driver/aurora-mysql/AuroraMysqlQueryRunner.js +1709 -0
- package/.output/server/node_modules/typeorm/driver/aurora-postgres/AuroraPostgresDriver.js +103 -0
- package/.output/server/node_modules/typeorm/driver/aurora-postgres/AuroraPostgresQueryRunner.js +146 -0
- package/.output/server/node_modules/typeorm/driver/better-sqlite3/BetterSqlite3Driver.js +153 -0
- package/.output/server/node_modules/typeorm/driver/better-sqlite3/BetterSqlite3QueryRunner.js +126 -0
- package/.output/server/node_modules/typeorm/driver/capacitor/CapacitorDriver.js +78 -0
- package/.output/server/node_modules/typeorm/driver/capacitor/CapacitorQueryRunner.js +98 -0
- package/.output/server/node_modules/typeorm/driver/cockroachdb/CockroachDriver.js +885 -0
- package/.output/server/node_modules/typeorm/driver/cockroachdb/CockroachQueryRunner.js +2453 -0
- package/.output/server/node_modules/typeorm/driver/cordova/CordovaDriver.js +76 -0
- package/.output/server/node_modules/typeorm/driver/cordova/CordovaQueryRunner.js +170 -0
- package/.output/server/node_modules/typeorm/driver/expo/ExpoDriver.js +29 -0
- package/.output/server/node_modules/typeorm/driver/expo/ExpoDriverFactory.js +22 -0
- package/.output/server/node_modules/typeorm/driver/expo/ExpoQueryRunner.js +65 -0
- package/.output/server/node_modules/typeorm/driver/expo/legacy/ExpoLegacyDriver.js +75 -0
- package/.output/server/node_modules/typeorm/driver/expo/legacy/ExpoLegacyQueryRunner.js +169 -0
- package/.output/server/node_modules/typeorm/driver/mongodb/MongoDriver.js +404 -0
- package/.output/server/node_modules/typeorm/driver/mongodb/MongoQueryRunner.js +701 -0
- package/.output/server/node_modules/typeorm/driver/mongodb/bson.typings.js +5 -0
- package/.output/server/node_modules/typeorm/driver/mongodb/typings.js +23 -0
- package/.output/server/node_modules/typeorm/driver/mysql/MysqlDriver.js +1105 -0
- package/.output/server/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js +2139 -0
- package/.output/server/node_modules/typeorm/driver/nativescript/NativescriptDriver.js +94 -0
- package/.output/server/node_modules/typeorm/driver/nativescript/NativescriptQueryRunner.js +92 -0
- package/.output/server/node_modules/typeorm/driver/oracle/OracleDriver.js +869 -0
- package/.output/server/node_modules/typeorm/driver/oracle/OracleQueryRunner.js +1884 -0
- package/.output/server/node_modules/typeorm/driver/postgres/PostgresDriver.js +1259 -0
- package/.output/server/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js +2729 -0
- package/.output/server/node_modules/typeorm/driver/react-native/ReactNativeDriver.js +728 -0
- package/.output/server/node_modules/typeorm/driver/react-native/ReactNativeQueryRunner.js +107 -0
- package/.output/server/node_modules/typeorm/driver/sap/SapDriver.js +681 -0
- package/.output/server/node_modules/typeorm/driver/sap/SapQueryRunner.js +2054 -0
- package/.output/server/node_modules/typeorm/driver/spanner/SpannerDriver.js +613 -0
- package/.output/server/node_modules/typeorm/driver/spanner/SpannerQueryRunner.js +1464 -0
- package/.output/server/node_modules/typeorm/driver/sqlite/SqliteDriver.js +174 -0
- package/.output/server/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js +124 -0
- package/.output/server/node_modules/typeorm/driver/sqlite-abstract/AbstractSqliteDriver.js +695 -0
- package/.output/server/node_modules/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.js +1511 -0
- package/.output/server/node_modules/typeorm/driver/sqljs/SqljsDriver.js +250 -0
- package/.output/server/node_modules/typeorm/driver/sqljs/SqljsQueryRunner.js +123 -0
- package/.output/server/node_modules/typeorm/driver/sqlserver/MssqlParameter.js +23 -0
- package/.output/server/node_modules/typeorm/driver/sqlserver/SqlServerDriver.js +922 -0
- package/.output/server/node_modules/typeorm/driver/sqlserver/SqlServerQueryRunner.js +2484 -0
- package/.output/server/node_modules/typeorm/driver/types/DatabaseType.js +4 -0
- package/.output/server/node_modules/typeorm/driver/types/GeoJsonTypes.js +4 -0
- package/.output/server/node_modules/typeorm/driver/types/MetadataTableType.js +11 -0
- package/.output/server/node_modules/typeorm/driver/types/ReplicationMode.js +4 -0
- package/.output/server/node_modules/typeorm/entity-manager/EntityManager.js +853 -0
- package/.output/server/node_modules/typeorm/entity-manager/EntityManagerFactory.js +24 -0
- package/.output/server/node_modules/typeorm/entity-manager/MongoEntityManager.js +668 -0
- package/.output/server/node_modules/typeorm/entity-manager/SqljsEntityManager.js +44 -0
- package/.output/server/node_modules/typeorm/entity-schema/EntitySchema.js +15 -0
- package/.output/server/node_modules/typeorm/entity-schema/EntitySchemaEmbeddedColumnOptions.js +8 -0
- package/.output/server/node_modules/typeorm/entity-schema/EntitySchemaEmbeddedError.js +18 -0
- package/.output/server/node_modules/typeorm/entity-schema/EntitySchemaOptions.js +11 -0
- package/.output/server/node_modules/typeorm/entity-schema/EntitySchemaTransformer.js +333 -0
- package/.output/server/node_modules/typeorm/error/AlreadyHasActiveConnectionError.js +16 -0
- package/.output/server/node_modules/typeorm/error/CannotAttachTreeChildrenEntityError.js +16 -0
- package/.output/server/node_modules/typeorm/error/CannotConnectAlreadyConnectedError.js +15 -0
- package/.output/server/node_modules/typeorm/error/CannotCreateEntityIdMapError.js +21 -0
- package/.output/server/node_modules/typeorm/error/CannotDetermineEntityError.js +16 -0
- package/.output/server/node_modules/typeorm/error/CannotExecuteNotConnectedError.js +15 -0
- package/.output/server/node_modules/typeorm/error/CannotGetEntityManagerNotConnectedError.js +15 -0
- package/.output/server/node_modules/typeorm/error/CannotReflectMethodParameterTypeError.js +18 -0
- package/.output/server/node_modules/typeorm/error/CircularRelationsError.js +16 -0
- package/.output/server/node_modules/typeorm/error/ColumnTypeUndefinedError.js +19 -0
- package/.output/server/node_modules/typeorm/error/ConnectionIsNotSetError.js +15 -0
- package/.output/server/node_modules/typeorm/error/ConnectionNotFoundError.js +15 -0
- package/.output/server/node_modules/typeorm/error/CustomRepositoryCannotInheritRepositoryError.js +18 -0
- package/.output/server/node_modules/typeorm/error/CustomRepositoryDoesNotHaveEntityError.js +18 -0
- package/.output/server/node_modules/typeorm/error/CustomRepositoryNotFoundError.js +18 -0
- package/.output/server/node_modules/typeorm/error/DataTypeNotSupportedError.js +14 -0
- package/.output/server/node_modules/typeorm/error/DriverOptionNotSetError.js +16 -0
- package/.output/server/node_modules/typeorm/error/DriverPackageNotInstalledError.js +16 -0
- package/.output/server/node_modules/typeorm/error/EntityMetadataNotFoundError.js +29 -0
- package/.output/server/node_modules/typeorm/error/EntityNotFoundError.js +42 -0
- package/.output/server/node_modules/typeorm/error/EntityPropertyNotFoundError.js +17 -0
- package/.output/server/node_modules/typeorm/error/FindRelationsNotFoundError.js +23 -0
- package/.output/server/node_modules/typeorm/error/ForbiddenTransactionModeOverrideError.js +16 -0
- package/.output/server/node_modules/typeorm/error/InitializedRelationError.js +20 -0
- package/.output/server/node_modules/typeorm/error/InsertValuesMissingError.js +16 -0
- package/.output/server/node_modules/typeorm/error/LimitOnUpdateNotSupportedError.js +15 -0
- package/.output/server/node_modules/typeorm/error/LockNotSupportedOnGivenDriverError.js +15 -0
- package/.output/server/node_modules/typeorm/error/MetadataAlreadyExistsError.js +18 -0
- package/.output/server/node_modules/typeorm/error/MetadataWithSuchNameAlreadyExistsError.js +16 -0
- package/.output/server/node_modules/typeorm/error/MissingDeleteDateColumnError.js +12 -0
- package/.output/server/node_modules/typeorm/error/MissingDriverError.js +16 -0
- package/.output/server/node_modules/typeorm/error/MissingJoinColumnError.js +23 -0
- package/.output/server/node_modules/typeorm/error/MissingJoinTableError.js +23 -0
- package/.output/server/node_modules/typeorm/error/MissingPrimaryColumnError.js +13 -0
- package/.output/server/node_modules/typeorm/error/MustBeEntityError.js +15 -0
- package/.output/server/node_modules/typeorm/error/NestedSetMultipleRootError.js +12 -0
- package/.output/server/node_modules/typeorm/error/NoConnectionForRepositoryError.js +16 -0
- package/.output/server/node_modules/typeorm/error/NoConnectionOptionError.js +16 -0
- package/.output/server/node_modules/typeorm/error/NoNeedToReleaseEntityManagerError.js +17 -0
- package/.output/server/node_modules/typeorm/error/NoVersionOrUpdateDateColumnError.js +15 -0
- package/.output/server/node_modules/typeorm/error/OffsetWithoutLimitNotSupportedError.js +17 -0
- package/.output/server/node_modules/typeorm/error/OptimisticLockCanNotBeUsedError.js +15 -0
- package/.output/server/node_modules/typeorm/error/OptimisticLockVersionMismatchError.js +15 -0
- package/.output/server/node_modules/typeorm/error/PersistedEntityNotFoundError.js +15 -0
- package/.output/server/node_modules/typeorm/error/PessimisticLockTransactionRequiredError.js +15 -0
- package/.output/server/node_modules/typeorm/error/PrimaryColumnCannotBeNullableError.js +13 -0
- package/.output/server/node_modules/typeorm/error/QueryFailedError.js +30 -0
- package/.output/server/node_modules/typeorm/error/QueryRunnerAlreadyReleasedError.js +12 -0
- package/.output/server/node_modules/typeorm/error/QueryRunnerProviderAlreadyReleasedError.js +16 -0
- package/.output/server/node_modules/typeorm/error/RepositoryNotTreeError.js +32 -0
- package/.output/server/node_modules/typeorm/error/ReturningStatementNotSupportedError.js +16 -0
- package/.output/server/node_modules/typeorm/error/SubjectRemovedAndUpdatedError.js +16 -0
- package/.output/server/node_modules/typeorm/error/SubjectWithoutIdentifierError.js +17 -0
- package/.output/server/node_modules/typeorm/error/TransactionAlreadyStartedError.js +15 -0
- package/.output/server/node_modules/typeorm/error/TransactionNotStartedError.js +15 -0
- package/.output/server/node_modules/typeorm/error/TreeRepositoryNotSupportedError.js +12 -0
- package/.output/server/node_modules/typeorm/error/TypeORMError.js +23 -0
- package/.output/server/node_modules/typeorm/error/UpdateValuesMissingError.js +12 -0
- package/.output/server/node_modules/typeorm/error/UsingJoinColumnIsNotAllowedError.js +13 -0
- package/.output/server/node_modules/typeorm/error/UsingJoinColumnOnlyOnOneSideAllowedError.js +14 -0
- package/.output/server/node_modules/typeorm/error/UsingJoinTableIsNotAllowedError.js +14 -0
- package/.output/server/node_modules/typeorm/error/UsingJoinTableOnlyOnOneSideAllowedError.js +14 -0
- package/.output/server/node_modules/typeorm/error/index.js +66 -0
- package/.output/server/node_modules/typeorm/find-options/EqualOperator.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/FindManyOptions.js +4 -0
- package/.output/server/node_modules/typeorm/find-options/FindOneOptions.js +4 -0
- package/.output/server/node_modules/typeorm/find-options/FindOperator.js +96 -0
- package/.output/server/node_modules/typeorm/find-options/FindOperatorType.js +4 -0
- package/.output/server/node_modules/typeorm/find-options/FindOptionsOrder.js +4 -0
- package/.output/server/node_modules/typeorm/find-options/FindOptionsRelations.js +4 -0
- package/.output/server/node_modules/typeorm/find-options/FindOptionsSelect.js +4 -0
- package/.output/server/node_modules/typeorm/find-options/FindOptionsUtils.js +350 -0
- package/.output/server/node_modules/typeorm/find-options/FindOptionsWhere.js +4 -0
- package/.output/server/node_modules/typeorm/find-options/FindTreeOptions.js +4 -0
- package/.output/server/node_modules/typeorm/find-options/JoinOptions.js +4 -0
- package/.output/server/node_modules/typeorm/find-options/OrderByCondition.js +4 -0
- package/.output/server/node_modules/typeorm/find-options/operator/And.js +9 -0
- package/.output/server/node_modules/typeorm/find-options/operator/Any.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/ArrayContainedBy.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/ArrayContains.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/ArrayOverlap.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/Between.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/Equal.js +17 -0
- package/.output/server/node_modules/typeorm/find-options/operator/ILike.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/In.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/IsNull.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/JsonContains.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/LessThan.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/LessThanOrEqual.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/Like.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/MoreThan.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/MoreThanOrEqual.js +13 -0
- package/.output/server/node_modules/typeorm/find-options/operator/Not.js +14 -0
- package/.output/server/node_modules/typeorm/find-options/operator/Or.js +9 -0
- package/.output/server/node_modules/typeorm/find-options/operator/Raw.js +12 -0
- package/.output/server/node_modules/typeorm/globals.js +182 -0
- package/.output/server/node_modules/typeorm/index.js +196 -0
- package/.output/server/node_modules/typeorm/index.mjs +422 -0
- package/.output/server/node_modules/typeorm/logger/AbstractLogger.js +238 -0
- package/.output/server/node_modules/typeorm/logger/AdvancedConsoleLogger.js +56 -0
- package/.output/server/node_modules/typeorm/logger/DebugLogger.js +78 -0
- package/.output/server/node_modules/typeorm/logger/FileLogger.js +88 -0
- package/.output/server/node_modules/typeorm/logger/FormattedConsoleLogger.js +59 -0
- package/.output/server/node_modules/typeorm/logger/Logger.js +4 -0
- package/.output/server/node_modules/typeorm/logger/LoggerFactory.js +39 -0
- package/.output/server/node_modules/typeorm/logger/LoggerOptions.js +4 -0
- package/.output/server/node_modules/typeorm/logger/SimpleConsoleLogger.js +57 -0
- package/.output/server/node_modules/typeorm/metadata/CheckMetadata.js +35 -0
- package/.output/server/node_modules/typeorm/metadata/ColumnMetadata.js +618 -0
- package/.output/server/node_modules/typeorm/metadata/EmbeddedMetadata.js +224 -0
- package/.output/server/node_modules/typeorm/metadata/EntityListenerMetadata.js +77 -0
- package/.output/server/node_modules/typeorm/metadata/EntityMetadata.js +692 -0
- package/.output/server/node_modules/typeorm/metadata/ExclusionMetadata.js +35 -0
- package/.output/server/node_modules/typeorm/metadata/ForeignKeyMetadata.js +57 -0
- package/.output/server/node_modules/typeorm/metadata/IndexMetadata.js +144 -0
- package/.output/server/node_modules/typeorm/metadata/RelationCountMetadata.js +39 -0
- package/.output/server/node_modules/typeorm/metadata/RelationIdMetadata.js +62 -0
- package/.output/server/node_modules/typeorm/metadata/RelationMetadata.js +440 -0
- package/.output/server/node_modules/typeorm/metadata/UniqueMetadata.js +101 -0
- package/.output/server/node_modules/typeorm/metadata/types/EventListenerTypes.js +22 -0
- package/.output/server/node_modules/typeorm/metadata-args/MetadataArgsStorage.js +236 -0
- package/.output/server/node_modules/typeorm/metadata-builder/ClosureJunctionEntityMetadataBuilder.js +145 -0
- package/.output/server/node_modules/typeorm/metadata-builder/EntityMetadataBuilder.js +838 -0
- package/.output/server/node_modules/typeorm/metadata-builder/EntityMetadataValidator.js +258 -0
- package/.output/server/node_modules/typeorm/metadata-builder/JunctionEntityMetadataBuilder.js +287 -0
- package/.output/server/node_modules/typeorm/metadata-builder/MetadataUtils.js +44 -0
- package/.output/server/node_modules/typeorm/metadata-builder/RelationJoinColumnBuilder.js +185 -0
- package/.output/server/node_modules/typeorm/migration/Migration.js +21 -0
- package/.output/server/node_modules/typeorm/migration/MigrationExecutor.js +534 -0
- package/.output/server/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.js +145 -0
- package/.output/server/node_modules/typeorm/naming-strategy/LegacyOracleNamingStrategy.js +50 -0
- package/.output/server/node_modules/typeorm/package.json +268 -0
- package/.output/server/node_modules/typeorm/persistence/EntityPersistExecutor.js +170 -0
- package/.output/server/node_modules/typeorm/persistence/Subject.js +239 -0
- package/.output/server/node_modules/typeorm/persistence/SubjectChangedColumnsComputer.js +216 -0
- package/.output/server/node_modules/typeorm/persistence/SubjectDatabaseEntityLoader.js +135 -0
- package/.output/server/node_modules/typeorm/persistence/SubjectExecutor.js +760 -0
- package/.output/server/node_modules/typeorm/persistence/SubjectTopologicalSorter.js +174 -0
- package/.output/server/node_modules/typeorm/persistence/subject-builder/CascadesSubjectBuilder.js +107 -0
- package/.output/server/node_modules/typeorm/persistence/subject-builder/ManyToManySubjectBuilder.js +218 -0
- package/.output/server/node_modules/typeorm/persistence/subject-builder/OneToManySubjectBuilder.js +181 -0
- package/.output/server/node_modules/typeorm/persistence/subject-builder/OneToOneInverseSideSubjectBuilder.js +155 -0
- package/.output/server/node_modules/typeorm/persistence/tree/ClosureSubjectExecutor.js +241 -0
- package/.output/server/node_modules/typeorm/persistence/tree/MaterializedPathSubjectExecutor.js +125 -0
- package/.output/server/node_modules/typeorm/persistence/tree/NestedSetSubjectExecutor.js +271 -0
- package/.output/server/node_modules/typeorm/platform/PlatformTools.js +243 -0
- package/.output/server/node_modules/typeorm/query-builder/Alias.js +29 -0
- package/.output/server/node_modules/typeorm/query-builder/Brackets.js +19 -0
- package/.output/server/node_modules/typeorm/query-builder/DeleteQueryBuilder.js +200 -0
- package/.output/server/node_modules/typeorm/query-builder/InsertQueryBuilder.js +745 -0
- package/.output/server/node_modules/typeorm/query-builder/JoinAttribute.js +175 -0
- package/.output/server/node_modules/typeorm/query-builder/NotBrackets.js +17 -0
- package/.output/server/node_modules/typeorm/query-builder/QueryBuilder.js +1139 -0
- package/.output/server/node_modules/typeorm/query-builder/QueryBuilderUtils.js +32 -0
- package/.output/server/node_modules/typeorm/query-builder/QueryExpressionMap.js +328 -0
- package/.output/server/node_modules/typeorm/query-builder/RelationIdLoader.js +503 -0
- package/.output/server/node_modules/typeorm/query-builder/RelationLoader.js +283 -0
- package/.output/server/node_modules/typeorm/query-builder/RelationQueryBuilder.js +155 -0
- package/.output/server/node_modules/typeorm/query-builder/RelationRemover.js +143 -0
- package/.output/server/node_modules/typeorm/query-builder/RelationUpdater.js +152 -0
- package/.output/server/node_modules/typeorm/query-builder/ReturningResultsEntityUpdator.js +176 -0
- package/.output/server/node_modules/typeorm/query-builder/SelectQueryBuilder.js +2656 -0
- package/.output/server/node_modules/typeorm/query-builder/SoftDeleteQueryBuilder.js +368 -0
- package/.output/server/node_modules/typeorm/query-builder/UpdateQueryBuilder.js +498 -0
- package/.output/server/node_modules/typeorm/query-builder/index.js +20 -0
- package/.output/server/node_modules/typeorm/query-builder/relation-count/RelationCountAttribute.js +80 -0
- package/.output/server/node_modules/typeorm/query-builder/relation-count/RelationCountLoader.js +168 -0
- package/.output/server/node_modules/typeorm/query-builder/relation-count/RelationCountMetadataToAttributeTransformer.js +55 -0
- package/.output/server/node_modules/typeorm/query-builder/relation-id/RelationIdAttribute.js +88 -0
- package/.output/server/node_modules/typeorm/query-builder/relation-id/RelationIdLoader.js +275 -0
- package/.output/server/node_modules/typeorm/query-builder/relation-id/RelationIdMetadataToAttributeTransformer.js +55 -0
- package/.output/server/node_modules/typeorm/query-builder/result/DeleteResult.js +17 -0
- package/.output/server/node_modules/typeorm/query-builder/result/InsertResult.js +28 -0
- package/.output/server/node_modules/typeorm/query-builder/result/UpdateResult.js +29 -0
- package/.output/server/node_modules/typeorm/query-builder/transformer/DocumentToEntityTransformer.js +196 -0
- package/.output/server/node_modules/typeorm/query-builder/transformer/PlainObjectToDatabaseEntityTransformer.js +112 -0
- package/.output/server/node_modules/typeorm/query-builder/transformer/PlainObjectToNewEntityTransformer.js +92 -0
- package/.output/server/node_modules/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer.js +447 -0
- package/.output/server/node_modules/typeorm/query-runner/BaseQueryRunner.js +454 -0
- package/.output/server/node_modules/typeorm/query-runner/QueryLock.js +28 -0
- package/.output/server/node_modules/typeorm/query-runner/QueryResult.js +17 -0
- package/.output/server/node_modules/typeorm/repository/AbstractRepository.js +92 -0
- package/.output/server/node_modules/typeorm/repository/BaseEntity.js +328 -0
- package/.output/server/node_modules/typeorm/repository/MongoRepository.js +305 -0
- package/.output/server/node_modules/typeorm/repository/RemoveOptions.js +4 -0
- package/.output/server/node_modules/typeorm/repository/Repository.js +379 -0
- package/.output/server/node_modules/typeorm/repository/SaveOptions.js +4 -0
- package/.output/server/node_modules/typeorm/repository/TreeRepository.js +255 -0
- package/.output/server/node_modules/typeorm/schema-builder/MongoSchemaBuilder.js +66 -0
- package/.output/server/node_modules/typeorm/schema-builder/RdbmsSchemaBuilder.js +929 -0
- package/.output/server/node_modules/typeorm/schema-builder/options/TableCheckOptions.js +4 -0
- package/.output/server/node_modules/typeorm/schema-builder/options/TableColumnOptions.js +4 -0
- package/.output/server/node_modules/typeorm/schema-builder/options/TableExclusionOptions.js +4 -0
- package/.output/server/node_modules/typeorm/schema-builder/options/TableForeignKeyOptions.js +4 -0
- package/.output/server/node_modules/typeorm/schema-builder/options/TableIndexOptions.js +4 -0
- package/.output/server/node_modules/typeorm/schema-builder/options/TableOptions.js +4 -0
- package/.output/server/node_modules/typeorm/schema-builder/options/TableUniqueOptions.js +4 -0
- package/.output/server/node_modules/typeorm/schema-builder/options/ViewOptions.js +4 -0
- package/.output/server/node_modules/typeorm/schema-builder/table/Table.js +296 -0
- package/.output/server/node_modules/typeorm/schema-builder/table/TableCheck.js +49 -0
- package/.output/server/node_modules/typeorm/schema-builder/table/TableColumn.js +117 -0
- package/.output/server/node_modules/typeorm/schema-builder/table/TableExclusion.js +43 -0
- package/.output/server/node_modules/typeorm/schema-builder/table/TableForeignKey.js +72 -0
- package/.output/server/node_modules/typeorm/schema-builder/table/TableIndex.js +68 -0
- package/.output/server/node_modules/typeorm/schema-builder/table/TableUnique.js +50 -0
- package/.output/server/node_modules/typeorm/schema-builder/util/TableUtils.js +41 -0
- package/.output/server/node_modules/typeorm/schema-builder/util/ViewUtils.js +27 -0
- package/.output/server/node_modules/typeorm/schema-builder/view/View.js +71 -0
- package/.output/server/node_modules/typeorm/subscriber/Broadcaster.js +660 -0
- package/.output/server/node_modules/typeorm/subscriber/BroadcasterResult.js +30 -0
- package/.output/server/node_modules/typeorm/subscriber/event/QueryEvent.js +4 -0
- package/.output/server/node_modules/typeorm/util/ApplyValueTransformers.js +25 -0
- package/.output/server/node_modules/typeorm/util/DateUtils.js +229 -0
- package/.output/server/node_modules/typeorm/util/DepGraph.js +230 -0
- package/.output/server/node_modules/typeorm/util/DirectoryExportedClassesLoader.js +65 -0
- package/.output/server/node_modules/typeorm/util/ImportUtils.js +66 -0
- package/.output/server/node_modules/typeorm/util/InstanceChecker.js +104 -0
- package/.output/server/node_modules/typeorm/util/ObjectUtils.js +49 -0
- package/.output/server/node_modules/typeorm/util/OrmUtils.js +443 -0
- package/.output/server/node_modules/typeorm/util/PathUtils.js +33 -0
- package/.output/server/node_modules/typeorm/util/RandomGenerator.js +154 -0
- package/.output/server/node_modules/typeorm/util/SqlTagUtils.js +43 -0
- package/.output/server/node_modules/typeorm/util/StringUtils.js +113 -0
- package/.output/server/node_modules/typeorm/util/TreeRepositoryUtils.js +67 -0
- package/.output/server/node_modules/typeorm/util/VersionUtils.js +27 -0
- package/.output/server/node_modules/typeorm/util/escapeRegExp.js +10 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +630 -0
- package/.output/server/node_modules/ufo/package.json +47 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +94 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +220 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.C13swrCa.mjs +48 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Cp0iF6eN.mjs +177 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DGkFBTYv.mjs +172 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DZbvapt-.mjs +70 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DeCxexjU.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +101 -0
- package/.output/server/node_modules/uuid/dist/cjs/index.js +31 -0
- package/.output/server/node_modules/uuid/dist/cjs/max.js +3 -0
- package/.output/server/node_modules/uuid/dist/cjs/md5.js +13 -0
- package/.output/server/node_modules/uuid/dist/cjs/native.js +4 -0
- package/.output/server/node_modules/uuid/dist/cjs/nil.js +3 -0
- package/.output/server/node_modules/uuid/dist/cjs/package.json +1 -0
- package/.output/server/node_modules/uuid/dist/cjs/parse.js +11 -0
- package/.output/server/node_modules/uuid/dist/cjs/regex.js +3 -0
- package/.output/server/node_modules/uuid/dist/cjs/rng.js +13 -0
- package/.output/server/node_modules/uuid/dist/cjs/sha1.js +13 -0
- package/.output/server/node_modules/uuid/dist/cjs/stringify.js +39 -0
- package/.output/server/node_modules/uuid/dist/cjs/v1.js +87 -0
- package/.output/server/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
- package/.output/server/node_modules/uuid/dist/cjs/v3.js +14 -0
- package/.output/server/node_modules/uuid/dist/cjs/v35.js +41 -0
- package/.output/server/node_modules/uuid/dist/cjs/v4.js +29 -0
- package/.output/server/node_modules/uuid/dist/cjs/v5.js +14 -0
- package/.output/server/node_modules/uuid/dist/cjs/v6.js +19 -0
- package/.output/server/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
- package/.output/server/node_modules/uuid/dist/cjs/v7.js +69 -0
- package/.output/server/node_modules/uuid/dist/cjs/validate.js +7 -0
- package/.output/server/node_modules/uuid/dist/cjs/version.js +10 -0
- package/.output/server/node_modules/uuid/package.json +132 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +196 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +50 -0
- package/.output/server/node_modules/xtend/mutable.js +17 -0
- package/.output/server/node_modules/xtend/package.json +55 -0
- package/.output/server/node_modules/zod/index.js +4 -0
- package/.output/server/node_modules/zod/package.json +135 -0
- package/.output/server/node_modules/zod/v3/ZodError.js +133 -0
- package/.output/server/node_modules/zod/v3/errors.js +9 -0
- package/.output/server/node_modules/zod/v3/external.js +6 -0
- package/.output/server/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/.output/server/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/.output/server/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/.output/server/node_modules/zod/v3/helpers/util.js +133 -0
- package/.output/server/node_modules/zod/v3/index.js +4 -0
- package/.output/server/node_modules/zod/v3/locales/en.js +109 -0
- package/.output/server/node_modules/zod/v3/package.json +6 -0
- package/.output/server/node_modules/zod/v3/types.js +3695 -0
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
- package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +48 -0
- package/.output/server/node_modules/zod/v4/classic/external.js +20 -0
- package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +584 -0
- package/.output/server/node_modules/zod/v4/classic/index.js +4 -0
- package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
- package/.output/server/node_modules/zod/v4/classic/package.json +6 -0
- package/.output/server/node_modules/zod/v4/classic/parse.js +15 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +1157 -0
- package/.output/server/node_modules/zod/v4/core/api.js +1082 -0
- package/.output/server/node_modules/zod/v4/core/checks.js +575 -0
- package/.output/server/node_modules/zod/v4/core/core.js +76 -0
- package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
- package/.output/server/node_modules/zod/v4/core/errors.js +182 -0
- package/.output/server/node_modules/zod/v4/core/index.js +16 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +605 -0
- package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
- package/.output/server/node_modules/zod/v4/core/package.json +6 -0
- package/.output/server/node_modules/zod/v4/core/parse.js +93 -0
- package/.output/server/node_modules/zod/v4/core/regexes.js +133 -0
- package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
- package/.output/server/node_modules/zod/v4/core/schemas.js +2095 -0
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +437 -0
- package/.output/server/node_modules/zod/v4/core/util.js +651 -0
- package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
- package/.output/server/node_modules/zod/v4/index.js +3 -0
- package/.output/server/node_modules/zod/v4/locales/ar.js +106 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +105 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +156 -0
- package/.output/server/node_modules/zod/v4/locales/bg.js +120 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/da.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/de.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/eo.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +132 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +114 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +112 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +214 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/hy.js +147 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +106 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +49 -0
- package/.output/server/node_modules/zod/v4/locales/is.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ja.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/ka.js +112 -0
- package/.output/server/node_modules/zod/v4/locales/kh.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/km.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/lt.js +203 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ota.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/package.json +6 -0
- package/.output/server/node_modules/zod/v4/locales/pl.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +114 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +156 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/ta.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +105 -0
- package/.output/server/node_modules/zod/v4/locales/ua.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/uk.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/uz.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/yo.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/.output/server/node_modules/zod/v4/package.json +6 -0
- package/.output/server/package.json +95 -0
- package/README.md +46 -0
- package/bin/cli.mjs +113 -0
- package/bin/entry.cjs +84 -0
- package/package.json +48 -0
|
@@ -0,0 +1,1415 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (C) Microsoft. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
var Reflect;
|
|
16
|
+
(function (Reflect) {
|
|
17
|
+
// Metadata Proposal
|
|
18
|
+
// https://rbuckton.github.io/reflect-metadata/
|
|
19
|
+
(function (factory) {
|
|
20
|
+
var root = typeof globalThis === "object" ? globalThis :
|
|
21
|
+
typeof global === "object" ? global :
|
|
22
|
+
typeof self === "object" ? self :
|
|
23
|
+
typeof this === "object" ? this :
|
|
24
|
+
sloppyModeThis();
|
|
25
|
+
var exporter = makeExporter(Reflect);
|
|
26
|
+
if (typeof root.Reflect !== "undefined") {
|
|
27
|
+
exporter = makeExporter(root.Reflect, exporter);
|
|
28
|
+
}
|
|
29
|
+
factory(exporter, root);
|
|
30
|
+
if (typeof root.Reflect === "undefined") {
|
|
31
|
+
root.Reflect = Reflect;
|
|
32
|
+
}
|
|
33
|
+
function makeExporter(target, previous) {
|
|
34
|
+
return function (key, value) {
|
|
35
|
+
Object.defineProperty(target, key, { configurable: true, writable: true, value: value });
|
|
36
|
+
if (previous)
|
|
37
|
+
previous(key, value);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function functionThis() {
|
|
41
|
+
try {
|
|
42
|
+
return Function("return this;")();
|
|
43
|
+
}
|
|
44
|
+
catch (_) { }
|
|
45
|
+
}
|
|
46
|
+
function indirectEvalThis() {
|
|
47
|
+
try {
|
|
48
|
+
return (void 0, eval)("(function() { return this; })()");
|
|
49
|
+
}
|
|
50
|
+
catch (_) { }
|
|
51
|
+
}
|
|
52
|
+
function sloppyModeThis() {
|
|
53
|
+
return functionThis() || indirectEvalThis();
|
|
54
|
+
}
|
|
55
|
+
})(function (exporter, root) {
|
|
56
|
+
var hasOwn = Object.prototype.hasOwnProperty;
|
|
57
|
+
// feature test for Symbol support
|
|
58
|
+
var supportsSymbol = typeof Symbol === "function";
|
|
59
|
+
var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== "undefined" ? Symbol.toPrimitive : "@@toPrimitive";
|
|
60
|
+
var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== "undefined" ? Symbol.iterator : "@@iterator";
|
|
61
|
+
var supportsCreate = typeof Object.create === "function"; // feature test for Object.create support
|
|
62
|
+
var supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support
|
|
63
|
+
var downLevel = !supportsCreate && !supportsProto;
|
|
64
|
+
var HashMap = {
|
|
65
|
+
// create an object in dictionary mode (a.k.a. "slow" mode in v8)
|
|
66
|
+
create: supportsCreate
|
|
67
|
+
? function () { return MakeDictionary(Object.create(null)); }
|
|
68
|
+
: supportsProto
|
|
69
|
+
? function () { return MakeDictionary({ __proto__: null }); }
|
|
70
|
+
: function () { return MakeDictionary({}); },
|
|
71
|
+
has: downLevel
|
|
72
|
+
? function (map, key) { return hasOwn.call(map, key); }
|
|
73
|
+
: function (map, key) { return key in map; },
|
|
74
|
+
get: downLevel
|
|
75
|
+
? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; }
|
|
76
|
+
: function (map, key) { return map[key]; },
|
|
77
|
+
};
|
|
78
|
+
// Load global or shim versions of Map, Set, and WeakMap
|
|
79
|
+
var functionPrototype = Object.getPrototypeOf(Function);
|
|
80
|
+
var _Map = typeof Map === "function" && typeof Map.prototype.entries === "function" ? Map : CreateMapPolyfill();
|
|
81
|
+
var _Set = typeof Set === "function" && typeof Set.prototype.entries === "function" ? Set : CreateSetPolyfill();
|
|
82
|
+
var _WeakMap = typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
|
|
83
|
+
var registrySymbol = supportsSymbol ? Symbol.for("@reflect-metadata:registry") : undefined;
|
|
84
|
+
var metadataRegistry = GetOrCreateMetadataRegistry();
|
|
85
|
+
var metadataProvider = CreateMetadataProvider(metadataRegistry);
|
|
86
|
+
/**
|
|
87
|
+
* Applies a set of decorators to a property of a target object.
|
|
88
|
+
* @param decorators An array of decorators.
|
|
89
|
+
* @param target The target object.
|
|
90
|
+
* @param propertyKey (Optional) The property key to decorate.
|
|
91
|
+
* @param attributes (Optional) The property descriptor for the target key.
|
|
92
|
+
* @remarks Decorators are applied in reverse order.
|
|
93
|
+
* @example
|
|
94
|
+
*
|
|
95
|
+
* class Example {
|
|
96
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
|
97
|
+
* // static staticProperty;
|
|
98
|
+
* // property;
|
|
99
|
+
*
|
|
100
|
+
* constructor(p) { }
|
|
101
|
+
* static staticMethod(p) { }
|
|
102
|
+
* method(p) { }
|
|
103
|
+
* }
|
|
104
|
+
*
|
|
105
|
+
* // constructor
|
|
106
|
+
* Example = Reflect.decorate(decoratorsArray, Example);
|
|
107
|
+
*
|
|
108
|
+
* // property (on constructor)
|
|
109
|
+
* Reflect.decorate(decoratorsArray, Example, "staticProperty");
|
|
110
|
+
*
|
|
111
|
+
* // property (on prototype)
|
|
112
|
+
* Reflect.decorate(decoratorsArray, Example.prototype, "property");
|
|
113
|
+
*
|
|
114
|
+
* // method (on constructor)
|
|
115
|
+
* Object.defineProperty(Example, "staticMethod",
|
|
116
|
+
* Reflect.decorate(decoratorsArray, Example, "staticMethod",
|
|
117
|
+
* Object.getOwnPropertyDescriptor(Example, "staticMethod")));
|
|
118
|
+
*
|
|
119
|
+
* // method (on prototype)
|
|
120
|
+
* Object.defineProperty(Example.prototype, "method",
|
|
121
|
+
* Reflect.decorate(decoratorsArray, Example.prototype, "method",
|
|
122
|
+
* Object.getOwnPropertyDescriptor(Example.prototype, "method")));
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
function decorate(decorators, target, propertyKey, attributes) {
|
|
126
|
+
if (!IsUndefined(propertyKey)) {
|
|
127
|
+
if (!IsArray(decorators))
|
|
128
|
+
throw new TypeError();
|
|
129
|
+
if (!IsObject(target))
|
|
130
|
+
throw new TypeError();
|
|
131
|
+
if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))
|
|
132
|
+
throw new TypeError();
|
|
133
|
+
if (IsNull(attributes))
|
|
134
|
+
attributes = undefined;
|
|
135
|
+
propertyKey = ToPropertyKey(propertyKey);
|
|
136
|
+
return DecorateProperty(decorators, target, propertyKey, attributes);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
if (!IsArray(decorators))
|
|
140
|
+
throw new TypeError();
|
|
141
|
+
if (!IsConstructor(target))
|
|
142
|
+
throw new TypeError();
|
|
143
|
+
return DecorateConstructor(decorators, target);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exporter("decorate", decorate);
|
|
147
|
+
// 4.1.2 Reflect.metadata(metadataKey, metadataValue)
|
|
148
|
+
// https://rbuckton.github.io/reflect-metadata/#reflect.metadata
|
|
149
|
+
/**
|
|
150
|
+
* A default metadata decorator factory that can be used on a class, class member, or parameter.
|
|
151
|
+
* @param metadataKey The key for the metadata entry.
|
|
152
|
+
* @param metadataValue The value for the metadata entry.
|
|
153
|
+
* @returns A decorator function.
|
|
154
|
+
* @remarks
|
|
155
|
+
* If `metadataKey` is already defined for the target and target key, the
|
|
156
|
+
* metadataValue for that key will be overwritten.
|
|
157
|
+
* @example
|
|
158
|
+
*
|
|
159
|
+
* // constructor
|
|
160
|
+
* @Reflect.metadata(key, value)
|
|
161
|
+
* class Example {
|
|
162
|
+
* }
|
|
163
|
+
*
|
|
164
|
+
* // property (on constructor, TypeScript only)
|
|
165
|
+
* class Example {
|
|
166
|
+
* @Reflect.metadata(key, value)
|
|
167
|
+
* static staticProperty;
|
|
168
|
+
* }
|
|
169
|
+
*
|
|
170
|
+
* // property (on prototype, TypeScript only)
|
|
171
|
+
* class Example {
|
|
172
|
+
* @Reflect.metadata(key, value)
|
|
173
|
+
* property;
|
|
174
|
+
* }
|
|
175
|
+
*
|
|
176
|
+
* // method (on constructor)
|
|
177
|
+
* class Example {
|
|
178
|
+
* @Reflect.metadata(key, value)
|
|
179
|
+
* static staticMethod() { }
|
|
180
|
+
* }
|
|
181
|
+
*
|
|
182
|
+
* // method (on prototype)
|
|
183
|
+
* class Example {
|
|
184
|
+
* @Reflect.metadata(key, value)
|
|
185
|
+
* method() { }
|
|
186
|
+
* }
|
|
187
|
+
*
|
|
188
|
+
*/
|
|
189
|
+
function metadata(metadataKey, metadataValue) {
|
|
190
|
+
function decorator(target, propertyKey) {
|
|
191
|
+
if (!IsObject(target))
|
|
192
|
+
throw new TypeError();
|
|
193
|
+
if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))
|
|
194
|
+
throw new TypeError();
|
|
195
|
+
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
|
|
196
|
+
}
|
|
197
|
+
return decorator;
|
|
198
|
+
}
|
|
199
|
+
exporter("metadata", metadata);
|
|
200
|
+
/**
|
|
201
|
+
* Define a unique metadata entry on the target.
|
|
202
|
+
* @param metadataKey A key used to store and retrieve metadata.
|
|
203
|
+
* @param metadataValue A value that contains attached metadata.
|
|
204
|
+
* @param target The target object on which to define metadata.
|
|
205
|
+
* @param propertyKey (Optional) The property key for the target.
|
|
206
|
+
* @example
|
|
207
|
+
*
|
|
208
|
+
* class Example {
|
|
209
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
|
210
|
+
* // static staticProperty;
|
|
211
|
+
* // property;
|
|
212
|
+
*
|
|
213
|
+
* constructor(p) { }
|
|
214
|
+
* static staticMethod(p) { }
|
|
215
|
+
* method(p) { }
|
|
216
|
+
* }
|
|
217
|
+
*
|
|
218
|
+
* // constructor
|
|
219
|
+
* Reflect.defineMetadata("custom:annotation", options, Example);
|
|
220
|
+
*
|
|
221
|
+
* // property (on constructor)
|
|
222
|
+
* Reflect.defineMetadata("custom:annotation", options, Example, "staticProperty");
|
|
223
|
+
*
|
|
224
|
+
* // property (on prototype)
|
|
225
|
+
* Reflect.defineMetadata("custom:annotation", options, Example.prototype, "property");
|
|
226
|
+
*
|
|
227
|
+
* // method (on constructor)
|
|
228
|
+
* Reflect.defineMetadata("custom:annotation", options, Example, "staticMethod");
|
|
229
|
+
*
|
|
230
|
+
* // method (on prototype)
|
|
231
|
+
* Reflect.defineMetadata("custom:annotation", options, Example.prototype, "method");
|
|
232
|
+
*
|
|
233
|
+
* // decorator factory as metadata-producing annotation.
|
|
234
|
+
* function MyAnnotation(options): Decorator {
|
|
235
|
+
* return (target, key?) => Reflect.defineMetadata("custom:annotation", options, target, key);
|
|
236
|
+
* }
|
|
237
|
+
*
|
|
238
|
+
*/
|
|
239
|
+
function defineMetadata(metadataKey, metadataValue, target, propertyKey) {
|
|
240
|
+
if (!IsObject(target))
|
|
241
|
+
throw new TypeError();
|
|
242
|
+
if (!IsUndefined(propertyKey))
|
|
243
|
+
propertyKey = ToPropertyKey(propertyKey);
|
|
244
|
+
return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
|
|
245
|
+
}
|
|
246
|
+
exporter("defineMetadata", defineMetadata);
|
|
247
|
+
/**
|
|
248
|
+
* Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.
|
|
249
|
+
* @param metadataKey A key used to store and retrieve metadata.
|
|
250
|
+
* @param target The target object on which the metadata is defined.
|
|
251
|
+
* @param propertyKey (Optional) The property key for the target.
|
|
252
|
+
* @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.
|
|
253
|
+
* @example
|
|
254
|
+
*
|
|
255
|
+
* class Example {
|
|
256
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
|
257
|
+
* // static staticProperty;
|
|
258
|
+
* // property;
|
|
259
|
+
*
|
|
260
|
+
* constructor(p) { }
|
|
261
|
+
* static staticMethod(p) { }
|
|
262
|
+
* method(p) { }
|
|
263
|
+
* }
|
|
264
|
+
*
|
|
265
|
+
* // constructor
|
|
266
|
+
* result = Reflect.hasMetadata("custom:annotation", Example);
|
|
267
|
+
*
|
|
268
|
+
* // property (on constructor)
|
|
269
|
+
* result = Reflect.hasMetadata("custom:annotation", Example, "staticProperty");
|
|
270
|
+
*
|
|
271
|
+
* // property (on prototype)
|
|
272
|
+
* result = Reflect.hasMetadata("custom:annotation", Example.prototype, "property");
|
|
273
|
+
*
|
|
274
|
+
* // method (on constructor)
|
|
275
|
+
* result = Reflect.hasMetadata("custom:annotation", Example, "staticMethod");
|
|
276
|
+
*
|
|
277
|
+
* // method (on prototype)
|
|
278
|
+
* result = Reflect.hasMetadata("custom:annotation", Example.prototype, "method");
|
|
279
|
+
*
|
|
280
|
+
*/
|
|
281
|
+
function hasMetadata(metadataKey, target, propertyKey) {
|
|
282
|
+
if (!IsObject(target))
|
|
283
|
+
throw new TypeError();
|
|
284
|
+
if (!IsUndefined(propertyKey))
|
|
285
|
+
propertyKey = ToPropertyKey(propertyKey);
|
|
286
|
+
return OrdinaryHasMetadata(metadataKey, target, propertyKey);
|
|
287
|
+
}
|
|
288
|
+
exporter("hasMetadata", hasMetadata);
|
|
289
|
+
/**
|
|
290
|
+
* Gets a value indicating whether the target object has the provided metadata key defined.
|
|
291
|
+
* @param metadataKey A key used to store and retrieve metadata.
|
|
292
|
+
* @param target The target object on which the metadata is defined.
|
|
293
|
+
* @param propertyKey (Optional) The property key for the target.
|
|
294
|
+
* @returns `true` if the metadata key was defined on the target object; otherwise, `false`.
|
|
295
|
+
* @example
|
|
296
|
+
*
|
|
297
|
+
* class Example {
|
|
298
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
|
299
|
+
* // static staticProperty;
|
|
300
|
+
* // property;
|
|
301
|
+
*
|
|
302
|
+
* constructor(p) { }
|
|
303
|
+
* static staticMethod(p) { }
|
|
304
|
+
* method(p) { }
|
|
305
|
+
* }
|
|
306
|
+
*
|
|
307
|
+
* // constructor
|
|
308
|
+
* result = Reflect.hasOwnMetadata("custom:annotation", Example);
|
|
309
|
+
*
|
|
310
|
+
* // property (on constructor)
|
|
311
|
+
* result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticProperty");
|
|
312
|
+
*
|
|
313
|
+
* // property (on prototype)
|
|
314
|
+
* result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "property");
|
|
315
|
+
*
|
|
316
|
+
* // method (on constructor)
|
|
317
|
+
* result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticMethod");
|
|
318
|
+
*
|
|
319
|
+
* // method (on prototype)
|
|
320
|
+
* result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "method");
|
|
321
|
+
*
|
|
322
|
+
*/
|
|
323
|
+
function hasOwnMetadata(metadataKey, target, propertyKey) {
|
|
324
|
+
if (!IsObject(target))
|
|
325
|
+
throw new TypeError();
|
|
326
|
+
if (!IsUndefined(propertyKey))
|
|
327
|
+
propertyKey = ToPropertyKey(propertyKey);
|
|
328
|
+
return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);
|
|
329
|
+
}
|
|
330
|
+
exporter("hasOwnMetadata", hasOwnMetadata);
|
|
331
|
+
/**
|
|
332
|
+
* Gets the metadata value for the provided metadata key on the target object or its prototype chain.
|
|
333
|
+
* @param metadataKey A key used to store and retrieve metadata.
|
|
334
|
+
* @param target The target object on which the metadata is defined.
|
|
335
|
+
* @param propertyKey (Optional) The property key for the target.
|
|
336
|
+
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
|
|
337
|
+
* @example
|
|
338
|
+
*
|
|
339
|
+
* class Example {
|
|
340
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
|
341
|
+
* // static staticProperty;
|
|
342
|
+
* // property;
|
|
343
|
+
*
|
|
344
|
+
* constructor(p) { }
|
|
345
|
+
* static staticMethod(p) { }
|
|
346
|
+
* method(p) { }
|
|
347
|
+
* }
|
|
348
|
+
*
|
|
349
|
+
* // constructor
|
|
350
|
+
* result = Reflect.getMetadata("custom:annotation", Example);
|
|
351
|
+
*
|
|
352
|
+
* // property (on constructor)
|
|
353
|
+
* result = Reflect.getMetadata("custom:annotation", Example, "staticProperty");
|
|
354
|
+
*
|
|
355
|
+
* // property (on prototype)
|
|
356
|
+
* result = Reflect.getMetadata("custom:annotation", Example.prototype, "property");
|
|
357
|
+
*
|
|
358
|
+
* // method (on constructor)
|
|
359
|
+
* result = Reflect.getMetadata("custom:annotation", Example, "staticMethod");
|
|
360
|
+
*
|
|
361
|
+
* // method (on prototype)
|
|
362
|
+
* result = Reflect.getMetadata("custom:annotation", Example.prototype, "method");
|
|
363
|
+
*
|
|
364
|
+
*/
|
|
365
|
+
function getMetadata(metadataKey, target, propertyKey) {
|
|
366
|
+
if (!IsObject(target))
|
|
367
|
+
throw new TypeError();
|
|
368
|
+
if (!IsUndefined(propertyKey))
|
|
369
|
+
propertyKey = ToPropertyKey(propertyKey);
|
|
370
|
+
return OrdinaryGetMetadata(metadataKey, target, propertyKey);
|
|
371
|
+
}
|
|
372
|
+
exporter("getMetadata", getMetadata);
|
|
373
|
+
/**
|
|
374
|
+
* Gets the metadata value for the provided metadata key on the target object.
|
|
375
|
+
* @param metadataKey A key used to store and retrieve metadata.
|
|
376
|
+
* @param target The target object on which the metadata is defined.
|
|
377
|
+
* @param propertyKey (Optional) The property key for the target.
|
|
378
|
+
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
|
|
379
|
+
* @example
|
|
380
|
+
*
|
|
381
|
+
* class Example {
|
|
382
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
|
383
|
+
* // static staticProperty;
|
|
384
|
+
* // property;
|
|
385
|
+
*
|
|
386
|
+
* constructor(p) { }
|
|
387
|
+
* static staticMethod(p) { }
|
|
388
|
+
* method(p) { }
|
|
389
|
+
* }
|
|
390
|
+
*
|
|
391
|
+
* // constructor
|
|
392
|
+
* result = Reflect.getOwnMetadata("custom:annotation", Example);
|
|
393
|
+
*
|
|
394
|
+
* // property (on constructor)
|
|
395
|
+
* result = Reflect.getOwnMetadata("custom:annotation", Example, "staticProperty");
|
|
396
|
+
*
|
|
397
|
+
* // property (on prototype)
|
|
398
|
+
* result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "property");
|
|
399
|
+
*
|
|
400
|
+
* // method (on constructor)
|
|
401
|
+
* result = Reflect.getOwnMetadata("custom:annotation", Example, "staticMethod");
|
|
402
|
+
*
|
|
403
|
+
* // method (on prototype)
|
|
404
|
+
* result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "method");
|
|
405
|
+
*
|
|
406
|
+
*/
|
|
407
|
+
function getOwnMetadata(metadataKey, target, propertyKey) {
|
|
408
|
+
if (!IsObject(target))
|
|
409
|
+
throw new TypeError();
|
|
410
|
+
if (!IsUndefined(propertyKey))
|
|
411
|
+
propertyKey = ToPropertyKey(propertyKey);
|
|
412
|
+
return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);
|
|
413
|
+
}
|
|
414
|
+
exporter("getOwnMetadata", getOwnMetadata);
|
|
415
|
+
/**
|
|
416
|
+
* Gets the metadata keys defined on the target object or its prototype chain.
|
|
417
|
+
* @param target The target object on which the metadata is defined.
|
|
418
|
+
* @param propertyKey (Optional) The property key for the target.
|
|
419
|
+
* @returns An array of unique metadata keys.
|
|
420
|
+
* @example
|
|
421
|
+
*
|
|
422
|
+
* class Example {
|
|
423
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
|
424
|
+
* // static staticProperty;
|
|
425
|
+
* // property;
|
|
426
|
+
*
|
|
427
|
+
* constructor(p) { }
|
|
428
|
+
* static staticMethod(p) { }
|
|
429
|
+
* method(p) { }
|
|
430
|
+
* }
|
|
431
|
+
*
|
|
432
|
+
* // constructor
|
|
433
|
+
* result = Reflect.getMetadataKeys(Example);
|
|
434
|
+
*
|
|
435
|
+
* // property (on constructor)
|
|
436
|
+
* result = Reflect.getMetadataKeys(Example, "staticProperty");
|
|
437
|
+
*
|
|
438
|
+
* // property (on prototype)
|
|
439
|
+
* result = Reflect.getMetadataKeys(Example.prototype, "property");
|
|
440
|
+
*
|
|
441
|
+
* // method (on constructor)
|
|
442
|
+
* result = Reflect.getMetadataKeys(Example, "staticMethod");
|
|
443
|
+
*
|
|
444
|
+
* // method (on prototype)
|
|
445
|
+
* result = Reflect.getMetadataKeys(Example.prototype, "method");
|
|
446
|
+
*
|
|
447
|
+
*/
|
|
448
|
+
function getMetadataKeys(target, propertyKey) {
|
|
449
|
+
if (!IsObject(target))
|
|
450
|
+
throw new TypeError();
|
|
451
|
+
if (!IsUndefined(propertyKey))
|
|
452
|
+
propertyKey = ToPropertyKey(propertyKey);
|
|
453
|
+
return OrdinaryMetadataKeys(target, propertyKey);
|
|
454
|
+
}
|
|
455
|
+
exporter("getMetadataKeys", getMetadataKeys);
|
|
456
|
+
/**
|
|
457
|
+
* Gets the unique metadata keys defined on the target object.
|
|
458
|
+
* @param target The target object on which the metadata is defined.
|
|
459
|
+
* @param propertyKey (Optional) The property key for the target.
|
|
460
|
+
* @returns An array of unique metadata keys.
|
|
461
|
+
* @example
|
|
462
|
+
*
|
|
463
|
+
* class Example {
|
|
464
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
|
465
|
+
* // static staticProperty;
|
|
466
|
+
* // property;
|
|
467
|
+
*
|
|
468
|
+
* constructor(p) { }
|
|
469
|
+
* static staticMethod(p) { }
|
|
470
|
+
* method(p) { }
|
|
471
|
+
* }
|
|
472
|
+
*
|
|
473
|
+
* // constructor
|
|
474
|
+
* result = Reflect.getOwnMetadataKeys(Example);
|
|
475
|
+
*
|
|
476
|
+
* // property (on constructor)
|
|
477
|
+
* result = Reflect.getOwnMetadataKeys(Example, "staticProperty");
|
|
478
|
+
*
|
|
479
|
+
* // property (on prototype)
|
|
480
|
+
* result = Reflect.getOwnMetadataKeys(Example.prototype, "property");
|
|
481
|
+
*
|
|
482
|
+
* // method (on constructor)
|
|
483
|
+
* result = Reflect.getOwnMetadataKeys(Example, "staticMethod");
|
|
484
|
+
*
|
|
485
|
+
* // method (on prototype)
|
|
486
|
+
* result = Reflect.getOwnMetadataKeys(Example.prototype, "method");
|
|
487
|
+
*
|
|
488
|
+
*/
|
|
489
|
+
function getOwnMetadataKeys(target, propertyKey) {
|
|
490
|
+
if (!IsObject(target))
|
|
491
|
+
throw new TypeError();
|
|
492
|
+
if (!IsUndefined(propertyKey))
|
|
493
|
+
propertyKey = ToPropertyKey(propertyKey);
|
|
494
|
+
return OrdinaryOwnMetadataKeys(target, propertyKey);
|
|
495
|
+
}
|
|
496
|
+
exporter("getOwnMetadataKeys", getOwnMetadataKeys);
|
|
497
|
+
/**
|
|
498
|
+
* Deletes the metadata entry from the target object with the provided key.
|
|
499
|
+
* @param metadataKey A key used to store and retrieve metadata.
|
|
500
|
+
* @param target The target object on which the metadata is defined.
|
|
501
|
+
* @param propertyKey (Optional) The property key for the target.
|
|
502
|
+
* @returns `true` if the metadata entry was found and deleted; otherwise, false.
|
|
503
|
+
* @example
|
|
504
|
+
*
|
|
505
|
+
* class Example {
|
|
506
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
|
507
|
+
* // static staticProperty;
|
|
508
|
+
* // property;
|
|
509
|
+
*
|
|
510
|
+
* constructor(p) { }
|
|
511
|
+
* static staticMethod(p) { }
|
|
512
|
+
* method(p) { }
|
|
513
|
+
* }
|
|
514
|
+
*
|
|
515
|
+
* // constructor
|
|
516
|
+
* result = Reflect.deleteMetadata("custom:annotation", Example);
|
|
517
|
+
*
|
|
518
|
+
* // property (on constructor)
|
|
519
|
+
* result = Reflect.deleteMetadata("custom:annotation", Example, "staticProperty");
|
|
520
|
+
*
|
|
521
|
+
* // property (on prototype)
|
|
522
|
+
* result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "property");
|
|
523
|
+
*
|
|
524
|
+
* // method (on constructor)
|
|
525
|
+
* result = Reflect.deleteMetadata("custom:annotation", Example, "staticMethod");
|
|
526
|
+
*
|
|
527
|
+
* // method (on prototype)
|
|
528
|
+
* result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "method");
|
|
529
|
+
*
|
|
530
|
+
*/
|
|
531
|
+
function deleteMetadata(metadataKey, target, propertyKey) {
|
|
532
|
+
if (!IsObject(target))
|
|
533
|
+
throw new TypeError();
|
|
534
|
+
if (!IsUndefined(propertyKey))
|
|
535
|
+
propertyKey = ToPropertyKey(propertyKey);
|
|
536
|
+
if (!IsObject(target))
|
|
537
|
+
throw new TypeError();
|
|
538
|
+
if (!IsUndefined(propertyKey))
|
|
539
|
+
propertyKey = ToPropertyKey(propertyKey);
|
|
540
|
+
var provider = GetMetadataProvider(target, propertyKey, /*Create*/ false);
|
|
541
|
+
if (IsUndefined(provider))
|
|
542
|
+
return false;
|
|
543
|
+
return provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey);
|
|
544
|
+
}
|
|
545
|
+
exporter("deleteMetadata", deleteMetadata);
|
|
546
|
+
function DecorateConstructor(decorators, target) {
|
|
547
|
+
for (var i = decorators.length - 1; i >= 0; --i) {
|
|
548
|
+
var decorator = decorators[i];
|
|
549
|
+
var decorated = decorator(target);
|
|
550
|
+
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
551
|
+
if (!IsConstructor(decorated))
|
|
552
|
+
throw new TypeError();
|
|
553
|
+
target = decorated;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
return target;
|
|
557
|
+
}
|
|
558
|
+
function DecorateProperty(decorators, target, propertyKey, descriptor) {
|
|
559
|
+
for (var i = decorators.length - 1; i >= 0; --i) {
|
|
560
|
+
var decorator = decorators[i];
|
|
561
|
+
var decorated = decorator(target, propertyKey, descriptor);
|
|
562
|
+
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
563
|
+
if (!IsObject(decorated))
|
|
564
|
+
throw new TypeError();
|
|
565
|
+
descriptor = decorated;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
return descriptor;
|
|
569
|
+
}
|
|
570
|
+
// 3.1.1.1 OrdinaryHasMetadata(MetadataKey, O, P)
|
|
571
|
+
// https://rbuckton.github.io/reflect-metadata/#ordinaryhasmetadata
|
|
572
|
+
function OrdinaryHasMetadata(MetadataKey, O, P) {
|
|
573
|
+
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
|
574
|
+
if (hasOwn)
|
|
575
|
+
return true;
|
|
576
|
+
var parent = OrdinaryGetPrototypeOf(O);
|
|
577
|
+
if (!IsNull(parent))
|
|
578
|
+
return OrdinaryHasMetadata(MetadataKey, parent, P);
|
|
579
|
+
return false;
|
|
580
|
+
}
|
|
581
|
+
// 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)
|
|
582
|
+
// https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata
|
|
583
|
+
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
|
|
584
|
+
var provider = GetMetadataProvider(O, P, /*Create*/ false);
|
|
585
|
+
if (IsUndefined(provider))
|
|
586
|
+
return false;
|
|
587
|
+
return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));
|
|
588
|
+
}
|
|
589
|
+
// 3.1.3.1 OrdinaryGetMetadata(MetadataKey, O, P)
|
|
590
|
+
// https://rbuckton.github.io/reflect-metadata/#ordinarygetmetadata
|
|
591
|
+
function OrdinaryGetMetadata(MetadataKey, O, P) {
|
|
592
|
+
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
|
593
|
+
if (hasOwn)
|
|
594
|
+
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
595
|
+
var parent = OrdinaryGetPrototypeOf(O);
|
|
596
|
+
if (!IsNull(parent))
|
|
597
|
+
return OrdinaryGetMetadata(MetadataKey, parent, P);
|
|
598
|
+
return undefined;
|
|
599
|
+
}
|
|
600
|
+
// 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)
|
|
601
|
+
// https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata
|
|
602
|
+
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
|
|
603
|
+
var provider = GetMetadataProvider(O, P, /*Create*/ false);
|
|
604
|
+
if (IsUndefined(provider))
|
|
605
|
+
return;
|
|
606
|
+
return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
607
|
+
}
|
|
608
|
+
// 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)
|
|
609
|
+
// https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata
|
|
610
|
+
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
|
|
611
|
+
var provider = GetMetadataProvider(O, P, /*Create*/ true);
|
|
612
|
+
provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);
|
|
613
|
+
}
|
|
614
|
+
// 3.1.6.1 OrdinaryMetadataKeys(O, P)
|
|
615
|
+
// https://rbuckton.github.io/reflect-metadata/#ordinarymetadatakeys
|
|
616
|
+
function OrdinaryMetadataKeys(O, P) {
|
|
617
|
+
var ownKeys = OrdinaryOwnMetadataKeys(O, P);
|
|
618
|
+
var parent = OrdinaryGetPrototypeOf(O);
|
|
619
|
+
if (parent === null)
|
|
620
|
+
return ownKeys;
|
|
621
|
+
var parentKeys = OrdinaryMetadataKeys(parent, P);
|
|
622
|
+
if (parentKeys.length <= 0)
|
|
623
|
+
return ownKeys;
|
|
624
|
+
if (ownKeys.length <= 0)
|
|
625
|
+
return parentKeys;
|
|
626
|
+
var set = new _Set();
|
|
627
|
+
var keys = [];
|
|
628
|
+
for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {
|
|
629
|
+
var key = ownKeys_1[_i];
|
|
630
|
+
var hasKey = set.has(key);
|
|
631
|
+
if (!hasKey) {
|
|
632
|
+
set.add(key);
|
|
633
|
+
keys.push(key);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) {
|
|
637
|
+
var key = parentKeys_1[_a];
|
|
638
|
+
var hasKey = set.has(key);
|
|
639
|
+
if (!hasKey) {
|
|
640
|
+
set.add(key);
|
|
641
|
+
keys.push(key);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
return keys;
|
|
645
|
+
}
|
|
646
|
+
// 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)
|
|
647
|
+
// https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys
|
|
648
|
+
function OrdinaryOwnMetadataKeys(O, P) {
|
|
649
|
+
var provider = GetMetadataProvider(O, P, /*create*/ false);
|
|
650
|
+
if (!provider) {
|
|
651
|
+
return [];
|
|
652
|
+
}
|
|
653
|
+
return provider.OrdinaryOwnMetadataKeys(O, P);
|
|
654
|
+
}
|
|
655
|
+
// 6 ECMAScript Data Types and Values
|
|
656
|
+
// https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values
|
|
657
|
+
function Type(x) {
|
|
658
|
+
if (x === null)
|
|
659
|
+
return 1 /* Null */;
|
|
660
|
+
switch (typeof x) {
|
|
661
|
+
case "undefined": return 0 /* Undefined */;
|
|
662
|
+
case "boolean": return 2 /* Boolean */;
|
|
663
|
+
case "string": return 3 /* String */;
|
|
664
|
+
case "symbol": return 4 /* Symbol */;
|
|
665
|
+
case "number": return 5 /* Number */;
|
|
666
|
+
case "object": return x === null ? 1 /* Null */ : 6 /* Object */;
|
|
667
|
+
default: return 6 /* Object */;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
// 6.1.1 The Undefined Type
|
|
671
|
+
// https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type
|
|
672
|
+
function IsUndefined(x) {
|
|
673
|
+
return x === undefined;
|
|
674
|
+
}
|
|
675
|
+
// 6.1.2 The Null Type
|
|
676
|
+
// https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type
|
|
677
|
+
function IsNull(x) {
|
|
678
|
+
return x === null;
|
|
679
|
+
}
|
|
680
|
+
// 6.1.5 The Symbol Type
|
|
681
|
+
// https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type
|
|
682
|
+
function IsSymbol(x) {
|
|
683
|
+
return typeof x === "symbol";
|
|
684
|
+
}
|
|
685
|
+
// 6.1.7 The Object Type
|
|
686
|
+
// https://tc39.github.io/ecma262/#sec-object-type
|
|
687
|
+
function IsObject(x) {
|
|
688
|
+
return typeof x === "object" ? x !== null : typeof x === "function";
|
|
689
|
+
}
|
|
690
|
+
// 7.1 Type Conversion
|
|
691
|
+
// https://tc39.github.io/ecma262/#sec-type-conversion
|
|
692
|
+
// 7.1.1 ToPrimitive(input [, PreferredType])
|
|
693
|
+
// https://tc39.github.io/ecma262/#sec-toprimitive
|
|
694
|
+
function ToPrimitive(input, PreferredType) {
|
|
695
|
+
switch (Type(input)) {
|
|
696
|
+
case 0 /* Undefined */: return input;
|
|
697
|
+
case 1 /* Null */: return input;
|
|
698
|
+
case 2 /* Boolean */: return input;
|
|
699
|
+
case 3 /* String */: return input;
|
|
700
|
+
case 4 /* Symbol */: return input;
|
|
701
|
+
case 5 /* Number */: return input;
|
|
702
|
+
}
|
|
703
|
+
var hint = PreferredType === 3 /* String */ ? "string" : PreferredType === 5 /* Number */ ? "number" : "default";
|
|
704
|
+
var exoticToPrim = GetMethod(input, toPrimitiveSymbol);
|
|
705
|
+
if (exoticToPrim !== undefined) {
|
|
706
|
+
var result = exoticToPrim.call(input, hint);
|
|
707
|
+
if (IsObject(result))
|
|
708
|
+
throw new TypeError();
|
|
709
|
+
return result;
|
|
710
|
+
}
|
|
711
|
+
return OrdinaryToPrimitive(input, hint === "default" ? "number" : hint);
|
|
712
|
+
}
|
|
713
|
+
// 7.1.1.1 OrdinaryToPrimitive(O, hint)
|
|
714
|
+
// https://tc39.github.io/ecma262/#sec-ordinarytoprimitive
|
|
715
|
+
function OrdinaryToPrimitive(O, hint) {
|
|
716
|
+
if (hint === "string") {
|
|
717
|
+
var toString_1 = O.toString;
|
|
718
|
+
if (IsCallable(toString_1)) {
|
|
719
|
+
var result = toString_1.call(O);
|
|
720
|
+
if (!IsObject(result))
|
|
721
|
+
return result;
|
|
722
|
+
}
|
|
723
|
+
var valueOf = O.valueOf;
|
|
724
|
+
if (IsCallable(valueOf)) {
|
|
725
|
+
var result = valueOf.call(O);
|
|
726
|
+
if (!IsObject(result))
|
|
727
|
+
return result;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
else {
|
|
731
|
+
var valueOf = O.valueOf;
|
|
732
|
+
if (IsCallable(valueOf)) {
|
|
733
|
+
var result = valueOf.call(O);
|
|
734
|
+
if (!IsObject(result))
|
|
735
|
+
return result;
|
|
736
|
+
}
|
|
737
|
+
var toString_2 = O.toString;
|
|
738
|
+
if (IsCallable(toString_2)) {
|
|
739
|
+
var result = toString_2.call(O);
|
|
740
|
+
if (!IsObject(result))
|
|
741
|
+
return result;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
throw new TypeError();
|
|
745
|
+
}
|
|
746
|
+
// 7.1.2 ToBoolean(argument)
|
|
747
|
+
// https://tc39.github.io/ecma262/2016/#sec-toboolean
|
|
748
|
+
function ToBoolean(argument) {
|
|
749
|
+
return !!argument;
|
|
750
|
+
}
|
|
751
|
+
// 7.1.12 ToString(argument)
|
|
752
|
+
// https://tc39.github.io/ecma262/#sec-tostring
|
|
753
|
+
function ToString(argument) {
|
|
754
|
+
return "" + argument;
|
|
755
|
+
}
|
|
756
|
+
// 7.1.14 ToPropertyKey(argument)
|
|
757
|
+
// https://tc39.github.io/ecma262/#sec-topropertykey
|
|
758
|
+
function ToPropertyKey(argument) {
|
|
759
|
+
var key = ToPrimitive(argument, 3 /* String */);
|
|
760
|
+
if (IsSymbol(key))
|
|
761
|
+
return key;
|
|
762
|
+
return ToString(key);
|
|
763
|
+
}
|
|
764
|
+
// 7.2 Testing and Comparison Operations
|
|
765
|
+
// https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations
|
|
766
|
+
// 7.2.2 IsArray(argument)
|
|
767
|
+
// https://tc39.github.io/ecma262/#sec-isarray
|
|
768
|
+
function IsArray(argument) {
|
|
769
|
+
return Array.isArray
|
|
770
|
+
? Array.isArray(argument)
|
|
771
|
+
: argument instanceof Object
|
|
772
|
+
? argument instanceof Array
|
|
773
|
+
: Object.prototype.toString.call(argument) === "[object Array]";
|
|
774
|
+
}
|
|
775
|
+
// 7.2.3 IsCallable(argument)
|
|
776
|
+
// https://tc39.github.io/ecma262/#sec-iscallable
|
|
777
|
+
function IsCallable(argument) {
|
|
778
|
+
// NOTE: This is an approximation as we cannot check for [[Call]] internal method.
|
|
779
|
+
return typeof argument === "function";
|
|
780
|
+
}
|
|
781
|
+
// 7.2.4 IsConstructor(argument)
|
|
782
|
+
// https://tc39.github.io/ecma262/#sec-isconstructor
|
|
783
|
+
function IsConstructor(argument) {
|
|
784
|
+
// NOTE: This is an approximation as we cannot check for [[Construct]] internal method.
|
|
785
|
+
return typeof argument === "function";
|
|
786
|
+
}
|
|
787
|
+
// 7.2.7 IsPropertyKey(argument)
|
|
788
|
+
// https://tc39.github.io/ecma262/#sec-ispropertykey
|
|
789
|
+
function IsPropertyKey(argument) {
|
|
790
|
+
switch (Type(argument)) {
|
|
791
|
+
case 3 /* String */: return true;
|
|
792
|
+
case 4 /* Symbol */: return true;
|
|
793
|
+
default: return false;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
function SameValueZero(x, y) {
|
|
797
|
+
return x === y || x !== x && y !== y;
|
|
798
|
+
}
|
|
799
|
+
// 7.3 Operations on Objects
|
|
800
|
+
// https://tc39.github.io/ecma262/#sec-operations-on-objects
|
|
801
|
+
// 7.3.9 GetMethod(V, P)
|
|
802
|
+
// https://tc39.github.io/ecma262/#sec-getmethod
|
|
803
|
+
function GetMethod(V, P) {
|
|
804
|
+
var func = V[P];
|
|
805
|
+
if (func === undefined || func === null)
|
|
806
|
+
return undefined;
|
|
807
|
+
if (!IsCallable(func))
|
|
808
|
+
throw new TypeError();
|
|
809
|
+
return func;
|
|
810
|
+
}
|
|
811
|
+
// 7.4 Operations on Iterator Objects
|
|
812
|
+
// https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects
|
|
813
|
+
function GetIterator(obj) {
|
|
814
|
+
var method = GetMethod(obj, iteratorSymbol);
|
|
815
|
+
if (!IsCallable(method))
|
|
816
|
+
throw new TypeError(); // from Call
|
|
817
|
+
var iterator = method.call(obj);
|
|
818
|
+
if (!IsObject(iterator))
|
|
819
|
+
throw new TypeError();
|
|
820
|
+
return iterator;
|
|
821
|
+
}
|
|
822
|
+
// 7.4.4 IteratorValue(iterResult)
|
|
823
|
+
// https://tc39.github.io/ecma262/2016/#sec-iteratorvalue
|
|
824
|
+
function IteratorValue(iterResult) {
|
|
825
|
+
return iterResult.value;
|
|
826
|
+
}
|
|
827
|
+
// 7.4.5 IteratorStep(iterator)
|
|
828
|
+
// https://tc39.github.io/ecma262/#sec-iteratorstep
|
|
829
|
+
function IteratorStep(iterator) {
|
|
830
|
+
var result = iterator.next();
|
|
831
|
+
return result.done ? false : result;
|
|
832
|
+
}
|
|
833
|
+
// 7.4.6 IteratorClose(iterator, completion)
|
|
834
|
+
// https://tc39.github.io/ecma262/#sec-iteratorclose
|
|
835
|
+
function IteratorClose(iterator) {
|
|
836
|
+
var f = iterator["return"];
|
|
837
|
+
if (f)
|
|
838
|
+
f.call(iterator);
|
|
839
|
+
}
|
|
840
|
+
// 9.1 Ordinary Object Internal Methods and Internal Slots
|
|
841
|
+
// https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots
|
|
842
|
+
// 9.1.1.1 OrdinaryGetPrototypeOf(O)
|
|
843
|
+
// https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof
|
|
844
|
+
function OrdinaryGetPrototypeOf(O) {
|
|
845
|
+
var proto = Object.getPrototypeOf(O);
|
|
846
|
+
if (typeof O !== "function" || O === functionPrototype)
|
|
847
|
+
return proto;
|
|
848
|
+
// TypeScript doesn't set __proto__ in ES5, as it's non-standard.
|
|
849
|
+
// Try to determine the superclass constructor. Compatible implementations
|
|
850
|
+
// must either set __proto__ on a subclass constructor to the superclass constructor,
|
|
851
|
+
// or ensure each class has a valid `constructor` property on its prototype that
|
|
852
|
+
// points back to the constructor.
|
|
853
|
+
// If this is not the same as Function.[[Prototype]], then this is definately inherited.
|
|
854
|
+
// This is the case when in ES6 or when using __proto__ in a compatible browser.
|
|
855
|
+
if (proto !== functionPrototype)
|
|
856
|
+
return proto;
|
|
857
|
+
// If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.
|
|
858
|
+
var prototype = O.prototype;
|
|
859
|
+
var prototypeProto = prototype && Object.getPrototypeOf(prototype);
|
|
860
|
+
if (prototypeProto == null || prototypeProto === Object.prototype)
|
|
861
|
+
return proto;
|
|
862
|
+
// If the constructor was not a function, then we cannot determine the heritage.
|
|
863
|
+
var constructor = prototypeProto.constructor;
|
|
864
|
+
if (typeof constructor !== "function")
|
|
865
|
+
return proto;
|
|
866
|
+
// If we have some kind of self-reference, then we cannot determine the heritage.
|
|
867
|
+
if (constructor === O)
|
|
868
|
+
return proto;
|
|
869
|
+
// we have a pretty good guess at the heritage.
|
|
870
|
+
return constructor;
|
|
871
|
+
}
|
|
872
|
+
// Global metadata registry
|
|
873
|
+
// - Allows `import "reflect-metadata"` and `import "reflect-metadata/no-conflict"` to interoperate.
|
|
874
|
+
// - Uses isolated metadata if `Reflect` is frozen before the registry can be installed.
|
|
875
|
+
/**
|
|
876
|
+
* Creates a registry used to allow multiple `reflect-metadata` providers.
|
|
877
|
+
*/
|
|
878
|
+
function CreateMetadataRegistry() {
|
|
879
|
+
var fallback;
|
|
880
|
+
if (!IsUndefined(registrySymbol) &&
|
|
881
|
+
typeof root.Reflect !== "undefined" &&
|
|
882
|
+
!(registrySymbol in root.Reflect) &&
|
|
883
|
+
typeof root.Reflect.defineMetadata === "function") {
|
|
884
|
+
// interoperate with older version of `reflect-metadata` that did not support a registry.
|
|
885
|
+
fallback = CreateFallbackProvider(root.Reflect);
|
|
886
|
+
}
|
|
887
|
+
var first;
|
|
888
|
+
var second;
|
|
889
|
+
var rest;
|
|
890
|
+
var targetProviderMap = new _WeakMap();
|
|
891
|
+
var registry = {
|
|
892
|
+
registerProvider: registerProvider,
|
|
893
|
+
getProvider: getProvider,
|
|
894
|
+
setProvider: setProvider,
|
|
895
|
+
};
|
|
896
|
+
return registry;
|
|
897
|
+
function registerProvider(provider) {
|
|
898
|
+
if (!Object.isExtensible(registry)) {
|
|
899
|
+
throw new Error("Cannot add provider to a frozen registry.");
|
|
900
|
+
}
|
|
901
|
+
switch (true) {
|
|
902
|
+
case fallback === provider: break;
|
|
903
|
+
case IsUndefined(first):
|
|
904
|
+
first = provider;
|
|
905
|
+
break;
|
|
906
|
+
case first === provider: break;
|
|
907
|
+
case IsUndefined(second):
|
|
908
|
+
second = provider;
|
|
909
|
+
break;
|
|
910
|
+
case second === provider: break;
|
|
911
|
+
default:
|
|
912
|
+
if (rest === undefined)
|
|
913
|
+
rest = new _Set();
|
|
914
|
+
rest.add(provider);
|
|
915
|
+
break;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
function getProviderNoCache(O, P) {
|
|
919
|
+
if (!IsUndefined(first)) {
|
|
920
|
+
if (first.isProviderFor(O, P))
|
|
921
|
+
return first;
|
|
922
|
+
if (!IsUndefined(second)) {
|
|
923
|
+
if (second.isProviderFor(O, P))
|
|
924
|
+
return first;
|
|
925
|
+
if (!IsUndefined(rest)) {
|
|
926
|
+
var iterator = GetIterator(rest);
|
|
927
|
+
while (true) {
|
|
928
|
+
var next = IteratorStep(iterator);
|
|
929
|
+
if (!next) {
|
|
930
|
+
return undefined;
|
|
931
|
+
}
|
|
932
|
+
var provider = IteratorValue(next);
|
|
933
|
+
if (provider.isProviderFor(O, P)) {
|
|
934
|
+
IteratorClose(iterator);
|
|
935
|
+
return provider;
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
if (!IsUndefined(fallback) && fallback.isProviderFor(O, P)) {
|
|
942
|
+
return fallback;
|
|
943
|
+
}
|
|
944
|
+
return undefined;
|
|
945
|
+
}
|
|
946
|
+
function getProvider(O, P) {
|
|
947
|
+
var providerMap = targetProviderMap.get(O);
|
|
948
|
+
var provider;
|
|
949
|
+
if (!IsUndefined(providerMap)) {
|
|
950
|
+
provider = providerMap.get(P);
|
|
951
|
+
}
|
|
952
|
+
if (!IsUndefined(provider)) {
|
|
953
|
+
return provider;
|
|
954
|
+
}
|
|
955
|
+
provider = getProviderNoCache(O, P);
|
|
956
|
+
if (!IsUndefined(provider)) {
|
|
957
|
+
if (IsUndefined(providerMap)) {
|
|
958
|
+
providerMap = new _Map();
|
|
959
|
+
targetProviderMap.set(O, providerMap);
|
|
960
|
+
}
|
|
961
|
+
providerMap.set(P, provider);
|
|
962
|
+
}
|
|
963
|
+
return provider;
|
|
964
|
+
}
|
|
965
|
+
function hasProvider(provider) {
|
|
966
|
+
if (IsUndefined(provider))
|
|
967
|
+
throw new TypeError();
|
|
968
|
+
return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);
|
|
969
|
+
}
|
|
970
|
+
function setProvider(O, P, provider) {
|
|
971
|
+
if (!hasProvider(provider)) {
|
|
972
|
+
throw new Error("Metadata provider not registered.");
|
|
973
|
+
}
|
|
974
|
+
var existingProvider = getProvider(O, P);
|
|
975
|
+
if (existingProvider !== provider) {
|
|
976
|
+
if (!IsUndefined(existingProvider)) {
|
|
977
|
+
return false;
|
|
978
|
+
}
|
|
979
|
+
var providerMap = targetProviderMap.get(O);
|
|
980
|
+
if (IsUndefined(providerMap)) {
|
|
981
|
+
providerMap = new _Map();
|
|
982
|
+
targetProviderMap.set(O, providerMap);
|
|
983
|
+
}
|
|
984
|
+
providerMap.set(P, provider);
|
|
985
|
+
}
|
|
986
|
+
return true;
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* Gets or creates the shared registry of metadata providers.
|
|
991
|
+
*/
|
|
992
|
+
function GetOrCreateMetadataRegistry() {
|
|
993
|
+
var metadataRegistry;
|
|
994
|
+
if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {
|
|
995
|
+
metadataRegistry = root.Reflect[registrySymbol];
|
|
996
|
+
}
|
|
997
|
+
if (IsUndefined(metadataRegistry)) {
|
|
998
|
+
metadataRegistry = CreateMetadataRegistry();
|
|
999
|
+
}
|
|
1000
|
+
if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {
|
|
1001
|
+
Object.defineProperty(root.Reflect, registrySymbol, {
|
|
1002
|
+
enumerable: false,
|
|
1003
|
+
configurable: false,
|
|
1004
|
+
writable: false,
|
|
1005
|
+
value: metadataRegistry
|
|
1006
|
+
});
|
|
1007
|
+
}
|
|
1008
|
+
return metadataRegistry;
|
|
1009
|
+
}
|
|
1010
|
+
function CreateMetadataProvider(registry) {
|
|
1011
|
+
// [[Metadata]] internal slot
|
|
1012
|
+
// https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots
|
|
1013
|
+
var metadata = new _WeakMap();
|
|
1014
|
+
var provider = {
|
|
1015
|
+
isProviderFor: function (O, P) {
|
|
1016
|
+
var targetMetadata = metadata.get(O);
|
|
1017
|
+
if (IsUndefined(targetMetadata))
|
|
1018
|
+
return false;
|
|
1019
|
+
return targetMetadata.has(P);
|
|
1020
|
+
},
|
|
1021
|
+
OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata,
|
|
1022
|
+
OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata,
|
|
1023
|
+
OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata,
|
|
1024
|
+
OrdinaryOwnMetadataKeys: OrdinaryOwnMetadataKeys,
|
|
1025
|
+
OrdinaryDeleteMetadata: OrdinaryDeleteMetadata,
|
|
1026
|
+
};
|
|
1027
|
+
metadataRegistry.registerProvider(provider);
|
|
1028
|
+
return provider;
|
|
1029
|
+
function GetOrCreateMetadataMap(O, P, Create) {
|
|
1030
|
+
var targetMetadata = metadata.get(O);
|
|
1031
|
+
var createdTargetMetadata = false;
|
|
1032
|
+
if (IsUndefined(targetMetadata)) {
|
|
1033
|
+
if (!Create)
|
|
1034
|
+
return undefined;
|
|
1035
|
+
targetMetadata = new _Map();
|
|
1036
|
+
metadata.set(O, targetMetadata);
|
|
1037
|
+
createdTargetMetadata = true;
|
|
1038
|
+
}
|
|
1039
|
+
var metadataMap = targetMetadata.get(P);
|
|
1040
|
+
if (IsUndefined(metadataMap)) {
|
|
1041
|
+
if (!Create)
|
|
1042
|
+
return undefined;
|
|
1043
|
+
metadataMap = new _Map();
|
|
1044
|
+
targetMetadata.set(P, metadataMap);
|
|
1045
|
+
if (!registry.setProvider(O, P, provider)) {
|
|
1046
|
+
targetMetadata.delete(P);
|
|
1047
|
+
if (createdTargetMetadata) {
|
|
1048
|
+
metadata.delete(O);
|
|
1049
|
+
}
|
|
1050
|
+
throw new Error("Wrong provider for target.");
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
return metadataMap;
|
|
1054
|
+
}
|
|
1055
|
+
// 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)
|
|
1056
|
+
// https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata
|
|
1057
|
+
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
|
|
1058
|
+
var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);
|
|
1059
|
+
if (IsUndefined(metadataMap))
|
|
1060
|
+
return false;
|
|
1061
|
+
return ToBoolean(metadataMap.has(MetadataKey));
|
|
1062
|
+
}
|
|
1063
|
+
// 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)
|
|
1064
|
+
// https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata
|
|
1065
|
+
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
|
|
1066
|
+
var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);
|
|
1067
|
+
if (IsUndefined(metadataMap))
|
|
1068
|
+
return undefined;
|
|
1069
|
+
return metadataMap.get(MetadataKey);
|
|
1070
|
+
}
|
|
1071
|
+
// 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)
|
|
1072
|
+
// https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata
|
|
1073
|
+
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
|
|
1074
|
+
var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ true);
|
|
1075
|
+
metadataMap.set(MetadataKey, MetadataValue);
|
|
1076
|
+
}
|
|
1077
|
+
// 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)
|
|
1078
|
+
// https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys
|
|
1079
|
+
function OrdinaryOwnMetadataKeys(O, P) {
|
|
1080
|
+
var keys = [];
|
|
1081
|
+
var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);
|
|
1082
|
+
if (IsUndefined(metadataMap))
|
|
1083
|
+
return keys;
|
|
1084
|
+
var keysObj = metadataMap.keys();
|
|
1085
|
+
var iterator = GetIterator(keysObj);
|
|
1086
|
+
var k = 0;
|
|
1087
|
+
while (true) {
|
|
1088
|
+
var next = IteratorStep(iterator);
|
|
1089
|
+
if (!next) {
|
|
1090
|
+
keys.length = k;
|
|
1091
|
+
return keys;
|
|
1092
|
+
}
|
|
1093
|
+
var nextValue = IteratorValue(next);
|
|
1094
|
+
try {
|
|
1095
|
+
keys[k] = nextValue;
|
|
1096
|
+
}
|
|
1097
|
+
catch (e) {
|
|
1098
|
+
try {
|
|
1099
|
+
IteratorClose(iterator);
|
|
1100
|
+
}
|
|
1101
|
+
finally {
|
|
1102
|
+
throw e;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
k++;
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
function OrdinaryDeleteMetadata(MetadataKey, O, P) {
|
|
1109
|
+
var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);
|
|
1110
|
+
if (IsUndefined(metadataMap))
|
|
1111
|
+
return false;
|
|
1112
|
+
if (!metadataMap.delete(MetadataKey))
|
|
1113
|
+
return false;
|
|
1114
|
+
if (metadataMap.size === 0) {
|
|
1115
|
+
var targetMetadata = metadata.get(O);
|
|
1116
|
+
if (!IsUndefined(targetMetadata)) {
|
|
1117
|
+
targetMetadata.delete(P);
|
|
1118
|
+
if (targetMetadata.size === 0) {
|
|
1119
|
+
metadata.delete(targetMetadata);
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
return true;
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
function CreateFallbackProvider(reflect) {
|
|
1127
|
+
var defineMetadata = reflect.defineMetadata, hasOwnMetadata = reflect.hasOwnMetadata, getOwnMetadata = reflect.getOwnMetadata, getOwnMetadataKeys = reflect.getOwnMetadataKeys, deleteMetadata = reflect.deleteMetadata;
|
|
1128
|
+
var metadataOwner = new _WeakMap();
|
|
1129
|
+
var provider = {
|
|
1130
|
+
isProviderFor: function (O, P) {
|
|
1131
|
+
var metadataPropertySet = metadataOwner.get(O);
|
|
1132
|
+
if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) {
|
|
1133
|
+
return true;
|
|
1134
|
+
}
|
|
1135
|
+
if (getOwnMetadataKeys(O, P).length) {
|
|
1136
|
+
if (IsUndefined(metadataPropertySet)) {
|
|
1137
|
+
metadataPropertySet = new _Set();
|
|
1138
|
+
metadataOwner.set(O, metadataPropertySet);
|
|
1139
|
+
}
|
|
1140
|
+
metadataPropertySet.add(P);
|
|
1141
|
+
return true;
|
|
1142
|
+
}
|
|
1143
|
+
return false;
|
|
1144
|
+
},
|
|
1145
|
+
OrdinaryDefineOwnMetadata: defineMetadata,
|
|
1146
|
+
OrdinaryHasOwnMetadata: hasOwnMetadata,
|
|
1147
|
+
OrdinaryGetOwnMetadata: getOwnMetadata,
|
|
1148
|
+
OrdinaryOwnMetadataKeys: getOwnMetadataKeys,
|
|
1149
|
+
OrdinaryDeleteMetadata: deleteMetadata,
|
|
1150
|
+
};
|
|
1151
|
+
return provider;
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* Gets the metadata provider for an object. If the object has no metadata provider and this is for a create operation,
|
|
1155
|
+
* then this module's metadata provider is assigned to the object.
|
|
1156
|
+
*/
|
|
1157
|
+
function GetMetadataProvider(O, P, Create) {
|
|
1158
|
+
var registeredProvider = metadataRegistry.getProvider(O, P);
|
|
1159
|
+
if (!IsUndefined(registeredProvider)) {
|
|
1160
|
+
return registeredProvider;
|
|
1161
|
+
}
|
|
1162
|
+
if (Create) {
|
|
1163
|
+
if (metadataRegistry.setProvider(O, P, metadataProvider)) {
|
|
1164
|
+
return metadataProvider;
|
|
1165
|
+
}
|
|
1166
|
+
throw new Error("Illegal state.");
|
|
1167
|
+
}
|
|
1168
|
+
return undefined;
|
|
1169
|
+
}
|
|
1170
|
+
// naive Map shim
|
|
1171
|
+
function CreateMapPolyfill() {
|
|
1172
|
+
var cacheSentinel = {};
|
|
1173
|
+
var arraySentinel = [];
|
|
1174
|
+
var MapIterator = /** @class */ (function () {
|
|
1175
|
+
function MapIterator(keys, values, selector) {
|
|
1176
|
+
this._index = 0;
|
|
1177
|
+
this._keys = keys;
|
|
1178
|
+
this._values = values;
|
|
1179
|
+
this._selector = selector;
|
|
1180
|
+
}
|
|
1181
|
+
MapIterator.prototype["@@iterator"] = function () { return this; };
|
|
1182
|
+
MapIterator.prototype[iteratorSymbol] = function () { return this; };
|
|
1183
|
+
MapIterator.prototype.next = function () {
|
|
1184
|
+
var index = this._index;
|
|
1185
|
+
if (index >= 0 && index < this._keys.length) {
|
|
1186
|
+
var result = this._selector(this._keys[index], this._values[index]);
|
|
1187
|
+
if (index + 1 >= this._keys.length) {
|
|
1188
|
+
this._index = -1;
|
|
1189
|
+
this._keys = arraySentinel;
|
|
1190
|
+
this._values = arraySentinel;
|
|
1191
|
+
}
|
|
1192
|
+
else {
|
|
1193
|
+
this._index++;
|
|
1194
|
+
}
|
|
1195
|
+
return { value: result, done: false };
|
|
1196
|
+
}
|
|
1197
|
+
return { value: undefined, done: true };
|
|
1198
|
+
};
|
|
1199
|
+
MapIterator.prototype.throw = function (error) {
|
|
1200
|
+
if (this._index >= 0) {
|
|
1201
|
+
this._index = -1;
|
|
1202
|
+
this._keys = arraySentinel;
|
|
1203
|
+
this._values = arraySentinel;
|
|
1204
|
+
}
|
|
1205
|
+
throw error;
|
|
1206
|
+
};
|
|
1207
|
+
MapIterator.prototype.return = function (value) {
|
|
1208
|
+
if (this._index >= 0) {
|
|
1209
|
+
this._index = -1;
|
|
1210
|
+
this._keys = arraySentinel;
|
|
1211
|
+
this._values = arraySentinel;
|
|
1212
|
+
}
|
|
1213
|
+
return { value: value, done: true };
|
|
1214
|
+
};
|
|
1215
|
+
return MapIterator;
|
|
1216
|
+
}());
|
|
1217
|
+
var Map = /** @class */ (function () {
|
|
1218
|
+
function Map() {
|
|
1219
|
+
this._keys = [];
|
|
1220
|
+
this._values = [];
|
|
1221
|
+
this._cacheKey = cacheSentinel;
|
|
1222
|
+
this._cacheIndex = -2;
|
|
1223
|
+
}
|
|
1224
|
+
Object.defineProperty(Map.prototype, "size", {
|
|
1225
|
+
get: function () { return this._keys.length; },
|
|
1226
|
+
enumerable: true,
|
|
1227
|
+
configurable: true
|
|
1228
|
+
});
|
|
1229
|
+
Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };
|
|
1230
|
+
Map.prototype.get = function (key) {
|
|
1231
|
+
var index = this._find(key, /*insert*/ false);
|
|
1232
|
+
return index >= 0 ? this._values[index] : undefined;
|
|
1233
|
+
};
|
|
1234
|
+
Map.prototype.set = function (key, value) {
|
|
1235
|
+
var index = this._find(key, /*insert*/ true);
|
|
1236
|
+
this._values[index] = value;
|
|
1237
|
+
return this;
|
|
1238
|
+
};
|
|
1239
|
+
Map.prototype.delete = function (key) {
|
|
1240
|
+
var index = this._find(key, /*insert*/ false);
|
|
1241
|
+
if (index >= 0) {
|
|
1242
|
+
var size = this._keys.length;
|
|
1243
|
+
for (var i = index + 1; i < size; i++) {
|
|
1244
|
+
this._keys[i - 1] = this._keys[i];
|
|
1245
|
+
this._values[i - 1] = this._values[i];
|
|
1246
|
+
}
|
|
1247
|
+
this._keys.length--;
|
|
1248
|
+
this._values.length--;
|
|
1249
|
+
if (SameValueZero(key, this._cacheKey)) {
|
|
1250
|
+
this._cacheKey = cacheSentinel;
|
|
1251
|
+
this._cacheIndex = -2;
|
|
1252
|
+
}
|
|
1253
|
+
return true;
|
|
1254
|
+
}
|
|
1255
|
+
return false;
|
|
1256
|
+
};
|
|
1257
|
+
Map.prototype.clear = function () {
|
|
1258
|
+
this._keys.length = 0;
|
|
1259
|
+
this._values.length = 0;
|
|
1260
|
+
this._cacheKey = cacheSentinel;
|
|
1261
|
+
this._cacheIndex = -2;
|
|
1262
|
+
};
|
|
1263
|
+
Map.prototype.keys = function () { return new MapIterator(this._keys, this._values, getKey); };
|
|
1264
|
+
Map.prototype.values = function () { return new MapIterator(this._keys, this._values, getValue); };
|
|
1265
|
+
Map.prototype.entries = function () { return new MapIterator(this._keys, this._values, getEntry); };
|
|
1266
|
+
Map.prototype["@@iterator"] = function () { return this.entries(); };
|
|
1267
|
+
Map.prototype[iteratorSymbol] = function () { return this.entries(); };
|
|
1268
|
+
Map.prototype._find = function (key, insert) {
|
|
1269
|
+
if (!SameValueZero(this._cacheKey, key)) {
|
|
1270
|
+
this._cacheIndex = -1;
|
|
1271
|
+
for (var i = 0; i < this._keys.length; i++) {
|
|
1272
|
+
if (SameValueZero(this._keys[i], key)) {
|
|
1273
|
+
this._cacheIndex = i;
|
|
1274
|
+
break;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
if (this._cacheIndex < 0 && insert) {
|
|
1279
|
+
this._cacheIndex = this._keys.length;
|
|
1280
|
+
this._keys.push(key);
|
|
1281
|
+
this._values.push(undefined);
|
|
1282
|
+
}
|
|
1283
|
+
return this._cacheIndex;
|
|
1284
|
+
};
|
|
1285
|
+
return Map;
|
|
1286
|
+
}());
|
|
1287
|
+
return Map;
|
|
1288
|
+
function getKey(key, _) {
|
|
1289
|
+
return key;
|
|
1290
|
+
}
|
|
1291
|
+
function getValue(_, value) {
|
|
1292
|
+
return value;
|
|
1293
|
+
}
|
|
1294
|
+
function getEntry(key, value) {
|
|
1295
|
+
return [key, value];
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
// naive Set shim
|
|
1299
|
+
function CreateSetPolyfill() {
|
|
1300
|
+
var Set = /** @class */ (function () {
|
|
1301
|
+
function Set() {
|
|
1302
|
+
this._map = new _Map();
|
|
1303
|
+
}
|
|
1304
|
+
Object.defineProperty(Set.prototype, "size", {
|
|
1305
|
+
get: function () { return this._map.size; },
|
|
1306
|
+
enumerable: true,
|
|
1307
|
+
configurable: true
|
|
1308
|
+
});
|
|
1309
|
+
Set.prototype.has = function (value) { return this._map.has(value); };
|
|
1310
|
+
Set.prototype.add = function (value) { return this._map.set(value, value), this; };
|
|
1311
|
+
Set.prototype.delete = function (value) { return this._map.delete(value); };
|
|
1312
|
+
Set.prototype.clear = function () { this._map.clear(); };
|
|
1313
|
+
Set.prototype.keys = function () { return this._map.keys(); };
|
|
1314
|
+
Set.prototype.values = function () { return this._map.keys(); };
|
|
1315
|
+
Set.prototype.entries = function () { return this._map.entries(); };
|
|
1316
|
+
Set.prototype["@@iterator"] = function () { return this.keys(); };
|
|
1317
|
+
Set.prototype[iteratorSymbol] = function () { return this.keys(); };
|
|
1318
|
+
return Set;
|
|
1319
|
+
}());
|
|
1320
|
+
return Set;
|
|
1321
|
+
}
|
|
1322
|
+
// naive WeakMap shim
|
|
1323
|
+
function CreateWeakMapPolyfill() {
|
|
1324
|
+
var UUID_SIZE = 16;
|
|
1325
|
+
var keys = HashMap.create();
|
|
1326
|
+
var rootKey = CreateUniqueKey();
|
|
1327
|
+
return /** @class */ (function () {
|
|
1328
|
+
function WeakMap() {
|
|
1329
|
+
this._key = CreateUniqueKey();
|
|
1330
|
+
}
|
|
1331
|
+
WeakMap.prototype.has = function (target) {
|
|
1332
|
+
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
|
|
1333
|
+
return table !== undefined ? HashMap.has(table, this._key) : false;
|
|
1334
|
+
};
|
|
1335
|
+
WeakMap.prototype.get = function (target) {
|
|
1336
|
+
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
|
|
1337
|
+
return table !== undefined ? HashMap.get(table, this._key) : undefined;
|
|
1338
|
+
};
|
|
1339
|
+
WeakMap.prototype.set = function (target, value) {
|
|
1340
|
+
var table = GetOrCreateWeakMapTable(target, /*create*/ true);
|
|
1341
|
+
table[this._key] = value;
|
|
1342
|
+
return this;
|
|
1343
|
+
};
|
|
1344
|
+
WeakMap.prototype.delete = function (target) {
|
|
1345
|
+
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
|
|
1346
|
+
return table !== undefined ? delete table[this._key] : false;
|
|
1347
|
+
};
|
|
1348
|
+
WeakMap.prototype.clear = function () {
|
|
1349
|
+
// NOTE: not a real clear, just makes the previous data unreachable
|
|
1350
|
+
this._key = CreateUniqueKey();
|
|
1351
|
+
};
|
|
1352
|
+
return WeakMap;
|
|
1353
|
+
}());
|
|
1354
|
+
function CreateUniqueKey() {
|
|
1355
|
+
var key;
|
|
1356
|
+
do
|
|
1357
|
+
key = "@@WeakMap@@" + CreateUUID();
|
|
1358
|
+
while (HashMap.has(keys, key));
|
|
1359
|
+
keys[key] = true;
|
|
1360
|
+
return key;
|
|
1361
|
+
}
|
|
1362
|
+
function GetOrCreateWeakMapTable(target, create) {
|
|
1363
|
+
if (!hasOwn.call(target, rootKey)) {
|
|
1364
|
+
if (!create)
|
|
1365
|
+
return undefined;
|
|
1366
|
+
Object.defineProperty(target, rootKey, { value: HashMap.create() });
|
|
1367
|
+
}
|
|
1368
|
+
return target[rootKey];
|
|
1369
|
+
}
|
|
1370
|
+
function FillRandomBytes(buffer, size) {
|
|
1371
|
+
for (var i = 0; i < size; ++i)
|
|
1372
|
+
buffer[i] = Math.random() * 0xff | 0;
|
|
1373
|
+
return buffer;
|
|
1374
|
+
}
|
|
1375
|
+
function GenRandomBytes(size) {
|
|
1376
|
+
if (typeof Uint8Array === "function") {
|
|
1377
|
+
var array = new Uint8Array(size);
|
|
1378
|
+
if (typeof crypto !== "undefined") {
|
|
1379
|
+
crypto.getRandomValues(array);
|
|
1380
|
+
}
|
|
1381
|
+
else if (typeof msCrypto !== "undefined") {
|
|
1382
|
+
msCrypto.getRandomValues(array);
|
|
1383
|
+
}
|
|
1384
|
+
else {
|
|
1385
|
+
FillRandomBytes(array, size);
|
|
1386
|
+
}
|
|
1387
|
+
return array;
|
|
1388
|
+
}
|
|
1389
|
+
return FillRandomBytes(new Array(size), size);
|
|
1390
|
+
}
|
|
1391
|
+
function CreateUUID() {
|
|
1392
|
+
var data = GenRandomBytes(UUID_SIZE);
|
|
1393
|
+
// mark as random - RFC 4122 § 4.4
|
|
1394
|
+
data[6] = data[6] & 0x4f | 0x40;
|
|
1395
|
+
data[8] = data[8] & 0xbf | 0x80;
|
|
1396
|
+
var result = "";
|
|
1397
|
+
for (var offset = 0; offset < UUID_SIZE; ++offset) {
|
|
1398
|
+
var byte = data[offset];
|
|
1399
|
+
if (offset === 4 || offset === 6 || offset === 8)
|
|
1400
|
+
result += "-";
|
|
1401
|
+
if (byte < 16)
|
|
1402
|
+
result += "0";
|
|
1403
|
+
result += byte.toString(16).toLowerCase();
|
|
1404
|
+
}
|
|
1405
|
+
return result;
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
// uses a heuristic used by v8 and chakra to force an object into dictionary mode.
|
|
1409
|
+
function MakeDictionary(obj) {
|
|
1410
|
+
obj.__ = undefined;
|
|
1411
|
+
delete obj.__;
|
|
1412
|
+
return obj;
|
|
1413
|
+
}
|
|
1414
|
+
});
|
|
1415
|
+
})(Reflect || (Reflect = {}));
|