@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,2589 @@
|
|
|
1
|
+
/***********************************************************************
|
|
2
|
+
|
|
3
|
+
A JavaScript tokenizer / parser / beautifier / compressor.
|
|
4
|
+
https://github.com/mishoo/UglifyJS
|
|
5
|
+
|
|
6
|
+
-------------------------------- (C) ---------------------------------
|
|
7
|
+
|
|
8
|
+
Author: Mihai Bazon
|
|
9
|
+
<mihai.bazon@gmail.com>
|
|
10
|
+
http://mihai.bazon.net/blog
|
|
11
|
+
|
|
12
|
+
Distributed under the BSD license:
|
|
13
|
+
|
|
14
|
+
Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
|
|
15
|
+
Parser based on parse-js (http://marijn.haverbeke.nl/parse-js/).
|
|
16
|
+
|
|
17
|
+
Redistribution and use in source and binary forms, with or without
|
|
18
|
+
modification, are permitted provided that the following conditions
|
|
19
|
+
are met:
|
|
20
|
+
|
|
21
|
+
* Redistributions of source code must retain the above
|
|
22
|
+
copyright notice, this list of conditions and the following
|
|
23
|
+
disclaimer.
|
|
24
|
+
|
|
25
|
+
* Redistributions in binary form must reproduce the above
|
|
26
|
+
copyright notice, this list of conditions and the following
|
|
27
|
+
disclaimer in the documentation and/or other materials
|
|
28
|
+
provided with the distribution.
|
|
29
|
+
|
|
30
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
|
|
31
|
+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
32
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
33
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
|
|
34
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
|
35
|
+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
36
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
37
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
38
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
|
39
|
+
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
|
40
|
+
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
41
|
+
SUCH DAMAGE.
|
|
42
|
+
|
|
43
|
+
***********************************************************************/
|
|
44
|
+
|
|
45
|
+
"use strict";
|
|
46
|
+
|
|
47
|
+
var KEYWORDS = "break case catch class const continue debugger default delete do else extends finally for function if in instanceof new return switch throw try typeof var void while with";
|
|
48
|
+
var KEYWORDS_ATOM = "false null true";
|
|
49
|
+
var RESERVED_WORDS = [
|
|
50
|
+
"abstract async await boolean byte char double enum export final float goto implements import int interface let long native package private protected public short static super synchronized this throws transient volatile yield",
|
|
51
|
+
KEYWORDS_ATOM,
|
|
52
|
+
KEYWORDS,
|
|
53
|
+
].join(" ");
|
|
54
|
+
var KEYWORDS_BEFORE_EXPRESSION = "return new delete throw else case";
|
|
55
|
+
|
|
56
|
+
KEYWORDS = makePredicate(KEYWORDS);
|
|
57
|
+
RESERVED_WORDS = makePredicate(RESERVED_WORDS);
|
|
58
|
+
KEYWORDS_BEFORE_EXPRESSION = makePredicate(KEYWORDS_BEFORE_EXPRESSION);
|
|
59
|
+
KEYWORDS_ATOM = makePredicate(KEYWORDS_ATOM);
|
|
60
|
+
|
|
61
|
+
var RE_BIN_NUMBER = /^0b([01]+)$/i;
|
|
62
|
+
var RE_HEX_NUMBER = /^0x([0-9a-f]+)$/i;
|
|
63
|
+
var RE_OCT_NUMBER = /^0o?([0-7]+)$/i;
|
|
64
|
+
|
|
65
|
+
var OPERATORS = makePredicate([
|
|
66
|
+
"in",
|
|
67
|
+
"instanceof",
|
|
68
|
+
"typeof",
|
|
69
|
+
"new",
|
|
70
|
+
"void",
|
|
71
|
+
"delete",
|
|
72
|
+
"++",
|
|
73
|
+
"--",
|
|
74
|
+
"+",
|
|
75
|
+
"-",
|
|
76
|
+
"!",
|
|
77
|
+
"~",
|
|
78
|
+
"&",
|
|
79
|
+
"|",
|
|
80
|
+
"^",
|
|
81
|
+
"*",
|
|
82
|
+
"/",
|
|
83
|
+
"%",
|
|
84
|
+
"**",
|
|
85
|
+
">>",
|
|
86
|
+
"<<",
|
|
87
|
+
">>>",
|
|
88
|
+
"<",
|
|
89
|
+
">",
|
|
90
|
+
"<=",
|
|
91
|
+
">=",
|
|
92
|
+
"==",
|
|
93
|
+
"===",
|
|
94
|
+
"!=",
|
|
95
|
+
"!==",
|
|
96
|
+
"?",
|
|
97
|
+
"=",
|
|
98
|
+
"+=",
|
|
99
|
+
"-=",
|
|
100
|
+
"/=",
|
|
101
|
+
"*=",
|
|
102
|
+
"%=",
|
|
103
|
+
"**=",
|
|
104
|
+
">>=",
|
|
105
|
+
"<<=",
|
|
106
|
+
">>>=",
|
|
107
|
+
"&=",
|
|
108
|
+
"|=",
|
|
109
|
+
"^=",
|
|
110
|
+
"&&",
|
|
111
|
+
"||",
|
|
112
|
+
"??",
|
|
113
|
+
"&&=",
|
|
114
|
+
"||=",
|
|
115
|
+
"??=",
|
|
116
|
+
]);
|
|
117
|
+
|
|
118
|
+
var NEWLINE_CHARS = "\n\r\u2028\u2029";
|
|
119
|
+
var OPERATOR_CHARS = "+-*&%=<>!?|~^";
|
|
120
|
+
var PUNC_OPENERS = "[{(";
|
|
121
|
+
var PUNC_SEPARATORS = ",;:";
|
|
122
|
+
var PUNC_CLOSERS = ")}]";
|
|
123
|
+
var PUNC_AFTER_EXPRESSION = PUNC_SEPARATORS + PUNC_CLOSERS;
|
|
124
|
+
var PUNC_BEFORE_EXPRESSION = PUNC_OPENERS + PUNC_SEPARATORS;
|
|
125
|
+
var PUNC_CHARS = PUNC_BEFORE_EXPRESSION + "`" + PUNC_CLOSERS;
|
|
126
|
+
var WHITESPACE_CHARS = NEWLINE_CHARS + " \u00a0\t\f\u000b\u200b\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\uFEFF";
|
|
127
|
+
var NON_IDENTIFIER_CHARS = makePredicate(characters("./'\"#" + OPERATOR_CHARS + PUNC_CHARS + WHITESPACE_CHARS));
|
|
128
|
+
|
|
129
|
+
NEWLINE_CHARS = makePredicate(characters(NEWLINE_CHARS));
|
|
130
|
+
OPERATOR_CHARS = makePredicate(characters(OPERATOR_CHARS));
|
|
131
|
+
PUNC_AFTER_EXPRESSION = makePredicate(characters(PUNC_AFTER_EXPRESSION));
|
|
132
|
+
PUNC_BEFORE_EXPRESSION = makePredicate(characters(PUNC_BEFORE_EXPRESSION));
|
|
133
|
+
PUNC_CHARS = makePredicate(characters(PUNC_CHARS));
|
|
134
|
+
WHITESPACE_CHARS = makePredicate(characters(WHITESPACE_CHARS));
|
|
135
|
+
|
|
136
|
+
/* -----[ Tokenizer ]----- */
|
|
137
|
+
|
|
138
|
+
function is_surrogate_pair_head(code) {
|
|
139
|
+
return code >= 0xd800 && code <= 0xdbff;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function is_surrogate_pair_tail(code) {
|
|
143
|
+
return code >= 0xdc00 && code <= 0xdfff;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function is_digit(code) {
|
|
147
|
+
return code >= 48 && code <= 57;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function is_identifier_char(ch) {
|
|
151
|
+
return !NON_IDENTIFIER_CHARS[ch];
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function is_identifier_string(str) {
|
|
155
|
+
return /^[a-z_$][a-z0-9_$]*$/i.test(str);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function decode_escape_sequence(seq) {
|
|
159
|
+
switch (seq[0]) {
|
|
160
|
+
case "b": return "\b";
|
|
161
|
+
case "f": return "\f";
|
|
162
|
+
case "n": return "\n";
|
|
163
|
+
case "r": return "\r";
|
|
164
|
+
case "t": return "\t";
|
|
165
|
+
case "u":
|
|
166
|
+
var code;
|
|
167
|
+
if (seq[1] == "{" && seq.slice(-1) == "}") {
|
|
168
|
+
code = seq.slice(2, -1);
|
|
169
|
+
} else if (seq.length == 5) {
|
|
170
|
+
code = seq.slice(1);
|
|
171
|
+
} else {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
var num = parseInt(code, 16);
|
|
175
|
+
if (num < 0 || isNaN(num)) return;
|
|
176
|
+
if (num < 0x10000) return String.fromCharCode(num);
|
|
177
|
+
if (num > 0x10ffff) return;
|
|
178
|
+
return String.fromCharCode((num >> 10) + 0xd7c0) + String.fromCharCode((num & 0x03ff) + 0xdc00);
|
|
179
|
+
case "v": return "\u000b";
|
|
180
|
+
case "x":
|
|
181
|
+
if (seq.length != 3) return;
|
|
182
|
+
var num = parseInt(seq.slice(1), 16);
|
|
183
|
+
if (num < 0 || isNaN(num)) return;
|
|
184
|
+
return String.fromCharCode(num);
|
|
185
|
+
case "\r":
|
|
186
|
+
case "\n":
|
|
187
|
+
return "";
|
|
188
|
+
default:
|
|
189
|
+
if (seq == "0") return "\0";
|
|
190
|
+
if (seq[0] >= "0" && seq[0] <= "9") return;
|
|
191
|
+
return seq;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function parse_js_number(num) {
|
|
196
|
+
var match;
|
|
197
|
+
if (match = RE_BIN_NUMBER.exec(num)) return parseInt(match[1], 2);
|
|
198
|
+
if (match = RE_HEX_NUMBER.exec(num)) return parseInt(match[1], 16);
|
|
199
|
+
if (match = RE_OCT_NUMBER.exec(num)) return parseInt(match[1], 8);
|
|
200
|
+
var val = parseFloat(num);
|
|
201
|
+
if (val == num) return val;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
function JS_Parse_Error(message, filename, line, col, pos) {
|
|
205
|
+
this.message = message;
|
|
206
|
+
this.filename = filename;
|
|
207
|
+
this.line = line;
|
|
208
|
+
this.col = col;
|
|
209
|
+
this.pos = pos;
|
|
210
|
+
try {
|
|
211
|
+
throw new SyntaxError(message, filename, line, col);
|
|
212
|
+
} catch (cause) {
|
|
213
|
+
configure_error_stack(this, cause);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
JS_Parse_Error.prototype = Object.create(SyntaxError.prototype);
|
|
217
|
+
JS_Parse_Error.prototype.constructor = JS_Parse_Error;
|
|
218
|
+
|
|
219
|
+
function js_error(message, filename, line, col, pos) {
|
|
220
|
+
throw new JS_Parse_Error(message, filename, line, col, pos);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function is_token(token, type, val) {
|
|
224
|
+
return token.type == type && (val == null || token.value == val);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
var EX_EOF = {};
|
|
228
|
+
|
|
229
|
+
function tokenizer($TEXT, filename, html5_comments, shebang) {
|
|
230
|
+
|
|
231
|
+
var S = {
|
|
232
|
+
text : $TEXT,
|
|
233
|
+
filename : filename,
|
|
234
|
+
pos : 0,
|
|
235
|
+
tokpos : 0,
|
|
236
|
+
line : 1,
|
|
237
|
+
tokline : 0,
|
|
238
|
+
col : 0,
|
|
239
|
+
tokcol : 0,
|
|
240
|
+
newline_before : false,
|
|
241
|
+
regex_allowed : false,
|
|
242
|
+
comments_before : [],
|
|
243
|
+
directives : Object.create(null),
|
|
244
|
+
read_template : with_eof_error("Unterminated template literal", function(strings) {
|
|
245
|
+
var s = "";
|
|
246
|
+
for (;;) {
|
|
247
|
+
var ch = read();
|
|
248
|
+
switch (ch) {
|
|
249
|
+
case "\\":
|
|
250
|
+
ch += read();
|
|
251
|
+
break;
|
|
252
|
+
case "`":
|
|
253
|
+
strings.push(s);
|
|
254
|
+
return;
|
|
255
|
+
case "$":
|
|
256
|
+
if (peek() == "{") {
|
|
257
|
+
next();
|
|
258
|
+
strings.push(s);
|
|
259
|
+
S.regex_allowed = true;
|
|
260
|
+
return true;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
s += ch;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
function read() {
|
|
267
|
+
var ch = next(true, true);
|
|
268
|
+
return ch == "\r" ? "\n" : ch;
|
|
269
|
+
}
|
|
270
|
+
}),
|
|
271
|
+
};
|
|
272
|
+
var prev_was_dot = false;
|
|
273
|
+
|
|
274
|
+
function peek() {
|
|
275
|
+
return S.text.charAt(S.pos);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
function next(signal_eof, in_string) {
|
|
279
|
+
var ch = S.text.charAt(S.pos++);
|
|
280
|
+
if (signal_eof && !ch)
|
|
281
|
+
throw EX_EOF;
|
|
282
|
+
if (NEWLINE_CHARS[ch]) {
|
|
283
|
+
S.col = 0;
|
|
284
|
+
S.line++;
|
|
285
|
+
if (!in_string) S.newline_before = true;
|
|
286
|
+
if (ch == "\r" && peek() == "\n") {
|
|
287
|
+
// treat `\r\n` as `\n`
|
|
288
|
+
S.pos++;
|
|
289
|
+
ch = "\n";
|
|
290
|
+
}
|
|
291
|
+
} else {
|
|
292
|
+
S.col++;
|
|
293
|
+
}
|
|
294
|
+
return ch;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
function forward(i) {
|
|
298
|
+
while (i-- > 0) next();
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
function looking_at(str) {
|
|
302
|
+
return S.text.substr(S.pos, str.length) == str;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
function find_eol() {
|
|
306
|
+
var text = S.text;
|
|
307
|
+
for (var i = S.pos; i < S.text.length; ++i) {
|
|
308
|
+
if (NEWLINE_CHARS[text[i]]) return i;
|
|
309
|
+
}
|
|
310
|
+
return -1;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
function find(what, signal_eof) {
|
|
314
|
+
var pos = S.text.indexOf(what, S.pos);
|
|
315
|
+
if (signal_eof && pos == -1) throw EX_EOF;
|
|
316
|
+
return pos;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
function start_token() {
|
|
320
|
+
S.tokline = S.line;
|
|
321
|
+
S.tokcol = S.col;
|
|
322
|
+
S.tokpos = S.pos;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
function token(type, value, is_comment) {
|
|
326
|
+
S.regex_allowed = type == "operator" && !UNARY_POSTFIX[value]
|
|
327
|
+
|| type == "keyword" && KEYWORDS_BEFORE_EXPRESSION[value]
|
|
328
|
+
|| type == "punc" && PUNC_BEFORE_EXPRESSION[value];
|
|
329
|
+
if (type == "punc" && value == ".") prev_was_dot = true;
|
|
330
|
+
else if (!is_comment) prev_was_dot = false;
|
|
331
|
+
var ret = {
|
|
332
|
+
type : type,
|
|
333
|
+
value : value,
|
|
334
|
+
line : S.tokline,
|
|
335
|
+
col : S.tokcol,
|
|
336
|
+
pos : S.tokpos,
|
|
337
|
+
endline : S.line,
|
|
338
|
+
endcol : S.col,
|
|
339
|
+
endpos : S.pos,
|
|
340
|
+
nlb : S.newline_before,
|
|
341
|
+
file : filename
|
|
342
|
+
};
|
|
343
|
+
if (/^(?:num|string|regexp)$/i.test(type)) {
|
|
344
|
+
ret.raw = $TEXT.substring(ret.pos, ret.endpos);
|
|
345
|
+
}
|
|
346
|
+
if (!is_comment) {
|
|
347
|
+
ret.comments_before = S.comments_before;
|
|
348
|
+
ret.comments_after = S.comments_before = [];
|
|
349
|
+
}
|
|
350
|
+
S.newline_before = false;
|
|
351
|
+
return new AST_Token(ret);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
function skip_whitespace() {
|
|
355
|
+
while (WHITESPACE_CHARS[peek()])
|
|
356
|
+
next();
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
function read_while(pred) {
|
|
360
|
+
var ret = "", ch;
|
|
361
|
+
while ((ch = peek()) && pred(ch, ret)) ret += next();
|
|
362
|
+
return ret;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
function parse_error(err) {
|
|
366
|
+
js_error(err, filename, S.tokline, S.tokcol, S.tokpos);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
function is_octal(num) {
|
|
370
|
+
return /^0[0-7_]+$/.test(num);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
function read_num(prefix) {
|
|
374
|
+
var has_e = false, after_e = false, has_x = false, has_dot = prefix == ".";
|
|
375
|
+
var num = read_while(function(ch, str) {
|
|
376
|
+
switch (ch) {
|
|
377
|
+
case "x": case "X":
|
|
378
|
+
return has_x ? false : (has_x = true);
|
|
379
|
+
case "e": case "E":
|
|
380
|
+
return has_x ? true : has_e ? false : (has_e = after_e = true);
|
|
381
|
+
case "+": case "-":
|
|
382
|
+
return after_e;
|
|
383
|
+
case (after_e = false, "."):
|
|
384
|
+
return has_dot || has_e || has_x || is_octal(str) ? false : (has_dot = true);
|
|
385
|
+
}
|
|
386
|
+
return /[_0-9a-dfo]/i.test(ch);
|
|
387
|
+
});
|
|
388
|
+
if (prefix) num = prefix + num;
|
|
389
|
+
if (is_octal(num)) {
|
|
390
|
+
if (next_token.has_directive("use strict")) parse_error("Legacy octal literals are not allowed in strict mode");
|
|
391
|
+
} else {
|
|
392
|
+
num = num.replace(has_x ? /([1-9a-f]|.0)_(?=[0-9a-f])/gi : /([1-9]|.0)_(?=[0-9])/gi, "$1");
|
|
393
|
+
}
|
|
394
|
+
var valid = parse_js_number(num);
|
|
395
|
+
if (isNaN(valid)) parse_error("Invalid syntax: " + num);
|
|
396
|
+
if (has_dot || has_e || peek() != "n") return token("num", valid);
|
|
397
|
+
next();
|
|
398
|
+
return token("bigint", num.toLowerCase());
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
function read_escaped_char(in_string) {
|
|
402
|
+
var seq = next(true, in_string);
|
|
403
|
+
if (seq >= "0" && seq <= "7") return read_octal_escape_sequence(seq);
|
|
404
|
+
if (seq == "u") {
|
|
405
|
+
var ch = next(true, in_string);
|
|
406
|
+
seq += ch;
|
|
407
|
+
if (ch != "{") {
|
|
408
|
+
seq += next(true, in_string) + next(true, in_string) + next(true, in_string);
|
|
409
|
+
} else do {
|
|
410
|
+
ch = next(true, in_string);
|
|
411
|
+
seq += ch;
|
|
412
|
+
} while (ch != "}");
|
|
413
|
+
} else if (seq == "x") {
|
|
414
|
+
seq += next(true, in_string) + next(true, in_string);
|
|
415
|
+
}
|
|
416
|
+
var str = decode_escape_sequence(seq);
|
|
417
|
+
if (typeof str != "string") parse_error("Invalid escape sequence: \\" + seq);
|
|
418
|
+
return str;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
function read_octal_escape_sequence(ch) {
|
|
422
|
+
// Read
|
|
423
|
+
var p = peek();
|
|
424
|
+
if (p >= "0" && p <= "7") {
|
|
425
|
+
ch += next(true);
|
|
426
|
+
if (ch[0] <= "3" && (p = peek()) >= "0" && p <= "7")
|
|
427
|
+
ch += next(true);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
// Parse
|
|
431
|
+
if (ch === "0") return "\0";
|
|
432
|
+
if (ch.length > 0 && next_token.has_directive("use strict"))
|
|
433
|
+
parse_error("Legacy octal escape sequences are not allowed in strict mode");
|
|
434
|
+
return String.fromCharCode(parseInt(ch, 8));
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
var read_string = with_eof_error("Unterminated string constant", function(quote_char) {
|
|
438
|
+
var quote = next(), ret = "";
|
|
439
|
+
for (;;) {
|
|
440
|
+
var ch = next(true, true);
|
|
441
|
+
if (ch == "\\") ch = read_escaped_char(true);
|
|
442
|
+
else if (NEWLINE_CHARS[ch]) parse_error("Unterminated string constant");
|
|
443
|
+
else if (ch == quote) break;
|
|
444
|
+
ret += ch;
|
|
445
|
+
}
|
|
446
|
+
var tok = token("string", ret);
|
|
447
|
+
tok.quote = quote_char;
|
|
448
|
+
return tok;
|
|
449
|
+
});
|
|
450
|
+
|
|
451
|
+
function skip_line_comment(type) {
|
|
452
|
+
var regex_allowed = S.regex_allowed;
|
|
453
|
+
var i = find_eol(), ret;
|
|
454
|
+
if (i == -1) {
|
|
455
|
+
ret = S.text.substr(S.pos);
|
|
456
|
+
S.pos = S.text.length;
|
|
457
|
+
} else {
|
|
458
|
+
ret = S.text.substring(S.pos, i);
|
|
459
|
+
S.pos = i;
|
|
460
|
+
}
|
|
461
|
+
S.col = S.tokcol + (S.pos - S.tokpos);
|
|
462
|
+
S.comments_before.push(token(type, ret, true));
|
|
463
|
+
S.regex_allowed = regex_allowed;
|
|
464
|
+
return next_token;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
var skip_multiline_comment = with_eof_error("Unterminated multiline comment", function() {
|
|
468
|
+
var regex_allowed = S.regex_allowed;
|
|
469
|
+
var i = find("*/", true);
|
|
470
|
+
var text = S.text.substring(S.pos, i).replace(/\r\n|\r|\u2028|\u2029/g, "\n");
|
|
471
|
+
// update stream position
|
|
472
|
+
forward(text.length /* doesn't count \r\n as 2 char while S.pos - i does */ + 2);
|
|
473
|
+
S.comments_before.push(token("comment2", text, true));
|
|
474
|
+
S.regex_allowed = regex_allowed;
|
|
475
|
+
return next_token;
|
|
476
|
+
});
|
|
477
|
+
|
|
478
|
+
function read_name() {
|
|
479
|
+
var backslash = false, ch, escaped = false, name = peek() == "#" ? next() : "";
|
|
480
|
+
while (ch = peek()) {
|
|
481
|
+
if (!backslash) {
|
|
482
|
+
if (ch == "\\") escaped = backslash = true, next();
|
|
483
|
+
else if (is_identifier_char(ch)) name += next();
|
|
484
|
+
else break;
|
|
485
|
+
} else {
|
|
486
|
+
if (ch != "u") parse_error("Expecting UnicodeEscapeSequence -- uXXXX");
|
|
487
|
+
ch = read_escaped_char();
|
|
488
|
+
if (!is_identifier_char(ch)) parse_error("Unicode char: " + ch.charCodeAt(0) + " is not valid in identifier");
|
|
489
|
+
name += ch;
|
|
490
|
+
backslash = false;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
if (KEYWORDS[name] && escaped) {
|
|
494
|
+
var hex = name.charCodeAt(0).toString(16).toUpperCase();
|
|
495
|
+
name = "\\u" + "0000".substr(hex.length) + hex + name.slice(1);
|
|
496
|
+
}
|
|
497
|
+
return name;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
var read_regexp = with_eof_error("Unterminated regular expression", function(source) {
|
|
501
|
+
var prev_backslash = false, ch, in_class = false;
|
|
502
|
+
while ((ch = next(true))) if (NEWLINE_CHARS[ch]) {
|
|
503
|
+
parse_error("Unexpected line terminator");
|
|
504
|
+
} else if (prev_backslash) {
|
|
505
|
+
source += "\\" + ch;
|
|
506
|
+
prev_backslash = false;
|
|
507
|
+
} else if (ch == "[") {
|
|
508
|
+
in_class = true;
|
|
509
|
+
source += ch;
|
|
510
|
+
} else if (ch == "]" && in_class) {
|
|
511
|
+
in_class = false;
|
|
512
|
+
source += ch;
|
|
513
|
+
} else if (ch == "/" && !in_class) {
|
|
514
|
+
break;
|
|
515
|
+
} else if (ch == "\\") {
|
|
516
|
+
prev_backslash = true;
|
|
517
|
+
} else {
|
|
518
|
+
source += ch;
|
|
519
|
+
}
|
|
520
|
+
var mods = read_name();
|
|
521
|
+
try {
|
|
522
|
+
var regexp = new RegExp(source, mods);
|
|
523
|
+
regexp.raw_source = source;
|
|
524
|
+
return token("regexp", regexp);
|
|
525
|
+
} catch (e) {
|
|
526
|
+
parse_error(e.message);
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
|
|
530
|
+
function read_operator(prefix) {
|
|
531
|
+
function grow(op) {
|
|
532
|
+
if (!peek()) return op;
|
|
533
|
+
var bigger = op + peek();
|
|
534
|
+
if (OPERATORS[bigger]) {
|
|
535
|
+
next();
|
|
536
|
+
return grow(bigger);
|
|
537
|
+
} else {
|
|
538
|
+
return op;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
return token("operator", grow(prefix || next()));
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
function handle_slash() {
|
|
545
|
+
next();
|
|
546
|
+
switch (peek()) {
|
|
547
|
+
case "/":
|
|
548
|
+
next();
|
|
549
|
+
return skip_line_comment("comment1");
|
|
550
|
+
case "*":
|
|
551
|
+
next();
|
|
552
|
+
return skip_multiline_comment();
|
|
553
|
+
}
|
|
554
|
+
return S.regex_allowed ? read_regexp("") : read_operator("/");
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
function handle_dot() {
|
|
558
|
+
next();
|
|
559
|
+
if (looking_at("..")) return token("operator", "." + next() + next());
|
|
560
|
+
return is_digit(peek().charCodeAt(0)) ? read_num(".") : token("punc", ".");
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
function read_word() {
|
|
564
|
+
var word = read_name();
|
|
565
|
+
if (prev_was_dot) return token("name", word);
|
|
566
|
+
return KEYWORDS_ATOM[word] ? token("atom", word)
|
|
567
|
+
: !KEYWORDS[word] ? token("name", word)
|
|
568
|
+
: OPERATORS[word] ? token("operator", word)
|
|
569
|
+
: token("keyword", word);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
function with_eof_error(eof_error, cont) {
|
|
573
|
+
return function(x) {
|
|
574
|
+
try {
|
|
575
|
+
return cont(x);
|
|
576
|
+
} catch (ex) {
|
|
577
|
+
if (ex === EX_EOF) parse_error(eof_error);
|
|
578
|
+
else throw ex;
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
function next_token(force_regexp) {
|
|
584
|
+
if (force_regexp != null)
|
|
585
|
+
return read_regexp(force_regexp);
|
|
586
|
+
if (shebang && S.pos == 0 && looking_at("#!")) {
|
|
587
|
+
start_token();
|
|
588
|
+
forward(2);
|
|
589
|
+
skip_line_comment("comment5");
|
|
590
|
+
}
|
|
591
|
+
for (;;) {
|
|
592
|
+
skip_whitespace();
|
|
593
|
+
start_token();
|
|
594
|
+
if (html5_comments) {
|
|
595
|
+
if (looking_at("<!--")) {
|
|
596
|
+
forward(4);
|
|
597
|
+
skip_line_comment("comment3");
|
|
598
|
+
continue;
|
|
599
|
+
}
|
|
600
|
+
if (looking_at("-->") && S.newline_before) {
|
|
601
|
+
forward(3);
|
|
602
|
+
skip_line_comment("comment4");
|
|
603
|
+
continue;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
var ch = peek();
|
|
607
|
+
if (!ch) return token("eof");
|
|
608
|
+
var code = ch.charCodeAt(0);
|
|
609
|
+
switch (code) {
|
|
610
|
+
case 34: case 39: return read_string(ch);
|
|
611
|
+
case 46: return handle_dot();
|
|
612
|
+
case 47:
|
|
613
|
+
var tok = handle_slash();
|
|
614
|
+
if (tok === next_token) continue;
|
|
615
|
+
return tok;
|
|
616
|
+
}
|
|
617
|
+
if (is_digit(code)) return read_num();
|
|
618
|
+
if (PUNC_CHARS[ch]) return token("punc", next());
|
|
619
|
+
if (looking_at("=>")) return token("punc", next() + next());
|
|
620
|
+
if (OPERATOR_CHARS[ch]) return read_operator();
|
|
621
|
+
if (code == 35 || code == 92 || !NON_IDENTIFIER_CHARS[ch]) return read_word();
|
|
622
|
+
break;
|
|
623
|
+
}
|
|
624
|
+
parse_error("Unexpected character '" + ch + "'");
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
next_token.context = function(nc) {
|
|
628
|
+
if (nc) S = nc;
|
|
629
|
+
return S;
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
next_token.add_directive = function(directive) {
|
|
633
|
+
S.directives[directive] = true;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
next_token.push_directives_stack = function() {
|
|
637
|
+
S.directives = Object.create(S.directives);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
next_token.pop_directives_stack = function() {
|
|
641
|
+
S.directives = Object.getPrototypeOf(S.directives);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
next_token.has_directive = function(directive) {
|
|
645
|
+
return !!S.directives[directive];
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
return next_token;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/* -----[ Parser (constants) ]----- */
|
|
652
|
+
|
|
653
|
+
var UNARY_PREFIX = makePredicate("typeof void delete -- ++ ! ~ - +");
|
|
654
|
+
|
|
655
|
+
var UNARY_POSTFIX = makePredicate("-- ++");
|
|
656
|
+
|
|
657
|
+
var ASSIGNMENT = makePredicate("= += -= /= *= %= **= >>= <<= >>>= &= |= ^= &&= ||= ??=");
|
|
658
|
+
|
|
659
|
+
var PRECEDENCE = function(a, ret) {
|
|
660
|
+
for (var i = 0; i < a.length;) {
|
|
661
|
+
var b = a[i++];
|
|
662
|
+
for (var j = 0; j < b.length; j++) {
|
|
663
|
+
ret[b[j]] = i;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
return ret;
|
|
667
|
+
}([
|
|
668
|
+
["??"],
|
|
669
|
+
["||"],
|
|
670
|
+
["&&"],
|
|
671
|
+
["|"],
|
|
672
|
+
["^"],
|
|
673
|
+
["&"],
|
|
674
|
+
["==", "===", "!=", "!=="],
|
|
675
|
+
["<", ">", "<=", ">=", "in", "instanceof"],
|
|
676
|
+
[">>", "<<", ">>>"],
|
|
677
|
+
["+", "-"],
|
|
678
|
+
["*", "/", "%"],
|
|
679
|
+
["**"],
|
|
680
|
+
], {});
|
|
681
|
+
|
|
682
|
+
var ATOMIC_START_TOKEN = makePredicate("atom bigint num regexp string");
|
|
683
|
+
|
|
684
|
+
/* -----[ Parser ]----- */
|
|
685
|
+
|
|
686
|
+
function parse($TEXT, options) {
|
|
687
|
+
options = defaults(options, {
|
|
688
|
+
bare_returns : false,
|
|
689
|
+
expression : false,
|
|
690
|
+
filename : null,
|
|
691
|
+
html5_comments : true,
|
|
692
|
+
module : false,
|
|
693
|
+
shebang : true,
|
|
694
|
+
strict : false,
|
|
695
|
+
toplevel : null,
|
|
696
|
+
}, true);
|
|
697
|
+
|
|
698
|
+
var S = {
|
|
699
|
+
input : typeof $TEXT == "string"
|
|
700
|
+
? tokenizer($TEXT, options.filename, options.html5_comments, options.shebang)
|
|
701
|
+
: $TEXT,
|
|
702
|
+
in_async : false,
|
|
703
|
+
in_directives : true,
|
|
704
|
+
in_funarg : -1,
|
|
705
|
+
in_function : 0,
|
|
706
|
+
in_generator : false,
|
|
707
|
+
in_loop : 0,
|
|
708
|
+
labels : [],
|
|
709
|
+
peeked : null,
|
|
710
|
+
prev : null,
|
|
711
|
+
token : null,
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
S.token = next();
|
|
715
|
+
|
|
716
|
+
function is(type, value) {
|
|
717
|
+
return is_token(S.token, type, value);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
function peek() {
|
|
721
|
+
return S.peeked || (S.peeked = S.input());
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
function next() {
|
|
725
|
+
S.prev = S.token;
|
|
726
|
+
if (S.peeked) {
|
|
727
|
+
S.token = S.peeked;
|
|
728
|
+
S.peeked = null;
|
|
729
|
+
} else {
|
|
730
|
+
S.token = S.input();
|
|
731
|
+
}
|
|
732
|
+
S.in_directives = S.in_directives && (
|
|
733
|
+
S.token.type == "string" || is("punc", ";")
|
|
734
|
+
);
|
|
735
|
+
return S.token;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
function prev() {
|
|
739
|
+
return S.prev;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
function croak(msg, line, col, pos) {
|
|
743
|
+
var ctx = S.input.context();
|
|
744
|
+
js_error(msg,
|
|
745
|
+
ctx.filename,
|
|
746
|
+
line != null ? line : ctx.tokline,
|
|
747
|
+
col != null ? col : ctx.tokcol,
|
|
748
|
+
pos != null ? pos : ctx.tokpos);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
function token_error(token, msg) {
|
|
752
|
+
croak(msg, token.line, token.col);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
function token_to_string(type, value) {
|
|
756
|
+
return type + (value === undefined ? "" : " «" + value + "»");
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
function unexpected(token) {
|
|
760
|
+
if (token == null) token = S.token;
|
|
761
|
+
token_error(token, "Unexpected token: " + token_to_string(token.type, token.value));
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
function expect_token(type, val) {
|
|
765
|
+
if (is(type, val)) return next();
|
|
766
|
+
token_error(S.token, "Unexpected token: " + token_to_string(S.token.type, S.token.value) + ", expected: " + token_to_string(type, val));
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
function expect(punc) {
|
|
770
|
+
return expect_token("punc", punc);
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
function has_newline_before(token) {
|
|
774
|
+
return token.nlb || !all(token.comments_before, function(comment) {
|
|
775
|
+
return !comment.nlb;
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
function can_insert_semicolon() {
|
|
780
|
+
return !options.strict
|
|
781
|
+
&& (is("eof") || is("punc", "}") || has_newline_before(S.token));
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
function semicolon(optional) {
|
|
785
|
+
if (is("punc", ";")) next();
|
|
786
|
+
else if (!optional && !can_insert_semicolon()) expect(";");
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
function parenthesized() {
|
|
790
|
+
expect("(");
|
|
791
|
+
var exp = expression();
|
|
792
|
+
expect(")");
|
|
793
|
+
return exp;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
function embed_tokens(parser) {
|
|
797
|
+
return function() {
|
|
798
|
+
var start = S.token;
|
|
799
|
+
var expr = parser.apply(null, arguments);
|
|
800
|
+
var end = prev();
|
|
801
|
+
expr.start = start;
|
|
802
|
+
expr.end = end;
|
|
803
|
+
return expr;
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
function handle_regexp() {
|
|
808
|
+
if (is("operator", "/") || is("operator", "/=")) {
|
|
809
|
+
S.peeked = null;
|
|
810
|
+
S.token = S.input(S.token.value.substr(1)); // force regexp
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
var statement = embed_tokens(function(toplevel) {
|
|
815
|
+
handle_regexp();
|
|
816
|
+
switch (S.token.type) {
|
|
817
|
+
case "string":
|
|
818
|
+
var dir = S.in_directives;
|
|
819
|
+
var body = expression();
|
|
820
|
+
if (dir) {
|
|
821
|
+
if (body instanceof AST_String) {
|
|
822
|
+
var value = body.start.raw.slice(1, -1);
|
|
823
|
+
S.input.add_directive(value);
|
|
824
|
+
body.value = value;
|
|
825
|
+
} else {
|
|
826
|
+
S.in_directives = dir = false;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
semicolon();
|
|
830
|
+
return dir ? new AST_Directive(body) : new AST_SimpleStatement({ body: body });
|
|
831
|
+
case "num":
|
|
832
|
+
case "bigint":
|
|
833
|
+
case "regexp":
|
|
834
|
+
case "operator":
|
|
835
|
+
case "atom":
|
|
836
|
+
return simple_statement();
|
|
837
|
+
|
|
838
|
+
case "name":
|
|
839
|
+
switch (S.token.value) {
|
|
840
|
+
case "async":
|
|
841
|
+
if (is_token(peek(), "keyword", "function")) {
|
|
842
|
+
next();
|
|
843
|
+
next();
|
|
844
|
+
if (!is("operator", "*")) return function_(AST_AsyncDefun);
|
|
845
|
+
next();
|
|
846
|
+
return function_(AST_AsyncGeneratorDefun);
|
|
847
|
+
}
|
|
848
|
+
break;
|
|
849
|
+
case "await":
|
|
850
|
+
if (S.in_async) return simple_statement();
|
|
851
|
+
break;
|
|
852
|
+
case "export":
|
|
853
|
+
if (!toplevel && options.module !== "") unexpected();
|
|
854
|
+
next();
|
|
855
|
+
return export_();
|
|
856
|
+
case "import":
|
|
857
|
+
var token = peek();
|
|
858
|
+
if (token.type == "punc" && /^[(.]$/.test(token.value)) break;
|
|
859
|
+
if (!toplevel && options.module !== "") unexpected();
|
|
860
|
+
next();
|
|
861
|
+
return import_();
|
|
862
|
+
case "let":
|
|
863
|
+
if (is_vardefs()) {
|
|
864
|
+
next();
|
|
865
|
+
var node = let_();
|
|
866
|
+
semicolon();
|
|
867
|
+
return node;
|
|
868
|
+
}
|
|
869
|
+
break;
|
|
870
|
+
case "yield":
|
|
871
|
+
if (S.in_generator) return simple_statement();
|
|
872
|
+
break;
|
|
873
|
+
}
|
|
874
|
+
return is_token(peek(), "punc", ":")
|
|
875
|
+
? labeled_statement()
|
|
876
|
+
: simple_statement();
|
|
877
|
+
|
|
878
|
+
case "punc":
|
|
879
|
+
switch (S.token.value) {
|
|
880
|
+
case "{":
|
|
881
|
+
return new AST_BlockStatement({
|
|
882
|
+
start : S.token,
|
|
883
|
+
body : block_(),
|
|
884
|
+
end : prev()
|
|
885
|
+
});
|
|
886
|
+
case "[":
|
|
887
|
+
case "(":
|
|
888
|
+
case "`":
|
|
889
|
+
return simple_statement();
|
|
890
|
+
case ";":
|
|
891
|
+
S.in_directives = false;
|
|
892
|
+
next();
|
|
893
|
+
return new AST_EmptyStatement();
|
|
894
|
+
default:
|
|
895
|
+
unexpected();
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
case "keyword":
|
|
899
|
+
switch (S.token.value) {
|
|
900
|
+
case "break":
|
|
901
|
+
next();
|
|
902
|
+
return break_cont(AST_Break);
|
|
903
|
+
|
|
904
|
+
case "class":
|
|
905
|
+
next();
|
|
906
|
+
return class_(AST_DefClass);
|
|
907
|
+
|
|
908
|
+
case "const":
|
|
909
|
+
next();
|
|
910
|
+
var node = const_();
|
|
911
|
+
semicolon();
|
|
912
|
+
return node;
|
|
913
|
+
|
|
914
|
+
case "continue":
|
|
915
|
+
next();
|
|
916
|
+
return break_cont(AST_Continue);
|
|
917
|
+
|
|
918
|
+
case "debugger":
|
|
919
|
+
next();
|
|
920
|
+
semicolon();
|
|
921
|
+
return new AST_Debugger();
|
|
922
|
+
|
|
923
|
+
case "do":
|
|
924
|
+
next();
|
|
925
|
+
var body = in_loop(statement);
|
|
926
|
+
expect_token("keyword", "while");
|
|
927
|
+
var condition = parenthesized();
|
|
928
|
+
semicolon(true);
|
|
929
|
+
return new AST_Do({
|
|
930
|
+
body : body,
|
|
931
|
+
condition : condition,
|
|
932
|
+
});
|
|
933
|
+
|
|
934
|
+
case "while":
|
|
935
|
+
next();
|
|
936
|
+
return new AST_While({
|
|
937
|
+
condition : parenthesized(),
|
|
938
|
+
body : in_loop(statement),
|
|
939
|
+
});
|
|
940
|
+
|
|
941
|
+
case "for":
|
|
942
|
+
next();
|
|
943
|
+
return for_();
|
|
944
|
+
|
|
945
|
+
case "function":
|
|
946
|
+
next();
|
|
947
|
+
if (!is("operator", "*")) return function_(AST_Defun);
|
|
948
|
+
next();
|
|
949
|
+
return function_(AST_GeneratorDefun);
|
|
950
|
+
|
|
951
|
+
case "if":
|
|
952
|
+
next();
|
|
953
|
+
return if_();
|
|
954
|
+
|
|
955
|
+
case "return":
|
|
956
|
+
if (S.in_function == 0 && !options.bare_returns)
|
|
957
|
+
croak("'return' outside of function");
|
|
958
|
+
next();
|
|
959
|
+
var value = null;
|
|
960
|
+
if (is("punc", ";")) {
|
|
961
|
+
next();
|
|
962
|
+
} else if (!can_insert_semicolon()) {
|
|
963
|
+
value = expression();
|
|
964
|
+
semicolon();
|
|
965
|
+
}
|
|
966
|
+
return new AST_Return({ value: value });
|
|
967
|
+
|
|
968
|
+
case "switch":
|
|
969
|
+
next();
|
|
970
|
+
return new AST_Switch({
|
|
971
|
+
expression : parenthesized(),
|
|
972
|
+
body : in_loop(switch_body_),
|
|
973
|
+
});
|
|
974
|
+
|
|
975
|
+
case "throw":
|
|
976
|
+
next();
|
|
977
|
+
if (has_newline_before(S.token))
|
|
978
|
+
croak("Illegal newline after 'throw'");
|
|
979
|
+
var value = expression();
|
|
980
|
+
semicolon();
|
|
981
|
+
return new AST_Throw({ value: value });
|
|
982
|
+
|
|
983
|
+
case "try":
|
|
984
|
+
next();
|
|
985
|
+
return try_();
|
|
986
|
+
|
|
987
|
+
case "var":
|
|
988
|
+
next();
|
|
989
|
+
var node = var_();
|
|
990
|
+
semicolon();
|
|
991
|
+
return node;
|
|
992
|
+
|
|
993
|
+
case "with":
|
|
994
|
+
if (S.input.has_directive("use strict")) {
|
|
995
|
+
croak("Strict mode may not include a with statement");
|
|
996
|
+
}
|
|
997
|
+
next();
|
|
998
|
+
return new AST_With({
|
|
999
|
+
expression : parenthesized(),
|
|
1000
|
+
body : statement(),
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
unexpected();
|
|
1005
|
+
});
|
|
1006
|
+
|
|
1007
|
+
function labeled_statement() {
|
|
1008
|
+
var label = as_symbol(AST_Label);
|
|
1009
|
+
if (!all(S.labels, function(l) {
|
|
1010
|
+
return l.name != label.name;
|
|
1011
|
+
})) {
|
|
1012
|
+
// ECMA-262, 12.12: An ECMAScript program is considered
|
|
1013
|
+
// syntactically incorrect if it contains a
|
|
1014
|
+
// LabelledStatement that is enclosed by a
|
|
1015
|
+
// LabelledStatement with the same Identifier as label.
|
|
1016
|
+
croak("Label " + label.name + " defined twice");
|
|
1017
|
+
}
|
|
1018
|
+
expect(":");
|
|
1019
|
+
S.labels.push(label);
|
|
1020
|
+
var stat = statement();
|
|
1021
|
+
S.labels.pop();
|
|
1022
|
+
if (!(stat instanceof AST_IterationStatement)) {
|
|
1023
|
+
// check for `continue` that refers to this label.
|
|
1024
|
+
// those should be reported as syntax errors.
|
|
1025
|
+
// https://github.com/mishoo/UglifyJS/issues/287
|
|
1026
|
+
label.references.forEach(function(ref) {
|
|
1027
|
+
if (ref instanceof AST_Continue) {
|
|
1028
|
+
token_error(ref.label.start, "Continue label `" + label.name + "` must refer to IterationStatement");
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
return new AST_LabeledStatement({ body: stat, label: label });
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
function simple_statement() {
|
|
1036
|
+
var body = expression();
|
|
1037
|
+
semicolon();
|
|
1038
|
+
return new AST_SimpleStatement({ body: body });
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
function break_cont(type) {
|
|
1042
|
+
var label = null, ldef;
|
|
1043
|
+
if (!can_insert_semicolon()) {
|
|
1044
|
+
label = as_symbol(AST_LabelRef, true);
|
|
1045
|
+
}
|
|
1046
|
+
if (label != null) {
|
|
1047
|
+
ldef = find_if(function(l) {
|
|
1048
|
+
return l.name == label.name;
|
|
1049
|
+
}, S.labels);
|
|
1050
|
+
if (!ldef) token_error(label.start, "Undefined label " + label.name);
|
|
1051
|
+
label.thedef = ldef;
|
|
1052
|
+
} else if (S.in_loop == 0) croak(type.TYPE + " not inside a loop or switch");
|
|
1053
|
+
semicolon();
|
|
1054
|
+
var stat = new type({ label: label });
|
|
1055
|
+
if (ldef) ldef.references.push(stat);
|
|
1056
|
+
return stat;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
function has_modifier(name, no_nlb) {
|
|
1060
|
+
if (!is("name", name)) return;
|
|
1061
|
+
var token = peek();
|
|
1062
|
+
if (!token) return;
|
|
1063
|
+
if (is_token(token, "operator", "=")) return;
|
|
1064
|
+
if (token.type == "punc" && /^[(;}]$/.test(token.value)) return;
|
|
1065
|
+
if (no_nlb && has_newline_before(token)) return;
|
|
1066
|
+
return next();
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
function class_(ctor) {
|
|
1070
|
+
var was_async = S.in_async;
|
|
1071
|
+
var was_gen = S.in_generator;
|
|
1072
|
+
S.input.push_directives_stack();
|
|
1073
|
+
S.input.add_directive("use strict");
|
|
1074
|
+
var name;
|
|
1075
|
+
if (ctor === AST_DefClass) {
|
|
1076
|
+
name = as_symbol(AST_SymbolDefClass);
|
|
1077
|
+
} else {
|
|
1078
|
+
name = as_symbol(AST_SymbolClass, true);
|
|
1079
|
+
}
|
|
1080
|
+
var parent = null;
|
|
1081
|
+
if (is("keyword", "extends")) {
|
|
1082
|
+
next();
|
|
1083
|
+
handle_regexp();
|
|
1084
|
+
parent = expr_atom(true);
|
|
1085
|
+
}
|
|
1086
|
+
expect("{");
|
|
1087
|
+
var props = [];
|
|
1088
|
+
while (!is("punc", "}")) {
|
|
1089
|
+
if (is("punc", ";")) {
|
|
1090
|
+
next();
|
|
1091
|
+
continue;
|
|
1092
|
+
}
|
|
1093
|
+
var start = S.token;
|
|
1094
|
+
var fixed = !!has_modifier("static");
|
|
1095
|
+
var async = has_modifier("async", true);
|
|
1096
|
+
if (is("operator", "*")) {
|
|
1097
|
+
next();
|
|
1098
|
+
var internal = is("name") && /^#/.test(S.token.value);
|
|
1099
|
+
var key = as_property_key();
|
|
1100
|
+
var gen_start = S.token;
|
|
1101
|
+
var gen = function_(async ? AST_AsyncGeneratorFunction : AST_GeneratorFunction);
|
|
1102
|
+
gen.start = gen_start;
|
|
1103
|
+
gen.end = prev();
|
|
1104
|
+
props.push(new AST_ClassMethod({
|
|
1105
|
+
start: start,
|
|
1106
|
+
static: fixed,
|
|
1107
|
+
private: internal,
|
|
1108
|
+
key: key,
|
|
1109
|
+
value: gen,
|
|
1110
|
+
end: prev(),
|
|
1111
|
+
}));
|
|
1112
|
+
continue;
|
|
1113
|
+
}
|
|
1114
|
+
if (fixed && is("punc", "{")) {
|
|
1115
|
+
props.push(new AST_ClassInit({
|
|
1116
|
+
start: start,
|
|
1117
|
+
value: new AST_ClassInitBlock({
|
|
1118
|
+
start: start,
|
|
1119
|
+
body: block_(),
|
|
1120
|
+
end: prev(),
|
|
1121
|
+
}),
|
|
1122
|
+
end: prev(),
|
|
1123
|
+
}));
|
|
1124
|
+
continue;
|
|
1125
|
+
}
|
|
1126
|
+
var internal = is("name") && /^#/.test(S.token.value);
|
|
1127
|
+
var key = as_property_key();
|
|
1128
|
+
if (is("punc", "(")) {
|
|
1129
|
+
var func_start = S.token;
|
|
1130
|
+
var func = function_(async ? AST_AsyncFunction : AST_Function);
|
|
1131
|
+
func.start = func_start;
|
|
1132
|
+
func.end = prev();
|
|
1133
|
+
props.push(new AST_ClassMethod({
|
|
1134
|
+
start: start,
|
|
1135
|
+
static: fixed,
|
|
1136
|
+
private: internal,
|
|
1137
|
+
key: key,
|
|
1138
|
+
value: func,
|
|
1139
|
+
end: prev(),
|
|
1140
|
+
}));
|
|
1141
|
+
continue;
|
|
1142
|
+
}
|
|
1143
|
+
if (async) unexpected(async);
|
|
1144
|
+
var value = null;
|
|
1145
|
+
if (is("operator", "=")) {
|
|
1146
|
+
next();
|
|
1147
|
+
S.in_async = false;
|
|
1148
|
+
S.in_generator = false;
|
|
1149
|
+
value = maybe_assign();
|
|
1150
|
+
S.in_generator = was_gen;
|
|
1151
|
+
S.in_async = was_async;
|
|
1152
|
+
} else if (!(is("punc", ";") || is("punc", "}"))) {
|
|
1153
|
+
var type = null;
|
|
1154
|
+
switch (key) {
|
|
1155
|
+
case "get":
|
|
1156
|
+
type = AST_ClassGetter;
|
|
1157
|
+
break;
|
|
1158
|
+
case "set":
|
|
1159
|
+
type = AST_ClassSetter;
|
|
1160
|
+
break;
|
|
1161
|
+
}
|
|
1162
|
+
if (type) {
|
|
1163
|
+
props.push(new type({
|
|
1164
|
+
start: start,
|
|
1165
|
+
static: fixed,
|
|
1166
|
+
private: is("name") && /^#/.test(S.token.value),
|
|
1167
|
+
key: as_property_key(),
|
|
1168
|
+
value: create_accessor(),
|
|
1169
|
+
end: prev(),
|
|
1170
|
+
}));
|
|
1171
|
+
continue;
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
semicolon();
|
|
1175
|
+
props.push(new AST_ClassField({
|
|
1176
|
+
start: start,
|
|
1177
|
+
static: fixed,
|
|
1178
|
+
private: internal,
|
|
1179
|
+
key: key,
|
|
1180
|
+
value: value,
|
|
1181
|
+
end: prev(),
|
|
1182
|
+
}));
|
|
1183
|
+
}
|
|
1184
|
+
next();
|
|
1185
|
+
S.input.pop_directives_stack();
|
|
1186
|
+
S.in_generator = was_gen;
|
|
1187
|
+
S.in_async = was_async;
|
|
1188
|
+
return new ctor({
|
|
1189
|
+
extends: parent,
|
|
1190
|
+
name: name,
|
|
1191
|
+
properties: props,
|
|
1192
|
+
});
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
function for_() {
|
|
1196
|
+
var await_token = is("name", "await") && next();
|
|
1197
|
+
expect("(");
|
|
1198
|
+
var init = null;
|
|
1199
|
+
if (await_token || !is("punc", ";")) {
|
|
1200
|
+
init = is("keyword", "const")
|
|
1201
|
+
? (next(), const_(true))
|
|
1202
|
+
: is("name", "let") && is_vardefs()
|
|
1203
|
+
? (next(), let_(true))
|
|
1204
|
+
: is("keyword", "var")
|
|
1205
|
+
? (next(), var_(true))
|
|
1206
|
+
: expression(true);
|
|
1207
|
+
var ctor;
|
|
1208
|
+
if (await_token) {
|
|
1209
|
+
expect_token("name", "of");
|
|
1210
|
+
ctor = AST_ForAwaitOf;
|
|
1211
|
+
} else if (is("operator", "in")) {
|
|
1212
|
+
next();
|
|
1213
|
+
ctor = AST_ForIn;
|
|
1214
|
+
} else if (is("name", "of")) {
|
|
1215
|
+
next();
|
|
1216
|
+
ctor = AST_ForOf;
|
|
1217
|
+
}
|
|
1218
|
+
if (ctor) {
|
|
1219
|
+
if (init instanceof AST_Definitions) {
|
|
1220
|
+
if (init.definitions.length > 1) {
|
|
1221
|
+
token_error(init.start, "Only one variable declaration allowed in for..in/of loop");
|
|
1222
|
+
}
|
|
1223
|
+
if (ctor !== AST_ForIn && init.definitions[0].value) {
|
|
1224
|
+
token_error(init.definitions[0].value.start, "No initializers allowed in for..of loop");
|
|
1225
|
+
}
|
|
1226
|
+
} else if (!(is_assignable(init) || (init = to_destructured(init)) instanceof AST_Destructured)) {
|
|
1227
|
+
token_error(init.start, "Invalid left-hand side in for..in/of loop");
|
|
1228
|
+
}
|
|
1229
|
+
return for_enum(ctor, init);
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
return regular_for(init);
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
function regular_for(init) {
|
|
1236
|
+
expect(";");
|
|
1237
|
+
var test = is("punc", ";") ? null : expression();
|
|
1238
|
+
expect(";");
|
|
1239
|
+
var step = is("punc", ")") ? null : expression();
|
|
1240
|
+
expect(")");
|
|
1241
|
+
return new AST_For({
|
|
1242
|
+
init : init,
|
|
1243
|
+
condition : test,
|
|
1244
|
+
step : step,
|
|
1245
|
+
body : in_loop(statement)
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
function for_enum(ctor, init) {
|
|
1250
|
+
handle_regexp();
|
|
1251
|
+
var obj = expression();
|
|
1252
|
+
expect(")");
|
|
1253
|
+
return new ctor({
|
|
1254
|
+
init : init,
|
|
1255
|
+
object : obj,
|
|
1256
|
+
body : in_loop(statement)
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
function to_funarg(node) {
|
|
1261
|
+
if (node instanceof AST_Array) {
|
|
1262
|
+
var rest = null;
|
|
1263
|
+
if (node.elements[node.elements.length - 1] instanceof AST_Spread) {
|
|
1264
|
+
rest = to_funarg(node.elements.pop().expression);
|
|
1265
|
+
}
|
|
1266
|
+
return new AST_DestructuredArray({
|
|
1267
|
+
start: node.start,
|
|
1268
|
+
elements: node.elements.map(to_funarg),
|
|
1269
|
+
rest: rest,
|
|
1270
|
+
end: node.end,
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1273
|
+
if (node instanceof AST_Assign) return new AST_DefaultValue({
|
|
1274
|
+
start: node.start,
|
|
1275
|
+
name: to_funarg(node.left),
|
|
1276
|
+
value: node.right,
|
|
1277
|
+
end: node.end,
|
|
1278
|
+
});
|
|
1279
|
+
if (node instanceof AST_DefaultValue) {
|
|
1280
|
+
node.name = to_funarg(node.name);
|
|
1281
|
+
return node;
|
|
1282
|
+
}
|
|
1283
|
+
if (node instanceof AST_DestructuredArray) {
|
|
1284
|
+
node.elements = node.elements.map(to_funarg);
|
|
1285
|
+
if (node.rest) node.rest = to_funarg(node.rest);
|
|
1286
|
+
return node;
|
|
1287
|
+
}
|
|
1288
|
+
if (node instanceof AST_DestructuredObject) {
|
|
1289
|
+
node.properties.forEach(function(prop) {
|
|
1290
|
+
prop.value = to_funarg(prop.value);
|
|
1291
|
+
});
|
|
1292
|
+
if (node.rest) node.rest = to_funarg(node.rest);
|
|
1293
|
+
return node;
|
|
1294
|
+
}
|
|
1295
|
+
if (node instanceof AST_Hole) return node;
|
|
1296
|
+
if (node instanceof AST_Object) {
|
|
1297
|
+
var rest = null;
|
|
1298
|
+
if (node.properties[node.properties.length - 1] instanceof AST_Spread) {
|
|
1299
|
+
rest = to_funarg(node.properties.pop().expression);
|
|
1300
|
+
}
|
|
1301
|
+
return new AST_DestructuredObject({
|
|
1302
|
+
start: node.start,
|
|
1303
|
+
properties: node.properties.map(function(prop) {
|
|
1304
|
+
if (!(prop instanceof AST_ObjectKeyVal)) token_error(prop.start, "Invalid destructuring assignment");
|
|
1305
|
+
return new AST_DestructuredKeyVal({
|
|
1306
|
+
start: prop.start,
|
|
1307
|
+
key: prop.key,
|
|
1308
|
+
value: to_funarg(prop.value),
|
|
1309
|
+
end: prop.end,
|
|
1310
|
+
});
|
|
1311
|
+
}),
|
|
1312
|
+
rest: rest,
|
|
1313
|
+
end: node.end,
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
if (node instanceof AST_SymbolFunarg) return node;
|
|
1317
|
+
if (node instanceof AST_SymbolRef) return new AST_SymbolFunarg(node);
|
|
1318
|
+
if (node instanceof AST_Yield) return new AST_SymbolFunarg({
|
|
1319
|
+
start: node.start,
|
|
1320
|
+
name: "yield",
|
|
1321
|
+
end: node.end,
|
|
1322
|
+
});
|
|
1323
|
+
token_error(node.start, "Invalid arrow parameter");
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
function arrow(exprs, start, async) {
|
|
1327
|
+
var was_async = S.in_async;
|
|
1328
|
+
var was_gen = S.in_generator;
|
|
1329
|
+
S.in_async = async;
|
|
1330
|
+
S.in_generator = false;
|
|
1331
|
+
var was_funarg = S.in_funarg;
|
|
1332
|
+
S.in_funarg = S.in_function;
|
|
1333
|
+
var argnames = exprs.map(to_funarg);
|
|
1334
|
+
var rest = exprs.rest || null;
|
|
1335
|
+
if (rest) rest = to_funarg(rest);
|
|
1336
|
+
S.in_funarg = was_funarg;
|
|
1337
|
+
expect("=>");
|
|
1338
|
+
var body, value;
|
|
1339
|
+
var loop = S.in_loop;
|
|
1340
|
+
var labels = S.labels;
|
|
1341
|
+
++S.in_function;
|
|
1342
|
+
S.input.push_directives_stack();
|
|
1343
|
+
S.in_loop = 0;
|
|
1344
|
+
S.labels = [];
|
|
1345
|
+
if (is("punc", "{")) {
|
|
1346
|
+
S.in_directives = true;
|
|
1347
|
+
body = block_();
|
|
1348
|
+
value = null;
|
|
1349
|
+
} else {
|
|
1350
|
+
body = [];
|
|
1351
|
+
handle_regexp();
|
|
1352
|
+
value = maybe_assign();
|
|
1353
|
+
}
|
|
1354
|
+
var is_strict = S.input.has_directive("use strict");
|
|
1355
|
+
S.input.pop_directives_stack();
|
|
1356
|
+
--S.in_function;
|
|
1357
|
+
S.in_loop = loop;
|
|
1358
|
+
S.labels = labels;
|
|
1359
|
+
S.in_generator = was_gen;
|
|
1360
|
+
S.in_async = was_async;
|
|
1361
|
+
var node = new (async ? AST_AsyncArrow : AST_Arrow)({
|
|
1362
|
+
start: start,
|
|
1363
|
+
argnames: argnames,
|
|
1364
|
+
rest: rest,
|
|
1365
|
+
body: body,
|
|
1366
|
+
value: value,
|
|
1367
|
+
end: prev(),
|
|
1368
|
+
});
|
|
1369
|
+
if (is_strict) node.each_argname(strict_verify_symbol);
|
|
1370
|
+
return node;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
var function_ = function(ctor) {
|
|
1374
|
+
var was_async = S.in_async;
|
|
1375
|
+
var was_gen = S.in_generator;
|
|
1376
|
+
var name;
|
|
1377
|
+
if (/Defun$/.test(ctor.TYPE)) {
|
|
1378
|
+
name = as_symbol(AST_SymbolDefun);
|
|
1379
|
+
S.in_async = /^Async/.test(ctor.TYPE);
|
|
1380
|
+
S.in_generator = /Generator/.test(ctor.TYPE);
|
|
1381
|
+
} else {
|
|
1382
|
+
S.in_async = /^Async/.test(ctor.TYPE);
|
|
1383
|
+
S.in_generator = /Generator/.test(ctor.TYPE);
|
|
1384
|
+
name = as_symbol(AST_SymbolLambda, true);
|
|
1385
|
+
}
|
|
1386
|
+
if (name && ctor !== AST_Accessor && !(name instanceof AST_SymbolDeclaration))
|
|
1387
|
+
unexpected(prev());
|
|
1388
|
+
expect("(");
|
|
1389
|
+
var was_funarg = S.in_funarg;
|
|
1390
|
+
S.in_funarg = S.in_function;
|
|
1391
|
+
var argnames = expr_list(")", !options.strict, false, function() {
|
|
1392
|
+
return maybe_default(AST_SymbolFunarg);
|
|
1393
|
+
});
|
|
1394
|
+
S.in_funarg = was_funarg;
|
|
1395
|
+
var loop = S.in_loop;
|
|
1396
|
+
var labels = S.labels;
|
|
1397
|
+
++S.in_function;
|
|
1398
|
+
S.in_directives = true;
|
|
1399
|
+
S.input.push_directives_stack();
|
|
1400
|
+
S.in_loop = 0;
|
|
1401
|
+
S.labels = [];
|
|
1402
|
+
var body = block_();
|
|
1403
|
+
var is_strict = S.input.has_directive("use strict");
|
|
1404
|
+
S.input.pop_directives_stack();
|
|
1405
|
+
--S.in_function;
|
|
1406
|
+
S.in_loop = loop;
|
|
1407
|
+
S.labels = labels;
|
|
1408
|
+
S.in_generator = was_gen;
|
|
1409
|
+
S.in_async = was_async;
|
|
1410
|
+
var node = new ctor({
|
|
1411
|
+
name: name,
|
|
1412
|
+
argnames: argnames,
|
|
1413
|
+
rest: argnames.rest || null,
|
|
1414
|
+
body: body,
|
|
1415
|
+
});
|
|
1416
|
+
if (is_strict) {
|
|
1417
|
+
if (name) strict_verify_symbol(name);
|
|
1418
|
+
node.each_argname(strict_verify_symbol);
|
|
1419
|
+
}
|
|
1420
|
+
return node;
|
|
1421
|
+
};
|
|
1422
|
+
|
|
1423
|
+
function if_() {
|
|
1424
|
+
var cond = parenthesized(), body = statement(), alt = null;
|
|
1425
|
+
if (is("keyword", "else")) {
|
|
1426
|
+
next();
|
|
1427
|
+
alt = statement();
|
|
1428
|
+
}
|
|
1429
|
+
return new AST_If({
|
|
1430
|
+
condition : cond,
|
|
1431
|
+
body : body,
|
|
1432
|
+
alternative : alt,
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
function is_alias() {
|
|
1437
|
+
return is("name") || is("string") || is_identifier_string(S.token.value);
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
function make_string(token) {
|
|
1441
|
+
return new AST_String({
|
|
1442
|
+
start: token,
|
|
1443
|
+
quote: token.quote,
|
|
1444
|
+
value: token.value,
|
|
1445
|
+
end: token,
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
function as_path() {
|
|
1450
|
+
var path = S.token;
|
|
1451
|
+
expect_token("string");
|
|
1452
|
+
semicolon();
|
|
1453
|
+
return make_string(path);
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
function export_() {
|
|
1457
|
+
if (is("operator", "*")) {
|
|
1458
|
+
var key = S.token;
|
|
1459
|
+
var alias = key;
|
|
1460
|
+
next();
|
|
1461
|
+
if (is("name", "as")) {
|
|
1462
|
+
next();
|
|
1463
|
+
if (!is_alias()) expect_token("name");
|
|
1464
|
+
alias = S.token;
|
|
1465
|
+
next();
|
|
1466
|
+
}
|
|
1467
|
+
expect_token("name", "from");
|
|
1468
|
+
return new AST_ExportForeign({
|
|
1469
|
+
aliases: [ make_string(alias) ],
|
|
1470
|
+
keys: [ make_string(key) ],
|
|
1471
|
+
path: as_path(),
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
if (is("punc", "{")) {
|
|
1475
|
+
next();
|
|
1476
|
+
var aliases = [];
|
|
1477
|
+
var keys = [];
|
|
1478
|
+
while (is_alias()) {
|
|
1479
|
+
var key = S.token;
|
|
1480
|
+
next();
|
|
1481
|
+
keys.push(key);
|
|
1482
|
+
if (is("name", "as")) {
|
|
1483
|
+
next();
|
|
1484
|
+
if (!is_alias()) expect_token("name");
|
|
1485
|
+
aliases.push(S.token);
|
|
1486
|
+
next();
|
|
1487
|
+
} else {
|
|
1488
|
+
aliases.push(key);
|
|
1489
|
+
}
|
|
1490
|
+
if (!is("punc", "}")) expect(",");
|
|
1491
|
+
}
|
|
1492
|
+
expect("}");
|
|
1493
|
+
if (is("name", "from")) {
|
|
1494
|
+
next();
|
|
1495
|
+
return new AST_ExportForeign({
|
|
1496
|
+
aliases: aliases.map(make_string),
|
|
1497
|
+
keys: keys.map(make_string),
|
|
1498
|
+
path: as_path(),
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
semicolon();
|
|
1502
|
+
return new AST_ExportReferences({
|
|
1503
|
+
properties: keys.map(function(token, index) {
|
|
1504
|
+
if (!is_token(token, "name")) token_error(token, "Name expected");
|
|
1505
|
+
var sym = _make_symbol(AST_SymbolExport, token);
|
|
1506
|
+
sym.alias = make_string(aliases[index]);
|
|
1507
|
+
return sym;
|
|
1508
|
+
}),
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
if (is("keyword", "default")) {
|
|
1512
|
+
next();
|
|
1513
|
+
var start = S.token;
|
|
1514
|
+
var body = export_default_decl();
|
|
1515
|
+
if (body) {
|
|
1516
|
+
body.start = start;
|
|
1517
|
+
body.end = prev();
|
|
1518
|
+
} else {
|
|
1519
|
+
handle_regexp();
|
|
1520
|
+
body = expression();
|
|
1521
|
+
semicolon();
|
|
1522
|
+
}
|
|
1523
|
+
return new AST_ExportDefault({ body: body });
|
|
1524
|
+
}
|
|
1525
|
+
return new AST_ExportDeclaration({ body: export_decl() });
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
function maybe_named(def, expr) {
|
|
1529
|
+
if (expr.name) {
|
|
1530
|
+
expr = new def(expr);
|
|
1531
|
+
expr.name = new (def === AST_DefClass ? AST_SymbolDefClass : AST_SymbolDefun)(expr.name);
|
|
1532
|
+
}
|
|
1533
|
+
return expr;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
function export_default_decl() {
|
|
1537
|
+
if (is("name", "async")) {
|
|
1538
|
+
if (!is_token(peek(), "keyword", "function")) return;
|
|
1539
|
+
next();
|
|
1540
|
+
next();
|
|
1541
|
+
if (!is("operator", "*")) return maybe_named(AST_AsyncDefun, function_(AST_AsyncFunction));
|
|
1542
|
+
next();
|
|
1543
|
+
return maybe_named(AST_AsyncGeneratorDefun, function_(AST_AsyncGeneratorFunction));
|
|
1544
|
+
} else if (is("keyword")) switch (S.token.value) {
|
|
1545
|
+
case "class":
|
|
1546
|
+
next();
|
|
1547
|
+
return maybe_named(AST_DefClass, class_(AST_ClassExpression));
|
|
1548
|
+
case "function":
|
|
1549
|
+
next();
|
|
1550
|
+
if (!is("operator", "*")) return maybe_named(AST_Defun, function_(AST_Function));
|
|
1551
|
+
next();
|
|
1552
|
+
return maybe_named(AST_GeneratorDefun, function_(AST_GeneratorFunction));
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
var export_decl = embed_tokens(function() {
|
|
1557
|
+
if (is("name")) switch (S.token.value) {
|
|
1558
|
+
case "async":
|
|
1559
|
+
next();
|
|
1560
|
+
expect_token("keyword", "function");
|
|
1561
|
+
if (!is("operator", "*")) return function_(AST_AsyncDefun);
|
|
1562
|
+
next();
|
|
1563
|
+
return function_(AST_AsyncGeneratorDefun);
|
|
1564
|
+
case "let":
|
|
1565
|
+
next();
|
|
1566
|
+
var node = let_();
|
|
1567
|
+
semicolon();
|
|
1568
|
+
return node;
|
|
1569
|
+
} else if (is("keyword")) switch (S.token.value) {
|
|
1570
|
+
case "class":
|
|
1571
|
+
next();
|
|
1572
|
+
return class_(AST_DefClass);
|
|
1573
|
+
case "const":
|
|
1574
|
+
next();
|
|
1575
|
+
var node = const_();
|
|
1576
|
+
semicolon();
|
|
1577
|
+
return node;
|
|
1578
|
+
case "function":
|
|
1579
|
+
next();
|
|
1580
|
+
if (!is("operator", "*")) return function_(AST_Defun);
|
|
1581
|
+
next();
|
|
1582
|
+
return function_(AST_GeneratorDefun);
|
|
1583
|
+
case "var":
|
|
1584
|
+
next();
|
|
1585
|
+
var node = var_();
|
|
1586
|
+
semicolon();
|
|
1587
|
+
return node;
|
|
1588
|
+
}
|
|
1589
|
+
unexpected();
|
|
1590
|
+
});
|
|
1591
|
+
|
|
1592
|
+
function import_() {
|
|
1593
|
+
var all = null;
|
|
1594
|
+
var def = as_symbol(AST_SymbolImport, true);
|
|
1595
|
+
var props = null;
|
|
1596
|
+
var cont;
|
|
1597
|
+
if (def) {
|
|
1598
|
+
def.key = new AST_String({
|
|
1599
|
+
start: def.start,
|
|
1600
|
+
value: "",
|
|
1601
|
+
end: def.end,
|
|
1602
|
+
});
|
|
1603
|
+
if (cont = is("punc", ",")) next();
|
|
1604
|
+
} else {
|
|
1605
|
+
cont = !is("string");
|
|
1606
|
+
}
|
|
1607
|
+
if (cont) {
|
|
1608
|
+
if (is("operator", "*")) {
|
|
1609
|
+
var key = S.token;
|
|
1610
|
+
next();
|
|
1611
|
+
expect_token("name", "as");
|
|
1612
|
+
all = as_symbol(AST_SymbolImport);
|
|
1613
|
+
all.key = make_string(key);
|
|
1614
|
+
} else {
|
|
1615
|
+
expect("{");
|
|
1616
|
+
props = [];
|
|
1617
|
+
while (is_alias()) {
|
|
1618
|
+
var alias;
|
|
1619
|
+
if (is_token(peek(), "name", "as")) {
|
|
1620
|
+
var key = S.token;
|
|
1621
|
+
next();
|
|
1622
|
+
next();
|
|
1623
|
+
alias = as_symbol(AST_SymbolImport);
|
|
1624
|
+
alias.key = make_string(key);
|
|
1625
|
+
} else {
|
|
1626
|
+
alias = as_symbol(AST_SymbolImport);
|
|
1627
|
+
alias.key = new AST_String({
|
|
1628
|
+
start: alias.start,
|
|
1629
|
+
value: alias.name,
|
|
1630
|
+
end: alias.end,
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1633
|
+
props.push(alias);
|
|
1634
|
+
if (!is("punc", "}")) expect(",");
|
|
1635
|
+
}
|
|
1636
|
+
expect("}");
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
if (all || def || props) expect_token("name", "from");
|
|
1640
|
+
return new AST_Import({
|
|
1641
|
+
all: all,
|
|
1642
|
+
default: def,
|
|
1643
|
+
path: as_path(),
|
|
1644
|
+
properties: props,
|
|
1645
|
+
});
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
function block_() {
|
|
1649
|
+
expect("{");
|
|
1650
|
+
var a = [];
|
|
1651
|
+
while (!is("punc", "}")) {
|
|
1652
|
+
if (is("eof")) expect("}");
|
|
1653
|
+
a.push(statement());
|
|
1654
|
+
}
|
|
1655
|
+
next();
|
|
1656
|
+
return a;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
function switch_body_() {
|
|
1660
|
+
expect("{");
|
|
1661
|
+
var a = [], branch, cur, default_branch, tmp;
|
|
1662
|
+
while (!is("punc", "}")) {
|
|
1663
|
+
if (is("eof")) expect("}");
|
|
1664
|
+
if (is("keyword", "case")) {
|
|
1665
|
+
if (branch) branch.end = prev();
|
|
1666
|
+
cur = [];
|
|
1667
|
+
branch = new AST_Case({
|
|
1668
|
+
start : (tmp = S.token, next(), tmp),
|
|
1669
|
+
expression : expression(),
|
|
1670
|
+
body : cur
|
|
1671
|
+
});
|
|
1672
|
+
a.push(branch);
|
|
1673
|
+
expect(":");
|
|
1674
|
+
} else if (is("keyword", "default")) {
|
|
1675
|
+
if (branch) branch.end = prev();
|
|
1676
|
+
if (default_branch) croak("More than one default clause in switch statement");
|
|
1677
|
+
cur = [];
|
|
1678
|
+
branch = new AST_Default({
|
|
1679
|
+
start : (tmp = S.token, next(), expect(":"), tmp),
|
|
1680
|
+
body : cur
|
|
1681
|
+
});
|
|
1682
|
+
a.push(branch);
|
|
1683
|
+
default_branch = branch;
|
|
1684
|
+
} else {
|
|
1685
|
+
if (!cur) unexpected();
|
|
1686
|
+
cur.push(statement());
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
if (branch) branch.end = prev();
|
|
1690
|
+
next();
|
|
1691
|
+
return a;
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
function try_() {
|
|
1695
|
+
var body = block_(), bcatch = null, bfinally = null;
|
|
1696
|
+
if (is("keyword", "catch")) {
|
|
1697
|
+
var start = S.token;
|
|
1698
|
+
next();
|
|
1699
|
+
var name = null;
|
|
1700
|
+
if (is("punc", "(")) {
|
|
1701
|
+
next();
|
|
1702
|
+
name = maybe_destructured(AST_SymbolCatch);
|
|
1703
|
+
expect(")");
|
|
1704
|
+
}
|
|
1705
|
+
bcatch = new AST_Catch({
|
|
1706
|
+
start : start,
|
|
1707
|
+
argname : name,
|
|
1708
|
+
body : block_(),
|
|
1709
|
+
end : prev()
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
if (is("keyword", "finally")) {
|
|
1713
|
+
var start = S.token;
|
|
1714
|
+
next();
|
|
1715
|
+
bfinally = new AST_Finally({
|
|
1716
|
+
start : start,
|
|
1717
|
+
body : block_(),
|
|
1718
|
+
end : prev()
|
|
1719
|
+
});
|
|
1720
|
+
}
|
|
1721
|
+
if (!bcatch && !bfinally)
|
|
1722
|
+
croak("Missing catch/finally blocks");
|
|
1723
|
+
return new AST_Try({
|
|
1724
|
+
body : body,
|
|
1725
|
+
bcatch : bcatch,
|
|
1726
|
+
bfinally : bfinally
|
|
1727
|
+
});
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
function vardefs(type, no_in) {
|
|
1731
|
+
var a = [];
|
|
1732
|
+
for (;;) {
|
|
1733
|
+
var start = S.token;
|
|
1734
|
+
var name = maybe_destructured(type);
|
|
1735
|
+
var value = null;
|
|
1736
|
+
if (is("operator", "=")) {
|
|
1737
|
+
next();
|
|
1738
|
+
value = maybe_assign(no_in);
|
|
1739
|
+
} else if (!no_in && (type === AST_SymbolConst || name instanceof AST_Destructured)) {
|
|
1740
|
+
croak("Missing initializer in declaration");
|
|
1741
|
+
}
|
|
1742
|
+
a.push(new AST_VarDef({
|
|
1743
|
+
start : start,
|
|
1744
|
+
name : name,
|
|
1745
|
+
value : value,
|
|
1746
|
+
end : prev()
|
|
1747
|
+
}));
|
|
1748
|
+
if (!is("punc", ","))
|
|
1749
|
+
break;
|
|
1750
|
+
next();
|
|
1751
|
+
}
|
|
1752
|
+
return a;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
function is_vardefs() {
|
|
1756
|
+
var token = peek();
|
|
1757
|
+
return is_token(token, "name") || is_token(token, "punc", "[") || is_token(token, "punc", "{");
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
var const_ = function(no_in) {
|
|
1761
|
+
return new AST_Const({
|
|
1762
|
+
start : prev(),
|
|
1763
|
+
definitions : vardefs(AST_SymbolConst, no_in),
|
|
1764
|
+
end : prev()
|
|
1765
|
+
});
|
|
1766
|
+
};
|
|
1767
|
+
|
|
1768
|
+
var let_ = function(no_in) {
|
|
1769
|
+
return new AST_Let({
|
|
1770
|
+
start : prev(),
|
|
1771
|
+
definitions : vardefs(AST_SymbolLet, no_in),
|
|
1772
|
+
end : prev()
|
|
1773
|
+
});
|
|
1774
|
+
};
|
|
1775
|
+
|
|
1776
|
+
var var_ = function(no_in) {
|
|
1777
|
+
return new AST_Var({
|
|
1778
|
+
start : prev(),
|
|
1779
|
+
definitions : vardefs(AST_SymbolVar, no_in),
|
|
1780
|
+
end : prev()
|
|
1781
|
+
});
|
|
1782
|
+
};
|
|
1783
|
+
|
|
1784
|
+
var new_ = function(allow_calls) {
|
|
1785
|
+
var start = S.token;
|
|
1786
|
+
expect_token("operator", "new");
|
|
1787
|
+
var call;
|
|
1788
|
+
if (is("punc", ".") && is_token(peek(), "name", "target")) {
|
|
1789
|
+
next();
|
|
1790
|
+
next();
|
|
1791
|
+
call = new AST_NewTarget();
|
|
1792
|
+
} else {
|
|
1793
|
+
var exp = expr_atom(false), args;
|
|
1794
|
+
if (is("punc", "(")) {
|
|
1795
|
+
next();
|
|
1796
|
+
args = expr_list(")", !options.strict);
|
|
1797
|
+
} else {
|
|
1798
|
+
args = [];
|
|
1799
|
+
}
|
|
1800
|
+
call = new AST_New({ expression: exp, args: args });
|
|
1801
|
+
}
|
|
1802
|
+
call.start = start;
|
|
1803
|
+
call.end = prev();
|
|
1804
|
+
return subscripts(call, allow_calls);
|
|
1805
|
+
};
|
|
1806
|
+
|
|
1807
|
+
function as_atom_node() {
|
|
1808
|
+
var ret, tok = S.token, value = tok.value;
|
|
1809
|
+
switch (tok.type) {
|
|
1810
|
+
case "num":
|
|
1811
|
+
if (isFinite(value)) {
|
|
1812
|
+
ret = new AST_Number({ value: value });
|
|
1813
|
+
} else {
|
|
1814
|
+
ret = new AST_Infinity();
|
|
1815
|
+
if (value < 0) ret = new AST_UnaryPrefix({ operator: "-", expression: ret });
|
|
1816
|
+
}
|
|
1817
|
+
break;
|
|
1818
|
+
case "bigint":
|
|
1819
|
+
ret = new AST_BigInt({ value: value });
|
|
1820
|
+
break;
|
|
1821
|
+
case "string":
|
|
1822
|
+
ret = new AST_String({ value: value, quote: tok.quote });
|
|
1823
|
+
break;
|
|
1824
|
+
case "regexp":
|
|
1825
|
+
ret = new AST_RegExp({ value: value });
|
|
1826
|
+
break;
|
|
1827
|
+
case "atom":
|
|
1828
|
+
switch (value) {
|
|
1829
|
+
case "false":
|
|
1830
|
+
ret = new AST_False();
|
|
1831
|
+
break;
|
|
1832
|
+
case "true":
|
|
1833
|
+
ret = new AST_True();
|
|
1834
|
+
break;
|
|
1835
|
+
case "null":
|
|
1836
|
+
ret = new AST_Null();
|
|
1837
|
+
break;
|
|
1838
|
+
default:
|
|
1839
|
+
unexpected();
|
|
1840
|
+
}
|
|
1841
|
+
break;
|
|
1842
|
+
default:
|
|
1843
|
+
unexpected();
|
|
1844
|
+
}
|
|
1845
|
+
next();
|
|
1846
|
+
ret.start = ret.end = tok;
|
|
1847
|
+
return ret;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
var expr_atom = function(allow_calls) {
|
|
1851
|
+
if (is("operator", "new")) {
|
|
1852
|
+
return new_(allow_calls);
|
|
1853
|
+
}
|
|
1854
|
+
var start = S.token;
|
|
1855
|
+
if (is("punc")) {
|
|
1856
|
+
switch (start.value) {
|
|
1857
|
+
case "`":
|
|
1858
|
+
return subscripts(template(null), allow_calls);
|
|
1859
|
+
case "(":
|
|
1860
|
+
next();
|
|
1861
|
+
if (is("punc", ")")) {
|
|
1862
|
+
next();
|
|
1863
|
+
return arrow([], start);
|
|
1864
|
+
}
|
|
1865
|
+
var ex = expression(false, true);
|
|
1866
|
+
var len = start.comments_before.length;
|
|
1867
|
+
[].unshift.apply(ex.start.comments_before, start.comments_before);
|
|
1868
|
+
start.comments_before.length = 0;
|
|
1869
|
+
start.comments_before = ex.start.comments_before;
|
|
1870
|
+
start.comments_before_length = len;
|
|
1871
|
+
if (len == 0 && start.comments_before.length > 0) {
|
|
1872
|
+
var comment = start.comments_before[0];
|
|
1873
|
+
if (!comment.nlb) {
|
|
1874
|
+
comment.nlb = start.nlb;
|
|
1875
|
+
start.nlb = false;
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
start.comments_after = ex.start.comments_after;
|
|
1879
|
+
ex.start = start;
|
|
1880
|
+
expect(")");
|
|
1881
|
+
var end = prev();
|
|
1882
|
+
end.comments_before = ex.end.comments_before;
|
|
1883
|
+
end.comments_after.forEach(function(comment) {
|
|
1884
|
+
ex.end.comments_after.push(comment);
|
|
1885
|
+
if (comment.nlb) S.token.nlb = true;
|
|
1886
|
+
});
|
|
1887
|
+
end.comments_after.length = 0;
|
|
1888
|
+
end.comments_after = ex.end.comments_after;
|
|
1889
|
+
ex.end = end;
|
|
1890
|
+
if (is("punc", "=>")) return arrow(ex instanceof AST_Sequence ? ex.expressions : [ ex ], start);
|
|
1891
|
+
return subscripts(ex, allow_calls);
|
|
1892
|
+
case "[":
|
|
1893
|
+
return subscripts(array_(), allow_calls);
|
|
1894
|
+
case "{":
|
|
1895
|
+
return subscripts(object_(), allow_calls);
|
|
1896
|
+
}
|
|
1897
|
+
unexpected();
|
|
1898
|
+
}
|
|
1899
|
+
if (is("keyword")) switch (start.value) {
|
|
1900
|
+
case "class":
|
|
1901
|
+
next();
|
|
1902
|
+
var clazz = class_(AST_ClassExpression);
|
|
1903
|
+
clazz.start = start;
|
|
1904
|
+
clazz.end = prev();
|
|
1905
|
+
return subscripts(clazz, allow_calls);
|
|
1906
|
+
case "function":
|
|
1907
|
+
next();
|
|
1908
|
+
var func;
|
|
1909
|
+
if (is("operator", "*")) {
|
|
1910
|
+
next();
|
|
1911
|
+
func = function_(AST_GeneratorFunction);
|
|
1912
|
+
} else {
|
|
1913
|
+
func = function_(AST_Function);
|
|
1914
|
+
}
|
|
1915
|
+
func.start = start;
|
|
1916
|
+
func.end = prev();
|
|
1917
|
+
return subscripts(func, allow_calls);
|
|
1918
|
+
}
|
|
1919
|
+
if (is("name")) {
|
|
1920
|
+
var sym = _make_symbol(AST_SymbolRef, start);
|
|
1921
|
+
next();
|
|
1922
|
+
if (sym.name == "async") {
|
|
1923
|
+
if (is("keyword", "function")) {
|
|
1924
|
+
next();
|
|
1925
|
+
var func;
|
|
1926
|
+
if (is("operator", "*")) {
|
|
1927
|
+
next();
|
|
1928
|
+
func = function_(AST_AsyncGeneratorFunction);
|
|
1929
|
+
} else {
|
|
1930
|
+
func = function_(AST_AsyncFunction);
|
|
1931
|
+
}
|
|
1932
|
+
func.start = start;
|
|
1933
|
+
func.end = prev();
|
|
1934
|
+
return subscripts(func, allow_calls);
|
|
1935
|
+
}
|
|
1936
|
+
if (is("name") && is_token(peek(), "punc", "=>")) {
|
|
1937
|
+
start = S.token;
|
|
1938
|
+
sym = _make_symbol(AST_SymbolRef, start);
|
|
1939
|
+
next();
|
|
1940
|
+
return arrow([ sym ], start, true);
|
|
1941
|
+
}
|
|
1942
|
+
if (is("punc", "(")) {
|
|
1943
|
+
var call = subscripts(sym, allow_calls);
|
|
1944
|
+
if (!is("punc", "=>")) return call;
|
|
1945
|
+
var args = call.args;
|
|
1946
|
+
if (args[args.length - 1] instanceof AST_Spread) {
|
|
1947
|
+
args.rest = args.pop().expression;
|
|
1948
|
+
}
|
|
1949
|
+
return arrow(args, start, true);
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
return is("punc", "=>") ? arrow([ sym ], start) : subscripts(sym, allow_calls);
|
|
1953
|
+
}
|
|
1954
|
+
if (ATOMIC_START_TOKEN[S.token.type]) {
|
|
1955
|
+
return subscripts(as_atom_node(), allow_calls);
|
|
1956
|
+
}
|
|
1957
|
+
unexpected();
|
|
1958
|
+
};
|
|
1959
|
+
|
|
1960
|
+
function expr_list(closing, allow_trailing_comma, allow_empty, parser) {
|
|
1961
|
+
if (!parser) parser = maybe_assign;
|
|
1962
|
+
var first = true, a = [];
|
|
1963
|
+
while (!is("punc", closing)) {
|
|
1964
|
+
if (first) first = false; else expect(",");
|
|
1965
|
+
if (allow_trailing_comma && is("punc", closing)) break;
|
|
1966
|
+
if (allow_empty && is("punc", ",")) {
|
|
1967
|
+
a.push(new AST_Hole({ start: S.token, end: S.token }));
|
|
1968
|
+
} else if (!is("operator", "...")) {
|
|
1969
|
+
a.push(parser());
|
|
1970
|
+
} else if (parser === maybe_assign) {
|
|
1971
|
+
a.push(new AST_Spread({
|
|
1972
|
+
start: S.token,
|
|
1973
|
+
expression: (next(), parser()),
|
|
1974
|
+
end: prev(),
|
|
1975
|
+
}));
|
|
1976
|
+
} else {
|
|
1977
|
+
next();
|
|
1978
|
+
a.rest = parser();
|
|
1979
|
+
if (a.rest instanceof AST_DefaultValue) token_error(a.rest.start, "Invalid rest parameter");
|
|
1980
|
+
break;
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
expect(closing);
|
|
1984
|
+
return a;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
var array_ = embed_tokens(function() {
|
|
1988
|
+
expect("[");
|
|
1989
|
+
return new AST_Array({
|
|
1990
|
+
elements: expr_list("]", !options.strict, true)
|
|
1991
|
+
});
|
|
1992
|
+
});
|
|
1993
|
+
|
|
1994
|
+
var create_accessor = embed_tokens(function() {
|
|
1995
|
+
return function_(AST_Accessor);
|
|
1996
|
+
});
|
|
1997
|
+
|
|
1998
|
+
var object_ = embed_tokens(function() {
|
|
1999
|
+
expect("{");
|
|
2000
|
+
var first = true, a = [];
|
|
2001
|
+
while (!is("punc", "}")) {
|
|
2002
|
+
if (first) first = false; else expect(",");
|
|
2003
|
+
// allow trailing comma
|
|
2004
|
+
if (!options.strict && is("punc", "}")) break;
|
|
2005
|
+
var start = S.token;
|
|
2006
|
+
if (is("operator", "*")) {
|
|
2007
|
+
next();
|
|
2008
|
+
var key = as_property_key();
|
|
2009
|
+
var gen_start = S.token;
|
|
2010
|
+
var gen = function_(AST_GeneratorFunction);
|
|
2011
|
+
gen.start = gen_start;
|
|
2012
|
+
gen.end = prev();
|
|
2013
|
+
a.push(new AST_ObjectMethod({
|
|
2014
|
+
start: start,
|
|
2015
|
+
key: key,
|
|
2016
|
+
value: gen,
|
|
2017
|
+
end: prev(),
|
|
2018
|
+
}));
|
|
2019
|
+
continue;
|
|
2020
|
+
}
|
|
2021
|
+
if (is("operator", "...")) {
|
|
2022
|
+
next();
|
|
2023
|
+
a.push(new AST_Spread({
|
|
2024
|
+
start: start,
|
|
2025
|
+
expression: maybe_assign(),
|
|
2026
|
+
end: prev(),
|
|
2027
|
+
}));
|
|
2028
|
+
continue;
|
|
2029
|
+
}
|
|
2030
|
+
if (is_token(peek(), "operator", "=")) {
|
|
2031
|
+
var name = as_symbol(AST_SymbolRef);
|
|
2032
|
+
next();
|
|
2033
|
+
a.push(new AST_ObjectKeyVal({
|
|
2034
|
+
start: start,
|
|
2035
|
+
key: start.value,
|
|
2036
|
+
value: new AST_Assign({
|
|
2037
|
+
start: start,
|
|
2038
|
+
left: name,
|
|
2039
|
+
operator: "=",
|
|
2040
|
+
right: maybe_assign(),
|
|
2041
|
+
end: prev(),
|
|
2042
|
+
}),
|
|
2043
|
+
end: prev(),
|
|
2044
|
+
}));
|
|
2045
|
+
continue;
|
|
2046
|
+
}
|
|
2047
|
+
if (is_token(peek(), "punc", ",") || is_token(peek(), "punc", "}")) {
|
|
2048
|
+
a.push(new AST_ObjectKeyVal({
|
|
2049
|
+
start: start,
|
|
2050
|
+
key: start.value,
|
|
2051
|
+
value: as_symbol(AST_SymbolRef),
|
|
2052
|
+
end: prev(),
|
|
2053
|
+
}));
|
|
2054
|
+
continue;
|
|
2055
|
+
}
|
|
2056
|
+
var key = as_property_key();
|
|
2057
|
+
if (is("punc", "(")) {
|
|
2058
|
+
var func_start = S.token;
|
|
2059
|
+
var func = function_(AST_Function);
|
|
2060
|
+
func.start = func_start;
|
|
2061
|
+
func.end = prev();
|
|
2062
|
+
a.push(new AST_ObjectMethod({
|
|
2063
|
+
start: start,
|
|
2064
|
+
key: key,
|
|
2065
|
+
value: func,
|
|
2066
|
+
end: prev(),
|
|
2067
|
+
}));
|
|
2068
|
+
continue;
|
|
2069
|
+
}
|
|
2070
|
+
if (is("punc", ":")) {
|
|
2071
|
+
next();
|
|
2072
|
+
a.push(new AST_ObjectKeyVal({
|
|
2073
|
+
start: start,
|
|
2074
|
+
key: key,
|
|
2075
|
+
value: maybe_assign(),
|
|
2076
|
+
end: prev(),
|
|
2077
|
+
}));
|
|
2078
|
+
continue;
|
|
2079
|
+
}
|
|
2080
|
+
if (start.type == "name") switch (key) {
|
|
2081
|
+
case "async":
|
|
2082
|
+
var is_gen = is("operator", "*") && next();
|
|
2083
|
+
key = as_property_key();
|
|
2084
|
+
var func_start = S.token;
|
|
2085
|
+
var func = function_(is_gen ? AST_AsyncGeneratorFunction : AST_AsyncFunction);
|
|
2086
|
+
func.start = func_start;
|
|
2087
|
+
func.end = prev();
|
|
2088
|
+
a.push(new AST_ObjectMethod({
|
|
2089
|
+
start: start,
|
|
2090
|
+
key: key,
|
|
2091
|
+
value: func,
|
|
2092
|
+
end: prev(),
|
|
2093
|
+
}));
|
|
2094
|
+
continue;
|
|
2095
|
+
case "get":
|
|
2096
|
+
a.push(new AST_ObjectGetter({
|
|
2097
|
+
start: start,
|
|
2098
|
+
key: as_property_key(),
|
|
2099
|
+
value: create_accessor(),
|
|
2100
|
+
end: prev(),
|
|
2101
|
+
}));
|
|
2102
|
+
continue;
|
|
2103
|
+
case "set":
|
|
2104
|
+
a.push(new AST_ObjectSetter({
|
|
2105
|
+
start: start,
|
|
2106
|
+
key: as_property_key(),
|
|
2107
|
+
value: create_accessor(),
|
|
2108
|
+
end: prev(),
|
|
2109
|
+
}));
|
|
2110
|
+
continue;
|
|
2111
|
+
}
|
|
2112
|
+
unexpected();
|
|
2113
|
+
}
|
|
2114
|
+
next();
|
|
2115
|
+
return new AST_Object({ properties: a });
|
|
2116
|
+
});
|
|
2117
|
+
|
|
2118
|
+
function as_property_key() {
|
|
2119
|
+
var tmp = S.token;
|
|
2120
|
+
switch (tmp.type) {
|
|
2121
|
+
case "operator":
|
|
2122
|
+
if (!KEYWORDS[tmp.value]) unexpected();
|
|
2123
|
+
case "num":
|
|
2124
|
+
case "string":
|
|
2125
|
+
case "name":
|
|
2126
|
+
case "keyword":
|
|
2127
|
+
case "atom":
|
|
2128
|
+
next();
|
|
2129
|
+
return "" + tmp.value;
|
|
2130
|
+
case "punc":
|
|
2131
|
+
expect("[");
|
|
2132
|
+
var key = maybe_assign();
|
|
2133
|
+
expect("]");
|
|
2134
|
+
return key;
|
|
2135
|
+
default:
|
|
2136
|
+
unexpected();
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
function as_name() {
|
|
2141
|
+
var name = S.token.value;
|
|
2142
|
+
expect_token("name");
|
|
2143
|
+
return name;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
function _make_symbol(type, token) {
|
|
2147
|
+
var name = token.value;
|
|
2148
|
+
switch (name) {
|
|
2149
|
+
case "await":
|
|
2150
|
+
if (S.in_async) unexpected(token);
|
|
2151
|
+
break;
|
|
2152
|
+
case "super":
|
|
2153
|
+
type = AST_Super;
|
|
2154
|
+
break;
|
|
2155
|
+
case "this":
|
|
2156
|
+
type = AST_This;
|
|
2157
|
+
break;
|
|
2158
|
+
case "yield":
|
|
2159
|
+
if (S.in_generator) unexpected(token);
|
|
2160
|
+
break;
|
|
2161
|
+
}
|
|
2162
|
+
return new type({
|
|
2163
|
+
name: "" + name,
|
|
2164
|
+
start: token,
|
|
2165
|
+
end: token,
|
|
2166
|
+
});
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
function strict_verify_symbol(sym) {
|
|
2170
|
+
if (sym.name == "arguments" || sym.name == "eval" || sym.name == "let")
|
|
2171
|
+
token_error(sym.start, "Unexpected " + sym.name + " in strict mode");
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
function as_symbol(type, no_error) {
|
|
2175
|
+
if (!is("name")) {
|
|
2176
|
+
if (!no_error) croak("Name expected");
|
|
2177
|
+
return null;
|
|
2178
|
+
}
|
|
2179
|
+
var sym = _make_symbol(type, S.token);
|
|
2180
|
+
if (S.input.has_directive("use strict") && sym instanceof AST_SymbolDeclaration) {
|
|
2181
|
+
strict_verify_symbol(sym);
|
|
2182
|
+
}
|
|
2183
|
+
next();
|
|
2184
|
+
return sym;
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
function maybe_destructured(type) {
|
|
2188
|
+
var start = S.token;
|
|
2189
|
+
if (is("punc", "[")) {
|
|
2190
|
+
next();
|
|
2191
|
+
var elements = expr_list("]", !options.strict, true, function() {
|
|
2192
|
+
return maybe_default(type);
|
|
2193
|
+
});
|
|
2194
|
+
return new AST_DestructuredArray({
|
|
2195
|
+
start: start,
|
|
2196
|
+
elements: elements,
|
|
2197
|
+
rest: elements.rest || null,
|
|
2198
|
+
end: prev(),
|
|
2199
|
+
});
|
|
2200
|
+
}
|
|
2201
|
+
if (is("punc", "{")) {
|
|
2202
|
+
next();
|
|
2203
|
+
var first = true, a = [], rest = null;
|
|
2204
|
+
while (!is("punc", "}")) {
|
|
2205
|
+
if (first) first = false; else expect(",");
|
|
2206
|
+
// allow trailing comma
|
|
2207
|
+
if (!options.strict && is("punc", "}")) break;
|
|
2208
|
+
var key_start = S.token;
|
|
2209
|
+
if (is("punc", "[") || is_token(peek(), "punc", ":")) {
|
|
2210
|
+
var key = as_property_key();
|
|
2211
|
+
expect(":");
|
|
2212
|
+
a.push(new AST_DestructuredKeyVal({
|
|
2213
|
+
start: key_start,
|
|
2214
|
+
key: key,
|
|
2215
|
+
value: maybe_default(type),
|
|
2216
|
+
end: prev(),
|
|
2217
|
+
}));
|
|
2218
|
+
continue;
|
|
2219
|
+
}
|
|
2220
|
+
if (is("operator", "...")) {
|
|
2221
|
+
next();
|
|
2222
|
+
rest = maybe_destructured(type);
|
|
2223
|
+
break;
|
|
2224
|
+
}
|
|
2225
|
+
var name = as_symbol(type);
|
|
2226
|
+
if (is("operator", "=")) {
|
|
2227
|
+
next();
|
|
2228
|
+
name = new AST_DefaultValue({
|
|
2229
|
+
start: name.start,
|
|
2230
|
+
name: name,
|
|
2231
|
+
value: maybe_assign(),
|
|
2232
|
+
end: prev(),
|
|
2233
|
+
});
|
|
2234
|
+
}
|
|
2235
|
+
a.push(new AST_DestructuredKeyVal({
|
|
2236
|
+
start: key_start,
|
|
2237
|
+
key: key_start.value,
|
|
2238
|
+
value: name,
|
|
2239
|
+
end: prev(),
|
|
2240
|
+
}));
|
|
2241
|
+
}
|
|
2242
|
+
expect("}");
|
|
2243
|
+
return new AST_DestructuredObject({
|
|
2244
|
+
start: start,
|
|
2245
|
+
properties: a,
|
|
2246
|
+
rest: rest,
|
|
2247
|
+
end: prev(),
|
|
2248
|
+
});
|
|
2249
|
+
}
|
|
2250
|
+
return as_symbol(type);
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
function maybe_default(type) {
|
|
2254
|
+
var start = S.token;
|
|
2255
|
+
var name = maybe_destructured(type);
|
|
2256
|
+
if (!is("operator", "=")) return name;
|
|
2257
|
+
next();
|
|
2258
|
+
return new AST_DefaultValue({
|
|
2259
|
+
start: start,
|
|
2260
|
+
name: name,
|
|
2261
|
+
value: maybe_assign(),
|
|
2262
|
+
end: prev(),
|
|
2263
|
+
});
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
function template(tag) {
|
|
2267
|
+
var start = tag ? tag.start : S.token;
|
|
2268
|
+
var read = S.input.context().read_template;
|
|
2269
|
+
var strings = [];
|
|
2270
|
+
var expressions = [];
|
|
2271
|
+
while (read(strings)) {
|
|
2272
|
+
next();
|
|
2273
|
+
expressions.push(expression());
|
|
2274
|
+
if (!is("punc", "}")) unexpected();
|
|
2275
|
+
}
|
|
2276
|
+
next();
|
|
2277
|
+
return new AST_Template({
|
|
2278
|
+
start: start,
|
|
2279
|
+
expressions: expressions,
|
|
2280
|
+
strings: strings,
|
|
2281
|
+
tag: tag,
|
|
2282
|
+
end: prev(),
|
|
2283
|
+
});
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
function subscripts(expr, allow_calls) {
|
|
2287
|
+
var start = expr.start;
|
|
2288
|
+
var optional = null;
|
|
2289
|
+
while (true) {
|
|
2290
|
+
if (is("operator", "?") && is_token(peek(), "punc", ".")) {
|
|
2291
|
+
next();
|
|
2292
|
+
next();
|
|
2293
|
+
optional = expr;
|
|
2294
|
+
}
|
|
2295
|
+
if (is("punc", "[")) {
|
|
2296
|
+
next();
|
|
2297
|
+
var prop = expression();
|
|
2298
|
+
expect("]");
|
|
2299
|
+
expr = new AST_Sub({
|
|
2300
|
+
start: start,
|
|
2301
|
+
optional: optional === expr,
|
|
2302
|
+
expression: expr,
|
|
2303
|
+
property: prop,
|
|
2304
|
+
end: prev(),
|
|
2305
|
+
});
|
|
2306
|
+
} else if (allow_calls && is("punc", "(")) {
|
|
2307
|
+
next();
|
|
2308
|
+
expr = new AST_Call({
|
|
2309
|
+
start: start,
|
|
2310
|
+
optional: optional === expr,
|
|
2311
|
+
expression: expr,
|
|
2312
|
+
args: expr_list(")", !options.strict),
|
|
2313
|
+
end: prev(),
|
|
2314
|
+
});
|
|
2315
|
+
} else if (optional === expr || is("punc", ".")) {
|
|
2316
|
+
if (optional !== expr) next();
|
|
2317
|
+
expr = new AST_Dot({
|
|
2318
|
+
start: start,
|
|
2319
|
+
optional: optional === expr,
|
|
2320
|
+
expression: expr,
|
|
2321
|
+
property: as_name(),
|
|
2322
|
+
end: prev(),
|
|
2323
|
+
});
|
|
2324
|
+
} else if (is("punc", "`")) {
|
|
2325
|
+
if (optional) croak("Invalid template on optional chain");
|
|
2326
|
+
expr = template(expr);
|
|
2327
|
+
} else {
|
|
2328
|
+
break;
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
if (optional) expr.terminal = true;
|
|
2332
|
+
if (expr instanceof AST_Call && !expr.pure) {
|
|
2333
|
+
var start = expr.start;
|
|
2334
|
+
var comments = start.comments_before;
|
|
2335
|
+
var i = HOP(start, "comments_before_length") ? start.comments_before_length : comments.length;
|
|
2336
|
+
while (--i >= 0) {
|
|
2337
|
+
if (/[@#]__PURE__/.test(comments[i].value)) {
|
|
2338
|
+
expr.pure = true;
|
|
2339
|
+
break;
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
return expr;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
function maybe_unary(no_in) {
|
|
2347
|
+
var start = S.token;
|
|
2348
|
+
if (S.in_async && is("name", "await")) {
|
|
2349
|
+
if (S.in_funarg === S.in_function) croak("Invalid use of await in function argument");
|
|
2350
|
+
S.input.context().regex_allowed = true;
|
|
2351
|
+
next();
|
|
2352
|
+
return new AST_Await({
|
|
2353
|
+
start: start,
|
|
2354
|
+
expression: maybe_unary(no_in),
|
|
2355
|
+
end: prev(),
|
|
2356
|
+
});
|
|
2357
|
+
}
|
|
2358
|
+
if (S.in_generator && is("name", "yield")) {
|
|
2359
|
+
if (S.in_funarg === S.in_function) croak("Invalid use of yield in function argument");
|
|
2360
|
+
S.input.context().regex_allowed = true;
|
|
2361
|
+
next();
|
|
2362
|
+
var exp = null;
|
|
2363
|
+
var nested = false;
|
|
2364
|
+
if (is("operator", "*")) {
|
|
2365
|
+
next();
|
|
2366
|
+
exp = maybe_assign(no_in);
|
|
2367
|
+
nested = true;
|
|
2368
|
+
} else if (is("punc") ? !PUNC_AFTER_EXPRESSION[S.token.value] : !can_insert_semicolon()) {
|
|
2369
|
+
exp = maybe_assign(no_in);
|
|
2370
|
+
}
|
|
2371
|
+
return new AST_Yield({
|
|
2372
|
+
start: start,
|
|
2373
|
+
expression: exp,
|
|
2374
|
+
nested: nested,
|
|
2375
|
+
end: prev(),
|
|
2376
|
+
});
|
|
2377
|
+
}
|
|
2378
|
+
if (is("operator") && UNARY_PREFIX[start.value]) {
|
|
2379
|
+
next();
|
|
2380
|
+
handle_regexp();
|
|
2381
|
+
var ex = make_unary(AST_UnaryPrefix, start, maybe_unary(no_in));
|
|
2382
|
+
ex.start = start;
|
|
2383
|
+
ex.end = prev();
|
|
2384
|
+
return ex;
|
|
2385
|
+
}
|
|
2386
|
+
var val = expr_atom(true);
|
|
2387
|
+
while (is("operator") && UNARY_POSTFIX[S.token.value] && !has_newline_before(S.token)) {
|
|
2388
|
+
val = make_unary(AST_UnaryPostfix, S.token, val);
|
|
2389
|
+
val.start = start;
|
|
2390
|
+
val.end = S.token;
|
|
2391
|
+
next();
|
|
2392
|
+
}
|
|
2393
|
+
return val;
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
function make_unary(ctor, token, expr) {
|
|
2397
|
+
var op = token.value;
|
|
2398
|
+
switch (op) {
|
|
2399
|
+
case "++":
|
|
2400
|
+
case "--":
|
|
2401
|
+
if (!is_assignable(expr))
|
|
2402
|
+
token_error(token, "Invalid use of " + op + " operator");
|
|
2403
|
+
break;
|
|
2404
|
+
case "delete":
|
|
2405
|
+
if (expr instanceof AST_SymbolRef && S.input.has_directive("use strict"))
|
|
2406
|
+
token_error(expr.start, "Calling delete on expression not allowed in strict mode");
|
|
2407
|
+
break;
|
|
2408
|
+
}
|
|
2409
|
+
return new ctor({ operator: op, expression: expr });
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
var expr_op = function(left, min_precision, no_in) {
|
|
2413
|
+
var op = is("operator") ? S.token.value : null;
|
|
2414
|
+
if (op == "in" && no_in) op = null;
|
|
2415
|
+
var precision = op != null ? PRECEDENCE[op] : null;
|
|
2416
|
+
if (precision != null && precision > min_precision) {
|
|
2417
|
+
next();
|
|
2418
|
+
var right = expr_op(maybe_unary(no_in), op == "**" ? precision - 1 : precision, no_in);
|
|
2419
|
+
return expr_op(new AST_Binary({
|
|
2420
|
+
start : left.start,
|
|
2421
|
+
left : left,
|
|
2422
|
+
operator : op,
|
|
2423
|
+
right : right,
|
|
2424
|
+
end : right.end,
|
|
2425
|
+
}), min_precision, no_in);
|
|
2426
|
+
}
|
|
2427
|
+
return left;
|
|
2428
|
+
};
|
|
2429
|
+
|
|
2430
|
+
function expr_ops(no_in) {
|
|
2431
|
+
return expr_op(maybe_unary(no_in), 0, no_in);
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
var maybe_conditional = function(no_in) {
|
|
2435
|
+
var start = S.token;
|
|
2436
|
+
var expr = expr_ops(no_in);
|
|
2437
|
+
if (is("operator", "?")) {
|
|
2438
|
+
next();
|
|
2439
|
+
var yes = maybe_assign();
|
|
2440
|
+
expect(":");
|
|
2441
|
+
return new AST_Conditional({
|
|
2442
|
+
start : start,
|
|
2443
|
+
condition : expr,
|
|
2444
|
+
consequent : yes,
|
|
2445
|
+
alternative : maybe_assign(no_in),
|
|
2446
|
+
end : prev()
|
|
2447
|
+
});
|
|
2448
|
+
}
|
|
2449
|
+
return expr;
|
|
2450
|
+
};
|
|
2451
|
+
|
|
2452
|
+
function is_assignable(expr) {
|
|
2453
|
+
return expr instanceof AST_PropAccess && !expr.optional || expr instanceof AST_SymbolRef;
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
function to_destructured(node) {
|
|
2457
|
+
if (node instanceof AST_Array) {
|
|
2458
|
+
var rest = null;
|
|
2459
|
+
if (node.elements[node.elements.length - 1] instanceof AST_Spread) {
|
|
2460
|
+
rest = to_destructured(node.elements.pop().expression);
|
|
2461
|
+
if (!(rest instanceof AST_Destructured || is_assignable(rest))) return node;
|
|
2462
|
+
}
|
|
2463
|
+
var elements = node.elements.map(to_destructured);
|
|
2464
|
+
return all(elements, function(node) {
|
|
2465
|
+
return node instanceof AST_DefaultValue
|
|
2466
|
+
|| node instanceof AST_Destructured
|
|
2467
|
+
|| node instanceof AST_Hole
|
|
2468
|
+
|| is_assignable(node);
|
|
2469
|
+
}) ? new AST_DestructuredArray({
|
|
2470
|
+
start: node.start,
|
|
2471
|
+
elements: elements,
|
|
2472
|
+
rest: rest,
|
|
2473
|
+
end: node.end,
|
|
2474
|
+
}) : node;
|
|
2475
|
+
}
|
|
2476
|
+
if (node instanceof AST_Assign) {
|
|
2477
|
+
var name = to_destructured(node.left);
|
|
2478
|
+
return name instanceof AST_Destructured || is_assignable(name) ? new AST_DefaultValue({
|
|
2479
|
+
start: node.start,
|
|
2480
|
+
name: name,
|
|
2481
|
+
value: node.right,
|
|
2482
|
+
end: node.end,
|
|
2483
|
+
}) : node;
|
|
2484
|
+
}
|
|
2485
|
+
if (!(node instanceof AST_Object)) return node;
|
|
2486
|
+
var rest = null;
|
|
2487
|
+
if (node.properties[node.properties.length - 1] instanceof AST_Spread) {
|
|
2488
|
+
rest = to_destructured(node.properties.pop().expression);
|
|
2489
|
+
if (!(rest instanceof AST_Destructured || is_assignable(rest))) return node;
|
|
2490
|
+
}
|
|
2491
|
+
var props = [];
|
|
2492
|
+
for (var i = 0; i < node.properties.length; i++) {
|
|
2493
|
+
var prop = node.properties[i];
|
|
2494
|
+
if (!(prop instanceof AST_ObjectKeyVal)) return node;
|
|
2495
|
+
var value = to_destructured(prop.value);
|
|
2496
|
+
if (!(value instanceof AST_DefaultValue || value instanceof AST_Destructured || is_assignable(value))) {
|
|
2497
|
+
return node;
|
|
2498
|
+
}
|
|
2499
|
+
props.push(new AST_DestructuredKeyVal({
|
|
2500
|
+
start: prop.start,
|
|
2501
|
+
key: prop.key,
|
|
2502
|
+
value: value,
|
|
2503
|
+
end: prop.end,
|
|
2504
|
+
}));
|
|
2505
|
+
}
|
|
2506
|
+
return new AST_DestructuredObject({
|
|
2507
|
+
start: node.start,
|
|
2508
|
+
properties: props,
|
|
2509
|
+
rest: rest,
|
|
2510
|
+
end: node.end,
|
|
2511
|
+
});
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
function maybe_assign(no_in) {
|
|
2515
|
+
var start = S.token;
|
|
2516
|
+
var left = maybe_conditional(no_in), val = S.token.value;
|
|
2517
|
+
if (is("operator") && ASSIGNMENT[val]) {
|
|
2518
|
+
if (is_assignable(left) || val == "=" && (left = to_destructured(left)) instanceof AST_Destructured) {
|
|
2519
|
+
next();
|
|
2520
|
+
return new AST_Assign({
|
|
2521
|
+
start : start,
|
|
2522
|
+
left : left,
|
|
2523
|
+
operator : val,
|
|
2524
|
+
right : maybe_assign(no_in),
|
|
2525
|
+
end : prev()
|
|
2526
|
+
});
|
|
2527
|
+
}
|
|
2528
|
+
croak("Invalid assignment");
|
|
2529
|
+
}
|
|
2530
|
+
return left;
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
function expression(no_in, maybe_arrow) {
|
|
2534
|
+
var start = S.token;
|
|
2535
|
+
var exprs = [];
|
|
2536
|
+
while (true) {
|
|
2537
|
+
if (maybe_arrow && is("operator", "...")) {
|
|
2538
|
+
next();
|
|
2539
|
+
exprs.rest = maybe_destructured(AST_SymbolFunarg);
|
|
2540
|
+
break;
|
|
2541
|
+
}
|
|
2542
|
+
exprs.push(maybe_assign(no_in));
|
|
2543
|
+
if (!is("punc", ",")) break;
|
|
2544
|
+
next();
|
|
2545
|
+
if (maybe_arrow && is("punc", ")") && is_token(peek(), "punc", "=>")) break;
|
|
2546
|
+
}
|
|
2547
|
+
return exprs.length == 1 && !exprs.rest ? exprs[0] : new AST_Sequence({
|
|
2548
|
+
start: start,
|
|
2549
|
+
expressions: exprs,
|
|
2550
|
+
end: prev(),
|
|
2551
|
+
});
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
function in_loop(cont) {
|
|
2555
|
+
++S.in_loop;
|
|
2556
|
+
var ret = cont();
|
|
2557
|
+
--S.in_loop;
|
|
2558
|
+
return ret;
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
if (options.expression) {
|
|
2562
|
+
handle_regexp();
|
|
2563
|
+
var exp = expression();
|
|
2564
|
+
expect_token("eof");
|
|
2565
|
+
return exp;
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
return function() {
|
|
2569
|
+
var start = S.token;
|
|
2570
|
+
var body = [];
|
|
2571
|
+
if (options.module) {
|
|
2572
|
+
S.in_async = true;
|
|
2573
|
+
S.input.add_directive("use strict");
|
|
2574
|
+
}
|
|
2575
|
+
S.input.push_directives_stack();
|
|
2576
|
+
while (!is("eof"))
|
|
2577
|
+
body.push(statement(true));
|
|
2578
|
+
S.input.pop_directives_stack();
|
|
2579
|
+
var end = prev() || start;
|
|
2580
|
+
var toplevel = options.toplevel;
|
|
2581
|
+
if (toplevel) {
|
|
2582
|
+
toplevel.body = toplevel.body.concat(body);
|
|
2583
|
+
toplevel.end = end;
|
|
2584
|
+
} else {
|
|
2585
|
+
toplevel = new AST_Toplevel({ start: start, body: body, end: end });
|
|
2586
|
+
}
|
|
2587
|
+
return toplevel;
|
|
2588
|
+
}();
|
|
2589
|
+
}
|