@sap/cds-dk 9.9.2 → 10.0.3
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/CHANGELOG.md +95 -0
- package/bin/add.js +1 -1
- package/bin/cds.js +4 -1
- package/bin/data-products/import.js +1 -1
- package/bin/data-products/{index.js → load.js} +0 -3
- package/bin/debug.js +19 -0
- package/bin/export.js +21 -15
- package/bin/import.js +6 -1
- package/bin/login.js +4 -8
- package/bin/logout.js +4 -9
- package/bin/pull.js +4 -8
- package/bin/push.js +8 -23
- package/bin/up.js +50 -1
- package/bin/upgrade-tenant.js +78 -0
- package/bin/upgrade.js +55 -53
- package/bin/util/log.js +1 -2
- package/bin/version.js +44 -60
- package/lib/bind/shared.js +5 -1
- package/lib/build/index.js +3 -3
- package/lib/build/plugins/fiori/index.js +5 -5
- package/lib/build/plugins/hana/index.js +13 -12
- package/lib/build/plugins/hana/template/package.json +1 -1
- package/lib/build/plugins/internal.js +4 -3
- package/lib/build/plugins/mtx-sidecar/index.js +8 -25
- package/lib/build/plugins/nodejs/index.js +4 -2
- package/lib/build/plugins/plugin.js +4 -10
- package/lib/build/util.js +0 -41
- package/lib/import/common.js +3 -2
- package/lib/import/importapi.js +1 -1
- package/lib/import/odata/annotationParser.js +316 -0
- package/lib/import/odata/v2parser.js +217 -0
- package/lib/import/odata/v4parser.js +8 -232
- package/lib/import/openapi/importOpenAPI.js +15 -3
- package/lib/index.js +1 -1
- package/lib/init/bas.js +2 -3
- package/lib/init/constants.js +8 -7
- package/lib/init/index.js +1 -17
- package/lib/init/projectReader.js +14 -5
- package/lib/init/registries/mta.js +12 -0
- package/lib/init/template/ai/files/mta.yaml.hbs +14 -0
- package/lib/init/template/ai/files/package.json.hbs +25 -0
- package/lib/init/template/ai/files/values.yaml +7 -0
- package/lib/init/template/ai/index.js +48 -0
- package/lib/init/template/ams/files/Chart.yaml.hbs +2 -2
- package/lib/init/template/ams/files/containerize.yaml.hbs +5 -5
- package/lib/init/template/ams/files/mta.yaml.hbs +1 -1
- package/lib/init/template/ams/files/package.json.hbs +3 -0
- package/lib/init/template/ams/index.js +2 -2
- package/lib/init/template/app-frontend/files/app-package.json.hbs +2 -2
- package/lib/init/template/app-frontend/files/containerize.yaml.hbs +13 -0
- package/lib/init/template/app-frontend/files/index.html.hbs +1 -1
- package/lib/init/template/app-frontend/files/mta.yaml.hbs +1 -1
- package/lib/init/template/app-frontend/files/ui5.yaml.hbs +4 -4
- package/lib/init/template/app-frontend/files/values.yaml.hbs +21 -9
- package/lib/init/template/app-frontend/index.js +37 -29
- package/lib/init/template/application-logging/files/mta.yaml.hbs +1 -1
- package/lib/init/template/application-logging/index.js +3 -3
- package/lib/init/template/approuter/files/containerize.yaml.hbs +4 -4
- package/lib/init/template/approuter/files/mta.yaml.hbs +1 -1
- package/lib/init/template/approuter/index.js +5 -5
- package/lib/init/template/attachments/files/mta.yaml.hbs +1 -1
- package/lib/init/template/attachments/files/values.yaml +1 -1
- package/lib/init/template/attachments/index.js +4 -4
- package/lib/init/template/audit-logging/files/mta.yaml.hbs +1 -1
- package/lib/init/template/audit-logging/index.js +4 -4
- package/lib/init/template/cf-manifest/files/manifest.yml.hbs +3 -3
- package/lib/init/template/cjs/files/package.json.hbs +3 -0
- package/lib/init/template/{esm → cjs}/index.js +2 -2
- package/lib/init/template/cloud-logging/files/mta.yaml.hbs +1 -1
- package/lib/init/template/cloud-logging/index.js +3 -3
- package/lib/init/template/completion/completionSetup.js +1 -1
- package/lib/init/template/connectivity/files/mta.yaml.hbs +1 -1
- package/lib/init/template/connectivity/index.js +4 -4
- package/lib/init/template/data/as-json.js +0 -10
- package/lib/init/template/destination/files/mta.yaml.hbs +1 -1
- package/lib/init/template/destination/index.js +4 -4
- package/lib/init/template/dynatrace/files/mta.yaml.hbs +1 -1
- package/lib/init/template/dynatrace/index.js +3 -3
- package/lib/init/template/enterprise-messaging/files/mta.yaml.hbs +1 -1
- package/lib/init/template/enterprise-messaging/index.js +39 -23
- package/lib/init/template/enterprise-messaging-shared/files/mta.yaml.hbs +1 -1
- package/lib/init/template/enterprise-messaging-shared/index.js +22 -44
- package/lib/init/template/event-mesh/files/event-mesh.json.hbs +31 -0
- package/lib/init/template/event-mesh/files/mta.yaml.hbs +22 -0
- package/lib/init/template/event-mesh/files/package.json.hbs +20 -0
- package/lib/init/template/event-mesh/files/values.yaml +7 -0
- package/lib/init/template/event-mesh/files/xs-security.json.hbs +19 -0
- package/lib/init/template/event-mesh/index.js +16 -0
- package/lib/init/template/event-mesh-shared/files/event-mesh.json.hbs +31 -0
- package/lib/init/template/event-mesh-shared/files/mta.yaml.hbs +15 -0
- package/lib/init/template/event-mesh-shared/files/package.json.hbs +23 -0
- package/lib/init/template/event-mesh-shared/files/values.yaml +7 -0
- package/lib/init/template/event-mesh-shared/index.js +16 -0
- package/lib/init/template/extensibility/files/package.json.hbs +1 -1
- package/lib/init/template/github-actions/files/workflows/cf.yaml.hbs +2 -2
- package/lib/init/template/github-actions/files/workflows/test.yaml.hbs +2 -2
- package/lib/init/template/hana/files/containerize.yaml.hbs +5 -5
- package/lib/init/template/hana/files/mta.yaml.hbs +1 -1
- package/lib/init/template/hana/files/package.json.hbs +1 -1
- package/lib/init/template/hana/files/src/.hdiconfig +1 -1
- package/lib/init/template/hana/index.js +5 -8
- package/lib/init/template/handler/files/extension/handler.xs.hbs +1 -1
- package/lib/init/template/handler/index.js +1 -19
- package/lib/init/template/html5-repo/files/app-package.json.hbs +2 -2
- package/lib/init/template/html5-repo/files/containerize.yaml.hbs +5 -7
- package/lib/init/template/html5-repo/files/mta.yaml.hbs +4 -4
- package/lib/init/template/html5-repo/files/ui5.yaml.hbs +4 -4
- package/lib/init/template/html5-repo/files/values.yaml.hbs +9 -0
- package/lib/init/template/html5-repo/index.js +23 -22
- package/lib/init/template/ias/files/Chart.yaml.hbs +2 -2
- package/lib/init/template/ias/files/mta.yaml.hbs +1 -1
- package/lib/init/template/ias/index.js +5 -5
- package/lib/init/template/initial/index.js +2 -10
- package/lib/init/template/kafka/files/mta.yaml.hbs +1 -1
- package/lib/init/template/kafka/files/values.yaml +1 -1
- package/lib/init/template/kafka/index.js +4 -4
- package/lib/init/template/kyma/files/containerize.yaml.hbs +11 -11
- package/lib/init/template/kyma/files/values.schema.json +1 -1
- package/lib/init/template/kyma/index.js +10 -10
- package/lib/init/template/lint/files/package.json +1 -1
- package/lib/init/template/malware-scanner/files/mta.yaml.hbs +2 -2
- package/lib/init/template/malware-scanner/files/package.json.hbs +1 -1
- package/lib/init/template/malware-scanner/files/values.yaml +1 -1
- package/lib/init/template/malware-scanner/index.js +4 -4
- package/lib/init/template/mta/files/mta.yaml.hbs +1 -1
- package/lib/init/template/mta/files/package.json +1 -1
- package/lib/init/template/multitenancy/files/containerize.yaml.hbs +5 -5
- package/lib/init/template/multitenancy/files/mta.yaml.hbs +1 -1
- package/lib/init/template/multitenancy/files/package.json.hbs +1 -1
- package/lib/init/template/multitenancy/files/package.sidecar.json.hbs +5 -5
- package/lib/init/template/multitenancy/index.js +10 -11
- package/lib/init/template/nodejs/files/package.json.hbs +3 -2
- package/lib/init/template/portal/files/containerize.yaml.hbs +4 -4
- package/lib/init/template/portal/files/mta.yaml.hbs +1 -1
- package/lib/init/template/portal/files/values.yaml.hbs +3 -32
- package/lib/init/template/portal/index.js +5 -13
- package/lib/init/template/postgres/files/containerize.yaml.hbs +4 -4
- package/lib/init/template/postgres/files/mta.yml.hbs +1 -1
- package/lib/init/template/postgres/files/package.json.hbs +1 -1
- package/lib/init/template/postgres/index.js +4 -4
- package/lib/init/template/react/files/{index.html → index.html.hbs} +1 -1
- package/lib/init/template/react/files/{vite.config.js → vite.config.js.hbs} +2 -1
- package/lib/init/template/react/index.js +15 -7
- package/lib/init/template/redis/files/mta.yaml.hbs +1 -1
- package/lib/init/template/redis/index.js +4 -4
- package/lib/init/template/sample/files/app/admin-books/webapp/manifest.json +2 -1
- package/lib/init/template/side-by-side-extensibility/files/mta.yaml.hbs +1 -1
- package/lib/init/template/sqlite/files/package.json.hbs +2 -2
- package/lib/init/template/toggles/files/package.json.hbs +1 -1
- package/lib/init/template/typer/files/gitignore +1 -1
- package/lib/init/template/typescript/files/package.json +1 -1
- package/lib/init/template/vue/files/{index.html → index.html.hbs} +1 -1
- package/lib/init/template/vue/files/{vite.config.js → vite.config.js.hbs} +2 -1
- package/lib/init/template/vue/index.js +16 -8
- package/lib/init/template/workzone-standard/files/mta.yaml.hbs +1 -1
- package/lib/init/template/workzone-standard/index.js +3 -3
- package/lib/init/template/xsuaa/files/mta.yaml.hbs +1 -1
- package/lib/init/template/xsuaa/index.js +3 -3
- package/lib/lint/Linter.js +5 -4
- package/lib/lint/eslintHelp.json +1 -1
- package/lib/mtx/params.js +0 -4
- package/lib/mtx/pull.js +1 -1
- package/lib/mtx/push.js +4 -3
- package/lib/mtx/settings_manager.js +9 -14
- package/lib/mtx/tenant_action.js +6 -6
- package/lib/mtx/util/question.js +0 -18
- package/lib/upgrade/constants.js +102 -0
- package/lib/upgrade/context.js +24 -0
- package/lib/upgrade/index.js +65 -0
- package/lib/upgrade/migrations/cds10/migrations.json +705 -0
- package/lib/upgrade/preflight/cds-version.js +61 -0
- package/lib/upgrade/preflight/consistency.js +94 -0
- package/lib/upgrade/preflight/index.js +49 -0
- package/lib/upgrade/preflight/project-type.js +224 -0
- package/lib/upgrade/steps/analyze/classification.js +92 -0
- package/lib/upgrade/steps/analyze/detector.js +22 -0
- package/lib/upgrade/steps/analyze/evaluator.js +91 -0
- package/lib/upgrade/steps/analyze/index.js +124 -0
- package/lib/upgrade/steps/analyze/reporter.js +339 -0
- package/lib/upgrade/steps/analyze/setup.js +71 -0
- package/lib/upgrade/steps/analyze/utils/detection.js +63 -0
- package/lib/upgrade/steps/analyze/utils/files.js +114 -0
- package/lib/upgrade/steps/analyze/utils/grep.js +95 -0
- package/lib/upgrade/steps/analyze/utils/yaml.js +58 -0
- package/lib/upgrade/steps/install.js +115 -0
- package/lib/upgrade/steps/openrewrite.js +293 -0
- package/lib/upgrade/steps/removals.js +88 -0
- package/lib/upgrade/steps/rewrite.js +167 -0
- package/lib/upgrade/steps/verify.js +96 -0
- package/lib/upgrade/util/pom.js +46 -0
- package/lib/upgrade/util/prompt.js +28 -0
- package/lib/upgrade/util/workspaces.js +111 -0
- package/lib/util/cf.js +23 -12
- package/lib/util/term.js +1 -1
- package/lib/watch/vite-watch.js +33 -8
- package/lib/watch/watcher.js +27 -1
- package/node_modules/@cap-js/asyncapi/LICENSE +201 -0
- package/node_modules/@cap-js/asyncapi/README.md +46 -0
- package/node_modules/@cap-js/asyncapi/index.js +4 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/channels.js +18 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/messageTraits/index.js +89 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/messages/index.js +179 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/annotations.js +36 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/array.js +8 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/cache.js +16 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/definition.js +191 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/enum.js +15 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/examples.js +10 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/index.js +14 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/localized.js +29 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/primitiveElement.js +41 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/ref.js +45 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/utils.js +108 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/index.js +277 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/message.js +13 -0
- package/node_modules/@cap-js/asyncapi/lib/compile/utils.js +77 -0
- package/node_modules/@cap-js/asyncapi/package.json +34 -0
- package/node_modules/@cap-js/openapi/LICENSE +201 -0
- package/node_modules/@cap-js/openapi/README.md +96 -0
- package/node_modules/@cap-js/openapi/index.js +5 -0
- package/node_modules/@cap-js/openapi/lib/compile/csdl-types.d.ts +546 -0
- package/node_modules/@cap-js/openapi/lib/compile/csdl.js +212 -0
- package/node_modules/@cap-js/openapi/lib/compile/csdl2openapi.js +2753 -0
- package/node_modules/@cap-js/openapi/lib/compile/diagram.js +112 -0
- package/node_modules/@cap-js/openapi/lib/compile/index.js +259 -0
- package/node_modules/@cap-js/openapi/lib/compile/string-util.js +20 -0
- package/node_modules/@cap-js/openapi/lib/compile/types.d.ts +117 -0
- package/node_modules/@cap-js/openapi/package.json +44 -0
- package/node_modules/@eslint/js/LICENSE +19 -0
- package/node_modules/@eslint/js/README.md +103 -0
- package/node_modules/@eslint/js/package.json +44 -0
- package/node_modules/@eslint/js/src/configs/eslint-all.js +210 -0
- package/node_modules/@eslint/js/src/configs/eslint-recommended.js +75 -0
- package/node_modules/@eslint/js/src/index.js +23 -0
- package/node_modules/@eslint/js/types/index.d.ts +14 -0
- package/node_modules/@sap/cds/CHANGELOG.md +810 -0
- package/node_modules/@sap/cds/LICENSE +32 -0
- package/node_modules/@sap/cds/README.md +13 -0
- package/node_modules/@sap/cds/_i18n/i18n.properties +113 -0
- package/node_modules/@sap/cds/_i18n/i18n_ar.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_bg.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_cs.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_da.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_de.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_el.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_en.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_en_US_saptrc.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_es.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_es_MX.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_fi.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_fr.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_he.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_hr.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_hu.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_it.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_ja.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_kk.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_ko.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_ms.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_nl.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_no.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_pl.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_pt.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_ro.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_ru.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_sh.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_sk.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_sl.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_sv.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_th.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_tr.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_uk.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_vi.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_zh_CN.properties +58 -0
- package/node_modules/@sap/cds/_i18n/i18n_zh_TW.properties +58 -0
- package/node_modules/@sap/cds/_i18n/messages.properties +196 -0
- package/node_modules/@sap/cds/_i18n/messages_ar.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_bg.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_cs.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_da.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_de.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_el.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_en.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_en_US_saptrc.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_es.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_es_MX.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_fi.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_fr.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_he.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_hr.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_hu.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_it.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_ja.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_kk.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_ko.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_ms.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_nl.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_no.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_pl.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_pt.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_ro.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_ru.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_sh.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_sk.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_sl.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_sv.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_th.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_tr.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_uk.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_vi.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_zh_CN.properties +103 -0
- package/node_modules/@sap/cds/_i18n/messages_zh_TW.properties +103 -0
- package/node_modules/@sap/cds/app/etc/livereload.js +9 -0
- package/node_modules/@sap/cds/app/favicon.ico +0 -0
- package/node_modules/@sap/cds/app/index.css +132 -0
- package/node_modules/@sap/cds/app/index.html +32 -0
- package/node_modules/@sap/cds/app/index.js +100 -0
- package/node_modules/@sap/cds/bin/args.js +34 -0
- package/node_modules/@sap/cds/bin/deploy.js +29 -0
- package/node_modules/@sap/cds/bin/serve.js +398 -0
- package/node_modules/@sap/cds/common.cds +216 -0
- package/node_modules/@sap/cds/eslint.config.mjs +153 -0
- package/node_modules/@sap/cds/lib/compile/cds-compile.js +63 -0
- package/node_modules/@sap/cds/lib/compile/cdsc.js +166 -0
- package/node_modules/@sap/cds/lib/compile/etc/_localized.js +75 -0
- package/node_modules/@sap/cds/lib/compile/etc/csv.js +87 -0
- package/node_modules/@sap/cds/lib/compile/etc/properties.js +44 -0
- package/node_modules/@sap/cds/lib/compile/etc/yaml.js +9 -0
- package/node_modules/@sap/cds/lib/compile/extend.js +39 -0
- package/node_modules/@sap/cds/lib/compile/for/assert.js +64 -0
- package/node_modules/@sap/cds/lib/compile/for/direct_crud.js +49 -0
- package/node_modules/@sap/cds/lib/compile/for/flows.js +396 -0
- package/node_modules/@sap/cds/lib/compile/for/java.js +49 -0
- package/node_modules/@sap/cds/lib/compile/for/lean_drafts.js +230 -0
- package/node_modules/@sap/cds/lib/compile/for/nodejs.js +94 -0
- package/node_modules/@sap/cds/lib/compile/for/odata.js +19 -0
- package/node_modules/@sap/cds/lib/compile/for/sql.js +9 -0
- package/node_modules/@sap/cds/lib/compile/load.js +59 -0
- package/node_modules/@sap/cds/lib/compile/minify.js +112 -0
- package/node_modules/@sap/cds/lib/compile/parse.js +140 -0
- package/node_modules/@sap/cds/lib/compile/resolve.js +166 -0
- package/node_modules/@sap/cds/lib/compile/to/cdl.js +22 -0
- package/node_modules/@sap/cds/lib/compile/to/csn.js +80 -0
- package/node_modules/@sap/cds/lib/compile/to/edm-files.js +80 -0
- package/node_modules/@sap/cds/lib/compile/to/edm.js +97 -0
- package/node_modules/@sap/cds/lib/compile/to/hana.js +31 -0
- package/node_modules/@sap/cds/lib/compile/to/hdbtabledata.js +152 -0
- package/node_modules/@sap/cds/lib/compile/to/json.js +63 -0
- package/node_modules/@sap/cds/lib/compile/to/sql.js +62 -0
- package/node_modules/@sap/cds/lib/compile/to/srvinfo.js +135 -0
- package/node_modules/@sap/cds/lib/core/classes.js +230 -0
- package/node_modules/@sap/cds/lib/core/entities.js +132 -0
- package/node_modules/@sap/cds/lib/core/linked-csn.js +188 -0
- package/node_modules/@sap/cds/lib/core/types.js +67 -0
- package/node_modules/@sap/cds/lib/dbs/cds-deploy.js +420 -0
- package/node_modules/@sap/cds/lib/env/cds-env.js +584 -0
- package/node_modules/@sap/cds/lib/env/cds-requires.js +315 -0
- package/node_modules/@sap/cds/lib/env/compat.js +95 -0
- package/node_modules/@sap/cds/lib/env/defaults.js +227 -0
- package/node_modules/@sap/cds/lib/env/schemas/cds-package.js +27 -0
- package/node_modules/@sap/cds/lib/env/schemas/cds-rc.js +1124 -0
- package/node_modules/@sap/cds/lib/env/schemas/index.js +12 -0
- package/node_modules/@sap/cds/lib/env/serviceBindings.js +157 -0
- package/node_modules/@sap/cds/lib/i18n/bundles.js +114 -0
- package/node_modules/@sap/cds/lib/i18n/files.js +140 -0
- package/node_modules/@sap/cds/lib/i18n/index.js +63 -0
- package/node_modules/@sap/cds/lib/i18n/locale.js +42 -0
- package/node_modules/@sap/cds/lib/i18n/localize.js +137 -0
- package/node_modules/@sap/cds/lib/index.js +156 -0
- package/node_modules/@sap/cds/lib/log/cds-error.js +114 -0
- package/node_modules/@sap/cds/lib/log/cds-log.js +215 -0
- package/node_modules/@sap/cds/lib/log/format/aspects/als.js +27 -0
- package/node_modules/@sap/cds/lib/log/format/aspects/cf.js +36 -0
- package/node_modules/@sap/cds/lib/log/format/aspects/cls.js +19 -0
- package/node_modules/@sap/cds/lib/log/format/json.js +143 -0
- package/node_modules/@sap/cds/lib/log/service/index.js +96 -0
- package/node_modules/@sap/cds/lib/log/service/model.cds +21 -0
- package/node_modules/@sap/cds/lib/log/service/test.http +16 -0
- package/node_modules/@sap/cds/lib/log/service/vue.html +73 -0
- package/node_modules/@sap/cds/lib/plugins.js +45 -0
- package/node_modules/@sap/cds/lib/ql/CREATE.js +30 -0
- package/node_modules/@sap/cds/lib/ql/DELETE.js +26 -0
- package/node_modules/@sap/cds/lib/ql/DROP.js +33 -0
- package/node_modules/@sap/cds/lib/ql/INSERT.js +57 -0
- package/node_modules/@sap/cds/lib/ql/SELECT.js +207 -0
- package/node_modules/@sap/cds/lib/ql/UPDATE.js +111 -0
- package/node_modules/@sap/cds/lib/ql/UPSERT.js +17 -0
- package/node_modules/@sap/cds/lib/ql/Whereable.js +58 -0
- package/node_modules/@sap/cds/lib/ql/cds-ql.js +228 -0
- package/node_modules/@sap/cds/lib/ql/cds.ql-Query.js +111 -0
- package/node_modules/@sap/cds/lib/ql/cds.ql-infer.js +148 -0
- package/node_modules/@sap/cds/lib/ql/cds.ql-predicates.js +136 -0
- package/node_modules/@sap/cds/lib/ql/cds.ql-projections.js +111 -0
- package/node_modules/@sap/cds/lib/ql/cqn.d.ts +146 -0
- package/node_modules/@sap/cds/lib/req/assert.js +71 -0
- package/node_modules/@sap/cds/lib/req/context.js +216 -0
- package/node_modules/@sap/cds/lib/req/event.js +14 -0
- package/node_modules/@sap/cds/lib/req/request.js +183 -0
- package/node_modules/@sap/cds/lib/req/response.js +54 -0
- package/node_modules/@sap/cds/lib/req/spawn.js +38 -0
- package/node_modules/@sap/cds/lib/req/user.js +77 -0
- package/node_modules/@sap/cds/lib/req/validate.js +339 -0
- package/node_modules/@sap/cds/lib/srv/bindings.js +170 -0
- package/node_modules/@sap/cds/lib/srv/cds-connect.js +79 -0
- package/node_modules/@sap/cds/lib/srv/cds-serve.js +84 -0
- package/node_modules/@sap/cds/lib/srv/cds.Service.js +214 -0
- package/node_modules/@sap/cds/lib/srv/factory.js +78 -0
- package/node_modules/@sap/cds/lib/srv/middlewares/auth/basic-auth.js +55 -0
- package/node_modules/@sap/cds/lib/srv/middlewares/auth/dummy-auth.js +8 -0
- package/node_modules/@sap/cds/lib/srv/middlewares/auth/ias-auth.js +167 -0
- package/node_modules/@sap/cds/lib/srv/middlewares/auth/index.js +53 -0
- package/node_modules/@sap/cds/lib/srv/middlewares/auth/jwt-auth.js +89 -0
- package/node_modules/@sap/cds/lib/srv/middlewares/auth/mocked-users.js +73 -0
- package/node_modules/@sap/cds/lib/srv/middlewares/auth/xssec.js +7 -0
- package/node_modules/@sap/cds/lib/srv/middlewares/cds-context.js +17 -0
- package/node_modules/@sap/cds/lib/srv/middlewares/ctx-model.js +25 -0
- package/node_modules/@sap/cds/lib/srv/middlewares/errors.js +42 -0
- package/node_modules/@sap/cds/lib/srv/middlewares/index.js +51 -0
- package/node_modules/@sap/cds/lib/srv/middlewares/trace.js +117 -0
- package/node_modules/@sap/cds/lib/srv/protocols/hcql.js +170 -0
- package/node_modules/@sap/cds/lib/srv/protocols/http.js +207 -0
- package/node_modules/@sap/cds/lib/srv/protocols/index.js +186 -0
- package/node_modules/@sap/cds/lib/srv/protocols/odata-v4.js +1 -0
- package/node_modules/@sap/cds/lib/srv/protocols/rest.js +1 -0
- package/node_modules/@sap/cds/lib/srv/srv-dispatch.js +117 -0
- package/node_modules/@sap/cds/lib/srv/srv-handlers.js +173 -0
- package/node_modules/@sap/cds/lib/srv/srv-methods.js +86 -0
- package/node_modules/@sap/cds/lib/srv/srv-models.js +167 -0
- package/node_modules/@sap/cds/lib/srv/srv-resolve.js +21 -0
- package/node_modules/@sap/cds/lib/srv/srv-tx.js +204 -0
- package/node_modules/@sap/cds/lib/test/cds-test.js +5 -0
- package/node_modules/@sap/cds/lib/utils/cds-utils.js +411 -0
- package/node_modules/@sap/cds/lib/utils/colors.js +56 -0
- package/node_modules/@sap/cds/lib/utils/csv-reader.js +100 -0
- package/node_modules/@sap/cds/lib/utils/extend.js +20 -0
- package/node_modules/@sap/cds/lib/utils/inflect.js +25 -0
- package/node_modules/@sap/cds/lib/utils/lazify.js +33 -0
- package/node_modules/@sap/cds/lib/utils/tar-lib.js +58 -0
- package/node_modules/@sap/cds/lib/utils/tar-win.js +106 -0
- package/node_modules/@sap/cds/lib/utils/tar.js +180 -0
- package/node_modules/@sap/cds/lib/utils/version.js +11 -0
- package/node_modules/@sap/cds/libx/_runtime/cds.js +25 -0
- package/node_modules/@sap/cds/libx/_runtime/common/Service.js +96 -0
- package/node_modules/@sap/cds/libx/_runtime/common/aspects/Association.js +82 -0
- package/node_modules/@sap/cds/libx/_runtime/common/aspects/any.js +34 -0
- package/node_modules/@sap/cds/libx/_runtime/common/aspects/entity.js +41 -0
- package/node_modules/@sap/cds/libx/_runtime/common/aspects/service.js +25 -0
- package/node_modules/@sap/cds/libx/_runtime/common/constants/draft.js +48 -0
- package/node_modules/@sap/cds/libx/_runtime/common/constants/events.js +6 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/assert.js +225 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/autoexpose.js +26 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/capabilities.js +87 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/expand.js +74 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/index.js +84 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/insertOnly.js +13 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/readOnly.js +13 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/requires.js +40 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/restrict.js +296 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/restrictions.js +124 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/service.js +18 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/utils.js +200 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/crud.js +82 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/etag.js +100 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/flows.js +235 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/input.js +441 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/media.js +25 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/paging.js +47 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/sorting.js +83 -0
- package/node_modules/@sap/cds/libx/_runtime/common/generic/temporal.js +86 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/binary.js +9 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/compareJson.js +378 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/copy.js +44 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/cqn.js +73 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/csn.js +153 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/differ.js +183 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/draft.js +82 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/entityFromCqn.js +42 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/etag.js +30 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/foreignKeyPropagations.js +299 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/keys.js +105 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/normalizeTimestamp.js +34 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/postProcess.js +102 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/propagateForeignKeys.js +108 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/resolveStructured.js +58 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/resolveView.js +732 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/rewriteAsterisks.js +199 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/rowUUIDGenerator.js +21 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/streamProp.js +72 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/structured.js +314 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/template.js +154 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/templateDelimiter.js +1 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/templateProcessor.js +83 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/templateProcessorPathSerializer.js +51 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/vcap.js +28 -0
- package/node_modules/@sap/cds/libx/_runtime/common/utils/waitingTime.js +14 -0
- package/node_modules/@sap/cds/libx/_runtime/fiori/lean-draft.js +2604 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/AMQPWebhookMessaging.js +71 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/AMQPClient.js +90 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/appId.js +9 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/authorizedRequest.js +66 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/connections.js +81 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/normalizeIncomingMessage.js +29 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/optionsForSubdomain.js +14 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/runInSequence.js +6 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/composite.js +47 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-shared.js +61 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-utils/EMManagement.js +473 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-utils/cloudEvents.js +31 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-utils/getTenantInfo.js +24 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-utils/options-management.js +24 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-utils/options-messaging.js +73 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-utils/registerEndpoints.js +158 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging.js +209 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/file-based.js +104 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/http-utils/token.js +75 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/kafka.js +273 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/message-queuing-utils/options-management.js +34 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/message-queuing-utils/options-messaging.js +40 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/message-queuing.js +238 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/redis-messaging.js +95 -0
- package/node_modules/@sap/cds/libx/_runtime/messaging/service.js +147 -0
- package/node_modules/@sap/cds/libx/_runtime/remote/Service.js +330 -0
- package/node_modules/@sap/cds/libx/_runtime/remote/utils/client.js +287 -0
- package/node_modules/@sap/cds/libx/_runtime/remote/utils/cloudSdkProvider.js +60 -0
- package/node_modules/@sap/cds/libx/_runtime/remote/utils/data.js +177 -0
- package/node_modules/@sap/cds/libx/_runtime/remote/utils/fetchClient.js +180 -0
- package/node_modules/@sap/cds/libx/_runtime/remote/utils/query.js +196 -0
- package/node_modules/@sap/cds/libx/_runtime/ucl/Service.js +450 -0
- package/node_modules/@sap/cds/libx/_runtime/ucl/queries.js +61 -0
- package/node_modules/@sap/cds/libx/common/utils/path.js +47 -0
- package/node_modules/@sap/cds/libx/common/utils/streaming.js +72 -0
- package/node_modules/@sap/cds/libx/http/body-parser.js +44 -0
- package/node_modules/@sap/cds/libx/http/location.js +42 -0
- package/node_modules/@sap/cds/libx/http/put.js +36 -0
- package/node_modules/@sap/cds/libx/odata/ODataAdapter.js +129 -0
- package/node_modules/@sap/cds/libx/odata/index.js +137 -0
- package/node_modules/@sap/cds/libx/odata/middleware/batch.js +695 -0
- package/node_modules/@sap/cds/libx/odata/middleware/create.js +113 -0
- package/node_modules/@sap/cds/libx/odata/middleware/delete.js +73 -0
- package/node_modules/@sap/cds/libx/odata/middleware/error.js +19 -0
- package/node_modules/@sap/cds/libx/odata/middleware/metadata.js +138 -0
- package/node_modules/@sap/cds/libx/odata/middleware/operation.js +192 -0
- package/node_modules/@sap/cds/libx/odata/middleware/parse.js +49 -0
- package/node_modules/@sap/cds/libx/odata/middleware/read.js +311 -0
- package/node_modules/@sap/cds/libx/odata/middleware/service-document.js +79 -0
- package/node_modules/@sap/cds/libx/odata/middleware/stream.js +180 -0
- package/node_modules/@sap/cds/libx/odata/middleware/update.js +178 -0
- package/node_modules/@sap/cds/libx/odata/parse/afterburner.js +1033 -0
- package/node_modules/@sap/cds/libx/odata/parse/cqn2odata.js +615 -0
- package/node_modules/@sap/cds/libx/odata/parse/grammar.peggy +1416 -0
- package/node_modules/@sap/cds/libx/odata/parse/multipartToJson.js +220 -0
- package/node_modules/@sap/cds/libx/odata/parse/parser.js +1 -0
- package/node_modules/@sap/cds/libx/odata/utils/etag.js +21 -0
- package/node_modules/@sap/cds/libx/odata/utils/index.js +348 -0
- package/node_modules/@sap/cds/libx/odata/utils/metadata.js +223 -0
- package/node_modules/@sap/cds/libx/odata/utils/normalizeTimeData.js +43 -0
- package/node_modules/@sap/cds/libx/odata/utils/odataBind.js +43 -0
- package/node_modules/@sap/cds/libx/odata/utils/postProcess.js +86 -0
- package/node_modules/@sap/cds/libx/odata/utils/readAfterWrite.js +144 -0
- package/node_modules/@sap/cds/libx/odata/utils/result.js +91 -0
- package/node_modules/@sap/cds/libx/queue/JobExecutor.js +80 -0
- package/node_modules/@sap/cds/libx/queue/SchedulingService.js +213 -0
- package/node_modules/@sap/cds/libx/queue/TaskRunner.js +92 -0
- package/node_modules/@sap/cds/libx/queue/api.js +28 -0
- package/node_modules/@sap/cds/libx/queue/consts.js +13 -0
- package/node_modules/@sap/cds/libx/queue/index.js +608 -0
- package/node_modules/@sap/cds/libx/queue/processing.js +645 -0
- package/node_modules/@sap/cds/libx/queue/utils.js +159 -0
- package/node_modules/@sap/cds/libx/rest/RestAdapter.js +102 -0
- package/node_modules/@sap/cds/libx/rest/middleware/create.js +50 -0
- package/node_modules/@sap/cds/libx/rest/middleware/delete.js +17 -0
- package/node_modules/@sap/cds/libx/rest/middleware/operation.js +54 -0
- package/node_modules/@sap/cds/libx/rest/middleware/parse.js +142 -0
- package/node_modules/@sap/cds/libx/rest/middleware/read.js +34 -0
- package/node_modules/@sap/cds/libx/rest/middleware/update.js +28 -0
- package/node_modules/@sap/cds/libx/rest/middleware/upsert.js +35 -0
- package/node_modules/@sap/cds/libx/rest/post-processing.js +33 -0
- package/node_modules/@sap/cds/libx/rest/pre-processing.js +28 -0
- package/node_modules/@sap/cds/package.json +49 -0
- package/node_modules/@sap/cds/server.js +119 -0
- package/node_modules/@sap/cds/srv/app-service.js +1 -0
- package/node_modules/@sap/cds/srv/db-service.js +1 -0
- package/node_modules/@sap/cds/srv/msg-service.js +1 -0
- package/node_modules/@sap/cds/srv/outbox.cds +15 -0
- package/node_modules/@sap/cds/srv/remote-service.js +1 -0
- package/node_modules/@sap/cds/srv/ucl-service.cds +58 -0
- package/node_modules/@sap/cds/srv/ucl-service.js +1 -0
- package/node_modules/@sap/cds/tasks/enterprise-messaging-deploy.js +52 -0
- package/node_modules/@sap/cds-compiler/CHANGELOG.md +987 -0
- package/node_modules/@sap/cds-compiler/LICENSE +32 -0
- package/node_modules/@sap/cds-compiler/README.md +44 -0
- package/node_modules/@sap/cds-compiler/bin/cds_update_identifiers.js +141 -0
- package/node_modules/@sap/cds-compiler/bin/cdsc.js +776 -0
- package/node_modules/@sap/cds-compiler/bin/cdshi.js +83 -0
- package/node_modules/@sap/cds-compiler/bin/cdsse.js +210 -0
- package/node_modules/@sap/cds-compiler/bin/cdsv2m.js +52 -0
- package/node_modules/@sap/cds-compiler/doc/API.md +16 -0
- package/node_modules/@sap/cds-compiler/doc/IncompatibleChanges_v5.md +436 -0
- package/node_modules/@sap/cds-compiler/doc/IncompatibleChanges_v6.md +659 -0
- package/node_modules/@sap/cds-compiler/doc/IncompatibleChanges_v7.md +639 -0
- package/node_modules/@sap/cds-compiler/doc/Versioning.md +79 -0
- package/node_modules/@sap/cds-compiler/lib/api/main.js +1415 -0
- package/node_modules/@sap/cds-compiler/lib/api/options.js +275 -0
- package/node_modules/@sap/cds-compiler/lib/api/validate.js +209 -0
- package/node_modules/@sap/cds-compiler/lib/base/builtins.js +122 -0
- package/node_modules/@sap/cds-compiler/lib/base/cloneCsn.js +226 -0
- package/node_modules/@sap/cds-compiler/lib/base/csnRefs.js +1420 -0
- package/node_modules/@sap/cds-compiler/lib/base/error.js +30 -0
- package/node_modules/@sap/cds-compiler/lib/base/keywords.js +930 -0
- package/node_modules/@sap/cds-compiler/lib/base/location.js +304 -0
- package/node_modules/@sap/cds-compiler/lib/base/message-registry.js +1635 -0
- package/node_modules/@sap/cds-compiler/lib/base/messages.js +1994 -0
- package/node_modules/@sap/cds-compiler/lib/base/meta.js +10 -0
- package/node_modules/@sap/cds-compiler/lib/base/model-api.js +82 -0
- package/node_modules/@sap/cds-compiler/lib/base/optionProcessor.js +593 -0
- package/node_modules/@sap/cds-compiler/lib/base/specialOptions.js +125 -0
- package/node_modules/@sap/cds-compiler/lib/base/trace.js +91 -0
- package/node_modules/@sap/cds-compiler/lib/base/xprAsTree.js +85 -0
- package/node_modules/@sap/cds-compiler/lib/checks/actionsFunctions.js +128 -0
- package/node_modules/@sap/cds-compiler/lib/checks/annotationsOData.js +126 -0
- package/node_modules/@sap/cds-compiler/lib/checks/arrayOfs.js +52 -0
- package/node_modules/@sap/cds-compiler/lib/checks/assocOutsideService.js +29 -0
- package/node_modules/@sap/cds-compiler/lib/checks/cdsMap.js +27 -0
- package/node_modules/@sap/cds-compiler/lib/checks/cdsPersistence.js +24 -0
- package/node_modules/@sap/cds-compiler/lib/checks/checkForTypes.js +35 -0
- package/node_modules/@sap/cds-compiler/lib/checks/checkPathsInStoredCalcElement.js +84 -0
- package/node_modules/@sap/cds-compiler/lib/checks/defaultValues.js +34 -0
- package/node_modules/@sap/cds-compiler/lib/checks/elements.js +345 -0
- package/node_modules/@sap/cds-compiler/lib/checks/enricher.js +225 -0
- package/node_modules/@sap/cds-compiler/lib/checks/enums.js +31 -0
- package/node_modules/@sap/cds-compiler/lib/checks/existsExpressionsOnlyForeignKeys.js +77 -0
- package/node_modules/@sap/cds-compiler/lib/checks/existsInForbiddenPlaces.js +32 -0
- package/node_modules/@sap/cds-compiler/lib/checks/existsMustEndInAssoc.js +32 -0
- package/node_modules/@sap/cds-compiler/lib/checks/existsMustNotStartWithDollarSelf.js +31 -0
- package/node_modules/@sap/cds-compiler/lib/checks/featureFlags.js +69 -0
- package/node_modules/@sap/cds-compiler/lib/checks/foreignKeys.js +80 -0
- package/node_modules/@sap/cds-compiler/lib/checks/hasPersistedElements.js +69 -0
- package/node_modules/@sap/cds-compiler/lib/checks/invalidTarget.js +64 -0
- package/node_modules/@sap/cds-compiler/lib/checks/managedInType.js +84 -0
- package/node_modules/@sap/cds-compiler/lib/checks/managedWithoutKeys.js +20 -0
- package/node_modules/@sap/cds-compiler/lib/checks/manyExpand.js +28 -0
- package/node_modules/@sap/cds-compiler/lib/checks/manyNavigations.js +33 -0
- package/node_modules/@sap/cds-compiler/lib/checks/nullableKeys.js +13 -0
- package/node_modules/@sap/cds-compiler/lib/checks/onConditions.js +268 -0
- package/node_modules/@sap/cds-compiler/lib/checks/parameters.js +46 -0
- package/node_modules/@sap/cds-compiler/lib/checks/queryNoDbArtifacts.js +225 -0
- package/node_modules/@sap/cds-compiler/lib/checks/selectItems.js +57 -0
- package/node_modules/@sap/cds-compiler/lib/checks/sql-snippets.js +117 -0
- package/node_modules/@sap/cds-compiler/lib/checks/structuredAnnoExpressions.js +26 -0
- package/node_modules/@sap/cds-compiler/lib/checks/typeParameters.js +162 -0
- package/node_modules/@sap/cds-compiler/lib/checks/types.js +198 -0
- package/node_modules/@sap/cds-compiler/lib/checks/utils.js +96 -0
- package/node_modules/@sap/cds-compiler/lib/checks/validator.js +292 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/assert-consistency.js +1115 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/base.js +153 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/builtins.js +499 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/checks.js +1447 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/cycle-detector.js +135 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/define.js +1190 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/dictionaries.js +109 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/extend.js +1928 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/finalize-parse-cdl.js +170 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/generate.js +910 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/index.js +695 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/kick-start.js +142 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/lsp-api.js +506 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/moduleLayers.js +75 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/populate.js +1425 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/propagator.js +457 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/resolve.js +1996 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/shared.js +2272 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/tweak-assocs.js +1388 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/utils.js +929 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/xpr-rewrite.js +778 -0
- package/node_modules/@sap/cds-compiler/lib/compiler/xsn-model.js +50 -0
- package/node_modules/@sap/cds-compiler/lib/edm/EdmPrimitiveTypeDefinitions.js +263 -0
- package/node_modules/@sap/cds-compiler/lib/edm/annotations/edmJson.js +1245 -0
- package/node_modules/@sap/cds-compiler/lib/edm/annotations/genericTranslation.js +1873 -0
- package/node_modules/@sap/cds-compiler/lib/edm/annotations/preprocessAnnotations.js +308 -0
- package/node_modules/@sap/cds-compiler/lib/edm/annotations/vocabularyDefinitions.js +166 -0
- package/node_modules/@sap/cds-compiler/lib/edm/csn2edm.js +1226 -0
- package/node_modules/@sap/cds-compiler/lib/edm/edm.js +1628 -0
- package/node_modules/@sap/cds-compiler/lib/edm/edmAnnoPreprocessor.js +312 -0
- package/node_modules/@sap/cds-compiler/lib/edm/edmInboundChecks.js +182 -0
- package/node_modules/@sap/cds-compiler/lib/edm/edmPreprocessor.js +2320 -0
- package/node_modules/@sap/cds-compiler/lib/edm/edmUtils.js +949 -0
- package/node_modules/@sap/cds-compiler/lib/gen/BaseParser.js +892 -0
- package/node_modules/@sap/cds-compiler/lib/gen/CdlGrammar.checksum +1 -0
- package/node_modules/@sap/cds-compiler/lib/gen/CdlParser.js +4549 -0
- package/node_modules/@sap/cds-compiler/lib/gen/Dictionary.json +5124 -0
- package/node_modules/@sap/cds-compiler/lib/gen/cdlKeywords.json +26 -0
- package/node_modules/@sap/cds-compiler/lib/json/csnVersion.js +53 -0
- package/node_modules/@sap/cds-compiler/lib/json/from-csn.js +2217 -0
- package/node_modules/@sap/cds-compiler/lib/json/to-csn.js +1621 -0
- package/node_modules/@sap/cds-compiler/lib/language/docCommentParser.js +181 -0
- package/node_modules/@sap/cds-compiler/lib/language/genericAntlrParser.js +0 -0
- package/node_modules/@sap/cds-compiler/lib/language/multiLineStringParser.js +525 -0
- package/node_modules/@sap/cds-compiler/lib/language/textUtils.js +61 -0
- package/node_modules/@sap/cds-compiler/lib/main.d.ts +1631 -0
- package/node_modules/@sap/cds-compiler/lib/main.js +212 -0
- package/node_modules/@sap/cds-compiler/lib/model/csnUtils.js +1532 -0
- package/node_modules/@sap/cds-compiler/lib/model/sortViews.js +121 -0
- package/node_modules/@sap/cds-compiler/lib/modelCompare/compare.js +475 -0
- package/node_modules/@sap/cds-compiler/lib/modelCompare/utils/filter.js +230 -0
- package/node_modules/@sap/cds-compiler/lib/parsers/AstBuildingParser.js +1696 -0
- package/node_modules/@sap/cds-compiler/lib/parsers/Lexer.js +253 -0
- package/node_modules/@sap/cds-compiler/lib/parsers/XprTree.js +269 -0
- package/node_modules/@sap/cds-compiler/lib/parsers/identifiers.js +22 -0
- package/node_modules/@sap/cds-compiler/lib/parsers/index.js +120 -0
- package/node_modules/@sap/cds-compiler/lib/render/DuplicateChecker.js +126 -0
- package/node_modules/@sap/cds-compiler/lib/render/manageConstraints.js +257 -0
- package/node_modules/@sap/cds-compiler/lib/render/toCdl.js +3084 -0
- package/node_modules/@sap/cds-compiler/lib/render/toRename.js +115 -0
- package/node_modules/@sap/cds-compiler/lib/render/toSql.js +1789 -0
- package/node_modules/@sap/cds-compiler/lib/render/utils/common.js +784 -0
- package/node_modules/@sap/cds-compiler/lib/render/utils/delta.js +291 -0
- package/node_modules/@sap/cds-compiler/lib/render/utils/operators.js +160 -0
- package/node_modules/@sap/cds-compiler/lib/render/utils/pretty.js +337 -0
- package/node_modules/@sap/cds-compiler/lib/render/utils/sql.js +225 -0
- package/node_modules/@sap/cds-compiler/lib/render/utils/standardDatabaseFunctions.js +834 -0
- package/node_modules/@sap/cds-compiler/lib/render/utils/stringEscapes.js +112 -0
- package/node_modules/@sap/cds-compiler/lib/render/utils/unique.js +52 -0
- package/node_modules/@sap/cds-compiler/lib/sql-identifier.js +109 -0
- package/node_modules/@sap/cds-compiler/lib/tool-lib/enrichCsn.js +383 -0
- package/node_modules/@sap/cds-compiler/lib/tool-lib/index.js +14 -0
- package/node_modules/@sap/cds-compiler/lib/tool-lib/inspectModelStatistics.js +82 -0
- package/node_modules/@sap/cds-compiler/lib/tool-lib/inspectPropagation.js +191 -0
- package/node_modules/@sap/cds-compiler/lib/tool-lib/inspectUtils.js +44 -0
- package/node_modules/@sap/cds-compiler/lib/tool-lib/revealInternalProperties.js +419 -0
- package/node_modules/@sap/cds-compiler/lib/transform/addTenantFields.js +431 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/applyTransformations.js +444 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/assertUnique.js +307 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/associations.js +270 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/assocsToQueries/normalizeFrom.js +33 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/assocsToQueries/transformExists.js +401 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/assocsToQueries/utils.js +449 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/backlinks.js +333 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/cdsPersistence.js +127 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/constraints.js +619 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/expansion.js +913 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/flattening.js +814 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/groupByOrderBy.js +84 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/killAnnotations.js +44 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/processSqlServices.js +135 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/rewriteCalculatedElements.js +507 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/temporal.js +263 -0
- package/node_modules/@sap/cds-compiler/lib/transform/db/views.js +404 -0
- package/node_modules/@sap/cds-compiler/lib/transform/draft/db.js +381 -0
- package/node_modules/@sap/cds-compiler/lib/transform/draft/odata.js +302 -0
- package/node_modules/@sap/cds-compiler/lib/transform/effective/annotations.js +342 -0
- package/node_modules/@sap/cds-compiler/lib/transform/effective/associations.js +81 -0
- package/node_modules/@sap/cds-compiler/lib/transform/effective/flattening.js +124 -0
- package/node_modules/@sap/cds-compiler/lib/transform/effective/main.js +164 -0
- package/node_modules/@sap/cds-compiler/lib/transform/effective/misc.js +106 -0
- package/node_modules/@sap/cds-compiler/lib/transform/effective/queries.js +40 -0
- package/node_modules/@sap/cds-compiler/lib/transform/effective/service.js +34 -0
- package/node_modules/@sap/cds-compiler/lib/transform/effective/types.js +168 -0
- package/node_modules/@sap/cds-compiler/lib/transform/featureFlags.js +10 -0
- package/node_modules/@sap/cds-compiler/lib/transform/fioriTreeViews.js +196 -0
- package/node_modules/@sap/cds-compiler/lib/transform/forOdata.js +687 -0
- package/node_modules/@sap/cds-compiler/lib/transform/forRelationalDB.js +658 -0
- package/node_modules/@sap/cds-compiler/lib/transform/localized.js +758 -0
- package/node_modules/@sap/cds-compiler/lib/transform/odata/adaptAnnotationRefs.js +101 -0
- package/node_modules/@sap/cds-compiler/lib/transform/odata/createForeignKeys.js +203 -0
- package/node_modules/@sap/cds-compiler/lib/transform/odata/flattening.js +730 -0
- package/node_modules/@sap/cds-compiler/lib/transform/odata/foreignKeyRefsInXprAnnos.js +124 -0
- package/node_modules/@sap/cds-compiler/lib/transform/odata/toFinalBaseType.js +297 -0
- package/node_modules/@sap/cds-compiler/lib/transform/odata/typesExposure.js +455 -0
- package/node_modules/@sap/cds-compiler/lib/transform/odata/utils.js +65 -0
- package/node_modules/@sap/cds-compiler/lib/transform/transformUtils.js +1000 -0
- package/node_modules/@sap/cds-compiler/lib/transform/translateAssocsToJoins.js +1905 -0
- package/node_modules/@sap/cds-compiler/lib/transform/tupleExpansion.js +548 -0
- package/node_modules/@sap/cds-compiler/lib/transform/universalCsn/coreComputed.js +194 -0
- package/node_modules/@sap/cds-compiler/lib/transform/universalCsn/universalCsnEnricher.js +800 -0
- package/node_modules/@sap/cds-compiler/lib/transform/universalCsn/utils.js +63 -0
- package/node_modules/@sap/cds-compiler/lib/utils/file.js +267 -0
- package/node_modules/@sap/cds-compiler/lib/utils/lazyload.js +37 -0
- package/node_modules/@sap/cds-compiler/lib/utils/moduleResolve.js +608 -0
- package/node_modules/@sap/cds-compiler/lib/utils/node-helpers.js +44 -0
- package/node_modules/@sap/cds-compiler/lib/utils/objectUtils.js +112 -0
- package/node_modules/@sap/cds-compiler/lib/utils/optionProcessorHelper.js +652 -0
- package/node_modules/@sap/cds-compiler/lib/utils/shuffle.js +54 -0
- package/node_modules/@sap/cds-compiler/lib/utils/term.js +102 -0
- package/node_modules/@sap/cds-compiler/lib/utils/timetrace.js +158 -0
- package/node_modules/@sap/cds-compiler/package.json +30 -0
- package/node_modules/@sap/cds-compiler/share/messages/.markdownlintrc +13 -0
- package/node_modules/@sap/cds-compiler/share/messages/README.md +62 -0
- package/node_modules/@sap/cds-compiler/share/messages/anno-duplicate-unrelated-layer.md +69 -0
- package/node_modules/@sap/cds-compiler/share/messages/anno-missing-rewrite.md +45 -0
- package/node_modules/@sap/cds-compiler/share/messages/check-proper-type-of.md +46 -0
- package/node_modules/@sap/cds-compiler/share/messages/def-duplicate-autoexposed.md +82 -0
- package/node_modules/@sap/cds-compiler/share/messages/def-missing-type.md +48 -0
- package/node_modules/@sap/cds-compiler/share/messages/def-upcoming-virtual-change.md +55 -0
- package/node_modules/@sap/cds-compiler/share/messages/extend-repeated-intralayer.md +47 -0
- package/node_modules/@sap/cds-compiler/share/messages/extend-unrelated-layer.md +58 -0
- package/node_modules/@sap/cds-compiler/share/messages/file-unexpected-case-mismatch.md +61 -0
- package/node_modules/@sap/cds-compiler/share/messages/message-explanations.json +22 -0
- package/node_modules/@sap/cds-compiler/share/messages/redirected-to-ambiguous.md +72 -0
- package/node_modules/@sap/cds-compiler/share/messages/redirected-to-complex.md +66 -0
- package/node_modules/@sap/cds-compiler/share/messages/redirected-to-unrelated.md +78 -0
- package/node_modules/@sap/cds-compiler/share/messages/rewrite-not-supported.md +61 -0
- package/node_modules/@sap/cds-compiler/share/messages/rewrite-undefined-key.md +94 -0
- package/node_modules/@sap/cds-compiler/share/messages/syntax-expecting-unsigned-int.md +41 -0
- package/node_modules/@sap/cds-compiler/share/messages/type-missing-enum-value.md +59 -0
- package/node_modules/@sap/cds-compiler/share/messages/wildcard-excluding-one.md +37 -0
- package/node_modules/@sap/cds-fiori/CHANGELOG.md +163 -0
- package/node_modules/@sap/cds-fiori/LICENSE +32 -0
- package/node_modules/@sap/cds-fiori/README.md +11 -0
- package/node_modules/@sap/cds-fiori/app/preview.js +360 -0
- package/node_modules/@sap/cds-fiori/app/routes.js +74 -0
- package/node_modules/@sap/cds-fiori/cds-plugin.js +5 -0
- package/node_modules/@sap/cds-fiori/package.json +42 -0
- package/node_modules/@sap/cds-mtxs/CHANGELOG.md +1322 -0
- package/node_modules/@sap/cds-mtxs/LICENSE +32 -0
- package/node_modules/@sap/cds-mtxs/README.md +9 -0
- package/node_modules/@sap/cds-mtxs/bin/cds-mtx-migrate.js +115 -0
- package/node_modules/@sap/cds-mtxs/bin/cds-mtx.js +134 -0
- package/node_modules/@sap/cds-mtxs/cds-plugin.js +30 -0
- package/node_modules/@sap/cds-mtxs/db/extensions.cds +10 -0
- package/node_modules/@sap/cds-mtxs/db/t0.cds +46 -0
- package/node_modules/@sap/cds-mtxs/lib/index.js +26 -0
- package/node_modules/@sap/cds-mtxs/lib/migration/extension-project-builder.js +129 -0
- package/node_modules/@sap/cds-mtxs/lib/migration/extension-project.js +89 -0
- package/node_modules/@sap/cds-mtxs/lib/migration/migration.js +485 -0
- package/node_modules/@sap/cds-mtxs/lib/migration/mtx-adapter.js +230 -0
- package/node_modules/@sap/cds-mtxs/lib/utils.js +255 -0
- package/node_modules/@sap/cds-mtxs/package.json +257 -0
- package/node_modules/@sap/cds-mtxs/srv/bootstrap.cds +2 -0
- package/node_modules/@sap/cds-mtxs/srv/bootstrap.js +33 -0
- package/node_modules/@sap/cds-mtxs/srv/cf/abstract-provisioning-service.js +307 -0
- package/node_modules/@sap/cds-mtxs/srv/cf/saas-provisioning-service.cds +30 -0
- package/node_modules/@sap/cds-mtxs/srv/cf/saas-provisioning-service.js +59 -0
- package/node_modules/@sap/cds-mtxs/srv/cf/sms-provisioning-service.cds +37 -0
- package/node_modules/@sap/cds-mtxs/srv/cf/sms-provisioning-service.js +115 -0
- package/node_modules/@sap/cds-mtxs/srv/config.js +16 -0
- package/node_modules/@sap/cds-mtxs/srv/dberrors.js +45 -0
- package/node_modules/@sap/cds-mtxs/srv/deployment-service.cds +54 -0
- package/node_modules/@sap/cds-mtxs/srv/deployment-service.js +26 -0
- package/node_modules/@sap/cds-mtxs/srv/extensibility/compat/update.js +95 -0
- package/node_modules/@sap/cds-mtxs/srv/extensibility/linter/allowlist.js +292 -0
- package/node_modules/@sap/cds-mtxs/srv/extensibility/linter/annotations.js +168 -0
- package/node_modules/@sap/cds-mtxs/srv/extensibility/linter/config.js +98 -0
- package/node_modules/@sap/cds-mtxs/srv/extensibility/linter/index.js +76 -0
- package/node_modules/@sap/cds-mtxs/srv/extensibility/linter/message.js +57 -0
- package/node_modules/@sap/cds-mtxs/srv/extensibility/linter/namespace.js +94 -0
- package/node_modules/@sap/cds-mtxs/srv/extensibility-service.cds +82 -0
- package/node_modules/@sap/cds-mtxs/srv/extensibility-service.js +550 -0
- package/node_modules/@sap/cds-mtxs/srv/jobs-service.cds +37 -0
- package/node_modules/@sap/cds-mtxs/srv/jobs-service.js +346 -0
- package/node_modules/@sap/cds-mtxs/srv/model-provider.cds +85 -0
- package/node_modules/@sap/cds-mtxs/srv/model-provider.js +412 -0
- package/node_modules/@sap/cds-mtxs/srv/plugins/common.js +130 -0
- package/node_modules/@sap/cds-mtxs/srv/plugins/hana/ctnr-mgr-base.js +154 -0
- package/node_modules/@sap/cds-mtxs/srv/plugins/hana/hdi-ctnr-mgr.js +15 -0
- package/node_modules/@sap/cds-mtxs/srv/plugins/hana/hdi.js +167 -0
- package/node_modules/@sap/cds-mtxs/srv/plugins/hana/srv-mgr.js +323 -0
- package/node_modules/@sap/cds-mtxs/srv/plugins/hana/tms.js +542 -0
- package/node_modules/@sap/cds-mtxs/srv/plugins/hana.js +381 -0
- package/node_modules/@sap/cds-mtxs/srv/plugins/sqlite.js +122 -0
- package/node_modules/@sap/cds-mtxs/srv/worker/load.js +14 -0
- package/node_modules/@sap/cds-mtxs/srv/worker/pool.js +54 -0
- package/node_modules/@sap/hdi/CHANGELOG.md +159 -0
- package/node_modules/@sap/hdi/LICENSE +38 -0
- package/node_modules/@sap/hdi/README.md +244 -0
- package/node_modules/@sap/hdi/index.js +58 -0
- package/node_modules/@sap/hdi/lib/ResultTuple.js +33 -0
- package/node_modules/@sap/hdi/lib/main/Container.js +1107 -0
- package/node_modules/@sap/hdi/lib/main/ContainerGroup.js +147 -0
- package/node_modules/@sap/hdi/lib/main/ContainerGroupBase.js +788 -0
- package/node_modules/@sap/hdi/lib/main/HDI.js +437 -0
- package/node_modules/@sap/hdi/lib/main/HDIBase.js +592 -0
- package/node_modules/@sap/hdi/lib/main/promises/ContainerGroupPromises.js +401 -0
- package/node_modules/@sap/hdi/lib/main/promises/ContainerPromises.js +454 -0
- package/node_modules/@sap/hdi/lib/main/promises/HDIPromises.js +218 -0
- package/node_modules/@sap/hdi/lib/parameter/APIPrivilege.js +47 -0
- package/node_modules/@sap/hdi/lib/parameter/File.js +25 -0
- package/node_modules/@sap/hdi/lib/parameter/FileWithContent.js +24 -0
- package/node_modules/@sap/hdi/lib/parameter/Folder.js +25 -0
- package/node_modules/@sap/hdi/lib/parameter/FolderWithContent.js +24 -0
- package/node_modules/@sap/hdi/lib/parameter/HDIObject.js +40 -0
- package/node_modules/@sap/hdi/lib/parameter/LibraryConfiguration.js +62 -0
- package/node_modules/@sap/hdi/lib/parameter/Parameter.js +73 -0
- package/node_modules/@sap/hdi/lib/parameter/Path.js +39 -0
- package/node_modules/@sap/hdi/lib/parameter/PathParameter.js +43 -0
- package/node_modules/@sap/hdi/lib/parameter/PathWithContent.js +41 -0
- package/node_modules/@sap/hdi/lib/parameter/SchemaPrivilege.js +44 -0
- package/node_modules/@sap/hdi/lib/parameter/SchemaRole.js +44 -0
- package/node_modules/@sap/hdi/lib/parameter/TableRow.js +72 -0
- package/node_modules/@sap/hdi/lib/parameter/parameterCheck.js +41 -0
- package/node_modules/@sap/hdi/lib/result/DependencyResultTuple.js +105 -0
- package/node_modules/@sap/hdi/lib/result/LibraryInformationResultTuple.js +62 -0
- package/node_modules/@sap/hdi/lib/result/MakeGroupResultTuple.js +57 -0
- package/node_modules/@sap/hdi/lib/result/MetadataContentResultTuple.js +56 -0
- package/node_modules/@sap/hdi/lib/result/MetadataResult.js +40 -0
- package/node_modules/@sap/hdi/lib/result/MetadataResultTuple.js +37 -0
- package/node_modules/@sap/hdi/lib/result/StatusResultTuple.js +59 -0
- package/node_modules/@sap/hdi/lib/util/Constants.js +55 -0
- package/node_modules/@sap/hdi/lib/util/callback.js +18 -0
- package/node_modules/@sap/hdi/lib/util/connection.js +20 -0
- package/node_modules/@sap/hdi/lib/util/schema_escaping.js +11 -0
- package/node_modules/@sap/hdi/lib/util/typeCheck.js +43 -0
- package/node_modules/@sap/hdi/lib/util/wrap.js +23 -0
- package/node_modules/@sap/hdi/package.json +37 -0
- package/node_modules/@sap/hdi-deploy/CHANGELOG.md +672 -0
- package/node_modules/@sap/hdi-deploy/LICENSE +38 -0
- package/node_modules/@sap/hdi-deploy/README.md +1237 -0
- package/node_modules/@sap/hdi-deploy/deploy.js +1070 -0
- package/node_modules/@sap/hdi-deploy/lib/IgnoreFile.js +56 -0
- package/node_modules/@sap/hdi-deploy/lib/arguments.js +203 -0
- package/node_modules/@sap/hdi-deploy/lib/check_client.js +31 -0
- package/node_modules/@sap/hdi-deploy/lib/client-info.js +80 -0
- package/node_modules/@sap/hdi-deploy/lib/connections.js +4 -0
- package/node_modules/@sap/hdi-deploy/lib/content.js +478 -0
- package/node_modules/@sap/hdi-deploy/lib/deploy.js +113 -0
- package/node_modules/@sap/hdi-deploy/lib/features.client.js +59 -0
- package/node_modules/@sap/hdi-deploy/lib/fileWalker.js +58 -0
- package/node_modules/@sap/hdi-deploy/lib/fileWorker.js +85 -0
- package/node_modules/@sap/hdi-deploy/lib/filters/PathFilter.js +211 -0
- package/node_modules/@sap/hdi-deploy/lib/filters/regex-helper.js +87 -0
- package/node_modules/@sap/hdi-deploy/lib/hana-helper.js +1055 -0
- package/node_modules/@sap/hdi-deploy/lib/hdi.js +77 -0
- package/node_modules/@sap/hdi-deploy/lib/hdiTables.js +32 -0
- package/node_modules/@sap/hdi-deploy/lib/hdi_utils.js +356 -0
- package/node_modules/@sap/hdi-deploy/lib/info.js +44 -0
- package/node_modules/@sap/hdi-deploy/lib/json-comment-stripper.js +147 -0
- package/node_modules/@sap/hdi-deploy/lib/liveness-ping.js +53 -0
- package/node_modules/@sap/hdi-deploy/lib/logger.js +434 -0
- package/node_modules/@sap/hdi-deploy/lib/make.js +460 -0
- package/node_modules/@sap/hdi-deploy/lib/messages.hdi.js +7 -0
- package/node_modules/@sap/hdi-deploy/lib/options.js +49 -0
- package/node_modules/@sap/hdi-deploy/lib/ownership_checker.js +87 -0
- package/node_modules/@sap/hdi-deploy/lib/paths.js +71 -0
- package/node_modules/@sap/hdi-deploy/lib/privileges/grantor.js +94 -0
- package/node_modules/@sap/hdi-deploy/lib/privileges/privilege_utils.js +414 -0
- package/node_modules/@sap/hdi-deploy/lib/privileges/privileges.js +73 -0
- package/node_modules/@sap/hdi-deploy/lib/privileges/revoker.js +94 -0
- package/node_modules/@sap/hdi-deploy/lib/privileges/strategies.js +1049 -0
- package/node_modules/@sap/hdi-deploy/lib/services.js +253 -0
- package/node_modules/@sap/hdi-deploy/lib/shared-password-service.js +62 -0
- package/node_modules/@sap/hdi-deploy/lib/status.js +113 -0
- package/node_modules/@sap/hdi-deploy/lib/tasks.js +985 -0
- package/node_modules/@sap/hdi-deploy/lib/template.js +91 -0
- package/node_modules/@sap/hdi-deploy/lib/utils.js +717 -0
- package/node_modules/@sap/hdi-deploy/lib/version.cloud.js +71 -0
- package/node_modules/@sap/hdi-deploy/lib/version.container-api.js +100 -0
- package/node_modules/@sap/hdi-deploy/lib/version.hdi-version.js +101 -0
- package/node_modules/@sap/hdi-deploy/lib/version.server.js +145 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/Generator.js +598 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/artifact-visitors/AccessArtifactParserVisitor.js +68 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/artifact-visitors/ArtifactVisitor.js +11 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/artifact-visitors/DataArtifactParserVisitor.js +75 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/AccessContainerDuplicate.js +16 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/DataContainerDuplicate.js +16 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/FileArtifact.js +228 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/FileArtifactsFactory.js +243 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/HDBCDS.js +182 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/HDBRole.js +26 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/HDBSequence.js +29 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/HDBTable.js +82 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/HDIConfig.js +203 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/HDINamespace.js +16 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model/Model.js +306 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model/ModelSerializer.js +132 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/Column.js +19 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/Context.js +117 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/DataControlLanguageModelArtifact.js +14 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/DerivedType.js +23 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/Entity.js +14 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/ModelArtifact.js +22 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/ModelArtifactsFactory.js +80 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/StructuredType.js +23 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/TableModelArtifact.js +41 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/View.js +14 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/resources/cfg/projectionViewConfig.hdbprojectionviewconfig.template +8 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/resources/cfg/synonym.hdbsynonymconfig.template +8 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/resources/cfg/zdm_data_access.hdbgrants.template +10 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/resources/src/namespace.hdinamespace.template +4 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/resources/src/projectionView.hdbprojectionview.template +5 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/resources/src/synonym.hdbsynonym.template +4 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/resources/src/zdm_access.hdbrole.template +10 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/resources/src/zdm_sequences.hdbrole.template +12 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/tasks/FinalizeTask.js +80 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/tasks/InstallTask.js +93 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/tasks/StartTask.js +101 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/tasks/Task.js +110 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/tasks/taskFactory.js +23 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/zdmDeployer.js +34 -0
- package/node_modules/@sap/hdi-deploy/lib/zdm/zdmUtils.js +257 -0
- package/node_modules/@sap/hdi-deploy/library.js +129 -0
- package/node_modules/@sap/hdi-deploy/package.json +42 -0
- package/node_modules/@sap/xsenv/CHANGELOG.md +236 -0
- package/node_modules/@sap/xsenv/LICENSE +37 -0
- package/node_modules/@sap/xsenv/README.md +548 -0
- package/node_modules/@sap/xsenv/index.js +17 -0
- package/node_modules/@sap/xsenv/lib/cacert.js +26 -0
- package/node_modules/@sap/xsenv/lib/cfservice.js +59 -0
- package/node_modules/@sap/xsenv/lib/filter.js +42 -0
- package/node_modules/@sap/xsenv/lib/k8sservice.js +121 -0
- package/node_modules/@sap/xsenv/lib/loadEnv.js +31 -0
- package/node_modules/@sap/xsenv/lib/redactServiceData.js +32 -0
- package/node_modules/@sap/xsenv/lib/serviceBindingService.js +146 -0
- package/node_modules/@sap/xsenv/lib/xsservices.js +180 -0
- package/node_modules/@sap/xsenv/migration.md +49 -0
- package/node_modules/@sap/xsenv/package.json +49 -0
- package/node_modules/accepts/HISTORY.md +250 -0
- package/node_modules/accepts/LICENSE +23 -0
- package/node_modules/accepts/README.md +140 -0
- package/node_modules/accepts/index.js +238 -0
- package/node_modules/accepts/package.json +47 -0
- package/node_modules/assert-plus/AUTHORS +6 -0
- package/node_modules/assert-plus/CHANGES.md +14 -0
- package/node_modules/assert-plus/README.md +162 -0
- package/node_modules/assert-plus/assert.js +211 -0
- package/node_modules/assert-plus/package.json +23 -0
- package/node_modules/async/CHANGELOG.md +351 -0
- package/node_modules/async/LICENSE +19 -0
- package/node_modules/async/README.md +59 -0
- package/node_modules/async/all.js +119 -0
- package/node_modules/async/allLimit.js +46 -0
- package/node_modules/async/allSeries.js +45 -0
- package/node_modules/async/any.js +122 -0
- package/node_modules/async/anyLimit.js +47 -0
- package/node_modules/async/anySeries.js +46 -0
- package/node_modules/async/apply.js +11 -0
- package/node_modules/async/applyEach.js +57 -0
- package/node_modules/async/applyEachSeries.js +37 -0
- package/node_modules/async/asyncify.js +118 -0
- package/node_modules/async/auto.js +333 -0
- package/node_modules/async/autoInject.js +182 -0
- package/node_modules/async/bower.json +17 -0
- package/node_modules/async/cargo.js +63 -0
- package/node_modules/async/cargoQueue.js +71 -0
- package/node_modules/async/compose.js +55 -0
- package/node_modules/async/concat.js +115 -0
- package/node_modules/async/concatLimit.js +60 -0
- package/node_modules/async/concatSeries.js +41 -0
- package/node_modules/async/constant.js +14 -0
- package/node_modules/async/detect.js +96 -0
- package/node_modules/async/detectLimit.js +48 -0
- package/node_modules/async/detectSeries.js +47 -0
- package/node_modules/async/dir.js +43 -0
- package/node_modules/async/dist/async.js +6061 -0
- package/node_modules/async/dist/async.min.js +1 -0
- package/node_modules/async/dist/async.mjs +5948 -0
- package/node_modules/async/doDuring.js +68 -0
- package/node_modules/async/doUntil.js +46 -0
- package/node_modules/async/doWhilst.js +68 -0
- package/node_modules/async/during.js +78 -0
- package/node_modules/async/each.js +129 -0
- package/node_modules/async/eachLimit.js +50 -0
- package/node_modules/async/eachOf.js +185 -0
- package/node_modules/async/eachOfLimit.js +47 -0
- package/node_modules/async/eachOfSeries.js +39 -0
- package/node_modules/async/eachSeries.js +44 -0
- package/node_modules/async/ensureAsync.js +67 -0
- package/node_modules/async/every.js +119 -0
- package/node_modules/async/everyLimit.js +46 -0
- package/node_modules/async/everySeries.js +45 -0
- package/node_modules/async/filter.js +93 -0
- package/node_modules/async/filterLimit.js +45 -0
- package/node_modules/async/filterSeries.js +43 -0
- package/node_modules/async/find.js +96 -0
- package/node_modules/async/findLimit.js +48 -0
- package/node_modules/async/findSeries.js +47 -0
- package/node_modules/async/flatMap.js +115 -0
- package/node_modules/async/flatMapLimit.js +60 -0
- package/node_modules/async/flatMapSeries.js +41 -0
- package/node_modules/async/foldl.js +153 -0
- package/node_modules/async/foldr.js +41 -0
- package/node_modules/async/forEach.js +129 -0
- package/node_modules/async/forEachLimit.js +50 -0
- package/node_modules/async/forEachOf.js +185 -0
- package/node_modules/async/forEachOfLimit.js +47 -0
- package/node_modules/async/forEachOfSeries.js +39 -0
- package/node_modules/async/forEachSeries.js +44 -0
- package/node_modules/async/forever.js +68 -0
- package/node_modules/async/groupBy.js +108 -0
- package/node_modules/async/groupByLimit.js +71 -0
- package/node_modules/async/groupBySeries.js +36 -0
- package/node_modules/async/index.js +588 -0
- package/node_modules/async/inject.js +153 -0
- package/node_modules/async/internal/DoublyLinkedList.js +92 -0
- package/node_modules/async/internal/Heap.js +120 -0
- package/node_modules/async/internal/applyEach.js +29 -0
- package/node_modules/async/internal/asyncEachOfLimit.js +75 -0
- package/node_modules/async/internal/awaitify.js +28 -0
- package/node_modules/async/internal/breakLoop.js +10 -0
- package/node_modules/async/internal/consoleFunc.js +31 -0
- package/node_modules/async/internal/createTester.js +40 -0
- package/node_modules/async/internal/eachOfLimit.js +90 -0
- package/node_modules/async/internal/filter.js +55 -0
- package/node_modules/async/internal/getIterator.js +11 -0
- package/node_modules/async/internal/initialParams.js +14 -0
- package/node_modules/async/internal/isArrayLike.js +10 -0
- package/node_modules/async/internal/iterator.js +57 -0
- package/node_modules/async/internal/map.js +30 -0
- package/node_modules/async/internal/once.js +17 -0
- package/node_modules/async/internal/onlyOnce.js +15 -0
- package/node_modules/async/internal/parallel.js +34 -0
- package/node_modules/async/internal/promiseCallback.js +23 -0
- package/node_modules/async/internal/queue.js +294 -0
- package/node_modules/async/internal/range.js +14 -0
- package/node_modules/async/internal/reject.js +26 -0
- package/node_modules/async/internal/setImmediate.js +34 -0
- package/node_modules/async/internal/withoutIndex.js +10 -0
- package/node_modules/async/internal/wrapAsync.js +34 -0
- package/node_modules/async/log.js +41 -0
- package/node_modules/async/map.js +142 -0
- package/node_modules/async/mapLimit.js +45 -0
- package/node_modules/async/mapSeries.js +44 -0
- package/node_modules/async/mapValues.js +152 -0
- package/node_modules/async/mapValuesLimit.js +61 -0
- package/node_modules/async/mapValuesSeries.js +37 -0
- package/node_modules/async/memoize.js +91 -0
- package/node_modules/async/nextTick.js +52 -0
- package/node_modules/async/package.json +75 -0
- package/node_modules/async/parallel.js +180 -0
- package/node_modules/async/parallelLimit.js +41 -0
- package/node_modules/async/priorityQueue.js +60 -0
- package/node_modules/async/queue.js +24 -0
- package/node_modules/async/race.js +67 -0
- package/node_modules/async/reduce.js +153 -0
- package/node_modules/async/reduceRight.js +41 -0
- package/node_modules/async/reflect.js +78 -0
- package/node_modules/async/reflectAll.js +93 -0
- package/node_modules/async/reject.js +87 -0
- package/node_modules/async/rejectLimit.js +45 -0
- package/node_modules/async/rejectSeries.js +43 -0
- package/node_modules/async/retry.js +159 -0
- package/node_modules/async/retryable.js +77 -0
- package/node_modules/async/select.js +93 -0
- package/node_modules/async/selectLimit.js +45 -0
- package/node_modules/async/selectSeries.js +43 -0
- package/node_modules/async/seq.js +79 -0
- package/node_modules/async/series.js +186 -0
- package/node_modules/async/setImmediate.js +45 -0
- package/node_modules/async/some.js +122 -0
- package/node_modules/async/someLimit.js +47 -0
- package/node_modules/async/someSeries.js +46 -0
- package/node_modules/async/sortBy.js +190 -0
- package/node_modules/async/timeout.js +89 -0
- package/node_modules/async/times.js +50 -0
- package/node_modules/async/timesLimit.js +43 -0
- package/node_modules/async/timesSeries.js +32 -0
- package/node_modules/async/transform.js +173 -0
- package/node_modules/async/tryEach.js +78 -0
- package/node_modules/async/unmemoize.js +25 -0
- package/node_modules/async/until.js +61 -0
- package/node_modules/async/waterfall.js +105 -0
- package/node_modules/async/whilst.js +78 -0
- package/node_modules/async/wrapSync.js +118 -0
- package/node_modules/body-parser/LICENSE +23 -0
- package/node_modules/body-parser/README.md +509 -0
- package/node_modules/body-parser/index.js +55 -0
- package/node_modules/body-parser/lib/read.js +247 -0
- package/node_modules/body-parser/lib/types/json.js +186 -0
- package/node_modules/body-parser/lib/types/raw.js +42 -0
- package/node_modules/body-parser/lib/types/text.js +36 -0
- package/node_modules/body-parser/lib/types/urlencoded.js +138 -0
- package/node_modules/body-parser/lib/utils.js +100 -0
- package/node_modules/body-parser/node_modules/content-type/LICENSE +22 -0
- package/node_modules/body-parser/node_modules/content-type/README.md +69 -0
- package/node_modules/body-parser/node_modules/content-type/dist/index.d.ts +26 -0
- package/node_modules/body-parser/node_modules/content-type/dist/index.js +170 -0
- package/node_modules/body-parser/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/body-parser/node_modules/content-type/package.json +52 -0
- package/node_modules/body-parser/package.json +65 -0
- package/node_modules/braces/LICENSE +21 -0
- package/node_modules/braces/README.md +586 -0
- package/node_modules/braces/index.js +170 -0
- package/node_modules/braces/lib/compile.js +60 -0
- package/node_modules/braces/lib/constants.js +57 -0
- package/node_modules/braces/lib/expand.js +113 -0
- package/node_modules/braces/lib/parse.js +331 -0
- package/node_modules/braces/lib/stringify.js +32 -0
- package/node_modules/braces/lib/utils.js +122 -0
- package/node_modules/braces/package.json +77 -0
- package/node_modules/bytes/History.md +97 -0
- package/node_modules/bytes/LICENSE +23 -0
- package/node_modules/bytes/Readme.md +152 -0
- package/node_modules/bytes/index.js +170 -0
- package/node_modules/bytes/package.json +42 -0
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/call-bound/.eslintrc +13 -0
- package/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/node_modules/call-bound/.nycrc +9 -0
- package/node_modules/call-bound/CHANGELOG.md +42 -0
- package/node_modules/call-bound/LICENSE +21 -0
- package/node_modules/call-bound/README.md +53 -0
- package/node_modules/call-bound/index.d.ts +94 -0
- package/node_modules/call-bound/index.js +19 -0
- package/node_modules/call-bound/package.json +99 -0
- package/node_modules/call-bound/test/index.js +61 -0
- package/node_modules/call-bound/tsconfig.json +10 -0
- package/node_modules/clone/.npmignore +4 -0
- package/node_modules/clone/LICENSE +18 -0
- package/node_modules/clone/README.md +194 -0
- package/node_modules/clone/clone.iml +10 -0
- package/node_modules/clone/clone.js +257 -0
- package/node_modules/clone/package.json +56 -0
- package/node_modules/content-disposition/LICENSE +22 -0
- package/node_modules/content-disposition/README.md +141 -0
- package/node_modules/content-disposition/index.js +536 -0
- package/node_modules/content-disposition/package.json +40 -0
- package/node_modules/content-type/HISTORY.md +29 -0
- package/node_modules/content-type/LICENSE +22 -0
- package/node_modules/content-type/README.md +94 -0
- package/node_modules/content-type/index.js +225 -0
- package/node_modules/content-type/package.json +42 -0
- package/node_modules/cookie/LICENSE +24 -0
- package/node_modules/cookie/README.md +317 -0
- package/node_modules/cookie/SECURITY.md +25 -0
- package/node_modules/cookie/index.js +335 -0
- package/node_modules/cookie/package.json +44 -0
- package/node_modules/cookie-signature/History.md +70 -0
- package/node_modules/cookie-signature/LICENSE +22 -0
- package/node_modules/cookie-signature/Readme.md +23 -0
- package/node_modules/cookie-signature/index.js +47 -0
- package/node_modules/cookie-signature/package.json +28 -0
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/float.patch +604 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +32 -0
- package/node_modules/core-util-is/test.js +68 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/depd/History.md +103 -0
- package/node_modules/depd/LICENSE +22 -0
- package/node_modules/depd/Readme.md +280 -0
- package/node_modules/depd/index.js +538 -0
- package/node_modules/depd/lib/browser/index.js +77 -0
- package/node_modules/depd/package.json +45 -0
- package/node_modules/dotenv/CHANGELOG.md +520 -0
- package/node_modules/dotenv/LICENSE +23 -0
- package/node_modules/dotenv/README-es.md +411 -0
- package/node_modules/dotenv/README.md +645 -0
- package/node_modules/dotenv/SECURITY.md +1 -0
- package/node_modules/dotenv/config.d.ts +1 -0
- package/node_modules/dotenv/config.js +9 -0
- package/node_modules/dotenv/lib/cli-options.js +17 -0
- package/node_modules/dotenv/lib/env-options.js +28 -0
- package/node_modules/dotenv/lib/main.d.ts +162 -0
- package/node_modules/dotenv/lib/main.js +386 -0
- package/node_modules/dotenv/package.json +62 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/ee-first/LICENSE +22 -0
- package/node_modules/ee-first/README.md +80 -0
- package/node_modules/ee-first/index.js +95 -0
- package/node_modules/ee-first/package.json +29 -0
- package/node_modules/encodeurl/LICENSE +22 -0
- package/node_modules/encodeurl/README.md +109 -0
- package/node_modules/encodeurl/index.js +60 -0
- package/node_modules/encodeurl/package.json +40 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +56 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +44 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +79 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +7 -0
- package/node_modules/escape-html/LICENSE +24 -0
- package/node_modules/escape-html/Readme.md +43 -0
- package/node_modules/escape-html/index.js +78 -0
- package/node_modules/escape-html/package.json +24 -0
- package/node_modules/etag/HISTORY.md +83 -0
- package/node_modules/etag/LICENSE +22 -0
- package/node_modules/etag/README.md +159 -0
- package/node_modules/etag/index.js +131 -0
- package/node_modules/etag/package.json +47 -0
- package/node_modules/express/LICENSE +24 -0
- package/node_modules/express/Readme.md +276 -0
- package/node_modules/express/index.js +11 -0
- package/node_modules/express/lib/application.js +631 -0
- package/node_modules/express/lib/express.js +81 -0
- package/node_modules/express/lib/request.js +514 -0
- package/node_modules/express/lib/response.js +1053 -0
- package/node_modules/express/lib/utils.js +271 -0
- package/node_modules/express/lib/view.js +205 -0
- package/node_modules/express/package.json +99 -0
- package/node_modules/extsprintf/.gitmodules +3 -0
- package/node_modules/extsprintf/CHANGES.md +10 -0
- package/node_modules/extsprintf/CONTRIBUTING.md +17 -0
- package/node_modules/extsprintf/LICENSE +19 -0
- package/node_modules/extsprintf/Makefile +30 -0
- package/node_modules/extsprintf/Makefile.targ +285 -0
- package/node_modules/extsprintf/README.md +46 -0
- package/node_modules/extsprintf/jsl.node.conf +137 -0
- package/node_modules/extsprintf/lib/extsprintf.js +225 -0
- package/node_modules/extsprintf/package.json +14 -0
- package/node_modules/extsprintf/test/tst.basic.js +118 -0
- package/node_modules/extsprintf/test/tst.invalid.js +78 -0
- package/node_modules/fill-range/LICENSE +21 -0
- package/node_modules/fill-range/README.md +237 -0
- package/node_modules/fill-range/index.js +248 -0
- package/node_modules/fill-range/package.json +74 -0
- package/node_modules/finalhandler/HISTORY.md +239 -0
- package/node_modules/finalhandler/LICENSE +22 -0
- package/node_modules/finalhandler/README.md +150 -0
- package/node_modules/finalhandler/index.js +293 -0
- package/node_modules/finalhandler/package.json +47 -0
- package/node_modules/forwarded/HISTORY.md +21 -0
- package/node_modules/forwarded/LICENSE +22 -0
- package/node_modules/forwarded/README.md +57 -0
- package/node_modules/forwarded/index.js +90 -0
- package/node_modules/forwarded/package.json +45 -0
- package/node_modules/fresh/HISTORY.md +80 -0
- package/node_modules/fresh/LICENSE +23 -0
- package/node_modules/fresh/README.md +117 -0
- package/node_modules/fresh/index.js +136 -0
- package/node_modules/fresh/package.json +46 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +71 -0
- package/node_modules/get-intrinsic/index.js +378 -0
- package/node_modules/get-intrinsic/package.json +97 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/test/index.js +36 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/handlebars/LICENSE +19 -0
- package/node_modules/handlebars/README.markdown +167 -0
- package/node_modules/handlebars/bin/.eslintrc.js +6 -0
- package/node_modules/handlebars/bin/handlebars +176 -0
- package/node_modules/handlebars/dist/amd/handlebars/base.js +106 -0
- package/node_modules/handlebars/dist/amd/handlebars/compiler/ast.js +31 -0
- package/node_modules/handlebars/dist/amd/handlebars/compiler/base.js +102 -0
- package/node_modules/handlebars/dist/amd/handlebars/compiler/code-gen.js +165 -0
- package/node_modules/handlebars/dist/amd/handlebars/compiler/compiler.js +562 -0
- package/node_modules/handlebars/dist/amd/handlebars/compiler/helpers.js +228 -0
- package/node_modules/handlebars/dist/amd/handlebars/compiler/javascript-compiler.js +1158 -0
- package/node_modules/handlebars/dist/amd/handlebars/compiler/parser.js +737 -0
- package/node_modules/handlebars/dist/amd/handlebars/compiler/printer.js +186 -0
- package/node_modules/handlebars/dist/amd/handlebars/compiler/visitor.js +138 -0
- package/node_modules/handlebars/dist/amd/handlebars/compiler/whitespace-control.js +219 -0
- package/node_modules/handlebars/dist/amd/handlebars/decorators/inline.js +25 -0
- package/node_modules/handlebars/dist/amd/handlebars/decorators.js +16 -0
- package/node_modules/handlebars/dist/amd/handlebars/exception.js +64 -0
- package/node_modules/handlebars/dist/amd/handlebars/helpers/block-helper-missing.js +35 -0
- package/node_modules/handlebars/dist/amd/handlebars/helpers/each.js +99 -0
- package/node_modules/handlebars/dist/amd/handlebars/helpers/helper-missing.js +22 -0
- package/node_modules/handlebars/dist/amd/handlebars/helpers/if.js +41 -0
- package/node_modules/handlebars/dist/amd/handlebars/helpers/log.js +24 -0
- package/node_modules/handlebars/dist/amd/handlebars/helpers/lookup.js +14 -0
- package/node_modules/handlebars/dist/amd/handlebars/helpers/with.js +38 -0
- package/node_modules/handlebars/dist/amd/handlebars/helpers.js +45 -0
- package/node_modules/handlebars/dist/amd/handlebars/internal/proto-access.js +76 -0
- package/node_modules/handlebars/dist/amd/handlebars/internal/wrapHelper.js +21 -0
- package/node_modules/handlebars/dist/amd/handlebars/logger.js +44 -0
- package/node_modules/handlebars/dist/amd/handlebars/no-conflict.js +28 -0
- package/node_modules/handlebars/dist/amd/handlebars/runtime.js +363 -0
- package/node_modules/handlebars/dist/amd/handlebars/safe-string.js +15 -0
- package/node_modules/handlebars/dist/amd/handlebars/utils.js +126 -0
- package/node_modules/handlebars/dist/amd/handlebars.js +52 -0
- package/node_modules/handlebars/dist/amd/handlebars.runtime.js +44 -0
- package/node_modules/handlebars/dist/amd/precompiler.js +345 -0
- package/node_modules/handlebars/dist/cjs/handlebars/base.js +116 -0
- package/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js +31 -0
- package/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js +116 -0
- package/node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js +168 -0
- package/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js +566 -0
- package/node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js +228 -0
- package/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js +1166 -0
- package/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js +737 -0
- package/node_modules/handlebars/dist/cjs/handlebars/compiler/printer.js +186 -0
- package/node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js +140 -0
- package/node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js +221 -0
- package/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js +29 -0
- package/node_modules/handlebars/dist/cjs/handlebars/decorators.js +16 -0
- package/node_modules/handlebars/dist/cjs/handlebars/exception.js +64 -0
- package/node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js +39 -0
- package/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js +104 -0
- package/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js +25 -0
- package/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js +46 -0
- package/node_modules/handlebars/dist/cjs/handlebars/helpers/log.js +26 -0
- package/node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js +16 -0
- package/node_modules/handlebars/dist/cjs/handlebars/helpers/with.js +43 -0
- package/node_modules/handlebars/dist/cjs/handlebars/helpers.js +57 -0
- package/node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js +78 -0
- package/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js +19 -0
- package/node_modules/handlebars/dist/cjs/handlebars/logger.js +47 -0
- package/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js +30 -0
- package/node_modules/handlebars/dist/cjs/handlebars/runtime.js +379 -0
- package/node_modules/handlebars/dist/cjs/handlebars/safe-string.js +15 -0
- package/node_modules/handlebars/dist/cjs/handlebars/utils.js +124 -0
- package/node_modules/handlebars/dist/cjs/handlebars.js +66 -0
- package/node_modules/handlebars/dist/cjs/handlebars.runtime.js +66 -0
- package/node_modules/handlebars/dist/cjs/precompiler.js +359 -0
- package/node_modules/handlebars/dist/handlebars.amd.js +4694 -0
- package/node_modules/handlebars/dist/handlebars.amd.min.js +29 -0
- package/node_modules/handlebars/dist/handlebars.js +6026 -0
- package/node_modules/handlebars/dist/handlebars.min.js +29 -0
- package/node_modules/handlebars/dist/handlebars.runtime.amd.js +1292 -0
- package/node_modules/handlebars/dist/handlebars.runtime.amd.min.js +27 -0
- package/node_modules/handlebars/dist/handlebars.runtime.js +2548 -0
- package/node_modules/handlebars/dist/handlebars.runtime.min.js +27 -0
- package/node_modules/handlebars/lib/.eslintrc.js +8 -0
- package/node_modules/handlebars/lib/handlebars/base.js +94 -0
- package/node_modules/handlebars/lib/handlebars/compiler/ast.js +32 -0
- package/node_modules/handlebars/lib/handlebars/compiler/base.js +101 -0
- package/node_modules/handlebars/lib/handlebars/compiler/code-gen.js +171 -0
- package/node_modules/handlebars/lib/handlebars/compiler/compiler.js +594 -0
- package/node_modules/handlebars/lib/handlebars/compiler/helpers.js +219 -0
- package/node_modules/handlebars/lib/handlebars/compiler/javascript-compiler.js +1306 -0
- package/node_modules/handlebars/lib/handlebars/compiler/parser.js +622 -0
- package/node_modules/handlebars/lib/handlebars/compiler/printer.js +178 -0
- package/node_modules/handlebars/lib/handlebars/compiler/visitor.js +136 -0
- package/node_modules/handlebars/lib/handlebars/compiler/whitespace-control.js +234 -0
- package/node_modules/handlebars/lib/handlebars/decorators/inline.js +22 -0
- package/node_modules/handlebars/lib/handlebars/decorators.js +5 -0
- package/node_modules/handlebars/lib/handlebars/exception.js +68 -0
- package/node_modules/handlebars/lib/handlebars/helpers/block-helper-missing.js +35 -0
- package/node_modules/handlebars/lib/handlebars/helpers/each.js +101 -0
- package/node_modules/handlebars/lib/handlebars/helpers/helper-missing.js +15 -0
- package/node_modules/handlebars/lib/handlebars/helpers/if.js +33 -0
- package/node_modules/handlebars/lib/handlebars/helpers/log.js +19 -0
- package/node_modules/handlebars/lib/handlebars/helpers/lookup.js +9 -0
- package/node_modules/handlebars/lib/handlebars/helpers/with.js +39 -0
- package/node_modules/handlebars/lib/handlebars/helpers.js +27 -0
- package/node_modules/handlebars/lib/handlebars/internal/proto-access.js +69 -0
- package/node_modules/handlebars/lib/handlebars/internal/wrapHelper.js +13 -0
- package/node_modules/handlebars/lib/handlebars/logger.js +39 -0
- package/node_modules/handlebars/lib/handlebars/no-conflict.js +23 -0
- package/node_modules/handlebars/lib/handlebars/runtime.js +452 -0
- package/node_modules/handlebars/lib/handlebars/safe-string.js +10 -0
- package/node_modules/handlebars/lib/handlebars/utils.js +116 -0
- package/node_modules/handlebars/lib/handlebars.js +46 -0
- package/node_modules/handlebars/lib/handlebars.runtime.js +37 -0
- package/node_modules/handlebars/lib/index.js +26 -0
- package/node_modules/handlebars/lib/precompiler.js +378 -0
- package/node_modules/handlebars/package.json +134 -0
- package/node_modules/handlebars/release-notes.md +1112 -0
- package/node_modules/handlebars/runtime.d.ts +5 -0
- package/node_modules/handlebars/runtime.js +3 -0
- package/node_modules/handlebars/types/index.d.ts +422 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/node_modules/has-symbols/test/tests.js +58 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +58 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/eslint.config.mjs +6 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/hdb/.claude/skills/hdb-commit-msg/SKILL.md +132 -0
- package/node_modules/hdb/.hyperspace/pull_request_bot.json +26 -0
- package/node_modules/hdb/.jshintrc +41 -0
- package/node_modules/hdb/.pipeline/config.yml +21 -0
- package/node_modules/hdb/.reuse/dep5 +28 -0
- package/node_modules/hdb/CLAUDE.md +41 -0
- package/node_modules/hdb/LICENSE +202 -0
- package/node_modules/hdb/LICENSES/Apache-2.0.txt +73 -0
- package/node_modules/hdb/Makefile +41 -0
- package/node_modules/hdb/README.md +778 -0
- package/node_modules/hdb/cfg/VERSION +1 -0
- package/node_modules/hdb/cfg/xmake.cfg +7 -0
- package/node_modules/hdb/chrome/sockets/tcp.js +28 -0
- package/node_modules/hdb/index.js +21 -0
- package/node_modules/hdb/lib/Client.js +327 -0
- package/node_modules/hdb/lib/index.js +37 -0
- package/node_modules/hdb/lib/protocol/ClientInfo.js +77 -0
- package/node_modules/hdb/lib/protocol/Compressor.js +122 -0
- package/node_modules/hdb/lib/protocol/Connection.js +707 -0
- package/node_modules/hdb/lib/protocol/ConnectionManager.js +124 -0
- package/node_modules/hdb/lib/protocol/ConnectionTopology.js +303 -0
- package/node_modules/hdb/lib/protocol/ExecuteTask.js +266 -0
- package/node_modules/hdb/lib/protocol/Lob.js +168 -0
- package/node_modules/hdb/lib/protocol/MessageBuffer.js +74 -0
- package/node_modules/hdb/lib/protocol/Parser.js +258 -0
- package/node_modules/hdb/lib/protocol/PhysicalConnection.js +442 -0
- package/node_modules/hdb/lib/protocol/Proxy.js +373 -0
- package/node_modules/hdb/lib/protocol/Reader.js +470 -0
- package/node_modules/hdb/lib/protocol/Result.js +287 -0
- package/node_modules/hdb/lib/protocol/ResultSet.js +490 -0
- package/node_modules/hdb/lib/protocol/ResultSetTransform.js +126 -0
- package/node_modules/hdb/lib/protocol/Statement.js +219 -0
- package/node_modules/hdb/lib/protocol/Stringifier.js +82 -0
- package/node_modules/hdb/lib/protocol/Transaction.js +64 -0
- package/node_modules/hdb/lib/protocol/Writer.js +1205 -0
- package/node_modules/hdb/lib/protocol/auth/JWT.js +40 -0
- package/node_modules/hdb/lib/protocol/auth/LDAP.js +133 -0
- package/node_modules/hdb/lib/protocol/auth/Manager.js +162 -0
- package/node_modules/hdb/lib/protocol/auth/SAML.js +40 -0
- package/node_modules/hdb/lib/protocol/auth/SCRAMSHA256.js +175 -0
- package/node_modules/hdb/lib/protocol/auth/SessionCookie.js +43 -0
- package/node_modules/hdb/lib/protocol/auth/X509.js +211 -0
- package/node_modules/hdb/lib/protocol/auth/index.js +20 -0
- package/node_modules/hdb/lib/protocol/common/ClientContextOption.js +20 -0
- package/node_modules/hdb/lib/protocol/common/ClientDistributionMode.js +21 -0
- package/node_modules/hdb/lib/protocol/common/CommandOption.js +21 -0
- package/node_modules/hdb/lib/protocol/common/CommitOption.js +18 -0
- package/node_modules/hdb/lib/protocol/common/ConnectOption.js +43 -0
- package/node_modules/hdb/lib/protocol/common/ConnectOptionType.js +45 -0
- package/node_modules/hdb/lib/protocol/common/Constants.js +32 -0
- package/node_modules/hdb/lib/protocol/common/DataFormatVersion.js +29 -0
- package/node_modules/hdb/lib/protocol/common/DbConnectInfoOption.js +21 -0
- package/node_modules/hdb/lib/protocol/common/DistributionProtocolVersion.js +19 -0
- package/node_modules/hdb/lib/protocol/common/ErrorLevel.js +20 -0
- package/node_modules/hdb/lib/protocol/common/FunctionCode.js +41 -0
- package/node_modules/hdb/lib/protocol/common/IoType.js +20 -0
- package/node_modules/hdb/lib/protocol/common/LobOptions.js +20 -0
- package/node_modules/hdb/lib/protocol/common/LobSourceType.js +21 -0
- package/node_modules/hdb/lib/protocol/common/MessageType.js +41 -0
- package/node_modules/hdb/lib/protocol/common/NormalizedTypeCode.js +83 -0
- package/node_modules/hdb/lib/protocol/common/ParameterMode.js +23 -0
- package/node_modules/hdb/lib/protocol/common/PartAttributes.js +23 -0
- package/node_modules/hdb/lib/protocol/common/PartKind.js +70 -0
- package/node_modules/hdb/lib/protocol/common/ProxyConstants.js +129 -0
- package/node_modules/hdb/lib/protocol/common/ReadFunction.js +85 -0
- package/node_modules/hdb/lib/protocol/common/RedirectType.js +21 -0
- package/node_modules/hdb/lib/protocol/common/SegmentKind.js +21 -0
- package/node_modules/hdb/lib/protocol/common/SessionContext.js +23 -0
- package/node_modules/hdb/lib/protocol/common/StatementContext.js +19 -0
- package/node_modules/hdb/lib/protocol/common/StatementContextType.js +21 -0
- package/node_modules/hdb/lib/protocol/common/TopologyInformation.js +31 -0
- package/node_modules/hdb/lib/protocol/common/TransactionFlag.js +24 -0
- package/node_modules/hdb/lib/protocol/common/TransactionFlagType.js +26 -0
- package/node_modules/hdb/lib/protocol/common/TypeCode.js +93 -0
- package/node_modules/hdb/lib/protocol/common/index.js +70 -0
- package/node_modules/hdb/lib/protocol/data/Binary.js +42 -0
- package/node_modules/hdb/lib/protocol/data/Default.js +42 -0
- package/node_modules/hdb/lib/protocol/data/Fields.js +139 -0
- package/node_modules/hdb/lib/protocol/data/Int32.js +55 -0
- package/node_modules/hdb/lib/protocol/data/MultilineOptions.js +74 -0
- package/node_modules/hdb/lib/protocol/data/Options.js +188 -0
- package/node_modules/hdb/lib/protocol/data/ParameterMetadata.js +76 -0
- package/node_modules/hdb/lib/protocol/data/Parameters.js +52 -0
- package/node_modules/hdb/lib/protocol/data/ReadLobReply.js +72 -0
- package/node_modules/hdb/lib/protocol/data/ReadLobRequest.js +69 -0
- package/node_modules/hdb/lib/protocol/data/ResultSetMetadata.js +101 -0
- package/node_modules/hdb/lib/protocol/data/SqlError.js +70 -0
- package/node_modules/hdb/lib/protocol/data/Text.js +44 -0
- package/node_modules/hdb/lib/protocol/data/Text20.js +44 -0
- package/node_modules/hdb/lib/protocol/data/TextList.js +82 -0
- package/node_modules/hdb/lib/protocol/data/TransactionFlags.js +26 -0
- package/node_modules/hdb/lib/protocol/data/WriteLobReply.js +32 -0
- package/node_modules/hdb/lib/protocol/data/index.js +76 -0
- package/node_modules/hdb/lib/protocol/index.js +38 -0
- package/node_modules/hdb/lib/protocol/part/AbstractOptions.js +55 -0
- package/node_modules/hdb/lib/protocol/part/ClientContextOptions.js +46 -0
- package/node_modules/hdb/lib/protocol/part/ConnectOptions.js +155 -0
- package/node_modules/hdb/lib/protocol/part/DbConnectInfoOptions.js +41 -0
- package/node_modules/hdb/lib/protocol/part/StatementContext.js +52 -0
- package/node_modules/hdb/lib/protocol/part/index.js +19 -0
- package/node_modules/hdb/lib/protocol/reply/Part.js +126 -0
- package/node_modules/hdb/lib/protocol/reply/Segment.js +204 -0
- package/node_modules/hdb/lib/protocol/reply/index.js +17 -0
- package/node_modules/hdb/lib/protocol/request/Part.js +52 -0
- package/node_modules/hdb/lib/protocol/request/Segment.js +120 -0
- package/node_modules/hdb/lib/protocol/request/index.js +209 -0
- package/node_modules/hdb/lib/protocol/tcp.js +186 -0
- package/node_modules/hdb/lib/util/Network.js +230 -0
- package/node_modules/hdb/lib/util/Queue.js +124 -0
- package/node_modules/hdb/lib/util/bignum.js +844 -0
- package/node_modules/hdb/lib/util/calendar.js +121 -0
- package/node_modules/hdb/lib/util/convert.js +36 -0
- package/node_modules/hdb/lib/util/index.js +314 -0
- package/node_modules/hdb/lib/util/zeropad.js +110 -0
- package/node_modules/hdb/node_modules/iconv-lite/Changelog.md +236 -0
- package/node_modules/hdb/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/hdb/node_modules/iconv-lite/README.md +138 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/node_modules/hdb/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/hdb/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/hdb/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/hdb/node_modules/iconv-lite/lib/index.d.ts +41 -0
- package/node_modules/hdb/node_modules/iconv-lite/lib/index.js +183 -0
- package/node_modules/hdb/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/hdb/node_modules/iconv-lite/package.json +59 -0
- package/node_modules/hdb/package.json +58 -0
- package/node_modules/http-errors/HISTORY.md +186 -0
- package/node_modules/http-errors/LICENSE +23 -0
- package/node_modules/http-errors/README.md +169 -0
- package/node_modules/http-errors/index.js +290 -0
- package/node_modules/http-errors/package.json +54 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +138 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/node_modules/iconv-lite/lib/index.js +182 -0
- package/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/iconv-lite/package.json +70 -0
- package/node_modules/iconv-lite/types/encodings.d.ts +423 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ipaddr.js/LICENSE +19 -0
- package/node_modules/ipaddr.js/README.md +233 -0
- package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/node_modules/ipaddr.js/package.json +35 -0
- package/node_modules/is-number/LICENSE +21 -0
- package/node_modules/is-number/README.md +187 -0
- package/node_modules/is-number/index.js +18 -0
- package/node_modules/is-number/package.json +82 -0
- package/node_modules/is-promise/LICENSE +19 -0
- package/node_modules/is-promise/index.d.ts +2 -0
- package/node_modules/is-promise/index.js +6 -0
- package/node_modules/is-promise/index.mjs +3 -0
- package/node_modules/is-promise/package.json +30 -0
- package/node_modules/is-promise/readme.md +33 -0
- package/node_modules/livereload-js/.github/workflows/main.yml +23 -0
- package/node_modules/livereload-js/LICENSE +20 -0
- package/node_modules/livereload-js/README.md +250 -0
- package/node_modules/livereload-js/dist/livereload.js +3795 -0
- package/node_modules/livereload-js/dist/livereload.min.js +1 -0
- package/node_modules/livereload-js/package.json +53 -0
- package/node_modules/livereload-js/src/connector.js +169 -0
- package/node_modules/livereload-js/src/customevents.js +37 -0
- package/node_modules/livereload-js/src/less.js +60 -0
- package/node_modules/livereload-js/src/livereload.js +245 -0
- package/node_modules/livereload-js/src/options.js +96 -0
- package/node_modules/livereload-js/src/protocol.js +98 -0
- package/node_modules/livereload-js/src/reloader.js +611 -0
- package/node_modules/livereload-js/src/startup.js +16 -0
- package/node_modules/livereload-js/src/timer.js +35 -0
- package/node_modules/lz4-wasm-nodejs/LICENSE_APACHE +176 -0
- package/node_modules/lz4-wasm-nodejs/LICENSE_MIT +25 -0
- package/node_modules/lz4-wasm-nodejs/README.md +71 -0
- package/node_modules/lz4-wasm-nodejs/lz4_wasm_nodejs.d.ts +12 -0
- package/node_modules/lz4-wasm-nodejs/lz4_wasm_nodejs.js +127 -0
- package/node_modules/lz4-wasm-nodejs/lz4_wasm_nodejs_bg.wasm +0 -0
- package/node_modules/lz4-wasm-nodejs/package.json +26 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/media-typer/HISTORY.md +50 -0
- package/node_modules/media-typer/LICENSE +22 -0
- package/node_modules/media-typer/README.md +93 -0
- package/node_modules/media-typer/index.js +143 -0
- package/node_modules/media-typer/package.json +33 -0
- package/node_modules/merge-descriptors/index.d.ts +11 -0
- package/node_modules/merge-descriptors/index.js +26 -0
- package/node_modules/merge-descriptors/license +11 -0
- package/node_modules/merge-descriptors/package.json +50 -0
- package/node_modules/merge-descriptors/readme.md +55 -0
- package/node_modules/micromatch/LICENSE +21 -0
- package/node_modules/micromatch/README.md +1024 -0
- package/node_modules/micromatch/index.js +474 -0
- package/node_modules/micromatch/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/micromatch/node_modules/picomatch/README.md +716 -0
- package/node_modules/micromatch/node_modules/picomatch/index.js +3 -0
- package/node_modules/micromatch/node_modules/picomatch/lib/constants.js +184 -0
- package/node_modules/micromatch/node_modules/picomatch/lib/parse.js +1392 -0
- package/node_modules/micromatch/node_modules/picomatch/lib/picomatch.js +342 -0
- package/node_modules/micromatch/node_modules/picomatch/lib/scan.js +391 -0
- package/node_modules/micromatch/node_modules/picomatch/lib/utils.js +64 -0
- package/node_modules/micromatch/node_modules/picomatch/package.json +81 -0
- package/node_modules/micromatch/package.json +119 -0
- package/node_modules/mime-db/HISTORY.md +541 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +109 -0
- package/node_modules/mime-db/db.json +9342 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +56 -0
- package/node_modules/mime-types/HISTORY.md +428 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +126 -0
- package/node_modules/mime-types/index.js +211 -0
- package/node_modules/mime-types/mimeScore.js +57 -0
- package/node_modules/mime-types/package.json +49 -0
- package/node_modules/minimist/.eslintrc +29 -0
- package/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/node_modules/minimist/.nycrc +14 -0
- package/node_modules/minimist/CHANGELOG.md +298 -0
- package/node_modules/minimist/LICENSE +18 -0
- package/node_modules/minimist/README.md +121 -0
- package/node_modules/minimist/example/parse.js +4 -0
- package/node_modules/minimist/index.js +263 -0
- package/node_modules/minimist/package.json +75 -0
- package/node_modules/minimist/test/all_bool.js +34 -0
- package/node_modules/minimist/test/bool.js +177 -0
- package/node_modules/minimist/test/dash.js +43 -0
- package/node_modules/minimist/test/default_bool.js +37 -0
- package/node_modules/minimist/test/dotted.js +24 -0
- package/node_modules/minimist/test/kv_short.js +32 -0
- package/node_modules/minimist/test/long.js +33 -0
- package/node_modules/minimist/test/num.js +38 -0
- package/node_modules/minimist/test/parse.js +209 -0
- package/node_modules/minimist/test/parse_modified.js +11 -0
- package/node_modules/minimist/test/proto.js +64 -0
- package/node_modules/minimist/test/short.js +69 -0
- package/node_modules/minimist/test/stop_early.js +17 -0
- package/node_modules/minimist/test/unknown.js +104 -0
- package/node_modules/minimist/test/whitespace.js +10 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/mustache/CHANGELOG.md +618 -0
- package/node_modules/mustache/LICENSE +11 -0
- package/node_modules/mustache/README.md +621 -0
- package/node_modules/mustache/bin/mustache +150 -0
- package/node_modules/mustache/mustache.js +772 -0
- package/node_modules/mustache/mustache.min.js +1 -0
- package/node_modules/mustache/mustache.mjs +764 -0
- package/node_modules/mustache/package.json +67 -0
- package/node_modules/mustache/wrappers/dojo/mustache.js.post +4 -0
- package/node_modules/mustache/wrappers/dojo/mustache.js.pre +9 -0
- package/node_modules/mustache/wrappers/jquery/mustache.js.post +13 -0
- package/node_modules/mustache/wrappers/jquery/mustache.js.pre +9 -0
- package/node_modules/mustache/wrappers/mootools/mustache.js.post +5 -0
- package/node_modules/mustache/wrappers/mootools/mustache.js.pre +2 -0
- package/node_modules/mustache/wrappers/qooxdoo/mustache.js.post +9 -0
- package/node_modules/mustache/wrappers/qooxdoo/mustache.js.pre +172 -0
- package/node_modules/mustache/wrappers/yui3/mustache.js.post +4 -0
- package/node_modules/mustache/wrappers/yui3/mustache.js.pre +1 -0
- package/node_modules/negotiator/HISTORY.md +114 -0
- package/node_modules/negotiator/LICENSE +24 -0
- package/node_modules/negotiator/README.md +212 -0
- package/node_modules/negotiator/index.js +83 -0
- package/node_modules/negotiator/lib/charset.js +169 -0
- package/node_modules/negotiator/lib/encoding.js +205 -0
- package/node_modules/negotiator/lib/language.js +179 -0
- package/node_modules/negotiator/lib/mediaType.js +294 -0
- package/node_modules/negotiator/package.json +43 -0
- package/node_modules/neo-async/LICENSE +22 -0
- package/node_modules/neo-async/README.md +273 -0
- package/node_modules/neo-async/all.js +3 -0
- package/node_modules/neo-async/allLimit.js +3 -0
- package/node_modules/neo-async/allSeries.js +3 -0
- package/node_modules/neo-async/angelFall.js +3 -0
- package/node_modules/neo-async/any.js +3 -0
- package/node_modules/neo-async/anyLimit.js +3 -0
- package/node_modules/neo-async/anySeries.js +3 -0
- package/node_modules/neo-async/apply.js +3 -0
- package/node_modules/neo-async/applyEach.js +3 -0
- package/node_modules/neo-async/applyEachSeries.js +3 -0
- package/node_modules/neo-async/async.js +9184 -0
- package/node_modules/neo-async/async.min.js +80 -0
- package/node_modules/neo-async/asyncify.js +3 -0
- package/node_modules/neo-async/auto.js +3 -0
- package/node_modules/neo-async/autoInject.js +3 -0
- package/node_modules/neo-async/cargo.js +3 -0
- package/node_modules/neo-async/compose.js +3 -0
- package/node_modules/neo-async/concat.js +3 -0
- package/node_modules/neo-async/concatLimit.js +3 -0
- package/node_modules/neo-async/concatSeries.js +3 -0
- package/node_modules/neo-async/constant.js +3 -0
- package/node_modules/neo-async/createLogger.js +3 -0
- package/node_modules/neo-async/detect.js +3 -0
- package/node_modules/neo-async/detectLimit.js +3 -0
- package/node_modules/neo-async/detectSeries.js +3 -0
- package/node_modules/neo-async/dir.js +3 -0
- package/node_modules/neo-async/doDuring.js +3 -0
- package/node_modules/neo-async/doUntil.js +3 -0
- package/node_modules/neo-async/doWhilst.js +3 -0
- package/node_modules/neo-async/during.js +3 -0
- package/node_modules/neo-async/each.js +3 -0
- package/node_modules/neo-async/eachLimit.js +3 -0
- package/node_modules/neo-async/eachOf.js +3 -0
- package/node_modules/neo-async/eachOfLimit.js +3 -0
- package/node_modules/neo-async/eachOfSeries.js +3 -0
- package/node_modules/neo-async/eachSeries.js +3 -0
- package/node_modules/neo-async/ensureAsync.js +3 -0
- package/node_modules/neo-async/every.js +3 -0
- package/node_modules/neo-async/everyLimit.js +3 -0
- package/node_modules/neo-async/everySeries.js +3 -0
- package/node_modules/neo-async/fast.js +3 -0
- package/node_modules/neo-async/filter.js +3 -0
- package/node_modules/neo-async/filterLimit.js +3 -0
- package/node_modules/neo-async/filterSeries.js +3 -0
- package/node_modules/neo-async/find.js +3 -0
- package/node_modules/neo-async/findLimit.js +3 -0
- package/node_modules/neo-async/findSeries.js +3 -0
- package/node_modules/neo-async/foldl.js +3 -0
- package/node_modules/neo-async/foldr.js +3 -0
- package/node_modules/neo-async/forEach.js +3 -0
- package/node_modules/neo-async/forEachLimit.js +3 -0
- package/node_modules/neo-async/forEachOf.js +3 -0
- package/node_modules/neo-async/forEachOfLimit.js +3 -0
- package/node_modules/neo-async/forEachOfSeries.js +3 -0
- package/node_modules/neo-async/forEachSeries.js +3 -0
- package/node_modules/neo-async/forever.js +3 -0
- package/node_modules/neo-async/groupBy.js +3 -0
- package/node_modules/neo-async/groupByLimit.js +3 -0
- package/node_modules/neo-async/groupBySeries.js +3 -0
- package/node_modules/neo-async/inject.js +3 -0
- package/node_modules/neo-async/iterator.js +3 -0
- package/node_modules/neo-async/log.js +3 -0
- package/node_modules/neo-async/map.js +3 -0
- package/node_modules/neo-async/mapLimit.js +3 -0
- package/node_modules/neo-async/mapSeries.js +3 -0
- package/node_modules/neo-async/mapValues.js +3 -0
- package/node_modules/neo-async/mapValuesLimit.js +3 -0
- package/node_modules/neo-async/mapValuesSeries.js +3 -0
- package/node_modules/neo-async/memoize.js +3 -0
- package/node_modules/neo-async/nextTick.js +3 -0
- package/node_modules/neo-async/omit.js +3 -0
- package/node_modules/neo-async/omitLimit.js +3 -0
- package/node_modules/neo-async/omitSeries.js +3 -0
- package/node_modules/neo-async/package.json +57 -0
- package/node_modules/neo-async/parallel.js +3 -0
- package/node_modules/neo-async/parallelLimit.js +3 -0
- package/node_modules/neo-async/pick.js +3 -0
- package/node_modules/neo-async/pickLimit.js +3 -0
- package/node_modules/neo-async/pickSeries.js +3 -0
- package/node_modules/neo-async/priorityQueue.js +3 -0
- package/node_modules/neo-async/queue.js +3 -0
- package/node_modules/neo-async/race.js +3 -0
- package/node_modules/neo-async/reduce.js +3 -0
- package/node_modules/neo-async/reduceRight.js +3 -0
- package/node_modules/neo-async/reflect.js +3 -0
- package/node_modules/neo-async/reflectAll.js +3 -0
- package/node_modules/neo-async/reject.js +3 -0
- package/node_modules/neo-async/rejectLimit.js +3 -0
- package/node_modules/neo-async/rejectSeries.js +3 -0
- package/node_modules/neo-async/retry.js +3 -0
- package/node_modules/neo-async/retryable.js +3 -0
- package/node_modules/neo-async/safe.js +3 -0
- package/node_modules/neo-async/select.js +3 -0
- package/node_modules/neo-async/selectLimit.js +3 -0
- package/node_modules/neo-async/selectSeries.js +3 -0
- package/node_modules/neo-async/seq.js +3 -0
- package/node_modules/neo-async/series.js +3 -0
- package/node_modules/neo-async/setImmediate.js +3 -0
- package/node_modules/neo-async/some.js +3 -0
- package/node_modules/neo-async/someLimit.js +3 -0
- package/node_modules/neo-async/someSeries.js +3 -0
- package/node_modules/neo-async/sortBy.js +3 -0
- package/node_modules/neo-async/sortByLimit.js +3 -0
- package/node_modules/neo-async/sortBySeries.js +3 -0
- package/node_modules/neo-async/timeout.js +3 -0
- package/node_modules/neo-async/times.js +3 -0
- package/node_modules/neo-async/timesLimit.js +3 -0
- package/node_modules/neo-async/timesSeries.js +3 -0
- package/node_modules/neo-async/transform.js +3 -0
- package/node_modules/neo-async/transformLimit.js +3 -0
- package/node_modules/neo-async/transformSeries.js +3 -0
- package/node_modules/neo-async/tryEach.js +3 -0
- package/node_modules/neo-async/unmemoize.js +3 -0
- package/node_modules/neo-async/until.js +3 -0
- package/node_modules/neo-async/waterfall.js +3 -0
- package/node_modules/neo-async/whilst.js +3 -0
- package/node_modules/neo-async/wrapSync.js +3 -0
- package/node_modules/node-cache/.nvmrc +1 -0
- package/node_modules/node-cache/.nycrc.yaml +7 -0
- package/node_modules/node-cache/LICENSE +21 -0
- package/node_modules/node-cache/README.md +497 -0
- package/node_modules/node-cache/_src/test/typedefinition_test.ts +108 -0
- package/node_modules/node-cache/index.d.ts +380 -0
- package/node_modules/node-cache/index.js +17 -0
- package/node_modules/node-cache/lib/node_cache.js +802 -0
- package/node_modules/node-cache/package.json +68 -0
- package/node_modules/node-cache/tsconfig.json +8 -0
- package/node_modules/object-inspect/.eslintrc +53 -0
- package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/node_modules/object-inspect/.nycrc +13 -0
- package/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/node_modules/object-inspect/LICENSE +21 -0
- package/node_modules/object-inspect/example/all.js +23 -0
- package/node_modules/object-inspect/example/circular.js +6 -0
- package/node_modules/object-inspect/example/fn.js +5 -0
- package/node_modules/object-inspect/example/inspect.js +10 -0
- package/node_modules/object-inspect/index.js +544 -0
- package/node_modules/object-inspect/package-support.json +20 -0
- package/node_modules/object-inspect/package.json +105 -0
- package/node_modules/object-inspect/readme.markdown +84 -0
- package/node_modules/object-inspect/test/bigint.js +58 -0
- package/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/node_modules/object-inspect/test/circular.js +16 -0
- package/node_modules/object-inspect/test/deep.js +12 -0
- package/node_modules/object-inspect/test/element.js +53 -0
- package/node_modules/object-inspect/test/err.js +48 -0
- package/node_modules/object-inspect/test/fakes.js +29 -0
- package/node_modules/object-inspect/test/fn.js +76 -0
- package/node_modules/object-inspect/test/global.js +17 -0
- package/node_modules/object-inspect/test/has.js +15 -0
- package/node_modules/object-inspect/test/holes.js +15 -0
- package/node_modules/object-inspect/test/indent-option.js +271 -0
- package/node_modules/object-inspect/test/inspect.js +139 -0
- package/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/node_modules/object-inspect/test/number.js +58 -0
- package/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/node_modules/object-inspect/test/undef.js +12 -0
- package/node_modules/object-inspect/test/values.js +261 -0
- package/node_modules/object-inspect/test-core-js.js +26 -0
- package/node_modules/object-inspect/util.inspect.js +1 -0
- package/node_modules/on-finished/HISTORY.md +98 -0
- package/node_modules/on-finished/LICENSE +23 -0
- package/node_modules/on-finished/README.md +162 -0
- package/node_modules/on-finished/index.js +234 -0
- package/node_modules/on-finished/package.json +39 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/parseurl/HISTORY.md +58 -0
- package/node_modules/parseurl/LICENSE +24 -0
- package/node_modules/parseurl/README.md +133 -0
- package/node_modules/parseurl/index.js +158 -0
- package/node_modules/parseurl/package.json +40 -0
- package/node_modules/path-to-regexp/LICENSE +21 -0
- package/node_modules/path-to-regexp/Readme.md +224 -0
- package/node_modules/path-to-regexp/dist/index.d.ts +147 -0
- package/node_modules/path-to-regexp/dist/index.js +431 -0
- package/node_modules/path-to-regexp/dist/index.js.map +1 -0
- package/node_modules/path-to-regexp/package.json +64 -0
- package/node_modules/pluralize/LICENSE +21 -0
- package/node_modules/pluralize/Readme.md +100 -0
- package/node_modules/pluralize/package.json +40 -0
- package/node_modules/pluralize/pluralize.js +503 -0
- package/node_modules/proxy-addr/HISTORY.md +161 -0
- package/node_modules/proxy-addr/LICENSE +22 -0
- package/node_modules/proxy-addr/README.md +139 -0
- package/node_modules/proxy-addr/index.js +327 -0
- package/node_modules/proxy-addr/package.json +47 -0
- package/node_modules/qs/.editorconfig +46 -0
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.github/SECURITY.md +11 -0
- package/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +833 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +758 -0
- package/node_modules/qs/dist/qs.js +141 -0
- package/node_modules/qs/eslint.config.mjs +57 -0
- package/node_modules/qs/lib/formats.js +23 -0
- package/node_modules/qs/lib/index.js +11 -0
- package/node_modules/qs/lib/parse.js +414 -0
- package/node_modules/qs/lib/stringify.js +363 -0
- package/node_modules/qs/lib/utils.js +381 -0
- package/node_modules/qs/package.json +95 -0
- package/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/node_modules/qs/test/parse.js +1933 -0
- package/node_modules/qs/test/stringify.js +1448 -0
- package/node_modules/qs/test/utils.js +626 -0
- package/node_modules/range-parser/HISTORY.md +56 -0
- package/node_modules/range-parser/LICENSE +23 -0
- package/node_modules/range-parser/README.md +85 -0
- package/node_modules/range-parser/index.js +181 -0
- package/node_modules/range-parser/package.json +48 -0
- package/node_modules/raw-body/LICENSE +22 -0
- package/node_modules/raw-body/README.md +223 -0
- package/node_modules/raw-body/index.d.ts +85 -0
- package/node_modules/raw-body/index.js +336 -0
- package/node_modules/raw-body/package.json +46 -0
- package/node_modules/router/HISTORY.md +228 -0
- package/node_modules/router/LICENSE +23 -0
- package/node_modules/router/README.md +416 -0
- package/node_modules/router/index.js +748 -0
- package/node_modules/router/lib/layer.js +247 -0
- package/node_modules/router/lib/route.js +242 -0
- package/node_modules/router/package.json +44 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/sax/LICENSE.md +55 -0
- package/node_modules/sax/README.md +227 -0
- package/node_modules/sax/lib/sax.js +1848 -0
- package/node_modules/sax/package.json +34 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +680 -0
- package/node_modules/semver/bin/semver.js +195 -0
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +577 -0
- package/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +93 -0
- package/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/package.json +78 -0
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +17 -0
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/send/LICENSE +23 -0
- package/node_modules/send/README.md +317 -0
- package/node_modules/send/index.js +997 -0
- package/node_modules/send/package.json +63 -0
- package/node_modules/serve-static/LICENSE +25 -0
- package/node_modules/serve-static/README.md +253 -0
- package/node_modules/serve-static/index.js +208 -0
- package/node_modules/serve-static/package.json +44 -0
- package/node_modules/setprototypeof/LICENSE +13 -0
- package/node_modules/setprototypeof/README.md +31 -0
- package/node_modules/setprototypeof/index.d.ts +2 -0
- package/node_modules/setprototypeof/index.js +17 -0
- package/node_modules/setprototypeof/package.json +38 -0
- package/node_modules/setprototypeof/test/index.js +24 -0
- package/node_modules/side-channel/.editorconfig +9 -0
- package/node_modules/side-channel/.eslintrc +12 -0
- package/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel/.nycrc +13 -0
- package/node_modules/side-channel/CHANGELOG.md +120 -0
- package/node_modules/side-channel/LICENSE +21 -0
- package/node_modules/side-channel/README.md +61 -0
- package/node_modules/side-channel/index.d.ts +14 -0
- package/node_modules/side-channel/index.js +46 -0
- package/node_modules/side-channel/package.json +85 -0
- package/node_modules/side-channel/test/index.js +120 -0
- package/node_modules/side-channel/tsconfig.json +9 -0
- package/node_modules/side-channel-list/.editorconfig +9 -0
- package/node_modules/side-channel-list/.eslintrc +11 -0
- package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-list/.nycrc +13 -0
- package/node_modules/side-channel-list/CHANGELOG.md +36 -0
- package/node_modules/side-channel-list/LICENSE +21 -0
- package/node_modules/side-channel-list/README.md +62 -0
- package/node_modules/side-channel-list/index.d.ts +13 -0
- package/node_modules/side-channel-list/index.js +111 -0
- package/node_modules/side-channel-list/list.d.ts +14 -0
- package/node_modules/side-channel-list/package.json +77 -0
- package/node_modules/side-channel-list/test/index.js +154 -0
- package/node_modules/side-channel-list/tsconfig.json +9 -0
- package/node_modules/side-channel-map/.editorconfig +9 -0
- package/node_modules/side-channel-map/.eslintrc +11 -0
- package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-map/.nycrc +13 -0
- package/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/node_modules/side-channel-map/LICENSE +21 -0
- package/node_modules/side-channel-map/README.md +62 -0
- package/node_modules/side-channel-map/index.d.ts +15 -0
- package/node_modules/side-channel-map/index.js +68 -0
- package/node_modules/side-channel-map/package.json +80 -0
- package/node_modules/side-channel-map/test/index.js +114 -0
- package/node_modules/side-channel-map/tsconfig.json +9 -0
- package/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/node_modules/side-channel-weakmap/README.md +62 -0
- package/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/node_modules/side-channel-weakmap/index.js +84 -0
- package/node_modules/side-channel-weakmap/package.json +87 -0
- package/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/node_modules/source-map/CHANGELOG.md +301 -0
- package/node_modules/source-map/LICENSE +28 -0
- package/node_modules/source-map/README.md +742 -0
- package/node_modules/source-map/dist/source-map.debug.js +3234 -0
- package/node_modules/source-map/dist/source-map.js +3233 -0
- package/node_modules/source-map/dist/source-map.min.js +2 -0
- package/node_modules/source-map/dist/source-map.min.js.map +1 -0
- package/node_modules/source-map/lib/array-set.js +121 -0
- package/node_modules/source-map/lib/base64-vlq.js +140 -0
- package/node_modules/source-map/lib/base64.js +67 -0
- package/node_modules/source-map/lib/binary-search.js +111 -0
- package/node_modules/source-map/lib/mapping-list.js +79 -0
- package/node_modules/source-map/lib/quick-sort.js +114 -0
- package/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- package/node_modules/source-map/lib/source-map-generator.js +425 -0
- package/node_modules/source-map/lib/source-node.js +413 -0
- package/node_modules/source-map/lib/util.js +488 -0
- package/node_modules/source-map/package.json +73 -0
- package/node_modules/source-map/source-map.d.ts +98 -0
- package/node_modules/source-map/source-map.js +8 -0
- package/node_modules/statuses/HISTORY.md +87 -0
- package/node_modules/statuses/LICENSE +23 -0
- package/node_modules/statuses/README.md +139 -0
- package/node_modules/statuses/codes.json +65 -0
- package/node_modules/statuses/index.js +146 -0
- package/node_modules/statuses/package.json +49 -0
- package/node_modules/to-regex-range/LICENSE +21 -0
- package/node_modules/to-regex-range/README.md +305 -0
- package/node_modules/to-regex-range/index.js +288 -0
- package/node_modules/to-regex-range/package.json +88 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/LICENSE +21 -0
- package/node_modules/toidentifier/README.md +61 -0
- package/node_modules/toidentifier/index.js +32 -0
- package/node_modules/toidentifier/package.json +38 -0
- package/node_modules/type-is/HISTORY.md +292 -0
- package/node_modules/type-is/LICENSE +23 -0
- package/node_modules/type-is/README.md +198 -0
- package/node_modules/type-is/index.js +240 -0
- package/node_modules/type-is/node_modules/content-type/LICENSE +22 -0
- package/node_modules/type-is/node_modules/content-type/README.md +69 -0
- package/node_modules/type-is/node_modules/content-type/dist/index.d.ts +26 -0
- package/node_modules/type-is/node_modules/content-type/dist/index.js +170 -0
- package/node_modules/type-is/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/type-is/node_modules/content-type/package.json +52 -0
- package/node_modules/type-is/package.json +51 -0
- package/node_modules/uglify-js/LICENSE +29 -0
- package/node_modules/uglify-js/README.md +1479 -0
- package/node_modules/uglify-js/bin/uglifyjs +624 -0
- package/node_modules/uglify-js/lib/ast.js +2357 -0
- package/node_modules/uglify-js/lib/compress.js +14650 -0
- package/node_modules/uglify-js/lib/minify.js +278 -0
- package/node_modules/uglify-js/lib/mozilla-ast.js +1338 -0
- package/node_modules/uglify-js/lib/output.js +1983 -0
- package/node_modules/uglify-js/lib/parse.js +2589 -0
- package/node_modules/uglify-js/lib/propmangle.js +328 -0
- package/node_modules/uglify-js/lib/scope.js +883 -0
- package/node_modules/uglify-js/lib/sourcemap.js +195 -0
- package/node_modules/uglify-js/lib/transform.js +250 -0
- package/node_modules/uglify-js/lib/utils.js +300 -0
- package/node_modules/uglify-js/package.json +52 -0
- package/node_modules/uglify-js/tools/domprops.html +456 -0
- package/node_modules/uglify-js/tools/domprops.json +8327 -0
- package/node_modules/uglify-js/tools/exports.js +8 -0
- package/node_modules/uglify-js/tools/node.js +115 -0
- package/node_modules/uglify-js/tools/tty.js +22 -0
- package/node_modules/unpipe/HISTORY.md +4 -0
- package/node_modules/unpipe/LICENSE +22 -0
- package/node_modules/unpipe/README.md +43 -0
- package/node_modules/unpipe/index.js +69 -0
- package/node_modules/unpipe/package.json +27 -0
- package/node_modules/vary/HISTORY.md +39 -0
- package/node_modules/vary/LICENSE +22 -0
- package/node_modules/vary/README.md +101 -0
- package/node_modules/vary/index.js +149 -0
- package/node_modules/vary/package.json +43 -0
- package/node_modules/verror/CHANGES.md +28 -0
- package/node_modules/verror/CONTRIBUTING.md +16 -0
- package/node_modules/verror/LICENSE +19 -0
- package/node_modules/verror/README.md +528 -0
- package/node_modules/verror/lib/verror.js +451 -0
- package/node_modules/verror/package.json +30 -0
- package/node_modules/wordwrap/LICENSE +18 -0
- package/node_modules/wordwrap/README.markdown +70 -0
- package/node_modules/wordwrap/example/center.js +10 -0
- package/node_modules/wordwrap/example/meat.js +3 -0
- package/node_modules/wordwrap/index.js +76 -0
- package/node_modules/wordwrap/package.json +34 -0
- package/node_modules/wordwrap/test/break.js +32 -0
- package/node_modules/wordwrap/test/idleness.txt +63 -0
- package/node_modules/wordwrap/test/wrap.js +33 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +22 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +19 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/node_modules/ws/lib/receiver.js +760 -0
- package/node_modules/ws/lib/sender.js +607 -0
- package/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +562 -0
- package/node_modules/ws/lib/websocket.js +1407 -0
- package/node_modules/ws/package.json +70 -0
- package/node_modules/ws/wrapper.mjs +21 -0
- package/node_modules/xml-js/LICENSE +21 -0
- package/node_modules/xml-js/README.md +390 -0
- package/node_modules/xml-js/bin/cli-helper.js +47 -0
- package/node_modules/xml-js/bin/cli.js +83 -0
- package/node_modules/xml-js/bin/test.json +23 -0
- package/node_modules/xml-js/bin/test.xml +3 -0
- package/node_modules/xml-js/dist/xml-js.js +8310 -0
- package/node_modules/xml-js/dist/xml-js.min.js +8 -0
- package/node_modules/xml-js/index.js +1 -0
- package/node_modules/xml-js/lib/array-helper.js +11 -0
- package/node_modules/xml-js/lib/index.js +13 -0
- package/node_modules/xml-js/lib/js2xml.js +320 -0
- package/node_modules/xml-js/lib/json2xml.js +18 -0
- package/node_modules/xml-js/lib/options-helper.js +43 -0
- package/node_modules/xml-js/lib/xml2js.js +362 -0
- package/node_modules/xml-js/lib/xml2json.js +22 -0
- package/node_modules/xml-js/package.json +111 -0
- package/node_modules/xml-js/types/index.d.ts +154 -0
- package/node_modules/xml-js/types/tsconfig.json +14 -0
- package/node_modules/xml-js/types/typings.json +4 -0
- package/node_modules/xml-js/types/xml-js-tests.ts +60 -0
- package/node_modules/xml-js/webpack.config.js +28 -0
- package/node_modules/yaml/LICENSE +13 -0
- package/node_modules/yaml/README.md +172 -0
- package/node_modules/yaml/bin.mjs +11 -0
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +225 -0
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/yaml/browser/dist/log.js +11 -0
- package/node_modules/yaml/browser/dist/nodes/Alias.js +116 -0
- package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/node_modules/yaml/browser/dist/util.js +11 -0
- package/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/yaml/browser/index.js +5 -0
- package/{lib/init/template/esm/files/package.json.hbs → node_modules/yaml/browser/package.json} +1 -1
- package/node_modules/yaml/dist/cli.d.ts +8 -0
- package/node_modules/yaml/dist/cli.mjs +201 -0
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/node_modules/yaml/dist/compose/composer.js +224 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +227 -0
- package/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/node_modules/yaml/dist/doc/Document.js +337 -0
- package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/node_modules/yaml/dist/doc/directives.js +178 -0
- package/node_modules/yaml/dist/errors.d.ts +21 -0
- package/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/yaml/dist/index.d.ts +25 -0
- package/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/yaml/dist/log.js +19 -0
- package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/Alias.js +118 -0
- package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
- package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/yaml/dist/options.d.ts +350 -0
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/node_modules/yaml/dist/parse/parser.js +980 -0
- package/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/node_modules/yaml/dist/public-api.js +107 -0
- package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/node_modules/yaml/dist/schema/tags.js +99 -0
- package/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/yaml/dist/util.d.ts +16 -0
- package/node_modules/yaml/dist/util.js +28 -0
- package/node_modules/yaml/dist/visit.d.ts +102 -0
- package/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/yaml/package.json +97 -0
- package/node_modules/yaml/util.js +2 -0
- package/package.json +116 -9
- package/bin/data-products/get-csn-via-dp-cli.js +0 -41
- package/bin/extend.js +0 -74
- package/bin/migrate.js +0 -66
- package/lib/init/template/containerize/index.js +0 -22
- package/lib/init/template/helm/index.js +0 -163
- package/lib/init/template/helm-unified-runtime/index.js +0 -65
- package/lib/init/template/html5-repo/files/html5-deployer.package.json.hbs +0 -11
- package/lib/mtx/download_legacy.js +0 -43
- package/lib/mtx/util/legacy_ext.js +0 -15
- package/npm-shrinkwrap.json +0 -1725
|
@@ -0,0 +1,1994 @@
|
|
|
1
|
+
// Functions and classes for syntax messages
|
|
2
|
+
|
|
3
|
+
// See internalDoc/ReportingMessages.md and lib/base/message-registry.js for details.
|
|
4
|
+
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
const { term } = require('../utils/term');
|
|
8
|
+
const { Location, locationString } = require('./location');
|
|
9
|
+
const { isBetaEnabled } = require('./specialOptions');
|
|
10
|
+
const {
|
|
11
|
+
centralMessages,
|
|
12
|
+
configurableForValidValues,
|
|
13
|
+
centralMessageTexts,
|
|
14
|
+
oldMessageIds,
|
|
15
|
+
} = require('./message-registry');
|
|
16
|
+
const _messageIdsWithExplanation = require('../../share/messages/message-explanations.json').messages;
|
|
17
|
+
const { analyseCsnPath, traverseQuery } = require('../base/csnRefs');
|
|
18
|
+
const { CompilerAssertion } = require('./error');
|
|
19
|
+
const trace = require('./trace');
|
|
20
|
+
const { getArtifactName } = require('../compiler/base');
|
|
21
|
+
const { cdlNewLineRegEx } = require('../language/textUtils');
|
|
22
|
+
const meta = require('./meta');
|
|
23
|
+
|
|
24
|
+
const fs = require('fs');
|
|
25
|
+
const path = require('path');
|
|
26
|
+
const { inspect } = require('util');
|
|
27
|
+
|
|
28
|
+
// term instance for messages
|
|
29
|
+
const colorTerm = term();
|
|
30
|
+
|
|
31
|
+
// Functions ensuring message consistency during runtime with --test-mode
|
|
32
|
+
|
|
33
|
+
let test$severities = null;
|
|
34
|
+
let test$texts = null;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if at least one of the given messages is of severity "Error".
|
|
38
|
+
*
|
|
39
|
+
* @param {CompileMessage[]} messages
|
|
40
|
+
* @returns {boolean}
|
|
41
|
+
*/
|
|
42
|
+
function hasErrors( messages ) {
|
|
43
|
+
return messages && messages.some( m => m.severity === 'Error' );
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if at least one of the given messages is of severity "Error"
|
|
48
|
+
* and *cannot* be reclassified to a warning for the given module.
|
|
49
|
+
* Won't detect already downgraded messages.
|
|
50
|
+
*
|
|
51
|
+
* @param {CompileMessage[]} messages
|
|
52
|
+
* @param {string} moduleName
|
|
53
|
+
* @param {CSN.Options} options
|
|
54
|
+
* @returns {boolean}
|
|
55
|
+
*/
|
|
56
|
+
function hasNonDowngradableErrors( messages, moduleName, options ) {
|
|
57
|
+
return messages &&
|
|
58
|
+
messages.some( m => m.severity === 'Error' && !isDowngradable( m.messageId, moduleName, options ));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given message id exist in the central message register and is
|
|
63
|
+
* downgradable
|
|
64
|
+
* - Non-errors are not downgradable if the moduleName is listed in the
|
|
65
|
+
* `errorFor` property
|
|
66
|
+
* - Errors might be downgradable according to the `configurableFor` property,
|
|
67
|
+
*
|
|
68
|
+
* @param {string} messageId
|
|
69
|
+
* @param {string} moduleName
|
|
70
|
+
* @param {CSN.Options} options Options used to check for test mode and beta flags.
|
|
71
|
+
* @returns {boolean}
|
|
72
|
+
*/
|
|
73
|
+
function isDowngradable( messageId, moduleName, options ) {
|
|
74
|
+
if (!messageId || !centralMessages[messageId])
|
|
75
|
+
return false;
|
|
76
|
+
|
|
77
|
+
const msg = centralMessages[messageId];
|
|
78
|
+
|
|
79
|
+
// errorFor has the highest priority. If the message is an error for
|
|
80
|
+
// the module, it is NEVER downgradable.
|
|
81
|
+
if (msg.severity !== 'Error')
|
|
82
|
+
return !msg.errorFor?.includes( moduleName );
|
|
83
|
+
const { configurableFor } = msg;
|
|
84
|
+
return (Array.isArray( configurableFor ))
|
|
85
|
+
? configurableFor.includes( moduleName )
|
|
86
|
+
: configurableFor && configurableForValidValues[configurableFor]?.( options );
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Returns a marker for messages strings indicating whether the message can be downgraded
|
|
91
|
+
* or whether it will be an error in the next cds-compiler release.
|
|
92
|
+
*
|
|
93
|
+
* @returns {string}
|
|
94
|
+
*/
|
|
95
|
+
function severityChangeMarker( msg, config ) {
|
|
96
|
+
if (config.moduleForMarker && msg.messageId) {
|
|
97
|
+
if (!msg.severity || msg.severity === 'Error') {
|
|
98
|
+
if (isDowngradable( msg.messageId, config.moduleForMarker,
|
|
99
|
+
{ deprecated: { downgradableErrors: true } }))
|
|
100
|
+
// Do not include testMode here, no marker for configurableFor: 'test'
|
|
101
|
+
return '‹↓›';
|
|
102
|
+
}
|
|
103
|
+
else if (centralMessages[msg.messageId]?.errorFor?.includes( 'v8' )) {
|
|
104
|
+
return '‹↑›';
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return '';
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Class for combined compiler errors. Additional members:
|
|
112
|
+
* - `messages`: array of compiler messages (CompileMessage)
|
|
113
|
+
* - `model`: the CSN model
|
|
114
|
+
*/
|
|
115
|
+
class CompilationError extends Error {
|
|
116
|
+
/**
|
|
117
|
+
* @param {CompileMessage[]} messages
|
|
118
|
+
* @param {XSN.Model} [model] the XSN model, only to be set with options.attachValidNames
|
|
119
|
+
*/
|
|
120
|
+
constructor(messages, model) {
|
|
121
|
+
// Because test frameworks such as mocha and jest to not call `toString()` on
|
|
122
|
+
// an unhandled CompilationError and instead use `e.stack` directly, there is
|
|
123
|
+
// no proper message about _what_ the root cause of the exception was.
|
|
124
|
+
// To mitigate that, we serialize the first error in the message as well.
|
|
125
|
+
const firstError = messages.find( m => m.severity === 'Error' )?.toString() || '';
|
|
126
|
+
super( `CDS compilation failed (@sap/cds-compiler v${ meta.version() })\n${ firstError }` );
|
|
127
|
+
|
|
128
|
+
/** @since v4.0.0 */
|
|
129
|
+
this.code = 'ERR_CDS_COMPILATION_FAILURE';
|
|
130
|
+
this.messages = [ ...messages ].sort(compareMessageSeverityAware);
|
|
131
|
+
|
|
132
|
+
// property `model` is only set with options.attachValidNames:
|
|
133
|
+
Object.defineProperty( this, 'model', { value: model || undefined, configurable: true } );
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Called by `console.*()` functions in NodeJs. To avoid `err.messages` being
|
|
138
|
+
* printed using `util.inspect()`.
|
|
139
|
+
*
|
|
140
|
+
* @return {string}
|
|
141
|
+
*/
|
|
142
|
+
[inspect.custom]() {
|
|
143
|
+
return this.stack || this.message;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Called when the exception is printed, e.g. when it is not caught.
|
|
148
|
+
* To give users a bit of information what went wrong, return stringified
|
|
149
|
+
* error messages. But only errors to avoid spamming users.
|
|
150
|
+
*
|
|
151
|
+
* Compiler consumers should catch compilation errors and properly handle
|
|
152
|
+
* them by printing messages themselves.
|
|
153
|
+
*
|
|
154
|
+
* @returns {string}
|
|
155
|
+
*/
|
|
156
|
+
toString() {
|
|
157
|
+
let messages = [ 'CDS compilation failed' ];
|
|
158
|
+
if (this.messages) {
|
|
159
|
+
messages = messages.concat(this.messages
|
|
160
|
+
.filter(msg => msg.severity === 'Error')
|
|
161
|
+
.map( m => m.toString()));
|
|
162
|
+
}
|
|
163
|
+
return messages.join('\n');
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @deprecated Use `.messages` instead.
|
|
168
|
+
*/
|
|
169
|
+
get errors() {
|
|
170
|
+
return this.messages;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Class for individual compile message.
|
|
176
|
+
*
|
|
177
|
+
* @class CompileMessage
|
|
178
|
+
*/
|
|
179
|
+
class CompileMessage {
|
|
180
|
+
/**
|
|
181
|
+
* Creates an instance of CompileMessage.
|
|
182
|
+
* @param {CSN.Location} location Location of the message
|
|
183
|
+
* @param {string} msg The message text
|
|
184
|
+
* @param {MessageSeverity} [severity='Error'] Severity: Debug, Info, Warning, Error
|
|
185
|
+
* @param {string} [id] The ID of the message - visible as property messageId
|
|
186
|
+
* @param {any} [home]
|
|
187
|
+
* @param {string} [moduleName] Name of the module that created this message
|
|
188
|
+
*
|
|
189
|
+
* @memberOf CompileMessage
|
|
190
|
+
*/
|
|
191
|
+
constructor(location, msg, severity = 'Error', id = null, home = null, moduleName = null) {
|
|
192
|
+
this.message = msg;
|
|
193
|
+
this.$location = { __proto__: Location.prototype, ...location, address: undefined };
|
|
194
|
+
this.validNames = null;
|
|
195
|
+
this.home = home; // semantic location, e.g. 'entity:"E"/element:"x"'
|
|
196
|
+
this.severity = severity;
|
|
197
|
+
this.messageId = id;
|
|
198
|
+
Object.defineProperty( this, '$module', { value: moduleName, configurable: true } );
|
|
199
|
+
// Uncomment when running TypeScript linter
|
|
200
|
+
// this.messageId = id;
|
|
201
|
+
// this.$module = moduleName;
|
|
202
|
+
// this.error = null;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
toString() {
|
|
206
|
+
// Used by cds-dk in their own `toString` wrapper.
|
|
207
|
+
return messageString( this, {
|
|
208
|
+
normalizeFilename: false,
|
|
209
|
+
noMessageId: true, // no message-id before finalization!
|
|
210
|
+
noHome: false,
|
|
211
|
+
module: null,
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const severitySpecs = {
|
|
217
|
+
error: { name: 'Error', level: 0 },
|
|
218
|
+
warning: { name: 'Warning', level: 1 },
|
|
219
|
+
info: { name: 'Info', level: 2 },
|
|
220
|
+
debug: { name: 'Debug', level: 3 },
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
// Message IDs raised for security-relevant annotate statements with non-existing targets.
|
|
224
|
+
// Downgraded to warning when noErrorForUnknownAnnotateTarget option is set.
|
|
225
|
+
const securityAnnotateTargetIds = new Set([
|
|
226
|
+
'ext-undefined-def-sec',
|
|
227
|
+
'ext-undefined-element-sec',
|
|
228
|
+
'ext-undefined-action-sec',
|
|
229
|
+
'ext-undefined-param-sec',
|
|
230
|
+
'ext-unexpected-returns-sec',
|
|
231
|
+
]);
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Get the reclassified severity of the given message using:
|
|
235
|
+
*
|
|
236
|
+
* 1. The specified severity: either centrally provided or via the input severity
|
|
237
|
+
* - when generally specified as 'Error', immediately return 'Error'
|
|
238
|
+
* if message is not specified as configurable (for the given module name)
|
|
239
|
+
* - when generally specified otherwise, immediately return 'Error'
|
|
240
|
+
* if message is specified as being an error for the given module name
|
|
241
|
+
* 2. User severity wishes in option `severities`: when provided and no 'Error' has
|
|
242
|
+
* been returned according to 1, return the severity according to the user wishes.
|
|
243
|
+
* 3. Otherwise, use the specified severity.
|
|
244
|
+
*
|
|
245
|
+
* @param {object} msg The CompileMessage.
|
|
246
|
+
* @param {CSN.Options} options
|
|
247
|
+
* @param {string} moduleName
|
|
248
|
+
* @returns {MessageSeverity}
|
|
249
|
+
*/
|
|
250
|
+
function reclassifiedSeverity( msg, options, moduleName ) {
|
|
251
|
+
const spec = centralMessages[msg.messageId] || { severity: msg.severity, configurableFor: null, errorFor: null };
|
|
252
|
+
let { severity } = spec;
|
|
253
|
+
|
|
254
|
+
if (spec.severity === 'Error') {
|
|
255
|
+
if (!isDowngradable(msg.messageId, moduleName, options))
|
|
256
|
+
return 'Error';
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
const { errorFor } = spec;
|
|
260
|
+
if (Array.isArray( errorFor )) {
|
|
261
|
+
if (errorFor.includes(moduleName))
|
|
262
|
+
return 'Error';
|
|
263
|
+
|
|
264
|
+
if (errorFor.includes('v8') && isBetaEnabled(options, 'v8preview')) {
|
|
265
|
+
severity = 'Error';
|
|
266
|
+
if (!isDowngradable(msg.messageId, moduleName, options))
|
|
267
|
+
return severity;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (options.noErrorForUnknownAnnotateTarget &&
|
|
273
|
+
severity === 'Error' &&
|
|
274
|
+
securityAnnotateTargetIds.has(msg.messageId))
|
|
275
|
+
severity = 'Warning';
|
|
276
|
+
|
|
277
|
+
if (!options.severities)
|
|
278
|
+
return severity;
|
|
279
|
+
|
|
280
|
+
let newSeverity = options.severities[msg.messageId];
|
|
281
|
+
// The user could have specified a severity through an old message ID.
|
|
282
|
+
if (!newSeverity && spec.oldNames) {
|
|
283
|
+
const oldName = spec.oldNames.find((name => options.severities[name]));
|
|
284
|
+
newSeverity = options.severities[oldName];
|
|
285
|
+
}
|
|
286
|
+
return normalizedSeverity( newSeverity ) || severity;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
function normalizedSeverity( severity ) {
|
|
290
|
+
if (typeof severity !== 'string')
|
|
291
|
+
return (severity == null) ? null : 'Error';
|
|
292
|
+
const s = severitySpecs[severity.toLowerCase()];
|
|
293
|
+
return s ? s.name : 'Error';
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Compare two severities. Returns 0 if they are the same, and <0 if
|
|
298
|
+
* `a` has a lower `level` than `b` according to {@link severitySpecs},
|
|
299
|
+
* where "lower" means: comes first when sorted.
|
|
300
|
+
*
|
|
301
|
+
* compareSeverities('Error', 'Info') => Error < Info => -1
|
|
302
|
+
*
|
|
303
|
+
* @param {MessageSeverity} a
|
|
304
|
+
* @param {MessageSeverity} b
|
|
305
|
+
* @see severitySpecs
|
|
306
|
+
*/
|
|
307
|
+
function compareSeverities( a, b ) {
|
|
308
|
+
// default: low priority
|
|
309
|
+
const aSpec = severitySpecs[a.toLowerCase()] || { level: 10 };
|
|
310
|
+
const bSpec = severitySpecs[b.toLowerCase()] || { level: 10 };
|
|
311
|
+
return aSpec.level - bSpec.level;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Find the nearest $location for the given CSN path in the model.
|
|
316
|
+
* If the path does not exist, the parent is used, and so on.
|
|
317
|
+
*
|
|
318
|
+
* @param {CSN.Model} model
|
|
319
|
+
* @param {CSN.Path} csnPath
|
|
320
|
+
* @returns {CSN.Location | null}
|
|
321
|
+
*/
|
|
322
|
+
function findNearestLocationForPath( model, csnPath ) {
|
|
323
|
+
if (!model)
|
|
324
|
+
return null;
|
|
325
|
+
let lastLocation = null;
|
|
326
|
+
/** @type {object} */
|
|
327
|
+
let currentStep = model;
|
|
328
|
+
for (const step of csnPath) {
|
|
329
|
+
if (!currentStep)
|
|
330
|
+
return lastLocation;
|
|
331
|
+
currentStep = currentStep[step];
|
|
332
|
+
if (currentStep && currentStep.$location)
|
|
333
|
+
lastLocation = currentStep.$location;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
return lastLocation;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Create the `message` functions to emit messages.
|
|
341
|
+
*
|
|
342
|
+
* @example
|
|
343
|
+
* ```js
|
|
344
|
+
* const { createMessageFunctions } = require(‘../base/messages’);
|
|
345
|
+
* function module( …, options ) {
|
|
346
|
+
* const { message, info, throwWithError } = createMessageFunctions( options, moduleName );
|
|
347
|
+
* // [...]
|
|
348
|
+
* message( 'message-id', <location>, <text-arguments>, <severity>, <text> );
|
|
349
|
+
* info( 'message-id', <location>, [<text-arguments>,] <text> );
|
|
350
|
+
* // [...]
|
|
351
|
+
* throwWithError();
|
|
352
|
+
* }
|
|
353
|
+
* ```
|
|
354
|
+
* @param {CSN.Options} [options]
|
|
355
|
+
* @param {string} [moduleName]
|
|
356
|
+
* @param {object} [model=null] the CSN or XSN model, used for convenience
|
|
357
|
+
*/
|
|
358
|
+
function createMessageFunctions( options, moduleName, model = null ) {
|
|
359
|
+
return makeMessageFunction( model, options, moduleName );
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Create the `message` function to emit messages.
|
|
364
|
+
*
|
|
365
|
+
* @example
|
|
366
|
+
* ```js
|
|
367
|
+
* const { makeMessageFunction } = require(‘../base/messages’);
|
|
368
|
+
* function module( …, options ) {
|
|
369
|
+
* const { message, info, throwWithError } = makeMessageFunction( model, options, moduleName );
|
|
370
|
+
* // [...]
|
|
371
|
+
* message( 'message-id', <location>, <text-arguments>, <severity>, <text> );
|
|
372
|
+
* info( 'message-id', <location>, [<text-arguments>,] <text> );
|
|
373
|
+
* // [...]
|
|
374
|
+
* throwWithError();
|
|
375
|
+
* }
|
|
376
|
+
* ```
|
|
377
|
+
* @param {object} model
|
|
378
|
+
* @param {CSN.Options} [options]
|
|
379
|
+
* @param {string|null} [_moduleName]
|
|
380
|
+
*/
|
|
381
|
+
function makeMessageFunction( model, options, _moduleName = null ) {
|
|
382
|
+
let moduleName = _moduleName;
|
|
383
|
+
|
|
384
|
+
if (options.testMode) {
|
|
385
|
+
// ensure message consistency during runtime with --test-mode
|
|
386
|
+
_check$Init( options );
|
|
387
|
+
if (!options.messages)
|
|
388
|
+
throw new CompilerAssertion('makeMessageFunction() expects options.messages to exist in testMode!');
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
const hasMessageArray = Array.isArray(options.messages);
|
|
392
|
+
/**
|
|
393
|
+
* Array of collected compiler messages. Only use it for debugging. Will not
|
|
394
|
+
* contain the messages created during a `callTransparently` call.
|
|
395
|
+
*
|
|
396
|
+
* @type {CompileMessage[]}
|
|
397
|
+
*/
|
|
398
|
+
let messages = hasMessageArray ? options.messages : [];
|
|
399
|
+
/**
|
|
400
|
+
* Whether an error was emitted in the module. Also includes reclassified errors.
|
|
401
|
+
* @type {boolean}
|
|
402
|
+
*/
|
|
403
|
+
let hasNewError = false;
|
|
404
|
+
|
|
405
|
+
reclassifyMessagesForModule();
|
|
406
|
+
|
|
407
|
+
return {
|
|
408
|
+
message,
|
|
409
|
+
error,
|
|
410
|
+
warning,
|
|
411
|
+
info,
|
|
412
|
+
debug,
|
|
413
|
+
messages,
|
|
414
|
+
throwWithError,
|
|
415
|
+
throwWithAnyError,
|
|
416
|
+
callTransparently,
|
|
417
|
+
moduleName,
|
|
418
|
+
setModel,
|
|
419
|
+
setModuleName,
|
|
420
|
+
setOptions,
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
function _message( id, location, textOrArguments, severity, texts = null ) {
|
|
424
|
+
_validateFunctionArguments(id, location, textOrArguments, severity, texts);
|
|
425
|
+
|
|
426
|
+
// Special case for _info, etc.: textOrArguments may be a string.
|
|
427
|
+
if (typeof textOrArguments === 'string') {
|
|
428
|
+
texts = { std: textOrArguments };
|
|
429
|
+
textOrArguments = {};
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
const [ fileLocation, semanticLocation, definition ] = _normalizeMessageLocation(location);
|
|
433
|
+
const text = messageText( texts || centralMessageTexts[id], textOrArguments );
|
|
434
|
+
|
|
435
|
+
/** @type {CompileMessage} */
|
|
436
|
+
const msg = new CompileMessage( fileLocation, text, severity, id, semanticLocation, moduleName );
|
|
437
|
+
if (options.internalMsg)
|
|
438
|
+
msg.error = new Error( 'stack' );
|
|
439
|
+
if (definition)
|
|
440
|
+
msg.$location.address = { definition }; // TODO: remove
|
|
441
|
+
|
|
442
|
+
if (id) {
|
|
443
|
+
if (options.testMode && !options.$recompile)
|
|
444
|
+
_check$Consistency( id, moduleName, severity, texts, options );
|
|
445
|
+
msg.severity = reclassifiedSeverity( msg, options, moduleName );
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
messages.push( msg );
|
|
449
|
+
hasNewError = hasNewError || msg.severity === 'Error' &&
|
|
450
|
+
!(options.testMode && isDowngradable( msg.messageId, moduleName, options ));
|
|
451
|
+
if (!hasMessageArray)
|
|
452
|
+
console.error( messageString( msg ) ); // eslint-disable-line no-console
|
|
453
|
+
return msg;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Validate the arguments for the message() function. This is needed during the transition
|
|
458
|
+
* to the new makeMessageFunction().
|
|
459
|
+
*/
|
|
460
|
+
function _validateFunctionArguments( id, location, textArguments, severity, texts ) {
|
|
461
|
+
if (!options.testMode)
|
|
462
|
+
return;
|
|
463
|
+
|
|
464
|
+
if (id !== null && typeof id !== 'string')
|
|
465
|
+
_expectedType('id', id, 'string');
|
|
466
|
+
|
|
467
|
+
if (location !== null && location !== undefined && !Array.isArray(location) && typeof location !== 'object')
|
|
468
|
+
_expectedType('location', location, 'XSN/CSN location, CSN path');
|
|
469
|
+
|
|
470
|
+
if (severity != null && typeof severity !== 'string')
|
|
471
|
+
_expectedType('severity', severity, 'string');
|
|
472
|
+
|
|
473
|
+
const isShortSignature = (typeof textArguments === 'string'); // textArguments => texts
|
|
474
|
+
|
|
475
|
+
if (isShortSignature) {
|
|
476
|
+
if (texts)
|
|
477
|
+
throw new CompilerAssertion('No "texts" argument expected because text was already provided as third argument.');
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
if (textArguments !== undefined && typeof textArguments !== 'object')
|
|
481
|
+
_expectedType('textArguments', textArguments, 'object');
|
|
482
|
+
if (texts !== undefined && typeof texts !== 'object' && typeof texts !== 'string')
|
|
483
|
+
_expectedType('texts', texts, 'object or string');
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
function _expectedType( field, val, type ) {
|
|
487
|
+
throw new CompilerAssertion(`Invalid argument type for ${ field }! Expected ${ type } but got ${ typeof val }. Do you use the old function signature?`);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Normalize the given location. Location may be a CSN path, XSN/CSN location or an
|
|
493
|
+
* array of the form `[CSN.Location, XSN user, suffix]`.
|
|
494
|
+
* TODO: normalize to [ Location, SemanticLocation ]
|
|
495
|
+
*
|
|
496
|
+
* @param {any} location
|
|
497
|
+
* @returns {[CSN.Location, string, string]} Location, semantic location and definition.
|
|
498
|
+
*/
|
|
499
|
+
function _normalizeMessageLocation( location ) {
|
|
500
|
+
if (!location)
|
|
501
|
+
// e.g. for general messages unrelated to code
|
|
502
|
+
return [ null, null, null ];
|
|
503
|
+
|
|
504
|
+
if (typeof location === 'object' && !Array.isArray(location))
|
|
505
|
+
// CSN.Location (with line/endLine, col/endCol)
|
|
506
|
+
return [ location, location.home || null, null ];
|
|
507
|
+
|
|
508
|
+
const isCsnPath = (typeof location[0] === 'string'); // could be `definitions`, `extensions`, ....
|
|
509
|
+
if (isCsnPath) {
|
|
510
|
+
return [
|
|
511
|
+
findNearestLocationForPath( model, location ),
|
|
512
|
+
constructSemanticLocationFromCsnPath( model, options, location ),
|
|
513
|
+
location[1], // location[0] is 'definitions'
|
|
514
|
+
];
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
if (location[1]?.mainKind)
|
|
518
|
+
return [ location[0], location[1].toString(), null ];
|
|
519
|
+
|
|
520
|
+
let semanticLocation = location[1] ? homeName( location[1], false ) : null;
|
|
521
|
+
if (location[2]) { // optional suffix, e.g. annotation
|
|
522
|
+
semanticLocation += `/${ (typeof location[2] === 'string') ? location[2] : homeName(location[2]) }`;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
const definition = location[1] ? homeName( location[1], true ) : null;
|
|
526
|
+
|
|
527
|
+
// If no XSN location is given, check if we can use the one of the artifact
|
|
528
|
+
let fileLocation = location[0];
|
|
529
|
+
if (!fileLocation && location[1])
|
|
530
|
+
fileLocation = location[1].location || location[1].$location || null;
|
|
531
|
+
|
|
532
|
+
return [ fileLocation, semanticLocation, definition ];
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Create a compiler message for model developers.
|
|
537
|
+
*
|
|
538
|
+
* @param {string} id Message ID
|
|
539
|
+
* @param {[CSN.Location, XSN.Artifact]|CSN.Path|CSN.Location|CSN.Location} location
|
|
540
|
+
* Either a (XSN/CSN-style) location, a tuple of file location
|
|
541
|
+
* and "user" (address) or a CSN path a.k.a semantic location path.
|
|
542
|
+
* @param {object} [textArguments] Text parameters that are replaced in the texts.
|
|
543
|
+
* @param {string|object} [texts]
|
|
544
|
+
*/
|
|
545
|
+
function message( id, location, textArguments = null, texts = null ) {
|
|
546
|
+
if (!id)
|
|
547
|
+
throw new CompilerAssertion('A message id is missing!');
|
|
548
|
+
if (!centralMessages[id])
|
|
549
|
+
throw new CompilerAssertion(`Message id '${ id }' is missing an entry in the central message register!`);
|
|
550
|
+
return _message(id, location, textArguments, null, texts);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Create a compiler error message.
|
|
555
|
+
* @see message()
|
|
556
|
+
*/
|
|
557
|
+
function error( id, location, textOrArguments = null, texts = null ) {
|
|
558
|
+
return _message(id, location, textOrArguments, 'Error', texts);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Create a compiler warning message.
|
|
563
|
+
* @see message()
|
|
564
|
+
*/
|
|
565
|
+
function warning( id, location, textOrArguments = null, texts = null ) {
|
|
566
|
+
return _message(id, location, textOrArguments, 'Warning', texts);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Create a compiler info message.
|
|
571
|
+
* @see message()
|
|
572
|
+
*/
|
|
573
|
+
function info( id, location, textOrArguments = null, texts = null ) {
|
|
574
|
+
return _message(id, location, textOrArguments, 'Info', texts);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Create a compiler debug message (usually not shown).
|
|
579
|
+
* @see message()
|
|
580
|
+
*/
|
|
581
|
+
function debug( id, location, textOrArguments = null, texts = null ) {
|
|
582
|
+
return _message(id, location, textOrArguments, 'Debug', texts);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
function throwWithError() {
|
|
586
|
+
if (hasNewError) {
|
|
587
|
+
trace.log( `stop compilation with ${ messages.length } messages` );
|
|
588
|
+
throw new CompilationError(messages, options.attachValidNames && model);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Throws a CompilationError exception if there is at least one error message
|
|
594
|
+
* in the model's messages after reclassifying existing messages according to
|
|
595
|
+
* the module name.
|
|
596
|
+
* If `--test-mode` is enabled, this function will only throw if the
|
|
597
|
+
* error *cannot* be downgraded to a warning. This is done to ensure that
|
|
598
|
+
* developers do not rely on certain errors leading to an exception.
|
|
599
|
+
*/
|
|
600
|
+
function throwWithAnyError() {
|
|
601
|
+
if (!messages || !messages.length)
|
|
602
|
+
return;
|
|
603
|
+
const hasError = options.testMode ? hasNonDowngradableErrors : hasErrors;
|
|
604
|
+
if (hasError( messages, moduleName, options )) {
|
|
605
|
+
trace.log( `stop compilation with ${ messages.length } messages` );
|
|
606
|
+
throw new CompilationError(messages, options.attachValidNames && model);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Reclassifies all messages according to the current module.
|
|
612
|
+
* This is required because if throwWithError() throws and the message's
|
|
613
|
+
* severities has `errorFor` set, then the message may still appear to be a warning.
|
|
614
|
+
*/
|
|
615
|
+
function reclassifyMessagesForModule() {
|
|
616
|
+
for (const msg of messages) {
|
|
617
|
+
if (msg.messageId && msg.severity !== 'Error') {
|
|
618
|
+
const severity = reclassifiedSeverity( msg, options, moduleName );
|
|
619
|
+
if (severity !== msg.severity) {
|
|
620
|
+
msg.severity = severity;
|
|
621
|
+
// Re-set the module regardless of severity, since we reclassified it.
|
|
622
|
+
Object.defineProperty( msg, '$module', { value: moduleName, configurable: true } );
|
|
623
|
+
hasNewError = hasNewError || severity === 'Error' &&
|
|
624
|
+
!(options.testMode && isDowngradable( msg.messageId, moduleName, options ));
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Collects all messages during the call of the callback function instead of
|
|
632
|
+
* storing them in the model. Returns the collected messages.
|
|
633
|
+
* Not yet in use.
|
|
634
|
+
*
|
|
635
|
+
* @param {Function} callback
|
|
636
|
+
* @param {...any} args
|
|
637
|
+
* @returns {CompileMessage[]}
|
|
638
|
+
*/
|
|
639
|
+
function callTransparently( callback, ...args ) {
|
|
640
|
+
const backup = messages;
|
|
641
|
+
messages = [];
|
|
642
|
+
callback(...args);
|
|
643
|
+
const collected = messages;
|
|
644
|
+
messages = backup;
|
|
645
|
+
return collected;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Change the model used to calculate CSN locations.
|
|
650
|
+
* This is necessary if you change the model heavily and rely on $paths relative to the new model.
|
|
651
|
+
*
|
|
652
|
+
* @param {CSN.Model} _model
|
|
653
|
+
*/
|
|
654
|
+
function setModel( _model ) {
|
|
655
|
+
model = _model;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Change the moduleName used for reclassifying messages.
|
|
660
|
+
* Needed for to.sql.migration + script
|
|
661
|
+
*
|
|
662
|
+
* @param {string} __moduleName
|
|
663
|
+
*/
|
|
664
|
+
function setModuleName( __moduleName ) {
|
|
665
|
+
moduleName = __moduleName;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Change the options used to determine message severities.
|
|
670
|
+
* This is necessary if you change `options.severities`, as otherwise they may not be picked up.
|
|
671
|
+
*
|
|
672
|
+
* @param {CSN.Options} _options
|
|
673
|
+
*/
|
|
674
|
+
function setOptions( _options ) {
|
|
675
|
+
options = _options;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Perform message consistency check during runtime with --test-mode
|
|
681
|
+
*/
|
|
682
|
+
|
|
683
|
+
function _check$Init( options ) {
|
|
684
|
+
if (!test$severities && !options.severities)
|
|
685
|
+
test$severities = Object.create(null);
|
|
686
|
+
if (!test$texts) {
|
|
687
|
+
test$texts = Object.create(null);
|
|
688
|
+
for (const [ id, texts ] of Object.entries( centralMessageTexts ))
|
|
689
|
+
test$texts[id] = (typeof texts === 'string') ? { std: texts } : { ...texts };
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Check the consistency of the given message and run some basic lint checks. These include:
|
|
695
|
+
*
|
|
696
|
+
* - Long message IDs must be listed centrally.
|
|
697
|
+
* - Messages with the same ID must have the same severity (in a module).
|
|
698
|
+
* - Messages with the same ID must have the same message texts.
|
|
699
|
+
* This ensures that $(PLACEHOLDERS) are used and that we don't accidentally
|
|
700
|
+
* use the same ID for different meanings, i.e. texts.
|
|
701
|
+
*
|
|
702
|
+
* @param {string} id
|
|
703
|
+
* @param {string} moduleName
|
|
704
|
+
* @param {string} severity
|
|
705
|
+
* @param {string|object} texts
|
|
706
|
+
* @param {CSN.Options} options
|
|
707
|
+
* @private
|
|
708
|
+
*/
|
|
709
|
+
function _check$Consistency( id, moduleName, severity, texts, options ) {
|
|
710
|
+
// TODO: replace by linter?
|
|
711
|
+
if (id.length > 32 && !centralMessages[id])
|
|
712
|
+
throw new CompilerAssertion( `The message ID "${ id }" has more than 30 chars and must be listed centrally` );
|
|
713
|
+
if (!options.severities)
|
|
714
|
+
_check$Severities( id, moduleName || '?', severity );
|
|
715
|
+
for (const [ variant, text ] of
|
|
716
|
+
Object.entries( (typeof texts === 'string') ? { std: texts } : texts || {} ))
|
|
717
|
+
_check$Texts( id, variant, text );
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Check the consistency of the message severity for the given message ID.
|
|
722
|
+
* Messages with the same ID must have the same severity (in a module).
|
|
723
|
+
* Non-downgradable errors must never be called with a lower severity.
|
|
724
|
+
*
|
|
725
|
+
* @param {string} id
|
|
726
|
+
* @param {string} moduleName
|
|
727
|
+
* @param {string} severity
|
|
728
|
+
* @private
|
|
729
|
+
*/
|
|
730
|
+
function _check$Severities( id, moduleName, severity ) {
|
|
731
|
+
if (!severity) // if just used message(), we are automatically consistent
|
|
732
|
+
return;
|
|
733
|
+
const spec = centralMessages[id];
|
|
734
|
+
if (!spec) {
|
|
735
|
+
const expected = test$severities[id];
|
|
736
|
+
if (!expected)
|
|
737
|
+
test$severities[id] = severity;
|
|
738
|
+
else if (expected !== severity)
|
|
739
|
+
throw new CompilerAssertion( `Inconsistent severity: Expecting "${ expected }" from previous call, not "${ severity }" for message ID "${ id }"` );
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
// now try whether the message could be something less than an Error in the module due to user wishes
|
|
743
|
+
if (!isDowngradable(id, moduleName, { testMode: true, deprecated: { downgradableErrors: true } } )) { // always an error in module
|
|
744
|
+
if (severity !== 'Error')
|
|
745
|
+
throw new CompilerAssertion( `Inconsistent severity: Expecting "Error", not "${ severity }" for message ID "${ id }" in module "${ moduleName }"` );
|
|
746
|
+
}
|
|
747
|
+
else if (spec.severity === 'Error') {
|
|
748
|
+
throw new CompilerAssertion( `Inconsistent severity: Expecting the use of function message() when message ID "${ id }" is a configurable error in module "${ moduleName }"` );
|
|
749
|
+
}
|
|
750
|
+
else if (spec.severity !== severity) {
|
|
751
|
+
throw new CompilerAssertion( `Inconsistent severity: Expecting "${ spec.severity }", not "${ severity }" for message ID "${ id }" in module "${ moduleName }"` );
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Check the consistency of the message text for the given message ID.
|
|
757
|
+
*
|
|
758
|
+
* Messages with the same ID must have the same message texts.
|
|
759
|
+
* This ensures that $(PLACEHOLDERS) are used and that we don't accidentally
|
|
760
|
+
* use the same ID for different meanings, i.e. texts.
|
|
761
|
+
*
|
|
762
|
+
* @param {string} id
|
|
763
|
+
* @param {string} prop
|
|
764
|
+
* @param {string} val
|
|
765
|
+
* @private
|
|
766
|
+
*/
|
|
767
|
+
function _check$Texts( id, prop, val ) {
|
|
768
|
+
if (!test$texts[id])
|
|
769
|
+
test$texts[id] = Object.create(null);
|
|
770
|
+
const expected = test$texts[id][prop];
|
|
771
|
+
if (!expected)
|
|
772
|
+
test$texts[id][prop] = val;
|
|
773
|
+
else if (expected !== val)
|
|
774
|
+
throw new CompilerAssertion( `Different texts for the same message ID. Expecting “${ expected }”, not “${ val }” for ID “${ id }” and text variant “${ prop }”`);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
const quote = { // could be an option in the future
|
|
778
|
+
double: p => `“${ p }”`, // for names, including annotation names (with preceding `@`)
|
|
779
|
+
single: p => `‘${ p }’`, // for other things cited from or expected in the model
|
|
780
|
+
angle: p => `‹${ p }›`, // for tokens like ‹Identifier›, and similar
|
|
781
|
+
direct: p => p, // e.g. for numbers _not cited from or expected in_ the source
|
|
782
|
+
upper: p => p.toUpperCase(),
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
const paramsTransform = {
|
|
786
|
+
// simple convenience:
|
|
787
|
+
name: quote.double,
|
|
788
|
+
id: quote.double,
|
|
789
|
+
alias: quote.double,
|
|
790
|
+
anno,
|
|
791
|
+
annos: transformManyWith( anno ),
|
|
792
|
+
delimited: n => quote.single( asDelimitedId(n) ),
|
|
793
|
+
file: quote.single,
|
|
794
|
+
option: quote.single,
|
|
795
|
+
prop: quote.single,
|
|
796
|
+
siblingprop: quote.single,
|
|
797
|
+
parentprop: quote.single,
|
|
798
|
+
subprop: quote.single,
|
|
799
|
+
otherprop: quote.single,
|
|
800
|
+
code: quote.single,
|
|
801
|
+
enum: sym => quote.single( `#${ sym }`),
|
|
802
|
+
newcode: quote.single,
|
|
803
|
+
kind: quote.single,
|
|
804
|
+
meta: quote.angle,
|
|
805
|
+
othermeta: quote.angle,
|
|
806
|
+
keyword,
|
|
807
|
+
module: quote.single,
|
|
808
|
+
// more complex convenience:
|
|
809
|
+
names: transformManyWith( quoted ),
|
|
810
|
+
number: quote.single, // number cited from source or expected in source
|
|
811
|
+
location: ({ line, col }) => `${ line }:${ col }`,
|
|
812
|
+
count: quote.direct,
|
|
813
|
+
line: quote.direct,
|
|
814
|
+
col: quote.direct,
|
|
815
|
+
literal: quote.direct,
|
|
816
|
+
n: quote.direct,
|
|
817
|
+
m: quote.direct,
|
|
818
|
+
value,
|
|
819
|
+
rawvalue: quote.single,
|
|
820
|
+
rawvalues: transformManyWith( quote.single ), // no 'double' quotes for strings
|
|
821
|
+
othervalue: value,
|
|
822
|
+
art: transformArg,
|
|
823
|
+
service: transformArg,
|
|
824
|
+
sorted_arts: transformManyWith( transformArg, true ),
|
|
825
|
+
target: transformArg,
|
|
826
|
+
source: transformArg,
|
|
827
|
+
elemref: transformElementRef,
|
|
828
|
+
type: transformArg,
|
|
829
|
+
othertype: transformArg,
|
|
830
|
+
offending: tokenSymbol,
|
|
831
|
+
op: quote.single,
|
|
832
|
+
expecting: transformManyWith( tokenSymbol ),
|
|
833
|
+
// msg: m => m,
|
|
834
|
+
$reviewed: ignoreTextTransform,
|
|
835
|
+
compiler: quote.direct, // TODO: if VERSION is w/o quotes, use VERSION
|
|
836
|
+
version: quote.single, // TODO: use quote.direct
|
|
837
|
+
};
|
|
838
|
+
|
|
839
|
+
function asDelimitedId( id ) {
|
|
840
|
+
// Same as in toCdl, but we don't want cyclic dependencies to toCdl.
|
|
841
|
+
return `![${ id.replace(/]/g, ']]') }]`;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
function anno( name ) {
|
|
845
|
+
return (name.charAt(0) === '@') ? quote.double( name ) : quote.double( `@${ name }` );
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
function value( val ) {
|
|
849
|
+
switch (typeof val) {
|
|
850
|
+
case 'number':
|
|
851
|
+
case 'boolean':
|
|
852
|
+
case 'bigint':
|
|
853
|
+
case 'undefined': {
|
|
854
|
+
return quote.single( val );
|
|
855
|
+
}
|
|
856
|
+
case 'string': {
|
|
857
|
+
// TODO: should we also shorten the string if too long? TODO: false, true, null?
|
|
858
|
+
return (!val ||
|
|
859
|
+
Number.parseFloat( val ).toString() === val ||
|
|
860
|
+
// with quotes (TODO: use `…` with escape chars):
|
|
861
|
+
/'/.test( val )) // sync ')
|
|
862
|
+
? quote.single( `'${ val.replace(/'/g, '\'\'') }'` )
|
|
863
|
+
: quote.single( val );
|
|
864
|
+
}
|
|
865
|
+
case 'object': {
|
|
866
|
+
return (val)
|
|
867
|
+
? quote.angle( Array.isArray( val ) ? 'array' : 'object' )
|
|
868
|
+
: quote.single( val );
|
|
869
|
+
}
|
|
870
|
+
default:
|
|
871
|
+
return quote.angle( typeof val );
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
const keywordRepresentations = {
|
|
876
|
+
association: 'Association',
|
|
877
|
+
composition: 'Composition',
|
|
878
|
+
groupby: 'group by',
|
|
879
|
+
orderby: 'order by',
|
|
880
|
+
};
|
|
881
|
+
function keyword( val ) {
|
|
882
|
+
const v = val.toLowerCase();
|
|
883
|
+
return quote.single( keywordRepresentations[v] || v );
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
function ignoreTextTransform() {
|
|
887
|
+
return null;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
function transformManyWith( t, sorted ) {
|
|
891
|
+
return function transformMany( many, r, args, texts ) {
|
|
892
|
+
const prop = [ 'none', 'one', 'two' ][many.length];
|
|
893
|
+
const names = many.map(t);
|
|
894
|
+
if (sorted)
|
|
895
|
+
names.sort();
|
|
896
|
+
if (!prop || !texts[prop] || args['#'] )
|
|
897
|
+
return names.join(', ');
|
|
898
|
+
r['#'] = prop; // text variant
|
|
899
|
+
if (many.length === 2)
|
|
900
|
+
r.second = names[1];
|
|
901
|
+
return many.length && names[0];
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* Quote the given string. Performs a type sanity check.
|
|
907
|
+
*
|
|
908
|
+
* @param {string} name
|
|
909
|
+
* @return {string}
|
|
910
|
+
*/
|
|
911
|
+
function quoted( name ) {
|
|
912
|
+
if (typeof name === 'string')
|
|
913
|
+
return quote.double( name );
|
|
914
|
+
throw new CompilerAssertion( `Expecting a string, not ${ typeof name } (${ JSON.stringify(name) })` );
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
function tokenSymbol( token ) {
|
|
918
|
+
if (token.match( /^[A-Z][A-Z]/ )) // keyword
|
|
919
|
+
return keyword( token );
|
|
920
|
+
else if (token.match( /^[A-Z][a-z]/ )) // Number, Identifier, ...
|
|
921
|
+
return quote.angle( token );
|
|
922
|
+
if (token.startsWith('\'') && token.endsWith('\'')) // operator token symbol
|
|
923
|
+
return quote.single( token.slice( 1, -1 ));
|
|
924
|
+
else if (token === '<EOF>')
|
|
925
|
+
return quote.angle( 'EOF' );
|
|
926
|
+
return quote.single( token ); // should not happen
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Transform an element reference (/path), e.g. on-condition path.
|
|
931
|
+
*/
|
|
932
|
+
function transformElementRef( arg ) {
|
|
933
|
+
const ref = arg.ref || arg.path;
|
|
934
|
+
if (!ref)
|
|
935
|
+
return quoted( arg );
|
|
936
|
+
// Can be used by CSN backends or compiler to create a simple path such as E:elem
|
|
937
|
+
return quoted( pathToMessageString( arg ) );
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
function pathToMessageString( arg ) {
|
|
941
|
+
const ref = arg?.ref || arg?.path || arg; // support CSN and XSN
|
|
942
|
+
if (!ref)
|
|
943
|
+
return null;
|
|
944
|
+
|
|
945
|
+
return ((arg.scope === 'param' || arg.param) ? ':' : '') +
|
|
946
|
+
ref.map(
|
|
947
|
+
item => (typeof item !== 'string'
|
|
948
|
+
? `${ item.id }${ item.args ? '(…)' : '' }${ item.where ? '[…]' : '' }`
|
|
949
|
+
: item)
|
|
950
|
+
).join('.');
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
function transformArg( arg, r, args, texts ) {
|
|
954
|
+
if (!arg || typeof arg !== 'object')
|
|
955
|
+
return quoted( arg );
|
|
956
|
+
if (arg._artifact)
|
|
957
|
+
arg = arg._artifact;
|
|
958
|
+
while (arg._outer) // nested 'items'
|
|
959
|
+
arg = arg._outer;
|
|
960
|
+
if (args['#'] || args.member )
|
|
961
|
+
return shortArtName( arg );
|
|
962
|
+
if (arg.ref) {
|
|
963
|
+
// Can be used by CSN backends to create a simple path such as E:elem
|
|
964
|
+
if (arg.ref.length > 1)
|
|
965
|
+
return quoted(`${ pathId(arg.ref[0]) }:${ arg.ref.slice(1).map(pathId).join('.') }`);
|
|
966
|
+
return quoted(pathId(arg.ref[0]));
|
|
967
|
+
}
|
|
968
|
+
if (!arg.name)
|
|
969
|
+
return quoted( arg.name );
|
|
970
|
+
const name = getArtifactName( arg );
|
|
971
|
+
const prop = [ 'element', 'param', 'action', 'alias' ].find( p => name[p] );
|
|
972
|
+
// if (!prop) throw Error()
|
|
973
|
+
if (!prop || !texts[prop] )
|
|
974
|
+
return shortArtName( arg );
|
|
975
|
+
r['#'] = texts[name.$variant] && name.$variant || prop; // text variant (set by searchName)
|
|
976
|
+
r.member = quoted( name[prop] );
|
|
977
|
+
return artName( arg, prop );
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
function pathId( item ) {
|
|
981
|
+
return (typeof item === 'string') ? item : item.id;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
// TODO: very likely delete this function
|
|
985
|
+
function searchName( art, id, variant ) {
|
|
986
|
+
if (!variant) {
|
|
987
|
+
// used to mention the "effective" type in the message, not the
|
|
988
|
+
// originally provided one (TODO: mention that in the message text)
|
|
989
|
+
const type = art._effectiveType && art._effectiveType.kind !== 'undefined' ? art._effectiveType : art;
|
|
990
|
+
if (type.elements) { // only mentioned elements
|
|
991
|
+
art = type.target?._artifact || type;
|
|
992
|
+
variant = 'element';
|
|
993
|
+
}
|
|
994
|
+
else {
|
|
995
|
+
variant = 'absolute';
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
if (variant === 'absolute') {
|
|
999
|
+
const absolute = `${ art.name.id }.${ id }`;
|
|
1000
|
+
return {
|
|
1001
|
+
kind: art.kind,
|
|
1002
|
+
name: { id: absolute, $variant: variant },
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
1005
|
+
const undef = {
|
|
1006
|
+
kind: variant || art.kind,
|
|
1007
|
+
name: { id, $variant: variant },
|
|
1008
|
+
};
|
|
1009
|
+
Object.defineProperty( undef, '_parent',
|
|
1010
|
+
{ value: art, configurable: true, writable: true } );
|
|
1011
|
+
Object.defineProperty( undef, '_main',
|
|
1012
|
+
{ value: art._main || art, configurable: true, writable: true } );
|
|
1013
|
+
// console.log('SN:',undef)
|
|
1014
|
+
return undef;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
function messageText( texts, params, transform ) {
|
|
1018
|
+
if (typeof texts === 'string')
|
|
1019
|
+
texts = { std: texts };
|
|
1020
|
+
const args = {};
|
|
1021
|
+
for (const p in params) {
|
|
1022
|
+
if (params[p] !== undefined) {
|
|
1023
|
+
const t = transform && transform[p] || paramsTransform[p];
|
|
1024
|
+
args[p] = (t) ? t( params[p], args, params, texts ) : params[p];
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
const variant = args['#'];
|
|
1028
|
+
return replaceInString( variant && texts[variant] || texts.std, args );
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
function replaceInString( text, params ) {
|
|
1032
|
+
const usedParams = [ '#', '$reviewed' ];
|
|
1033
|
+
const pattern = /\$\(([A-Z_]+)\)/g;
|
|
1034
|
+
const parts = [];
|
|
1035
|
+
let start = 0;
|
|
1036
|
+
for (let p = pattern.exec( text ); p; p = pattern.exec( text )) {
|
|
1037
|
+
const prop = p[1].toLowerCase();
|
|
1038
|
+
parts.push( text.substring( start, p.index ),
|
|
1039
|
+
(prop in params ? params[prop] : p[0]) );
|
|
1040
|
+
usedParams.push(prop);
|
|
1041
|
+
start = pattern.lastIndex;
|
|
1042
|
+
}
|
|
1043
|
+
parts.push( text.substring( start ) );
|
|
1044
|
+
const remain = (params['#']) ? [] : Object.keys( params ).filter( n => !usedParams.includes(n) );
|
|
1045
|
+
if (remain.length) {
|
|
1046
|
+
const remains = remain.map( n => `${ n.toUpperCase() } = ${ params[n] }` ).join(', ');
|
|
1047
|
+
return `${ parts.join('') }; ${ remains }`;
|
|
1048
|
+
}
|
|
1049
|
+
return parts.join('');
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* Return message string with location if present in compact form (i.e. one line).
|
|
1054
|
+
*
|
|
1055
|
+
* IMPORTANT:
|
|
1056
|
+
* cds-compiler <v4 used following signature:
|
|
1057
|
+
* `messageString( err, normalizeFilename, noMessageId, noHome, moduleName = undefined ) : string`
|
|
1058
|
+
* This signature is still supported for backwards compatibility but is deprecated.
|
|
1059
|
+
*
|
|
1060
|
+
* Example:
|
|
1061
|
+
* <source>.cds:3:11: Error message-id: Can't find type `nu` in this scope (in entity:“E”/element:“e”)
|
|
1062
|
+
*
|
|
1063
|
+
* @param {CompileMessage} err
|
|
1064
|
+
*
|
|
1065
|
+
* @param {object} [config = {}]
|
|
1066
|
+
*
|
|
1067
|
+
* @param {boolean} [config.normalizeFilename]
|
|
1068
|
+
* If true, the file path will be normalized to use `/` as the path separator (instead of `\` on Windows).
|
|
1069
|
+
*
|
|
1070
|
+
* @param {boolean} [config.noMessageId]
|
|
1071
|
+
* If true, will _not_ show the message ID (+ explanation hint) in the output.
|
|
1072
|
+
*
|
|
1073
|
+
* @param {boolean} [config.noHome]
|
|
1074
|
+
* If true, will _not_ show message's semantic location.
|
|
1075
|
+
*
|
|
1076
|
+
* @param {string} [config.moduleForMarker]
|
|
1077
|
+
* If set, downgradable error messages will get a '‹↓›' marker, depending on whether
|
|
1078
|
+
* the message can be downgraded for the given module. A `‹↑›` is used if the message
|
|
1079
|
+
* will be an error in the next major cds-compiler release.
|
|
1080
|
+
*
|
|
1081
|
+
* @returns {string}
|
|
1082
|
+
*/
|
|
1083
|
+
function messageString( err, config ) {
|
|
1084
|
+
// backwards compatibility <v4
|
|
1085
|
+
if (!config || typeof config === 'boolean' || arguments.length > 2) {
|
|
1086
|
+
config = {
|
|
1087
|
+
/* eslint-disable prefer-rest-params */
|
|
1088
|
+
normalizeFilename: arguments[1],
|
|
1089
|
+
noMessageId: arguments[2],
|
|
1090
|
+
noHome: arguments[3],
|
|
1091
|
+
moduleForMarker: arguments[4],
|
|
1092
|
+
/* eslint-enable prefer-rest-params */
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
config.moduleForMarker ??= config.module; // v4.8.0 or earlier compatibility
|
|
1096
|
+
|
|
1097
|
+
const location = (err.$location?.file ? `${ locationString( err.$location, config.normalizeFilename ) }: ` : '');
|
|
1098
|
+
const severity = err.severity || 'Error';
|
|
1099
|
+
const downgradable = severityChangeMarker(err, config);
|
|
1100
|
+
// even with noHome, print err.home if the location is weak
|
|
1101
|
+
const home = !err.home || config.noHome && err.$location?.endLine ? '' : ` (in ${ err.home })`;
|
|
1102
|
+
const msgId = (err.messageId && !config.noMessageId) ? `[${ err.messageId }]` : '';
|
|
1103
|
+
return `${ location }${ severity }${ downgradable }${ msgId }: ${ err.message }${ home }`;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Return message hash which is either the message string without the file location,
|
|
1108
|
+
* or the full message string if no semantic location is provided.
|
|
1109
|
+
*
|
|
1110
|
+
* @param {CompileMessage} msg
|
|
1111
|
+
* @returns {string} can be used to uniquely identify a message
|
|
1112
|
+
*/
|
|
1113
|
+
function messageHash( msg ) {
|
|
1114
|
+
// parser messages do not provide semantic location, therefore$ we need to use the file location
|
|
1115
|
+
if (!msg.home)
|
|
1116
|
+
return messageString(msg);
|
|
1117
|
+
const copy = { ...msg };
|
|
1118
|
+
// Note: This is a hack. deduplicateMessages() would otherwise remove
|
|
1119
|
+
// all but one message about duplicated artifacts.
|
|
1120
|
+
if (!msg.messageId || !msg.messageId.includes('duplicate'))
|
|
1121
|
+
copy.$location = undefined;
|
|
1122
|
+
return messageString(copy);
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* Returns a message string with file- and semantic location if present in multiline form
|
|
1127
|
+
* with a source code snippet below that has highlights for the message's location.
|
|
1128
|
+
* The message (+ message id) are colored according to their severity.
|
|
1129
|
+
*
|
|
1130
|
+
* @param {CompileMessage} err
|
|
1131
|
+
*
|
|
1132
|
+
* @param {object} [config = {}]
|
|
1133
|
+
*
|
|
1134
|
+
* @param {boolean} [config.normalizeFilename]
|
|
1135
|
+
* If true, the file path will be normalized to use `/` as the path separator (instead of `\` on Windows).
|
|
1136
|
+
*
|
|
1137
|
+
* @param {boolean} [config.noMessageId]
|
|
1138
|
+
* If true, will _not_ show the message ID (+ explanation hint) in the output.
|
|
1139
|
+
*
|
|
1140
|
+
* @param {boolean} [config.hintExplanation]
|
|
1141
|
+
* If true, messages with explanations will get a "…" marker.
|
|
1142
|
+
*
|
|
1143
|
+
* @param {string} [config.moduleForMarker]
|
|
1144
|
+
* If set, downgradable error messages will get a '‹↓›' marker, depending on whether
|
|
1145
|
+
* the message can be downgraded for the given module. A `‹↑›` is used if the message
|
|
1146
|
+
* will be an error in the next major cds-compiler release.
|
|
1147
|
+
*
|
|
1148
|
+
* @param {Record<string, string>} [config.sourceMap]
|
|
1149
|
+
* A dictionary of filename<->source-code entries. You can pass the `fileCache` that is used
|
|
1150
|
+
* by the compiler.
|
|
1151
|
+
*
|
|
1152
|
+
* @param {Record<string, number[]>} [config.sourceLineMap]
|
|
1153
|
+
* A dictionary of filename<->source-newline-indices entries. Is used to extract source code
|
|
1154
|
+
* snippets for message locations. If not set, will be set and filled by this function on-demand.
|
|
1155
|
+
* An entry is an array of character/byte offsets to new-lines, for example sourceLineMap[1] is the
|
|
1156
|
+
* end-newline for the second line.
|
|
1157
|
+
*
|
|
1158
|
+
* @param {string} [config.cwd]
|
|
1159
|
+
* The current working directory (cwd) that was passed to the compiler.
|
|
1160
|
+
* This value is only used if a source map is provided and relative paths needs to be
|
|
1161
|
+
* resolved to absolute ones.
|
|
1162
|
+
*
|
|
1163
|
+
* @param {boolean | 'auto' | 'never' | 'always'} [config.color]
|
|
1164
|
+
* If true/'always', ANSI escape codes will be used for coloring the severity. If false/'never',
|
|
1165
|
+
* no coloring will be used. If 'auto', we will decide based on certain factors such
|
|
1166
|
+
* as whether the shell is a TTY and whether the environment variable `NO_COLOR` is
|
|
1167
|
+
* unset or whether `FORCE_COLOR` is set.
|
|
1168
|
+
*
|
|
1169
|
+
* @returns {string}
|
|
1170
|
+
*/
|
|
1171
|
+
function messageStringMultiline( err, config = {} ) {
|
|
1172
|
+
colorTerm.changeColorMode(config ? config.color : 'auto');
|
|
1173
|
+
|
|
1174
|
+
config.moduleForMarker ??= config.module; // v4.8.0 or earlier compatibility
|
|
1175
|
+
|
|
1176
|
+
const explainHelp = (config.hintExplanation && hasMessageExplanation(err.messageId)) ? '…' : '';
|
|
1177
|
+
const home = !err.home ? '' : (`at ${ err.home }`);
|
|
1178
|
+
const severity = err.severity || 'Error';
|
|
1179
|
+
const downgradable = severityChangeMarker(err, config);
|
|
1180
|
+
const msgId = (err.messageId && !config.noMessageId) ? `${ downgradable }[${ err.messageId }${ explainHelp }]` : '';
|
|
1181
|
+
|
|
1182
|
+
let location = '';
|
|
1183
|
+
let context = '';
|
|
1184
|
+
if (err.$location?.file) {
|
|
1185
|
+
location += locationString( err.$location, config.normalizeFilename );
|
|
1186
|
+
if (home)
|
|
1187
|
+
location += ', ';
|
|
1188
|
+
context = _messageContext(err, config);
|
|
1189
|
+
if (context !== '')
|
|
1190
|
+
context = `\n${ context }`;
|
|
1191
|
+
}
|
|
1192
|
+
else if (!home) {
|
|
1193
|
+
return `${ colorTerm.severity(severity, severity + msgId) } ${ err.message }`;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
const additionalIndent = err.$location ? `${ err.$location.endLine || err.$location.line || 1 }`.length : 1;
|
|
1197
|
+
const lineSpacer = `\n ${ ' '.repeat( additionalIndent ) }|`;
|
|
1198
|
+
|
|
1199
|
+
return `${ colorTerm.severity(severity, severity + msgId) }: ${ err.message }${ lineSpacer }\n ${ location }${ home }${ context }`;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Used by _messageContext() to create an array of line start offsets.
|
|
1204
|
+
* Each entry in the returned array contains the offset for the start line,
|
|
1205
|
+
* where the line is the index in the array.
|
|
1206
|
+
*
|
|
1207
|
+
* @param source
|
|
1208
|
+
* @return {number[]}
|
|
1209
|
+
* @private
|
|
1210
|
+
*/
|
|
1211
|
+
function _createSourceLineMap( source ) {
|
|
1212
|
+
const newlines = [ 0 ];
|
|
1213
|
+
|
|
1214
|
+
const re = new RegExp(cdlNewLineRegEx, 'g');
|
|
1215
|
+
let line;
|
|
1216
|
+
while ((line = re.exec(source)) !== null)
|
|
1217
|
+
newlines.push(line.index + line[0].length);
|
|
1218
|
+
|
|
1219
|
+
newlines.push(source.length); // EOF marker
|
|
1220
|
+
|
|
1221
|
+
return newlines;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Returns a context (code) string that is human-readable (similar to rust's compiler).
|
|
1226
|
+
*
|
|
1227
|
+
* IMPORTANT: In case that `config.sourceMap[err.loc.file]` does not exist, this function
|
|
1228
|
+
* uses `path.resolve()` to get the absolute filename.
|
|
1229
|
+
*
|
|
1230
|
+
* Example Output:
|
|
1231
|
+
* |
|
|
1232
|
+
* 3 | num * nu
|
|
1233
|
+
* | ^^
|
|
1234
|
+
*
|
|
1235
|
+
* @param {CompileMessage} err Error object containing all details like line, message, etc.
|
|
1236
|
+
* @param {object} [config = {}] See `messageStringMultiline()` for details.
|
|
1237
|
+
*
|
|
1238
|
+
* @returns {string}
|
|
1239
|
+
* @private
|
|
1240
|
+
*/
|
|
1241
|
+
function _messageContext( err, config ) {
|
|
1242
|
+
const MAX_COL_LENGTH = 100;
|
|
1243
|
+
|
|
1244
|
+
const loc = err.$location;
|
|
1245
|
+
if (!loc || !loc.line || !loc.file || !config.sourceMap)
|
|
1246
|
+
return '';
|
|
1247
|
+
|
|
1248
|
+
let filepath = config.sourceMap[loc.file]?.realname || loc.file;
|
|
1249
|
+
if (!config.sourceMap[filepath])
|
|
1250
|
+
filepath = path.resolve(config.cwd || '', filepath);
|
|
1251
|
+
|
|
1252
|
+
const source = config.sourceMap[filepath];
|
|
1253
|
+
if (!source || source === true) // true: file exists, no further knowledge
|
|
1254
|
+
return '';
|
|
1255
|
+
|
|
1256
|
+
if (!config.sourceLineMap)
|
|
1257
|
+
config.sourceLineMap = Object.create(null);
|
|
1258
|
+
if (!config.sourceLineMap[filepath])
|
|
1259
|
+
config.sourceLineMap[filepath] = _createSourceLineMap(source);
|
|
1260
|
+
|
|
1261
|
+
const sourceLines = config.sourceLineMap[filepath];
|
|
1262
|
+
|
|
1263
|
+
// Lines are 1-based, we need 0-based ones for arrays
|
|
1264
|
+
const startLine = Math.min(sourceLines.length, loc.line - 1);
|
|
1265
|
+
const endLine = Math.min(sourceLines.length, loc.endLine ? loc.endLine - 1 : startLine);
|
|
1266
|
+
/** Only print N lines even if the error spans more lines. */
|
|
1267
|
+
const maxLine = Math.min((startLine + 2), endLine);
|
|
1268
|
+
|
|
1269
|
+
// check that source lines exists
|
|
1270
|
+
if (typeof sourceLines[startLine] !== 'number')
|
|
1271
|
+
return '';
|
|
1272
|
+
|
|
1273
|
+
const digits = String(endLine + 1).length;
|
|
1274
|
+
const severity = err.severity || 'Error';
|
|
1275
|
+
const indent = ' '.repeat(2 + digits);
|
|
1276
|
+
|
|
1277
|
+
// Columns are limited in width to avoid too long output.
|
|
1278
|
+
// "col" is 1-based but could still be set to 0, e.g. by CSN frontend.
|
|
1279
|
+
const startColumn = Math.min(MAX_COL_LENGTH, loc.col || 1);
|
|
1280
|
+
// end column points to the place *after* the last character index,
|
|
1281
|
+
// e.g. for single character locations it is "start + 1"
|
|
1282
|
+
let endColumn = (loc.endCol && loc.endCol > loc.col) ? loc.endCol - 1 : loc.col;
|
|
1283
|
+
endColumn = Math.min(MAX_COL_LENGTH, endColumn);
|
|
1284
|
+
|
|
1285
|
+
let msg = `${ indent }|\n`;
|
|
1286
|
+
|
|
1287
|
+
// print source line(s)
|
|
1288
|
+
for (let line = startLine; line <= maxLine; line++) {
|
|
1289
|
+
// Replaces tabs with 1 space
|
|
1290
|
+
let sourceCode = source.substring(sourceLines[line], sourceLines[line + 1] || source.length).trimEnd();
|
|
1291
|
+
sourceCode = sourceCode.replace(/\t/g, ' ');
|
|
1292
|
+
if (sourceCode.length >= MAX_COL_LENGTH)
|
|
1293
|
+
sourceCode = sourceCode.slice(0, MAX_COL_LENGTH);
|
|
1294
|
+
// Only prepend space if the line contains any sources.
|
|
1295
|
+
sourceCode = sourceCode.length ? ` ${ sourceCode }` : '';
|
|
1296
|
+
msg += ` ${ String(line + 1).padStart(digits, ' ') } |${ sourceCode }\n`;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
if (startLine === endLine && loc.col > 0) {
|
|
1300
|
+
// highlight only for one-line locations with valid columns
|
|
1301
|
+
// at least one character is highlighted
|
|
1302
|
+
let highlighter = ' '.repeat(startColumn - 1).padEnd(endColumn, '^');
|
|
1303
|
+
// Indicate that the error is further to the right.
|
|
1304
|
+
if (endColumn === MAX_COL_LENGTH)
|
|
1305
|
+
highlighter = highlighter.replace(' ^', '..^');
|
|
1306
|
+
msg += `${ indent }| ${ colorTerm.severity(severity, highlighter) }`;
|
|
1307
|
+
}
|
|
1308
|
+
else if (maxLine !== endLine) {
|
|
1309
|
+
// error spans more lines which we don't print
|
|
1310
|
+
msg += `${ indent }| …`;
|
|
1311
|
+
}
|
|
1312
|
+
else {
|
|
1313
|
+
msg += `${ indent }|`;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
return msg;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Returns a context (code) string that is human-readable (similar to rust's compiler)
|
|
1321
|
+
*
|
|
1322
|
+
* Example Output:
|
|
1323
|
+
* |
|
|
1324
|
+
* 3 | num * nu
|
|
1325
|
+
* | ^^
|
|
1326
|
+
*
|
|
1327
|
+
* @param {string[]} sourceLines The source code split up into lines, e.g. by `splitLines(src)`
|
|
1328
|
+
* from `lib/utils/file.js`
|
|
1329
|
+
* @param {CompileMessage} err Error object containing all details like line, message, etc.
|
|
1330
|
+
* @param {object} [config = {}]
|
|
1331
|
+
* @param {boolean | 'auto'} [config.color] If true, ANSI escape codes will be used for coloring the `^`. If false, no
|
|
1332
|
+
* coloring will be used. If 'auto', we will decide based on certain factors such
|
|
1333
|
+
* as whether the shell is a TTY and whether the environment variable 'NO_COLOR' is
|
|
1334
|
+
* unset or `FORCE_COLOR` is set.
|
|
1335
|
+
* @returns {string}
|
|
1336
|
+
*
|
|
1337
|
+
* @deprecated Use `messageStringMultiline()` with `config.sourceMap` and `config.sourceLineMap` instead!
|
|
1338
|
+
*/
|
|
1339
|
+
function messageContext( sourceLines, err, config ) {
|
|
1340
|
+
const loc = err.$location;
|
|
1341
|
+
if (!loc || !loc.line || !loc.file)
|
|
1342
|
+
return '';
|
|
1343
|
+
|
|
1344
|
+
colorTerm.changeColorMode(config ? config.color : 'auto');
|
|
1345
|
+
const sourceMap = { [err.$location.file]: sourceLines.join('\n') };
|
|
1346
|
+
return _messageContext(err, { ...config, sourceMap });
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* Compare two messages `a` and `b`. Return 0 if they are equal, 1 if `a` is
|
|
1351
|
+
* larger than `b`, and -1 if `a` is smaller than `b`. Messages without a location
|
|
1352
|
+
* are considered larger than messages with a location.
|
|
1353
|
+
*
|
|
1354
|
+
* @param {CompileMessage} a
|
|
1355
|
+
* @param {CompileMessage} b
|
|
1356
|
+
*/
|
|
1357
|
+
function compareMessage( a, b ) {
|
|
1358
|
+
const aFile = a.$location && a.$location.file;
|
|
1359
|
+
const bFile = b.$location && b.$location.file;
|
|
1360
|
+
if (aFile && bFile) {
|
|
1361
|
+
const aEnd = a.$location.endLine && a.$location.endCol && a.$location || { endLine: Number.MAX_SAFE_INTEGER, endCol: Number.MAX_SAFE_INTEGER }; // eslint-disable-line @stylistic/max-len
|
|
1362
|
+
const bEnd = b.$location.endLine && b.$location.endCol && b.$location || { endLine: Number.MAX_SAFE_INTEGER, endCol: Number.MAX_SAFE_INTEGER }; // eslint-disable-line @stylistic/max-len
|
|
1363
|
+
return ( c( aFile, bFile ) ||
|
|
1364
|
+
c( a.$location.line, b.$location.line ) ||
|
|
1365
|
+
c( a.$location.col, b.$location.col ) ||
|
|
1366
|
+
c( aEnd.endLine, bEnd.endLine ) ||
|
|
1367
|
+
c( aEnd.endCol, bEnd.endCol ) ||
|
|
1368
|
+
c( homeSortName( a ), homeSortName( b ) ) ||
|
|
1369
|
+
// TODO: severities?
|
|
1370
|
+
c( a.message, b.message ) );
|
|
1371
|
+
}
|
|
1372
|
+
else if (!aFile && !bFile) {
|
|
1373
|
+
return ( c( homeSortName( a ), homeSortName( b ) ) ||
|
|
1374
|
+
c( a.message, b.message ) );
|
|
1375
|
+
}
|
|
1376
|
+
else if (!aFile) {
|
|
1377
|
+
return (a.messageId && a.messageId.startsWith( 'api-' )) ? -1 : 1;
|
|
1378
|
+
}
|
|
1379
|
+
return (b.messageId && b.messageId.startsWith( 'api-' )) ? 1 : -1;
|
|
1380
|
+
|
|
1381
|
+
function c( x, y ) {
|
|
1382
|
+
if (x === y)
|
|
1383
|
+
return 0;
|
|
1384
|
+
return (x > y) ? 1 : -1;
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* Compare two messages `a` and `b`. Return 0 if they are equal in both their
|
|
1390
|
+
* location and severity, >0 if `a` is larger than `b`, and <0 if `a` is smaller
|
|
1391
|
+
* than `b`. See `compareSeverities()` for how severities are compared.
|
|
1392
|
+
*
|
|
1393
|
+
* @param {CompileMessage} a
|
|
1394
|
+
* @param {CompileMessage} b
|
|
1395
|
+
*/
|
|
1396
|
+
function compareMessageSeverityAware( a, b ) {
|
|
1397
|
+
const c = compareSeverities(a.severity, b.severity);
|
|
1398
|
+
return c || compareMessage( a, b );
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Return sort-relevant part of semantic location (after the ':').
|
|
1403
|
+
* Messages without semantic locations are considered smaller (for syntax errors)
|
|
1404
|
+
* and (currently - should not happen in v6) larger for other messages.
|
|
1405
|
+
*
|
|
1406
|
+
* @param {CompileMessage} msg
|
|
1407
|
+
*/
|
|
1408
|
+
function homeSortName( { home, messageId } ) {
|
|
1409
|
+
if (!home)
|
|
1410
|
+
return (messageId && /^(syntax|api)-/.test( messageId ) ? ` ${ messageId }` : '~');
|
|
1411
|
+
return home.substring( home.indexOf(':') ); // i.e. starting with the ':', is always there
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* Removes duplicate messages from the given messages array without destroying
|
|
1416
|
+
* references to the array, i.e. removes them in-place.
|
|
1417
|
+
*
|
|
1418
|
+
* _Note_: Does NOT keep the original order!
|
|
1419
|
+
*
|
|
1420
|
+
* Two messages are the same if they have the same message hash. See messageHash().
|
|
1421
|
+
* If one of the two is more precise, then it replaces the other.
|
|
1422
|
+
* A message is more precise if it is contained in the other or if
|
|
1423
|
+
* the first does not have an endLine/endCol.
|
|
1424
|
+
*
|
|
1425
|
+
* @param {CompileMessage[]} messages
|
|
1426
|
+
*/
|
|
1427
|
+
function deduplicateMessages( messages ) {
|
|
1428
|
+
// sort messages to make it processing sequence independent which messages (with
|
|
1429
|
+
// which $location!) wins
|
|
1430
|
+
messages.sort(compareMessage);
|
|
1431
|
+
const seen = new Map();
|
|
1432
|
+
for (const msg of messages) {
|
|
1433
|
+
const hash = messageHash(msg);
|
|
1434
|
+
|
|
1435
|
+
if (!seen.has(hash)) {
|
|
1436
|
+
seen.set(hash, msg);
|
|
1437
|
+
}
|
|
1438
|
+
else if (msg.$location) {
|
|
1439
|
+
const existing = seen.get(hash);
|
|
1440
|
+
// If this messages has an end but the existing does not, then the new message is more precise.
|
|
1441
|
+
// If both messages do (or don't) have an endLine, then compare them based on their location.
|
|
1442
|
+
// Assume that a message is more precise if it comes later (i.e. may be included in the other).
|
|
1443
|
+
if (msg.$location.endLine && !existing.$location.endLine ||
|
|
1444
|
+
(!msg.$location.endLine === !existing.$location.endLine && compareMessage(msg, existing) > 0))
|
|
1445
|
+
seen.set(hash, msg);
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
messages.length = 0;
|
|
1450
|
+
seen.forEach(msg => messages.push(msg));
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
function shortArtName( art ) {
|
|
1454
|
+
if (!art.name || art.kind === '$annotation')
|
|
1455
|
+
return artName( art );
|
|
1456
|
+
const name = getArtifactName( art );
|
|
1457
|
+
if ([ 'select', 'action', 'alias', 'param' ].every( n => name[n] == null || name[n] === 1 ) &&
|
|
1458
|
+
!name.absolute.includes(':'))
|
|
1459
|
+
return quote.double( name.element ? `${ name.absolute }:${ name.element }` : name.absolute );
|
|
1460
|
+
return artName( art );
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
function artName( art, omit ) {
|
|
1464
|
+
const orig = art;
|
|
1465
|
+
let suffix = 0;
|
|
1466
|
+
while (!art.name && art._outer && art.kind !== '$annotation') {
|
|
1467
|
+
++suffix;
|
|
1468
|
+
art = art._outer;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
const name = getArtifactName( art );
|
|
1472
|
+
if (!name) {
|
|
1473
|
+
const loc = art.location ? ` at ${ locationString( art.location ) }` : '';
|
|
1474
|
+
throw new CompilerAssertion(
|
|
1475
|
+
art.path
|
|
1476
|
+
? `No artifact for ${ art.path.map( i => i.id ).join( '.' ) }${ loc }`
|
|
1477
|
+
: `No name found in ${ Object.keys( art ).join( '+' ) }${ loc }`
|
|
1478
|
+
);
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
const r = (name.absolute) ? [ quoted( name.absolute ) ] : [];
|
|
1482
|
+
if (name.select && name.select > 1 || name.select != null && art.kind !== 'element') // Yes, omit select:1 for element - TODO: re-check
|
|
1483
|
+
r.push( (art.kind === 'extend' ? 'block:' : 'query:') + name.select ); // TODO: rename to 'select:1' and consider whether there are more selects
|
|
1484
|
+
if (name.action != null && omit !== 'action')
|
|
1485
|
+
r.push( `${ memberActionName(art) }:${ quoted( name.action ) }` );
|
|
1486
|
+
if (name.alias != null && art.kind !== '$self' && name.$inferred !== '$internal')
|
|
1487
|
+
r.push( (art.kind === 'mixin' ? 'mixin:' : 'alias:') + quoted( name.alias ) );
|
|
1488
|
+
if (name.param != null && omit !== 'param')
|
|
1489
|
+
r.push( name.param ? `param:${ quoted( name.param ) }` : 'returns' ); // TODO: join
|
|
1490
|
+
|
|
1491
|
+
if (name.element != null && omit !== 'element') {
|
|
1492
|
+
if (name.select != null && !art.$inferred)
|
|
1493
|
+
r.push( `column:${ quoted( name.element ) }` );
|
|
1494
|
+
else if (art.kind === 'builtin')
|
|
1495
|
+
return `$var:${ quoted( name.element ) }`;
|
|
1496
|
+
else
|
|
1497
|
+
// r.push( `${ art.kind }: ${ quoted( name.element )}` ); or even better element:"assoc"/key:"i" same with enum
|
|
1498
|
+
r.push( (art.kind === 'enum' ? 'enum:' : 'element:') + quoted( name.element ) );
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
if (art.kind === '$self')
|
|
1502
|
+
r.push( `alias:${ quoted( name.alias ) }` ); // should be late due to $self in anonymous aspect
|
|
1503
|
+
|
|
1504
|
+
if (orig === art.$backlink)
|
|
1505
|
+
r.push( 'backlink' );
|
|
1506
|
+
else if (suffix && art.targetAspect)
|
|
1507
|
+
r.push( 'target' );
|
|
1508
|
+
else if (suffix)
|
|
1509
|
+
r.push( art.items?.items ? `items:${ suffix }` : 'items' );
|
|
1510
|
+
|
|
1511
|
+
return r.join('/');
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
function memberActionName( art ) {
|
|
1515
|
+
while (art && art._main) {
|
|
1516
|
+
if (art.kind === 'action' || art.kind === 'function')
|
|
1517
|
+
return art.kind;
|
|
1518
|
+
art = art._parent;
|
|
1519
|
+
}
|
|
1520
|
+
return 'action';
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
// TODO: XSN-specific things should probably move out
|
|
1524
|
+
function homeName( art, absoluteOnly ) {
|
|
1525
|
+
if (!art)
|
|
1526
|
+
return art;
|
|
1527
|
+
if (art._user) // when providing a path item with filter as “user”
|
|
1528
|
+
return homeName( art._user, absoluteOnly );
|
|
1529
|
+
if (art._outer) { // in items property, or annotation with path
|
|
1530
|
+
if (art._outer?.kind === '$annotation')
|
|
1531
|
+
art = art._outer;
|
|
1532
|
+
const outer = homeName( art._outer, absoluteOnly );
|
|
1533
|
+
if (art.kind === '$annotation') // eslint-disable-next-line sonarjs/no-nested-template-literals
|
|
1534
|
+
return `${ outer }/${ quoted( `@${ art.name.id }` ) }`;
|
|
1535
|
+
return outer;
|
|
1536
|
+
}
|
|
1537
|
+
else if (art.kind === '$annotation') { // in items property, or annotation with path
|
|
1538
|
+
return quoted( `@${ art.name.id }` );
|
|
1539
|
+
}
|
|
1540
|
+
else if (art.kind === 'source' || !art.name) { // error reported in parser or on source level
|
|
1541
|
+
return null;
|
|
1542
|
+
}
|
|
1543
|
+
else if (art.kind === 'using') {
|
|
1544
|
+
return `using:${ quoted( art.name.id ) }`;
|
|
1545
|
+
}
|
|
1546
|
+
else if (art.kind === 'extend' || art.kind === 'annotate') {
|
|
1547
|
+
return !absoluteOnly && homeNameForExtend( art );
|
|
1548
|
+
}
|
|
1549
|
+
else if (!art.kind) { // annotation assignments are not really supported
|
|
1550
|
+
return (absoluteOnly) ? art.name.id : quoted( `@${ art.name.id }` );
|
|
1551
|
+
}
|
|
1552
|
+
else if (art.name._artifact) { // block, extend, annotate
|
|
1553
|
+
return homeName( art.name._artifact, absoluteOnly ); // use corresponding definition
|
|
1554
|
+
}
|
|
1555
|
+
let main = art._main || art;
|
|
1556
|
+
while (main._outer) // anonymous aspect
|
|
1557
|
+
main = main._outer._main || main._outer; // w/o `_main` if wrongly in `type`
|
|
1558
|
+
return (absoluteOnly) ? main.name.id : `${ main.kind }:${ artName( art ) }`;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
// The "home" for extensions is handled differently because `_artifact` is not
|
|
1562
|
+
// set for unknown extensions, and we could have nested extensions.
|
|
1563
|
+
// TODO: delete this function, just set correct name/_parent for extensions
|
|
1564
|
+
function homeNameForExtend( art ) {
|
|
1565
|
+
if (art._main) // new-style member name
|
|
1566
|
+
return `${ art._main.kind }:${ artName( art ) }`;
|
|
1567
|
+
const kind = art.kind || 'extend';
|
|
1568
|
+
// TODO: fix the following - do like in collectArtifactExtensions() or
|
|
1569
|
+
// basically resolveUncheckedPath()
|
|
1570
|
+
const absoluteName = art.name.id != null ? art.name.id
|
|
1571
|
+
: (!art.name.element && art.name.absolute || art.name.path && art.name.path.map(s => s && s.id).join('.'));
|
|
1572
|
+
|
|
1573
|
+
// Surrounding parent may be another extension.
|
|
1574
|
+
const parent = art._parent;
|
|
1575
|
+
if (!parent && art.name.absolute)
|
|
1576
|
+
return `${ kind }:${ artName(removeBlock(art)) }`;
|
|
1577
|
+
else if (!parent)
|
|
1578
|
+
return `${ kind }:${ quoted(absoluteName) }`;
|
|
1579
|
+
|
|
1580
|
+
if (art.name.param && parent.params) {
|
|
1581
|
+
const fakeArt = { kind: 'param', name: { param: absoluteName } };
|
|
1582
|
+
return `${ homeNameForExtend(parent) }/${ artName(fakeArt) }`;
|
|
1583
|
+
}
|
|
1584
|
+
else if (art.name.action && parent.actions) {
|
|
1585
|
+
const type = art.name._artifact?.kind || 'action';
|
|
1586
|
+
const fakeArt = { kind: type, name: { action: absoluteName }, _main: art.name._artifact?._main };
|
|
1587
|
+
return `${ homeNameForExtend(parent) }/${ artName(fakeArt) }`;
|
|
1588
|
+
}
|
|
1589
|
+
else if (parent.enum || parent.elements || parent.returns?.elements) {
|
|
1590
|
+
// For enum, extensions may store them in `elements`, i.e. don't differ between enum/elements,
|
|
1591
|
+
// so we need to look at the parent artifact.
|
|
1592
|
+
// For `extend <art> with enum`, there is `enum`.
|
|
1593
|
+
const parentArt = parent.name?._artifact;
|
|
1594
|
+
const fakeKind = (parent.enum || parentArt?.enum) ? 'enum' : 'element';
|
|
1595
|
+
const fakeArt = { kind: fakeKind, name: { element: art.name.element } };
|
|
1596
|
+
let parentOfElementChain = parent;
|
|
1597
|
+
while (parentOfElementChain.name?.element && parentOfElementChain._parent)
|
|
1598
|
+
parentOfElementChain = parentOfElementChain._parent;
|
|
1599
|
+
|
|
1600
|
+
return `${ homeNameForExtend(parentOfElementChain) }/${ artName(fakeArt) }`;
|
|
1601
|
+
}
|
|
1602
|
+
// This case should not happen, but just in case
|
|
1603
|
+
return `${ kind }:${ artName(parent) }`;
|
|
1604
|
+
|
|
1605
|
+
/**
|
|
1606
|
+
* Remove `select` from the 'art's name to avoid `block:1` in artName().
|
|
1607
|
+
* @TODO: Refactor homeNameForExtend (and possibly artName) to get rid of this function
|
|
1608
|
+
* */
|
|
1609
|
+
function removeBlock( obj ) {
|
|
1610
|
+
return { ...obj, name: { ...obj.name, select: null } };
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* Construct a semantic location for the given CSN path.
|
|
1616
|
+
* Works without a CSN model, but is less precise.
|
|
1617
|
+
*
|
|
1618
|
+
* Example:
|
|
1619
|
+
* path: ["definitions", "E", "elements", "s"],
|
|
1620
|
+
* result: entity:“E”/element:“s”
|
|
1621
|
+
*
|
|
1622
|
+
* @param {CSN.Model} model
|
|
1623
|
+
* @param {CSN.Options} options
|
|
1624
|
+
* @param {CSN.Path} csnPath
|
|
1625
|
+
* @return {string|null}
|
|
1626
|
+
*/
|
|
1627
|
+
function constructSemanticLocationFromCsnPath( model, options, csnPath ) {
|
|
1628
|
+
if (!model)
|
|
1629
|
+
return null;
|
|
1630
|
+
|
|
1631
|
+
if (options.testMode)
|
|
1632
|
+
sanitizeCsnPath(csnPath);
|
|
1633
|
+
|
|
1634
|
+
const _quoted = options.testMode ? quoted : quote.double;
|
|
1635
|
+
|
|
1636
|
+
let result = '';
|
|
1637
|
+
const csnDictionaries = [
|
|
1638
|
+
'args', 'params', 'enum', 'mixin', 'elements', 'actions', 'definitions', 'vocabularies',
|
|
1639
|
+
];
|
|
1640
|
+
// Properties that (currently) end the semantic location.
|
|
1641
|
+
const queryPropsLast = [ 'where', 'groupBy', 'having', 'orderBy', 'limit', 'offset' ];
|
|
1642
|
+
|
|
1643
|
+
let index = 0;
|
|
1644
|
+
/** @type {CSN.PathSegment} */
|
|
1645
|
+
let step = csnPath[index];
|
|
1646
|
+
let currentThing = model?.[step];
|
|
1647
|
+
|
|
1648
|
+
function next( steps = 1 ) {
|
|
1649
|
+
for (; steps > 0; --steps) {
|
|
1650
|
+
++index;
|
|
1651
|
+
step = csnPath[index];
|
|
1652
|
+
currentThing = currentThing && currentThing[step];
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
function peek( steps = 1 ) {
|
|
1657
|
+
return csnPath[index + steps];
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
// First step; always one of: -------------------------------------
|
|
1661
|
+
|
|
1662
|
+
if (step === 'definitions') {
|
|
1663
|
+
next(); // "definitions"
|
|
1664
|
+
const kind = currentThing?.kind || 'artifact';
|
|
1665
|
+
result += `${ kind }:${ _quoted(step) }`;
|
|
1666
|
+
}
|
|
1667
|
+
else if (step === 'vocabularies') {
|
|
1668
|
+
next(); // dictionary name
|
|
1669
|
+
if (index < csnPath.length)
|
|
1670
|
+
result += `annotation:${ _quoted(csnPath[index]) }`;
|
|
1671
|
+
else
|
|
1672
|
+
result += 'vocabularies';
|
|
1673
|
+
}
|
|
1674
|
+
else if (step === 'extensions') {
|
|
1675
|
+
next(); // "extensions"
|
|
1676
|
+
if (!currentThing) {
|
|
1677
|
+
result += `extension:${ step }`;
|
|
1678
|
+
}
|
|
1679
|
+
else {
|
|
1680
|
+
const name = currentThing.annotate || currentThing.extend;
|
|
1681
|
+
const kind = currentThing.annotate ? 'annotate' : 'extend';
|
|
1682
|
+
result += `${ kind }:${ _quoted(name) }`;
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
if (!currentThing)
|
|
1687
|
+
return result;
|
|
1688
|
+
|
|
1689
|
+
const selectDepth = (csnPath[0] !== 'extensions') ? queryDepthForMessage(csnPath, model, currentThing) : null;
|
|
1690
|
+
|
|
1691
|
+
// Artifact ref -------------------------------------
|
|
1692
|
+
|
|
1693
|
+
next();
|
|
1694
|
+
while (index < csnPath.length) {
|
|
1695
|
+
if (step === 'elements' || step === 'items') {
|
|
1696
|
+
if (index >= csnPath.length - 1)
|
|
1697
|
+
break; // last segment
|
|
1698
|
+
|
|
1699
|
+
const elementHierarchy = [];
|
|
1700
|
+
while (index < (csnPath.length - 1) && (step === 'items' || step === 'elements')) {
|
|
1701
|
+
if (step === 'elements') {
|
|
1702
|
+
next();
|
|
1703
|
+
elementHierarchy.push(step);
|
|
1704
|
+
}
|
|
1705
|
+
next();
|
|
1706
|
+
}
|
|
1707
|
+
if (elementHierarchy.length > 0)
|
|
1708
|
+
result += `/element:${ _quoted(elementHierarchy.join('.')) }`;
|
|
1709
|
+
// no trailing /elements or /items
|
|
1710
|
+
continue;
|
|
1711
|
+
}
|
|
1712
|
+
else if (step === 'actions') {
|
|
1713
|
+
next(); // "actions"
|
|
1714
|
+
if (index < csnPath.length) {
|
|
1715
|
+
const kind = currentThing?.kind || 'action';
|
|
1716
|
+
result += `/${ kind }:${ _quoted(csnPath[index]) }`;
|
|
1717
|
+
}
|
|
1718
|
+
else { // actions is last segment
|
|
1719
|
+
result += '/actions';
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
else if (step === 'params') {
|
|
1723
|
+
dictEntry('param');
|
|
1724
|
+
}
|
|
1725
|
+
else if (step === 'enum' || step === 'mixin') {
|
|
1726
|
+
dictEntry(step);
|
|
1727
|
+
}
|
|
1728
|
+
else if (step === 'cast') {
|
|
1729
|
+
// To shorten the location, only print 'cast' if it's not a
|
|
1730
|
+
// redirection target.
|
|
1731
|
+
if (csnPath[index + 1] !== 'on' && csnPath[index + 1] !== 'target')
|
|
1732
|
+
result += '/cast';
|
|
1733
|
+
}
|
|
1734
|
+
// @ts-ignore
|
|
1735
|
+
else if (queryPropsLast.includes(step)) {
|
|
1736
|
+
result += `/${ step }`;
|
|
1737
|
+
break; // always last step
|
|
1738
|
+
}
|
|
1739
|
+
else if (step === 'on') {
|
|
1740
|
+
result += '/on';
|
|
1741
|
+
break;
|
|
1742
|
+
}
|
|
1743
|
+
else if (step === 'target') {
|
|
1744
|
+
if (currentThing)
|
|
1745
|
+
result += `/target:${ _quoted(currentThing) }`;
|
|
1746
|
+
else
|
|
1747
|
+
result += '/target';
|
|
1748
|
+
break;
|
|
1749
|
+
}
|
|
1750
|
+
else if (step === 'targetAspect') {
|
|
1751
|
+
// skip
|
|
1752
|
+
}
|
|
1753
|
+
else if (step === 'xpr' || step === 'list' || step === 'default' || step === 'ref' || step === 'as' || step === 'value' || step === '$calc') {
|
|
1754
|
+
break; // don't go into xprs, refs, aliases, values, etc.
|
|
1755
|
+
}
|
|
1756
|
+
else if (step === 'returns') {
|
|
1757
|
+
result += '/returns';
|
|
1758
|
+
}
|
|
1759
|
+
else if (step === 'query' || step === 'projection') {
|
|
1760
|
+
if (!queryPath())
|
|
1761
|
+
break; // something failed
|
|
1762
|
+
continue;
|
|
1763
|
+
}
|
|
1764
|
+
else if (step === 'cardinality') {
|
|
1765
|
+
// ignore; all messages pointing to cardinality already mention "cardinality".
|
|
1766
|
+
// Also, no annotations on cardinalities.
|
|
1767
|
+
break;
|
|
1768
|
+
}
|
|
1769
|
+
else if (step === 'type') {
|
|
1770
|
+
break; // we don't go into types
|
|
1771
|
+
}
|
|
1772
|
+
else if (step === 'keys') { // e.g. association foreign keys
|
|
1773
|
+
next(); // "keys"
|
|
1774
|
+
if (index < csnPath.length) {
|
|
1775
|
+
const key = aliasOrReference();
|
|
1776
|
+
result += `/key:${ key ? _quoted(key) : step }`;
|
|
1777
|
+
}
|
|
1778
|
+
break;
|
|
1779
|
+
}
|
|
1780
|
+
else if (step[0] === '@') {
|
|
1781
|
+
// Annotations are always the last step.
|
|
1782
|
+
// Nothing comes after them, everything is user defined.
|
|
1783
|
+
result += `/${ _quoted(csnPath[index]) }`;
|
|
1784
|
+
break;
|
|
1785
|
+
}
|
|
1786
|
+
else {
|
|
1787
|
+
if (options.testMode)
|
|
1788
|
+
throw new CompilerAssertion(`semantic location: Unhandled segment: ${ csnPath[index] } for path ${ JSON.stringify( csnPath) }`);
|
|
1789
|
+
break;
|
|
1790
|
+
}
|
|
1791
|
+
next();
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
return result;
|
|
1795
|
+
|
|
1796
|
+
function dictEntry( prefix ) {
|
|
1797
|
+
next(); // dictionary name
|
|
1798
|
+
if (index < csnPath.length)
|
|
1799
|
+
result += `/${ prefix }:${ _quoted(csnPath[index]) }`;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* @return {string}
|
|
1804
|
+
*/
|
|
1805
|
+
function currentRefName() {
|
|
1806
|
+
if (currentThing?.id)
|
|
1807
|
+
return currentThing?.id;
|
|
1808
|
+
else if (currentThing?.as)
|
|
1809
|
+
return currentThing?.as;
|
|
1810
|
+
else if (typeof currentThing === 'string')
|
|
1811
|
+
return currentThing;
|
|
1812
|
+
return undefined;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
function aliasOrReference() {
|
|
1816
|
+
if (!currentThing?.as && currentThing?.ref) {
|
|
1817
|
+
// Create implicit alias.
|
|
1818
|
+
const { ref } = currentThing;
|
|
1819
|
+
const name = ref[ref.length - 1]?.id || ref[ref.length - 1];
|
|
1820
|
+
if (csnPath[index + 1] === 'ref' && csnPath[index + 2] === ref.length - 1) {
|
|
1821
|
+
// if the next ref points to the implicit alias, consume it to avoid duplicate names.
|
|
1822
|
+
next(2);
|
|
1823
|
+
}
|
|
1824
|
+
return name;
|
|
1825
|
+
}
|
|
1826
|
+
return currentRefName();
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
function queryPath() {
|
|
1830
|
+
next();
|
|
1831
|
+
while (index < csnPath.length) {
|
|
1832
|
+
if (step === 'SELECT' || step === 'SET') {
|
|
1833
|
+
if (selectDepth > 0) {
|
|
1834
|
+
// Once inside a SELECT, go to the "last" SELECT. Only print path steps after
|
|
1835
|
+
// the last SELECT, e.g. "columns".
|
|
1836
|
+
for (let j = csnPath.length - 1; j > index; --j) {
|
|
1837
|
+
// @ts-ignore
|
|
1838
|
+
if (csnPath[j] === 'SELECT' && !csnDictionaries.includes(csnPath[j - 1])) {
|
|
1839
|
+
next(j - index); // found last SELECT
|
|
1840
|
+
break;
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
result += `/select:${ selectDepth }`;
|
|
1844
|
+
}
|
|
1845
|
+
else {
|
|
1846
|
+
result += '/select';
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
else if (step === 'from') {
|
|
1850
|
+
// Don't check for alias, possibly confuses users.
|
|
1851
|
+
result += '/from';
|
|
1852
|
+
}
|
|
1853
|
+
else if (step === 'columns') {
|
|
1854
|
+
next();
|
|
1855
|
+
if (index >= csnPath.length)
|
|
1856
|
+
continue; // no column name
|
|
1857
|
+
|
|
1858
|
+
const elementHierarchy = [];
|
|
1859
|
+
|
|
1860
|
+
// Concat column+expand/inline to get a name similar to elements.
|
|
1861
|
+
do {
|
|
1862
|
+
if (currentThing?.inline)
|
|
1863
|
+
elementHierarchy.push(quote.angle(step + 1));
|
|
1864
|
+
else if (currentThing === '*')
|
|
1865
|
+
elementHierarchy.push(quote.angle(currentThing));
|
|
1866
|
+
else
|
|
1867
|
+
elementHierarchy.push(aliasOrReference());
|
|
1868
|
+
|
|
1869
|
+
if (peek() === 'expand' || peek() === 'inline') {
|
|
1870
|
+
next(); // skip expand/inline
|
|
1871
|
+
next(); // go to next column
|
|
1872
|
+
}
|
|
1873
|
+
else {
|
|
1874
|
+
break;
|
|
1875
|
+
}
|
|
1876
|
+
} while (index < csnPath.length);
|
|
1877
|
+
|
|
1878
|
+
if (elementHierarchy.length > 0)
|
|
1879
|
+
result += `/column:${ _quoted(elementHierarchy.join('.')) }`;
|
|
1880
|
+
}
|
|
1881
|
+
else if (step === 'args') {
|
|
1882
|
+
// Should only be reached for cases, where no SELECT in a union is picked.
|
|
1883
|
+
next(); // skip index
|
|
1884
|
+
}
|
|
1885
|
+
else {
|
|
1886
|
+
return true;
|
|
1887
|
+
}
|
|
1888
|
+
next();
|
|
1889
|
+
}
|
|
1890
|
+
return true;
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* Traverse the view's query until targetQuery is found and count the depth.
|
|
1896
|
+
* If there is only one or no query at all, returns `0` so that the semantic
|
|
1897
|
+
* location knows it does not need to print the query index.
|
|
1898
|
+
*
|
|
1899
|
+
* @param {CSN.Path} csnPath
|
|
1900
|
+
* @param {CSN.Model} model
|
|
1901
|
+
* @param {CSN.Artifact} view
|
|
1902
|
+
* @return {number}
|
|
1903
|
+
*/
|
|
1904
|
+
function queryDepthForMessage( csnPath, model, view ) {
|
|
1905
|
+
const { query: targetQuery } = analyseCsnPath(csnPath, model, false);
|
|
1906
|
+
if (!targetQuery)
|
|
1907
|
+
return 0;
|
|
1908
|
+
const rootQuery = view.query || { SELECT: view.projection };
|
|
1909
|
+
let depth = 0;
|
|
1910
|
+
let totalDepth = 0;
|
|
1911
|
+
let isFound = false;
|
|
1912
|
+
traverseQuery(rootQuery, null, null, (q) => {
|
|
1913
|
+
if (q.SELECT) {
|
|
1914
|
+
totalDepth += 1;
|
|
1915
|
+
if (!isFound)
|
|
1916
|
+
depth += 1;
|
|
1917
|
+
}
|
|
1918
|
+
if (q === targetQuery)
|
|
1919
|
+
isFound = true;
|
|
1920
|
+
});
|
|
1921
|
+
if (totalDepth > 1)
|
|
1922
|
+
return depth;
|
|
1923
|
+
return 0;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
function sanitizeCsnPath( csnPath ) {
|
|
1927
|
+
for (const step of csnPath) {
|
|
1928
|
+
if (typeof step !== 'string' && typeof step !== 'number')
|
|
1929
|
+
throw new CompilerAssertion(`Found CSN path step that is neither string nor number: ${ step } ${ JSON.stringify(csnPath) }`);
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* Get the explanation string for the given message-id.
|
|
1935
|
+
* Ensure to have called hasMessageExplanation() before.
|
|
1936
|
+
*
|
|
1937
|
+
* @param {string} messageId
|
|
1938
|
+
* @returns {string}
|
|
1939
|
+
* @throws May throw an ENOENT error if the file cannot be found.
|
|
1940
|
+
* @see hasMessageExplanation()
|
|
1941
|
+
*/
|
|
1942
|
+
function explainMessage( messageId ) {
|
|
1943
|
+
messageId = oldMessageIds[messageId] || messageId;
|
|
1944
|
+
if (Array.isArray(messageId))
|
|
1945
|
+
messageId = messageId[0]; // take first just in case
|
|
1946
|
+
const filename = path.join(__dirname, '..', '..', 'share', 'messages', `${ messageId }.md`);
|
|
1947
|
+
return fs.readFileSync(filename, 'utf8');
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
/**
|
|
1951
|
+
* Returns true if the given message has an explanation file.
|
|
1952
|
+
* Takes into account changed message ids, i.e. looks up if the new
|
|
1953
|
+
* message id has an explanation.
|
|
1954
|
+
*
|
|
1955
|
+
* @param {string} messageId
|
|
1956
|
+
* @returns {boolean}
|
|
1957
|
+
*/
|
|
1958
|
+
function hasMessageExplanation( messageId ) {
|
|
1959
|
+
let id = oldMessageIds[messageId] || messageId || false;
|
|
1960
|
+
if (Array.isArray(id))
|
|
1961
|
+
id = id[0];
|
|
1962
|
+
return id && _messageIdsWithExplanation.includes(id);
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
/**
|
|
1966
|
+
* Returns an array of message IDs that have an explanation text.
|
|
1967
|
+
*/
|
|
1968
|
+
function messageIdsWithExplanation() {
|
|
1969
|
+
return _messageIdsWithExplanation;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
module.exports = {
|
|
1973
|
+
hasErrors,
|
|
1974
|
+
locationString,
|
|
1975
|
+
messageString,
|
|
1976
|
+
messageStringMultiline,
|
|
1977
|
+
messageContext,
|
|
1978
|
+
searchName,
|
|
1979
|
+
createMessageFunctions,
|
|
1980
|
+
makeMessageFunction,
|
|
1981
|
+
artName,
|
|
1982
|
+
sortMessages: (m => m.sort(compareMessage)),
|
|
1983
|
+
sortMessagesSeverityAware: (m => m.sort(compareMessageSeverityAware)),
|
|
1984
|
+
deduplicateMessages,
|
|
1985
|
+
CompileMessage,
|
|
1986
|
+
CompilationError,
|
|
1987
|
+
explainMessage,
|
|
1988
|
+
hasMessageExplanation,
|
|
1989
|
+
messageIdsWithExplanation,
|
|
1990
|
+
// for tests only
|
|
1991
|
+
constructSemanticLocationFromCsnPath,
|
|
1992
|
+
homeName,
|
|
1993
|
+
pathToMessageString,
|
|
1994
|
+
};
|