tnp 21.0.295 → 21.0.299
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/VERIFIED-BUILD-DATA.jsonc +3 -3
- package/browser/fesm2022/tnp-browser.mjs +33 -19
- package/browser/fesm2022/tnp-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/tnp-browser.d.ts +15 -4
- package/browser-prod/fesm2022/tnp-browser-prod.mjs +34 -20
- package/browser-prod/fesm2022/tnp-browser-prod.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/browser-prod/types/tnp-browser-prod.d.ts +15 -4
- package/browser-prod/types/tnp-browser-prod.d.ts.map +1 -1
- package/browser-prod.split-namespaces.json +4 -0
- package/cli.js +1474 -603
- package/full-dts/build-info._auto-generated_.d.ts +1 -1
- package/full-dts/constants.d.ts +2 -1
- package/full-dts/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.d.ts +7 -0
- package/full-dts/project/abstract/cloud-flare-projects/cloud-flare-project.d.ts +1 -1
- package/full-dts/project/abstract/cloud-flare-projects/cloud-flare-projects.utils.d.ts +2 -0
- package/full-dts/project/abstract/project.d.ts +2 -0
- package/full-dts/project/abstract/proxy-cloned-project.d.ts +8 -0
- package/full-dts/project/abstract/proxy-command.d.ts +1 -0
- package/full-dts/project/abstract/quick-fixes.d.ts +2 -0
- package/full-dts/project/abstract/sub-project.d.ts +1 -1
- package/full-dts/project/cli/cli-GENERATE.d.ts +1 -0
- package/full-dts/project/cli/cli-PROXY.d.ts +10 -0
- package/full-dts/project/cli/cli-_GLOBAL_.d.ts +1 -1
- package/full-dts/project/cli/index.d.ts +2 -0
- package/full-dts/vscode-plugin/vscode-compare-menu.d.ts +3 -0
- package/full-dts/vscode-plugin/vscode-is-taon-project.d.ts +3 -0
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/constants.d.ts +2 -1
- package/lib/constants.js +5 -4
- package/lib/constants.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.d.ts +6 -0
- package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.js +83 -0
- package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.js.map +1 -0
- package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js +6 -67
- package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js.map +1 -1
- package/lib/project/abstract/artifacts/artifacts-manager.js +39 -18
- package/lib/project/abstract/artifacts/artifacts-manager.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-standalone.js +8 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-standalone.js.map +1 -1
- package/lib/project/abstract/cloud-flare-projects/cloud-flare-custom-worker.js +16 -2
- package/lib/project/abstract/cloud-flare-projects/cloud-flare-custom-worker.js.map +1 -1
- package/lib/project/abstract/cloud-flare-projects/cloud-flare-project.d.ts +1 -1
- package/lib/project/abstract/cloud-flare-projects/cloud-flare-project.js +24 -3
- package/lib/project/abstract/cloud-flare-projects/cloud-flare-project.js.map +1 -1
- package/lib/project/abstract/cloud-flare-projects/cloud-flare-projects.utils.d.ts +2 -0
- package/lib/project/abstract/cloud-flare-projects/cloud-flare-projects.utils.js.map +1 -1
- package/lib/project/abstract/git.js +1 -1
- package/lib/project/abstract/git.js.map +1 -1
- package/lib/project/abstract/project.d.ts +2 -0
- package/lib/project/abstract/project.js +3 -6
- package/lib/project/abstract/project.js.map +1 -1
- package/lib/project/abstract/proxy-cloned-project.d.ts +7 -0
- package/lib/project/abstract/proxy-cloned-project.js +38 -0
- package/lib/project/abstract/proxy-cloned-project.js.map +1 -0
- package/lib/project/abstract/proxy-command.d.ts +1 -0
- package/lib/project/abstract/proxy-command.js +5 -0
- package/lib/project/abstract/proxy-command.js.map +1 -0
- package/lib/project/abstract/quick-fixes.d.ts +2 -0
- package/lib/project/abstract/quick-fixes.js +20 -10
- package/lib/project/abstract/quick-fixes.js.map +1 -1
- package/lib/project/abstract/release-process/release-process.js +1 -0
- package/lib/project/abstract/release-process/release-process.js.map +1 -1
- package/lib/project/abstract/sub-project.d.ts +1 -1
- package/lib/project/abstract/sub-project.js +2 -2
- package/lib/project/abstract/sub-project.js.map +1 -1
- package/lib/project/cli/cli-GENERATE.d.ts +1 -0
- package/lib/project/cli/cli-GENERATE.js +12 -0
- package/lib/project/cli/cli-GENERATE.js.map +1 -1
- package/lib/project/cli/cli-PROXY.d.ts +9 -0
- package/lib/project/cli/cli-PROXY.js +35 -0
- package/lib/project/cli/cli-PROXY.js.map +1 -0
- package/lib/project/cli/cli-SUB_PROJECT.js +28 -11
- package/lib/project/cli/cli-SUB_PROJECT.js.map +1 -1
- package/lib/project/cli/cli-_GLOBAL_.d.ts +1 -1
- package/lib/project/cli/cli-_GLOBAL_.js +76 -9
- package/lib/project/cli/cli-_GLOBAL_.js.map +1 -1
- package/lib/project/cli/index.d.ts +2 -0
- package/lib/project/cli/index.js +2 -0
- package/lib/project/cli/index.js.map +1 -1
- package/lib/start-cli.js +1 -2
- package/lib/start-cli.js.map +1 -1
- package/lib/vscode-plugin/vscode-compare-menu.d.ts +2 -0
- package/lib/vscode-plugin/vscode-compare-menu.js +79 -0
- package/lib/vscode-plugin/vscode-compare-menu.js.map +1 -0
- package/lib/vscode-plugin/vscode-ext-methods.js +11 -0
- package/lib/vscode-plugin/vscode-ext-methods.js.map +1 -1
- package/lib/vscode-plugin/vscode-is-taon-project.d.ts +2 -0
- package/lib/vscode-plugin/vscode-is-taon-project.js +21 -0
- package/lib/vscode-plugin/vscode-is-taon-project.js.map +1 -0
- package/lib/vscode-plugin/vscode-menu-items.js +14 -10
- package/lib/vscode-plugin/vscode-menu-items.js.map +1 -1
- package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js +1 -1
- package/lib-esm/lib/constants.d.ts +2 -1
- package/lib-esm/lib/constants.js +2 -1
- package/lib-esm/lib/constants.js.map +1 -1
- package/lib-esm/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.d.ts +6 -0
- package/lib-esm/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.js +80 -0
- package/lib-esm/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.js.map +1 -0
- package/lib-esm/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js +7 -68
- package/lib-esm/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js.map +1 -1
- package/lib-esm/lib/project/abstract/artifacts/artifacts-manager.js +40 -19
- package/lib-esm/lib/project/abstract/artifacts/artifacts-manager.js.map +1 -1
- package/lib-esm/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/utils-code-cut.test.d.ts +1 -0
- package/lib-esm/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-standalone.js +8 -0
- package/lib-esm/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-standalone.js.map +1 -1
- package/lib-esm/lib/project/abstract/cloud-flare-projects/cloud-flare-custom-worker.js +17 -3
- package/lib-esm/lib/project/abstract/cloud-flare-projects/cloud-flare-custom-worker.js.map +1 -1
- package/lib-esm/lib/project/abstract/cloud-flare-projects/cloud-flare-project.d.ts +1 -1
- package/lib-esm/lib/project/abstract/cloud-flare-projects/cloud-flare-project.js +24 -3
- package/lib-esm/lib/project/abstract/cloud-flare-projects/cloud-flare-project.js.map +1 -1
- package/lib-esm/lib/project/abstract/cloud-flare-projects/cloud-flare-projects.utils.d.ts +2 -0
- package/lib-esm/lib/project/abstract/cloud-flare-projects/cloud-flare-projects.utils.js.map +1 -1
- package/lib-esm/lib/project/abstract/git.js +1 -1
- package/lib-esm/lib/project/abstract/git.js.map +1 -1
- package/lib-esm/lib/project/abstract/project.d.ts +2 -0
- package/lib-esm/lib/project/abstract/project.js +4 -7
- package/lib-esm/lib/project/abstract/project.js.map +1 -1
- package/lib-esm/lib/project/abstract/proxy-cloned-project.d.ts +7 -0
- package/lib-esm/lib/project/abstract/proxy-cloned-project.js +34 -0
- package/lib-esm/lib/project/abstract/proxy-cloned-project.js.map +1 -0
- package/lib-esm/lib/project/abstract/proxy-command.d.ts +1 -0
- package/lib-esm/lib/project/abstract/proxy-command.js +2 -0
- package/lib-esm/lib/project/abstract/proxy-command.js.map +1 -0
- package/lib-esm/lib/project/abstract/quick-fixes.d.ts +2 -0
- package/lib-esm/lib/project/abstract/quick-fixes.js +20 -10
- package/lib-esm/lib/project/abstract/quick-fixes.js.map +1 -1
- package/lib-esm/lib/project/abstract/release-process/release-process.js +1 -0
- package/lib-esm/lib/project/abstract/release-process/release-process.js.map +1 -1
- package/lib-esm/lib/project/abstract/sub-project.d.ts +1 -1
- package/lib-esm/lib/project/abstract/sub-project.js +2 -2
- package/lib-esm/lib/project/abstract/sub-project.js.map +1 -1
- package/lib-esm/lib/project/cli/cli-GENERATE.d.ts +1 -0
- package/lib-esm/lib/project/cli/cli-GENERATE.js +12 -0
- package/lib-esm/lib/project/cli/cli-GENERATE.js.map +1 -1
- package/lib-esm/lib/project/cli/cli-PROXY.d.ts +9 -0
- package/lib-esm/lib/project/cli/cli-PROXY.js +31 -0
- package/lib-esm/lib/project/cli/cli-PROXY.js.map +1 -0
- package/lib-esm/lib/project/cli/cli-SUB_PROJECT.js +28 -11
- package/lib-esm/lib/project/cli/cli-SUB_PROJECT.js.map +1 -1
- package/lib-esm/lib/project/cli/cli-_GLOBAL_.d.ts +1 -1
- package/lib-esm/lib/project/cli/cli-_GLOBAL_.js +76 -9
- package/lib-esm/lib/project/cli/cli-_GLOBAL_.js.map +1 -1
- package/lib-esm/lib/project/cli/index.d.ts +2 -0
- package/lib-esm/lib/project/cli/index.js +2 -0
- package/lib-esm/lib/project/cli/index.js.map +1 -1
- package/lib-esm/lib/start-cli.js +1 -2
- package/lib-esm/lib/start-cli.js.map +1 -1
- package/lib-esm/lib/vscode-plugin/vscode-compare-menu.d.ts +2 -0
- package/lib-esm/lib/vscode-plugin/vscode-compare-menu.js +76 -0
- package/lib-esm/lib/vscode-plugin/vscode-compare-menu.js.map +1 -0
- package/lib-esm/lib/vscode-plugin/vscode-ext-methods.js +11 -0
- package/lib-esm/lib/vscode-plugin/vscode-ext-methods.js.map +1 -1
- package/lib-esm/lib/vscode-plugin/vscode-is-taon-project.d.ts +2 -0
- package/lib-esm/lib/vscode-plugin/vscode-is-taon-project.js +18 -0
- package/lib-esm/lib/vscode-plugin/vscode-is-taon-project.js.map +1 -0
- package/lib-esm/lib/vscode-plugin/vscode-menu-items.js +14 -10
- package/lib-esm/lib/vscode-plugin/vscode-menu-items.js.map +1 -1
- package/lib-prod/app-utils.js.map +1 -1
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/constants.d.ts +2 -1
- package/lib-prod/constants.js +2 -1
- package/lib-prod/constants.js.map +1 -1
- package/lib-prod/framework-utils.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/project/abstract/artifacts/__helpers__/environment-config/environment-config.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/__helpers__/inside-structures/structs/base-inside-struct.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/__helpers__/production-build.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.d.ts +4 -0
- package/lib-prod/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.js +79 -0
- package/lib-prod/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.js.map +1 -0
- package/lib-prod/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js +8 -69
- package/lib-prod/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/angular-node-app/tools/app-hosts-recreate-helper.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/angular-node-app/tools/migrations-helper.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/artifacts-manager.js +40 -19
- package/lib-prod/project/abstract/artifacts/artifacts-manager.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/base-artifact.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/electron-app/artifact-electron-app.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/app-routes-autogen-provider.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/code-split-process.enum.d.ts +8 -10
- package/lib-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/code-split-process.enum.js +43 -185
- package/lib-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/code-split-process.enum.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/code-split-process.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/file-split-process.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-standalone.js +8 -0
- package/lib-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-standalone.js.map +1 -1
- package/lib-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/index-autogen-provider.js.map +1 -1
- package/lib-prod/project/abstract/cloud-flare-projects/cloud-flare-custom-worker.js +17 -3
- package/lib-prod/project/abstract/cloud-flare-projects/cloud-flare-custom-worker.js.map +1 -1
- package/lib-prod/project/abstract/cloud-flare-projects/cloud-flare-project.d.ts +1 -1
- package/lib-prod/project/abstract/cloud-flare-projects/cloud-flare-project.js +24 -3
- package/lib-prod/project/abstract/cloud-flare-projects/cloud-flare-project.js.map +1 -1
- package/lib-prod/project/abstract/cloud-flare-projects/cloud-flare-projects.utils.d.ts +2 -0
- package/lib-prod/project/abstract/cloud-flare-projects/cloud-flare-projects.utils.js.map +1 -1
- package/lib-prod/project/abstract/framework.js.map +1 -1
- package/lib-prod/project/abstract/git.js +1 -1
- package/lib-prod/project/abstract/git.js.map +1 -1
- package/lib-prod/project/abstract/project.d.ts +2 -0
- package/lib-prod/project/abstract/project.js +4 -7
- package/lib-prod/project/abstract/project.js.map +1 -1
- package/lib-prod/project/abstract/proxy-cloned-project.d.ts +7 -0
- package/lib-prod/project/abstract/proxy-cloned-project.js +34 -0
- package/lib-prod/project/abstract/proxy-cloned-project.js.map +1 -0
- package/lib-prod/project/abstract/quick-fixes.d.ts +2 -0
- package/lib-prod/project/abstract/quick-fixes.js +20 -10
- package/lib-prod/project/abstract/quick-fixes.js.map +1 -1
- package/lib-prod/project/abstract/refactor.js.map +1 -1
- package/lib-prod/project/abstract/release-process/release-process.js +1 -0
- package/lib-prod/project/abstract/release-process/release-process.js.map +1 -1
- package/lib-prod/project/abstract/secret-env.js.map +1 -1
- package/lib-prod/project/abstract/sub-project.d.ts +1 -1
- package/lib-prod/project/abstract/sub-project.js +2 -2
- package/lib-prod/project/abstract/sub-project.js.map +1 -1
- package/lib-prod/project/abstract/taon-worker/deployments/deployments.controller.js.map +1 -1
- package/lib-prod/project/abstract/taonJson.js.map +1 -1
- package/lib-prod/project/abstract/translations-18n.js.map +1 -1
- package/lib-prod/project/cli/cli-ENV.js.map +1 -1
- package/lib-prod/project/cli/cli-GENERATE.d.ts +1 -0
- package/lib-prod/project/cli/cli-GENERATE.js +13 -1
- package/lib-prod/project/cli/cli-GENERATE.js.map +1 -1
- package/lib-prod/project/cli/cli-MIGRATION.js.map +1 -1
- package/lib-prod/project/cli/cli-PROXY.d.ts +9 -0
- package/lib-prod/project/cli/cli-PROXY.js +31 -0
- package/lib-prod/project/cli/cli-PROXY.js.map +1 -0
- package/lib-prod/project/cli/cli-REFACTOR.js.map +1 -1
- package/lib-prod/project/cli/cli-SUB_PROJECT.js +28 -11
- package/lib-prod/project/cli/cli-SUB_PROJECT.js.map +1 -1
- package/lib-prod/project/cli/cli-_GLOBAL_.d.ts +1 -1
- package/lib-prod/project/cli/cli-_GLOBAL_.js +78 -11
- package/lib-prod/project/cli/cli-_GLOBAL_.js.map +1 -1
- package/lib-prod/project/cli/index.d.ts +2 -0
- package/lib-prod/project/cli/index.js +2 -0
- package/lib-prod/project/cli/index.js.map +1 -1
- package/lib-prod/start-cli.js +1 -2
- package/lib-prod/start-cli.js.map +1 -1
- package/lib-prod/vscode-plugin/vscode-compare-menu.d.ts +2 -0
- package/lib-prod/vscode-plugin/vscode-compare-menu.js +76 -0
- package/lib-prod/vscode-plugin/vscode-compare-menu.js.map +1 -0
- package/lib-prod/vscode-plugin/vscode-ext-methods.js +11 -0
- package/lib-prod/vscode-plugin/vscode-ext-methods.js.map +1 -1
- package/lib-prod/vscode-plugin/vscode-is-taon-project.d.ts +2 -0
- package/lib-prod/vscode-plugin/vscode-is-taon-project.js +18 -0
- package/lib-prod/vscode-plugin/vscode-is-taon-project.js.map +1 -0
- package/lib-prod/vscode-plugin/vscode-menu-items.js +14 -10
- package/lib-prod/vscode-plugin/vscode-menu-items.js.map +1 -1
- package/lib-prod.split-namespaces.json +4 -0
- package/package.json +16 -1
- package/ts-source/browser-code/build-info._auto-generated_.ts +1 -1
- package/ts-source/browser-code/constants.ts +2 -1
- package/ts-source/browser-code/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.ts +22 -0
- package/ts-source/browser-code/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.ts +4 -1
- package/ts-source/browser-code/project/abstract/artifacts/artifacts-manager.ts +1 -1
- package/ts-source/browser-code/project/abstract/cloud-flare-projects/cloud-flare-custom-worker.ts +3 -2
- package/ts-source/browser-code/project/abstract/cloud-flare-projects/cloud-flare-project.ts +3 -2
- package/ts-source/browser-code/project/abstract/cloud-flare-projects/cloud-flare-projects.utils.ts +3 -1
- package/ts-source/browser-code/project/abstract/project.ts +2 -6
- package/ts-source/browser-code/project/abstract/proxy-cloned-project.ts +40 -0
- package/ts-source/browser-code/project/abstract/quick-fixes.ts +6 -0
- package/ts-source/browser-code/project/abstract/sub-project.ts +1 -1
- package/ts-source/browser-code/project/cli/cli-GENERATE.ts +3 -0
- package/ts-source/browser-code/project/cli/cli-PROXY.ts +44 -0
- package/ts-source/browser-code/project/cli/cli-_GLOBAL_.ts +5 -5
- package/ts-source/browser-code/vscode-plugin/vscode-compare-menu.ts +89 -0
- package/ts-source/browser-code/vscode-plugin/vscode-is-taon-project.ts +30 -0
- package/ts-source/browser-code/vscode-plugin/vscode-menu-items.ts +0 -10
- package/ts-source/browser-code-prod/app-utils.ts +1 -1
- package/ts-source/browser-code-prod/build-info._auto-generated_.ts +1 -1
- package/ts-source/browser-code-prod/constants.ts +2 -1
- package/ts-source/browser-code-prod/framework-utils.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/__helpers__/environment-config/environment-config.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/__helpers__/inside-structures/structs/base-inside-struct.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/__helpers__/production-build.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.split-namespaces.json +10 -0
- package/ts-source/browser-code-prod/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.ts +20 -0
- package/ts-source/browser-code-prod/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.ts +4 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/angular-node-app/tools/app-hosts-recreate-helper.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/angular-node-app/tools/migrations-helper.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/artifacts-manager.ts +2 -2
- package/ts-source/browser-code-prod/project/abstract/artifacts/base-artifact.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/electron-app/artifact-electron-app.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/app-routes-autogen-provider.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/code-split-process.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/file-split-process.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/utils-code-cut.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/index-autogen-provider.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/taon-build-observer.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/cloud-flare-projects/cloud-flare-custom-worker.ts +3 -2
- package/ts-source/browser-code-prod/project/abstract/cloud-flare-projects/cloud-flare-project.ts +4 -3
- package/ts-source/browser-code-prod/project/abstract/cloud-flare-projects/cloud-flare-projects.utils.ts +4 -2
- package/ts-source/browser-code-prod/project/abstract/framework.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/project.ts +2 -6
- package/ts-source/browser-code-prod/project/abstract/proxy-cloned-project.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/project/abstract/proxy-cloned-project.ts +40 -0
- package/ts-source/browser-code-prod/project/abstract/quick-fixes.ts +7 -1
- package/ts-source/browser-code-prod/project/abstract/refactor.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/secret-env.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/sub-project.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/taon-worker/deployments/deployments.controller.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/taonJson.ts +1 -1
- package/ts-source/browser-code-prod/project/abstract/translations-18n.ts +1 -1
- package/ts-source/browser-code-prod/project/cli/cli-ENV.ts +1 -1
- package/ts-source/browser-code-prod/project/cli/cli-GENERATE.ts +4 -1
- package/ts-source/browser-code-prod/project/cli/cli-MIGRATION.ts +1 -1
- package/ts-source/browser-code-prod/project/cli/cli-PROXY.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/project/cli/cli-PROXY.ts +44 -0
- package/ts-source/browser-code-prod/project/cli/cli-REFACTOR.ts +1 -1
- package/ts-source/browser-code-prod/project/cli/cli-_GLOBAL_.ts +5 -5
- package/ts-source/browser-code-prod/vscode-plugin/vscode-compare-menu.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/vscode-plugin/vscode-compare-menu.ts +89 -0
- package/ts-source/browser-code-prod/vscode-plugin/vscode-is-taon-project.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/vscode-plugin/vscode-is-taon-project.ts +30 -0
- package/ts-source/browser-code-prod/vscode-plugin/vscode-menu-items.ts +0 -10
- package/ts-source/websql-code/build-info._auto-generated_.ts +1 -1
- package/ts-source/websql-code/constants.ts +2 -1
- package/ts-source/websql-code/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.ts +22 -0
- package/ts-source/websql-code/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.ts +4 -1
- package/ts-source/websql-code/project/abstract/artifacts/artifacts-manager.ts +1 -1
- package/ts-source/websql-code/project/abstract/cloud-flare-projects/cloud-flare-custom-worker.ts +3 -2
- package/ts-source/websql-code/project/abstract/cloud-flare-projects/cloud-flare-project.ts +3 -2
- package/ts-source/websql-code/project/abstract/cloud-flare-projects/cloud-flare-projects.utils.ts +3 -1
- package/ts-source/websql-code/project/abstract/project.ts +2 -6
- package/ts-source/websql-code/project/abstract/proxy-cloned-project.ts +40 -0
- package/ts-source/websql-code/project/abstract/quick-fixes.ts +6 -0
- package/ts-source/websql-code/project/abstract/sub-project.ts +1 -1
- package/ts-source/websql-code/project/cli/cli-GENERATE.ts +3 -0
- package/ts-source/websql-code/project/cli/cli-PROXY.ts +44 -0
- package/ts-source/websql-code/project/cli/cli-_GLOBAL_.ts +5 -5
- package/ts-source/websql-code/vscode-plugin/vscode-compare-menu.ts +89 -0
- package/ts-source/websql-code/vscode-plugin/vscode-is-taon-project.ts +30 -0
- package/ts-source/websql-code/vscode-plugin/vscode-menu-items.ts +0 -10
- package/ts-source/websql-code-prod/app-utils.ts +1 -1
- package/ts-source/websql-code-prod/build-info._auto-generated_.ts +1 -1
- package/ts-source/websql-code-prod/constants.ts +2 -1
- package/ts-source/websql-code-prod/framework-utils.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/__helpers__/environment-config/environment-config.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/__helpers__/inside-structures/structs/base-inside-struct.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/__helpers__/production-build.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.split-namespaces.json +10 -0
- package/ts-source/websql-code-prod/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.ts +20 -0
- package/ts-source/websql-code-prod/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.ts +4 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/angular-node-app/tools/app-hosts-recreate-helper.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/angular-node-app/tools/migrations-helper.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/artifacts-manager.ts +2 -2
- package/ts-source/websql-code-prod/project/abstract/artifacts/base-artifact.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/electron-app/artifact-electron-app.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/app-routes-autogen-provider.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/code-split-process.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/file-split-process.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/utils-code-cut.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/index-autogen-provider.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/artifacts/npm-lib-and-cli-tool/tools/taon-build-observer.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/cloud-flare-projects/cloud-flare-custom-worker.ts +3 -2
- package/ts-source/websql-code-prod/project/abstract/cloud-flare-projects/cloud-flare-project.ts +4 -3
- package/ts-source/websql-code-prod/project/abstract/cloud-flare-projects/cloud-flare-projects.utils.ts +4 -2
- package/ts-source/websql-code-prod/project/abstract/framework.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/project.ts +2 -6
- package/ts-source/websql-code-prod/project/abstract/proxy-cloned-project.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/project/abstract/proxy-cloned-project.ts +40 -0
- package/ts-source/websql-code-prod/project/abstract/quick-fixes.ts +7 -1
- package/ts-source/websql-code-prod/project/abstract/refactor.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/secret-env.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/sub-project.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/taon-worker/deployments/deployments.controller.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/taonJson.ts +1 -1
- package/ts-source/websql-code-prod/project/abstract/translations-18n.ts +1 -1
- package/ts-source/websql-code-prod/project/cli/cli-ENV.ts +1 -1
- package/ts-source/websql-code-prod/project/cli/cli-GENERATE.ts +4 -1
- package/ts-source/websql-code-prod/project/cli/cli-MIGRATION.ts +1 -1
- package/ts-source/websql-code-prod/project/cli/cli-PROXY.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/project/cli/cli-PROXY.ts +44 -0
- package/ts-source/websql-code-prod/project/cli/cli-REFACTOR.ts +1 -1
- package/ts-source/websql-code-prod/project/cli/cli-_GLOBAL_.ts +5 -5
- package/ts-source/websql-code-prod/vscode-plugin/vscode-compare-menu.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/vscode-plugin/vscode-compare-menu.ts +89 -0
- package/ts-source/websql-code-prod/vscode-plugin/vscode-is-taon-project.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/vscode-plugin/vscode-is-taon-project.ts +30 -0
- package/ts-source/websql-code-prod/vscode-plugin/vscode-menu-items.ts +0 -10
- package/websql/fesm2022/tnp-websql.mjs +33 -19
- package/websql/fesm2022/tnp-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/tnp-websql.d.ts +15 -4
- package/websql-prod/fesm2022/tnp-websql-prod.mjs +34 -20
- package/websql-prod/fesm2022/tnp-websql-prod.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/websql-prod/types/tnp-websql-prod.d.ts +15 -4
- package/websql-prod/types/tnp-websql-prod.d.ts.map +1 -1
- package/websql-prod.split-namespaces.json +4 -0
- package/full-dts/project/abstract/taon-worker/secrets-keychain/secrets-keychain.repository copy.d.ts +0 -10
- package/full-dts/project/cli/cli-LANG copy.d.ts +0 -16
- package/full-dts/wrap-env.d.ts +0 -4
- package/lib/project/abstract/taon-worker/secrets-keychain/secrets-keychain.repository copy.d.ts +0 -9
- package/lib/project/abstract/taon-worker/secrets-keychain/secrets-keychain.repository copy.js +0 -37
- package/lib/project/abstract/taon-worker/secrets-keychain/secrets-keychain.repository copy.js.map +0 -1
- package/lib/project/cli/cli-LANG copy.d.ts +0 -15
- package/lib/project/cli/cli-LANG copy.js +0 -46
- package/lib/project/cli/cli-LANG copy.js.map +0 -1
- package/lib/wrap-env.d.ts +0 -3
- package/lib/wrap-env.js +0 -10
- package/lib/wrap-env.js.map +0 -1
- package/lib-esm/lib/project/abstract/taon-worker/secrets-keychain/secrets-keychain.repository copy.d.ts +0 -9
- package/lib-esm/lib/project/abstract/taon-worker/secrets-keychain/secrets-keychain.repository copy.js +0 -28
- package/lib-esm/lib/project/abstract/taon-worker/secrets-keychain/secrets-keychain.repository copy.js.map +0 -1
- package/lib-esm/lib/project/cli/cli-LANG copy.d.ts +0 -15
- package/lib-esm/lib/project/cli/cli-LANG copy.js +0 -42
- package/lib-esm/lib/project/cli/cli-LANG copy.js.map +0 -1
- package/lib-esm/lib/wrap-env.d.ts +0 -3
- package/lib-esm/lib/wrap-env.js +0 -7
- package/lib-esm/lib/wrap-env.js.map +0 -1
package/cli.js
CHANGED
|
@@ -17834,8 +17834,9 @@ var require_on_finished = __commonJS({
|
|
|
17834
17834
|
}
|
|
17835
17835
|
function isFinished(msg) {
|
|
17836
17836
|
var socket = msg.socket;
|
|
17837
|
-
|
|
17838
|
-
|
|
17837
|
+
var finished = writableEnded(msg);
|
|
17838
|
+
if (typeof finished === "boolean") {
|
|
17839
|
+
return Boolean(finished || socket && !socket.writable);
|
|
17839
17840
|
}
|
|
17840
17841
|
if (typeof msg.complete === "boolean") {
|
|
17841
17842
|
return Boolean(msg.upgrade || !socket || !socket.readable || msg.complete && !msg.readable);
|
|
@@ -17914,6 +17915,9 @@ var require_on_finished = __commonJS({
|
|
|
17914
17915
|
}
|
|
17915
17916
|
return res.runInAsyncScope.bind(res, fn, null);
|
|
17916
17917
|
}
|
|
17918
|
+
function writableEnded(res) {
|
|
17919
|
+
return typeof res.writableEnded === "boolean" ? res.writableEnded : res.finished;
|
|
17920
|
+
}
|
|
17917
17921
|
}
|
|
17918
17922
|
});
|
|
17919
17923
|
|
|
@@ -17936,6 +17940,12 @@ var require_read = __commonJS({
|
|
|
17936
17940
|
req._body = true;
|
|
17937
17941
|
var encoding = opts.encoding !== null ? opts.encoding : null;
|
|
17938
17942
|
var verify = opts.verify;
|
|
17943
|
+
if (verify && encoding !== null && !iconv.encodingExists(encoding)) {
|
|
17944
|
+
return next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', {
|
|
17945
|
+
charset: encoding.toLowerCase(),
|
|
17946
|
+
type: "charset.unsupported"
|
|
17947
|
+
}));
|
|
17948
|
+
}
|
|
17939
17949
|
try {
|
|
17940
17950
|
stream = contentstream(req, debug, opts.inflate);
|
|
17941
17951
|
length = stream.length;
|
|
@@ -17945,12 +17955,6 @@ var require_read = __commonJS({
|
|
|
17945
17955
|
}
|
|
17946
17956
|
opts.length = length;
|
|
17947
17957
|
opts.encoding = verify ? null : encoding;
|
|
17948
|
-
if (opts.encoding === null && encoding !== null && !iconv.encodingExists(encoding)) {
|
|
17949
|
-
return next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', {
|
|
17950
|
-
charset: encoding.toLowerCase(),
|
|
17951
|
-
type: "charset.unsupported"
|
|
17952
|
-
}));
|
|
17953
|
-
}
|
|
17954
17958
|
debug("read body");
|
|
17955
17959
|
getBody(stream, opts, function(error2, body) {
|
|
17956
17960
|
if (error2) {
|
|
@@ -17972,6 +17976,17 @@ var require_read = __commonJS({
|
|
|
17972
17976
|
});
|
|
17973
17977
|
return;
|
|
17974
17978
|
}
|
|
17979
|
+
if (stream !== req) {
|
|
17980
|
+
if (typeof req.unpipe === "function") {
|
|
17981
|
+
req.unpipe(stream);
|
|
17982
|
+
} else {
|
|
17983
|
+
unpipe(req);
|
|
17984
|
+
}
|
|
17985
|
+
stream.on("error", function() {
|
|
17986
|
+
});
|
|
17987
|
+
destroy(stream, true);
|
|
17988
|
+
req.resume();
|
|
17989
|
+
}
|
|
17975
17990
|
if (verify) {
|
|
17976
17991
|
try {
|
|
17977
17992
|
debug("verify body");
|
|
@@ -28832,6 +28847,17 @@ var require_utils = __commonJS({
|
|
|
28832
28847
|
var setMaxIndex = function setMaxIndex2(obj, maxIndex) {
|
|
28833
28848
|
overflowChannel.set(obj, maxIndex);
|
|
28834
28849
|
};
|
|
28850
|
+
var conflictChannel = getSideChannel();
|
|
28851
|
+
var markConflict = function markConflict2(obj, maxIndex) {
|
|
28852
|
+
conflictChannel.set(obj, maxIndex);
|
|
28853
|
+
return obj;
|
|
28854
|
+
};
|
|
28855
|
+
var isConflict = function isConflict2(obj) {
|
|
28856
|
+
return conflictChannel.has(obj);
|
|
28857
|
+
};
|
|
28858
|
+
var getConflictIndex = function getConflictIndex2(obj) {
|
|
28859
|
+
return conflictChannel.get(obj);
|
|
28860
|
+
};
|
|
28835
28861
|
var hexTable = (function() {
|
|
28836
28862
|
var array = [];
|
|
28837
28863
|
for (var i = 0; i < 256; ++i) {
|
|
@@ -28875,6 +28901,27 @@ var require_utils = __commonJS({
|
|
|
28875
28901
|
obj[key] = value;
|
|
28876
28902
|
}
|
|
28877
28903
|
};
|
|
28904
|
+
var maxNumericIndex = function maxNumericIndex2(obj, min2) {
|
|
28905
|
+
var max2 = min2;
|
|
28906
|
+
var keys2 = Object.keys(obj);
|
|
28907
|
+
for (var i = 0; i < keys2.length; ++i) {
|
|
28908
|
+
var num = parseInt(keys2[i], 10);
|
|
28909
|
+
if (String(num) === keys2[i] && num > max2) {
|
|
28910
|
+
max2 = num;
|
|
28911
|
+
}
|
|
28912
|
+
}
|
|
28913
|
+
return max2;
|
|
28914
|
+
};
|
|
28915
|
+
var limitedPair = function limitedPair2(first2, second, options2) {
|
|
28916
|
+
var pair = [first2, second];
|
|
28917
|
+
if (options2 && typeof options2.arrayLimit === "number" && pair.length > options2.arrayLimit) {
|
|
28918
|
+
if (options2.throwOnLimitExceeded) {
|
|
28919
|
+
throw new RangeError("Array limit exceeded. Only " + options2.arrayLimit + " element" + (options2.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
28920
|
+
}
|
|
28921
|
+
return markOverflow(arrayToObject(pair, options2), 1);
|
|
28922
|
+
}
|
|
28923
|
+
return pair;
|
|
28924
|
+
};
|
|
28878
28925
|
var merge = function merge2(target, source, options2) {
|
|
28879
28926
|
if (!source) {
|
|
28880
28927
|
return target;
|
|
@@ -28894,13 +28941,21 @@ var require_utils = __commonJS({
|
|
|
28894
28941
|
var newIndex = getMaxIndex(target) + 1;
|
|
28895
28942
|
target[newIndex] = source;
|
|
28896
28943
|
setMaxIndex(target, newIndex);
|
|
28944
|
+
} else if (options2 && options2.strictMerge && isConflict(target)) {
|
|
28945
|
+
var nextConflict = getConflictIndex(target) + 1;
|
|
28946
|
+
if (options2.throwOnLimitExceeded && typeof options2.arrayLimit === "number" && nextConflict >= options2.arrayLimit) {
|
|
28947
|
+
throw new RangeError("Array limit exceeded. Only " + options2.arrayLimit + " element" + (options2.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
28948
|
+
}
|
|
28949
|
+
target[nextConflict] = source;
|
|
28950
|
+
markConflict(target, nextConflict);
|
|
28897
28951
|
} else if (options2 && options2.strictMerge) {
|
|
28898
|
-
|
|
28952
|
+
var conflict = limitedPair(target, source, options2);
|
|
28953
|
+
return isArray(conflict) ? markConflict(conflict, 1) : conflict;
|
|
28899
28954
|
} else if (options2 && (options2.plainObjects || options2.allowPrototypes) || !has3.call(Object.prototype, source)) {
|
|
28900
28955
|
target[source] = true;
|
|
28901
28956
|
}
|
|
28902
28957
|
} else {
|
|
28903
|
-
return
|
|
28958
|
+
return limitedPair(target, source, options2);
|
|
28904
28959
|
}
|
|
28905
28960
|
return target;
|
|
28906
28961
|
}
|
|
@@ -28926,6 +28981,9 @@ var require_utils = __commonJS({
|
|
|
28926
28981
|
var mergeTarget = target;
|
|
28927
28982
|
if (isArray(target) && !isArray(source)) {
|
|
28928
28983
|
mergeTarget = arrayToObject(target, options2);
|
|
28984
|
+
if (isConflict(target)) {
|
|
28985
|
+
markConflict(mergeTarget, target.length - 1);
|
|
28986
|
+
}
|
|
28929
28987
|
}
|
|
28930
28988
|
if (isArray(target) && isArray(source)) {
|
|
28931
28989
|
source.forEach(function(item, i) {
|
|
@@ -28956,7 +29014,7 @@ var require_utils = __commonJS({
|
|
|
28956
29014
|
setProperty(acc, key, value);
|
|
28957
29015
|
}
|
|
28958
29016
|
if (isOverflow(source) && !isOverflow(acc)) {
|
|
28959
|
-
markOverflow(acc, getMaxIndex(source));
|
|
29017
|
+
markOverflow(acc, maxNumericIndex(acc, getMaxIndex(source)));
|
|
28960
29018
|
}
|
|
28961
29019
|
if (isOverflow(acc)) {
|
|
28962
29020
|
var keyNum = parseInt(key, 10);
|
|
@@ -28964,6 +29022,12 @@ var require_utils = __commonJS({
|
|
|
28964
29022
|
setMaxIndex(acc, keyNum);
|
|
28965
29023
|
}
|
|
28966
29024
|
}
|
|
29025
|
+
if (isConflict(acc)) {
|
|
29026
|
+
var conflictKey = parseInt(key, 10);
|
|
29027
|
+
if (String(conflictKey) === key && conflictKey > getConflictIndex(acc)) {
|
|
29028
|
+
markConflict(acc, conflictKey);
|
|
29029
|
+
}
|
|
29030
|
+
}
|
|
28967
29031
|
return acc;
|
|
28968
29032
|
}, mergeTarget);
|
|
28969
29033
|
};
|
|
@@ -28974,6 +29038,9 @@ var require_utils = __commonJS({
|
|
|
28974
29038
|
}, target);
|
|
28975
29039
|
};
|
|
28976
29040
|
var decode = function(str, defaultDecoder, charset) {
|
|
29041
|
+
if (typeof str === "string" && str.indexOf("%") === -1) {
|
|
29042
|
+
return str.indexOf("+") === -1 ? str : str.replace(/\+/g, " ");
|
|
29043
|
+
}
|
|
28977
29044
|
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
28978
29045
|
if (charset === "iso-8859-1") {
|
|
28979
29046
|
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -28984,6 +29051,52 @@ var require_utils = __commonJS({
|
|
|
28984
29051
|
return strWithoutPlus;
|
|
28985
29052
|
}
|
|
28986
29053
|
};
|
|
29054
|
+
var hasToPrimitive = typeof Symbol === "function" && typeof Symbol.toPrimitive === "symbol";
|
|
29055
|
+
var arrayJoin = Array.prototype.join;
|
|
29056
|
+
var arrayToString = Array.prototype.toString;
|
|
29057
|
+
var objectToString = Object.prototype.toString;
|
|
29058
|
+
var toCoercible = function toCoercible2(value, joining) {
|
|
29059
|
+
if (!value || typeof value !== "object" && typeof value !== "function") {
|
|
29060
|
+
return value;
|
|
29061
|
+
}
|
|
29062
|
+
if (hasToPrimitive && value[Symbol.toPrimitive] != null) {
|
|
29063
|
+
return value;
|
|
29064
|
+
}
|
|
29065
|
+
if (isArray(value) && value.toString === arrayToString && value.join === arrayJoin) {
|
|
29066
|
+
var ancestors = joining || getSideChannel();
|
|
29067
|
+
if (ancestors.has(value)) {
|
|
29068
|
+
return "";
|
|
29069
|
+
}
|
|
29070
|
+
ancestors.set(value, true);
|
|
29071
|
+
var copy;
|
|
29072
|
+
for (var i = 0; i < value.length; i += 1) {
|
|
29073
|
+
var item = value[i];
|
|
29074
|
+
var coerced = toCoercible2(item, ancestors);
|
|
29075
|
+
if (!copy && coerced !== item) {
|
|
29076
|
+
copy = [];
|
|
29077
|
+
for (var j = 0; j < i; j += 1) {
|
|
29078
|
+
copy[j] = value[j];
|
|
29079
|
+
}
|
|
29080
|
+
}
|
|
29081
|
+
if (copy) {
|
|
29082
|
+
copy[i] = coerced;
|
|
29083
|
+
}
|
|
29084
|
+
}
|
|
29085
|
+
ancestors["delete"](value);
|
|
29086
|
+
return copy || value;
|
|
29087
|
+
}
|
|
29088
|
+
if (typeof value.toString === "function") {
|
|
29089
|
+
return value;
|
|
29090
|
+
}
|
|
29091
|
+
var valueOf = value.valueOf;
|
|
29092
|
+
if (typeof valueOf === "function") {
|
|
29093
|
+
var primitive = valueOf.call(value);
|
|
29094
|
+
if (!primitive || typeof primitive !== "object" && typeof primitive !== "function") {
|
|
29095
|
+
return String(primitive);
|
|
29096
|
+
}
|
|
29097
|
+
}
|
|
29098
|
+
return objectToString.call(value);
|
|
29099
|
+
};
|
|
28987
29100
|
var limit = 1024;
|
|
28988
29101
|
var encode = function encode2(str, defaultEncoder, charset, kind, format) {
|
|
28989
29102
|
if (str.length === 0) {
|
|
@@ -28993,12 +29106,12 @@ var require_utils = __commonJS({
|
|
|
28993
29106
|
if (typeof str === "symbol") {
|
|
28994
29107
|
string = Symbol.prototype.toString.call(str);
|
|
28995
29108
|
} else if (typeof str !== "string") {
|
|
28996
|
-
string = String(str);
|
|
29109
|
+
string = String(toCoercible(str));
|
|
28997
29110
|
}
|
|
28998
29111
|
if (charset === "iso-8859-1") {
|
|
28999
29112
|
return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
|
|
29000
29113
|
return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
|
|
29001
|
-
});
|
|
29114
|
+
}).replace(/\+/g, "%2B");
|
|
29002
29115
|
}
|
|
29003
29116
|
var out = "";
|
|
29004
29117
|
for (var j = 0; j < string.length; j += limit) {
|
|
@@ -29110,7 +29223,8 @@ var require_utils = __commonJS({
|
|
|
29110
29223
|
isRegExp,
|
|
29111
29224
|
markOverflow,
|
|
29112
29225
|
maybeMap,
|
|
29113
|
-
merge
|
|
29226
|
+
merge,
|
|
29227
|
+
toCoercible
|
|
29114
29228
|
};
|
|
29115
29229
|
}
|
|
29116
29230
|
});
|
|
@@ -29225,17 +29339,17 @@ var require_stringify = __commonJS({
|
|
|
29225
29339
|
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
29226
29340
|
if (encodeValuesOnly && encoder) {
|
|
29227
29341
|
obj = utils.maybeMap(obj, function(v) {
|
|
29228
|
-
return v == null ? v : encoder(v);
|
|
29342
|
+
return v == null ? v : encoder(v, defaults.encoder, charset, "value", format);
|
|
29229
29343
|
});
|
|
29230
29344
|
}
|
|
29231
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
29345
|
+
objKeys = [{ value: obj.length > 0 ? utils.toCoercible(obj).join(",") || null : void 0 }];
|
|
29232
29346
|
} else if (isArray(filter2)) {
|
|
29233
29347
|
objKeys = filter2;
|
|
29234
29348
|
} else {
|
|
29235
29349
|
var keys2 = Object.keys(obj);
|
|
29236
29350
|
objKeys = sort ? keys2.sort(sort) : keys2;
|
|
29237
29351
|
}
|
|
29238
|
-
var encodedPrefix =
|
|
29352
|
+
var encodedPrefix = String(prefix);
|
|
29239
29353
|
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
29240
29354
|
if (allowEmptyArrays && isArray(obj) && obj.length === 0 && Object.keys(obj).length === 0) {
|
|
29241
29355
|
return adjustedPrefix + "[]";
|
|
@@ -29306,7 +29420,7 @@ var require_stringify = __commonJS({
|
|
|
29306
29420
|
filter2 = opts.filter;
|
|
29307
29421
|
}
|
|
29308
29422
|
var arrayFormat;
|
|
29309
|
-
if (opts.arrayFormat
|
|
29423
|
+
if (has3.call(arrayPrefixGenerators, opts.arrayFormat)) {
|
|
29310
29424
|
arrayFormat = opts.arrayFormat;
|
|
29311
29425
|
} else if ("indices" in opts) {
|
|
29312
29426
|
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
@@ -29416,9 +29530,53 @@ var require_stringify = __commonJS({
|
|
|
29416
29530
|
var require_parse = __commonJS({
|
|
29417
29531
|
"tnp/node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
29418
29532
|
"use strict";
|
|
29533
|
+
var getSideChannel = require_side_channel();
|
|
29419
29534
|
var utils = require_utils();
|
|
29420
29535
|
var has3 = Object.prototype.hasOwnProperty;
|
|
29421
29536
|
var isArray = Array.isArray;
|
|
29537
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
29538
|
+
var isPlainContainer = function isPlainContainer2(value) {
|
|
29539
|
+
if (!value || typeof value !== "object") {
|
|
29540
|
+
return false;
|
|
29541
|
+
}
|
|
29542
|
+
if (isArray(value)) {
|
|
29543
|
+
return true;
|
|
29544
|
+
}
|
|
29545
|
+
var proto = getPrototypeOf(value);
|
|
29546
|
+
return proto === Object.prototype || proto === null;
|
|
29547
|
+
};
|
|
29548
|
+
var emptyCopyOf = function emptyCopyOf2(value) {
|
|
29549
|
+
if (isArray(value)) {
|
|
29550
|
+
var arr = [];
|
|
29551
|
+
arr.length = value.length;
|
|
29552
|
+
return arr;
|
|
29553
|
+
}
|
|
29554
|
+
return getPrototypeOf(value) === null ? { __proto__: null } : {};
|
|
29555
|
+
};
|
|
29556
|
+
var copyInput = function copyInput2(input) {
|
|
29557
|
+
var copies = getSideChannel();
|
|
29558
|
+
var result2 = {};
|
|
29559
|
+
var queue = [{ source: input, target: result2 }];
|
|
29560
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
29561
|
+
var source = queue[i].source;
|
|
29562
|
+
var target = queue[i].target;
|
|
29563
|
+
var keys2 = Object.keys(source);
|
|
29564
|
+
for (var j = 0; j < keys2.length; ++j) {
|
|
29565
|
+
var value = source[keys2[j]];
|
|
29566
|
+
if (isPlainContainer(value)) {
|
|
29567
|
+
if (!copies.has(value)) {
|
|
29568
|
+
var copy = emptyCopyOf(value);
|
|
29569
|
+
copies.set(value, copy);
|
|
29570
|
+
queue[queue.length] = { source: value, target: copy };
|
|
29571
|
+
}
|
|
29572
|
+
target[keys2[j]] = copies.get(value);
|
|
29573
|
+
} else {
|
|
29574
|
+
target[keys2[j]] = value;
|
|
29575
|
+
}
|
|
29576
|
+
}
|
|
29577
|
+
}
|
|
29578
|
+
return result2;
|
|
29579
|
+
};
|
|
29422
29580
|
var defaults = {
|
|
29423
29581
|
allowDots: false,
|
|
29424
29582
|
allowEmptyArrays: false,
|
|
@@ -29505,6 +29663,7 @@ var require_parse = __commonJS({
|
|
|
29505
29663
|
var part = parts[i];
|
|
29506
29664
|
var bracketEqualsPos = part.indexOf("]=");
|
|
29507
29665
|
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
29666
|
+
var isEmptyBracketKey = pos > 1 && part.slice(pos - 2, pos) === "[]";
|
|
29508
29667
|
var key;
|
|
29509
29668
|
var val;
|
|
29510
29669
|
if (pos === -1) {
|
|
@@ -29528,7 +29687,7 @@ var require_parse = __commonJS({
|
|
|
29528
29687
|
if (val && options2.interpretNumericEntities && charset === "iso-8859-1") {
|
|
29529
29688
|
val = interpretNumericEntities(String(val));
|
|
29530
29689
|
}
|
|
29531
|
-
if (
|
|
29690
|
+
if (isEmptyBracketKey) {
|
|
29532
29691
|
val = isArray(val) ? [val] : val;
|
|
29533
29692
|
}
|
|
29534
29693
|
if (options2.comma && isArray(val) && val.length > options2.arrayLimit) {
|
|
@@ -29536,7 +29695,7 @@ var require_parse = __commonJS({
|
|
|
29536
29695
|
}
|
|
29537
29696
|
if (key !== null) {
|
|
29538
29697
|
var existing = has3.call(obj, key);
|
|
29539
|
-
if (existing && (options2.duplicates === "combine" ||
|
|
29698
|
+
if (existing && (options2.duplicates === "combine" || isEmptyBracketKey)) {
|
|
29540
29699
|
obj[key] = utils.combine(
|
|
29541
29700
|
obj[key],
|
|
29542
29701
|
val,
|
|
@@ -29597,8 +29756,35 @@ var require_parse = __commonJS({
|
|
|
29597
29756
|
}
|
|
29598
29757
|
return leaf;
|
|
29599
29758
|
};
|
|
29759
|
+
var topLevelDotsToBrackets = function topLevelDotsToBrackets2(key) {
|
|
29760
|
+
var result2 = "";
|
|
29761
|
+
var depth = 0;
|
|
29762
|
+
for (var i = 0; i < key.length; i += 1) {
|
|
29763
|
+
var cu = key.charCodeAt(i);
|
|
29764
|
+
if (cu === 91) {
|
|
29765
|
+
depth += 1;
|
|
29766
|
+
result2 += "[";
|
|
29767
|
+
} else if (cu === 93) {
|
|
29768
|
+
if (depth > 0) {
|
|
29769
|
+
depth -= 1;
|
|
29770
|
+
}
|
|
29771
|
+
result2 += "]";
|
|
29772
|
+
} else if (cu === 46 && depth === 0 && i + 1 < key.length && key.charCodeAt(i + 1) !== 46 && key.charCodeAt(i + 1) !== 91) {
|
|
29773
|
+
var start = i + 1;
|
|
29774
|
+
var j = start;
|
|
29775
|
+
while (j < key.length && key.charCodeAt(j) !== 46 && key.charCodeAt(j) !== 91) {
|
|
29776
|
+
j += 1;
|
|
29777
|
+
}
|
|
29778
|
+
result2 += "[" + key.slice(start, j) + "]";
|
|
29779
|
+
i = j - 1;
|
|
29780
|
+
} else {
|
|
29781
|
+
result2 += key.charAt(i);
|
|
29782
|
+
}
|
|
29783
|
+
}
|
|
29784
|
+
return result2;
|
|
29785
|
+
};
|
|
29600
29786
|
var splitKeyIntoSegments = function splitKeyIntoSegments2(originalKey, options2) {
|
|
29601
|
-
var key = options2.allowDots ? originalKey
|
|
29787
|
+
var key = options2.allowDots ? topLevelDotsToBrackets(originalKey) : originalKey;
|
|
29602
29788
|
if (options2.depth <= 0) {
|
|
29603
29789
|
if (!options2.plainObjects && has3.call(Object.prototype, key)) {
|
|
29604
29790
|
if (!options2.allowPrototypes) {
|
|
@@ -29724,7 +29910,7 @@ var require_parse = __commonJS({
|
|
|
29724
29910
|
if (str === "" || str === null || typeof str === "undefined") {
|
|
29725
29911
|
return options2.plainObjects ? { __proto__: null } : {};
|
|
29726
29912
|
}
|
|
29727
|
-
var tempObj = typeof str === "string" ? parseValues(str, options2) : str;
|
|
29913
|
+
var tempObj = typeof str === "string" ? parseValues(str, options2) : copyInput(str);
|
|
29728
29914
|
var obj = options2.plainObjects ? { __proto__: null } : {};
|
|
29729
29915
|
var keys2 = Object.keys(tempObj);
|
|
29730
29916
|
for (var i = 0; i < keys2.length; ++i) {
|
|
@@ -139854,9 +140040,9 @@ ${core_imports_1.chalk.bold(`${this.command} ${this.args.join(" ")}`)}`));
|
|
|
139854
140040
|
const res = await UtilsExecProc2.spawnAsync(command, options2);
|
|
139855
140041
|
await res.waitUntilDoneOrThrow();
|
|
139856
140042
|
};
|
|
139857
|
-
UtilsExecProc2.executeUntilEndOrThrow = async (
|
|
139858
|
-
const child = UtilsExecProc2.spawnAsync(command,
|
|
139859
|
-
await child.waitUntilDoneOrThrow();
|
|
140043
|
+
UtilsExecProc2.executeUntilEndOrThrow = async (opt) => {
|
|
140044
|
+
const child = UtilsExecProc2.spawnAsync(opt.command, opt);
|
|
140045
|
+
await child.waitUntilDoneOrThrow(opt);
|
|
139860
140046
|
};
|
|
139861
140047
|
UtilsExecProc2.getStdoutWithoutShowingOrThrow = async ({ command, cwd, shell }) => {
|
|
139862
140048
|
const child = UtilsExecProc2.spawnAsync(command, { cwd, shell });
|
|
@@ -209508,7 +209694,8 @@ var require_constants15 = __commonJS({
|
|
|
209508
209694
|
"tnp/node_modules/taon/lib/constants.js"(exports2) {
|
|
209509
209695
|
"use strict";
|
|
209510
209696
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
209511
|
-
exports2.Replecables = exports2.apiPrefix = exports2.TaonBaseStorageRepositoryClassName = exports2.TaonBaseRepositoryClassName = exports2.CURRENT_HOST_URL = exports2.CURRENT_HOST_BACKEND_PORT = exports2.TAON_CONTEXT = exports2.TaonEntityKeysToOmitArr = void 0;
|
|
209697
|
+
exports2.Replecables = exports2.apiPrefix = exports2.TaonBaseStorageRepositoryClassName = exports2.TaonBaseRepositoryClassName = exports2.CURRENT_HOST_URL = exports2.CURRENT_HOST_BACKEND_PORT = exports2.TAON_CONTEXT = exports2.TaonEntityKeysToOmitArr = exports2.TAON_MIGRATION_META_TABLE_NAME = void 0;
|
|
209698
|
+
exports2.TAON_MIGRATION_META_TABLE_NAME = "TAON_MIGRATION_META";
|
|
209512
209699
|
exports2.TaonEntityKeysToOmitArr = [
|
|
209513
209700
|
"ctrl",
|
|
209514
209701
|
"clone",
|
|
@@ -309786,6 +309973,7 @@ var require_DataSource = __commonJS({
|
|
|
309786
309973
|
var DriverUtils_1 = require_DriverUtils();
|
|
309787
309974
|
var InstanceChecker_1 = require_InstanceChecker();
|
|
309788
309975
|
var constants_12 = require_constants16();
|
|
309976
|
+
var lib_13 = require_lib31();
|
|
309789
309977
|
var DataSource = class {
|
|
309790
309978
|
"@instanceof" = Symbol.for("DataSource");
|
|
309791
309979
|
SelectQueryBuilder = SelectQueryBuilder_1.SelectQueryBuilder;
|
|
@@ -310190,6 +310378,9 @@ var require_DataSource = __commonJS({
|
|
|
310190
310378
|
return this.entityMetadatas.find((metadata) => {
|
|
310191
310379
|
if (metadata.target === target)
|
|
310192
310380
|
return true;
|
|
310381
|
+
if (metadata.givenTableName === target[lib_13.CoreModels.ClassNameStaticProperty]) {
|
|
310382
|
+
return true;
|
|
310383
|
+
}
|
|
310193
310384
|
if (InstanceChecker_1.InstanceChecker.isEntitySchema(target)) {
|
|
310194
310385
|
return metadata.name === target.options.name;
|
|
310195
310386
|
}
|
|
@@ -312963,130 +313154,6 @@ var require_cloudflare_express_fake_server = __commonJS({
|
|
|
312963
313154
|
}
|
|
312964
313155
|
});
|
|
312965
313156
|
|
|
312966
|
-
// tnp/node_modules/taon/lib/models.js
|
|
312967
|
-
var require_models2 = __commonJS({
|
|
312968
|
-
"tnp/node_modules/taon/lib/models.js"(exports2) {
|
|
312969
|
-
"use strict";
|
|
312970
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
312971
|
-
exports2.Models = exports2.TaonTempRoutesFolder = exports2.TaonTempDatabasesFolder = exports2.BaseTaonClassesNames = exports2.TaonRestResponseWrapper = void 0;
|
|
312972
|
-
var lib_13 = require_lib36();
|
|
312973
|
-
var lib_22 = require_lib31();
|
|
312974
|
-
var TaonRestResponseWrapper = class extends lib_13.RestResponseWrapper {
|
|
312975
|
-
};
|
|
312976
|
-
exports2.TaonRestResponseWrapper = TaonRestResponseWrapper;
|
|
312977
|
-
exports2.BaseTaonClassesNames = [
|
|
312978
|
-
"BaseCrudController",
|
|
312979
|
-
"BaseController",
|
|
312980
|
-
"BaseAbstractEntity",
|
|
312981
|
-
"BaseEntity",
|
|
312982
|
-
"BaseContext",
|
|
312983
|
-
"BaseCustomRepository",
|
|
312984
|
-
"BaseFileUploadMiddleware",
|
|
312985
|
-
"BaseMiddleware",
|
|
312986
|
-
"BaseClass",
|
|
312987
|
-
"BaseInjector",
|
|
312988
|
-
"BaseMigration",
|
|
312989
|
-
"BaseProvider",
|
|
312990
|
-
"BaseRepository",
|
|
312991
|
-
"BaseSubscriberForEntity",
|
|
312992
|
-
"BaseCliWorkerController",
|
|
312993
|
-
"PortsController",
|
|
312994
|
-
"PortsContext"
|
|
312995
|
-
];
|
|
312996
|
-
exports2.TaonTempDatabasesFolder = "databases";
|
|
312997
|
-
exports2.TaonTempRoutesFolder = "routes";
|
|
312998
|
-
var Models;
|
|
312999
|
-
(function(Models2) {
|
|
313000
|
-
Models2.DatabasesFolder = exports2.TaonTempDatabasesFolder;
|
|
313001
|
-
let ClassType;
|
|
313002
|
-
(function(ClassType2) {
|
|
313003
|
-
ClassType2["ENTITY"] = "ENTITY";
|
|
313004
|
-
ClassType2["CONTROLLER"] = "CONTROLLER";
|
|
313005
|
-
ClassType2["REPOSITORY"] = "REPOSITORY";
|
|
313006
|
-
ClassType2["PROVIDER"] = "PROVIDER";
|
|
313007
|
-
ClassType2["SUBSCRIBER"] = "SUBSCRIBER";
|
|
313008
|
-
ClassType2["MIGRATION"] = "MIGRATION";
|
|
313009
|
-
ClassType2["MIDDLEWARE"] = "MIDDLEWARE";
|
|
313010
|
-
})(ClassType = Models2.ClassType || (Models2.ClassType = {}));
|
|
313011
|
-
Models2.ClassTypeKey = {
|
|
313012
|
-
[ClassType.ENTITY]: "entities",
|
|
313013
|
-
[ClassType.CONTROLLER]: "controllers",
|
|
313014
|
-
[ClassType.REPOSITORY]: "repositories",
|
|
313015
|
-
[ClassType.PROVIDER]: "providers",
|
|
313016
|
-
[ClassType.SUBSCRIBER]: "subscribers",
|
|
313017
|
-
[ClassType.MIGRATION]: "migrations",
|
|
313018
|
-
[ClassType.MIDDLEWARE]: "middlewares"
|
|
313019
|
-
};
|
|
313020
|
-
let DBRecreateMode;
|
|
313021
|
-
(function(DBRecreateMode2) {
|
|
313022
|
-
DBRecreateMode2["DROP_DB_MIGRATIONS"] = "DROP_DB__RUN_MIGRATIONS";
|
|
313023
|
-
DBRecreateMode2["PRESERVE_DATA_MIGRATIONS"] = "PRESERVE_DATA__RUN_MIGRATIONS";
|
|
313024
|
-
})(DBRecreateMode = Models2.DBRecreateMode || (Models2.DBRecreateMode = {}));
|
|
313025
|
-
class DatabaseConfigTypeOrm {
|
|
313026
|
-
/**
|
|
313027
|
-
* database name
|
|
313028
|
-
*/
|
|
313029
|
-
database;
|
|
313030
|
-
/**
|
|
313031
|
-
* only for file base db: sqlite, sqljs
|
|
313032
|
-
*/
|
|
313033
|
-
location;
|
|
313034
|
-
synchronize;
|
|
313035
|
-
dropSchema;
|
|
313036
|
-
type;
|
|
313037
|
-
/**
|
|
313038
|
-
* Persists db on disk/local-storage if serverless db
|
|
313039
|
-
*/
|
|
313040
|
-
autoSave;
|
|
313041
|
-
/**
|
|
313042
|
-
* for websql db mode
|
|
313043
|
-
* true by default
|
|
313044
|
-
*/
|
|
313045
|
-
useLocalForage;
|
|
313046
|
-
logging;
|
|
313047
|
-
databasePort;
|
|
313048
|
-
databaseHost;
|
|
313049
|
-
databaseUsername;
|
|
313050
|
-
databasePassword;
|
|
313051
|
-
}
|
|
313052
|
-
Models2.DatabaseConfigTypeOrm = DatabaseConfigTypeOrm;
|
|
313053
|
-
class KVDatabaseConfig {
|
|
313054
|
-
static from(databasePartialConfig) {
|
|
313055
|
-
return lib_22._.merge(new KVDatabaseConfig(), databasePartialConfig);
|
|
313056
|
-
}
|
|
313057
|
-
}
|
|
313058
|
-
Models2.KVDatabaseConfig = KVDatabaseConfig;
|
|
313059
|
-
class DatabaseConfig extends DatabaseConfigTypeOrm {
|
|
313060
|
-
/**
|
|
313061
|
-
* Default value 'DROP_ALL'.
|
|
313062
|
-
*
|
|
313063
|
-
* Tell framework what is happening with db
|
|
313064
|
-
* when context is starting.
|
|
313065
|
-
*/
|
|
313066
|
-
recreateMode;
|
|
313067
|
-
static from(databasePartialConfig) {
|
|
313068
|
-
return lib_22._.merge(new DatabaseConfig(), databasePartialConfig);
|
|
313069
|
-
}
|
|
313070
|
-
get databaseConfigTypeORM() {
|
|
313071
|
-
const result2 = lib_22._.cloneDeep(this);
|
|
313072
|
-
if (result2.recreateMode) {
|
|
313073
|
-
if (result2.recreateMode === "DROP_DB__RUN_MIGRATIONS") {
|
|
313074
|
-
result2.synchronize = true;
|
|
313075
|
-
result2.dropSchema = true;
|
|
313076
|
-
} else if (result2.recreateMode === "PRESERVE_DATA__RUN_MIGRATIONS") {
|
|
313077
|
-
result2.synchronize = false;
|
|
313078
|
-
result2.dropSchema = false;
|
|
313079
|
-
}
|
|
313080
|
-
}
|
|
313081
|
-
delete result2.recreateMode;
|
|
313082
|
-
return result2;
|
|
313083
|
-
}
|
|
313084
|
-
}
|
|
313085
|
-
Models2.DatabaseConfig = DatabaseConfig;
|
|
313086
|
-
})(Models || (exports2.Models = Models = {}));
|
|
313087
|
-
}
|
|
313088
|
-
});
|
|
313089
|
-
|
|
313090
313157
|
// tnp/node_modules/taon/lib/decorators/decorator-abstract-opt.js
|
|
313091
313158
|
var require_decorator_abstract_opt = __commonJS({
|
|
313092
313159
|
"tnp/node_modules/taon/lib/decorators/decorator-abstract-opt.js"(exports2) {
|
|
@@ -313564,28 +313631,153 @@ var require_class_helpers = __commonJS({
|
|
|
313564
313631
|
}
|
|
313565
313632
|
});
|
|
313566
313633
|
|
|
313634
|
+
// tnp/node_modules/taon/lib/models.js
|
|
313635
|
+
var require_models2 = __commonJS({
|
|
313636
|
+
"tnp/node_modules/taon/lib/models.js"(exports2) {
|
|
313637
|
+
"use strict";
|
|
313638
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
313639
|
+
exports2.Models = exports2.TaonTempRoutesFolder = exports2.TaonTempDatabasesFolder = exports2.BaseTaonClassesNames = exports2.TaonRestResponseWrapper = void 0;
|
|
313640
|
+
var lib_13 = require_lib36();
|
|
313641
|
+
var lib_22 = require_lib31();
|
|
313642
|
+
var TaonRestResponseWrapper = class extends lib_13.RestResponseWrapper {
|
|
313643
|
+
};
|
|
313644
|
+
exports2.TaonRestResponseWrapper = TaonRestResponseWrapper;
|
|
313645
|
+
exports2.BaseTaonClassesNames = [
|
|
313646
|
+
"BaseCrudController",
|
|
313647
|
+
"BaseController",
|
|
313648
|
+
"BaseAbstractEntity",
|
|
313649
|
+
"BaseEntity",
|
|
313650
|
+
"BaseContext",
|
|
313651
|
+
"BaseCustomRepository",
|
|
313652
|
+
"BaseFileUploadMiddleware",
|
|
313653
|
+
"BaseMiddleware",
|
|
313654
|
+
"BaseClass",
|
|
313655
|
+
"BaseInjector",
|
|
313656
|
+
"BaseMigration",
|
|
313657
|
+
"BaseProvider",
|
|
313658
|
+
"BaseRepository",
|
|
313659
|
+
"BaseSubscriberForEntity",
|
|
313660
|
+
"BaseCliWorkerController",
|
|
313661
|
+
"PortsController",
|
|
313662
|
+
"PortsContext"
|
|
313663
|
+
];
|
|
313664
|
+
exports2.TaonTempDatabasesFolder = "databases";
|
|
313665
|
+
exports2.TaonTempRoutesFolder = "routes";
|
|
313666
|
+
var Models;
|
|
313667
|
+
(function(Models2) {
|
|
313668
|
+
Models2.DatabasesFolder = exports2.TaonTempDatabasesFolder;
|
|
313669
|
+
let ClassType;
|
|
313670
|
+
(function(ClassType2) {
|
|
313671
|
+
ClassType2["ENTITY"] = "ENTITY";
|
|
313672
|
+
ClassType2["CONTROLLER"] = "CONTROLLER";
|
|
313673
|
+
ClassType2["REPOSITORY"] = "REPOSITORY";
|
|
313674
|
+
ClassType2["PROVIDER"] = "PROVIDER";
|
|
313675
|
+
ClassType2["SUBSCRIBER"] = "SUBSCRIBER";
|
|
313676
|
+
ClassType2["MIGRATION"] = "MIGRATION";
|
|
313677
|
+
ClassType2["MIDDLEWARE"] = "MIDDLEWARE";
|
|
313678
|
+
})(ClassType = Models2.ClassType || (Models2.ClassType = {}));
|
|
313679
|
+
Models2.ClassTypeKey = {
|
|
313680
|
+
[ClassType.ENTITY]: "entities",
|
|
313681
|
+
[ClassType.CONTROLLER]: "controllers",
|
|
313682
|
+
[ClassType.REPOSITORY]: "repositories",
|
|
313683
|
+
[ClassType.PROVIDER]: "providers",
|
|
313684
|
+
[ClassType.SUBSCRIBER]: "subscribers",
|
|
313685
|
+
[ClassType.MIGRATION]: "migrations",
|
|
313686
|
+
[ClassType.MIDDLEWARE]: "middlewares"
|
|
313687
|
+
};
|
|
313688
|
+
let DBRecreateMode;
|
|
313689
|
+
(function(DBRecreateMode2) {
|
|
313690
|
+
DBRecreateMode2["DROP_DB_MIGRATIONS"] = "DROP_DB__RUN_MIGRATIONS";
|
|
313691
|
+
DBRecreateMode2["PRESERVE_DATA_MIGRATIONS"] = "PRESERVE_DATA__RUN_MIGRATIONS";
|
|
313692
|
+
})(DBRecreateMode = Models2.DBRecreateMode || (Models2.DBRecreateMode = {}));
|
|
313693
|
+
class DatabaseConfigTypeOrm {
|
|
313694
|
+
/**
|
|
313695
|
+
* database name
|
|
313696
|
+
*/
|
|
313697
|
+
database;
|
|
313698
|
+
/**
|
|
313699
|
+
* only for file base db: sqlite, sqljs
|
|
313700
|
+
*/
|
|
313701
|
+
location;
|
|
313702
|
+
synchronize;
|
|
313703
|
+
dropSchema;
|
|
313704
|
+
type;
|
|
313705
|
+
/**
|
|
313706
|
+
* Persists db on disk/local-storage if serverless db
|
|
313707
|
+
*/
|
|
313708
|
+
autoSave;
|
|
313709
|
+
/**
|
|
313710
|
+
* for websql db mode
|
|
313711
|
+
* true by default
|
|
313712
|
+
*/
|
|
313713
|
+
useLocalForage;
|
|
313714
|
+
logging;
|
|
313715
|
+
databasePort;
|
|
313716
|
+
databaseHost;
|
|
313717
|
+
databaseUsername;
|
|
313718
|
+
databasePassword;
|
|
313719
|
+
}
|
|
313720
|
+
Models2.DatabaseConfigTypeOrm = DatabaseConfigTypeOrm;
|
|
313721
|
+
class KVDatabaseConfig {
|
|
313722
|
+
static from(databasePartialConfig) {
|
|
313723
|
+
return lib_22._.merge(new KVDatabaseConfig(), databasePartialConfig);
|
|
313724
|
+
}
|
|
313725
|
+
}
|
|
313726
|
+
Models2.KVDatabaseConfig = KVDatabaseConfig;
|
|
313727
|
+
class DatabaseConfig extends DatabaseConfigTypeOrm {
|
|
313728
|
+
/**
|
|
313729
|
+
* Default value 'DROP_ALL'.
|
|
313730
|
+
*
|
|
313731
|
+
* Tell framework what is happening with db
|
|
313732
|
+
* when context is starting.
|
|
313733
|
+
*/
|
|
313734
|
+
recreateMode;
|
|
313735
|
+
static from(databasePartialConfig) {
|
|
313736
|
+
return lib_22._.merge(new DatabaseConfig(), databasePartialConfig);
|
|
313737
|
+
}
|
|
313738
|
+
get databaseConfigTypeORM() {
|
|
313739
|
+
const result2 = lib_22._.cloneDeep(this);
|
|
313740
|
+
if (result2.recreateMode) {
|
|
313741
|
+
if (result2.recreateMode === "DROP_DB__RUN_MIGRATIONS") {
|
|
313742
|
+
result2.synchronize = true;
|
|
313743
|
+
result2.dropSchema = true;
|
|
313744
|
+
} else if (result2.recreateMode === "PRESERVE_DATA__RUN_MIGRATIONS") {
|
|
313745
|
+
result2.synchronize = false;
|
|
313746
|
+
result2.dropSchema = false;
|
|
313747
|
+
}
|
|
313748
|
+
}
|
|
313749
|
+
delete result2.recreateMode;
|
|
313750
|
+
return result2;
|
|
313751
|
+
}
|
|
313752
|
+
}
|
|
313753
|
+
Models2.DatabaseConfig = DatabaseConfig;
|
|
313754
|
+
})(Models || (exports2.Models = Models = {}));
|
|
313755
|
+
}
|
|
313756
|
+
});
|
|
313757
|
+
|
|
313567
313758
|
// tnp/node_modules/taon/lib/context-db-migrations.js
|
|
313568
313759
|
var require_context_db_migrations = __commonJS({
|
|
313569
313760
|
"tnp/node_modules/taon/lib/context-db-migrations.js"(exports2) {
|
|
313570
313761
|
"use strict";
|
|
313571
313762
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
313572
313763
|
exports2.ContextDbMigrations = void 0;
|
|
313573
|
-
var lib_13 =
|
|
313574
|
-
var
|
|
313764
|
+
var lib_13 = require_lib40();
|
|
313765
|
+
var lib_22 = require_lib31();
|
|
313766
|
+
var constants_12 = require_constants15();
|
|
313575
313767
|
var class_helpers_1 = require_class_helpers();
|
|
313576
|
-
var
|
|
313768
|
+
var models_1 = require_models2();
|
|
313577
313769
|
var ContextDbMigrations = class {
|
|
313578
313770
|
ctx;
|
|
313579
313771
|
//#region fields
|
|
313580
313772
|
//#region fields / migration table name
|
|
313581
|
-
DEFAULT_MIGRATION_TABLE_NAME =
|
|
313773
|
+
DEFAULT_MIGRATION_TABLE_NAME = constants_12.TAON_MIGRATION_META_TABLE_NAME;
|
|
313582
313774
|
//#endregion
|
|
313583
313775
|
//#region fields / migration statuses
|
|
313584
313776
|
MIGRATION_STATUS_COMPLETED = "completed";
|
|
313585
313777
|
MIGRATION_STATUS_PENDING = "pending";
|
|
313586
313778
|
//#endregion
|
|
313587
313779
|
//#region fields / migration table schema
|
|
313588
|
-
table = new
|
|
313780
|
+
table = new lib_13.Table({
|
|
313589
313781
|
name: this.DEFAULT_MIGRATION_TABLE_NAME,
|
|
313590
313782
|
columns: [
|
|
313591
313783
|
{
|
|
@@ -313661,7 +313853,7 @@ var require_context_db_migrations = __commonJS({
|
|
|
313661
313853
|
}
|
|
313662
313854
|
try {
|
|
313663
313855
|
await queryRunner.createTable(this.table);
|
|
313664
|
-
await queryRunner.createIndex(this.DEFAULT_MIGRATION_TABLE_NAME, new
|
|
313856
|
+
await queryRunner.createIndex(this.DEFAULT_MIGRATION_TABLE_NAME, new lib_13.TableIndex({
|
|
313665
313857
|
name: "IDX_NAME",
|
|
313666
313858
|
columnNames: ["name"]
|
|
313667
313859
|
}));
|
|
@@ -313682,12 +313874,12 @@ var require_context_db_migrations = __commonJS({
|
|
|
313682
313874
|
if (this.ctx.isRemoteHost || !this.ctx.connection) {
|
|
313683
313875
|
return;
|
|
313684
313876
|
}
|
|
313685
|
-
if (!
|
|
313686
|
-
|
|
313877
|
+
if (!lib_22.UtilsMigrations.isValidTimestamp(timestamp)) {
|
|
313878
|
+
lib_22.Helpers.throwError(`Invalid timestamp provided for migration revert: ${timestamp}`);
|
|
313687
313879
|
}
|
|
313688
313880
|
const migrationsClassFns = this.ctx.getClassFunByArr(models_1.Models.ClassType.MIGRATION).reverse();
|
|
313689
313881
|
const migrationClassesInstancesToRevert = migrationsClassFns.map((classFn) => {
|
|
313690
|
-
const timestampFromClassName = Number(
|
|
313882
|
+
const timestampFromClassName = Number(lib_22.UtilsMigrations.getTimestampFromClassName(class_helpers_1.ClassHelpers.getName(classFn)));
|
|
313691
313883
|
if (timestampFromClassName <= timestamp) {
|
|
313692
313884
|
return null;
|
|
313693
313885
|
}
|
|
@@ -313969,7 +314161,7 @@ var require_entity_process = __commonJS({
|
|
|
313969
314161
|
response;
|
|
313970
314162
|
//#region fields
|
|
313971
314163
|
/**
|
|
313972
|
-
* Data to send
|
|
314164
|
+
* Data to send.
|
|
313973
314165
|
*/
|
|
313974
314166
|
data;
|
|
313975
314167
|
/**
|
|
@@ -313987,10 +314179,10 @@ var require_entity_process = __commonJS({
|
|
|
313987
314179
|
async run(resultFromControllerMethod) {
|
|
313988
314180
|
let advancedManipulation = false;
|
|
313989
314181
|
if (lib_32._.isFunction(resultFromControllerMethod)) {
|
|
313990
|
-
advancedManipulation = true;
|
|
313991
314182
|
const resultFn = resultFromControllerMethod;
|
|
313992
314183
|
await resultFn({
|
|
313993
314184
|
circResponse: (circData) => {
|
|
314185
|
+
advancedManipulation = true;
|
|
313994
314186
|
this.responseHandled = true;
|
|
313995
314187
|
const { circs, data } = (0, entity_process_helpers_1.applayTransformFn)(circData);
|
|
313996
314188
|
this.data = data;
|
|
@@ -313999,9 +314191,9 @@ var require_entity_process = __commonJS({
|
|
|
313999
314191
|
}
|
|
314000
314192
|
this.send(advancedManipulation);
|
|
314001
314193
|
},
|
|
314002
|
-
streamResponse: (
|
|
314194
|
+
streamResponse: async (options2) => {
|
|
314003
314195
|
this.responseHandled = true;
|
|
314004
|
-
this.streamResponse(
|
|
314196
|
+
await this.streamResponse(options2);
|
|
314005
314197
|
}
|
|
314006
314198
|
});
|
|
314007
314199
|
return;
|
|
@@ -314014,15 +314206,97 @@ var require_entity_process = __commonJS({
|
|
|
314014
314206
|
}
|
|
314015
314207
|
//#endregion
|
|
314016
314208
|
//#region stream response
|
|
314017
|
-
streamResponse(
|
|
314018
|
-
stream
|
|
314209
|
+
async streamResponse(options2) {
|
|
314210
|
+
const { stream, statusCode = 200, contentType = "application/octet-stream", filename, disposition = filename ? "attachment" : void 0, contentLength, headers = {} } = options2;
|
|
314211
|
+
if (this.response.headersSent) {
|
|
314212
|
+
throw new Error("[taon] Cannot start stream response - response headers were already sent.");
|
|
314213
|
+
}
|
|
314214
|
+
this.response.status(statusCode);
|
|
314215
|
+
this.response.setHeader("Content-Type", contentType);
|
|
314216
|
+
if (!lib_32._.isNil(contentLength)) {
|
|
314217
|
+
this.response.setHeader("Content-Length", String(contentLength));
|
|
314218
|
+
}
|
|
314219
|
+
if (disposition) {
|
|
314220
|
+
const value = filename ? `${disposition}; filename="${this.escapeHeaderFilename(filename)}"` : disposition;
|
|
314221
|
+
this.response.setHeader("Content-Disposition", value);
|
|
314222
|
+
}
|
|
314223
|
+
for (const [headerName, headerValue] of Object.entries(headers)) {
|
|
314224
|
+
this.response.setHeader(headerName, headerValue);
|
|
314225
|
+
}
|
|
314226
|
+
const reader = stream.getReader();
|
|
314227
|
+
let clientDisconnected = false;
|
|
314228
|
+
let streamCompleted = false;
|
|
314229
|
+
const onResponseClose = () => {
|
|
314230
|
+
if (!streamCompleted) {
|
|
314231
|
+
clientDisconnected = true;
|
|
314232
|
+
void reader.cancel(new Error("[taon] HTTP client disconnected during stream response."));
|
|
314233
|
+
}
|
|
314234
|
+
};
|
|
314235
|
+
this.response.once("close", onResponseClose);
|
|
314236
|
+
try {
|
|
314237
|
+
while (true) {
|
|
314238
|
+
const { done, value } = await reader.read();
|
|
314239
|
+
if (done) {
|
|
314240
|
+
streamCompleted = true;
|
|
314241
|
+
break;
|
|
314242
|
+
}
|
|
314243
|
+
if (clientDisconnected || this.response.destroyed) {
|
|
314244
|
+
break;
|
|
314245
|
+
}
|
|
314246
|
+
if (!value || value.byteLength === 0) {
|
|
314247
|
+
continue;
|
|
314248
|
+
}
|
|
314249
|
+
const canContinue = this.response.write(Buffer.from(value));
|
|
314250
|
+
if (!canContinue) {
|
|
314251
|
+
await this.waitForDrainOrClose();
|
|
314252
|
+
}
|
|
314253
|
+
}
|
|
314254
|
+
if (streamCompleted && !clientDisconnected && !this.response.destroyed && !this.response.writableEnded) {
|
|
314255
|
+
this.response.end();
|
|
314256
|
+
}
|
|
314257
|
+
} catch (error2) {
|
|
314258
|
+
if (clientDisconnected || this.response.destroyed) {
|
|
314259
|
+
return;
|
|
314260
|
+
}
|
|
314019
314261
|
if (!this.response.headersSent) {
|
|
314020
314262
|
this.response.status(500).end();
|
|
314021
314263
|
return;
|
|
314022
314264
|
}
|
|
314023
|
-
this.response.destroy(error2);
|
|
314265
|
+
this.response.destroy(error2 instanceof Error ? error2 : new Error(`[taon] Stream response failed: ${String(error2)}`));
|
|
314266
|
+
} finally {
|
|
314267
|
+
this.response.off("close", onResponseClose);
|
|
314268
|
+
try {
|
|
314269
|
+
reader.releaseLock();
|
|
314270
|
+
} catch {
|
|
314271
|
+
}
|
|
314272
|
+
}
|
|
314273
|
+
}
|
|
314274
|
+
waitForDrainOrClose() {
|
|
314275
|
+
return new Promise((resolve, reject2) => {
|
|
314276
|
+
const onDrain = () => {
|
|
314277
|
+
cleanup();
|
|
314278
|
+
resolve();
|
|
314279
|
+
};
|
|
314280
|
+
const onClose = () => {
|
|
314281
|
+
cleanup();
|
|
314282
|
+
resolve();
|
|
314283
|
+
};
|
|
314284
|
+
const onError = (error2) => {
|
|
314285
|
+
cleanup();
|
|
314286
|
+
reject2(error2);
|
|
314287
|
+
};
|
|
314288
|
+
const cleanup = () => {
|
|
314289
|
+
this.response.off("drain", onDrain);
|
|
314290
|
+
this.response.off("close", onClose);
|
|
314291
|
+
this.response.off("error", onError);
|
|
314292
|
+
};
|
|
314293
|
+
this.response.once("drain", onDrain);
|
|
314294
|
+
this.response.once("close", onClose);
|
|
314295
|
+
this.response.once("error", onError);
|
|
314024
314296
|
});
|
|
314025
|
-
|
|
314297
|
+
}
|
|
314298
|
+
escapeHeaderFilename(filename) {
|
|
314299
|
+
return filename.replace(/[\r\n]/g, "").replace(/\\/g, "_").replace(/"/g, "'");
|
|
314026
314300
|
}
|
|
314027
314301
|
//#endregion
|
|
314028
314302
|
//#region set headers
|
|
@@ -317981,7 +318255,6 @@ var require_taon_helpers = __commonJS({
|
|
|
317981
318255
|
"use strict";
|
|
317982
318256
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
317983
318257
|
exports2.TaonHelpers = void 0;
|
|
317984
|
-
var JSON52 = require_lib17();
|
|
317985
318258
|
var lib_13 = require_lib31();
|
|
317986
318259
|
var class_helpers_1 = require_class_helpers();
|
|
317987
318260
|
var TaonHelpers;
|
|
@@ -318016,7 +318289,7 @@ var require_taon_helpers = __commonJS({
|
|
|
318016
318289
|
return false;
|
|
318017
318290
|
}
|
|
318018
318291
|
try {
|
|
318019
|
-
const t =
|
|
318292
|
+
const t = JSON.parse(param);
|
|
318020
318293
|
return t;
|
|
318021
318294
|
} catch (e) {
|
|
318022
318295
|
return param;
|
|
@@ -344613,6 +344886,18 @@ var require_endpoint_context = __commonJS({
|
|
|
344613
344886
|
this.onlyMigrationRun = initOptions.onlyMigrationRun;
|
|
344614
344887
|
this.onlyMigrationRevertToTimestamp = initOptions.onlyMigrationRevertToTimestamp;
|
|
344615
344888
|
this.config = this.configFn({});
|
|
344889
|
+
if (lib_122.UtilsOs.isRunningInCloudflareWorker() && !initOptions.initFromRecrusiveContextResovle) {
|
|
344890
|
+
const TAON_WORKER_INSTANCE_ID = crypto.randomUUID();
|
|
344891
|
+
console.log(`
|
|
344892
|
+
|
|
344893
|
+
[WORKER START] instance=${TAON_WORKER_INSTANCE_ID}
|
|
344894
|
+
frontendHost: ${this.config.frontendHost}
|
|
344895
|
+
frontendHostPortNumber: ${this.config.frontendHostPortNumber}
|
|
344896
|
+
host: ${this.config.host}
|
|
344897
|
+
hostPortNumber: ${this.config.hostPortNumber}
|
|
344898
|
+
|
|
344899
|
+
`);
|
|
344900
|
+
}
|
|
344616
344901
|
this.useSession = lib_14._.isBoolean(this.config.useSession) ? this.config.useSession : true;
|
|
344617
344902
|
if (lib_14._.isBoolean(this.cloneOptions.overrideUseSession)) {
|
|
344618
344903
|
this.useSession = this.cloneOptions.overrideUseSession;
|
|
@@ -345940,7 +346225,11 @@ var require_endpoint_context = __commonJS({
|
|
|
345940
346225
|
res.send(`Hello, world from context ${this.contextName}`);
|
|
345941
346226
|
});
|
|
345942
346227
|
app.use(bodyParser.urlencoded({ extended: true }));
|
|
345943
|
-
app.use(bodyParser.json(
|
|
346228
|
+
app.use(bodyParser.json({
|
|
346229
|
+
verify: (req, _res, body) => {
|
|
346230
|
+
req.rawBody = body;
|
|
346231
|
+
}
|
|
346232
|
+
}));
|
|
345944
346233
|
app.use(methodOverride());
|
|
345945
346234
|
app.use(cookieParser());
|
|
345946
346235
|
if (this.useSession) {
|
|
@@ -346092,15 +346381,41 @@ var require_endpoint_context = __commonJS({
|
|
|
346092
346381
|
if (bodyParamsToProcess.length > 0) {
|
|
346093
346382
|
const isUsingWholeBody = !lib_14._.isUndefined(bodyParamsToProcess.find((c) => !c.paramName));
|
|
346094
346383
|
if (isUsingWholeBody && bodyParamsToProcess.length > 1) {
|
|
346095
|
-
|
|
346384
|
+
const notEmpty = bodyParamsToProcess.filter((f) => !!f.paramName).map((c) => `@Body('${c.paramName}') ${c.paramName}`).join(", ");
|
|
346385
|
+
throw new Error(`
|
|
346386
|
+
|
|
346387
|
+
You are using more than ONE body param @Body() without name.
|
|
346388
|
+
|
|
346389
|
+
Or
|
|
346390
|
+
|
|
346391
|
+
your are overriding method with wrong params (like below)
|
|
346392
|
+
|
|
346393
|
+
class ParentClass {
|
|
346394
|
+
...
|
|
346395
|
+
@${methodConfig.type?.toUpperCase()}()
|
|
346396
|
+
${methodConfig.methodName}(@Body()) {
|
|
346397
|
+
// parent method
|
|
346398
|
+
}
|
|
346399
|
+
...
|
|
346400
|
+
}
|
|
346401
|
+
|
|
346402
|
+
class ${classConfig.className} extends AnyParentClass {
|
|
346403
|
+
...
|
|
346404
|
+
@${methodConfig.type?.toUpperCase()}()
|
|
346405
|
+
${methodConfig.methodName}(${notEmpty}) { // ERROR
|
|
346406
|
+
// your overrided method
|
|
346407
|
+
}
|
|
346408
|
+
...
|
|
346409
|
+
}
|
|
346410
|
+
`);
|
|
346096
346411
|
}
|
|
346097
346412
|
if (isUsingWholeBody) {
|
|
346098
346413
|
try {
|
|
346099
|
-
const mappinForEntityBody = JSON.parse(taon_helpers_1.TaonHelpers.firstStringOrElemFromArray(req.headers[symbols_1.Symbols.old.MAPPING_CONFIG_HEADER_BODY_PARAMS]));
|
|
346414
|
+
const mappinForEntityBody = JSON.parse(taon_helpers_1.TaonHelpers.firstStringOrElemFromArray(req.headers[symbols_1.Symbols.old.MAPPING_CONFIG_HEADER_BODY_PARAMS]) ?? "{}");
|
|
346100
346415
|
tBody = (0, lib_32.encodeMapping)(tBody, mappinForEntityBody);
|
|
346101
346416
|
if (req.headers[symbols_1.Symbols.old.CIRCURAL_OBJECTS_MAP_BODY_PARAM]) {
|
|
346102
346417
|
try {
|
|
346103
|
-
const circs = JSON.parse(taon_helpers_1.TaonHelpers.firstStringOrElemFromArray(req.headers[symbols_1.Symbols.old.CIRCURAL_OBJECTS_MAP_BODY_PARAM]));
|
|
346418
|
+
const circs = JSON.parse(taon_helpers_1.TaonHelpers.firstStringOrElemFromArray(req.headers[symbols_1.Symbols.old.CIRCURAL_OBJECTS_MAP_BODY_PARAM]) ?? "{}");
|
|
346104
346419
|
tBody = lib_13.JSON10.applyCircularMapping(tBody, circs);
|
|
346105
346420
|
} catch (e) {
|
|
346106
346421
|
console.error(e);
|
|
@@ -346113,7 +346428,7 @@ var require_endpoint_context = __commonJS({
|
|
|
346113
346428
|
for (const bodyParamToProcess of bodyParamsToProcess) {
|
|
346114
346429
|
try {
|
|
346115
346430
|
const paramName = bodyParamToProcess.paramName;
|
|
346116
|
-
const mappingForEntityBodyForParam = JSON.parse(taon_helpers_1.TaonHelpers.firstStringOrElemFromArray(req.headers[`${symbols_1.Symbols.old.MAPPING_CONFIG_HEADER_BODY_PARAMS}${paramName.toLowerCase()}`]));
|
|
346431
|
+
const mappingForEntityBodyForParam = JSON.parse(taon_helpers_1.TaonHelpers.firstStringOrElemFromArray(req.headers[`${symbols_1.Symbols.old.MAPPING_CONFIG_HEADER_BODY_PARAMS}${paramName.toLowerCase()}`]) ?? "{}");
|
|
346117
346432
|
tBody[paramName] = (0, lib_32.encodeMapping)(tBody[paramName], mappingForEntityBodyForParam);
|
|
346118
346433
|
} catch (e) {
|
|
346119
346434
|
console.error(e);
|
|
@@ -346129,11 +346444,11 @@ var require_endpoint_context = __commonJS({
|
|
|
346129
346444
|
}
|
|
346130
346445
|
if (isUsingWholeQueryParamBody) {
|
|
346131
346446
|
try {
|
|
346132
|
-
const entity = JSON.parse(taon_helpers_1.TaonHelpers.firstStringOrElemFromArray(req.headers[symbols_1.Symbols.old.MAPPING_CONFIG_HEADER_QUERY_PARAMS]));
|
|
346447
|
+
const entity = JSON.parse(taon_helpers_1.TaonHelpers.firstStringOrElemFromArray(req.headers[symbols_1.Symbols.old.MAPPING_CONFIG_HEADER_QUERY_PARAMS]) ?? "{}");
|
|
346133
346448
|
tQuery = taon_helpers_1.TaonHelpers.parseJSONwithStringJSONs((0, lib_32.encodeMapping)(tQuery, entity));
|
|
346134
346449
|
if (req.headers[symbols_1.Symbols.old.CIRCURAL_OBJECTS_MAP_QUERY_PARAM]) {
|
|
346135
346450
|
try {
|
|
346136
|
-
const circs = JSON.parse(taon_helpers_1.TaonHelpers.firstStringOrElemFromArray(req.headers[symbols_1.Symbols.old.CIRCURAL_OBJECTS_MAP_QUERY_PARAM]));
|
|
346451
|
+
const circs = JSON.parse(taon_helpers_1.TaonHelpers.firstStringOrElemFromArray(req.headers[symbols_1.Symbols.old.CIRCURAL_OBJECTS_MAP_QUERY_PARAM]) ?? "{}");
|
|
346137
346452
|
tQuery = lib_13.JSON10.applyCircularMapping(tQuery, circs);
|
|
346138
346453
|
} catch (e) {
|
|
346139
346454
|
console.error(e);
|
|
@@ -356487,70 +356802,118 @@ var require_base_repository = __commonJS({
|
|
|
356487
356802
|
return this.repo.insert(entity);
|
|
356488
356803
|
}
|
|
356489
356804
|
//#endregion
|
|
356490
|
-
//#region crud operations / typeorm / update
|
|
356491
|
-
|
|
356805
|
+
//#region crud operations / typeorm / update
|
|
356806
|
+
/**
|
|
356807
|
+
* Updates entity/entities partially.
|
|
356808
|
+
*
|
|
356809
|
+
* This follows native TypeORM update semantics:
|
|
356810
|
+
* - executes a direct UPDATE query
|
|
356811
|
+
* - does not handle cascades or relations
|
|
356812
|
+
* - does not reload or return the updated entity
|
|
356813
|
+
*/
|
|
356814
|
+
update(criteria, partialEntity) {
|
|
356815
|
+
return this.repo.update(criteria, partialEntity);
|
|
356816
|
+
}
|
|
356817
|
+
//#endregion
|
|
356818
|
+
//#region crud operations / typeorm / update
|
|
356819
|
+
/**
|
|
356820
|
+
* Updates entity partially by id.
|
|
356821
|
+
*
|
|
356822
|
+
* Convenience wrapper around update().
|
|
356823
|
+
* Uses native TypeORM update semantics.
|
|
356824
|
+
*/
|
|
356825
|
+
/**
|
|
356826
|
+
* Updates an entity by id and returns the updated entity.
|
|
356827
|
+
*/
|
|
356828
|
+
async updateById(id, partialEntity, options2) {
|
|
356829
|
+
const entity = await this.repo.preload({
|
|
356830
|
+
id,
|
|
356831
|
+
...partialEntity
|
|
356832
|
+
});
|
|
356833
|
+
if (!entity) {
|
|
356834
|
+
throw new Error(`Entity with id "${id}" not found.`);
|
|
356835
|
+
}
|
|
356836
|
+
await this.repo.save(entity);
|
|
356837
|
+
return this.repo.findOne({
|
|
356838
|
+
where: { id },
|
|
356839
|
+
relations: options2?.relations
|
|
356840
|
+
});
|
|
356841
|
+
}
|
|
356842
|
+
//#endregion
|
|
356843
|
+
//#region crud operations / shallow update
|
|
356844
|
+
shallowUpdateAllowedColumnTypes = [
|
|
356845
|
+
"simple-json",
|
|
356846
|
+
"simple-array",
|
|
356847
|
+
"json"
|
|
356848
|
+
];
|
|
356849
|
+
/**
|
|
356850
|
+
* Taon helper for updating simple entity columns without relations.
|
|
356851
|
+
*
|
|
356852
|
+
* Object values are ignored unless the corresponding database column
|
|
356853
|
+
* explicitly supports them (for example JSON/simple-json/simple-array).
|
|
356854
|
+
*
|
|
356855
|
+
* The entity is reloaded and returned after the update.
|
|
356856
|
+
*/
|
|
356857
|
+
async shallowUpdate(item) {
|
|
356492
356858
|
const { id } = item;
|
|
356493
|
-
return
|
|
356859
|
+
return this.shallowUpdateById(id, item);
|
|
356494
356860
|
}
|
|
356495
|
-
|
|
356496
|
-
|
|
356497
|
-
|
|
356861
|
+
/**
|
|
356862
|
+
* Taon helper for updating simple entity columns without relations.
|
|
356863
|
+
*
|
|
356864
|
+
* Only properties mapped to own database columns are considered.
|
|
356865
|
+
* Primary/index keys listed in INDEX_KEYS_NO_FOR_UPDATE are ignored.
|
|
356866
|
+
*
|
|
356867
|
+
* The entity is reloaded and returned after the update.
|
|
356868
|
+
*/
|
|
356869
|
+
async shallowUpdateById(id, item) {
|
|
356870
|
+
const partialEntity = {};
|
|
356498
356871
|
for (const key in item) {
|
|
356499
|
-
|
|
356500
|
-
|
|
356501
|
-
allowedPropsToUpdate.push(key);
|
|
356872
|
+
if (!Object.prototype.hasOwnProperty.call(item, key)) {
|
|
356873
|
+
continue;
|
|
356502
356874
|
}
|
|
356503
|
-
|
|
356504
|
-
|
|
356505
|
-
const key = allowedPropsToUpdate[i];
|
|
356506
|
-
if (!INDEX_KEYS_NO_FOR_UPDATE.includes(key.toLowerCase())) {
|
|
356507
|
-
const toSet = item[key];
|
|
356508
|
-
await this.repo.update({
|
|
356509
|
-
id
|
|
356510
|
-
}, {
|
|
356511
|
-
[key]: toSet
|
|
356512
|
-
});
|
|
356875
|
+
if (INDEX_KEYS_NO_FOR_UPDATE.includes(key.toLowerCase())) {
|
|
356876
|
+
continue;
|
|
356513
356877
|
}
|
|
356878
|
+
const metadataColumn = this.repo.metadata.ownColumns.find((column) => column.propertyName === key);
|
|
356879
|
+
if (!metadataColumn) {
|
|
356880
|
+
continue;
|
|
356881
|
+
}
|
|
356882
|
+
const value = item[key];
|
|
356883
|
+
if (value !== null && typeof value === "object" && !this.shallowUpdateAllowedColumnTypes.includes(metadataColumn.type)) {
|
|
356884
|
+
continue;
|
|
356885
|
+
}
|
|
356886
|
+
partialEntity[key] = value;
|
|
356514
356887
|
}
|
|
356515
|
-
|
|
356888
|
+
if (Object.keys(partialEntity).length > 0) {
|
|
356889
|
+
await this.repo.update({ id }, partialEntity);
|
|
356890
|
+
}
|
|
356891
|
+
const model = await this.repo.findOne({
|
|
356516
356892
|
where: { id }
|
|
356517
356893
|
});
|
|
356518
356894
|
return model;
|
|
356519
356895
|
}
|
|
356520
|
-
|
|
356896
|
+
/**
|
|
356897
|
+
* Buld update the same items
|
|
356898
|
+
*/
|
|
356899
|
+
async bulkUpdate(items, options2) {
|
|
356521
356900
|
const models = [];
|
|
356522
356901
|
for (let index = 0; index < items.length; index++) {
|
|
356523
356902
|
const item = items[index];
|
|
356524
356903
|
const { id } = item;
|
|
356525
|
-
const model = await this.updateById(id, item);
|
|
356904
|
+
const model = await this.updateById(id, item, options2);
|
|
356526
356905
|
models.push(model);
|
|
356527
356906
|
}
|
|
356528
356907
|
return { models };
|
|
356529
356908
|
}
|
|
356530
|
-
|
|
356531
|
-
|
|
356532
|
-
|
|
356533
|
-
|
|
356534
|
-
|
|
356535
|
-
|
|
356536
|
-
|
|
356537
|
-
|
|
356538
|
-
// update(
|
|
356539
|
-
// criteria:
|
|
356540
|
-
// | string
|
|
356541
|
-
// | string[]
|
|
356542
|
-
// | number
|
|
356543
|
-
// | number[]
|
|
356544
|
-
// | Date
|
|
356545
|
-
// | Date[]
|
|
356546
|
-
// | ObjectID
|
|
356547
|
-
// | ObjectID[]
|
|
356548
|
-
// | FindOptionsWhere<Entity>,
|
|
356549
|
-
// partialEntity: QueryDeepPartialEntity<Entity>,
|
|
356550
|
-
// ): Promise<UpdateResult> {
|
|
356551
|
-
// return this.repo.update(criteria, partialEntity);
|
|
356552
|
-
// }
|
|
356553
|
-
//#endregion
|
|
356909
|
+
async bulkShallowUpdate(items) {
|
|
356910
|
+
const models = [];
|
|
356911
|
+
for (const item of items) {
|
|
356912
|
+
const model = await this.shallowUpdate(item);
|
|
356913
|
+
models.push(model);
|
|
356914
|
+
}
|
|
356915
|
+
return models;
|
|
356916
|
+
}
|
|
356554
356917
|
//#endregion
|
|
356555
356918
|
//#region crud operations / typeorm / upsert
|
|
356556
356919
|
/**
|
|
@@ -357339,7 +357702,7 @@ var require_build_info_auto_generated = __commonJS({
|
|
|
357339
357702
|
exports2.BUILD_BASE_HREF = "";
|
|
357340
357703
|
exports2.PROJECT_NPM_NAME = "@taon-dev/i18n";
|
|
357341
357704
|
exports2.CURRENT_PACKAGE_TAON_VERSION = "v21";
|
|
357342
|
-
exports2.CURRENT_PACKAGE_VERSION = "21.0.
|
|
357705
|
+
exports2.CURRENT_PACKAGE_VERSION = "21.0.56";
|
|
357343
357706
|
}
|
|
357344
357707
|
});
|
|
357345
357708
|
|
|
@@ -386876,8 +387239,11 @@ var require_utils_i18n_extract_gettext_translate_from_html = __commonJS({
|
|
|
386876
387239
|
pushMessage(node, collectText(node.children ?? []), params, translateAttr.value || void 0);
|
|
386877
387240
|
}
|
|
386878
387241
|
for (const input of inputs) {
|
|
387242
|
+
for (const item of extractGettextCallsFromAst(input.value)) {
|
|
387243
|
+
pushMessage(input, item.gettextString, null, item.context);
|
|
387244
|
+
}
|
|
386879
387245
|
for (const text of extractTranslatePipeStrings(input.value)) {
|
|
386880
|
-
pushMessage(
|
|
387246
|
+
pushMessage(input, text);
|
|
386881
387247
|
}
|
|
386882
387248
|
}
|
|
386883
387249
|
if (isBoundText(node)) {
|
|
@@ -387158,6 +387524,36 @@ var require_utils_i18n_extract_gettext_translate_from_html = __commonJS({
|
|
|
387158
387524
|
});
|
|
387159
387525
|
return Object.keys(result2).length ? result2 : null;
|
|
387160
387526
|
}
|
|
387527
|
+
function extractGettextCallsFromAst(ast) {
|
|
387528
|
+
const result2 = [];
|
|
387529
|
+
const visit = (node) => {
|
|
387530
|
+
if (!node || typeof node !== "object") {
|
|
387531
|
+
return;
|
|
387532
|
+
}
|
|
387533
|
+
if (node.constructor?.name === "Call" && node.receiver?.constructor?.name === "PropertyRead" && node.receiver.name === "gettext") {
|
|
387534
|
+
const args = node.args ?? [];
|
|
387535
|
+
const gettextString = args[0]?.constructor?.name === "LiteralPrimitive" && typeof args[0].value === "string" ? args[0].value : void 0;
|
|
387536
|
+
if (gettextString) {
|
|
387537
|
+
const context = args[2]?.constructor?.name === "LiteralPrimitive" && typeof args[2].value === "string" ? args[2].value : void 0;
|
|
387538
|
+
result2.push({
|
|
387539
|
+
gettextString,
|
|
387540
|
+
context
|
|
387541
|
+
});
|
|
387542
|
+
}
|
|
387543
|
+
}
|
|
387544
|
+
for (const value of Object.values(node)) {
|
|
387545
|
+
if (Array.isArray(value)) {
|
|
387546
|
+
for (const item of value) {
|
|
387547
|
+
visit(item);
|
|
387548
|
+
}
|
|
387549
|
+
} else if (value && typeof value === "object") {
|
|
387550
|
+
visit(value);
|
|
387551
|
+
}
|
|
387552
|
+
}
|
|
387553
|
+
};
|
|
387554
|
+
visit(ast);
|
|
387555
|
+
return result2;
|
|
387556
|
+
}
|
|
387161
387557
|
function extractTranslatePipeStrings(ast) {
|
|
387162
387558
|
const result2 = [];
|
|
387163
387559
|
const visit = (node) => {
|
|
@@ -388389,6 +388785,7 @@ var require_base_storage_backend = __commonJS({
|
|
|
388389
388785
|
await this.storageUploadFromNodeTempFile(key, file, options2);
|
|
388390
388786
|
}
|
|
388391
388787
|
//#endregion
|
|
388788
|
+
//#region mehods / storage upload from node temp file
|
|
388392
388789
|
async storageUploadFromNodeTempFile(key, file, options2) {
|
|
388393
388790
|
const stream = lib_13.fse.createReadStream(file.tempKeyOrPath);
|
|
388394
388791
|
try {
|
|
@@ -388397,6 +388794,8 @@ var require_base_storage_backend = __commonJS({
|
|
|
388397
388794
|
await lib_13.fse.remove(file.tempKeyOrPath);
|
|
388398
388795
|
}
|
|
388399
388796
|
}
|
|
388797
|
+
//#endregion
|
|
388798
|
+
//#region mehods / storage uplaod from cloudflare temp file
|
|
388400
388799
|
async storageUploadFromCloudflareTempFile(key, file, options2) {
|
|
388401
388800
|
const tempStorage = lib_13.GlobalStorage.get("TAON_TEMP_STORAGE");
|
|
388402
388801
|
const object2 = await tempStorage.get(file.tempKeyOrPath);
|
|
@@ -388409,6 +388808,7 @@ var require_base_storage_backend = __commonJS({
|
|
|
388409
388808
|
await tempStorage.delete(file.tempKeyOrPath);
|
|
388410
388809
|
}
|
|
388411
388810
|
}
|
|
388811
|
+
//#endregion
|
|
388412
388812
|
//#region methods / storage metadata
|
|
388413
388813
|
async storageGetMetadata(key) {
|
|
388414
388814
|
key = this.normalizeKey(key);
|
|
@@ -389397,28 +389797,44 @@ var require_base_crud_controller = __commonJS({
|
|
|
389397
389797
|
}
|
|
389398
389798
|
//#endregion
|
|
389399
389799
|
//#region update by id
|
|
389400
|
-
updateById(id, item) {
|
|
389800
|
+
updateById(id, item, options2) {
|
|
389401
389801
|
return async () => {
|
|
389402
|
-
const model = await this.db.updateById(id, item);
|
|
389802
|
+
const model = await this.db.updateById(id, item, options2);
|
|
389403
389803
|
return model;
|
|
389404
389804
|
};
|
|
389405
389805
|
}
|
|
389406
389806
|
//#endregion
|
|
389407
389807
|
//#region patch by id
|
|
389408
|
-
patchById(id, item) {
|
|
389808
|
+
patchById(id, item, options2) {
|
|
389809
|
+
return async () => {
|
|
389810
|
+
const model = await this.db.updateById(id, item, options2);
|
|
389811
|
+
return model;
|
|
389812
|
+
};
|
|
389813
|
+
}
|
|
389814
|
+
//#endregion
|
|
389815
|
+
//#region update by id
|
|
389816
|
+
shallowUpdateById(id, item) {
|
|
389817
|
+
return async () => {
|
|
389818
|
+
const model = await this.db.shallowUpdateById(id, item);
|
|
389819
|
+
return model;
|
|
389820
|
+
};
|
|
389821
|
+
}
|
|
389822
|
+
//#endregion
|
|
389823
|
+
//#region update by id
|
|
389824
|
+
shallowPatchById(id, item) {
|
|
389409
389825
|
return async () => {
|
|
389410
|
-
const model = await this.db.
|
|
389826
|
+
const model = await this.db.shallowUpdateById(id, item);
|
|
389411
389827
|
return model;
|
|
389412
389828
|
};
|
|
389413
389829
|
}
|
|
389414
389830
|
//#endregion
|
|
389415
389831
|
//#region bulk update
|
|
389416
|
-
|
|
389832
|
+
bulkShallowUpdate(items) {
|
|
389417
389833
|
return async () => {
|
|
389418
389834
|
if (!Array.isArray(items) || items?.length === 0) {
|
|
389419
389835
|
return [];
|
|
389420
389836
|
}
|
|
389421
|
-
const
|
|
389837
|
+
const models = await this.db.bulkShallowUpdate(items);
|
|
389422
389838
|
return models;
|
|
389423
389839
|
};
|
|
389424
389840
|
}
|
|
@@ -389465,7 +389881,7 @@ var require_base_crud_controller = __commonJS({
|
|
|
389465
389881
|
exports2.TaonBaseCrudController = TaonBaseCrudController;
|
|
389466
389882
|
__decorate2([
|
|
389467
389883
|
(0, http_methods_decorators_1.GET)(),
|
|
389468
|
-
__param2(0, (0, http_params_decorators_1.Query)(
|
|
389884
|
+
__param2(0, (0, http_params_decorators_1.Query)("id")),
|
|
389469
389885
|
__param2(1, (0, http_params_decorators_1.Query)(`property`)),
|
|
389470
389886
|
__param2(2, (0, http_params_decorators_1.Query)("alreadyLength")),
|
|
389471
389887
|
__metadata2("design:type", Function),
|
|
@@ -389474,14 +389890,14 @@ var require_base_crud_controller = __commonJS({
|
|
|
389474
389890
|
], TaonBaseCrudController.prototype, "bufforedChanges", null);
|
|
389475
389891
|
__decorate2([
|
|
389476
389892
|
(0, http_methods_decorators_1.GET)(),
|
|
389477
|
-
__param2(0, (0, http_params_decorators_1.Query)()),
|
|
389893
|
+
__param2(0, (0, http_params_decorators_1.Query)("queryJson")),
|
|
389478
389894
|
__metadata2("design:type", Function),
|
|
389479
389895
|
__metadata2("design:paramtypes", [Object]),
|
|
389480
389896
|
__metadata2("design:returntype", Object)
|
|
389481
389897
|
], TaonBaseCrudController.prototype, "paginationQuery", null);
|
|
389482
389898
|
__decorate2([
|
|
389483
389899
|
(0, http_methods_decorators_1.POST)(),
|
|
389484
|
-
__param2(0, (0, http_params_decorators_1.Body)()),
|
|
389900
|
+
__param2(0, (0, http_params_decorators_1.Body)("query")),
|
|
389485
389901
|
__metadata2("design:type", Function),
|
|
389486
389902
|
__metadata2("design:paramtypes", [Object]),
|
|
389487
389903
|
__metadata2("design:returntype", Object)
|
|
@@ -389494,44 +389910,62 @@ var require_base_crud_controller = __commonJS({
|
|
|
389494
389910
|
], TaonBaseCrudController.prototype, "getAll", null);
|
|
389495
389911
|
__decorate2([
|
|
389496
389912
|
(0, http_methods_decorators_1.GET)(),
|
|
389497
|
-
__param2(0, (0, http_params_decorators_1.Query)(
|
|
389913
|
+
__param2(0, (0, http_params_decorators_1.Query)("id")),
|
|
389498
389914
|
__metadata2("design:type", Function),
|
|
389499
389915
|
__metadata2("design:paramtypes", [Object]),
|
|
389500
389916
|
__metadata2("design:returntype", Object)
|
|
389501
389917
|
], TaonBaseCrudController.prototype, "getBy", null);
|
|
389502
389918
|
__decorate2([
|
|
389503
389919
|
(0, http_methods_decorators_1.PUT)(),
|
|
389504
|
-
__param2(0, (0, http_params_decorators_1.Query)(
|
|
389505
|
-
__param2(1, (0, http_params_decorators_1.Body)()),
|
|
389920
|
+
__param2(0, (0, http_params_decorators_1.Query)("id")),
|
|
389921
|
+
__param2(1, (0, http_params_decorators_1.Body)("item")),
|
|
389922
|
+
__param2(2, (0, http_params_decorators_1.Body)("options")),
|
|
389506
389923
|
__metadata2("design:type", Function),
|
|
389507
|
-
__metadata2("design:paramtypes", [Object, Object]),
|
|
389924
|
+
__metadata2("design:paramtypes", [Object, Object, Object]),
|
|
389508
389925
|
__metadata2("design:returntype", Object)
|
|
389509
389926
|
], TaonBaseCrudController.prototype, "updateById", null);
|
|
389510
389927
|
__decorate2([
|
|
389511
389928
|
(0, http_methods_decorators_1.PATCH)(),
|
|
389512
|
-
__param2(0, (0, http_params_decorators_1.Query)(
|
|
389513
|
-
__param2(1, (0, http_params_decorators_1.Body)()),
|
|
389929
|
+
__param2(0, (0, http_params_decorators_1.Query)("id")),
|
|
389930
|
+
__param2(1, (0, http_params_decorators_1.Body)("item")),
|
|
389931
|
+
__param2(2, (0, http_params_decorators_1.Body)("options")),
|
|
389514
389932
|
__metadata2("design:type", Function),
|
|
389515
|
-
__metadata2("design:paramtypes", [Object, Object]),
|
|
389933
|
+
__metadata2("design:paramtypes", [Object, Object, Object]),
|
|
389516
389934
|
__metadata2("design:returntype", Object)
|
|
389517
389935
|
], TaonBaseCrudController.prototype, "patchById", null);
|
|
389518
389936
|
__decorate2([
|
|
389519
389937
|
(0, http_methods_decorators_1.PUT)(),
|
|
389520
|
-
__param2(0, (0, http_params_decorators_1.
|
|
389938
|
+
__param2(0, (0, http_params_decorators_1.Query)("id")),
|
|
389939
|
+
__param2(1, (0, http_params_decorators_1.Body)("item")),
|
|
389940
|
+
__metadata2("design:type", Function),
|
|
389941
|
+
__metadata2("design:paramtypes", [Object, Object]),
|
|
389942
|
+
__metadata2("design:returntype", Object)
|
|
389943
|
+
], TaonBaseCrudController.prototype, "shallowUpdateById", null);
|
|
389944
|
+
__decorate2([
|
|
389945
|
+
(0, http_methods_decorators_1.PUT)(),
|
|
389946
|
+
__param2(0, (0, http_params_decorators_1.Query)("id")),
|
|
389947
|
+
__param2(1, (0, http_params_decorators_1.Body)("item")),
|
|
389948
|
+
__metadata2("design:type", Function),
|
|
389949
|
+
__metadata2("design:paramtypes", [Object, Object]),
|
|
389950
|
+
__metadata2("design:returntype", Object)
|
|
389951
|
+
], TaonBaseCrudController.prototype, "shallowPatchById", null);
|
|
389952
|
+
__decorate2([
|
|
389953
|
+
(0, http_methods_decorators_1.PUT)(),
|
|
389954
|
+
__param2(0, (0, http_params_decorators_1.Body)("items")),
|
|
389521
389955
|
__metadata2("design:type", Function),
|
|
389522
389956
|
__metadata2("design:paramtypes", [Array]),
|
|
389523
389957
|
__metadata2("design:returntype", Object)
|
|
389524
|
-
], TaonBaseCrudController.prototype, "
|
|
389958
|
+
], TaonBaseCrudController.prototype, "bulkShallowUpdate", null);
|
|
389525
389959
|
__decorate2([
|
|
389526
389960
|
(0, http_methods_decorators_1.DELETE)(),
|
|
389527
|
-
__param2(0, (0, http_params_decorators_1.Query)(
|
|
389961
|
+
__param2(0, (0, http_params_decorators_1.Query)("id")),
|
|
389528
389962
|
__metadata2("design:type", Function),
|
|
389529
389963
|
__metadata2("design:paramtypes", [Object]),
|
|
389530
389964
|
__metadata2("design:returntype", Object)
|
|
389531
389965
|
], TaonBaseCrudController.prototype, "deleteById", null);
|
|
389532
389966
|
__decorate2([
|
|
389533
389967
|
(0, http_methods_decorators_1.DELETE)(),
|
|
389534
|
-
__param2(0, (0, http_params_decorators_1.Query)(
|
|
389968
|
+
__param2(0, (0, http_params_decorators_1.Query)("ids")),
|
|
389535
389969
|
__metadata2("design:type", Function),
|
|
389536
389970
|
__metadata2("design:paramtypes", [Array]),
|
|
389537
389971
|
__metadata2("design:returntype", Object)
|
|
@@ -389544,16 +389978,16 @@ var require_base_crud_controller = __commonJS({
|
|
|
389544
389978
|
], TaonBaseCrudController.prototype, "clearTable", null);
|
|
389545
389979
|
__decorate2([
|
|
389546
389980
|
(0, http_methods_decorators_1.POST)(),
|
|
389547
|
-
__param2(0, (0, http_params_decorators_1.Body)()),
|
|
389981
|
+
__param2(0, (0, http_params_decorators_1.Body)("item")),
|
|
389548
389982
|
__metadata2("design:type", Function),
|
|
389549
389983
|
__metadata2("design:paramtypes", [Object]),
|
|
389550
389984
|
__metadata2("design:returntype", Object)
|
|
389551
389985
|
], TaonBaseCrudController.prototype, "save", null);
|
|
389552
389986
|
__decorate2([
|
|
389553
389987
|
(0, http_methods_decorators_1.POST)(),
|
|
389554
|
-
__param2(0, (0, http_params_decorators_1.Body)()),
|
|
389988
|
+
__param2(0, (0, http_params_decorators_1.Body)("items")),
|
|
389555
389989
|
__metadata2("design:type", Function),
|
|
389556
|
-
__metadata2("design:paramtypes", [
|
|
389990
|
+
__metadata2("design:paramtypes", [Array]),
|
|
389557
389991
|
__metadata2("design:returntype", Object)
|
|
389558
389992
|
], TaonBaseCrudController.prototype, "bulkCreate", null);
|
|
389559
389993
|
exports2.TaonBaseCrudController = TaonBaseCrudController = __decorate2([
|
|
@@ -390104,10 +390538,13 @@ var require_cloudflare_create_worker = __commonJS({
|
|
|
390104
390538
|
headers: (0, cross_origin_1.corsHeaders)(cloudflareRequest)
|
|
390105
390539
|
});
|
|
390106
390540
|
}
|
|
390107
|
-
const
|
|
390541
|
+
const requestForParsing = cloudflareRequest.clone();
|
|
390542
|
+
const requestForRawBody = cloudflareRequest.clone();
|
|
390108
390543
|
let parsedBody;
|
|
390544
|
+
let rawBody;
|
|
390109
390545
|
try {
|
|
390110
|
-
parsedBody = await (0, parse_body_1.parseBody)(
|
|
390546
|
+
parsedBody = await (0, parse_body_1.parseBody)(requestForParsing);
|
|
390547
|
+
rawBody = new Uint8Array(await requestForRawBody.arrayBuffer());
|
|
390111
390548
|
} catch (err) {
|
|
390112
390549
|
return new Response(JSON.stringify({
|
|
390113
390550
|
error: "Bad Request",
|
|
@@ -390155,6 +390592,7 @@ var require_cloudflare_create_worker = __commonJS({
|
|
|
390155
390592
|
const value = cloudflareRequest.headers.get("x-forwarded-for") || "";
|
|
390156
390593
|
return value.split(",").map((v) => v.trim()).filter(Boolean);
|
|
390157
390594
|
})(),
|
|
390595
|
+
rawBody,
|
|
390158
390596
|
raw: cloudflareRequest
|
|
390159
390597
|
};
|
|
390160
390598
|
if (fakeExpressRequest.body?._method) {
|
|
@@ -390659,7 +391097,7 @@ var require_build_info_auto_generated2 = __commonJS({
|
|
|
390659
391097
|
exports2.BUILD_BASE_HREF = "";
|
|
390660
391098
|
exports2.PROJECT_NPM_NAME = "tnp";
|
|
390661
391099
|
exports2.CURRENT_PACKAGE_TAON_VERSION = "v21";
|
|
390662
|
-
exports2.CURRENT_PACKAGE_VERSION = "21.0.
|
|
391100
|
+
exports2.CURRENT_PACKAGE_VERSION = "21.0.299";
|
|
390663
391101
|
}
|
|
390664
391102
|
});
|
|
390665
391103
|
|
|
@@ -390672,9 +391110,9 @@ var require_constants20 = __commonJS({
|
|
|
390672
391110
|
exports2.CoreAssets = exports2.AngularJsonTaskName = exports2.TemplateFolder = exports2.TempalteSubprojectTypeGroup = exports2.TempalteSubprojectGroup = exports2.groupsFolder = exports2.TempalteSubprojectTypeArr = exports2.TempalteSubprojectType = exports2.mainProjectSubProjects = exports2.defaultConfiguration = exports2.tmpSrcAppDistWebsql = exports2.tmpSrcAppDist = exports2.tmpSrcDistWebsql = exports2.tmpSrcDist = exports2.tmpSourceDistWebsql = exports2.tmpSourceEsmDist = exports2.tmpSourceDist = exports2.tmpVscodeProj = exports2.tmpBaseHrefOverwrite = exports2.tmpCutReleaseSrcDistWebsql = exports2.tmpCutReleaseSrcDist = exports2.tmpLocalCopytoProjDist = exports2.tmpAllAssetsLinked = exports2.tmpAlreadyStartedCopyManager = exports2.tmpIsomorphicPackagesJson = exports2.readmeMdMainProject = exports2.result_packages_json = exports2.coreRequiredEnvironments = exports2.tmpEnvFolder = exports2.environmentsFolder = exports2.envTs = exports2.frameworkBuildFolders = exports2.customDefaultJs = exports2.customDefaultCss = exports2.docsConfigSchema = exports2.docsConfigJsonFileName = exports2.docsRoutes = exports2.DEFAULT_PORT = exports2.tmp_FRONTEND_NORMAL_ELECTRON_PORT = exports2.FRONTEND_NORMAL_ELECTRON_PORT = exports2.tmp_FRONTEND_CLOUDFLARE_APP_PORT = exports2.FRONTEND_CLOUDFLARE_APP_PORT = exports2.tmp_FRONTEND_NORMAL_APP_PORT = exports2.FRONTEND_NORMAL_APP_PORT = exports2.tmp_FRONTEND_WEBSQL_APP_PORT = exports2.FRONTEND_WEBSQL_APP_PORT = exports2.tmp_HOST_BACKEND_PORT = exports2.HOST_BACKEND_PORT = exports2.TEMP_DOCS = exports2.taonConfigSchemaJsonContainer = void 0;
|
|
390673
391111
|
exports2.testsFromSrc = exports2.libFromNgProject = exports2.libFromNpmPackage = exports2.libFromCompiledDist = exports2.libEsmFromImport = exports2.libFromImport = exports2.libFromSrc = exports2.websqlTypeString = exports2.browserTypeString = exports2.libTypeString = exports2.appFromSrcInsideNgApp = exports2.appFromSrc = exports2.projectsFromMainProject = exports2.projectsFromNgTemplate = exports2.externalLibsFromNgProject = exports2.myLibFromNgProject = exports2.srcJSFromNpmPackage = exports2.srcDtsFromNpmPackage = exports2.srcFromTaonImport = exports2.srcNgProxyProject = exports2.srcMainProject = exports2.binMainProject = exports2.docsMainProject = exports2.outVscodeProj = exports2.allDocsIndexDataFileTs = exports2.combinedDocsAllMdFilesFolder = exports2.electronNgProj = exports2.distFromSassLoader = exports2.fullDts = exports2.libEsm = exports2.distEsm = exports2.distFromWorkerBuild = exports2.distFromNgBuild = exports2.distElectronProj = exports2.distVscodeProj = exports2.distMainProject = exports2.distNoCutSrcMainProject = exports2.nodeModulesSubPorject = exports2.nodeModulesMainProject = exports2.tailwindScssImportRegexGlobal = exports2.tailwindScssImportRegex = exports2.tailwindscsimportSourceNone = exports2.reExportJson = exports2.splitNamespacesJson = exports2.TaonGeneratedFolders = exports2.DS_Store = exports2.TaonGeneratedFiles = exports2.CoreNgTemplateFiles = exports2.DockerTemplatesFolders = exports2.dockerTemplatesFolder = void 0;
|
|
390674
391112
|
exports2.browserWorkerBuild = exports2.browserNgBuild = exports2.browserFromCompiledDist = exports2.browserMainProject = exports2.isomorphicPackagesJsonKey = exports2.ENV_INJECT_COMMENT = exports2.indexScssFromSrcLib = exports2.indexTsFromMigrationsFromSrc = exports2.indexScssFromSrc = exports2.indexTsFromLibFromSrc = exports2.indexTsFromSrc = exports2.tmpAppsForDistElectronWebsql = exports2.tmpAppsForDistElectron = exports2.tmpAppsForDistWebsql = exports2.tmpAppsForDist = exports2.tmpLibsForDistWebsql = exports2.tmpLibsForDist = exports2.TaonFileExtension = exports2.LANG_IMPORT = exports2.appVscodeJSFromBuild = exports2.appVscodeTsFromSrc = exports2.appCloudflareTsFromSrc = exports2.appElectronTsFromSrc = exports2.ngProjectTailwindCss = exports2.ngProjectStylesScss = exports2.importsHtmlFromSrc = exports2.globalScssFromSrc = exports2.appScssFromSrc = exports2.appJsBackend = exports2.appAutoGenJs = exports2.appAutoGenDocsMd = exports2.appTsFromSrc = exports2.TaonCommands = exports2.BundledDocsFolders = exports2.AngularJsonLibTaskNameResolveFor = exports2.AngularJsonLibTaskName = exports2.AngularJsonAppOrElectronTaskNameResolveFor = exports2.AngularJsonAppOrElectronTaskName = exports2.BundledFiles = exports2.libs = exports2.assetsFor = exports2.pwaGeneratedFolder = exports2.generatedDocsFromMd = exports2.generatedFromAssets = exports2.sharedFromAssets = exports2.assetsFromNpmPackage = exports2.assetsFromNgProj = exports2.assetsFromTempSrc = exports2.assetsFromNpmLib = exports2.assetsFromSrc = void 0;
|
|
390675
|
-
exports2.
|
|
390676
|
-
exports2.
|
|
390677
|
-
exports2.translationTsExt = exports2.i18nDataTsFileExt = exports2.i18nFolder = exports2.removeAngularCacheBeforeCompilation = exports2.markerEndImport = exports2.markerStartImport = exports2.timestampPrefixComment = exports2.endingsStylesComponentsContainers = exports2.skipLightWeightWatcherFor_Cjs = void 0;
|
|
391113
|
+
exports2.esLintRuleNoNamespaceReExport = exports2.vitestConfigJsonMainProject = exports2.esLintConfigJsonMainProject = exports2.esLintCustomRulesMainProject = exports2.webpackConfigJsMainProject = exports2.dotNpmIgnoreMainProject = exports2.dotGitIgnoreMainProject = exports2.dotNpmrcMainProject = exports2.TS_NOCHECK = exports2.tsconfigJsonIsomorphicMainProject = exports2.tsconfigForSchemaJson = exports2.tsconfigBackendEsmDistJson_PROD = exports2.tsconfigBackendDistJson_PROD = exports2.tsconfigBackendEsmDistJson = exports2.tsconfigBackendDistJson = exports2.tsconfigJsonBrowserMainProject = exports2.tsconfigSpecJsonMain = exports2.tsconfigSpecNgProject = exports2.tsconfigSubProject = exports2.tsconfigNgProject = exports2.tsconfigJsonMainProject = exports2.packageJsonLibDist = exports2.packageJsonNgProject = exports2.packageJsonNpmLibAngular = exports2.packageJsonVscodePlugin = exports2.packageJsonNpmLib = exports2.packageJsonSubProject = exports2.packageJsonMainProject = exports2.yarnLockMainProject = exports2.packageJsonLockSubProject = exports2.packageJsonLockMainProject = exports2.wranglerJsonC = exports2.buildJSprod = exports2.buildDevNormalJS = exports2.buildDevMinifyJS = exports2.externalJs = exports2.indexTsInSrcForWorker = exports2.dotVscodeMainProject = exports2.KV_DATABASE_ONLINE_NAME = exports2.dotInstallDate = exports2.localReleaseMainProject = exports2.MESSAGES = exports2.notAllowedAsPacakge = exports2.clientCodeVersionFolder = exports2.websqlNpmPackage = exports2.websqlFromImport = exports2.websqlFromCompiledDist = exports2.websqlMainProject = exports2.browserNpmPackage = exports2.browserFromImport = void 0;
|
|
391114
|
+
exports2.OBSERVER_PARALLELS = exports2.DEBOUNCE_debouceUpdate = exports2.DEBOUNCE_notifyLeaderAboutBuildDone = exports2.DEBOUNCE_trigerLeadBuilding = exports2.DEBOUCE_takeLeadOfBuildingDebounce = exports2.debugModeTaonLightWeightWatchMode = exports2.migrationIndexAutogeneratedTsFileRelativeToSrcPath = exports2.migration_index_autogenerated_ts = exports2.migrationsFromLib = exports2.ERR_MESSAGE_PROJECT_ALREADY_PART_OF_BUILD = exports2.ERR_MESSAGE_DEPLOYMENT_NOT_FOUND = exports2.TO_REMOVE_TAG = exports2.ONLY_COPY_ALLOWED = exports2.testEnvironmentsMainProject = exports2.containerPrefix = exports2.inspectBrkSuffix = exports2.inspectSuffix = exports2.debugBrkSuffix = exports2.debugSuffix = exports2.releaseSuffix = exports2.prodSuffix = exports2.suffixLatest = exports2.dotEnvFile = exports2.dotFileTemplateExt = exports2.databases = exports2.routes = exports2.baseHrefDocsGen = exports2.VERIFIED_BUILD_DATA = exports2.updateVscodePackageJsonJsMainProject = exports2.taonJsonMainProject = exports2.websqlCode = exports2.browserCode = exports2.resoveRealTsBrowserFolder = exports2.tsSourceNodeModules = exports2.sourceLinkInNodeModules = exports2.indexJsMapMainProject = exports2.indexJsMainProject = exports2.cliDtsNpmPackage = exports2.cliJSMapNpmPackage = exports2.cliJSNpmPackage = exports2.cliTsFromSrc = exports2.indexProdJs = exports2.indexJSElectronDist = exports2.indexJSNpmPackage = exports2.indexDtsNpmPackage = exports2.indexDtsMainProject = exports2.dotAI = exports2.dotGithubCopilotInstructions = exports2.AgentsMdMainProject = exports2.runJsMainProject = void 0;
|
|
391115
|
+
exports2.translationTsExt = exports2.i18nDataTsFileExt = exports2.i18nFolder = exports2.removeAngularCacheBeforeCompilation = exports2.markerEndImport = exports2.markerStartImport = exports2.timestampPrefixComment = exports2.endingsStylesComponentsContainers = exports2.skipLightWeightWatcherFor_Cjs = exports2.isMacOSorWindows = void 0;
|
|
390678
391116
|
exports2.tempSourceFolder = tempSourceFolder;
|
|
390679
391117
|
exports2.tempAppForFolder = tempAppForFolder;
|
|
390680
391118
|
var lib_13 = require_lib44();
|
|
@@ -391135,7 +391573,8 @@ var require_constants20 = __commonJS({
|
|
|
391135
391573
|
exports2.dotVscodeMainProject = ".vscode";
|
|
391136
391574
|
exports2.indexTsInSrcForWorker = `src/index.ts`;
|
|
391137
391575
|
exports2.externalJs = `external.js`;
|
|
391138
|
-
exports2.
|
|
391576
|
+
exports2.buildDevMinifyJS = `build.dev-minify.js`;
|
|
391577
|
+
exports2.buildDevNormalJS = `build.dev-normal.js`;
|
|
391139
391578
|
exports2.buildJSprod = `build.prod.js`;
|
|
391140
391579
|
exports2.wranglerJsonC = `wrangler.jsonc`;
|
|
391141
391580
|
exports2.packageJsonLockMainProject = lib_22.fileName.package_lock_json;
|
|
@@ -398123,6 +398562,112 @@ var require_utils_typescript = __commonJS({
|
|
|
398123
398562
|
return result2;
|
|
398124
398563
|
return void 0;
|
|
398125
398564
|
};
|
|
398565
|
+
UtilsTypescript2.wrapClassesNamespacesMethodsBodyWithWebsqlFuncInFile = (absFilePath) => {
|
|
398566
|
+
const fileContent2 = lib_42.Helpers.readFile(absFilePath);
|
|
398567
|
+
const newContent2 = UtilsTypescript2.wrapClassesNamespacesMethodsBodyWithWebsqlFunc(fileContent2);
|
|
398568
|
+
lib_42.Helpers.writeFile(absFilePath, newContent2);
|
|
398569
|
+
};
|
|
398570
|
+
UtilsTypescript2.wrapClassesNamespacesMethodsBodyWithWebsqlFunc = (fileContent2) => {
|
|
398571
|
+
const sourceFile = (0, typescript_1.createSourceFile)("source.ts", fileContent2, typescript_1.ScriptTarget.Latest, true, typescript_1.ScriptKind.TS);
|
|
398572
|
+
const replacements = [];
|
|
398573
|
+
const getIndent = (position) => {
|
|
398574
|
+
const lineStart = fileContent2.lastIndexOf("\n", position - 1) + 1;
|
|
398575
|
+
const beforeNode = fileContent2.slice(lineStart, position);
|
|
398576
|
+
return beforeNode.match(/^[\t ]*/)?.[0] || "";
|
|
398577
|
+
};
|
|
398578
|
+
const getBodyContent = (body) => {
|
|
398579
|
+
return fileContent2.slice(body.getStart(sourceFile) + 1, body.getEnd() - 1);
|
|
398580
|
+
};
|
|
398581
|
+
const isAlreadyWrapped = (body) => {
|
|
398582
|
+
const bodyContent = getBodyContent(body);
|
|
398583
|
+
const firstMeaningfulLine = bodyContent.split(/\r?\n/).map((line2) => line2.trim()).find(Boolean);
|
|
398584
|
+
return firstMeaningfulLine === `//#${"region"} @websqlFunc` || firstMeaningfulLine === `// #${"region"} @websqlFunc`;
|
|
398585
|
+
};
|
|
398586
|
+
const containsConditionalRegion = (body) => {
|
|
398587
|
+
const bodyContent = getBodyContent(body);
|
|
398588
|
+
return new RegExp(`\\/\\/\\s*#${"region"}\\s+@(` + [
|
|
398589
|
+
`${"backendFunc"}`,
|
|
398590
|
+
`${"backend"}`,
|
|
398591
|
+
`${"browser"}`,
|
|
398592
|
+
`${"websqlFunc"}`,
|
|
398593
|
+
`${"websql"}`
|
|
398594
|
+
].join("|") + `)\\b`).test(bodyContent);
|
|
398595
|
+
};
|
|
398596
|
+
const wrapBody = (body) => {
|
|
398597
|
+
if (isAlreadyWrapped(body)) {
|
|
398598
|
+
return;
|
|
398599
|
+
}
|
|
398600
|
+
const openBrace = body.getStart(sourceFile);
|
|
398601
|
+
const closeBrace = body.getEnd() - 1;
|
|
398602
|
+
const originalBody = fileContent2.slice(openBrace + 1, closeBrace);
|
|
398603
|
+
const blockIndent = getIndent(openBrace);
|
|
398604
|
+
const contentIndent = `${blockIndent} `;
|
|
398605
|
+
if (!originalBody.trim()) {
|
|
398606
|
+
replacements.push({
|
|
398607
|
+
start: openBrace + 1,
|
|
398608
|
+
end: closeBrace,
|
|
398609
|
+
content: [
|
|
398610
|
+
"",
|
|
398611
|
+
`${contentIndent}//#${"region"} @websqlFunc`,
|
|
398612
|
+
`${contentIndent}//#end${"region"}`,
|
|
398613
|
+
blockIndent
|
|
398614
|
+
].join("\n")
|
|
398615
|
+
});
|
|
398616
|
+
return;
|
|
398617
|
+
}
|
|
398618
|
+
const firstNewLinePosition = openBrace + 1;
|
|
398619
|
+
replacements.push({
|
|
398620
|
+
start: firstNewLinePosition,
|
|
398621
|
+
end: firstNewLinePosition,
|
|
398622
|
+
content: `
|
|
398623
|
+
${contentIndent}//#${"region"} @websqlFunc`
|
|
398624
|
+
});
|
|
398625
|
+
const bodyEndText = fileContent2.slice(openBrace + 1, closeBrace);
|
|
398626
|
+
const trailingWhitespaceMatch = bodyEndText.match(/(\r?\n[\t ]*)$/);
|
|
398627
|
+
const closingRegionPosition = trailingWhitespaceMatch ? closeBrace - trailingWhitespaceMatch[0].length : closeBrace;
|
|
398628
|
+
replacements.push({
|
|
398629
|
+
start: closingRegionPosition,
|
|
398630
|
+
end: closingRegionPosition,
|
|
398631
|
+
content: `
|
|
398632
|
+
${contentIndent}//#end${"region"}`
|
|
398633
|
+
});
|
|
398634
|
+
};
|
|
398635
|
+
const visit = (node) => {
|
|
398636
|
+
if ((0, typescript_1.isMethodDeclaration)(node) && node.body) {
|
|
398637
|
+
wrapBody(node.body);
|
|
398638
|
+
return;
|
|
398639
|
+
}
|
|
398640
|
+
if ((0, typescript_1.isGetAccessorDeclaration)(node) && node.body) {
|
|
398641
|
+
wrapBody(node.body);
|
|
398642
|
+
return;
|
|
398643
|
+
}
|
|
398644
|
+
if ((0, typescript_1.isSetAccessorDeclaration)(node) && node.body) {
|
|
398645
|
+
wrapBody(node.body);
|
|
398646
|
+
return;
|
|
398647
|
+
}
|
|
398648
|
+
if ((0, typescript_1.isFunctionDeclaration)(node) && node.body) {
|
|
398649
|
+
wrapBody(node.body);
|
|
398650
|
+
return;
|
|
398651
|
+
}
|
|
398652
|
+
if ((0, typescript_1.isFunctionExpression)(node) && node.body) {
|
|
398653
|
+
wrapBody(node.body);
|
|
398654
|
+
return;
|
|
398655
|
+
}
|
|
398656
|
+
if ((0, typescript_1.isArrowFunction)(node) && (0, typescript_1.isBlock)(node.body)) {
|
|
398657
|
+
wrapBody(node.body);
|
|
398658
|
+
return;
|
|
398659
|
+
}
|
|
398660
|
+
(0, typescript_1.forEachChild)(node, visit);
|
|
398661
|
+
};
|
|
398662
|
+
visit(sourceFile);
|
|
398663
|
+
replacements.sort((a, b) => b.start - a.start);
|
|
398664
|
+
let result2 = fileContent2;
|
|
398665
|
+
for (const replacement of replacements) {
|
|
398666
|
+
result2 = result2.slice(0, replacement.start) + replacement.content + result2.slice(replacement.end);
|
|
398667
|
+
}
|
|
398668
|
+
return result2;
|
|
398669
|
+
return void 0;
|
|
398670
|
+
};
|
|
398126
398671
|
async function travelAndModifyFunctionsPropsString(options2) {
|
|
398127
398672
|
const { envFileContent, modify } = options2;
|
|
398128
398673
|
const sourceFile = (0, typescript_1.createSourceFile)("env.ts", envFileContent, typescript_1.ScriptTarget.Latest, true, typescript_1.ScriptKind.TS);
|
|
@@ -400248,7 +400793,7 @@ var require_build_info_auto_generated3 = __commonJS({
|
|
|
400248
400793
|
exports2.BUILD_BASE_HREF = "";
|
|
400249
400794
|
exports2.PROJECT_NPM_NAME = "tnp-helpers";
|
|
400250
400795
|
exports2.CURRENT_PACKAGE_TAON_VERSION = "v21";
|
|
400251
|
-
exports2.CURRENT_PACKAGE_VERSION = "21.0.
|
|
400796
|
+
exports2.CURRENT_PACKAGE_VERSION = "21.0.132";
|
|
400252
400797
|
}
|
|
400253
400798
|
});
|
|
400254
400799
|
|
|
@@ -404641,13 +405186,20 @@ var require_base_file_folders_operations = __commonJS({
|
|
|
404641
405186
|
* @returns list of files and folders to copy when copying project
|
|
404642
405187
|
*/
|
|
404643
405188
|
fielsAndFoldersToCopy() {
|
|
404644
|
-
return [
|
|
405189
|
+
return lib_13.Utils.uniqArray([
|
|
404645
405190
|
lib_13.folderName._bin,
|
|
404646
405191
|
lib_13.folderName.src,
|
|
405192
|
+
".github",
|
|
405193
|
+
".vscode",
|
|
405194
|
+
"docs-config.jsonc",
|
|
405195
|
+
"logo.png",
|
|
405196
|
+
"sub-projects",
|
|
404647
405197
|
lib_13.folderName.docs,
|
|
405198
|
+
lib_13.fileName.taon_jsonc,
|
|
404648
405199
|
lib_13.fileName.package_json,
|
|
404649
|
-
lib_13.fileName.README_MD
|
|
404650
|
-
|
|
405200
|
+
lib_13.fileName.README_MD,
|
|
405201
|
+
...index_1.HelpersTaon.getValueFromJSONC(this.project.pathFor(lib_13.fileName.taon_jsonc), "resources") || []
|
|
405202
|
+
]);
|
|
404651
405203
|
}
|
|
404652
405204
|
//#endregion
|
|
404653
405205
|
//#region move project to
|
|
@@ -404690,14 +405242,17 @@ var require_base_file_folders_operations = __commonJS({
|
|
|
404690
405242
|
]);
|
|
404691
405243
|
if (lib_22.Helpers.exists(sourcePath)) {
|
|
404692
405244
|
if (lib_22.Helpers.isFolder(sourcePath)) {
|
|
404693
|
-
|
|
404694
|
-
|
|
405245
|
+
lib_22.Helpers.log(`Copying folder ${sourcePath} to ${destPath}`);
|
|
405246
|
+
lib_13.UtilsFilesFoldersSync.copy(sourcePath, destPath, {
|
|
405247
|
+
copySymlinksAsFiles: false,
|
|
405248
|
+
recursive: true
|
|
405249
|
+
});
|
|
404695
405250
|
} else {
|
|
404696
|
-
|
|
404697
|
-
|
|
405251
|
+
lib_22.Helpers.log(`Copying file ${sourcePath} to ${destPath}`);
|
|
405252
|
+
lib_13.UtilsFilesFoldersSync.copyFile(sourcePath, destPath);
|
|
404698
405253
|
}
|
|
404699
405254
|
} else {
|
|
404700
|
-
|
|
405255
|
+
lib_22.Helpers.warn(`Path ${sourcePath} does not exist. Skipping...`);
|
|
404701
405256
|
}
|
|
404702
405257
|
}
|
|
404703
405258
|
if (!options2.skipChildren) {
|
|
@@ -406403,7 +406958,7 @@ Please provide proper commit message for lastest changes in your project:
|
|
|
406403
406958
|
const indexCurrent = options2.projectsToTravel.findIndex((c) => c.location === this.project.location);
|
|
406404
406959
|
const indexStartFrom = options2.projectsToTravel.findIndex((c) => c.name === startFrom || c.nameForNpmPackage === startFrom);
|
|
406405
406960
|
const shouldPullThisProject = !startFrom || indexCurrent >= indexStartFrom;
|
|
406406
|
-
lib_13.Helpers.info(lib_22.chalk.bold(`Processing project ${coundProcessed.length}/${options2.projectsToTravel.length} [${this.project.name}${this.project.name !== this.project.nameForNpmPackage ? `(${this.project.nameForNpmPackage})` : ""}]`));
|
|
406961
|
+
lib_13.Helpers.info(lib_22.chalk.bold(`[Pull] Processing project ${coundProcessed.length}/${options2.projectsToTravel.length} [${this.project.name}${this.project.name !== this.project.nameForNpmPackage ? `(${this.project.nameForNpmPackage})` : ""}]`));
|
|
406407
406962
|
if (shouldPullThisProject) {
|
|
406408
406963
|
await this._beforePullProcessAction(setOrigin, skipCloneGitChildren);
|
|
406409
406964
|
await this.setRemoteOriginType(setOrigin);
|
|
@@ -406520,67 +407075,76 @@ Please provide proper commit message for lastest changes in your project:
|
|
|
406520
407075
|
}
|
|
406521
407076
|
//#region methods & getters / push process
|
|
406522
407077
|
async pushProcess(options2 = {}) {
|
|
406523
|
-
let { force = false, typeofCommit, skipLint, forcePushNoQuestion, origin: origin2 = "origin", exitCallBack, askToConfirmPush, askToConfirmCommit, updateType, askToConfirmBranchChange, args = [], commitMessageRequired, overrideCommitMessage, setOrigin, currentOrigin, mergeUpdateCommits } = options2;
|
|
406524
|
-
|
|
406525
|
-
|
|
406526
|
-
|
|
406527
|
-
const
|
|
406528
|
-
|
|
406529
|
-
|
|
406530
|
-
|
|
406531
|
-
|
|
406532
|
-
|
|
406533
|
-
|
|
406534
|
-
|
|
406535
|
-
|
|
406536
|
-
|
|
406537
|
-
|
|
406538
|
-
|
|
406539
|
-
|
|
406540
|
-
|
|
406541
|
-
|
|
406542
|
-
|
|
406543
|
-
|
|
406544
|
-
|
|
407078
|
+
let { force = false, typeofCommit, skipLint, forcePushNoQuestion, origin: origin2 = "origin", exitCallBack, askToConfirmPush, askToConfirmCommit, updateType, askToConfirmBranchChange, args = [], commitMessageRequired, overrideCommitMessage, startFrom, setOrigin, currentOrigin, mergeUpdateCommits } = options2;
|
|
407079
|
+
options2.projectsToTravel = options2.projectsToTravel || [];
|
|
407080
|
+
const processedForPull = "processedForPush";
|
|
407081
|
+
this.project.cache[processedForPull] = true;
|
|
407082
|
+
const coundProcessed = options2.projectsToTravel.filter((f) => f.cache[processedForPull]);
|
|
407083
|
+
const indexCurrent = options2.projectsToTravel.findIndex((c) => c.location === this.project.location);
|
|
407084
|
+
const indexStartFrom = options2.projectsToTravel.findIndex((c) => c.name === startFrom || c.nameForNpmPackage === startFrom);
|
|
407085
|
+
const shouldPushThisProject = !startFrom || indexCurrent >= indexStartFrom;
|
|
407086
|
+
lib_13.Helpers.info(lib_22.chalk.bold(`[Push] Processing project ${coundProcessed.length}/${options2.projectsToTravel.length} [${this.project.name}${this.project.name !== this.project.nameForNpmPackage ? `(${this.project.nameForNpmPackage})` : ""}]`));
|
|
407087
|
+
if (shouldPushThisProject) {
|
|
407088
|
+
await this._beforePushProcessAction(setOrigin);
|
|
407089
|
+
await this.setRemoteOriginType(setOrigin);
|
|
407090
|
+
await this.project.linkedProjects.saveLocationToDB();
|
|
407091
|
+
const commitData = await this._getCommitMessage(typeofCommit, args, commitMessageRequired, currentOrigin);
|
|
407092
|
+
if (mergeUpdateCommits && this.project.git.stagedFiles.length > 0) {
|
|
407093
|
+
lib_13.Helpers.logInfo(`Pushing detailed changes to project: ${this.project.genericName}`);
|
|
407094
|
+
lib_13.Helpers.logInfo(`Modified files... `);
|
|
407095
|
+
lib_13.Helpers.logInfo([...this.project.git.stagedFiles].map((f) => ` - ${lib_22.chalk.underline(f)}`).join("\n"));
|
|
407096
|
+
while (true) {
|
|
407097
|
+
const mergeAction = {
|
|
407098
|
+
useUpdateCommit: {
|
|
407099
|
+
name: `Use temporary update commit "${index_1.HelpersTaon.git.getACTION_MSG_RESET_GIT_HARD_COMMIT()}" and force push`
|
|
407100
|
+
},
|
|
407101
|
+
provideCommitMessage: {
|
|
407102
|
+
name: "Provide commit message and force push"
|
|
407103
|
+
},
|
|
407104
|
+
resetRemoveChanges: {
|
|
407105
|
+
name: "Reset/remove changes and force push"
|
|
407106
|
+
},
|
|
407107
|
+
openInVscode: {
|
|
407108
|
+
name: "Open project in vscode"
|
|
407109
|
+
}
|
|
407110
|
+
};
|
|
407111
|
+
const action = force ? "useUpdateCommit" : await lib_32.UtilsTerminal.select({
|
|
407112
|
+
choices: mergeAction,
|
|
407113
|
+
question: "What to do ?"
|
|
407114
|
+
});
|
|
407115
|
+
if (action === "openInVscode") {
|
|
407116
|
+
await this.project.openInEditor();
|
|
407117
|
+
continue;
|
|
406545
407118
|
}
|
|
406546
|
-
|
|
406547
|
-
|
|
406548
|
-
|
|
406549
|
-
|
|
406550
|
-
|
|
406551
|
-
|
|
406552
|
-
|
|
406553
|
-
|
|
406554
|
-
|
|
406555
|
-
|
|
406556
|
-
|
|
406557
|
-
|
|
406558
|
-
|
|
406559
|
-
|
|
406560
|
-
|
|
406561
|
-
|
|
406562
|
-
|
|
406563
|
-
|
|
406564
|
-
|
|
406565
|
-
|
|
406566
|
-
|
|
406567
|
-
|
|
406568
|
-
|
|
406569
|
-
|
|
406570
|
-
overrideCommitMessage = await lib_32.UtilsTerminal.input({
|
|
406571
|
-
question: `Please provide commit message for current changes:`,
|
|
406572
|
-
defaultValue: "update"
|
|
406573
|
-
});
|
|
406574
|
-
} catch (error2) {
|
|
407119
|
+
if (action === "resetRemoveChanges") {
|
|
407120
|
+
force = true;
|
|
407121
|
+
forcePushNoQuestion = true;
|
|
407122
|
+
this.project.git.resetHard();
|
|
407123
|
+
break;
|
|
407124
|
+
}
|
|
407125
|
+
if (action === "useUpdateCommit") {
|
|
407126
|
+
force = true;
|
|
407127
|
+
forcePushNoQuestion = true;
|
|
407128
|
+
overrideCommitMessage = index_1.HelpersTaon.git.getACTION_MSG_RESET_GIT_HARD_COMMIT();
|
|
407129
|
+
}
|
|
407130
|
+
if (action === "provideCommitMessage") {
|
|
407131
|
+
force = true;
|
|
407132
|
+
forcePushNoQuestion = true;
|
|
407133
|
+
try {
|
|
407134
|
+
overrideCommitMessage = await lib_32.UtilsTerminal.input({
|
|
407135
|
+
question: `Please provide commit message for current changes:`,
|
|
407136
|
+
defaultValue: "update"
|
|
407137
|
+
});
|
|
407138
|
+
} catch (error2) {
|
|
407139
|
+
}
|
|
407140
|
+
}
|
|
407141
|
+
if (overrideCommitMessage) {
|
|
407142
|
+
break;
|
|
406575
407143
|
}
|
|
406576
|
-
}
|
|
406577
|
-
if (overrideCommitMessage) {
|
|
406578
|
-
break;
|
|
406579
407144
|
}
|
|
406580
407145
|
}
|
|
406581
|
-
|
|
406582
|
-
|
|
406583
|
-
lib_13.Helpers.info(`
|
|
407146
|
+
if (commitData.typeOfCommit === "feature" && commitData.jiraNumbers?.length === 1 && commitData.issuesFromOtherProjects?.length === 0) {
|
|
407147
|
+
lib_13.Helpers.info(`
|
|
406584
407148
|
|
|
406585
407149
|
You current feature branch "${this.project.git.currentBranchName}"
|
|
406586
407150
|
doesn't have ${lib_22.chalk.bold("main-issue")} and ${lib_22.chalk.bold("sub-issue")} inlcueded.
|
|
@@ -406588,13 +407152,13 @@ Please provide proper commit message for lastest changes in your project:
|
|
|
406588
407152
|
Proper example: feature/JIRANUM-<number-of-sub-issue>-JIRANUM-<number-of-main-issue>-commit-name
|
|
406589
407153
|
|
|
406590
407154
|
`);
|
|
406591
|
-
|
|
406592
|
-
|
|
407155
|
+
if (!await lib_13.Helpers.questionYesNo("Continue without sub-issue?")) {
|
|
407156
|
+
process.exit(0);
|
|
407157
|
+
}
|
|
406593
407158
|
}
|
|
406594
|
-
|
|
406595
|
-
|
|
406596
|
-
|
|
406597
|
-
lib_13.Helpers.error(`
|
|
407159
|
+
if (!this.automaticallyAddAllChangesWhenPushingToGit()) {
|
|
407160
|
+
if (commitData.commitMessage?.split(":").map((p) => p.trim()).every((p) => p === this.project.git.currentBranchName)) {
|
|
407161
|
+
lib_13.Helpers.error(`
|
|
406598
407162
|
|
|
406599
407163
|
Please provide more specific commit message than branch name
|
|
406600
407164
|
or maybe you forgot ?
|
|
@@ -406602,41 +407166,41 @@ Please provide proper commit message for lastest changes in your project:
|
|
|
406602
407166
|
- JIRA ISSUE? (example JIRA-1234)
|
|
406603
407167
|
|
|
406604
407168
|
`, false, true);
|
|
407169
|
+
}
|
|
406605
407170
|
}
|
|
406606
|
-
|
|
406607
|
-
|
|
406608
|
-
|
|
406609
|
-
|
|
406610
|
-
|
|
406611
|
-
|
|
406612
|
-
|
|
406613
|
-
|
|
406614
|
-
|
|
406615
|
-
|
|
406616
|
-
|
|
406617
|
-
|
|
406618
|
-
|
|
406619
|
-
|
|
406620
|
-
|
|
406621
|
-
await this.project.lint(options2);
|
|
406622
|
-
break;
|
|
406623
|
-
} catch (error2) {
|
|
406624
|
-
lib_13.Helpers.warn("Fix your code...");
|
|
406625
|
-
if (!await index_1.HelpersTaon.consoleGui.question.yesNo("Try again lint before commit ?")) {
|
|
407171
|
+
if (this.skipLintOnPush()) {
|
|
407172
|
+
skipLint = true;
|
|
407173
|
+
}
|
|
407174
|
+
if (commitData.typeOfCommit === "release") {
|
|
407175
|
+
skipLint = true;
|
|
407176
|
+
}
|
|
407177
|
+
const numberOfStagedFiles = this.project.git.stagedFiles.length;
|
|
407178
|
+
if (numberOfStagedFiles === 0) {
|
|
407179
|
+
lib_13.Helpers.warn(`No staged files...`);
|
|
407180
|
+
skipLint = true;
|
|
407181
|
+
}
|
|
407182
|
+
if (!skipLint) {
|
|
407183
|
+
while (true) {
|
|
407184
|
+
try {
|
|
407185
|
+
await this.project.lint(options2);
|
|
406626
407186
|
break;
|
|
407187
|
+
} catch (error2) {
|
|
407188
|
+
lib_13.Helpers.warn("Fix your code...");
|
|
407189
|
+
if (!await index_1.HelpersTaon.consoleGui.question.yesNo("Try again lint before commit ?")) {
|
|
407190
|
+
break;
|
|
407191
|
+
}
|
|
406627
407192
|
}
|
|
406628
407193
|
}
|
|
406629
407194
|
}
|
|
406630
|
-
|
|
406631
|
-
|
|
406632
|
-
|
|
406633
|
-
|
|
406634
|
-
|
|
406635
|
-
|
|
406636
|
-
|
|
406637
|
-
|
|
406638
|
-
|
|
406639
|
-
lib_13.Helpers.info(`
|
|
407195
|
+
if (this.project.useFeatureInBranchNameForTests() && commitData.typeOfCommit === "test") {
|
|
407196
|
+
commitData.useFeatureBranchForTestBranch = true;
|
|
407197
|
+
}
|
|
407198
|
+
if (!commitData.isActionCommit) {
|
|
407199
|
+
const commitMessageFromBranch = (await commit_data_1.CommitData.getFromBranch(commitData.branchName, {
|
|
407200
|
+
currentOrigin,
|
|
407201
|
+
jiraIssuesAreOutsideBrackets: this.project.git.jiraIssuesAreOutsideBrackets()
|
|
407202
|
+
})).commitMessage;
|
|
407203
|
+
lib_13.Helpers.info(`
|
|
406640
407204
|
|
|
406641
407205
|
PROJECT: ${this.project.genericName}
|
|
406642
407206
|
|
|
@@ -406646,8 +407210,8 @@ Please provide proper commit message for lastest changes in your project:
|
|
|
406646
407210
|
(generated branches from metadata not allowed for this project)
|
|
406647
407211
|
|
|
406648
407212
|
`}`);
|
|
406649
|
-
|
|
406650
|
-
|
|
407213
|
+
if (!overrideCommitMessage && commitMessageFromBranch !== commitData.commitMessage) {
|
|
407214
|
+
lib_13.Helpers.logWarn(`Commit from args and commit from branch are different
|
|
406651
407215
|
commit message from args: ${commitData.commitMessage}
|
|
406652
407216
|
commit message from branch: ${commitMessageFromBranch}
|
|
406653
407217
|
|
|
@@ -406655,72 +407219,76 @@ Please provide proper commit message for lastest changes in your project:
|
|
|
406655
407219
|
commit changes in one commit message
|
|
406656
407220
|
|
|
406657
407221
|
`);
|
|
406658
|
-
|
|
406659
|
-
|
|
406660
|
-
|
|
406661
|
-
|
|
406662
|
-
|
|
406663
|
-
|
|
406664
|
-
|
|
407222
|
+
} else {
|
|
407223
|
+
lib_13.Helpers.logInfo(lib_22.chalk.gray(`Commit from args and commit from branch are the same...`));
|
|
407224
|
+
}
|
|
407225
|
+
const lastCommitMessage = this.project.git.lastCommitMessage();
|
|
407226
|
+
if (lastCommitMessage && [commitData.commitMessage, overrideCommitMessage].filter((f) => !!f).some((m) => m === lastCommitMessage)) {
|
|
407227
|
+
if (await lib_13.Helpers.questionYesNo("Soft reset last commit with same message ?")) {
|
|
407228
|
+
this.project.git.resetSoftHEAD(1);
|
|
407229
|
+
}
|
|
407230
|
+
}
|
|
407231
|
+
if (!await lib_13.Helpers.questionYesNo("Commit and push this ?")) {
|
|
407232
|
+
exitCallBack();
|
|
406665
407233
|
}
|
|
406666
407234
|
}
|
|
406667
|
-
if (
|
|
406668
|
-
|
|
407235
|
+
if (this.automaticallyAddAllChangesWhenPushingToGit()) {
|
|
407236
|
+
this.project.git.stageAllFiles();
|
|
406669
407237
|
}
|
|
406670
|
-
|
|
406671
|
-
|
|
406672
|
-
|
|
406673
|
-
|
|
406674
|
-
|
|
406675
|
-
|
|
406676
|
-
|
|
406677
|
-
|
|
406678
|
-
|
|
406679
|
-
|
|
406680
|
-
|
|
407238
|
+
if (this.useGitBranchesAsMetadataForCommits() && !overrideCommitMessage) {
|
|
407239
|
+
lib_13.Helpers.info("Checkingout branches (if needed)...");
|
|
407240
|
+
if (this.project.git.currentBranchName?.trim() !== commitData.branchName) {
|
|
407241
|
+
if (askToConfirmBranchChange) {
|
|
407242
|
+
lib_13.Helpers.info(`Changing branch to: ${commitData.branchName}`);
|
|
407243
|
+
if (!await lib_13.Helpers.questionYesNo("Confirm branch change ?")) {
|
|
407244
|
+
exitCallBack();
|
|
407245
|
+
}
|
|
407246
|
+
}
|
|
407247
|
+
try {
|
|
407248
|
+
this.project.git.checkout(commitData.branchName, {
|
|
407249
|
+
createBranchIfNotExists: true
|
|
407250
|
+
});
|
|
407251
|
+
} catch (error2) {
|
|
407252
|
+
lib_13.Helpers.error("Please modyfiy you commit message or delete branch,");
|
|
406681
407253
|
}
|
|
406682
407254
|
}
|
|
406683
|
-
|
|
406684
|
-
|
|
406685
|
-
|
|
406686
|
-
|
|
406687
|
-
|
|
406688
|
-
lib_13.Helpers.error("Please modyfiy you commit message or delete branch,");
|
|
407255
|
+
}
|
|
407256
|
+
if (askToConfirmCommit) {
|
|
407257
|
+
lib_13.Helpers.info(`Commit message: ${overrideCommitMessage ? overrideCommitMessage : commitData.commitMessage}`);
|
|
407258
|
+
if (!await lib_13.Helpers.questionYesNo("Confirm commit ?")) {
|
|
407259
|
+
exitCallBack();
|
|
406689
407260
|
}
|
|
406690
407261
|
}
|
|
406691
|
-
|
|
406692
|
-
|
|
406693
|
-
|
|
406694
|
-
|
|
406695
|
-
exitCallBack();
|
|
407262
|
+
try {
|
|
407263
|
+
this.project.git.commit(overrideCommitMessage ? overrideCommitMessage : commitData.commitMessage);
|
|
407264
|
+
} catch (error2) {
|
|
407265
|
+
lib_13.Helpers.warn(`Not commiting anything... `);
|
|
406696
407266
|
}
|
|
406697
|
-
|
|
406698
|
-
|
|
406699
|
-
|
|
406700
|
-
|
|
406701
|
-
lib_13.Helpers.warn(`Not commiting anything... `);
|
|
406702
|
-
}
|
|
406703
|
-
if (askToConfirmPush) {
|
|
406704
|
-
if (!await lib_13.Helpers.questionYesNo("Confirm push ?")) {
|
|
406705
|
-
exitCallBack();
|
|
407267
|
+
if (askToConfirmPush) {
|
|
407268
|
+
if (!await lib_13.Helpers.questionYesNo("Confirm push ?")) {
|
|
407269
|
+
exitCallBack();
|
|
407270
|
+
}
|
|
406706
407271
|
}
|
|
407272
|
+
await this.project.git.pushCurrentBranch({
|
|
407273
|
+
force,
|
|
407274
|
+
origin: origin2,
|
|
407275
|
+
forcePushNoQuestion,
|
|
407276
|
+
askToRetry: true
|
|
407277
|
+
});
|
|
406707
407278
|
}
|
|
406708
|
-
await this.project.git.pushCurrentBranch({
|
|
406709
|
-
force,
|
|
406710
|
-
origin: origin2,
|
|
406711
|
-
forcePushNoQuestion,
|
|
406712
|
-
askToRetry: true
|
|
406713
|
-
});
|
|
406714
407279
|
if (this.automaticallyAddAllChangesWhenPushingToGit() || updateType === "first-level" || updateType === "deep") {
|
|
406715
407280
|
if (this.project.linkedProjects.getLinkedProjectsConfig().skipRecrusivePush) {
|
|
406716
407281
|
lib_13.Helpers.warn(`Skipping recrusive (children) push for ${this.project.genericName}`);
|
|
406717
407282
|
return;
|
|
406718
407283
|
}
|
|
406719
407284
|
const optForChildren = lib_32._.cloneDeep(options2);
|
|
407285
|
+
const projectsToVisit = options2.projectsToTravel || [];
|
|
407286
|
+
delete options2.projectsToTravel;
|
|
406720
407287
|
if (updateType === "first-level") {
|
|
406721
407288
|
optForChildren.updateType = "only-this";
|
|
406722
407289
|
}
|
|
406723
407290
|
for (const child of this.gitChildren) {
|
|
407291
|
+
optForChildren.projectsToTravel = projectsToVisit;
|
|
406724
407292
|
if (mergeUpdateCommits) {
|
|
406725
407293
|
await child.git.meltActionCommits();
|
|
406726
407294
|
}
|
|
@@ -426816,6 +427384,7 @@ ${lastCommitMessage}
|
|
|
426816
427384
|
return;
|
|
426817
427385
|
}
|
|
426818
427386
|
await this._preventPushPullFromNotCorrectBranch();
|
|
427387
|
+
const projectsToTravel = this._countChildren(options2?.updateType === "first-level");
|
|
426819
427388
|
if (!options2.overrideCommitMessage && this.project.git.useBranchNameDirectlyAsCommitMessage()) {
|
|
426820
427389
|
const jiraNumbers = commit_data_1.CommitData.extractAndOrderJiraNumbers(this.args.join(" "));
|
|
426821
427390
|
lib_22.Helpers.info(`Using branch name directly as commit message.
|
|
@@ -426832,6 +427401,9 @@ ${lastCommitMessage}
|
|
|
426832
427401
|
await this.project.git.pushProcess({
|
|
426833
427402
|
...options2,
|
|
426834
427403
|
forcePushNoQuestion: options2.force,
|
|
427404
|
+
projectsToTravel,
|
|
427405
|
+
// @ts-ignore
|
|
427406
|
+
startFrom: this.params.startFrom,
|
|
426835
427407
|
args: options2?.overrideCommitMessage ? (options2?.overrideCommitMessage || "").split(" ") : this.args,
|
|
426836
427408
|
exitCallBack: () => {
|
|
426837
427409
|
this._exit();
|
|
@@ -427280,7 +427852,6 @@ ${lastCommitMessage}
|
|
|
427280
427852
|
})) {
|
|
427281
427853
|
return;
|
|
427282
427854
|
}
|
|
427283
|
-
lib_22.Helpers.clearConsole();
|
|
427284
427855
|
lib_22.Helpers.info(await this.project.info());
|
|
427285
427856
|
await this.project.linkedProjects.saveAllLinkedProjectsToDB();
|
|
427286
427857
|
this._exit();
|
|
@@ -430794,6 +431365,61 @@ export * from './${folder}';
|
|
|
430794
431365
|
}
|
|
430795
431366
|
});
|
|
430796
431367
|
|
|
431368
|
+
// tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.js
|
|
431369
|
+
var require_artifact_angular_node_app_helpers = __commonJS({
|
|
431370
|
+
"tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app-helpers.js"(exports2) {
|
|
431371
|
+
"use strict";
|
|
431372
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
431373
|
+
exports2.ArtifactsAngularNodeAppHelpers = void 0;
|
|
431374
|
+
var lib_13 = require_lib31();
|
|
431375
|
+
var constants_12 = require_constants20();
|
|
431376
|
+
var ArtifactsAngularNodeAppHelpers;
|
|
431377
|
+
(function(ArtifactsAngularNodeAppHelpers2) {
|
|
431378
|
+
ArtifactsAngularNodeAppHelpers2.updateReleasDotEnv = async (contextsNames, localReleaseOutputBasePath, project, releaseOptions) => {
|
|
431379
|
+
const useDomain = releaseOptions.website.useDomain;
|
|
431380
|
+
const domain = releaseOptions.website.domain;
|
|
431381
|
+
for (let i = 0; i < contextsNames.length; i++) {
|
|
431382
|
+
const contextRealIndex = i + 1;
|
|
431383
|
+
const contextName = contextsNames[i].contextName;
|
|
431384
|
+
const taskNameBackendReleasePort = `docker release ${domain} ${releaseOptions.release.releaseType} backend port for ${contextName} (n=${contextRealIndex})`;
|
|
431385
|
+
const portBackendRelease = await project.registerAndAssignPort(taskNameBackendReleasePort);
|
|
431386
|
+
const taskNameFrontendreleasePort = `docker release ${domain} ${releaseOptions.release.releaseType} frontend port for ${contextName} (n=${contextRealIndex})`;
|
|
431387
|
+
const portFrontendRelease = await project.registerAndAssignPort(taskNameFrontendreleasePort);
|
|
431388
|
+
const domainForContextFE = useDomain ? domain : `http://localhost:${portFrontendRelease}`;
|
|
431389
|
+
const domainForContextBE = useDomain ? domain : `http://localhost:${portBackendRelease}`;
|
|
431390
|
+
lib_13.UtilsDotFile.setValuesKeysFromObject([localReleaseOutputBasePath, constants_12.dotEnvFile], {
|
|
431391
|
+
[`HOST_BACKEND_PORT_${contextRealIndex}`]: portBackendRelease,
|
|
431392
|
+
[`HOST_URL_${contextRealIndex}`]: domainForContextBE,
|
|
431393
|
+
[`FRONTEND_NORMAL_APP_PORT_${contextRealIndex}`]: portFrontendRelease,
|
|
431394
|
+
[`FRONTEND_HOST_URL_${contextRealIndex}`]: domainForContextFE,
|
|
431395
|
+
...i === 0 ? {
|
|
431396
|
+
[`HOST_BACKEND_PORT`]: portBackendRelease,
|
|
431397
|
+
[`HOST_URL`]: domainForContextBE,
|
|
431398
|
+
[`FRONTEND_NORMAL_APP_PORT`]: portFrontendRelease,
|
|
431399
|
+
[`FRONTEND_HOST_URL`]: domainForContextFE
|
|
431400
|
+
} : {}
|
|
431401
|
+
});
|
|
431402
|
+
lib_13.UtilsDotFile.setCommentToKeyInDotFile([localReleaseOutputBasePath, constants_12.dotEnvFile], `HOST_BACKEND_PORT_${contextRealIndex}`, `${lib_13.CoreModels.tagForTaskName}="${taskNameBackendReleasePort}"`);
|
|
431403
|
+
if (i === 0) {
|
|
431404
|
+
lib_13.UtilsDotFile.setCommentToKeyInDotFile([localReleaseOutputBasePath, constants_12.dotEnvFile], `HOST_BACKEND_PORT`, `${lib_13.CoreModels.tagForTaskName}="${taskNameBackendReleasePort}"`);
|
|
431405
|
+
}
|
|
431406
|
+
lib_13.UtilsDotFile.setCommentToKeyInDotFile([localReleaseOutputBasePath, constants_12.dotEnvFile], `FRONTEND_NORMAL_APP_PORT_${contextRealIndex}`, `${lib_13.CoreModels.tagForTaskName}="${taskNameFrontendreleasePort}"`);
|
|
431407
|
+
}
|
|
431408
|
+
if (!useDomain) {
|
|
431409
|
+
lib_13.UtilsDotFile.addCommentAtTheBeginningOfDotFile([localReleaseOutputBasePath, constants_12.dotEnvFile], `HINT! IF YOU NEED DOMAIN USE userDomain=true in env.ts`);
|
|
431410
|
+
}
|
|
431411
|
+
if (!releaseOptions.build.cloudflare) {
|
|
431412
|
+
lib_13.UtilsDotFile.setValueToDotFile([localReleaseOutputBasePath, ".env"], "COMPOSE_PROJECT_NAME", ("TaonDeployment__" + lib_13._.camelCase(releaseOptions.website.domain) + `__v${lib_13._.kebabCase(project.packageJson.version)}__release-type-${releaseOptions.release.releaseType}--env--${!releaseOptions.release.envName || releaseOptions.release.envName === "__" ? "default" : releaseOptions.release.envName}${releaseOptions.release.envNumber || ""}`).toLowerCase());
|
|
431413
|
+
}
|
|
431414
|
+
if (!releaseOptions.build.cloudflare) {
|
|
431415
|
+
lib_13.UtilsDotFile.setValueToDotFile([localReleaseOutputBasePath, constants_12.dotEnvFile], "BUILD_DATE", `${(0, lib_13.dateformat)(/* @__PURE__ */ new Date(), "dd-mm-yyyy_HH:MM:ss")}`);
|
|
431416
|
+
lib_13.UtilsDotFile.setValueToDotFile([localReleaseOutputBasePath, constants_12.dotEnvFile], "NODE_ENV", `production`);
|
|
431417
|
+
}
|
|
431418
|
+
};
|
|
431419
|
+
})(ArtifactsAngularNodeAppHelpers || (exports2.ArtifactsAngularNodeAppHelpers = ArtifactsAngularNodeAppHelpers = {}));
|
|
431420
|
+
}
|
|
431421
|
+
});
|
|
431422
|
+
|
|
430797
431423
|
// tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/project/abstract/cloud-flare-projects/cloud-flare-project.js
|
|
430798
431424
|
var require_cloud_flare_project = __commonJS({
|
|
430799
431425
|
"tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/project/abstract/cloud-flare-projects/cloud-flare-project.js"(exports2) {
|
|
@@ -430804,6 +431430,7 @@ var require_cloud_flare_project = __commonJS({
|
|
|
430804
431430
|
var lib_22 = require_lib31();
|
|
430805
431431
|
var lib_32 = require_lib47();
|
|
430806
431432
|
var constants_12 = require_constants20();
|
|
431433
|
+
var artifact_angular_node_app_helpers_1 = require_artifact_angular_node_app_helpers();
|
|
430807
431434
|
var cloud_flare_projects_utils_1 = require_cloud_flare_projects_utils();
|
|
430808
431435
|
var CloudFlareSubProject = class {
|
|
430809
431436
|
absLocationPath;
|
|
@@ -430970,7 +431597,7 @@ var require_cloud_flare_project = __commonJS({
|
|
|
430970
431597
|
}
|
|
430971
431598
|
await cloud_flare_projects_utils_1.CloudFlarePorjectsUtils.loginCliCloudFlare();
|
|
430972
431599
|
await this.addKVDb();
|
|
430973
|
-
await this.deployment();
|
|
431600
|
+
await this.deployment(opt.releaseOptions);
|
|
430974
431601
|
const secretsData = this.apiSecretsKeyData();
|
|
430975
431602
|
if (secretsData.length > 0) {
|
|
430976
431603
|
if (await lib_22.UtilsTerminal.confirm({
|
|
@@ -431004,7 +431631,7 @@ var require_cloud_flare_project = __commonJS({
|
|
|
431004
431631
|
}
|
|
431005
431632
|
//#endregion
|
|
431006
431633
|
//#region deplyment to cloud flare
|
|
431007
|
-
async deployment() {
|
|
431634
|
+
async deployment(releaseOptions) {
|
|
431008
431635
|
await this.init();
|
|
431009
431636
|
await cloud_flare_projects_utils_1.CloudFlarePorjectsUtils.loginCliCloudFlare();
|
|
431010
431637
|
lib_22.Helpers.taskStarted(`STARTING DEPLOYMENT OF WORKER ${this.cwdWorker}`);
|
|
@@ -431019,12 +431646,32 @@ var require_cloud_flare_project = __commonJS({
|
|
|
431019
431646
|
});
|
|
431020
431647
|
const masterKey = (await ctrl.getMasterPassword(this.taonParentProject.location).request()).body.text;
|
|
431021
431648
|
lib_22.UtilsFilesFoldersSync.writeFile([this.cwdWorker, ".env"], `${lib_22.UtilsSecretEnv.MASTER_PASS_KEY}="${masterKey}"`);
|
|
431649
|
+
const contextsNames = this.taonParentProject.framework.getAllDetectedTaonContexts({
|
|
431650
|
+
skipLibFolder: true
|
|
431651
|
+
});
|
|
431652
|
+
releaseOptions.build.cloudflare = true;
|
|
431653
|
+
if (!releaseOptions.website.useDomain) {
|
|
431654
|
+
releaseOptions.website.useDomain = true;
|
|
431655
|
+
releaseOptions.website.domain = this.workerUrl;
|
|
431656
|
+
}
|
|
431657
|
+
await artifact_angular_node_app_helpers_1.ArtifactsAngularNodeAppHelpers.updateReleasDotEnv(contextsNames, this.cwdWorker, this.taonParentProject, releaseOptions);
|
|
431022
431658
|
const data = await lib_22.UtilsExecProc.spawnAsync(`npm-run wrangler deploy --secrets-file .env`, {
|
|
431023
431659
|
cwd: this.cwdWorker
|
|
431024
431660
|
}).getOutput();
|
|
431025
431661
|
const accountName = cloud_flare_projects_utils_1.CloudFlarePorjectsUtils.extractWorkersDevInfo(data.stdout + data.stderr);
|
|
431026
431662
|
lib_22.Helpers.removeFileIfExists([this.cwdWorker, ".env"]);
|
|
431027
|
-
lib_22.Helpers.taskDone(`
|
|
431663
|
+
lib_22.Helpers.taskDone(`
|
|
431664
|
+
|
|
431665
|
+
DONE DEPLOYMENT on acccount name "${accountName}"
|
|
431666
|
+
|
|
431667
|
+
|
|
431668
|
+
YOU WEBSITE IS AVAILABLE HERE:
|
|
431669
|
+
|
|
431670
|
+
${this.workerUrl}
|
|
431671
|
+
|
|
431672
|
+
|
|
431673
|
+
|
|
431674
|
+
`);
|
|
431028
431675
|
this.taonParentProject.taonJson.setCloudFlareAccountSubdomain(accountName);
|
|
431029
431676
|
break;
|
|
431030
431677
|
} catch (error2) {
|
|
@@ -431201,7 +431848,9 @@ var require_cloud_flare_custom_worker = __commonJS({
|
|
|
431201
431848
|
});
|
|
431202
431849
|
const masterKey = (await ctrl.getMasterPassword(this.taonParentProject.location).request()).body.text;
|
|
431203
431850
|
lib_13.Helpers.removeFileIfExists([this.cwdWorker, ".env"]);
|
|
431204
|
-
|
|
431851
|
+
const cloudflareBuildFile = envOptions.build.prod ? constants_12.buildJSprod : envOptions.release.nodeBackendApp.minify ? constants_12.buildDevMinifyJS : constants_12.buildDevNormalJS;
|
|
431852
|
+
lib_13.Helpers.info(`Using build file: ${cloudflareBuildFile}`);
|
|
431853
|
+
await lib_13.UtilsExecProc.spawnAsync(`npm-run bun run ${cloudflareBuildFile}`, {
|
|
431205
431854
|
cwd: this.cwdWorker,
|
|
431206
431855
|
showOutput: true,
|
|
431207
431856
|
showOutputColor: true
|
|
@@ -431244,10 +431893,12 @@ var require_cloud_flare_custom_worker = __commonJS({
|
|
|
431244
431893
|
});
|
|
431245
431894
|
}
|
|
431246
431895
|
//#endregion
|
|
431896
|
+
//#region API / get files for branding worker
|
|
431247
431897
|
getFilesForBrandingWorker() {
|
|
431248
431898
|
const filesForBranding = [
|
|
431249
431899
|
...super.getFilesForBrandingWorker(),
|
|
431250
|
-
{ relativePath: constants_12.
|
|
431900
|
+
{ relativePath: constants_12.buildDevMinifyJS },
|
|
431901
|
+
{ relativePath: constants_12.buildDevNormalJS },
|
|
431251
431902
|
{ relativePath: constants_12.buildJSprod },
|
|
431252
431903
|
{ relativePath: constants_12.externalJs },
|
|
431253
431904
|
{ relativePath: constants_12.wranglerJsonC },
|
|
@@ -431392,7 +432043,7 @@ var require_build_info_auto_generated4 = __commonJS({
|
|
|
431392
432043
|
exports2.BUILD_BASE_HREF = "";
|
|
431393
432044
|
exports2.PROJECT_NPM_NAME = "@taon-dev/api-workers";
|
|
431394
432045
|
exports2.CURRENT_PACKAGE_TAON_VERSION = "v21";
|
|
431395
|
-
exports2.CURRENT_PACKAGE_VERSION = "21.0.
|
|
432046
|
+
exports2.CURRENT_PACKAGE_VERSION = "21.0.23";
|
|
431396
432047
|
}
|
|
431397
432048
|
});
|
|
431398
432049
|
|
|
@@ -432266,7 +432917,7 @@ var require_build_info_auto_generated5 = __commonJS({
|
|
|
432266
432917
|
exports2.BUILD_BASE_HREF = "";
|
|
432267
432918
|
exports2.PROJECT_NPM_NAME = "@taon-dev/cloud";
|
|
432268
432919
|
exports2.CURRENT_PACKAGE_TAON_VERSION = "v21";
|
|
432269
|
-
exports2.CURRENT_PACKAGE_VERSION = "21.0.
|
|
432920
|
+
exports2.CURRENT_PACKAGE_VERSION = "21.0.243";
|
|
432270
432921
|
}
|
|
432271
432922
|
});
|
|
432272
432923
|
|
|
@@ -433091,7 +433742,7 @@ var require_processes_repository = __commonJS({
|
|
|
433091
433742
|
throw new Error(`No process with id ${processId}`);
|
|
433092
433743
|
}
|
|
433093
433744
|
await callback(proc);
|
|
433094
|
-
await this.
|
|
433745
|
+
await this.shallowUpdate(proc);
|
|
433095
433746
|
this.ctx.realtimeServer.triggerEntityPropertyChanges(proc, "outputLast40lines");
|
|
433096
433747
|
}
|
|
433097
433748
|
};
|
|
@@ -438600,6 +439251,7 @@ var require_artifact_angular_node_app = __commonJS({
|
|
|
438600
439251
|
var production_build_1 = require_production_build();
|
|
438601
439252
|
var base_artifact_1 = require_base_artifact();
|
|
438602
439253
|
var inside_struct_electron_1 = require_inside_struct_electron();
|
|
439254
|
+
var artifact_angular_node_app_helpers_1 = require_artifact_angular_node_app_helpers();
|
|
438603
439255
|
var app_hosts_recreate_helper_1 = require_app_hosts_recreate_helper();
|
|
438604
439256
|
var basename_manager_1 = require_basename_manager();
|
|
438605
439257
|
var inside_struct_app_1 = require_inside_struct_app();
|
|
@@ -438632,7 +439284,9 @@ var require_artifact_angular_node_app = __commonJS({
|
|
|
438632
439284
|
//#region clear partial
|
|
438633
439285
|
async clearPartial(options2) {
|
|
438634
439286
|
this.project.remove(`${constants_12.routes}/*.rest`, false);
|
|
438635
|
-
this.project.
|
|
439287
|
+
this.project.quickFixes.recreateRoutesFolder();
|
|
439288
|
+
this.project.remove(`${constants_12.databases}/*`, false);
|
|
439289
|
+
this.project.quickFixes.recreateDatabaseFolder();
|
|
438636
439290
|
}
|
|
438637
439291
|
//#endregion
|
|
438638
439292
|
//#region init partial
|
|
@@ -439050,41 +439704,7 @@ var require_artifact_angular_node_app = __commonJS({
|
|
|
439050
439704
|
const contextsNames = this.project.framework.getAllDetectedTaonContexts({
|
|
439051
439705
|
skipLibFolder: true
|
|
439052
439706
|
});
|
|
439053
|
-
|
|
439054
|
-
const domain = releaseOptions.website.domain;
|
|
439055
|
-
for (let i = 0; i < contextsNames.length; i++) {
|
|
439056
|
-
const contextRealIndex = i + 1;
|
|
439057
|
-
const contextName = contextsNames[i].contextName;
|
|
439058
|
-
const taskNameBackendReleasePort = `docker release ${domain} ${releaseOptions.release.releaseType} backend port for ${contextName} (n=${contextRealIndex})`;
|
|
439059
|
-
const portBackendRelease = await this.project.registerAndAssignPort(taskNameBackendReleasePort);
|
|
439060
|
-
const taskNameFrontendreleasePort = `docker release ${domain} ${releaseOptions.release.releaseType} frontend port for ${contextName} (n=${contextRealIndex})`;
|
|
439061
|
-
const portFrontendRelease = await this.project.registerAndAssignPort(taskNameFrontendreleasePort);
|
|
439062
|
-
const domainForContextFE = useDomain ? domain : `http://localhost:${portFrontendRelease}`;
|
|
439063
|
-
const domainForContextBE = useDomain ? domain : `http://localhost:${portBackendRelease}`;
|
|
439064
|
-
lib_52.UtilsDotFile.setValuesKeysFromObject([localReleaseOutputBasePath, constants_12.dotEnvFile], {
|
|
439065
|
-
[`HOST_BACKEND_PORT_${contextRealIndex}`]: portBackendRelease,
|
|
439066
|
-
[`HOST_URL_${contextRealIndex}`]: domainForContextBE,
|
|
439067
|
-
[`FRONTEND_NORMAL_APP_PORT_${contextRealIndex}`]: portFrontendRelease,
|
|
439068
|
-
[`FRONTEND_HOST_URL_${contextRealIndex}`]: domainForContextFE,
|
|
439069
|
-
...i === 0 ? {
|
|
439070
|
-
[`HOST_BACKEND_PORT`]: portBackendRelease,
|
|
439071
|
-
[`HOST_URL`]: domainForContextBE,
|
|
439072
|
-
[`FRONTEND_NORMAL_APP_PORT`]: portFrontendRelease,
|
|
439073
|
-
[`FRONTEND_HOST_URL`]: domainForContextFE
|
|
439074
|
-
} : {}
|
|
439075
|
-
});
|
|
439076
|
-
lib_52.UtilsDotFile.setCommentToKeyInDotFile([localReleaseOutputBasePath, constants_12.dotEnvFile], `HOST_BACKEND_PORT_${contextRealIndex}`, `${lib_32.CoreModels.tagForTaskName}="${taskNameBackendReleasePort}"`);
|
|
439077
|
-
if (i === 0) {
|
|
439078
|
-
lib_52.UtilsDotFile.setCommentToKeyInDotFile([localReleaseOutputBasePath, constants_12.dotEnvFile], `HOST_BACKEND_PORT`, `${lib_32.CoreModels.tagForTaskName}="${taskNameBackendReleasePort}"`);
|
|
439079
|
-
}
|
|
439080
|
-
lib_52.UtilsDotFile.setCommentToKeyInDotFile([localReleaseOutputBasePath, constants_12.dotEnvFile], `FRONTEND_NORMAL_APP_PORT_${contextRealIndex}`, `${lib_32.CoreModels.tagForTaskName}="${taskNameFrontendreleasePort}"`);
|
|
439081
|
-
}
|
|
439082
|
-
if (!useDomain) {
|
|
439083
|
-
lib_52.UtilsDotFile.addCommentAtTheBeginningOfDotFile([localReleaseOutputBasePath, constants_12.dotEnvFile], `HINT! IF YOU NEED DOMAIN USE userDomain=true in env.ts`);
|
|
439084
|
-
}
|
|
439085
|
-
lib_52.UtilsDotFile.setValueToDotFile([localReleaseOutputBasePath, ".env"], "COMPOSE_PROJECT_NAME", ("TaonDeployment__" + lib_32._.camelCase(releaseOptions.website.domain) + `__v${lib_32._.kebabCase(this.project.packageJson.version)}__release-type-${releaseOptions.release.releaseType}--env--${!releaseOptions.release.envName || releaseOptions.release.envName === "__" ? "default" : releaseOptions.release.envName}${releaseOptions.release.envNumber || ""}`).toLowerCase());
|
|
439086
|
-
lib_52.UtilsDotFile.setValueToDotFile([localReleaseOutputBasePath, constants_12.dotEnvFile], "BUILD_DATE", `${(0, lib_32.dateformat)(/* @__PURE__ */ new Date(), "dd-mm-yyyy_HH:MM:ss")}`);
|
|
439087
|
-
lib_52.UtilsDotFile.setValueToDotFile([localReleaseOutputBasePath, constants_12.dotEnvFile], "NODE_ENV", `production`);
|
|
439707
|
+
await artifact_angular_node_app_helpers_1.ArtifactsAngularNodeAppHelpers.updateReleasDotEnv(contextsNames, localReleaseOutputBasePath, this.project, releaseOptions);
|
|
439088
439708
|
const allValuesDotEnv = lib_52.UtilsDotFile.getValuesKeysAsJsonObject([
|
|
439089
439709
|
localReleaseOutputBasePath,
|
|
439090
439710
|
constants_12.dotEnvFile
|
|
@@ -439238,7 +439858,7 @@ ${dockerComposeYmlFileContent}
|
|
|
439238
439858
|
message: "Press any key to start deployment to cloudflare"
|
|
439239
439859
|
});
|
|
439240
439860
|
}
|
|
439241
|
-
await worker.deployment();
|
|
439861
|
+
await worker.deployment(releaseOptions);
|
|
439242
439862
|
}
|
|
439243
439863
|
//#endregion
|
|
439244
439864
|
//#region deploy to cloud
|
|
@@ -441763,6 +442383,10 @@ var require_copy_manager_standalone = __commonJS({
|
|
|
441763
442383
|
* inside project (instead normally from taon.json[frameworkVersion] property)
|
|
441764
442384
|
*/
|
|
441765
442385
|
get projectToCopyTo() {
|
|
442386
|
+
if (this.project.location.includes(this.project.proxyCloned.tempRoot)) {
|
|
442387
|
+
lib_52.Helpers.warn(`Skipping copy to other projects than local temp`);
|
|
442388
|
+
return [this.localTempProj];
|
|
442389
|
+
}
|
|
441766
442390
|
let result2 = [];
|
|
441767
442391
|
const isTaonProdCli = lib_22.taonPackageName === lib_22.config.frameworkName;
|
|
441768
442392
|
const homeDirTaonContainer = this.project.ins.homeDirCoreContainer(this.project.framework.frameworkVersion);
|
|
@@ -442239,6 +442863,10 @@ ${constants_12.THIS_IS_GENERATED_INFO_COMMENT}
|
|
|
442239
442863
|
}
|
|
442240
442864
|
//#region add source symlinks
|
|
442241
442865
|
addSourceSymlinks(destination) {
|
|
442866
|
+
if (this.project.location.includes(this.project.proxyCloned.tempRoot)) {
|
|
442867
|
+
lib_52.Helpers.warn(`Skipping adding source symlinks`);
|
|
442868
|
+
return;
|
|
442869
|
+
}
|
|
442242
442870
|
const source = (0, lib_32.crossPlatformPath)([
|
|
442243
442871
|
destination.nodeModules.pathFor(this.rootPackageName),
|
|
442244
442872
|
constants_12.sourceLinkInNodeModules
|
|
@@ -448192,131 +448820,141 @@ var require_index_cjs4 = __commonJS({
|
|
|
448192
448820
|
if (tight) markTightParagraphs(state, listTokIdx);
|
|
448193
448821
|
return true;
|
|
448194
448822
|
}
|
|
448823
|
+
var MAX_LABEL_LENGTH = 999;
|
|
448824
|
+
function countCodePoints(str) {
|
|
448825
|
+
let length = str.length;
|
|
448826
|
+
for (let i = 0; i < str.length - 1; i++) {
|
|
448827
|
+
const high = str.charCodeAt(i);
|
|
448828
|
+
if (high < 55296 || high > 56319) continue;
|
|
448829
|
+
const low = str.charCodeAt(i + 1);
|
|
448830
|
+
if (low >= 56320 && low <= 57343) {
|
|
448831
|
+
length--;
|
|
448832
|
+
i++;
|
|
448833
|
+
}
|
|
448834
|
+
}
|
|
448835
|
+
return length;
|
|
448836
|
+
}
|
|
448837
|
+
function lineEnd(state, line2) {
|
|
448838
|
+
return Math.min(state.eMarks[line2] + 1, state.src.length);
|
|
448839
|
+
}
|
|
448840
|
+
function getNextLinePos(state, nextLine) {
|
|
448841
|
+
const endLine = state.lineMax;
|
|
448842
|
+
if (nextLine >= endLine || state.isEmpty(nextLine)) return -1;
|
|
448843
|
+
let isContinuation = false;
|
|
448844
|
+
if (state.sCount[nextLine] - state.blkIndent > 3) isContinuation = true;
|
|
448845
|
+
if (state.sCount[nextLine] < 0) isContinuation = true;
|
|
448846
|
+
if (!isContinuation) {
|
|
448847
|
+
const terminatorRules = state.md.block.ruler.getRules("reference");
|
|
448848
|
+
const oldParentType = state.parentType;
|
|
448849
|
+
state.parentType = "reference";
|
|
448850
|
+
let terminate = false;
|
|
448851
|
+
for (let i = 0, l2 = terminatorRules.length; i < l2; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
448852
|
+
terminate = true;
|
|
448853
|
+
break;
|
|
448854
|
+
}
|
|
448855
|
+
state.parentType = oldParentType;
|
|
448856
|
+
if (terminate) return -1;
|
|
448857
|
+
}
|
|
448858
|
+
return state.bMarks[nextLine] + state.tShift[nextLine];
|
|
448859
|
+
}
|
|
448195
448860
|
function reference(state, startLine, _endLine, silent) {
|
|
448861
|
+
const src = state.src;
|
|
448196
448862
|
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
448197
|
-
let max2 = state.eMarks[startLine];
|
|
448198
448863
|
let nextLine = startLine + 1;
|
|
448199
448864
|
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
448200
|
-
if (
|
|
448201
|
-
|
|
448202
|
-
|
|
448203
|
-
if (nextLine2 >= endLine || state.isEmpty(nextLine2)) return null;
|
|
448204
|
-
let isContinuation = false;
|
|
448205
|
-
if (state.sCount[nextLine2] - state.blkIndent > 3) isContinuation = true;
|
|
448206
|
-
if (state.sCount[nextLine2] < 0) isContinuation = true;
|
|
448207
|
-
if (!isContinuation) {
|
|
448208
|
-
const terminatorRules = state.md.block.ruler.getRules("reference");
|
|
448209
|
-
const oldParentType = state.parentType;
|
|
448210
|
-
state.parentType = "reference";
|
|
448211
|
-
let terminate = false;
|
|
448212
|
-
for (let i = 0, l2 = terminatorRules.length; i < l2; i++) if (terminatorRules[i](state, nextLine2, endLine, true)) {
|
|
448213
|
-
terminate = true;
|
|
448214
|
-
break;
|
|
448215
|
-
}
|
|
448216
|
-
state.parentType = oldParentType;
|
|
448217
|
-
if (terminate) return null;
|
|
448218
|
-
}
|
|
448219
|
-
const pos2 = state.bMarks[nextLine2] + state.tShift[nextLine2];
|
|
448220
|
-
const max3 = state.eMarks[nextLine2];
|
|
448221
|
-
return state.src.slice(pos2, max3 + 1);
|
|
448222
|
-
}
|
|
448223
|
-
let str = state.src.slice(pos, max2 + 1);
|
|
448224
|
-
max2 = str.length;
|
|
448865
|
+
if (src.charCodeAt(pos) !== 91) return false;
|
|
448866
|
+
let max2 = lineEnd(state, startLine);
|
|
448867
|
+
let rawLabel = "";
|
|
448225
448868
|
let labelEnd = -1;
|
|
448226
|
-
|
|
448227
|
-
|
|
448869
|
+
let segmentStart = ++pos;
|
|
448870
|
+
while (pos < max2) {
|
|
448871
|
+
if (rawLabel.length + pos - segmentStart > MAX_LABEL_LENGTH * 2) return false;
|
|
448872
|
+
let ch = src.charCodeAt(pos);
|
|
448228
448873
|
if (ch === 91) return false;
|
|
448229
|
-
|
|
448874
|
+
if (ch === 93) {
|
|
448230
448875
|
labelEnd = pos;
|
|
448231
448876
|
break;
|
|
448232
|
-
} else if (ch === 10) {
|
|
448233
|
-
const lineContent = getNextLine(nextLine);
|
|
448234
|
-
if (lineContent !== null) {
|
|
448235
|
-
str += lineContent;
|
|
448236
|
-
max2 = str.length;
|
|
448237
|
-
nextLine++;
|
|
448238
|
-
}
|
|
448239
|
-
} else if (ch === 92) {
|
|
448240
|
-
pos++;
|
|
448241
|
-
if (pos < max2 && str.charCodeAt(pos) === 10) {
|
|
448242
|
-
const lineContent = getNextLine(nextLine);
|
|
448243
|
-
if (lineContent !== null) {
|
|
448244
|
-
str += lineContent;
|
|
448245
|
-
max2 = str.length;
|
|
448246
|
-
nextLine++;
|
|
448247
|
-
}
|
|
448248
|
-
}
|
|
448249
448877
|
}
|
|
448878
|
+
if (ch === 92) ch = src.charCodeAt(++pos);
|
|
448879
|
+
if (ch === 10 && pos < max2) {
|
|
448880
|
+
const nextPos = getNextLinePos(state, nextLine);
|
|
448881
|
+
if (nextPos < 0) return false;
|
|
448882
|
+
rawLabel += src.slice(segmentStart, max2);
|
|
448883
|
+
pos = segmentStart = nextPos;
|
|
448884
|
+
max2 = lineEnd(state, nextLine++);
|
|
448885
|
+
continue;
|
|
448886
|
+
}
|
|
448887
|
+
pos++;
|
|
448250
448888
|
}
|
|
448251
|
-
if (labelEnd < 0 ||
|
|
448252
|
-
|
|
448253
|
-
|
|
448889
|
+
if (labelEnd < 0 || src.charCodeAt(labelEnd + 1) !== 58) return false;
|
|
448890
|
+
rawLabel += src.slice(segmentStart, labelEnd);
|
|
448891
|
+
if (rawLabel.length > MAX_LABEL_LENGTH && countCodePoints(rawLabel) > MAX_LABEL_LENGTH) return false;
|
|
448892
|
+
pos = labelEnd + 2;
|
|
448893
|
+
while (pos < max2) {
|
|
448894
|
+
const ch = src.charCodeAt(pos);
|
|
448254
448895
|
if (ch === 10) {
|
|
448255
|
-
const
|
|
448256
|
-
if (
|
|
448257
|
-
|
|
448258
|
-
|
|
448259
|
-
|
|
448260
|
-
|
|
448261
|
-
|
|
448262
|
-
|
|
448263
|
-
}
|
|
448264
|
-
const destRes = state.md.helpers.parseLinkDestination(str, pos, max2);
|
|
448896
|
+
const nextPos = getNextLinePos(state, nextLine);
|
|
448897
|
+
if (nextPos < 0) break;
|
|
448898
|
+
pos = nextPos;
|
|
448899
|
+
max2 = lineEnd(state, nextLine++);
|
|
448900
|
+
} else if (isSpace(ch)) pos++;
|
|
448901
|
+
else break;
|
|
448902
|
+
}
|
|
448903
|
+
const destRes = state.md.helpers.parseLinkDestination(src, pos, max2);
|
|
448265
448904
|
if (!destRes.ok) return false;
|
|
448266
448905
|
const href = state.md.normalizeLink(destRes.str);
|
|
448267
448906
|
if (!state.md.validateLink(href)) return false;
|
|
448268
448907
|
pos = destRes.pos;
|
|
448269
448908
|
const destEndPos = pos;
|
|
448909
|
+
const destEndMax = max2;
|
|
448270
448910
|
const destEndLineNo = nextLine;
|
|
448271
|
-
|
|
448272
|
-
|
|
448273
|
-
const ch = str.charCodeAt(pos);
|
|
448911
|
+
while (pos < max2) {
|
|
448912
|
+
const ch = src.charCodeAt(pos);
|
|
448274
448913
|
if (ch === 10) {
|
|
448275
|
-
const
|
|
448276
|
-
if (
|
|
448277
|
-
|
|
448278
|
-
|
|
448279
|
-
|
|
448280
|
-
|
|
448281
|
-
|
|
448282
|
-
|
|
448283
|
-
|
|
448284
|
-
let titleRes = state.md.helpers.parseLinkTitle(str, pos, max2);
|
|
448914
|
+
const nextPos = getNextLinePos(state, nextLine);
|
|
448915
|
+
if (nextPos < 0) break;
|
|
448916
|
+
pos = nextPos;
|
|
448917
|
+
max2 = lineEnd(state, nextLine++);
|
|
448918
|
+
} else if (isSpace(ch)) pos++;
|
|
448919
|
+
else break;
|
|
448920
|
+
}
|
|
448921
|
+
const titleStart = pos;
|
|
448922
|
+
let titleRes = state.md.helpers.parseLinkTitle(src, pos, max2);
|
|
448285
448923
|
while (titleRes.can_continue) {
|
|
448286
|
-
const
|
|
448287
|
-
if (
|
|
448288
|
-
|
|
448289
|
-
|
|
448290
|
-
|
|
448291
|
-
nextLine++;
|
|
448292
|
-
titleRes = state.md.helpers.parseLinkTitle(str, pos, max2, titleRes);
|
|
448924
|
+
const nextPos = getNextLinePos(state, nextLine);
|
|
448925
|
+
if (nextPos < 0) break;
|
|
448926
|
+
pos = nextPos;
|
|
448927
|
+
max2 = lineEnd(state, nextLine++);
|
|
448928
|
+
titleRes = state.md.helpers.parseLinkTitle(src, pos, max2, titleRes);
|
|
448293
448929
|
}
|
|
448294
448930
|
let title;
|
|
448295
|
-
if (
|
|
448931
|
+
if (titleStart !== destEndPos && titleRes.ok) {
|
|
448296
448932
|
title = titleRes.str;
|
|
448297
448933
|
pos = titleRes.pos;
|
|
448298
448934
|
} else {
|
|
448299
448935
|
title = "";
|
|
448300
448936
|
pos = destEndPos;
|
|
448937
|
+
max2 = destEndMax;
|
|
448301
448938
|
nextLine = destEndLineNo;
|
|
448302
448939
|
}
|
|
448303
448940
|
while (pos < max2) {
|
|
448304
|
-
if (!isSpace(
|
|
448941
|
+
if (!isSpace(src.charCodeAt(pos))) break;
|
|
448305
448942
|
pos++;
|
|
448306
448943
|
}
|
|
448307
|
-
if (pos < max2 &&
|
|
448944
|
+
if (pos < max2 && src.charCodeAt(pos) !== 10) {
|
|
448308
448945
|
if (title) {
|
|
448309
448946
|
title = "";
|
|
448310
448947
|
pos = destEndPos;
|
|
448948
|
+
max2 = destEndMax;
|
|
448311
448949
|
nextLine = destEndLineNo;
|
|
448312
448950
|
while (pos < max2) {
|
|
448313
|
-
if (!isSpace(
|
|
448951
|
+
if (!isSpace(src.charCodeAt(pos))) break;
|
|
448314
448952
|
pos++;
|
|
448315
448953
|
}
|
|
448316
448954
|
}
|
|
448317
448955
|
}
|
|
448318
|
-
if (pos < max2 &&
|
|
448319
|
-
const label = normalizeReference(
|
|
448956
|
+
if (pos < max2 && src.charCodeAt(pos) !== 10) return false;
|
|
448957
|
+
const label = normalizeReference(rawLabel);
|
|
448320
448958
|
if (!label) return false;
|
|
448321
448959
|
if (silent) return true;
|
|
448322
448960
|
if (typeof state.env.references === "undefined") state.env.references = {};
|
|
@@ -448391,7 +449029,6 @@ var require_index_cjs4 = __commonJS({
|
|
|
448391
449029
|
"track",
|
|
448392
449030
|
"ul"
|
|
448393
449031
|
];
|
|
448394
|
-
var HTML_TAG_RE = /* @__PURE__ */ new RegExp(`^(?:<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);
|
|
448395
449032
|
var HTML_OPEN_CLOSE_TAG_RE = /* @__PURE__ */ new RegExp(`^(?:<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)`);
|
|
448396
449033
|
var HTML_SEQUENCES = [
|
|
448397
449034
|
[
|
|
@@ -448696,6 +449333,7 @@ var require_index_cjs4 = __commonJS({
|
|
|
448696
449333
|
this._prev_delimiters = [];
|
|
448697
449334
|
this.backticks = {};
|
|
448698
449335
|
this.backticksScanned = false;
|
|
449336
|
+
this.skipHtmlSpecial = false;
|
|
448699
449337
|
this.linkLevel = 0;
|
|
448700
449338
|
}
|
|
448701
449339
|
StateInline.prototype.pushPending = function() {
|
|
@@ -449300,22 +449938,53 @@ var require_index_cjs4 = __commonJS({
|
|
|
449300
449938
|
const lc = ch | 32;
|
|
449301
449939
|
return lc >= 97 && lc <= 122;
|
|
449302
449940
|
}
|
|
449941
|
+
function scanSpecial(state, pos) {
|
|
449942
|
+
const src = state.src;
|
|
449943
|
+
let start;
|
|
449944
|
+
let terminator;
|
|
449945
|
+
if (src.startsWith("<!--", pos)) {
|
|
449946
|
+
if (src.startsWith(">", pos + 4)) return pos + 5;
|
|
449947
|
+
if (src.startsWith("->", pos + 4)) return pos + 6;
|
|
449948
|
+
start = pos + 4;
|
|
449949
|
+
terminator = "-->";
|
|
449950
|
+
} else if (src.startsWith("<![CDATA[", pos)) {
|
|
449951
|
+
start = pos + 9;
|
|
449952
|
+
terminator = "]]>";
|
|
449953
|
+
} else if (src.charCodeAt(pos + 1) === 63) {
|
|
449954
|
+
start = pos + 2;
|
|
449955
|
+
terminator = "?>";
|
|
449956
|
+
} else if (isLetter(src.charCodeAt(pos + 2))) {
|
|
449957
|
+
start = pos + 3;
|
|
449958
|
+
terminator = ">";
|
|
449959
|
+
} else return -1;
|
|
449960
|
+
if (state.skipHtmlSpecial) return -1;
|
|
449961
|
+
const end = src.indexOf(terminator, start);
|
|
449962
|
+
if (end < 0) {
|
|
449963
|
+
state.skipHtmlSpecial = true;
|
|
449964
|
+
return -1;
|
|
449965
|
+
}
|
|
449966
|
+
return end + terminator.length;
|
|
449967
|
+
}
|
|
449303
449968
|
function html_inline(state, silent) {
|
|
449304
449969
|
if (!state.md.options.html) return false;
|
|
449305
449970
|
const max2 = state.posMax;
|
|
449306
449971
|
const pos = state.pos;
|
|
449307
449972
|
if (state.src.charCodeAt(pos) !== 60 || pos + 2 >= max2) return false;
|
|
449973
|
+
let end;
|
|
449308
449974
|
const ch = state.src.charCodeAt(pos + 1);
|
|
449309
|
-
if (ch
|
|
449310
|
-
|
|
449311
|
-
|
|
449975
|
+
if (ch === 33 || ch === 63) end = scanSpecial(state, pos);
|
|
449976
|
+
else if (ch === 47 || isLetter(ch)) {
|
|
449977
|
+
const match = state.src.slice(pos).match(HTML_OPEN_CLOSE_TAG_RE);
|
|
449978
|
+
end = match ? pos + match[0].length : -1;
|
|
449979
|
+
} else return false;
|
|
449980
|
+
if (end < 0) return false;
|
|
449312
449981
|
if (!silent) {
|
|
449313
449982
|
const token = state.push("html_inline", "", 0);
|
|
449314
|
-
token.content =
|
|
449983
|
+
token.content = state.src.slice(pos, end);
|
|
449315
449984
|
if (isLinkOpen(token.content)) state.linkLevel++;
|
|
449316
449985
|
if (isLinkClose(token.content)) state.linkLevel--;
|
|
449317
449986
|
}
|
|
449318
|
-
state.pos
|
|
449987
|
+
state.pos = end;
|
|
449319
449988
|
return true;
|
|
449320
449989
|
}
|
|
449321
449990
|
var DIGITAL_RE = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i;
|
|
@@ -451363,7 +452032,6 @@ var require_artifacts_manager = __commonJS({
|
|
|
451363
452032
|
var options_1 = require_options2();
|
|
451364
452033
|
var templates_1 = require_templates5();
|
|
451365
452034
|
var cloud_flare_projects_utils_1 = require_cloud_flare_projects_utils();
|
|
451366
|
-
var project_1 = require_project();
|
|
451367
452035
|
var artifacts_helpers_1 = require_artifacts_helpers();
|
|
451368
452036
|
var ArtifactManager = class _ArtifactManager {
|
|
451369
452037
|
artifact;
|
|
@@ -451585,9 +452253,18 @@ ${content2}`;
|
|
|
451585
452253
|
await this.project.nodeModules.makeSureInstalled();
|
|
451586
452254
|
}
|
|
451587
452255
|
if (this.project.framework.isStandaloneProject) {
|
|
452256
|
+
const pathToSourceLinked = this.project.ins.homeDirCoreContainer(this.project.framework.frameworkVersion).nodeModules.pathFor([
|
|
452257
|
+
this.project.nameForNpmPackage,
|
|
452258
|
+
constants_12.sourceLinkInNodeModules
|
|
452259
|
+
]);
|
|
452260
|
+
if (!lib_72.Helpers.exists(pathToSourceLinked)) {
|
|
452261
|
+
await this.project.clear({
|
|
452262
|
+
recursiveAction: false
|
|
452263
|
+
});
|
|
452264
|
+
}
|
|
451588
452265
|
const toInitLink = lib_32.Utils.uniqArray([
|
|
451589
452266
|
this.project.framework.coreContainer,
|
|
451590
|
-
|
|
452267
|
+
this.project.ins.homeDirCoreContainer(this.project.framework.frameworkVersion),
|
|
451591
452268
|
...this.project.taonJson.isUsingOwnNodeModulesInsteadCoreContainer ? [this.project] : []
|
|
451592
452269
|
], "location");
|
|
451593
452270
|
for (const container of toInitLink) {
|
|
@@ -451852,6 +452529,7 @@ ${missingDependencies.map((d) => `- ${lib_32.chalk.bold(d)}`).join("\n")}`, fals
|
|
|
451852
452529
|
if (allCustomWorkers.length === 0 && item.releaseType === options_1.ReleaseType.MANUAL_CLOUDFLARE) {
|
|
451853
452530
|
await this.project.subProject.addAndConfigure({
|
|
451854
452531
|
skipDeployment: true,
|
|
452532
|
+
releaseOptions,
|
|
451855
452533
|
projectType: constants_12.TempalteSubprojectType.TAON_CUSTOM_CLOUDFLARE_WORKER,
|
|
451856
452534
|
projectEnvironmentNameWithNumber: item.envName ? `${item.envName}${item.envNumber ?? ""}` : void 0
|
|
451857
452535
|
});
|
|
@@ -451953,25 +452631,29 @@ ${missingDependencies.map((d) => `- ${lib_32.chalk.bold(d)}`).join("\n")}`, fals
|
|
|
451953
452631
|
if (shouldAskQuestions) {
|
|
451954
452632
|
await this.project.releaseProcess.checkBundleQuestion(repoAbsPath, `[${releaseOptions.release.releaseType}] Check ${lib_32.chalk.bold("project repo")} before pushing`);
|
|
451955
452633
|
}
|
|
451956
|
-
if (
|
|
451957
|
-
|
|
451958
|
-
|
|
451959
|
-
|
|
452634
|
+
if (this.project.git.isInsideGitRepo) {
|
|
452635
|
+
if (releaseOptions.release.pushToAllOriginsWhenLocalReleaseBranch) {
|
|
452636
|
+
const allOrigins = lib_72.HelpersTaon.git.allOrigins(this.project.location);
|
|
452637
|
+
for (const origin2 of allOrigins) {
|
|
452638
|
+
await lib_72.HelpersTaon.git.addOriginIfNotExists(repoAbsPath, origin2.origin, origin2.url);
|
|
452639
|
+
await lib_72.HelpersTaon.git.tagAndPushToGitRepo(repoAbsPath, {
|
|
452640
|
+
newVersion: releaseOutput.resolvedNewVersion,
|
|
452641
|
+
skipAskingQuestionBeforePush: !shouldAskQuestions,
|
|
452642
|
+
isCiProcess: releaseOptions.isCiProcess,
|
|
452643
|
+
customOrigin: origin2.origin,
|
|
452644
|
+
skipTag: true
|
|
452645
|
+
});
|
|
452646
|
+
}
|
|
452647
|
+
} else {
|
|
451960
452648
|
await lib_72.HelpersTaon.git.tagAndPushToGitRepo(repoAbsPath, {
|
|
451961
452649
|
newVersion: releaseOutput.resolvedNewVersion,
|
|
451962
452650
|
skipAskingQuestionBeforePush: !shouldAskQuestions,
|
|
451963
452651
|
isCiProcess: releaseOptions.isCiProcess,
|
|
451964
|
-
customOrigin: origin2.origin,
|
|
451965
452652
|
skipTag: true
|
|
451966
452653
|
});
|
|
451967
452654
|
}
|
|
451968
452655
|
} else {
|
|
451969
|
-
|
|
451970
|
-
newVersion: releaseOutput.resolvedNewVersion,
|
|
451971
|
-
skipAskingQuestionBeforePush: !shouldAskQuestions,
|
|
451972
|
-
isCiProcess: releaseOptions.isCiProcess,
|
|
451973
|
-
skipTag: true
|
|
451974
|
-
});
|
|
452656
|
+
lib_72.Helpers.warn(`Skipping adding origin when not inside repository.`);
|
|
451975
452657
|
}
|
|
451976
452658
|
}
|
|
451977
452659
|
for (const repoAbsPath of lib_32.Utils.uniqArray(releaseOutput.projectsReposToPushAndTag)) {
|
|
@@ -451979,11 +452661,15 @@ ${missingDependencies.map((d) => `- ${lib_32.chalk.bold(d)}`).join("\n")}`, fals
|
|
|
451979
452661
|
lib_72.Helpers.info(`Checking path "${repoAbsPath}" ..`);
|
|
451980
452662
|
await this.project.releaseProcess.checkBundleQuestion(repoAbsPath, `[${releaseOptions.release.releaseType}] Check ${lib_32.chalk.bold("project repo")} before tagging/pushing`);
|
|
451981
452663
|
}
|
|
451982
|
-
|
|
451983
|
-
|
|
451984
|
-
|
|
451985
|
-
|
|
451986
|
-
|
|
452664
|
+
if (this.project.git.isInsideGitRepo) {
|
|
452665
|
+
await lib_72.HelpersTaon.git.tagAndPushToGitRepo(repoAbsPath, {
|
|
452666
|
+
newVersion: releaseOutput.resolvedNewVersion,
|
|
452667
|
+
skipAskingQuestionBeforePush: !shouldAskQuestions,
|
|
452668
|
+
isCiProcess: releaseOptions.isCiProcess
|
|
452669
|
+
});
|
|
452670
|
+
} else {
|
|
452671
|
+
lib_72.Helpers.warn(`Skipping git tag when not inside repository.`);
|
|
452672
|
+
}
|
|
451987
452673
|
}
|
|
451988
452674
|
}
|
|
451989
452675
|
if (releaseOutput.deploymentFunction) {
|
|
@@ -459520,7 +460206,7 @@ var require_git = __commonJS({
|
|
|
459520
460206
|
if (absPaths.length > 0) {
|
|
459521
460207
|
if (await lib_13.UtilsTerminal.confirm({
|
|
459522
460208
|
message: `[taon][after-pull-action] Do you want to remove old folders:
|
|
459523
|
-
${absPaths.map((c) => `-
|
|
460209
|
+
${absPaths.map((c) => `- ./${lib_13.path.basename(c)}`).join("\n, ")}
|
|
459524
460210
|
?`
|
|
459525
460211
|
})) {
|
|
459526
460212
|
for (let index = 0; index < absPaths.length; index++) {
|
|
@@ -461103,6 +461789,7 @@ ${lib_22.chalk.bold.green("Local release")} => use current git repo for storing
|
|
|
461103
461789
|
if (allCustomWorkers.length === 0) {
|
|
461104
461790
|
await this.project.subProject.addAndConfigure({
|
|
461105
461791
|
skipDeployment: true,
|
|
461792
|
+
releaseOptions: envOptions,
|
|
461106
461793
|
projectType: constants_12.TempalteSubprojectType.TAON_CUSTOM_CLOUDFLARE_WORKER
|
|
461107
461794
|
});
|
|
461108
461795
|
}
|
|
@@ -461466,27 +462153,33 @@ Put here files that you don't want to share through npm package.
|
|
|
461466
462153
|
(app -> means here: webapp, nodejs server, electron, vscode plugin etc.)
|
|
461467
462154
|
|
|
461468
462155
|
${constants_12.THIS_IS_GENERATED_STRING}`);
|
|
461469
|
-
|
|
461470
|
-
|
|
461471
|
-
|
|
461472
|
-
|
|
461473
|
-
|
|
462156
|
+
this.recreateDatabaseFolder();
|
|
462157
|
+
this.recreateRoutesFolder();
|
|
462158
|
+
lib_62.Helpers.taskDone(`[quick fixes] missing angular lib fles end`);
|
|
462159
|
+
}
|
|
462160
|
+
recreateRoutesFolder() {
|
|
462161
|
+
lib_62.Helpers.writeFile([this.project.location, lib_13.TaonTempRoutesFolder, "routes-folder-info.md"], `${constants_12.THIS_IS_GENERATED_STRING}
|
|
461474
462162
|
|
|
461475
462163
|
# PURPOSE OF THIS FOLDER
|
|
461476
462164
|
|
|
461477
|
-
You will see here *.
|
|
462165
|
+
You will see here *.rest routes for each context/controller of your application
|
|
461478
462166
|
that uses HOST_CONFIG from src/app.hosts.ts
|
|
461479
462167
|
|
|
461480
462168
|
${constants_12.THIS_IS_GENERATED_STRING}`);
|
|
461481
|
-
|
|
462169
|
+
}
|
|
462170
|
+
recreateDatabaseFolder() {
|
|
462171
|
+
lib_62.Helpers.writeFile([
|
|
462172
|
+
this.project.location,
|
|
462173
|
+
lib_13.TaonTempDatabasesFolder,
|
|
462174
|
+
"databases-folder-info.md"
|
|
462175
|
+
], `${constants_12.THIS_IS_GENERATED_STRING}
|
|
461482
462176
|
|
|
461483
462177
|
# PURPOSE OF THIS FOLDER
|
|
461484
462178
|
|
|
461485
|
-
You will see here
|
|
461486
|
-
|
|
462179
|
+
You will see here sqlite,kv and bucket database files only after you run your application.
|
|
462180
|
+
Check HOST_CONFIG from src/app.hosts.ts to see context informations.
|
|
461487
462181
|
|
|
461488
462182
|
${constants_12.THIS_IS_GENERATED_STRING}`);
|
|
461489
|
-
lib_62.Helpers.taskDone(`[quick fixes] missing angular lib fles end`);
|
|
461490
462183
|
}
|
|
461491
462184
|
//#endregion
|
|
461492
462185
|
//#region bad types in node modules
|
|
@@ -462109,10 +462802,10 @@ var require_sub_project = __commonJS({
|
|
|
462109
462802
|
}
|
|
462110
462803
|
//#endregion
|
|
462111
462804
|
//#region PUBLIC API / deploy worker
|
|
462112
|
-
async deployWorker() {
|
|
462805
|
+
async deployWorker(envOptions) {
|
|
462113
462806
|
while (true) {
|
|
462114
462807
|
const chosenProject = await this.selectAnyProject();
|
|
462115
|
-
await chosenProject.deployment();
|
|
462808
|
+
await chosenProject.deployment(envOptions);
|
|
462116
462809
|
const again = await lib_32.UtilsTerminal.confirm({
|
|
462117
462810
|
message: `Would you like to deploy any project again ?`,
|
|
462118
462811
|
defaultValue: true
|
|
@@ -462438,6 +463131,41 @@ var require_secret_env = __commonJS({
|
|
|
462438
463131
|
}
|
|
462439
463132
|
});
|
|
462440
463133
|
|
|
463134
|
+
// tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/project/abstract/proxy-cloned-project.js
|
|
463135
|
+
var require_proxy_cloned_project = __commonJS({
|
|
463136
|
+
"tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/project/abstract/proxy-cloned-project.js"(exports2) {
|
|
463137
|
+
"use strict";
|
|
463138
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
463139
|
+
exports2.ProxyClonedProject = void 0;
|
|
463140
|
+
var lib_13 = require_lib31();
|
|
463141
|
+
var lib_22 = require_lib47();
|
|
463142
|
+
var ProxyClonedProject = class extends lib_22.BaseFeatureForProject {
|
|
463143
|
+
get tempRoot() {
|
|
463144
|
+
return (0, lib_13.crossPlatformPath)([
|
|
463145
|
+
lib_13.UtilsTempFolder.getPathForNodeOnly({
|
|
463146
|
+
prefix: "taon-proxy-cloned",
|
|
463147
|
+
deleteAfterDays: 1
|
|
463148
|
+
})
|
|
463149
|
+
]);
|
|
463150
|
+
}
|
|
463151
|
+
get tempLocation() {
|
|
463152
|
+
return !this.project ? "" : (0, lib_13.crossPlatformPath)([this.tempRoot, lib_13._.camelCase(this.project.location)]);
|
|
463153
|
+
}
|
|
463154
|
+
async execute(argsWithParams) {
|
|
463155
|
+
lib_13.Helpers.removeSymlinks(this.tempLocation);
|
|
463156
|
+
lib_13.Helpers.remove(this.tempLocation);
|
|
463157
|
+
await this.project.fileFoldersOperations.copyProjectTo(this.tempLocation);
|
|
463158
|
+
lib_13.Helpers.info(`Done copying`);
|
|
463159
|
+
await lib_13.UtilsExecProc.executeUntilEndOrThrow({
|
|
463160
|
+
command: `${lib_13.config.frameworkName} ${argsWithParams}`,
|
|
463161
|
+
cwd: (0, lib_13.crossPlatformPath)([this.tempLocation, this.project.name])
|
|
463162
|
+
});
|
|
463163
|
+
}
|
|
463164
|
+
};
|
|
463165
|
+
exports2.ProxyClonedProject = ProxyClonedProject;
|
|
463166
|
+
}
|
|
463167
|
+
});
|
|
463168
|
+
|
|
462441
463169
|
// tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/project/abstract/lightweight-watcher.js
|
|
462442
463170
|
var require_lightweight_watcher = __commonJS({
|
|
462443
463171
|
"tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/project/abstract/lightweight-watcher.js"(exports2) {
|
|
@@ -463164,6 +463892,7 @@ var require_project = __commonJS({
|
|
|
463164
463892
|
subProject;
|
|
463165
463893
|
watcher;
|
|
463166
463894
|
secretEnv;
|
|
463895
|
+
proxyCloned;
|
|
463167
463896
|
get taonBuildObserver() {
|
|
463168
463897
|
return this.artifactsManager.artifact.npmLibAndCliTool.taonBuildObserver;
|
|
463169
463898
|
}
|
|
@@ -463207,6 +463936,7 @@ var require_project = __commonJS({
|
|
|
463207
463936
|
this.quickFixes = new (require_quick_fixes()).QuickFixes(this);
|
|
463208
463937
|
this.subProject = new (require_sub_project()).SubProject(this);
|
|
463209
463938
|
this.secretEnv = new (require_secret_env()).SecretEnv(this);
|
|
463939
|
+
this.proxyCloned = new (require_proxy_cloned_project()).ProxyClonedProject(this);
|
|
463210
463940
|
this.watcher = new (require_lightweight_watcher()).LightWeightWatcher(this);
|
|
463211
463941
|
this.linter = new (require_linter()).Linter(this);
|
|
463212
463942
|
this.packagesRecognition = new (require_packages_recognition()).PackagesRecognition(this);
|
|
@@ -463282,10 +464012,6 @@ ${notVerfiedDeps.map((c) => `- ${c}`).join("\n")}
|
|
|
463282
464012
|
async build(buildOptions) {
|
|
463283
464013
|
this.warnAboutNotVerifiedWhenProdBuild(buildOptions);
|
|
463284
464014
|
buildOptions = options_1.EnvOptions.from(buildOptions);
|
|
463285
|
-
const pathToSourceLinked = this.ins.homeDirCoreContainer(this.framework.frameworkVersion).nodeModules.pathFor([this.nameForNpmPackage, constants_12.sourceLinkInNodeModules]);
|
|
463286
|
-
if (!lib_52.Helpers.exists(pathToSourceLinked)) {
|
|
463287
|
-
this.removeFile(constants_12.tmpAlreadyStartedCopyManager);
|
|
463288
|
-
}
|
|
463289
464015
|
let skipProjectsNames = [];
|
|
463290
464016
|
if (this.framework.isStandaloneProject) {
|
|
463291
464017
|
await this.artifactsManager.build(buildOptions);
|
|
@@ -463898,16 +464624,20 @@ var require_vscode_menu_items = __commonJS({
|
|
|
463898
464624
|
// ),
|
|
463899
464625
|
//#endregion
|
|
463900
464626
|
//#region items with actions / clear
|
|
463901
|
-
new ProjectItem(
|
|
463902
|
-
|
|
463903
|
-
|
|
463904
|
-
|
|
463905
|
-
|
|
463906
|
-
|
|
463907
|
-
|
|
463908
|
-
|
|
463909
|
-
|
|
463910
|
-
|
|
464627
|
+
// new ProjectItem(
|
|
464628
|
+
// `$ ${FRAMEWORK_NAME} clear`,
|
|
464629
|
+
// vscode.TreeItemCollapsibleState.None,
|
|
464630
|
+
// {
|
|
464631
|
+
// iconPath: null,
|
|
464632
|
+
// project: CURRENT_PROJECT,
|
|
464633
|
+
// triggerActionOnClick: project => {
|
|
464634
|
+
// runInTerminal(`${FRAMEWORK_NAME} clear`);
|
|
464635
|
+
// if (project?.location) {
|
|
464636
|
+
// focustFirstElement();
|
|
464637
|
+
// }
|
|
464638
|
+
// },
|
|
464639
|
+
// },
|
|
464640
|
+
// ),
|
|
463911
464641
|
//#endregion
|
|
463912
464642
|
//#region items with actions / melt
|
|
463913
464643
|
// new ProjectItem(
|
|
@@ -465187,6 +465917,17 @@ var require_vscode_ext_methods = __commonJS({
|
|
|
465187
465917
|
}
|
|
465188
465918
|
},
|
|
465189
465919
|
//#endregion
|
|
465920
|
+
//#region GENERATE wrap methods and functions with @ web sql
|
|
465921
|
+
{
|
|
465922
|
+
group: groupRefactor,
|
|
465923
|
+
title: `wrap classes/namespaces methods/functions inside with ${"@websqlFunc"}`,
|
|
465924
|
+
exec: `${FRAMEWORK_NAME} generate:wrapClassesNamespacesMethodsBodyWithWebsqlFunc %absolutePath%`,
|
|
465925
|
+
options: {
|
|
465926
|
+
titleWhenProcessing: `wrapping classes/namespaces methods/functions body with ${"@websqlFunc"}`,
|
|
465927
|
+
showSuccessMessage: false
|
|
465928
|
+
}
|
|
465929
|
+
},
|
|
465930
|
+
//#endregion
|
|
465190
465931
|
//#region GENERATE @websql regions for entity
|
|
465191
465932
|
{
|
|
465192
465933
|
group: groupRefactor,
|
|
@@ -480910,11 +481651,10 @@ var require_cli_GLOBAL = __commonJS({
|
|
|
480910
481651
|
}
|
|
480911
481652
|
//#endregion
|
|
480912
481653
|
//#region watcher linux
|
|
480913
|
-
watchersfix() {
|
|
480914
|
-
lib_112.Helpers.run(`echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p`).sync();
|
|
480915
|
-
this._exit();
|
|
480916
|
-
}
|
|
480917
481654
|
watchers() {
|
|
481655
|
+
if (process.platform === "darwin" || process.platform === "win32") {
|
|
481656
|
+
lib_112.Helpers.error(`Watchers command is only for linux`, false, true);
|
|
481657
|
+
}
|
|
480918
481658
|
lib_112.Helpers.run(`find /proc/*/fd -user "$USER" -lname anon_inode:inotify -printf '%hinfo/%f
|
|
480919
481659
|
' 2>/dev/null | xargs cat | grep -c '^inotify'`).sync();
|
|
480920
481660
|
this._exit();
|
|
@@ -480922,7 +481662,7 @@ var require_cli_GLOBAL = __commonJS({
|
|
|
480922
481662
|
//#endregion
|
|
480923
481663
|
//#region code instal ext
|
|
480924
481664
|
async code() {
|
|
480925
|
-
this.project.run(`${await this.ins.editor()}
|
|
481665
|
+
this.project.run(`${await this.ins.editor()} .`).sync();
|
|
480926
481666
|
this._exit();
|
|
480927
481667
|
}
|
|
480928
481668
|
//#endregion
|
|
@@ -482128,6 +482868,7 @@ ${error2 instanceof Error ? error2.stack || error2.message : String(error2)}`, f
|
|
|
482128
482868
|
//#endregion
|
|
482129
482869
|
// }
|
|
482130
482870
|
//#endregion
|
|
482871
|
+
//#region git
|
|
482131
482872
|
async git() {
|
|
482132
482873
|
lib_72.UtilsTerminal.clearConsole();
|
|
482133
482874
|
let children = this.project.children;
|
|
@@ -482168,11 +482909,75 @@ ${error2 instanceof Error ? error2.stack || error2.message : String(error2)}`, f
|
|
|
482168
482909
|
}
|
|
482169
482910
|
this._exit();
|
|
482170
482911
|
}
|
|
482912
|
+
//#endregion
|
|
482913
|
+
//#region envs
|
|
482171
482914
|
envs() {
|
|
482172
482915
|
const environments = this.project.releaseProcess.getEnvNamesByArtifact(this.firstArg);
|
|
482173
482916
|
console.log({ environments });
|
|
482174
482917
|
this._exit(0);
|
|
482175
482918
|
}
|
|
482919
|
+
//#endregion
|
|
482920
|
+
//#region install
|
|
482921
|
+
async install() {
|
|
482922
|
+
const coreContainer = this.project.framework.coreContainer;
|
|
482923
|
+
coreContainer.taonJson.saveToDisk("before install");
|
|
482924
|
+
const allPackages = this.project.nodeModules.getAllPackagesNames({
|
|
482925
|
+
followSymlinks: false
|
|
482926
|
+
});
|
|
482927
|
+
const deps = coreContainer.packageJson.dependencies;
|
|
482928
|
+
const depsKeys = Object.keys(deps);
|
|
482929
|
+
const notInstalled = depsKeys.filter((key) => !coreContainer.nodeModules.hasPackageInstalled(key));
|
|
482930
|
+
if (!notInstalled.length) {
|
|
482931
|
+
lib_112.Helpers.info(`All dependencies are installed.`);
|
|
482932
|
+
this._exit();
|
|
482933
|
+
}
|
|
482934
|
+
for (const key of notInstalled) {
|
|
482935
|
+
console.log(`Package not installed: ${key}`);
|
|
482936
|
+
const tempCatalogForInstallation = this.project.pathFor([
|
|
482937
|
+
`tmp-temp-npm-install`,
|
|
482938
|
+
(/* @__PURE__ */ new Date()).getTime().toString()
|
|
482939
|
+
]);
|
|
482940
|
+
lib_112.Helpers.remove(tempCatalogForInstallation);
|
|
482941
|
+
lib_112.Helpers.mkdirp(tempCatalogForInstallation);
|
|
482942
|
+
lib_112.Helpers.run(`npm init -y`, {
|
|
482943
|
+
cwd: tempCatalogForInstallation
|
|
482944
|
+
}).sync();
|
|
482945
|
+
lib_112.Helpers.run(`npm install ${key}`, {
|
|
482946
|
+
cwd: tempCatalogForInstallation
|
|
482947
|
+
}).sync();
|
|
482948
|
+
const conflictingFiles = [];
|
|
482949
|
+
const projFromTemp = this.ins.From(tempCatalogForInstallation);
|
|
482950
|
+
const allPackagesFromTemp = projFromTemp.nodeModules.getAllPackagesNames({
|
|
482951
|
+
followSymlinks: false
|
|
482952
|
+
});
|
|
482953
|
+
for (const nodeModulesKey of allPackagesFromTemp) {
|
|
482954
|
+
if (allPackages.includes(nodeModulesKey)) {
|
|
482955
|
+
conflictingFiles.push(nodeModulesKey);
|
|
482956
|
+
}
|
|
482957
|
+
console.log(`Found new package in node_modules: ${nodeModulesKey}`);
|
|
482958
|
+
}
|
|
482959
|
+
if (conflictingFiles.length > 0) {
|
|
482960
|
+
lib_112.Helpers.error(`Conflicting packages found: ${conflictingFiles.join(", ")}`, false, true);
|
|
482961
|
+
} else {
|
|
482962
|
+
const toCopy = lib_52.Utils.uniqArray([
|
|
482963
|
+
this.project.framework.coreContainer,
|
|
482964
|
+
project_1.Project.ins.homeDirCoreContainer(this.project.framework.frameworkVersion),
|
|
482965
|
+
...this.project.taonJson.isUsingOwnNodeModulesInsteadCoreContainer ? [this.project] : []
|
|
482966
|
+
], "location").map((c) => this.ins.From(c.location));
|
|
482967
|
+
for (const npmPackageName of allPackagesFromTemp) {
|
|
482968
|
+
for (const coreContainer2 of toCopy) {
|
|
482969
|
+
lib_112.Helpers.info(`Copying ${lib_52.chalk.bold(`${npmPackageName}`)} to project: ${coreContainer2.location} `);
|
|
482970
|
+
lib_22.UtilsFilesFoldersSync.copy(projFromTemp.nodeModules.pathFor(npmPackageName), coreContainer2.nodeModules.pathFor(npmPackageName), {
|
|
482971
|
+
recursive: true,
|
|
482972
|
+
overwrite: true
|
|
482973
|
+
});
|
|
482974
|
+
}
|
|
482975
|
+
}
|
|
482976
|
+
lib_112.Helpers.taskDone(`Finished copying packages from temporary installation.`);
|
|
482977
|
+
}
|
|
482978
|
+
}
|
|
482979
|
+
this._exit();
|
|
482980
|
+
}
|
|
482176
482981
|
};
|
|
482177
482982
|
exports2.$Global = $Global;
|
|
482178
482983
|
__decorate2([
|
|
@@ -483211,6 +484016,16 @@ import { MIGRATIONS_CLASSES_FOR_${lib_32._.upperFirst(lib_32._.camelCase(newEnti
|
|
|
483211
484016
|
}
|
|
483212
484017
|
this._exit(0);
|
|
483213
484018
|
}
|
|
484019
|
+
wrapClassesNamespacesMethodsBodyWithWebsqlFunc() {
|
|
484020
|
+
const fileAbsPath = (0, lib_32.crossPlatformPath)(this.firstArg);
|
|
484021
|
+
const content2 = lib_42.Helpers.readFile(fileAbsPath);
|
|
484022
|
+
const fixedRegions = lib_42.UtilsTypescript.wrapClassesNamespacesMethodsBodyWithWebsqlFunc(content2);
|
|
484023
|
+
if (content2 !== fixedRegions) {
|
|
484024
|
+
lib_42.Helpers.writeFile(fileAbsPath, fixedRegions);
|
|
484025
|
+
lib_42.UtilsTypescript.formatFile(fileAbsPath);
|
|
484026
|
+
}
|
|
484027
|
+
this._exit(0);
|
|
484028
|
+
}
|
|
483214
484029
|
};
|
|
483215
484030
|
exports2.$Generate = $Generate;
|
|
483216
484031
|
exports2.default = {
|
|
@@ -484343,6 +485158,43 @@ var require_cli_OPEN = __commonJS({
|
|
|
484343
485158
|
}
|
|
484344
485159
|
});
|
|
484345
485160
|
|
|
485161
|
+
// tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/project/cli/cli-PROXY.js
|
|
485162
|
+
var require_cli_PROXY = __commonJS({
|
|
485163
|
+
"tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/project/cli/cli-PROXY.js"(exports2) {
|
|
485164
|
+
"use strict";
|
|
485165
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
485166
|
+
exports2.$Proxy = void 0;
|
|
485167
|
+
var lib_13 = require_lib31();
|
|
485168
|
+
var lib_22 = require_lib47();
|
|
485169
|
+
var base_cli_1 = require_base_cli();
|
|
485170
|
+
var $Proxy = class extends base_cli_1.BaseCli {
|
|
485171
|
+
async __initialize__() {
|
|
485172
|
+
await super.__initialize__();
|
|
485173
|
+
}
|
|
485174
|
+
async _() {
|
|
485175
|
+
if (!this.firstArg) {
|
|
485176
|
+
lib_22.Helpers.info(lib_13.chalk.green(`
|
|
485177
|
+
|
|
485178
|
+
With command "${lib_13.chalk.bold(`${lib_13.config.frameworkName} proxy <arg>`)}" you can trigger
|
|
485179
|
+
execution of any command for specyfic projects, but from safe cloned
|
|
485180
|
+
version of this project.
|
|
485181
|
+
|
|
485182
|
+
${this.project?.proxyCloned?.tempLocation || ""}
|
|
485183
|
+
|
|
485184
|
+
`));
|
|
485185
|
+
this._exit();
|
|
485186
|
+
}
|
|
485187
|
+
await this.project.proxyCloned.execute(this.argsWithParams);
|
|
485188
|
+
this._exit();
|
|
485189
|
+
}
|
|
485190
|
+
};
|
|
485191
|
+
exports2.$Proxy = $Proxy;
|
|
485192
|
+
exports2.default = {
|
|
485193
|
+
$Proxy: lib_22.HelpersTaon.CLIWRAP($Proxy, "$Proxy")
|
|
485194
|
+
};
|
|
485195
|
+
}
|
|
485196
|
+
});
|
|
485197
|
+
|
|
484346
485198
|
// tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/project/cli/cli-REFACTOR.js
|
|
484347
485199
|
var require_cli_REFACTOR = __commonJS({
|
|
484348
485200
|
"tnp/tmp-local-copyto-proj-dist/node_modules/tnp/lib/project/cli/cli-REFACTOR.js"(exports2) {
|
|
@@ -484757,7 +485609,10 @@ var require_cli_SUB_PROJECT = __commonJS({
|
|
|
484757
485609
|
name: "Get info about subproject embeded in this taon project"
|
|
484758
485610
|
},
|
|
484759
485611
|
dev: {
|
|
484760
|
-
name: "Local dev
|
|
485612
|
+
name: "Local dev build"
|
|
485613
|
+
},
|
|
485614
|
+
devprod: {
|
|
485615
|
+
name: "Local dev minified build"
|
|
484761
485616
|
},
|
|
484762
485617
|
// build: {
|
|
484763
485618
|
// name: 'Local dev single build',
|
|
@@ -484804,23 +485659,38 @@ var require_cli_SUB_PROJECT = __commonJS({
|
|
|
484804
485659
|
if (overrideSelect) {
|
|
484805
485660
|
overrideSelect = void 0;
|
|
484806
485661
|
}
|
|
485662
|
+
const releaseOptions = this.params.clone({
|
|
485663
|
+
build: {
|
|
485664
|
+
...this.params.build,
|
|
485665
|
+
cloudflare: true
|
|
485666
|
+
}
|
|
485667
|
+
});
|
|
484807
485668
|
if (select === "info") {
|
|
484808
485669
|
await this.project.subProject.getInfo();
|
|
484809
485670
|
} else if (select === "addDeploy") {
|
|
484810
|
-
await this.project.subProject.addAndConfigure(
|
|
485671
|
+
await this.project.subProject.addAndConfigure({
|
|
485672
|
+
releaseOptions
|
|
485673
|
+
});
|
|
484811
485674
|
await this.project.init();
|
|
484812
485675
|
} else if (select === "add") {
|
|
484813
485676
|
await this.project.subProject.addAndConfigure({
|
|
484814
|
-
skipDeployment: true
|
|
485677
|
+
skipDeployment: true,
|
|
485678
|
+
releaseOptions
|
|
484815
485679
|
});
|
|
484816
485680
|
await this.project.init();
|
|
484817
485681
|
} else if (select === "dev") {
|
|
484818
485682
|
await this.project.subProject.startInDevMode({
|
|
484819
485683
|
projectName: this.secondArg ? lib_13.path.basename(this.secondArg?.trim()) : void 0,
|
|
484820
|
-
envOptions:
|
|
484821
|
-
|
|
484822
|
-
|
|
484823
|
-
|
|
485684
|
+
envOptions: releaseOptions
|
|
485685
|
+
});
|
|
485686
|
+
} else if (select === "devprod") {
|
|
485687
|
+
await this.project.subProject.startInDevMode({
|
|
485688
|
+
projectName: this.secondArg ? lib_13.path.basename(this.secondArg?.trim()) : void 0,
|
|
485689
|
+
envOptions: releaseOptions.clone({
|
|
485690
|
+
release: {
|
|
485691
|
+
nodeBackendApp: {
|
|
485692
|
+
minify: true
|
|
485693
|
+
}
|
|
484824
485694
|
}
|
|
484825
485695
|
})
|
|
484826
485696
|
});
|
|
@@ -484831,7 +485701,7 @@ var require_cli_SUB_PROJECT = __commonJS({
|
|
|
484831
485701
|
} else if (select === "secrets") {
|
|
484832
485702
|
await this.project.subProject.setWorkerSecrets();
|
|
484833
485703
|
} else if (select === "deploy") {
|
|
484834
|
-
await this.project.subProject.deployWorker();
|
|
485704
|
+
await this.project.subProject.deployWorker(releaseOptions);
|
|
484835
485705
|
} else if (select === "initall") {
|
|
484836
485706
|
await this.project.subProject.repo.initAll();
|
|
484837
485707
|
} else if (select === "login") {
|
|
@@ -485150,6 +486020,7 @@ var require_cli = __commonJS({
|
|
|
485150
486020
|
var cli_MIGRATION_1 = require_cli_MIGRATION();
|
|
485151
486021
|
var cli_NEW_1 = require_cli_NEW();
|
|
485152
486022
|
var cli_OPEN_1 = require_cli_OPEN();
|
|
486023
|
+
var cli_PROXY_1 = require_cli_PROXY();
|
|
485153
486024
|
var cli_REFACTOR_1 = require_cli_REFACTOR();
|
|
485154
486025
|
var cli_RELEASE_1 = require_cli_RELEASE();
|
|
485155
486026
|
var cli_SUB_PROJECT_1 = require_cli_SUB_PROJECT();
|
|
@@ -485174,6 +486045,7 @@ var require_cli = __commonJS({
|
|
|
485174
486045
|
cli_REFACTOR_1.default,
|
|
485175
486046
|
cli_VERSION_1.default,
|
|
485176
486047
|
cli_GENERATE_1.default,
|
|
486048
|
+
cli_PROXY_1.default,
|
|
485177
486049
|
cli_DOCKER_1.default,
|
|
485178
486050
|
cli_FILE_SYNC_1.default,
|
|
485179
486051
|
cli_CORE_1.default,
|
|
@@ -485378,6 +486250,7 @@ var require_start_cli8 = __commonJS({
|
|
|
485378
486250
|
"install:locally": "release:install:locally",
|
|
485379
486251
|
cinit: "init:clearInit",
|
|
485380
486252
|
a: "app",
|
|
486253
|
+
p: "proxy",
|
|
485381
486254
|
an: "app:normal",
|
|
485382
486255
|
aw: "app:websql",
|
|
485383
486256
|
ae: "app:electron",
|
|
@@ -485479,9 +486352,7 @@ var require_start_cli8 = __commonJS({
|
|
|
485479
486352
|
hide: "vscode:temp:hide",
|
|
485480
486353
|
show: "vscode:temp:show",
|
|
485481
486354
|
simulate: "simulateDomain",
|
|
485482
|
-
taonjson: "recreateTaonJsonSchema"
|
|
485483
|
-
p: "push",
|
|
485484
|
-
pl: "pull"
|
|
486355
|
+
taonjson: "recreateTaonJsonSchema"
|
|
485485
486356
|
//#endregion
|
|
485486
486357
|
}
|
|
485487
486358
|
});
|