@catladder/cli 0.0.0-refactore-catenv-command-validates-argument-78d05852 → 0.0.0-reference-database-url-1befbbee
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/CONTRIBUTING.md +3 -86
- package/README.md +6 -29
- package/bin/catci-dev +1 -1
- package/bin/catenv-dev +1 -1
- package/bin/catladder-dev +1 -1
- package/dist/bundles/catci/index.js +1898 -1298
- package/dist/bundles/catenv/index.js +27277 -24341
- package/dist/bundles/cli/index.js +190191 -243044
- package/dist/cli/src/apps/catci/catci.js +30 -0
- package/dist/cli/src/apps/catci/catci.js.map +1 -0
- package/dist/cli/src/apps/catci/commands/security/auditDocument.d.ts +19 -0
- package/dist/cli/src/apps/catci/commands/security/auditDocument.js +109 -0
- package/dist/cli/src/apps/catci/commands/security/auditDocument.js.map +1 -0
- package/dist/cli/src/apps/catci/commands/security/commands.js +110 -0
- package/dist/cli/src/apps/catci/commands/security/commands.js.map +1 -0
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.js +52 -0
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.js.map +1 -0
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.js +28 -0
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.js.map +1 -0
- package/dist/cli/src/apps/catci/commands/security/topics.json +117 -0
- package/dist/cli/src/apps/catenv/catenv.d.ts +3 -0
- package/dist/cli/src/apps/catenv/catenv.js +21 -0
- package/dist/cli/src/apps/catenv/catenv.js.map +1 -0
- package/dist/cli/src/apps/catenv/printVariables.d.ts +3 -0
- package/dist/cli/src/apps/catenv/printVariables.js +49 -0
- package/dist/cli/src/apps/catenv/printVariables.js.map +1 -0
- package/dist/cli/src/apps/catenv/types.d.ts +4 -0
- package/dist/cli/src/apps/catenv/types.js +3 -0
- package/dist/cli/src/apps/catenv/types.js.map +1 -0
- package/dist/cli/src/apps/catenv/utils.d.ts +13 -0
- package/dist/cli/src/apps/catenv/utils.js +35 -0
- package/dist/cli/src/apps/catenv/utils.js.map +1 -0
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.d.ts +3 -0
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.js +31 -0
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.js.map +1 -0
- package/dist/cli/src/apps/catenv/writeEnvDTs.d.ts +3 -0
- package/dist/cli/src/apps/catenv/writeEnvDTs.js +57 -0
- package/dist/cli/src/apps/catenv/writeEnvDTs.js.map +1 -0
- package/dist/cli/src/apps/cli/cli.js +39 -0
- package/dist/cli/src/apps/cli/cli.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js +111 -0
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.js +10 -0
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/general/index.js +78 -0
- package/dist/cli/src/apps/cli/commands/general/index.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js +11 -0
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/general/portForward.js +40 -0
- package/dist/cli/src/apps/cli/commands/general/portForward.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/mongodb/index.js +14 -0
- package/dist/cli/src/apps/cli/commands/mongodb/index.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js +94 -0
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js +36 -0
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js +57 -0
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js +70 -0
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js +126 -0
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js +121 -0
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js +155 -0
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js +47 -0
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js +28 -0
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js +13 -0
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js +11 -0
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.js +34 -0
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js +86 -0
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandListPods.js +19 -0
- package/dist/cli/src/apps/cli/commands/project/commandListPods.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.js +11 -0
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js +20 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js +9 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js +14 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js +28 -0
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.js +80 -0
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js +9 -0
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js +24 -0
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js +19 -0
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandSetup.js +11 -0
- package/dist/cli/src/apps/cli/commands/project/commandSetup.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js +56 -0
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/index.js +50 -0
- package/dist/cli/src/apps/cli/commands/project/index.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/setup/index.d.ts +2 -0
- package/dist/cli/src/apps/cli/commands/project/setup/index.js +34 -0
- package/dist/cli/src/apps/cli/commands/project/setup/index.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js +38 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.d.ts +3 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js +57 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.d.ts +3 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js +25 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.d.ts +3 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js +115 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js +12 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.d.ts +4 -0
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js +31 -0
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js +34 -0
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.d.ts +2 -0
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js +38 -0
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js +14 -0
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js +35 -0
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js.map +1 -0
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js +20 -0
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js.map +1 -0
- package/dist/cli/src/apps/cli/verify/index.js +15 -0
- package/dist/cli/src/apps/cli/verify/index.js.map +1 -0
- package/dist/cli/src/catci.js +5 -0
- package/dist/cli/src/catci.js.map +1 -0
- package/dist/cli/src/catenv.js +19 -0
- package/dist/cli/src/catenv.js.map +1 -0
- package/dist/cli/src/cli.js +8 -0
- package/dist/cli/src/cli.js.map +1 -0
- package/dist/cli/src/config/getProjectConfig.d.ts +22 -0
- package/dist/cli/src/config/getProjectConfig.js +135 -0
- package/dist/cli/src/config/getProjectConfig.js.map +1 -0
- package/dist/cli/src/config/parseChoice.js +9 -0
- package/dist/cli/src/config/parseChoice.js.map +1 -0
- package/dist/cli/src/gcloud/artifactsRegistry.d.ts +5 -0
- package/dist/cli/src/gcloud/artifactsRegistry.js +15 -0
- package/dist/cli/src/gcloud/artifactsRegistry.js.map +1 -0
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.d.ts +2 -0
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.js +28 -0
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.js.map +1 -0
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.d.ts +3 -0
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js +18 -0
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js.map +1 -0
- package/dist/cli/src/gcloud/cloudSql/copyDb.d.ts +12 -0
- package/dist/cli/src/gcloud/cloudSql/copyDb.js +38 -0
- package/dist/cli/src/gcloud/cloudSql/copyDb.js.map +1 -0
- package/dist/cli/src/gcloud/cloudSql/startProxy.d.ts +10 -0
- package/dist/cli/src/gcloud/cloudSql/startProxy.js +52 -0
- package/dist/cli/src/gcloud/cloudSql/startProxy.js.map +1 -0
- package/dist/cli/src/gcloud/enableServices.js +11 -0
- package/dist/cli/src/gcloud/enableServices.js.map +1 -0
- package/dist/cli/src/gcloud/openDashboard.js +20 -0
- package/dist/cli/src/gcloud/openDashboard.js.map +1 -0
- package/dist/cli/src/gcloud/serviceAccounts.d.ts +12 -0
- package/dist/cli/src/gcloud/serviceAccounts.js +72 -0
- package/dist/cli/src/gcloud/serviceAccounts.js.map +1 -0
- package/dist/cli/src/git/gitConfig.d.ts +9 -0
- package/dist/cli/src/git/gitConfig.js +16 -0
- package/dist/cli/src/git/gitConfig.js.map +1 -0
- package/dist/cli/src/git/gitProjectInformation.d.ts +16 -0
- package/dist/cli/src/git/gitProjectInformation.js +38 -0
- package/dist/cli/src/git/gitProjectInformation.js.map +1 -0
- package/dist/cli/src/git/index.d.ts +2 -0
- package/dist/cli/src/git/index.js +19 -0
- package/dist/cli/src/git/index.js.map +1 -0
- package/dist/cli/src/index.d.ts +1 -0
- package/dist/cli/src/index.js +3 -0
- package/dist/cli/src/index.js.map +1 -0
- package/dist/cli/src/k8sApi/index.js +29 -0
- package/dist/cli/src/k8sApi/index.js.map +1 -0
- package/dist/cli/src/kubernetes/index.js +27 -0
- package/dist/cli/src/kubernetes/index.js.map +1 -0
- package/dist/cli/src/kubernetes/openKubernetesDashboards.d.ts +4 -0
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js +42 -0
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js.map +1 -0
- package/dist/cli/src/kubernetes/portForward.js +10 -0
- package/dist/cli/src/kubernetes/portForward.js.map +1 -0
- package/dist/cli/src/packageInfos.js +11 -0
- package/dist/cli/src/packageInfos.js.map +1 -0
- package/dist/cli/src/types/types.d.ts +18 -0
- package/dist/cli/src/types/types.js +3 -0
- package/dist/cli/src/types/types.js.map +1 -0
- package/dist/cli/src/utils/boxWithAscii.d.ts +1 -0
- package/dist/cli/src/utils/boxWithAscii.js +14 -0
- package/dist/cli/src/utils/boxWithAscii.js.map +1 -0
- package/dist/cli/src/utils/cluster.js +15 -0
- package/dist/cli/src/utils/cluster.js.map +1 -0
- package/dist/cli/src/utils/editAsFile.js +29 -0
- package/dist/cli/src/utils/editAsFile.js.map +1 -0
- package/dist/cli/src/utils/files.d.ts +1 -0
- package/dist/cli/src/utils/files.js +16 -0
- package/dist/cli/src/utils/files.js.map +1 -0
- package/dist/cli/src/utils/getEditor.js +21 -0
- package/dist/cli/src/utils/getEditor.js.map +1 -0
- package/dist/cli/src/utils/gitlab.d.ts +24 -0
- package/dist/cli/src/utils/gitlab.js +212 -0
- package/dist/cli/src/utils/gitlab.js.map +1 -0
- package/dist/cli/src/utils/log.d.ts +65 -0
- package/dist/cli/src/utils/log.js +68 -0
- package/dist/cli/src/utils/log.js.map +1 -0
- package/dist/cli/src/utils/portForwards.d.ts +12 -0
- package/dist/cli/src/utils/portForwards.js +48 -0
- package/dist/cli/src/utils/portForwards.js.map +1 -0
- package/dist/cli/src/utils/preferences.d.ts +4 -0
- package/dist/cli/src/utils/preferences.js +58 -0
- package/dist/cli/src/utils/preferences.js.map +1 -0
- package/dist/cli/src/utils/projects/index.d.ts +5 -0
- package/dist/cli/src/utils/projects/index.js +39 -0
- package/dist/cli/src/utils/projects/index.js.map +1 -0
- package/dist/cli/src/utils/promise.js +11 -0
- package/dist/cli/src/utils/promise.js.map +1 -0
- package/dist/cli/src/utils/shell.js +25 -0
- package/dist/cli/src/utils/shell.js.map +1 -0
- package/dist/pipeline/src/bash/BashExpression.d.ts +36 -0
- package/dist/pipeline/src/bash/BashExpression.js +67 -0
- package/dist/pipeline/src/bash/BashExpression.js.map +1 -0
- package/dist/pipeline/src/bash/bashEscape.d.ts +35 -0
- package/dist/pipeline/src/bash/bashEscape.js +133 -0
- package/dist/pipeline/src/bash/bashEscape.js.map +1 -0
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.d.ts +8 -0
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js +10 -0
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js.map +1 -0
- package/dist/pipeline/src/bash/bashYaml.d.ts +10 -0
- package/dist/pipeline/src/bash/bashYaml.js +71 -0
- package/dist/pipeline/src/bash/bashYaml.js.map +1 -0
- package/dist/pipeline/src/bash/getInjectVarsScript.d.ts +2 -0
- package/dist/pipeline/src/bash/getInjectVarsScript.js +19 -0
- package/dist/pipeline/src/bash/getInjectVarsScript.js.map +1 -0
- package/dist/pipeline/src/bash/index.d.ts +2 -0
- package/dist/pipeline/src/bash/index.js +19 -0
- package/dist/pipeline/src/bash/index.js.map +1 -0
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.d.ts +3 -0
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +52 -0
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js.map +1 -0
- package/dist/pipeline/src/build/base/constants.d.ts +6 -0
- package/dist/pipeline/src/build/base/constants.js +10 -0
- package/dist/pipeline/src/build/base/constants.js.map +1 -0
- package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +4 -0
- package/dist/pipeline/src/build/base/createAppBuildJob.js +55 -0
- package/dist/pipeline/src/build/base/createAppBuildJob.js.map +1 -0
- package/dist/pipeline/src/build/base/createArtifactsConfig.d.ts +4 -0
- package/dist/pipeline/src/build/base/createArtifactsConfig.js +30 -0
- package/dist/pipeline/src/build/base/createArtifactsConfig.js.map +1 -0
- package/dist/pipeline/src/build/base/createBuildJobDefinition.d.ts +6 -0
- package/dist/pipeline/src/build/base/createBuildJobDefinition.js +30 -0
- package/dist/pipeline/src/build/base/createBuildJobDefinition.js.map +1 -0
- package/dist/pipeline/src/build/base/index.d.ts +10 -0
- package/dist/pipeline/src/build/base/index.js +48 -0
- package/dist/pipeline/src/build/base/index.js.map +1 -0
- package/dist/pipeline/src/build/base/writeBuildInfo.d.ts +2 -0
- package/dist/pipeline/src/build/base/writeBuildInfo.js +10 -0
- package/dist/pipeline/src/build/base/writeBuildInfo.js.map +1 -0
- package/dist/pipeline/src/build/base/writeDotEnv.d.ts +8 -0
- package/dist/pipeline/src/build/base/writeDotEnv.js +36 -0
- package/dist/pipeline/src/build/base/writeDotEnv.js.map +1 -0
- package/dist/pipeline/src/build/cache/createJobCache.d.ts +7 -0
- package/dist/pipeline/src/build/cache/createJobCache.js +61 -0
- package/dist/pipeline/src/build/cache/createJobCache.js.map +1 -0
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.d.ts +3 -0
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +29 -0
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js.map +1 -0
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.d.ts +3 -0
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.js +17 -0
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.js.map +1 -0
- package/dist/pipeline/src/build/custom/buildJob.d.ts +3 -0
- package/dist/pipeline/src/build/custom/buildJob.js +24 -0
- package/dist/pipeline/src/build/custom/buildJob.js.map +1 -0
- package/dist/pipeline/src/build/custom/index.d.ts +3 -0
- package/dist/pipeline/src/build/custom/index.js +10 -0
- package/dist/pipeline/src/build/custom/index.js.map +1 -0
- package/dist/pipeline/src/build/custom/testJob.d.ts +7 -0
- package/dist/pipeline/src/build/custom/testJob.js +68 -0
- package/dist/pipeline/src/build/custom/testJob.js.map +1 -0
- package/dist/pipeline/src/build/docker.d.ts +65 -0
- package/dist/pipeline/src/build/docker.js +162 -0
- package/dist/pipeline/src/build/docker.js.map +1 -0
- package/dist/pipeline/src/build/index.d.ts +24 -0
- package/dist/pipeline/src/build/index.js +83 -0
- package/dist/pipeline/src/build/index.js.map +1 -0
- package/dist/pipeline/src/build/node/buildJob.d.ts +9 -0
- package/dist/pipeline/src/build/node/buildJob.js +51 -0
- package/dist/pipeline/src/build/node/buildJob.js.map +1 -0
- package/dist/pipeline/src/build/node/cache.d.ts +5 -0
- package/dist/pipeline/src/build/node/cache.js +58 -0
- package/dist/pipeline/src/build/node/cache.js.map +1 -0
- package/dist/pipeline/src/build/node/constants.d.ts +5 -0
- package/dist/pipeline/src/build/node/constants.js +9 -0
- package/dist/pipeline/src/build/node/constants.js.map +1 -0
- package/dist/pipeline/src/build/node/index.d.ts +5 -0
- package/dist/pipeline/src/build/node/index.js +19 -0
- package/dist/pipeline/src/build/node/index.js.map +1 -0
- package/dist/pipeline/src/build/node/meteor.d.ts +3 -0
- package/dist/pipeline/src/build/node/meteor.js +55 -0
- package/dist/pipeline/src/build/node/meteor.js.map +1 -0
- package/dist/pipeline/src/build/node/testJob.d.ts +4 -0
- package/dist/pipeline/src/build/node/testJob.js +92 -0
- package/dist/pipeline/src/build/node/testJob.js.map +1 -0
- package/dist/pipeline/src/build/node/yarn.d.ts +7 -0
- package/dist/pipeline/src/build/node/yarn.js +61 -0
- package/dist/pipeline/src/build/node/yarn.js.map +1 -0
- package/dist/pipeline/src/build/rails/build.d.ts +3 -0
- package/dist/pipeline/src/build/rails/build.js +52 -0
- package/dist/pipeline/src/build/rails/build.js.map +1 -0
- package/dist/pipeline/src/build/rails/index.d.ts +3 -0
- package/dist/pipeline/src/build/rails/index.js +10 -0
- package/dist/pipeline/src/build/rails/index.js.map +1 -0
- package/dist/pipeline/src/build/rails/test.d.ts +3 -0
- package/dist/pipeline/src/build/rails/test.js +105 -0
- package/dist/pipeline/src/build/rails/test.js.map +1 -0
- package/dist/pipeline/src/build/sbom.d.ts +5 -0
- package/dist/pipeline/src/build/sbom.js +45 -0
- package/dist/pipeline/src/build/sbom.js.map +1 -0
- package/dist/pipeline/src/build/types.d.ts +337 -0
- package/dist/pipeline/src/build/types.js +16 -0
- package/dist/pipeline/src/build/types.js.map +1 -0
- package/dist/pipeline/src/config/configruedEnvs.d.ts +4 -0
- package/dist/pipeline/src/config/configruedEnvs.js +35 -0
- package/dist/pipeline/src/config/configruedEnvs.js.map +1 -0
- package/dist/pipeline/src/config/index.d.ts +2 -0
- package/dist/pipeline/src/config/index.js +19 -0
- package/dist/pipeline/src/config/index.js.map +1 -0
- package/dist/pipeline/src/config/readConfig.d.ts +6 -0
- package/dist/pipeline/src/config/readConfig.js +34 -0
- package/dist/pipeline/src/config/readConfig.js.map +1 -0
- package/dist/pipeline/src/constants.d.ts +2 -0
- package/dist/pipeline/src/constants.js +7 -0
- package/dist/pipeline/src/constants.js.map +1 -0
- package/dist/pipeline/src/context/createAllComponentsContext.d.ts +8 -0
- package/dist/pipeline/src/context/createAllComponentsContext.js +21 -0
- package/dist/pipeline/src/context/createAllComponentsContext.js.map +1 -0
- package/dist/pipeline/src/context/createComponentContext.d.ts +11 -0
- package/dist/pipeline/src/context/createComponentContext.js +111 -0
- package/dist/pipeline/src/context/createComponentContext.js.map +1 -0
- package/dist/pipeline/src/context/createWorkspaceContext.d.ts +9 -0
- package/dist/pipeline/src/context/createWorkspaceContext.js +36 -0
- package/dist/pipeline/src/context/createWorkspaceContext.js.map +1 -0
- package/dist/pipeline/src/context/getBuildInfoVariables.d.ts +6 -0
- package/dist/pipeline/src/context/getBuildInfoVariables.js +29 -0
- package/dist/pipeline/src/context/getBuildInfoVariables.js.map +1 -0
- package/dist/pipeline/src/context/getEnvConfig.d.ts +2 -0
- package/dist/pipeline/src/context/getEnvConfig.js +34 -0
- package/dist/pipeline/src/context/getEnvConfig.js.map +1 -0
- package/dist/pipeline/src/context/getEnvType.d.ts +4 -0
- package/dist/pipeline/src/context/getEnvType.js +14 -0
- package/dist/pipeline/src/context/getEnvType.js.map +1 -0
- package/dist/pipeline/src/context/getEnvironment.d.ts +3 -0
- package/dist/pipeline/src/context/getEnvironment.js +21 -0
- package/dist/pipeline/src/context/getEnvironment.js.map +1 -0
- package/dist/pipeline/src/context/getEnvironmentContext.d.ts +3 -0
- package/dist/pipeline/src/context/getEnvironmentContext.js +37 -0
- package/dist/pipeline/src/context/getEnvironmentContext.js.map +1 -0
- package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +26 -0
- package/dist/pipeline/src/context/getEnvironmentVariables.js +115 -0
- package/dist/pipeline/src/context/getEnvironmentVariables.js.map +1 -0
- package/dist/pipeline/src/context/getLabels.d.ts +9 -0
- package/dist/pipeline/src/context/getLabels.js +31 -0
- package/dist/pipeline/src/context/getLabels.js.map +1 -0
- package/dist/pipeline/src/context/getReviewSlug.d.ts +4 -0
- package/dist/pipeline/src/context/getReviewSlug.js +19 -0
- package/dist/pipeline/src/context/getReviewSlug.js.map +1 -0
- package/dist/pipeline/src/context/index.d.ts +3 -0
- package/dist/pipeline/src/context/index.js +20 -0
- package/dist/pipeline/src/context/index.js.map +1 -0
- package/dist/pipeline/src/context/transformJobOnlyVars.d.ts +13 -0
- package/dist/pipeline/src/context/transformJobOnlyVars.js +35 -0
- package/dist/pipeline/src/context/transformJobOnlyVars.js.map +1 -0
- package/dist/pipeline/src/context/utils/envVars.d.ts +8 -0
- package/dist/pipeline/src/context/utils/envVars.js +21 -0
- package/dist/pipeline/src/context/utils/envVars.js.map +1 -0
- package/dist/pipeline/src/defaults/index.d.ts +2 -0
- package/dist/pipeline/src/defaults/index.js +8 -0
- package/dist/pipeline/src/defaults/index.js.map +1 -0
- package/dist/pipeline/src/deploy/base/deploy.d.ts +5 -0
- package/dist/pipeline/src/deploy/base/deploy.js +112 -0
- package/dist/pipeline/src/deploy/base/deploy.js.map +1 -0
- package/dist/pipeline/src/deploy/base/index.d.ts +8 -0
- package/dist/pipeline/src/deploy/base/index.js +17 -0
- package/dist/pipeline/src/deploy/base/index.js.map +1 -0
- package/dist/pipeline/src/deploy/base/rollback.d.ts +5 -0
- package/dist/pipeline/src/deploy/base/rollback.js +32 -0
- package/dist/pipeline/src/deploy/base/rollback.js.map +1 -0
- package/dist/pipeline/src/deploy/base/stop.d.ts +5 -0
- package/dist/pipeline/src/deploy/base/stop.js +37 -0
- package/dist/pipeline/src/deploy/base/stop.js.map +1 -0
- package/dist/pipeline/src/deploy/base/variables.d.ts +5 -0
- package/dist/pipeline/src/deploy/base/variables.js +9 -0
- package/dist/pipeline/src/deploy/base/variables.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.d.ts +19 -0
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js +98 -0
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/cleanup.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/cleanup.js +20 -0
- package/dist/pipeline/src/deploy/cloudRun/cleanup.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js +51 -0
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.d.ts +9 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +78 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.d.ts +4 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js +89 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.d.ts +18 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js +57 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.d.ts +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.js +5 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.d.ts +3 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js +78 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.d.ts +3 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.js +136 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +46 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +32 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.d.ts +5 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js +51 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.d.ts +3 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js +48 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.d.ts +3 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js +17 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/index.d.ts +4 -0
- package/dist/pipeline/src/deploy/cloudRun/index.js +89 -0
- package/dist/pipeline/src/deploy/cloudRun/index.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.d.ts +6 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.js +11 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.d.ts +13 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js +30 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/database.d.ts +25 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/database.js +103 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/database.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js +10 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js +12 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js +6 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.d.ts +6 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js +12 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.d.ts +9 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js +14 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudSql/utils.d.ts +4 -0
- package/dist/pipeline/src/deploy/cloudSql/utils.js +14 -0
- package/dist/pipeline/src/deploy/cloudSql/utils.js.map +1 -0
- package/dist/pipeline/src/deploy/custom/deployJob.d.ts +3 -0
- package/dist/pipeline/src/deploy/custom/deployJob.js +47 -0
- package/dist/pipeline/src/deploy/custom/deployJob.js.map +1 -0
- package/dist/pipeline/src/deploy/custom/index.d.ts +2 -0
- package/dist/pipeline/src/deploy/custom/index.js +11 -0
- package/dist/pipeline/src/deploy/custom/index.js.map +1 -0
- package/dist/pipeline/src/deploy/dockerTag/deployJob.d.ts +3 -0
- package/dist/pipeline/src/deploy/dockerTag/deployJob.js +29 -0
- package/dist/pipeline/src/deploy/dockerTag/deployJob.js.map +1 -0
- package/dist/pipeline/src/deploy/dockerTag/index.d.ts +2 -0
- package/dist/pipeline/src/deploy/dockerTag/index.js +11 -0
- package/dist/pipeline/src/deploy/dockerTag/index.js.map +1 -0
- package/dist/pipeline/src/deploy/index.d.ts +21 -0
- package/dist/pipeline/src/deploy/index.js +32 -0
- package/dist/pipeline/src/deploy/index.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.d.ts +6 -0
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js +23 -0
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.d.ts +14 -0
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js +43 -0
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/deployJob.d.ts +3 -0
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js +79 -0
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/index.d.ts +3 -0
- package/dist/pipeline/src/deploy/kubernetes/index.js +56 -0
- package/dist/pipeline/src/deploy/kubernetes/index.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.d.ts +10 -0
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js +45 -0
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +89 -0
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +76 -0
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/mongodb.d.ts +28 -0
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js +104 -0
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js.map +1 -0
- package/dist/pipeline/src/deploy/sbom.d.ts +4 -0
- package/dist/pipeline/src/deploy/sbom.js +30 -0
- package/dist/pipeline/src/deploy/sbom.js.map +1 -0
- package/dist/pipeline/src/deploy/types/base.d.ts +30 -0
- package/dist/pipeline/src/deploy/types/base.js +3 -0
- package/dist/pipeline/src/deploy/types/base.js.map +1 -0
- package/dist/pipeline/src/deploy/types/custom.d.ts +29 -0
- package/dist/pipeline/src/deploy/types/custom.js +3 -0
- package/dist/pipeline/src/deploy/types/custom.js.map +1 -0
- package/dist/pipeline/src/deploy/types/dockerTag.d.ts +12 -0
- package/dist/pipeline/src/deploy/types/dockerTag.js +3 -0
- package/dist/pipeline/src/deploy/types/dockerTag.js.map +1 -0
- package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +437 -0
- package/dist/pipeline/src/deploy/types/googleCloudRun.js +19 -0
- package/dist/pipeline/src/deploy/types/googleCloudRun.js.map +1 -0
- package/dist/pipeline/src/deploy/types/index.d.ts +23 -0
- package/dist/pipeline/src/deploy/types/index.js +32 -0
- package/dist/pipeline/src/deploy/types/index.js.map +1 -0
- package/dist/pipeline/src/deploy/types/kubernetes.d.ts +322 -0
- package/dist/pipeline/src/deploy/types/kubernetes.js +3 -0
- package/dist/pipeline/src/deploy/types/kubernetes.js.map +1 -0
- package/dist/pipeline/src/deploy/utils.d.ts +5 -0
- package/dist/pipeline/src/deploy/utils.js +30 -0
- package/dist/pipeline/src/deploy/utils.js.map +1 -0
- package/dist/pipeline/src/globalScriptFunctions/index.d.ts +14 -0
- package/dist/pipeline/src/globalScriptFunctions/index.js +32 -0
- package/dist/pipeline/src/globalScriptFunctions/index.js.map +1 -0
- package/dist/pipeline/src/index.d.ts +11 -0
- package/dist/pipeline/src/index.js +28 -0
- package/dist/pipeline/src/index.js.map +1 -0
- package/dist/pipeline/src/pipeline/createAllJobs.d.ts +14 -0
- package/dist/pipeline/src/pipeline/createAllJobs.js +45 -0
- package/dist/pipeline/src/pipeline/createAllJobs.js.map +1 -0
- package/dist/pipeline/src/pipeline/createJobsForComponent.d.ts +3 -0
- package/dist/pipeline/src/pipeline/createJobsForComponent.js +34 -0
- package/dist/pipeline/src/pipeline/createJobsForComponent.js.map +1 -0
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.d.ts +3 -0
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.js +10 -0
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.js.map +1 -0
- package/dist/pipeline/src/pipeline/createMainPipeline.d.ts +3 -0
- package/dist/pipeline/src/pipeline/createMainPipeline.js +82 -0
- package/dist/pipeline/src/pipeline/createMainPipeline.js.map +1 -0
- package/dist/pipeline/src/pipeline/generatePipelineFiles.d.ts +7 -0
- package/dist/pipeline/src/pipeline/generatePipelineFiles.js +80 -0
- package/dist/pipeline/src/pipeline/generatePipelineFiles.js.map +1 -0
- package/dist/pipeline/src/pipeline/getPipelineStages.d.ts +7 -0
- package/dist/pipeline/src/pipeline/getPipelineStages.js +21 -0
- package/dist/pipeline/src/pipeline/getPipelineStages.js.map +1 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.d.ts +13 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js +268 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js.map +1 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.d.ts +4 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js +25 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js.map +1 -0
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.d.ts +33 -0
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js +25 -0
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js.map +1 -0
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.d.ts +7 -0
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.js +50 -0
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.js.map +1 -0
- package/dist/pipeline/src/pipeline/index.d.ts +3 -0
- package/dist/pipeline/src/pipeline/index.js +20 -0
- package/dist/pipeline/src/pipeline/index.js.map +1 -0
- package/dist/pipeline/src/pipeline/packageManager.d.ts +4 -0
- package/dist/pipeline/src/pipeline/packageManager.js +73 -0
- package/dist/pipeline/src/pipeline/packageManager.js.map +1 -0
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.d.ts +5 -0
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.js +51 -0
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.js.map +1 -0
- package/dist/pipeline/src/rules/index.d.ts +13 -0
- package/dist/pipeline/src/rules/index.js +56 -0
- package/dist/pipeline/src/rules/index.js.map +1 -0
- package/dist/pipeline/src/runner/index.d.ts +2 -0
- package/dist/pipeline/src/runner/index.js +7 -0
- package/dist/pipeline/src/runner/index.js.map +1 -0
- package/dist/pipeline/src/types/config.d.ts +185 -0
- package/dist/pipeline/src/types/config.js +45 -0
- package/dist/pipeline/src/types/config.js.map +1 -0
- package/dist/pipeline/src/types/context.d.ts +157 -0
- package/dist/pipeline/src/types/context.js +12 -0
- package/dist/pipeline/src/types/context.js.map +1 -0
- package/dist/pipeline/src/types/environmentContext.d.ts +31 -0
- package/dist/pipeline/src/types/environmentContext.js +3 -0
- package/dist/pipeline/src/types/environmentContext.js.map +1 -0
- package/dist/pipeline/src/types/gitlab-ci-yml.d.ts +769 -0
- package/dist/pipeline/src/types/gitlab-ci-yml.js +8 -0
- package/dist/pipeline/src/types/gitlab-ci-yml.js.map +1 -0
- package/dist/pipeline/src/types/gitlab-types.d.ts +28 -0
- package/dist/pipeline/src/types/gitlab-types.js +3 -0
- package/dist/pipeline/src/types/gitlab-types.js.map +1 -0
- package/dist/pipeline/src/types/index.d.ts +6 -0
- package/dist/pipeline/src/types/index.js +23 -0
- package/dist/pipeline/src/types/index.js.map +1 -0
- package/dist/pipeline/src/types/jobDefinition.d.ts +11 -0
- package/dist/pipeline/src/types/jobDefinition.js +3 -0
- package/dist/pipeline/src/types/jobDefinition.js.map +1 -0
- package/dist/pipeline/src/types/jobs.d.ts +102 -0
- package/dist/pipeline/src/types/jobs.js +13 -0
- package/dist/pipeline/src/types/jobs.js.map +1 -0
- package/dist/pipeline/src/types/pipeline.d.ts +4 -0
- package/dist/pipeline/src/types/pipeline.js +3 -0
- package/dist/pipeline/src/types/pipeline.js.map +1 -0
- package/dist/pipeline/src/types/utils.d.ts +3 -0
- package/dist/pipeline/src/types/utils.js +3 -0
- package/dist/pipeline/src/types/utils.js.map +1 -0
- package/dist/pipeline/src/utils/gitlab.d.ts +6 -0
- package/dist/pipeline/src/utils/gitlab.js +38 -0
- package/dist/pipeline/src/utils/gitlab.js.map +1 -0
- package/dist/pipeline/src/utils/index.d.ts +4 -0
- package/dist/pipeline/src/utils/index.js +20 -0
- package/dist/pipeline/src/utils/index.js.map +1 -0
- package/dist/pipeline/src/utils/jsonParse.d.ts +1 -0
- package/dist/pipeline/src/utils/jsonParse.js +13 -0
- package/dist/pipeline/src/utils/jsonParse.js.map +1 -0
- package/dist/pipeline/src/utils/removeUndefined.d.ts +1 -0
- package/dist/pipeline/src/utils/removeUndefined.js +6 -0
- package/dist/pipeline/src/utils/removeUndefined.js.map +1 -0
- package/dist/pipeline/src/utils/writeFiles.d.ts +9 -0
- package/dist/pipeline/src/utils/writeFiles.js +40 -0
- package/dist/pipeline/src/utils/writeFiles.js.map +1 -0
- package/dist/pipeline/src/variables/VariableValue.d.ts +3 -0
- package/dist/pipeline/src/variables/VariableValue.js +3 -0
- package/dist/pipeline/src/variables/VariableValue.js.map +1 -0
- package/dist/pipeline/src/variables/VariableValueContainingReferences.d.ts +24 -0
- package/dist/pipeline/src/variables/VariableValueContainingReferences.js +69 -0
- package/dist/pipeline/src/variables/VariableValueContainingReferences.js.map +1 -0
- package/dist/pipeline/src/variables/resolveAllReferences.d.ts +3 -0
- package/dist/pipeline/src/variables/resolveAllReferences.js +25 -0
- package/dist/pipeline/src/variables/resolveAllReferences.js.map +1 -0
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.d.ts +5 -0
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.js +23 -0
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.js.map +1 -0
- package/dist/pipeline/src/variables/resolveReferencesOnce.d.ts +8 -0
- package/dist/pipeline/src/variables/resolveReferencesOnce.js +21 -0
- package/dist/pipeline/src/variables/resolveReferencesOnce.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -25
- package/scripts/bundle +3 -3
- package/src/apps/catci/commands/security/auditDocument.ts +4 -4
- package/src/apps/catci/commands/security/commands.ts +14 -14
- package/src/apps/catci/commands/security/createSecurityAuditMergeRequest.ts +9 -9
- package/src/apps/catci/commands/security/evaluateSecurityAudit.ts +2 -2
- package/src/apps/catci/commands/security/topics.json +13 -16
- package/src/apps/catenv/catenv.ts +13 -11
- package/src/apps/catenv/printVariables.ts +11 -8
- package/src/apps/catenv/types.ts +2 -2
- package/src/apps/catenv/utils.ts +21 -16
- package/src/apps/catenv/writeDotEnvFiles.ts +7 -12
- package/src/apps/catenv/writeEnvDTs.ts +9 -8
- package/src/apps/cli/cli.ts +4 -1
- package/src/apps/cli/commands/cloudSQL/commandRestoreDb.ts +1 -1
- package/src/apps/cli/commands/cloudSQL/index.ts +0 -1
- package/src/apps/cli/commands/general/index.ts +2 -8
- package/src/apps/cli/commands/general/namespaceAutoCompletion.ts +1 -1
- package/src/apps/cli/commands/mongodb/projectMongoDestroyMember.ts +11 -11
- package/src/apps/cli/commands/mongodb/projectMongoGetShell.ts +3 -4
- package/src/apps/cli/commands/mongodb/projectMongoPortForward.ts +3 -4
- package/src/apps/cli/commands/mongodb/utils/index.ts +8 -10
- package/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.ts +24 -18
- package/src/apps/cli/commands/project/commandCloudSqlProxy.ts +142 -87
- package/src/apps/cli/commands/project/commandConfigSecrets.ts +22 -23
- package/src/apps/cli/commands/project/commandDeletePods.ts +1 -1
- package/src/apps/cli/commands/project/commandDeleteProject.ts +1 -1
- package/src/apps/cli/commands/project/commandEnvVars.ts +1 -1
- package/src/apps/cli/commands/project/commandGetMyTotalWorktime.ts +1 -1
- package/src/apps/cli/commands/project/commandGetShell.ts +1 -1
- package/src/apps/cli/commands/project/commandGitlabCi.ts +4 -4
- package/src/apps/cli/commands/project/commandListPods.ts +4 -2
- package/src/apps/cli/commands/project/commandNamespace.ts +1 -1
- package/src/apps/cli/commands/project/commandOpenEnv.ts +2 -2
- package/src/apps/cli/commands/project/commandOpenGit.ts +1 -1
- package/src/apps/cli/commands/project/commandOpenLogs.ts +1 -1
- package/src/apps/cli/commands/project/commandPauseProject.ts +1 -1
- package/src/apps/cli/commands/project/commandPortForward.ts +13 -8
- package/src/apps/cli/commands/project/commandRenewToken.ts +12 -0
- package/src/apps/cli/commands/project/commandSecretsClearBackups.ts +1 -2
- package/src/apps/cli/commands/project/commandSecurityEvaluate.ts +2 -2
- package/src/apps/cli/commands/project/commandSetup.ts +6 -4
- package/src/apps/cli/commands/project/index.ts +4 -14
- package/src/apps/cli/commands/project/setup/index.ts +9 -19
- package/src/apps/cli/commands/project/setup/setupAccessTokens.ts +46 -60
- package/src/apps/cli/commands/project/setup/setupCloudRun.ts +11 -11
- package/src/apps/cli/commands/project/setup/setupContext.ts +7 -19
- package/src/apps/cli/commands/project/setup/setupKubernetes.ts +47 -16
- package/src/apps/cli/commands/project/setup/setupTopic.ts +4 -9
- package/src/apps/cli/commands/project/utils/autocompletions.ts +10 -1
- package/src/apps/cli/commands/project/utils/ensureCluster.ts +3 -5
- package/src/apps/cli/commands/project/utils/ensureNamespace.ts +6 -19
- package/src/apps/cli/utils/getGoogleAuthUserNumber.ts +1 -1
- package/src/apps/cli/verify/index.ts +1 -17
- package/src/catenv.ts +16 -2
- package/src/config/getProjectConfig.ts +72 -74
- package/src/gcloud/artifactsRegistry.ts +1 -1
- package/src/gcloud/cloudRun/getCloudRunDomainSuffix.ts +2 -2
- package/src/gcloud/cloudRun/openCloudRunDashboards.ts +5 -5
- package/src/gcloud/cloudSql/copyDb.ts +1 -1
- package/src/gcloud/cloudSql/startProxy.ts +7 -7
- package/src/gcloud/enableServices.ts +2 -2
- package/src/gcloud/openDashboard.ts +1 -1
- package/src/gcloud/serviceAccounts.ts +38 -20
- package/src/git/gitConfig.ts +32 -0
- package/src/git/gitProjectInformation.ts +40 -0
- package/src/git/index.ts +2 -0
- package/src/index.ts +1 -0
- package/src/kubernetes/index.ts +1 -1
- package/src/kubernetes/openKubernetesDashboards.ts +5 -5
- package/src/kubernetes/portForward.ts +2 -2
- package/src/packageInfos.ts +7 -2
- package/src/types/child-process-promise.d.ts +3 -3
- package/src/utils/boxWithAscii.ts +9 -0
- package/src/utils/editAsFile.ts +6 -5
- package/src/utils/files.ts +2 -12
- package/src/utils/getEditor.ts +0 -1
- package/src/utils/gitlab.ts +60 -43
- package/src/utils/log.ts +108 -8
- package/src/utils/portForwards.ts +1 -1
- package/src/utils/preferences.ts +60 -0
- package/src/utils/projects/index.ts +7 -2
- package/src/utils/promise.ts +7 -5
- package/tsconfig.json +7 -3
- package/.nvmrc +0 -1
- package/dist/apps/catci/catci.js +0 -86
- package/dist/apps/catci/catci.js.map +0 -1
- package/dist/apps/catci/commands/security/auditDocument.d.ts +0 -19
- package/dist/apps/catci/commands/security/auditDocument.js +0 -90
- package/dist/apps/catci/commands/security/auditDocument.js.map +0 -1
- package/dist/apps/catci/commands/security/commands.js +0 -185
- package/dist/apps/catci/commands/security/commands.js.map +0 -1
- package/dist/apps/catci/commands/security/createSecurityAuditMergeRequest.js +0 -112
- package/dist/apps/catci/commands/security/createSecurityAuditMergeRequest.js.map +0 -1
- package/dist/apps/catci/commands/security/evaluateSecurityAudit.js +0 -76
- package/dist/apps/catci/commands/security/evaluateSecurityAudit.js.map +0 -1
- package/dist/apps/catci/commands/security/topics.json +0 -112
- package/dist/apps/catenv/catenv.d.ts +0 -2
- package/dist/apps/catenv/catenv.js +0 -68
- package/dist/apps/catenv/catenv.js.map +0 -1
- package/dist/apps/catenv/printVariables.d.ts +0 -3
- package/dist/apps/catenv/printVariables.js +0 -115
- package/dist/apps/catenv/printVariables.js.map +0 -1
- package/dist/apps/catenv/types.d.ts +0 -5
- package/dist/apps/catenv/types.js +0 -3
- package/dist/apps/catenv/types.js.map +0 -1
- package/dist/apps/catenv/utils.d.ts +0 -12
- package/dist/apps/catenv/utils.js +0 -108
- package/dist/apps/catenv/utils.js.map +0 -1
- package/dist/apps/catenv/writeDotEnvFiles.d.ts +0 -3
- package/dist/apps/catenv/writeDotEnvFiles.js +0 -94
- package/dist/apps/catenv/writeDotEnvFiles.js.map +0 -1
- package/dist/apps/catenv/writeEnvDTs.d.ts +0 -3
- package/dist/apps/catenv/writeEnvDTs.js +0 -114
- package/dist/apps/catenv/writeEnvDTs.js.map +0 -1
- package/dist/apps/cli/cli.js +0 -83
- package/dist/apps/cli/cli.js.map +0 -1
- package/dist/apps/cli/commands/cloudSQL/commandRestoreDb.js +0 -185
- package/dist/apps/cli/commands/cloudSQL/commandRestoreDb.js.map +0 -1
- package/dist/apps/cli/commands/cloudSQL/index.js +0 -50
- package/dist/apps/cli/commands/cloudSQL/index.js.map +0 -1
- package/dist/apps/cli/commands/general/index.js +0 -216
- package/dist/apps/cli/commands/general/index.js.map +0 -1
- package/dist/apps/cli/commands/general/namespaceAutoCompletion.js +0 -56
- package/dist/apps/cli/commands/general/namespaceAutoCompletion.js.map +0 -1
- package/dist/apps/cli/commands/general/portForward.js +0 -97
- package/dist/apps/cli/commands/general/portForward.js.map +0 -1
- package/dist/apps/cli/commands/mongodb/index.js +0 -53
- package/dist/apps/cli/commands/mongodb/index.js.map +0 -1
- package/dist/apps/cli/commands/mongodb/projectMongoDestroyMember.js +0 -191
- package/dist/apps/cli/commands/mongodb/projectMongoDestroyMember.js.map +0 -1
- package/dist/apps/cli/commands/mongodb/projectMongoGetShell.js +0 -96
- package/dist/apps/cli/commands/mongodb/projectMongoGetShell.js.map +0 -1
- package/dist/apps/cli/commands/mongodb/projectMongoPortForward.js +0 -121
- package/dist/apps/cli/commands/mongodb/projectMongoPortForward.js.map +0 -1
- package/dist/apps/cli/commands/mongodb/utils/index.js +0 -179
- package/dist/apps/cli/commands/mongodb/utils/index.js.map +0 -1
- package/dist/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js +0 -189
- package/dist/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js.map +0 -1
- package/dist/apps/cli/commands/project/commandCloudSqlProxy.js +0 -164
- package/dist/apps/cli/commands/project/commandCloudSqlProxy.js.map +0 -1
- package/dist/apps/cli/commands/project/commandConfigSecrets.js +0 -337
- package/dist/apps/cli/commands/project/commandConfigSecrets.js.map +0 -1
- package/dist/apps/cli/commands/project/commandDeletePods.js +0 -121
- package/dist/apps/cli/commands/project/commandDeletePods.js.map +0 -1
- package/dist/apps/cli/commands/project/commandDeleteProject.js +0 -97
- package/dist/apps/cli/commands/project/commandDeleteProject.js.map +0 -1
- package/dist/apps/cli/commands/project/commandEnvVars.js +0 -74
- package/dist/apps/cli/commands/project/commandEnvVars.js.map +0 -1
- package/dist/apps/cli/commands/project/commandGetMyTotalWorktime.js +0 -58
- package/dist/apps/cli/commands/project/commandGetMyTotalWorktime.js.map +0 -1
- package/dist/apps/cli/commands/project/commandGetShell.js +0 -96
- package/dist/apps/cli/commands/project/commandGetShell.js.map +0 -1
- package/dist/apps/cli/commands/project/commandGitlabCi.js +0 -185
- package/dist/apps/cli/commands/project/commandGitlabCi.js.map +0 -1
- package/dist/apps/cli/commands/project/commandInitProject.old.js +0 -345
- package/dist/apps/cli/commands/project/commandInitProject.old.js.map +0 -1
- package/dist/apps/cli/commands/project/commandListPods.js +0 -78
- package/dist/apps/cli/commands/project/commandListPods.js.map +0 -1
- package/dist/apps/cli/commands/project/commandMigrateHelm3.d.ts +0 -7
- package/dist/apps/cli/commands/project/commandMigrateHelm3.js +0 -112
- package/dist/apps/cli/commands/project/commandMigrateHelm3.js.map +0 -1
- package/dist/apps/cli/commands/project/commandNamespace.js +0 -70
- package/dist/apps/cli/commands/project/commandNamespace.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenCostDashboard.d.ts +0 -3
- package/dist/apps/cli/commands/project/commandOpenCostDashboard.js +0 -83
- package/dist/apps/cli/commands/project/commandOpenCostDashboard.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenDashboard.d.ts +0 -3
- package/dist/apps/cli/commands/project/commandOpenDashboard.js +0 -84
- package/dist/apps/cli/commands/project/commandOpenDashboard.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenEnv.js +0 -80
- package/dist/apps/cli/commands/project/commandOpenEnv.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenGit.js +0 -56
- package/dist/apps/cli/commands/project/commandOpenGit.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenGrafana.d.ts +0 -3
- package/dist/apps/cli/commands/project/commandOpenGrafana.js +0 -83
- package/dist/apps/cli/commands/project/commandOpenGrafana.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenGrafanaPod.d.ts +0 -3
- package/dist/apps/cli/commands/project/commandOpenGrafanaPod.js +0 -100
- package/dist/apps/cli/commands/project/commandOpenGrafanaPod.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenLogs.js +0 -74
- package/dist/apps/cli/commands/project/commandOpenLogs.js.map +0 -1
- package/dist/apps/cli/commands/project/commandPauseProject.js +0 -97
- package/dist/apps/cli/commands/project/commandPauseProject.js.map +0 -1
- package/dist/apps/cli/commands/project/commandPortForward.js +0 -168
- package/dist/apps/cli/commands/project/commandPortForward.js.map +0 -1
- package/dist/apps/cli/commands/project/commandSecretsClearBackups.js +0 -90
- package/dist/apps/cli/commands/project/commandSecretsClearBackups.js.map +0 -1
- package/dist/apps/cli/commands/project/commandSecurityEvaluate.js +0 -70
- package/dist/apps/cli/commands/project/commandSecurityEvaluate.js.map +0 -1
- package/dist/apps/cli/commands/project/commandSetup.js +0 -58
- package/dist/apps/cli/commands/project/commandSetup.js.map +0 -1
- package/dist/apps/cli/commands/project/commandTriggerCronjob.js +0 -144
- package/dist/apps/cli/commands/project/commandTriggerCronjob.js.map +0 -1
- package/dist/apps/cli/commands/project/index.js +0 -98
- package/dist/apps/cli/commands/project/index.js.map +0 -1
- package/dist/apps/cli/commands/project/setup/index.d.ts +0 -2
- package/dist/apps/cli/commands/project/setup/index.js +0 -107
- package/dist/apps/cli/commands/project/setup/index.js.map +0 -1
- package/dist/apps/cli/commands/project/setup/setupAccessTokens.js +0 -116
- package/dist/apps/cli/commands/project/setup/setupAccessTokens.js.map +0 -1
- package/dist/apps/cli/commands/project/setup/setupCloudRun.d.ts +0 -3
- package/dist/apps/cli/commands/project/setup/setupCloudRun.js +0 -118
- package/dist/apps/cli/commands/project/setup/setupCloudRun.js.map +0 -1
- package/dist/apps/cli/commands/project/setup/setupContext.d.ts +0 -3
- package/dist/apps/cli/commands/project/setup/setupContext.js +0 -81
- package/dist/apps/cli/commands/project/setup/setupContext.js.map +0 -1
- package/dist/apps/cli/commands/project/setup/setupKubernetes.d.ts +0 -3
- package/dist/apps/cli/commands/project/setup/setupKubernetes.js +0 -139
- package/dist/apps/cli/commands/project/setup/setupKubernetes.js.map +0 -1
- package/dist/apps/cli/commands/project/setup/setupTopic.js +0 -69
- package/dist/apps/cli/commands/project/setup/setupTopic.js.map +0 -1
- package/dist/apps/cli/commands/project/utils/autocompletions.d.ts +0 -3
- package/dist/apps/cli/commands/project/utils/autocompletions.js +0 -96
- package/dist/apps/cli/commands/project/utils/autocompletions.js.map +0 -1
- package/dist/apps/cli/commands/project/utils/ensureCluster.js +0 -84
- package/dist/apps/cli/commands/project/utils/ensureCluster.js.map +0 -1
- package/dist/apps/cli/commands/project/utils/ensureNamespace.d.ts +0 -2
- package/dist/apps/cli/commands/project/utils/ensureNamespace.js +0 -104
- package/dist/apps/cli/commands/project/utils/ensureNamespace.js.map +0 -1
- package/dist/apps/cli/commands/project/utils/showProjectBanner.js +0 -58
- package/dist/apps/cli/commands/project/utils/showProjectBanner.js.map +0 -1
- package/dist/apps/cli/commands/theStuffThatReallyMatters/index.js +0 -101
- package/dist/apps/cli/commands/theStuffThatReallyMatters/index.js.map +0 -1
- package/dist/apps/cli/config/writeConfig.d.ts +0 -5
- package/dist/apps/cli/config/writeConfig.js +0 -106
- package/dist/apps/cli/config/writeConfig.js.map +0 -1
- package/dist/apps/cli/utils/getGoogleAuthUserNumber.js +0 -69
- package/dist/apps/cli/utils/getGoogleAuthUserNumber.js.map +0 -1
- package/dist/apps/cli/verify/index.js +0 -94
- package/dist/apps/cli/verify/index.js.map +0 -1
- package/dist/apps/cli/verify/migration/fromv2.d.ts +0 -4
- package/dist/apps/cli/verify/migration/fromv2.js +0 -349
- package/dist/apps/cli/verify/migration/fromv2.js.map +0 -1
- package/dist/apps/cli/verify/migration/migrateSecrets.d.ts +0 -4
- package/dist/apps/cli/verify/migration/migrateSecrets.js +0 -91
- package/dist/apps/cli/verify/migration/migrateSecrets.js.map +0 -1
- package/dist/apps/cli/verify/migration/oldGitlabCi.d.ts +0 -18
- package/dist/apps/cli/verify/migration/oldGitlabCi.js +0 -30
- package/dist/apps/cli/verify/migration/oldGitlabCi.js.map +0 -1
- package/dist/catci.js +0 -5
- package/dist/catci.js.map +0 -1
- package/dist/catenv.js +0 -11
- package/dist/catenv.js.map +0 -1
- package/dist/cli.js +0 -8
- package/dist/cli.js.map +0 -1
- package/dist/config/constants.d.ts +0 -2
- package/dist/config/constants.js +0 -6
- package/dist/config/constants.js.map +0 -1
- package/dist/config/getProjectConfig.d.ts +0 -24
- package/dist/config/getProjectConfig.js +0 -310
- package/dist/config/getProjectConfig.js.map +0 -1
- package/dist/config/parseChoice.js +0 -9
- package/dist/config/parseChoice.js.map +0 -1
- package/dist/config/parseChoiceArgument.d.ts +0 -13
- package/dist/config/parseChoiceArgument.js +0 -43
- package/dist/config/parseChoiceArgument.js.map +0 -1
- package/dist/gcloud/artifactsRegistry.d.ts +0 -5
- package/dist/gcloud/artifactsRegistry.js +0 -59
- package/dist/gcloud/artifactsRegistry.js.map +0 -1
- package/dist/gcloud/cloudRun/getCloudRunDomainSuffix.d.ts +0 -2
- package/dist/gcloud/cloudRun/getCloudRunDomainSuffix.js +0 -67
- package/dist/gcloud/cloudRun/getCloudRunDomainSuffix.js.map +0 -1
- package/dist/gcloud/cloudRun/openCloudRunDashboards.d.ts +0 -3
- package/dist/gcloud/cloudRun/openCloudRunDashboards.js +0 -62
- package/dist/gcloud/cloudRun/openCloudRunDashboards.js.map +0 -1
- package/dist/gcloud/cloudSql/copyDb.d.ts +0 -12
- package/dist/gcloud/cloudSql/copyDb.js +0 -64
- package/dist/gcloud/cloudSql/copyDb.js.map +0 -1
- package/dist/gcloud/cloudSql/startProxy.d.ts +0 -10
- package/dist/gcloud/cloudSql/startProxy.js +0 -121
- package/dist/gcloud/cloudSql/startProxy.js.map +0 -1
- package/dist/gcloud/enableServices.js +0 -63
- package/dist/gcloud/enableServices.js.map +0 -1
- package/dist/gcloud/openDashboard.js +0 -66
- package/dist/gcloud/openDashboard.js.map +0 -1
- package/dist/gcloud/serviceAccounts.d.ts +0 -12
- package/dist/gcloud/serviceAccounts.js +0 -146
- package/dist/gcloud/serviceAccounts.js.map +0 -1
- package/dist/k8sApi/index.js +0 -29
- package/dist/k8sApi/index.js.map +0 -1
- package/dist/kubernetes/index.js +0 -88
- package/dist/kubernetes/index.js.map +0 -1
- package/dist/kubernetes/openKubernetesDashboards.d.ts +0 -4
- package/dist/kubernetes/openKubernetesDashboards.js +0 -94
- package/dist/kubernetes/openKubernetesDashboards.js.map +0 -1
- package/dist/kubernetes/portForward.js +0 -55
- package/dist/kubernetes/portForward.js.map +0 -1
- package/dist/packageInfos.js +0 -6
- package/dist/packageInfos.js.map +0 -1
- package/dist/types/types.d.ts +0 -18
- package/dist/types/types.js +0 -3
- package/dist/types/types.js.map +0 -1
- package/dist/utils/cluster.js +0 -68
- package/dist/utils/cluster.js.map +0 -1
- package/dist/utils/editAsFile.js +0 -85
- package/dist/utils/editAsFile.js.map +0 -1
- package/dist/utils/files.d.ts +0 -2
- package/dist/utils/files.js +0 -83
- package/dist/utils/files.js.map +0 -1
- package/dist/utils/getEditor.js +0 -78
- package/dist/utils/getEditor.js.map +0 -1
- package/dist/utils/gitlab.d.ts +0 -24
- package/dist/utils/gitlab.js +0 -397
- package/dist/utils/gitlab.js.map +0 -1
- package/dist/utils/log.d.ts +0 -1
- package/dist/utils/log.js +0 -14
- package/dist/utils/log.js.map +0 -1
- package/dist/utils/passwordstore/index.d.ts +0 -7
- package/dist/utils/passwordstore/index.js +0 -315
- package/dist/utils/passwordstore/index.js.map +0 -1
- package/dist/utils/portForwards.d.ts +0 -12
- package/dist/utils/portForwards.js +0 -120
- package/dist/utils/portForwards.js.map +0 -1
- package/dist/utils/preferences/index.d.ts +0 -3
- package/dist/utils/preferences/index.js +0 -119
- package/dist/utils/preferences/index.js.map +0 -1
- package/dist/utils/projects/index.d.ts +0 -5
- package/dist/utils/projects/index.js +0 -103
- package/dist/utils/projects/index.js.map +0 -1
- package/dist/utils/promise.js +0 -62
- package/dist/utils/promise.js.map +0 -1
- package/dist/utils/shell.js +0 -81
- package/dist/utils/shell.js.map +0 -1
- package/src/apps/cli/commands/project/commandInitProject.old.ts +0 -290
- package/src/apps/cli/commands/project/commandMigrateHelm3.ts +0 -63
- package/src/apps/cli/commands/project/commandOpenCostDashboard.ts +0 -32
- package/src/apps/cli/commands/project/commandOpenDashboard.ts +0 -28
- package/src/apps/cli/commands/project/commandOpenGrafana.ts +0 -31
- package/src/apps/cli/commands/project/commandOpenGrafanaPod.ts +0 -43
- package/src/apps/cli/config/writeConfig.ts +0 -71
- package/src/apps/cli/verify/migration/fromv2.ts +0 -262
- package/src/apps/cli/verify/migration/migrateSecrets.ts +0 -47
- package/src/apps/cli/verify/migration/oldGitlabCi.ts +0 -48
- package/src/config/constants.ts +0 -2
- package/src/config/parseChoiceArgument.ts +0 -50
- package/src/utils/passwordstore/index.ts +0 -162
- package/src/utils/preferences/index.ts +0 -36
- /package/dist/{apps → cli/src/apps}/catci/catci.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/catci/commands/security/commands.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/catci/commands/security/createSecurityAuditMergeRequest.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/catci/commands/security/evaluateSecurityAudit.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/cli.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/cloudSQL/commandRestoreDb.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/cloudSQL/index.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/general/index.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/general/namespaceAutoCompletion.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/general/portForward.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/mongodb/index.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/mongodb/projectMongoDestroyMember.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/mongodb/projectMongoGetShell.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/mongodb/projectMongoPortForward.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/mongodb/utils/index.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/cloudSql/commandProjectRestoreDb.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandCloudSqlProxy.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandConfigSecrets.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandDeletePods.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandDeleteProject.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandEnvVars.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandGetMyTotalWorktime.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandGetShell.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandGitlabCi.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandListPods.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandNamespace.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandOpenEnv.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandOpenGit.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandOpenLogs.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandPauseProject.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandPortForward.d.ts +0 -0
- /package/dist/{apps/cli/commands/project/commandInitProject.old.d.ts → cli/src/apps/cli/commands/project/commandRenewToken.d.ts} +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandSecretsClearBackups.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandSecurityEvaluate.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandSetup.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/commandTriggerCronjob.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/index.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/setup/setupAccessTokens.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/setup/setupTopic.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/utils/ensureCluster.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/utils/showProjectBanner.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/theStuffThatReallyMatters/index.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/utils/getGoogleAuthUserNumber.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/verify/index.d.ts +0 -0
- /package/dist/{catci.d.ts → cli/src/catci.d.ts} +0 -0
- /package/dist/{catenv.d.ts → cli/src/catenv.d.ts} +0 -0
- /package/dist/{cli.d.ts → cli/src/cli.d.ts} +0 -0
- /package/dist/{config → cli/src/config}/parseChoice.d.ts +0 -0
- /package/dist/{gcloud → cli/src/gcloud}/enableServices.d.ts +0 -0
- /package/dist/{gcloud → cli/src/gcloud}/openDashboard.d.ts +0 -0
- /package/dist/{k8sApi → cli/src/k8sApi}/index.d.ts +0 -0
- /package/dist/{kubernetes → cli/src/kubernetes}/index.d.ts +0 -0
- /package/dist/{kubernetes → cli/src/kubernetes}/portForward.d.ts +0 -0
- /package/dist/{packageInfos.d.ts → cli/src/packageInfos.d.ts} +0 -0
- /package/dist/{utils → cli/src/utils}/cluster.d.ts +0 -0
- /package/dist/{utils → cli/src/utils}/editAsFile.d.ts +0 -0
- /package/dist/{utils → cli/src/utils}/getEditor.d.ts +0 -0
- /package/dist/{utils → cli/src/utils}/promise.d.ts +0 -0
- /package/dist/{utils → cli/src/utils}/shell.d.ts +0 -0
|
@@ -1,100 +1,44 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 1123:
|
|
5
5
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
8
|
|
|
9
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
11
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
12
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
13
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
14
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
15
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
19
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
20
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
21
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
22
|
-
function step(op) {
|
|
23
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
24
|
-
while (_) try {
|
|
25
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
26
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
27
|
-
switch (op[0]) {
|
|
28
|
-
case 0: case 1: t = op; break;
|
|
29
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
30
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
31
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
32
|
-
default:
|
|
33
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
34
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
35
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
36
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
37
|
-
if (t[2]) _.ops.pop();
|
|
38
|
-
_.trys.pop(); continue;
|
|
39
|
-
}
|
|
40
|
-
op = body.call(thisArg, _);
|
|
41
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
42
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
46
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
47
|
-
if (ar || !(i in from)) {
|
|
48
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
49
|
-
ar[i] = from[i];
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
53
|
-
};
|
|
54
9
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
55
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
56
11
|
};
|
|
57
|
-
exports
|
|
12
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
58
13
|
exports.runCatCi = void 0;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
14
|
+
const vorpal_1 = __importDefault(__nccwpck_require__(1491));
|
|
15
|
+
const packageInfos_1 = __importDefault(__nccwpck_require__(2260));
|
|
16
|
+
const commands_1 = __importDefault(__nccwpck_require__(4288));
|
|
62
17
|
function reconstructArgs(args) {
|
|
63
|
-
return
|
|
18
|
+
return [args[0], ...args.slice(1).map((arg) => `"${arg}"`)].join(" ");
|
|
64
19
|
}
|
|
65
|
-
function runCatCi() {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
process.exitCode = 1;
|
|
81
|
-
args = reconstructArgs(process.argv.slice(2));
|
|
82
|
-
return [4 /*yield*/, vorpal.exec(args)];
|
|
83
|
-
case 2:
|
|
84
|
-
_a.sent();
|
|
85
|
-
process.exit();
|
|
86
|
-
_a.label = 3;
|
|
87
|
-
case 3: return [2 /*return*/];
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
});
|
|
20
|
+
async function runCatCi() {
|
|
21
|
+
const vorpal = new vorpal_1.default();
|
|
22
|
+
process.exitCode = 0;
|
|
23
|
+
vorpal.delimiter("catci $").history("catci").version(packageInfos_1.default.version);
|
|
24
|
+
(0, commands_1.default)(vorpal);
|
|
25
|
+
const isInteractive = process.argv.length <= 2;
|
|
26
|
+
if (isInteractive) {
|
|
27
|
+
vorpal.log(`Catladder CI Tools 😻🔨 version ${packageInfos_1.default.version}`).show();
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
process.exitCode = 1;
|
|
31
|
+
const args = reconstructArgs(process.argv.slice(2));
|
|
32
|
+
await vorpal.exec(args);
|
|
33
|
+
process.exit();
|
|
34
|
+
}
|
|
91
35
|
}
|
|
92
36
|
exports.runCatCi = runCatCi;
|
|
93
37
|
//# sourceMappingURL=catci.js.map
|
|
94
38
|
|
|
95
39
|
/***/ }),
|
|
96
40
|
|
|
97
|
-
/***/
|
|
41
|
+
/***/ 2488:
|
|
98
42
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
99
43
|
|
|
100
44
|
"use strict";
|
|
@@ -102,88 +46,107 @@ exports.runCatCi = runCatCi;
|
|
|
102
46
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
103
47
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
104
48
|
};
|
|
105
|
-
exports
|
|
49
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
106
50
|
exports.evaluateDocument = exports.makeTemplate = void 0;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
51
|
+
const topics_json_1 = __importDefault(__nccwpck_require__(1888));
|
|
52
|
+
const allTopics = topics_json_1.default;
|
|
53
|
+
const checkYes = "✅";
|
|
54
|
+
const checkNo = "❌";
|
|
55
|
+
const checkPlaceholder = `${checkYes}/${checkNo}`;
|
|
56
|
+
const responsiblePlaceholder = "@...";
|
|
57
|
+
const rows = [
|
|
114
58
|
["Responsible", checkPlaceholder, "Description", "Note", "More Information"],
|
|
115
|
-
].concat(allTopics.map(
|
|
59
|
+
].concat(allTopics.map((t) => [
|
|
116
60
|
Array(t.responsibles).fill(responsiblePlaceholder).join(", "),
|
|
117
61
|
checkPlaceholder,
|
|
118
62
|
t.description,
|
|
119
63
|
"",
|
|
120
64
|
t.more,
|
|
121
|
-
]
|
|
65
|
+
]));
|
|
122
66
|
function makeTable(rows) {
|
|
123
|
-
|
|
124
|
-
return
|
|
67
|
+
const colWidths = calculateColumnWidths(rows);
|
|
68
|
+
return `
|
|
69
|
+
${makeRow(rows[0], colWidths, " ")}
|
|
70
|
+
${makeRow(rows[0].map(() => ""), colWidths, "-")}
|
|
71
|
+
${rows
|
|
125
72
|
.slice(1)
|
|
126
|
-
.map(
|
|
127
|
-
.join("\n")
|
|
73
|
+
.map((row) => makeRow(row, colWidths, " "))
|
|
74
|
+
.join("\n")}
|
|
75
|
+
`;
|
|
128
76
|
}
|
|
129
77
|
function calculateColumnWidths(rows) {
|
|
130
|
-
|
|
131
|
-
return Array.from({ length: columnCount },
|
|
132
|
-
return Math.max.apply(Math, rows.map(function (row) { return row[columnIndex].length; }));
|
|
133
|
-
});
|
|
78
|
+
const columnCount = rows[0].length;
|
|
79
|
+
return Array.from({ length: columnCount }, (_, i) => i).map((columnIndex) => Math.max(...rows.map((row) => row[columnIndex].length)));
|
|
134
80
|
}
|
|
135
81
|
function makeRow(row, colWidths, fillString) {
|
|
136
|
-
return
|
|
137
|
-
.map(
|
|
138
|
-
.join(" | ")
|
|
82
|
+
return `| ${row
|
|
83
|
+
.map((cell, i) => cell.padEnd(colWidths[i], fillString))
|
|
84
|
+
.join(" | ")} |`;
|
|
139
85
|
}
|
|
140
86
|
function makeTemplate() {
|
|
141
|
-
return
|
|
87
|
+
return `
|
|
88
|
+
# Security Audit Report
|
|
89
|
+
|
|
90
|
+
A security audit report document is a comprehensive assessment of an application's security posture, containing security topics that auditors can mark to indicate the state of various security aspects.
|
|
91
|
+
|
|
92
|
+
It serves as a structured guide for security team to evaluate different security factors such as authentication, authorization, data encryption, input validation, and more.
|
|
93
|
+
|
|
94
|
+
## General Information
|
|
95
|
+
|
|
96
|
+
- Project Owner is @...
|
|
97
|
+
- Dev team:
|
|
98
|
+
- @...
|
|
99
|
+
- @...
|
|
100
|
+
- @...
|
|
101
|
+
|
|
102
|
+
## Project Security
|
|
103
|
+
|
|
104
|
+
${makeTable(rows)}
|
|
105
|
+
|
|
106
|
+
`;
|
|
142
107
|
}
|
|
143
108
|
exports.makeTemplate = makeTemplate;
|
|
144
109
|
function evaluateDocument(document) {
|
|
145
110
|
var _a, _b;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
.map(
|
|
111
|
+
const rawRows = (_b = (_a = document.match(/^\s*\|.*?\|\s*$/gm)) === null || _a === void 0 ? void 0 : _a.map((row) => row.trim())) !== null && _b !== void 0 ? _b : [];
|
|
112
|
+
const matchedRows = rawRows
|
|
113
|
+
.map((row) => row.split("|").map((col) => col.trim()))
|
|
149
114
|
.slice(2);
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
115
|
+
const knownTopics = new Set(allTopics.map((t) => t.description));
|
|
116
|
+
const topics = matchedRows.map((col) => {
|
|
117
|
+
const responsibles = col[1].split(", ");
|
|
118
|
+
const answer = col[2];
|
|
119
|
+
const description = col[3];
|
|
120
|
+
const note = col[4];
|
|
121
|
+
const isUnknown = !knownTopics.has(description);
|
|
122
|
+
const isAnswered = !isUnknown &&
|
|
158
123
|
!answer.includes(checkPlaceholder) &&
|
|
159
|
-
!responsibles.some(
|
|
160
|
-
|
|
161
|
-
});
|
|
162
|
-
var isSecured = !isUnknown && isAnswered && answer.includes(checkYes);
|
|
124
|
+
!responsibles.some((responsible) => responsible.includes(responsiblePlaceholder));
|
|
125
|
+
const isSecured = !isUnknown && isAnswered && answer.includes(checkYes);
|
|
163
126
|
return {
|
|
164
|
-
responsibles
|
|
165
|
-
answer
|
|
166
|
-
description
|
|
167
|
-
note
|
|
168
|
-
isUnknown
|
|
169
|
-
isAnswered
|
|
170
|
-
isSecured
|
|
127
|
+
responsibles,
|
|
128
|
+
answer,
|
|
129
|
+
description,
|
|
130
|
+
note,
|
|
131
|
+
isUnknown,
|
|
132
|
+
isAnswered,
|
|
133
|
+
isSecured,
|
|
171
134
|
};
|
|
172
135
|
});
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
136
|
+
const totalTopics = allTopics.length;
|
|
137
|
+
const answeredTopics = topics.filter((t) => t.isAnswered).length;
|
|
138
|
+
const securedTopics = topics.filter((t) => t.isSecured).length;
|
|
139
|
+
const unknownTopics = topics.filter((t) => t.isUnknown).length;
|
|
140
|
+
const rating = Math.round((securedTopics / totalTopics) * 100);
|
|
178
141
|
return {
|
|
179
|
-
topics
|
|
142
|
+
topics,
|
|
180
143
|
score: {
|
|
181
|
-
rating
|
|
182
|
-
totalTopics
|
|
183
|
-
answeredTopics
|
|
184
|
-
securedTopics
|
|
185
|
-
unknownTopics
|
|
186
|
-
}
|
|
144
|
+
rating,
|
|
145
|
+
totalTopics,
|
|
146
|
+
answeredTopics,
|
|
147
|
+
securedTopics,
|
|
148
|
+
unknownTopics,
|
|
149
|
+
},
|
|
187
150
|
};
|
|
188
151
|
}
|
|
189
152
|
exports.evaluateDocument = evaluateDocument;
|
|
@@ -191,53 +154,17 @@ exports.evaluateDocument = evaluateDocument;
|
|
|
191
154
|
|
|
192
155
|
/***/ }),
|
|
193
156
|
|
|
194
|
-
/***/
|
|
195
|
-
/***/ (
|
|
157
|
+
/***/ 4288:
|
|
158
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
196
159
|
|
|
197
160
|
"use strict";
|
|
198
161
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
206
|
-
});
|
|
207
|
-
};
|
|
208
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
209
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
210
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
211
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
212
|
-
function step(op) {
|
|
213
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
214
|
-
while (_) try {
|
|
215
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
216
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
217
|
-
switch (op[0]) {
|
|
218
|
-
case 0: case 1: t = op; break;
|
|
219
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
220
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
221
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
222
|
-
default:
|
|
223
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
224
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
225
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
226
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
227
|
-
if (t[2]) _.ops.pop();
|
|
228
|
-
_.trys.pop(); continue;
|
|
229
|
-
}
|
|
230
|
-
op = body.call(thisArg, _);
|
|
231
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
232
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
exports.__esModule = true;
|
|
236
|
-
var evaluateSecurityAudit_1 = __nccwpck_require__(5849);
|
|
237
|
-
var rest_1 = __nccwpck_require__(1084);
|
|
238
|
-
var createSecurityAuditMergeRequest_1 = __nccwpck_require__(6828);
|
|
239
|
-
var ts_results_es_1 = __nccwpck_require__(2807);
|
|
240
|
-
var GITLAB_HOST = "https://git.panter.ch";
|
|
162
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
163
|
+
const evaluateSecurityAudit_1 = __nccwpck_require__(6725);
|
|
164
|
+
const rest_1 = __nccwpck_require__(1084);
|
|
165
|
+
const createSecurityAuditMergeRequest_1 = __nccwpck_require__(8933);
|
|
166
|
+
const ts_results_es_1 = __nccwpck_require__(2807);
|
|
167
|
+
const GITLAB_HOST = "https://git.panter.ch";
|
|
241
168
|
function default_1(vorpal) {
|
|
242
169
|
commandCiJob(vorpal);
|
|
243
170
|
commandEvaluate(vorpal);
|
|
@@ -245,360 +172,218 @@ function default_1(vorpal) {
|
|
|
245
172
|
}
|
|
246
173
|
exports["default"] = default_1;
|
|
247
174
|
function resultAsExitCode(func) {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
175
|
+
return async (args) => {
|
|
176
|
+
const result = await func(args);
|
|
177
|
+
process.exitCode = result.isErr() ? 1 : 0;
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
async function commandCiJob(vorpal) {
|
|
181
|
+
vorpal
|
|
182
|
+
.command("security-audit-ci-job <path> <token> <mainBranch> <projectId> <userId>", `Evaluates security audit document. If the document can't be evaluated or does not exist, creates a new MR with security audit document template.
|
|
183
|
+
|
|
184
|
+
<path> root path of a project with security audit document (${createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME})
|
|
185
|
+
<token> gitlab token with 'api' scopes and permissions to create a new branch
|
|
186
|
+
<main-branch> main branch name
|
|
187
|
+
<project-id> project id to create security audit for
|
|
188
|
+
<user-id> gitlab user id that will be assignee of the audit
|
|
189
|
+
`)
|
|
190
|
+
.action(resultAsExitCode(async (args) => {
|
|
191
|
+
const evaluation = await (0, evaluateSecurityAudit_1.evaluateSecurityAudit)({ path: args.path });
|
|
192
|
+
if (evaluation.isErr()) {
|
|
193
|
+
console.log("could not evaluate security audit document");
|
|
194
|
+
console.log("creating new merge request with security audit template...");
|
|
195
|
+
const { token, mainBranch, projectId, userId } = args;
|
|
196
|
+
const api = new rest_1.Gitlab({
|
|
197
|
+
host: GITLAB_HOST,
|
|
198
|
+
token,
|
|
199
|
+
});
|
|
200
|
+
const mr = await (0, createSecurityAuditMergeRequest_1.createSecurityAuditMergeRequest)({
|
|
201
|
+
api,
|
|
202
|
+
mainBranch,
|
|
203
|
+
projectId,
|
|
204
|
+
userId: parseInt(userId),
|
|
205
|
+
});
|
|
206
|
+
if (mr.isErr()) {
|
|
207
|
+
console.error(`could not create merge request with security audit template: ${mr.error}`);
|
|
208
|
+
return mr;
|
|
258
209
|
}
|
|
259
|
-
|
|
260
|
-
|
|
210
|
+
console.log("security audit merge request created successfully");
|
|
211
|
+
console.log(`please finish the MR by updating SECURITY.md document: ${mr.value.web_url}`);
|
|
212
|
+
return (0, ts_results_es_1.Err)("merge request created");
|
|
213
|
+
}
|
|
214
|
+
if (evaluation.value.score.answeredTopics === 0) {
|
|
215
|
+
console.error("audit document has no answered topics");
|
|
216
|
+
console.error(`please answer security topics in ${createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME} by adding responsible people and check/cross in the table`);
|
|
217
|
+
return (0, ts_results_es_1.Err)("audit document has no answered topics");
|
|
218
|
+
}
|
|
219
|
+
console.log((0, evaluateSecurityAudit_1.makeSecurityAuditOverview)(evaluation.value));
|
|
220
|
+
return (0, ts_results_es_1.Ok)({});
|
|
221
|
+
}));
|
|
261
222
|
}
|
|
262
|
-
function
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
console.log("creating new merge request with security audit template...");
|
|
278
|
-
token = args.token, mainBranch = args.mainBranch, projectId = args.projectId, userId = args.userId;
|
|
279
|
-
api = new rest_1.Gitlab({
|
|
280
|
-
host: GITLAB_HOST,
|
|
281
|
-
token: token
|
|
282
|
-
});
|
|
283
|
-
return [4 /*yield*/, (0, createSecurityAuditMergeRequest_1.createSecurityAuditMergeRequest)({
|
|
284
|
-
api: api,
|
|
285
|
-
mainBranch: mainBranch,
|
|
286
|
-
projectId: projectId,
|
|
287
|
-
userId: parseInt(userId)
|
|
288
|
-
})];
|
|
289
|
-
case 2:
|
|
290
|
-
mr = _a.sent();
|
|
291
|
-
if (mr.isErr()) {
|
|
292
|
-
console.error("could not create merge request with security audit template: ".concat(mr.error));
|
|
293
|
-
return [2 /*return*/, mr];
|
|
294
|
-
}
|
|
295
|
-
console.log("security audit merge request created successfully");
|
|
296
|
-
console.log("please finish the MR by updating SECURITY.md document: ".concat(mr.value.web_url));
|
|
297
|
-
return [2 /*return*/, (0, ts_results_es_1.Err)("merge request created")];
|
|
298
|
-
case 3:
|
|
299
|
-
if (evaluation.value.score.answeredTopics === 0) {
|
|
300
|
-
console.error("audit document has no answered topics");
|
|
301
|
-
console.error("please answer security topics in ".concat(createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME, " by adding responsible people and check/cross in the table"));
|
|
302
|
-
return [2 /*return*/, (0, ts_results_es_1.Err)("audit document has no answered topics")];
|
|
303
|
-
}
|
|
304
|
-
console.log((0, evaluateSecurityAudit_1.makeSecurityAuditOverview)(evaluation.value));
|
|
305
|
-
return [2 /*return*/, (0, ts_results_es_1.Ok)({})];
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
}); }));
|
|
309
|
-
return [2 /*return*/];
|
|
310
|
-
});
|
|
311
|
-
});
|
|
223
|
+
async function commandEvaluate(vorpal) {
|
|
224
|
+
vorpal
|
|
225
|
+
.command("security-audit-evaluate <path>", "Evaluates security audit document in given <path>")
|
|
226
|
+
.action(resultAsExitCode(async (args) => {
|
|
227
|
+
console.log("evaluating security audit document...");
|
|
228
|
+
const result = await (0, evaluateSecurityAudit_1.evaluateSecurityAudit)({ path: args.path });
|
|
229
|
+
if (result.isErr()) {
|
|
230
|
+
console.error(result.error);
|
|
231
|
+
console.error(`please make sure the security audit document ${createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME} is in the repository`);
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
console.log((0, evaluateSecurityAudit_1.makeSecurityAuditOverview)(result.value));
|
|
235
|
+
}
|
|
236
|
+
return result;
|
|
237
|
+
}));
|
|
312
238
|
}
|
|
313
|
-
function
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
result = _a.sent();
|
|
328
|
-
if (result.isErr()) {
|
|
329
|
-
console.error(result.error);
|
|
330
|
-
console.error("please make sure the security audit document ".concat(createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME, " is in the repository"));
|
|
331
|
-
}
|
|
332
|
-
else {
|
|
333
|
-
console.log((0, evaluateSecurityAudit_1.makeSecurityAuditOverview)(result.value));
|
|
334
|
-
}
|
|
335
|
-
return [2 /*return*/, result];
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
|
-
}); }));
|
|
339
|
-
return [2 /*return*/];
|
|
239
|
+
async function commandCreate(vorpal) {
|
|
240
|
+
vorpal
|
|
241
|
+
.command("security-audit-create <token> <mainBranch> <projectId> <userId>", `Creates a MR in given project with the latest security audit template document
|
|
242
|
+
|
|
243
|
+
<token> gitlab token with 'api' scopes and permissions to create a new branch
|
|
244
|
+
<main-branch> main branch name
|
|
245
|
+
<project-id> project id to create security audit for
|
|
246
|
+
<user-id> gitlab user id that will be assignee of the audit
|
|
247
|
+
`)
|
|
248
|
+
.action(resultAsExitCode(async (args) => {
|
|
249
|
+
const { token, mainBranch, projectId, userId } = args;
|
|
250
|
+
const api = new rest_1.Gitlab({
|
|
251
|
+
host: GITLAB_HOST,
|
|
252
|
+
token,
|
|
340
253
|
});
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
return __generator(this, function (_a) {
|
|
347
|
-
vorpal
|
|
348
|
-
.command("security-audit-create <token> <mainBranch> <projectId> <userId>", "Creates a MR in given project with the latest security audit template document\n\n<token> gitlab token with 'api' scopes and permissions to create a new branch\n<main-branch> main branch name\n<project-id> project id to create security audit for\n<user-id> gitlab user id that will be assignee of the audit\n")
|
|
349
|
-
.action(resultAsExitCode(function (args) { return __awaiter(_this, void 0, void 0, function () {
|
|
350
|
-
var token, mainBranch, projectId, userId, api, result;
|
|
351
|
-
return __generator(this, function (_a) {
|
|
352
|
-
switch (_a.label) {
|
|
353
|
-
case 0:
|
|
354
|
-
token = args.token, mainBranch = args.mainBranch, projectId = args.projectId, userId = args.userId;
|
|
355
|
-
api = new rest_1.Gitlab({
|
|
356
|
-
host: GITLAB_HOST,
|
|
357
|
-
token: token
|
|
358
|
-
});
|
|
359
|
-
return [4 /*yield*/, (0, createSecurityAuditMergeRequest_1.createSecurityAuditMergeRequest)({
|
|
360
|
-
api: api,
|
|
361
|
-
mainBranch: mainBranch,
|
|
362
|
-
projectId: projectId,
|
|
363
|
-
userId: parseInt(userId)
|
|
364
|
-
})];
|
|
365
|
-
case 1:
|
|
366
|
-
result = _a.sent();
|
|
367
|
-
if (result.isErr()) {
|
|
368
|
-
console.error("could not create security audit merge request: ".concat(result.error));
|
|
369
|
-
}
|
|
370
|
-
else {
|
|
371
|
-
console.log("security audit merge request created successfully");
|
|
372
|
-
console.log("please finish the MR by updating SECURITY.md document: ".concat(result.value.web_url));
|
|
373
|
-
}
|
|
374
|
-
return [2 /*return*/, result];
|
|
375
|
-
}
|
|
376
|
-
});
|
|
377
|
-
}); }));
|
|
378
|
-
return [2 /*return*/];
|
|
254
|
+
const result = await (0, createSecurityAuditMergeRequest_1.createSecurityAuditMergeRequest)({
|
|
255
|
+
api,
|
|
256
|
+
mainBranch,
|
|
257
|
+
projectId,
|
|
258
|
+
userId: parseInt(userId),
|
|
379
259
|
});
|
|
380
|
-
|
|
260
|
+
if (result.isErr()) {
|
|
261
|
+
console.error(`could not create security audit merge request: ${result.error}`);
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
console.log("security audit merge request created successfully");
|
|
265
|
+
console.log(`please finish the MR by updating SECURITY.md document: ${result.value.web_url}`);
|
|
266
|
+
}
|
|
267
|
+
return result;
|
|
268
|
+
}));
|
|
381
269
|
}
|
|
382
270
|
//# sourceMappingURL=commands.js.map
|
|
383
271
|
|
|
384
272
|
/***/ }),
|
|
385
273
|
|
|
386
|
-
/***/
|
|
387
|
-
/***/ (
|
|
274
|
+
/***/ 8933:
|
|
275
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
388
276
|
|
|
389
277
|
"use strict";
|
|
390
278
|
|
|
391
|
-
|
|
392
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
393
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
394
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
395
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
396
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
397
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
398
|
-
});
|
|
399
|
-
};
|
|
400
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
401
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
402
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
403
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
404
|
-
function step(op) {
|
|
405
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
406
|
-
while (_) try {
|
|
407
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
408
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
409
|
-
switch (op[0]) {
|
|
410
|
-
case 0: case 1: t = op; break;
|
|
411
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
412
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
413
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
414
|
-
default:
|
|
415
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
416
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
417
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
418
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
419
|
-
if (t[2]) _.ops.pop();
|
|
420
|
-
_.trys.pop(); continue;
|
|
421
|
-
}
|
|
422
|
-
op = body.call(thisArg, _);
|
|
423
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
424
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
exports.__esModule = true;
|
|
279
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
428
280
|
exports.createSecurityAuditMergeRequest = exports.SECURITY_AUDIT_FILE_NAME = void 0;
|
|
429
|
-
|
|
430
|
-
|
|
281
|
+
const ts_results_es_1 = __nccwpck_require__(2807);
|
|
282
|
+
const auditDocument_1 = __nccwpck_require__(2488);
|
|
431
283
|
function makeDatedBranchName(branchName) {
|
|
432
|
-
|
|
433
|
-
return
|
|
284
|
+
const date = new Date().toISOString().slice(0, -5).replaceAll(/[:.T]/g, "-");
|
|
285
|
+
return `${branchName}-${date}`;
|
|
434
286
|
}
|
|
435
|
-
|
|
287
|
+
const MR_TITLE = "Draft: chore(security): add security audit document";
|
|
436
288
|
exports.SECURITY_AUDIT_FILE_NAME = "SECURITY.md";
|
|
437
|
-
function createSecurityAuditMergeRequest(
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
existingMr = mrs.value[0];
|
|
455
|
-
if (existingMr)
|
|
456
|
-
return [2 /*return*/, (0, ts_results_es_1.Err)("open merge request with security audit already exists: ".concat(existingMr.web_url))];
|
|
457
|
-
auditTemplate = ts_results_es_1.Result.wrap(function () { return (0, auditDocument_1.makeTemplate)(); }).mapErr(function () { return "could not make security audit template document"; });
|
|
458
|
-
if (auditTemplate.isErr())
|
|
459
|
-
return [2 /*return*/, auditTemplate];
|
|
460
|
-
return [4 /*yield*/, ts_results_es_1.Result.wrapAsync(function () {
|
|
461
|
-
return api.Branches.create(projectId, makeDatedBranchName("chore/security-audit"), mainBranch);
|
|
462
|
-
})];
|
|
463
|
-
case 2:
|
|
464
|
-
branch = (_b.sent()).mapErr(function (e) {
|
|
465
|
-
console.log(e);
|
|
466
|
-
return "could not create branch";
|
|
467
|
-
});
|
|
468
|
-
if (branch.isErr())
|
|
469
|
-
return [2 /*return*/, branch];
|
|
470
|
-
return [4 /*yield*/, ts_results_es_1.Result.wrapAsync(function () {
|
|
471
|
-
return api.Commits.create(projectId, branch.value.name, "chore(security): add empty security audit document template", [
|
|
472
|
-
{
|
|
473
|
-
action: "create",
|
|
474
|
-
filePath: exports.SECURITY_AUDIT_FILE_NAME,
|
|
475
|
-
content: auditTemplate.value,
|
|
476
|
-
encoding: "text"
|
|
477
|
-
},
|
|
478
|
-
]);
|
|
479
|
-
})];
|
|
480
|
-
case 3:
|
|
481
|
-
commit = (_b.sent()).mapErr(function () { return "could not create commit"; });
|
|
482
|
-
if (commit.isErr())
|
|
483
|
-
return [2 /*return*/, commit];
|
|
484
|
-
return [4 /*yield*/, ts_results_es_1.Result.wrapAsync(function () {
|
|
485
|
-
return api.MergeRequests.create(projectId, branch.value.name, mainBranch, MR_TITLE, {
|
|
486
|
-
description: "Please follow and update security audit document in `".concat(exports.SECURITY_AUDIT_FILE_NAME, "`."),
|
|
487
|
-
assigneeId: userId,
|
|
488
|
-
squash: true,
|
|
489
|
-
labels: "security-audit",
|
|
490
|
-
removeSourceBranch: true
|
|
491
|
-
});
|
|
492
|
-
})];
|
|
493
|
-
case 4:
|
|
494
|
-
mr = (_b.sent()).mapErr(function () { return "could not create merge request"; });
|
|
495
|
-
return [2 /*return*/, mr];
|
|
496
|
-
}
|
|
497
|
-
});
|
|
289
|
+
async function createSecurityAuditMergeRequest({ projectId, mainBranch, userId, api, }) {
|
|
290
|
+
const mrs = (await ts_results_es_1.Result.wrapAsync(() => api.MergeRequests.all({
|
|
291
|
+
state: "opened",
|
|
292
|
+
wip: "yes",
|
|
293
|
+
labels: "security-audit",
|
|
294
|
+
}))).mapErr(() => `could not search for existing merge requests`);
|
|
295
|
+
if (mrs.isErr())
|
|
296
|
+
return mrs;
|
|
297
|
+
const existingMr = mrs.value[0];
|
|
298
|
+
if (existingMr)
|
|
299
|
+
return (0, ts_results_es_1.Err)(`open merge request with security audit already exists: ${existingMr.web_url}`);
|
|
300
|
+
const auditTemplate = ts_results_es_1.Result.wrap(() => (0, auditDocument_1.makeTemplate)()).mapErr(() => "could not make security audit template document");
|
|
301
|
+
if (auditTemplate.isErr())
|
|
302
|
+
return auditTemplate;
|
|
303
|
+
const branch = (await ts_results_es_1.Result.wrapAsync(() => api.Branches.create(projectId, makeDatedBranchName("chore/security-audit"), mainBranch))).mapErr((e) => {
|
|
304
|
+
console.log(e);
|
|
305
|
+
return "could not create branch";
|
|
498
306
|
});
|
|
307
|
+
if (branch.isErr())
|
|
308
|
+
return branch;
|
|
309
|
+
const commit = (await ts_results_es_1.Result.wrapAsync(() => api.Commits.create(projectId, branch.value.name, "chore(security): add empty security audit document template", [
|
|
310
|
+
{
|
|
311
|
+
action: "create",
|
|
312
|
+
filePath: exports.SECURITY_AUDIT_FILE_NAME,
|
|
313
|
+
content: auditTemplate.value,
|
|
314
|
+
encoding: "text",
|
|
315
|
+
},
|
|
316
|
+
]))).mapErr(() => "could not create commit");
|
|
317
|
+
if (commit.isErr())
|
|
318
|
+
return commit;
|
|
319
|
+
const mr = (await ts_results_es_1.Result.wrapAsync(() => api.MergeRequests.create(projectId, branch.value.name, mainBranch, MR_TITLE, {
|
|
320
|
+
description: `Please follow and update security audit document in \`${exports.SECURITY_AUDIT_FILE_NAME}\`.`,
|
|
321
|
+
assigneeId: userId,
|
|
322
|
+
squash: true,
|
|
323
|
+
labels: "security-audit",
|
|
324
|
+
removeSourceBranch: true,
|
|
325
|
+
}))).mapErr(() => "could not create merge request");
|
|
326
|
+
return mr;
|
|
499
327
|
}
|
|
500
328
|
exports.createSecurityAuditMergeRequest = createSecurityAuditMergeRequest;
|
|
501
329
|
//# sourceMappingURL=createSecurityAuditMergeRequest.js.map
|
|
502
330
|
|
|
503
331
|
/***/ }),
|
|
504
332
|
|
|
505
|
-
/***/
|
|
506
|
-
/***/ (
|
|
333
|
+
/***/ 6725:
|
|
334
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
507
335
|
|
|
508
336
|
"use strict";
|
|
509
337
|
|
|
510
|
-
|
|
511
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
512
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
513
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
514
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
515
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
516
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
517
|
-
});
|
|
518
|
-
};
|
|
519
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
520
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
521
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
522
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
523
|
-
function step(op) {
|
|
524
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
525
|
-
while (_) try {
|
|
526
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
527
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
528
|
-
switch (op[0]) {
|
|
529
|
-
case 0: case 1: t = op; break;
|
|
530
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
531
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
532
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
533
|
-
default:
|
|
534
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
535
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
536
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
537
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
538
|
-
if (t[2]) _.ops.pop();
|
|
539
|
-
_.trys.pop(); continue;
|
|
540
|
-
}
|
|
541
|
-
op = body.call(thisArg, _);
|
|
542
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
543
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
exports.__esModule = true;
|
|
338
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
547
339
|
exports.makeSecurityAuditOverview = exports.evaluateSecurityAudit = void 0;
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
function evaluateSecurityAudit(
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
var filePath, docData, doc;
|
|
561
|
-
return __generator(this, function (_a) {
|
|
562
|
-
switch (_a.label) {
|
|
563
|
-
case 0:
|
|
564
|
-
filePath = (0, path_1.join)(path, createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME);
|
|
565
|
-
return [4 /*yield*/, (0, promises_1.readFile)(filePath)];
|
|
566
|
-
case 1:
|
|
567
|
-
docData = _a.sent();
|
|
568
|
-
doc = docData.toString("utf-8");
|
|
569
|
-
return [2 /*return*/, (0, auditDocument_1.evaluateDocument)(doc)];
|
|
570
|
-
}
|
|
571
|
-
});
|
|
572
|
-
}); })];
|
|
573
|
-
case 1: return [2 /*return*/, (_b.sent()).mapErr(function (e) { return "could not evaluate ".concat(createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME, ": ").concat(e); })];
|
|
574
|
-
}
|
|
575
|
-
});
|
|
576
|
-
});
|
|
340
|
+
const ts_results_es_1 = __nccwpck_require__(2807);
|
|
341
|
+
const path_1 = __nccwpck_require__(1017);
|
|
342
|
+
const promises_1 = __nccwpck_require__(3292);
|
|
343
|
+
const createSecurityAuditMergeRequest_1 = __nccwpck_require__(8933);
|
|
344
|
+
const auditDocument_1 = __nccwpck_require__(2488);
|
|
345
|
+
async function evaluateSecurityAudit({ path }) {
|
|
346
|
+
return (await ts_results_es_1.Result.wrapAsync(async () => {
|
|
347
|
+
const filePath = (0, path_1.join)(path, createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME);
|
|
348
|
+
const docData = await (0, promises_1.readFile)(filePath);
|
|
349
|
+
const doc = docData.toString("utf-8");
|
|
350
|
+
return (0, auditDocument_1.evaluateDocument)(doc);
|
|
351
|
+
})).mapErr((e) => `could not evaluate ${createSecurityAuditMergeRequest_1.SECURITY_AUDIT_FILE_NAME}: ${e}`);
|
|
577
352
|
}
|
|
578
353
|
exports.evaluateSecurityAudit = evaluateSecurityAudit;
|
|
579
354
|
function makeSecurityAuditOverview(evaluation) {
|
|
580
|
-
|
|
581
|
-
return
|
|
355
|
+
const ratingToEmo = (r) => (r < 33 ? "🟥" : r < 66 ? "🟨" : "🟩");
|
|
356
|
+
return `Project security posture overview:
|
|
357
|
+
🧐 Total topics: ${evaluation.score.totalTopics}
|
|
358
|
+
🔒 Secured topics: ${evaluation.score.securedTopics}
|
|
359
|
+
📢 Answered topics: ${evaluation.score.answeredTopics}
|
|
360
|
+
❔ Unknown topics: ${evaluation.score.unknownTopics}
|
|
361
|
+
📊 Rating: ${ratingToEmo(evaluation.score.rating)} ${evaluation.score.rating}/100`;
|
|
582
362
|
}
|
|
583
363
|
exports.makeSecurityAuditOverview = makeSecurityAuditOverview;
|
|
584
364
|
//# sourceMappingURL=evaluateSecurityAudit.js.map
|
|
585
365
|
|
|
586
366
|
/***/ }),
|
|
587
367
|
|
|
588
|
-
/***/
|
|
589
|
-
/***/ ((__unused_webpack_module, exports
|
|
368
|
+
/***/ 2260:
|
|
369
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
590
370
|
|
|
591
371
|
"use strict";
|
|
592
372
|
|
|
593
|
-
|
|
594
|
-
//
|
|
595
|
-
|
|
373
|
+
// we can't import the package.json directly, because the bundling process will inline it
|
|
374
|
+
// but the version is only set during deployement, when its already bundled
|
|
375
|
+
// instead we need to use require.main.path to get the path of the main module, which is actually the file in the bin
|
|
376
|
+
// this will point to the root package.json
|
|
377
|
+
var _a;
|
|
378
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
379
|
+
const path = ((_a = require.main) === null || _a === void 0 ? void 0 : _a.path) + "/../package.json";
|
|
380
|
+
const ownPkg = require(path);
|
|
596
381
|
exports["default"] = ownPkg;
|
|
597
382
|
//# sourceMappingURL=packageInfos.js.map
|
|
598
383
|
|
|
599
384
|
/***/ }),
|
|
600
385
|
|
|
601
|
-
/***/
|
|
386
|
+
/***/ 4007:
|
|
602
387
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
603
388
|
|
|
604
389
|
"use strict";
|
|
@@ -10590,7 +10375,7 @@ exports.wrapOutput = (input, state = {}, options = {}) => {
|
|
|
10590
10375
|
"use strict";
|
|
10591
10376
|
|
|
10592
10377
|
|
|
10593
|
-
var CORE = __nccwpck_require__(
|
|
10378
|
+
var CORE = __nccwpck_require__(4007);
|
|
10594
10379
|
var requesterUtils = __nccwpck_require__(5024);
|
|
10595
10380
|
|
|
10596
10381
|
function _interopNamespace(e) {
|
|
@@ -11094,6 +10879,18 @@ exports.UserStarredMetricsDashboard = UserStarredMetricsDashboard;
|
|
|
11094
10879
|
exports.Users = Users;
|
|
11095
10880
|
|
|
11096
10881
|
|
|
10882
|
+
/***/ }),
|
|
10883
|
+
|
|
10884
|
+
/***/ 5067:
|
|
10885
|
+
/***/ ((module) => {
|
|
10886
|
+
|
|
10887
|
+
"use strict";
|
|
10888
|
+
|
|
10889
|
+
module.exports = function () {
|
|
10890
|
+
return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
|
|
10891
|
+
};
|
|
10892
|
+
|
|
10893
|
+
|
|
11097
10894
|
/***/ }),
|
|
11098
10895
|
|
|
11099
10896
|
/***/ 7018:
|
|
@@ -12981,7 +12778,7 @@ exports.flatten = (...args) => {
|
|
|
12981
12778
|
"use strict";
|
|
12982
12779
|
|
|
12983
12780
|
|
|
12984
|
-
var GetIntrinsic = __nccwpck_require__(
|
|
12781
|
+
var GetIntrinsic = __nccwpck_require__(62);
|
|
12985
12782
|
|
|
12986
12783
|
var callBind = __nccwpck_require__(3398);
|
|
12987
12784
|
|
|
@@ -13004,8 +12801,8 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
13004
12801
|
"use strict";
|
|
13005
12802
|
|
|
13006
12803
|
|
|
13007
|
-
var bind = __nccwpck_require__(
|
|
13008
|
-
var GetIntrinsic = __nccwpck_require__(
|
|
12804
|
+
var bind = __nccwpck_require__(5039);
|
|
12805
|
+
var GetIntrinsic = __nccwpck_require__(62);
|
|
13009
12806
|
|
|
13010
12807
|
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
13011
12808
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
@@ -13051,6 +12848,488 @@ if ($defineProperty) {
|
|
|
13051
12848
|
}
|
|
13052
12849
|
|
|
13053
12850
|
|
|
12851
|
+
/***/ }),
|
|
12852
|
+
|
|
12853
|
+
/***/ 1450:
|
|
12854
|
+
/***/ ((module) => {
|
|
12855
|
+
|
|
12856
|
+
"use strict";
|
|
12857
|
+
|
|
12858
|
+
|
|
12859
|
+
/* eslint no-invalid-this: 1 */
|
|
12860
|
+
|
|
12861
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
12862
|
+
var slice = Array.prototype.slice;
|
|
12863
|
+
var toStr = Object.prototype.toString;
|
|
12864
|
+
var funcType = '[object Function]';
|
|
12865
|
+
|
|
12866
|
+
module.exports = function bind(that) {
|
|
12867
|
+
var target = this;
|
|
12868
|
+
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
|
|
12869
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
12870
|
+
}
|
|
12871
|
+
var args = slice.call(arguments, 1);
|
|
12872
|
+
|
|
12873
|
+
var bound;
|
|
12874
|
+
var binder = function () {
|
|
12875
|
+
if (this instanceof bound) {
|
|
12876
|
+
var result = target.apply(
|
|
12877
|
+
this,
|
|
12878
|
+
args.concat(slice.call(arguments))
|
|
12879
|
+
);
|
|
12880
|
+
if (Object(result) === result) {
|
|
12881
|
+
return result;
|
|
12882
|
+
}
|
|
12883
|
+
return this;
|
|
12884
|
+
} else {
|
|
12885
|
+
return target.apply(
|
|
12886
|
+
that,
|
|
12887
|
+
args.concat(slice.call(arguments))
|
|
12888
|
+
);
|
|
12889
|
+
}
|
|
12890
|
+
};
|
|
12891
|
+
|
|
12892
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
12893
|
+
var boundArgs = [];
|
|
12894
|
+
for (var i = 0; i < boundLength; i++) {
|
|
12895
|
+
boundArgs.push('$' + i);
|
|
12896
|
+
}
|
|
12897
|
+
|
|
12898
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
12899
|
+
|
|
12900
|
+
if (target.prototype) {
|
|
12901
|
+
var Empty = function Empty() {};
|
|
12902
|
+
Empty.prototype = target.prototype;
|
|
12903
|
+
bound.prototype = new Empty();
|
|
12904
|
+
Empty.prototype = null;
|
|
12905
|
+
}
|
|
12906
|
+
|
|
12907
|
+
return bound;
|
|
12908
|
+
};
|
|
12909
|
+
|
|
12910
|
+
|
|
12911
|
+
/***/ }),
|
|
12912
|
+
|
|
12913
|
+
/***/ 5039:
|
|
12914
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
12915
|
+
|
|
12916
|
+
"use strict";
|
|
12917
|
+
|
|
12918
|
+
|
|
12919
|
+
var implementation = __nccwpck_require__(1450);
|
|
12920
|
+
|
|
12921
|
+
module.exports = Function.prototype.bind || implementation;
|
|
12922
|
+
|
|
12923
|
+
|
|
12924
|
+
/***/ }),
|
|
12925
|
+
|
|
12926
|
+
/***/ 62:
|
|
12927
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
12928
|
+
|
|
12929
|
+
"use strict";
|
|
12930
|
+
|
|
12931
|
+
|
|
12932
|
+
var undefined;
|
|
12933
|
+
|
|
12934
|
+
var $SyntaxError = SyntaxError;
|
|
12935
|
+
var $Function = Function;
|
|
12936
|
+
var $TypeError = TypeError;
|
|
12937
|
+
|
|
12938
|
+
// eslint-disable-next-line consistent-return
|
|
12939
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
12940
|
+
try {
|
|
12941
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
12942
|
+
} catch (e) {}
|
|
12943
|
+
};
|
|
12944
|
+
|
|
12945
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
12946
|
+
if ($gOPD) {
|
|
12947
|
+
try {
|
|
12948
|
+
$gOPD({}, '');
|
|
12949
|
+
} catch (e) {
|
|
12950
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
12951
|
+
}
|
|
12952
|
+
}
|
|
12953
|
+
|
|
12954
|
+
var throwTypeError = function () {
|
|
12955
|
+
throw new $TypeError();
|
|
12956
|
+
};
|
|
12957
|
+
var ThrowTypeError = $gOPD
|
|
12958
|
+
? (function () {
|
|
12959
|
+
try {
|
|
12960
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
12961
|
+
arguments.callee; // IE 8 does not throw here
|
|
12962
|
+
return throwTypeError;
|
|
12963
|
+
} catch (calleeThrows) {
|
|
12964
|
+
try {
|
|
12965
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
12966
|
+
return $gOPD(arguments, 'callee').get;
|
|
12967
|
+
} catch (gOPDthrows) {
|
|
12968
|
+
return throwTypeError;
|
|
12969
|
+
}
|
|
12970
|
+
}
|
|
12971
|
+
}())
|
|
12972
|
+
: throwTypeError;
|
|
12973
|
+
|
|
12974
|
+
var hasSymbols = __nccwpck_require__(9340)();
|
|
12975
|
+
|
|
12976
|
+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
12977
|
+
|
|
12978
|
+
var needsEval = {};
|
|
12979
|
+
|
|
12980
|
+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
12981
|
+
|
|
12982
|
+
var INTRINSICS = {
|
|
12983
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
12984
|
+
'%Array%': Array,
|
|
12985
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
12986
|
+
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
12987
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
12988
|
+
'%AsyncFunction%': needsEval,
|
|
12989
|
+
'%AsyncGenerator%': needsEval,
|
|
12990
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
12991
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
12992
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
12993
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
12994
|
+
'%Boolean%': Boolean,
|
|
12995
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
12996
|
+
'%Date%': Date,
|
|
12997
|
+
'%decodeURI%': decodeURI,
|
|
12998
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
12999
|
+
'%encodeURI%': encodeURI,
|
|
13000
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
13001
|
+
'%Error%': Error,
|
|
13002
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
13003
|
+
'%EvalError%': EvalError,
|
|
13004
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
13005
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
13006
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
13007
|
+
'%Function%': $Function,
|
|
13008
|
+
'%GeneratorFunction%': needsEval,
|
|
13009
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
13010
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
13011
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
13012
|
+
'%isFinite%': isFinite,
|
|
13013
|
+
'%isNaN%': isNaN,
|
|
13014
|
+
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
13015
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
13016
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
13017
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
13018
|
+
'%Math%': Math,
|
|
13019
|
+
'%Number%': Number,
|
|
13020
|
+
'%Object%': Object,
|
|
13021
|
+
'%parseFloat%': parseFloat,
|
|
13022
|
+
'%parseInt%': parseInt,
|
|
13023
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
13024
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
13025
|
+
'%RangeError%': RangeError,
|
|
13026
|
+
'%ReferenceError%': ReferenceError,
|
|
13027
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
13028
|
+
'%RegExp%': RegExp,
|
|
13029
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
13030
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
13031
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
13032
|
+
'%String%': String,
|
|
13033
|
+
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
13034
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
13035
|
+
'%SyntaxError%': $SyntaxError,
|
|
13036
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
13037
|
+
'%TypedArray%': TypedArray,
|
|
13038
|
+
'%TypeError%': $TypeError,
|
|
13039
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
13040
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
13041
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
13042
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
13043
|
+
'%URIError%': URIError,
|
|
13044
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
13045
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
13046
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
13047
|
+
};
|
|
13048
|
+
|
|
13049
|
+
var doEval = function doEval(name) {
|
|
13050
|
+
var value;
|
|
13051
|
+
if (name === '%AsyncFunction%') {
|
|
13052
|
+
value = getEvalledConstructor('async function () {}');
|
|
13053
|
+
} else if (name === '%GeneratorFunction%') {
|
|
13054
|
+
value = getEvalledConstructor('function* () {}');
|
|
13055
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
13056
|
+
value = getEvalledConstructor('async function* () {}');
|
|
13057
|
+
} else if (name === '%AsyncGenerator%') {
|
|
13058
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
13059
|
+
if (fn) {
|
|
13060
|
+
value = fn.prototype;
|
|
13061
|
+
}
|
|
13062
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
13063
|
+
var gen = doEval('%AsyncGenerator%');
|
|
13064
|
+
if (gen) {
|
|
13065
|
+
value = getProto(gen.prototype);
|
|
13066
|
+
}
|
|
13067
|
+
}
|
|
13068
|
+
|
|
13069
|
+
INTRINSICS[name] = value;
|
|
13070
|
+
|
|
13071
|
+
return value;
|
|
13072
|
+
};
|
|
13073
|
+
|
|
13074
|
+
var LEGACY_ALIASES = {
|
|
13075
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
13076
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
13077
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
13078
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
13079
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
13080
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
13081
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
13082
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
13083
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
13084
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
13085
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
13086
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
13087
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
13088
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
13089
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
13090
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
13091
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
13092
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
13093
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
13094
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
13095
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
13096
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
13097
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
13098
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
13099
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
13100
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
13101
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
13102
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
13103
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
13104
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
13105
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
13106
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
13107
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
13108
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
13109
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
13110
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
13111
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
13112
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
13113
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
13114
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
13115
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
13116
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
13117
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
13118
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
13119
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
13120
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
13121
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
13122
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
13123
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
13124
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
13125
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
13126
|
+
};
|
|
13127
|
+
|
|
13128
|
+
var bind = __nccwpck_require__(5039);
|
|
13129
|
+
var hasOwn = __nccwpck_require__(1558);
|
|
13130
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
13131
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
13132
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
13133
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
13134
|
+
|
|
13135
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
13136
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
13137
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
13138
|
+
var stringToPath = function stringToPath(string) {
|
|
13139
|
+
var first = $strSlice(string, 0, 1);
|
|
13140
|
+
var last = $strSlice(string, -1);
|
|
13141
|
+
if (first === '%' && last !== '%') {
|
|
13142
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
13143
|
+
} else if (last === '%' && first !== '%') {
|
|
13144
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
13145
|
+
}
|
|
13146
|
+
var result = [];
|
|
13147
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
13148
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
13149
|
+
});
|
|
13150
|
+
return result;
|
|
13151
|
+
};
|
|
13152
|
+
/* end adaptation */
|
|
13153
|
+
|
|
13154
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
13155
|
+
var intrinsicName = name;
|
|
13156
|
+
var alias;
|
|
13157
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
13158
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
13159
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
13160
|
+
}
|
|
13161
|
+
|
|
13162
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
13163
|
+
var value = INTRINSICS[intrinsicName];
|
|
13164
|
+
if (value === needsEval) {
|
|
13165
|
+
value = doEval(intrinsicName);
|
|
13166
|
+
}
|
|
13167
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
13168
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
13169
|
+
}
|
|
13170
|
+
|
|
13171
|
+
return {
|
|
13172
|
+
alias: alias,
|
|
13173
|
+
name: intrinsicName,
|
|
13174
|
+
value: value
|
|
13175
|
+
};
|
|
13176
|
+
}
|
|
13177
|
+
|
|
13178
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
13179
|
+
};
|
|
13180
|
+
|
|
13181
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
13182
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
13183
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
13184
|
+
}
|
|
13185
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
13186
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
13187
|
+
}
|
|
13188
|
+
|
|
13189
|
+
var parts = stringToPath(name);
|
|
13190
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
13191
|
+
|
|
13192
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
13193
|
+
var intrinsicRealName = intrinsic.name;
|
|
13194
|
+
var value = intrinsic.value;
|
|
13195
|
+
var skipFurtherCaching = false;
|
|
13196
|
+
|
|
13197
|
+
var alias = intrinsic.alias;
|
|
13198
|
+
if (alias) {
|
|
13199
|
+
intrinsicBaseName = alias[0];
|
|
13200
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
13201
|
+
}
|
|
13202
|
+
|
|
13203
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
13204
|
+
var part = parts[i];
|
|
13205
|
+
var first = $strSlice(part, 0, 1);
|
|
13206
|
+
var last = $strSlice(part, -1);
|
|
13207
|
+
if (
|
|
13208
|
+
(
|
|
13209
|
+
(first === '"' || first === "'" || first === '`')
|
|
13210
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
13211
|
+
)
|
|
13212
|
+
&& first !== last
|
|
13213
|
+
) {
|
|
13214
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
13215
|
+
}
|
|
13216
|
+
if (part === 'constructor' || !isOwn) {
|
|
13217
|
+
skipFurtherCaching = true;
|
|
13218
|
+
}
|
|
13219
|
+
|
|
13220
|
+
intrinsicBaseName += '.' + part;
|
|
13221
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
13222
|
+
|
|
13223
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
13224
|
+
value = INTRINSICS[intrinsicRealName];
|
|
13225
|
+
} else if (value != null) {
|
|
13226
|
+
if (!(part in value)) {
|
|
13227
|
+
if (!allowMissing) {
|
|
13228
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
13229
|
+
}
|
|
13230
|
+
return void undefined;
|
|
13231
|
+
}
|
|
13232
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
13233
|
+
var desc = $gOPD(value, part);
|
|
13234
|
+
isOwn = !!desc;
|
|
13235
|
+
|
|
13236
|
+
// By convention, when a data property is converted to an accessor
|
|
13237
|
+
// property to emulate a data property that does not suffer from
|
|
13238
|
+
// the override mistake, that accessor's getter is marked with
|
|
13239
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
13240
|
+
// uphold the illusion by pretending to see that original data
|
|
13241
|
+
// property, i.e., returning the value rather than the getter
|
|
13242
|
+
// itself.
|
|
13243
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
13244
|
+
value = desc.get;
|
|
13245
|
+
} else {
|
|
13246
|
+
value = value[part];
|
|
13247
|
+
}
|
|
13248
|
+
} else {
|
|
13249
|
+
isOwn = hasOwn(value, part);
|
|
13250
|
+
value = value[part];
|
|
13251
|
+
}
|
|
13252
|
+
|
|
13253
|
+
if (isOwn && !skipFurtherCaching) {
|
|
13254
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
13255
|
+
}
|
|
13256
|
+
}
|
|
13257
|
+
}
|
|
13258
|
+
return value;
|
|
13259
|
+
};
|
|
13260
|
+
|
|
13261
|
+
|
|
13262
|
+
/***/ }),
|
|
13263
|
+
|
|
13264
|
+
/***/ 9340:
|
|
13265
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
13266
|
+
|
|
13267
|
+
"use strict";
|
|
13268
|
+
|
|
13269
|
+
|
|
13270
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
13271
|
+
var hasSymbolSham = __nccwpck_require__(3933);
|
|
13272
|
+
|
|
13273
|
+
module.exports = function hasNativeSymbols() {
|
|
13274
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
13275
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
13276
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
13277
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
13278
|
+
|
|
13279
|
+
return hasSymbolSham();
|
|
13280
|
+
};
|
|
13281
|
+
|
|
13282
|
+
|
|
13283
|
+
/***/ }),
|
|
13284
|
+
|
|
13285
|
+
/***/ 3933:
|
|
13286
|
+
/***/ ((module) => {
|
|
13287
|
+
|
|
13288
|
+
"use strict";
|
|
13289
|
+
|
|
13290
|
+
|
|
13291
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
13292
|
+
module.exports = function hasSymbols() {
|
|
13293
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
13294
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
13295
|
+
|
|
13296
|
+
var obj = {};
|
|
13297
|
+
var sym = Symbol('test');
|
|
13298
|
+
var symObj = Object(sym);
|
|
13299
|
+
if (typeof sym === 'string') { return false; }
|
|
13300
|
+
|
|
13301
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
13302
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
13303
|
+
|
|
13304
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
13305
|
+
// if (sym instanceof Symbol) { return false; }
|
|
13306
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
13307
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
13308
|
+
|
|
13309
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
13310
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
13311
|
+
|
|
13312
|
+
var symVal = 42;
|
|
13313
|
+
obj[sym] = symVal;
|
|
13314
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
13315
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
13316
|
+
|
|
13317
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
13318
|
+
|
|
13319
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
13320
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
13321
|
+
|
|
13322
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
13323
|
+
|
|
13324
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
13325
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
13326
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
13327
|
+
}
|
|
13328
|
+
|
|
13329
|
+
return true;
|
|
13330
|
+
};
|
|
13331
|
+
|
|
13332
|
+
|
|
13054
13333
|
/***/ }),
|
|
13055
13334
|
|
|
13056
13335
|
/***/ 2701:
|
|
@@ -22166,25 +22445,6 @@ __nccwpck_require__(497);
|
|
|
22166
22445
|
module.exports = __nccwpck_require__(1157);
|
|
22167
22446
|
|
|
22168
22447
|
|
|
22169
|
-
/***/ }),
|
|
22170
|
-
|
|
22171
|
-
/***/ 1369:
|
|
22172
|
-
/***/ ((module) => {
|
|
22173
|
-
|
|
22174
|
-
"use strict";
|
|
22175
|
-
|
|
22176
|
-
|
|
22177
|
-
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
22178
|
-
|
|
22179
|
-
module.exports = function (str) {
|
|
22180
|
-
if (typeof str !== 'string') {
|
|
22181
|
-
throw new TypeError('Expected a string');
|
|
22182
|
-
}
|
|
22183
|
-
|
|
22184
|
-
return str.replace(matchOperatorsRe, '\\$&');
|
|
22185
|
-
};
|
|
22186
|
-
|
|
22187
|
-
|
|
22188
22448
|
/***/ }),
|
|
22189
22449
|
|
|
22190
22450
|
/***/ 4793:
|
|
@@ -22231,7 +22491,7 @@ module.exports = function (cb) {
|
|
|
22231
22491
|
"use strict";
|
|
22232
22492
|
|
|
22233
22493
|
var objectAssign = __nccwpck_require__(1756);
|
|
22234
|
-
var escapeStringRegexp = __nccwpck_require__(
|
|
22494
|
+
var escapeStringRegexp = __nccwpck_require__(7043);
|
|
22235
22495
|
var platform = process.platform;
|
|
22236
22496
|
|
|
22237
22497
|
var main = {
|
|
@@ -22378,6 +22638,25 @@ var fn = function (str) {
|
|
|
22378
22638
|
module.exports = objectAssign(fn, figures);
|
|
22379
22639
|
|
|
22380
22640
|
|
|
22641
|
+
/***/ }),
|
|
22642
|
+
|
|
22643
|
+
/***/ 7043:
|
|
22644
|
+
/***/ ((module) => {
|
|
22645
|
+
|
|
22646
|
+
"use strict";
|
|
22647
|
+
|
|
22648
|
+
|
|
22649
|
+
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
22650
|
+
|
|
22651
|
+
module.exports = function (str) {
|
|
22652
|
+
if (typeof str !== 'string') {
|
|
22653
|
+
throw new TypeError('Expected a string');
|
|
22654
|
+
}
|
|
22655
|
+
|
|
22656
|
+
return str.replace(matchOperatorsRe, '\\$&');
|
|
22657
|
+
};
|
|
22658
|
+
|
|
22659
|
+
|
|
22381
22660
|
/***/ }),
|
|
22382
22661
|
|
|
22383
22662
|
/***/ 8191:
|
|
@@ -22637,7 +22916,19 @@ module.exports = fill;
|
|
|
22637
22916
|
|
|
22638
22917
|
/***/ }),
|
|
22639
22918
|
|
|
22640
|
-
/***/
|
|
22919
|
+
/***/ 1098:
|
|
22920
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
22921
|
+
|
|
22922
|
+
"use strict";
|
|
22923
|
+
|
|
22924
|
+
var ansiRegex = __nccwpck_require__(5067);
|
|
22925
|
+
var re = new RegExp(ansiRegex().source); // remove the `g` flag
|
|
22926
|
+
module.exports = re.test.bind(re);
|
|
22927
|
+
|
|
22928
|
+
|
|
22929
|
+
/***/ }),
|
|
22930
|
+
|
|
22931
|
+
/***/ 6324:
|
|
22641
22932
|
/***/ ((module) => {
|
|
22642
22933
|
|
|
22643
22934
|
"use strict";
|
|
@@ -22697,450 +22988,17 @@ module.exports = function bind(that) {
|
|
|
22697
22988
|
|
|
22698
22989
|
/***/ }),
|
|
22699
22990
|
|
|
22700
|
-
/***/
|
|
22991
|
+
/***/ 2025:
|
|
22701
22992
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
22702
22993
|
|
|
22703
22994
|
"use strict";
|
|
22704
22995
|
|
|
22705
22996
|
|
|
22706
|
-
var implementation = __nccwpck_require__(
|
|
22997
|
+
var implementation = __nccwpck_require__(6324);
|
|
22707
22998
|
|
|
22708
22999
|
module.exports = Function.prototype.bind || implementation;
|
|
22709
23000
|
|
|
22710
23001
|
|
|
22711
|
-
/***/ }),
|
|
22712
|
-
|
|
22713
|
-
/***/ 7603:
|
|
22714
|
-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
22715
|
-
|
|
22716
|
-
"use strict";
|
|
22717
|
-
|
|
22718
|
-
|
|
22719
|
-
var undefined;
|
|
22720
|
-
|
|
22721
|
-
var $SyntaxError = SyntaxError;
|
|
22722
|
-
var $Function = Function;
|
|
22723
|
-
var $TypeError = TypeError;
|
|
22724
|
-
|
|
22725
|
-
// eslint-disable-next-line consistent-return
|
|
22726
|
-
var getEvalledConstructor = function (expressionSyntax) {
|
|
22727
|
-
try {
|
|
22728
|
-
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
22729
|
-
} catch (e) {}
|
|
22730
|
-
};
|
|
22731
|
-
|
|
22732
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
22733
|
-
if ($gOPD) {
|
|
22734
|
-
try {
|
|
22735
|
-
$gOPD({}, '');
|
|
22736
|
-
} catch (e) {
|
|
22737
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
22738
|
-
}
|
|
22739
|
-
}
|
|
22740
|
-
|
|
22741
|
-
var throwTypeError = function () {
|
|
22742
|
-
throw new $TypeError();
|
|
22743
|
-
};
|
|
22744
|
-
var ThrowTypeError = $gOPD
|
|
22745
|
-
? (function () {
|
|
22746
|
-
try {
|
|
22747
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
22748
|
-
arguments.callee; // IE 8 does not throw here
|
|
22749
|
-
return throwTypeError;
|
|
22750
|
-
} catch (calleeThrows) {
|
|
22751
|
-
try {
|
|
22752
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
22753
|
-
return $gOPD(arguments, 'callee').get;
|
|
22754
|
-
} catch (gOPDthrows) {
|
|
22755
|
-
return throwTypeError;
|
|
22756
|
-
}
|
|
22757
|
-
}
|
|
22758
|
-
}())
|
|
22759
|
-
: throwTypeError;
|
|
22760
|
-
|
|
22761
|
-
var hasSymbols = __nccwpck_require__(5132)();
|
|
22762
|
-
|
|
22763
|
-
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
22764
|
-
|
|
22765
|
-
var needsEval = {};
|
|
22766
|
-
|
|
22767
|
-
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
22768
|
-
|
|
22769
|
-
var INTRINSICS = {
|
|
22770
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
22771
|
-
'%Array%': Array,
|
|
22772
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
22773
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
22774
|
-
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
22775
|
-
'%AsyncFunction%': needsEval,
|
|
22776
|
-
'%AsyncGenerator%': needsEval,
|
|
22777
|
-
'%AsyncGeneratorFunction%': needsEval,
|
|
22778
|
-
'%AsyncIteratorPrototype%': needsEval,
|
|
22779
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
22780
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
22781
|
-
'%Boolean%': Boolean,
|
|
22782
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
22783
|
-
'%Date%': Date,
|
|
22784
|
-
'%decodeURI%': decodeURI,
|
|
22785
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
22786
|
-
'%encodeURI%': encodeURI,
|
|
22787
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
22788
|
-
'%Error%': Error,
|
|
22789
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
22790
|
-
'%EvalError%': EvalError,
|
|
22791
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
22792
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
22793
|
-
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
22794
|
-
'%Function%': $Function,
|
|
22795
|
-
'%GeneratorFunction%': needsEval,
|
|
22796
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
22797
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
22798
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
22799
|
-
'%isFinite%': isFinite,
|
|
22800
|
-
'%isNaN%': isNaN,
|
|
22801
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
22802
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
22803
|
-
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
22804
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
22805
|
-
'%Math%': Math,
|
|
22806
|
-
'%Number%': Number,
|
|
22807
|
-
'%Object%': Object,
|
|
22808
|
-
'%parseFloat%': parseFloat,
|
|
22809
|
-
'%parseInt%': parseInt,
|
|
22810
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
22811
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
22812
|
-
'%RangeError%': RangeError,
|
|
22813
|
-
'%ReferenceError%': ReferenceError,
|
|
22814
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
22815
|
-
'%RegExp%': RegExp,
|
|
22816
|
-
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
22817
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
22818
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
22819
|
-
'%String%': String,
|
|
22820
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
22821
|
-
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
22822
|
-
'%SyntaxError%': $SyntaxError,
|
|
22823
|
-
'%ThrowTypeError%': ThrowTypeError,
|
|
22824
|
-
'%TypedArray%': TypedArray,
|
|
22825
|
-
'%TypeError%': $TypeError,
|
|
22826
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
22827
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
22828
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
22829
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
22830
|
-
'%URIError%': URIError,
|
|
22831
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
22832
|
-
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
22833
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
22834
|
-
};
|
|
22835
|
-
|
|
22836
|
-
var doEval = function doEval(name) {
|
|
22837
|
-
var value;
|
|
22838
|
-
if (name === '%AsyncFunction%') {
|
|
22839
|
-
value = getEvalledConstructor('async function () {}');
|
|
22840
|
-
} else if (name === '%GeneratorFunction%') {
|
|
22841
|
-
value = getEvalledConstructor('function* () {}');
|
|
22842
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
22843
|
-
value = getEvalledConstructor('async function* () {}');
|
|
22844
|
-
} else if (name === '%AsyncGenerator%') {
|
|
22845
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
22846
|
-
if (fn) {
|
|
22847
|
-
value = fn.prototype;
|
|
22848
|
-
}
|
|
22849
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
22850
|
-
var gen = doEval('%AsyncGenerator%');
|
|
22851
|
-
if (gen) {
|
|
22852
|
-
value = getProto(gen.prototype);
|
|
22853
|
-
}
|
|
22854
|
-
}
|
|
22855
|
-
|
|
22856
|
-
INTRINSICS[name] = value;
|
|
22857
|
-
|
|
22858
|
-
return value;
|
|
22859
|
-
};
|
|
22860
|
-
|
|
22861
|
-
var LEGACY_ALIASES = {
|
|
22862
|
-
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
22863
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
22864
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
22865
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
22866
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
22867
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
22868
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
22869
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
22870
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
22871
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
22872
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
22873
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
22874
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
22875
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
22876
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
22877
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
22878
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
22879
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
22880
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
22881
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
22882
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
22883
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
22884
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
22885
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
22886
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
22887
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
22888
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
22889
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
22890
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
22891
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
22892
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
22893
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
22894
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
22895
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
22896
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
22897
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
22898
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
22899
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
22900
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
22901
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
22902
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
22903
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
22904
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
22905
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
22906
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
22907
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
22908
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
22909
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
22910
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
22911
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
22912
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
22913
|
-
};
|
|
22914
|
-
|
|
22915
|
-
var bind = __nccwpck_require__(5887);
|
|
22916
|
-
var hasOwn = __nccwpck_require__(1558);
|
|
22917
|
-
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
22918
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
22919
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
22920
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
22921
|
-
|
|
22922
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
22923
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
22924
|
-
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
22925
|
-
var stringToPath = function stringToPath(string) {
|
|
22926
|
-
var first = $strSlice(string, 0, 1);
|
|
22927
|
-
var last = $strSlice(string, -1);
|
|
22928
|
-
if (first === '%' && last !== '%') {
|
|
22929
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
22930
|
-
} else if (last === '%' && first !== '%') {
|
|
22931
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
22932
|
-
}
|
|
22933
|
-
var result = [];
|
|
22934
|
-
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
22935
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
22936
|
-
});
|
|
22937
|
-
return result;
|
|
22938
|
-
};
|
|
22939
|
-
/* end adaptation */
|
|
22940
|
-
|
|
22941
|
-
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
22942
|
-
var intrinsicName = name;
|
|
22943
|
-
var alias;
|
|
22944
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
22945
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
22946
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
22947
|
-
}
|
|
22948
|
-
|
|
22949
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
22950
|
-
var value = INTRINSICS[intrinsicName];
|
|
22951
|
-
if (value === needsEval) {
|
|
22952
|
-
value = doEval(intrinsicName);
|
|
22953
|
-
}
|
|
22954
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
22955
|
-
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
22956
|
-
}
|
|
22957
|
-
|
|
22958
|
-
return {
|
|
22959
|
-
alias: alias,
|
|
22960
|
-
name: intrinsicName,
|
|
22961
|
-
value: value
|
|
22962
|
-
};
|
|
22963
|
-
}
|
|
22964
|
-
|
|
22965
|
-
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
22966
|
-
};
|
|
22967
|
-
|
|
22968
|
-
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
22969
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
22970
|
-
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
22971
|
-
}
|
|
22972
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
22973
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
22974
|
-
}
|
|
22975
|
-
|
|
22976
|
-
var parts = stringToPath(name);
|
|
22977
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
22978
|
-
|
|
22979
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
22980
|
-
var intrinsicRealName = intrinsic.name;
|
|
22981
|
-
var value = intrinsic.value;
|
|
22982
|
-
var skipFurtherCaching = false;
|
|
22983
|
-
|
|
22984
|
-
var alias = intrinsic.alias;
|
|
22985
|
-
if (alias) {
|
|
22986
|
-
intrinsicBaseName = alias[0];
|
|
22987
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
22988
|
-
}
|
|
22989
|
-
|
|
22990
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
22991
|
-
var part = parts[i];
|
|
22992
|
-
var first = $strSlice(part, 0, 1);
|
|
22993
|
-
var last = $strSlice(part, -1);
|
|
22994
|
-
if (
|
|
22995
|
-
(
|
|
22996
|
-
(first === '"' || first === "'" || first === '`')
|
|
22997
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
22998
|
-
)
|
|
22999
|
-
&& first !== last
|
|
23000
|
-
) {
|
|
23001
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
23002
|
-
}
|
|
23003
|
-
if (part === 'constructor' || !isOwn) {
|
|
23004
|
-
skipFurtherCaching = true;
|
|
23005
|
-
}
|
|
23006
|
-
|
|
23007
|
-
intrinsicBaseName += '.' + part;
|
|
23008
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
23009
|
-
|
|
23010
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
23011
|
-
value = INTRINSICS[intrinsicRealName];
|
|
23012
|
-
} else if (value != null) {
|
|
23013
|
-
if (!(part in value)) {
|
|
23014
|
-
if (!allowMissing) {
|
|
23015
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
23016
|
-
}
|
|
23017
|
-
return void undefined;
|
|
23018
|
-
}
|
|
23019
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
23020
|
-
var desc = $gOPD(value, part);
|
|
23021
|
-
isOwn = !!desc;
|
|
23022
|
-
|
|
23023
|
-
// By convention, when a data property is converted to an accessor
|
|
23024
|
-
// property to emulate a data property that does not suffer from
|
|
23025
|
-
// the override mistake, that accessor's getter is marked with
|
|
23026
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
23027
|
-
// uphold the illusion by pretending to see that original data
|
|
23028
|
-
// property, i.e., returning the value rather than the getter
|
|
23029
|
-
// itself.
|
|
23030
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
23031
|
-
value = desc.get;
|
|
23032
|
-
} else {
|
|
23033
|
-
value = value[part];
|
|
23034
|
-
}
|
|
23035
|
-
} else {
|
|
23036
|
-
isOwn = hasOwn(value, part);
|
|
23037
|
-
value = value[part];
|
|
23038
|
-
}
|
|
23039
|
-
|
|
23040
|
-
if (isOwn && !skipFurtherCaching) {
|
|
23041
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
23042
|
-
}
|
|
23043
|
-
}
|
|
23044
|
-
}
|
|
23045
|
-
return value;
|
|
23046
|
-
};
|
|
23047
|
-
|
|
23048
|
-
|
|
23049
|
-
/***/ }),
|
|
23050
|
-
|
|
23051
|
-
/***/ 1098:
|
|
23052
|
-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
23053
|
-
|
|
23054
|
-
"use strict";
|
|
23055
|
-
|
|
23056
|
-
var ansiRegex = __nccwpck_require__(1082);
|
|
23057
|
-
var re = new RegExp(ansiRegex().source); // remove the `g` flag
|
|
23058
|
-
module.exports = re.test.bind(re);
|
|
23059
|
-
|
|
23060
|
-
|
|
23061
|
-
/***/ }),
|
|
23062
|
-
|
|
23063
|
-
/***/ 1082:
|
|
23064
|
-
/***/ ((module) => {
|
|
23065
|
-
|
|
23066
|
-
"use strict";
|
|
23067
|
-
|
|
23068
|
-
module.exports = function () {
|
|
23069
|
-
return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
|
|
23070
|
-
};
|
|
23071
|
-
|
|
23072
|
-
|
|
23073
|
-
/***/ }),
|
|
23074
|
-
|
|
23075
|
-
/***/ 5132:
|
|
23076
|
-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
23077
|
-
|
|
23078
|
-
"use strict";
|
|
23079
|
-
|
|
23080
|
-
|
|
23081
|
-
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
23082
|
-
var hasSymbolSham = __nccwpck_require__(2180);
|
|
23083
|
-
|
|
23084
|
-
module.exports = function hasNativeSymbols() {
|
|
23085
|
-
if (typeof origSymbol !== 'function') { return false; }
|
|
23086
|
-
if (typeof Symbol !== 'function') { return false; }
|
|
23087
|
-
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
23088
|
-
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
23089
|
-
|
|
23090
|
-
return hasSymbolSham();
|
|
23091
|
-
};
|
|
23092
|
-
|
|
23093
|
-
|
|
23094
|
-
/***/ }),
|
|
23095
|
-
|
|
23096
|
-
/***/ 2180:
|
|
23097
|
-
/***/ ((module) => {
|
|
23098
|
-
|
|
23099
|
-
"use strict";
|
|
23100
|
-
|
|
23101
|
-
|
|
23102
|
-
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
23103
|
-
module.exports = function hasSymbols() {
|
|
23104
|
-
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
23105
|
-
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
23106
|
-
|
|
23107
|
-
var obj = {};
|
|
23108
|
-
var sym = Symbol('test');
|
|
23109
|
-
var symObj = Object(sym);
|
|
23110
|
-
if (typeof sym === 'string') { return false; }
|
|
23111
|
-
|
|
23112
|
-
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
23113
|
-
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
23114
|
-
|
|
23115
|
-
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
23116
|
-
// if (sym instanceof Symbol) { return false; }
|
|
23117
|
-
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
23118
|
-
// if (!(symObj instanceof Symbol)) { return false; }
|
|
23119
|
-
|
|
23120
|
-
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
23121
|
-
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
23122
|
-
|
|
23123
|
-
var symVal = 42;
|
|
23124
|
-
obj[sym] = symVal;
|
|
23125
|
-
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
23126
|
-
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
23127
|
-
|
|
23128
|
-
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
23129
|
-
|
|
23130
|
-
var syms = Object.getOwnPropertySymbols(obj);
|
|
23131
|
-
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
23132
|
-
|
|
23133
|
-
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
23134
|
-
|
|
23135
|
-
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
23136
|
-
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
23137
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
23138
|
-
}
|
|
23139
|
-
|
|
23140
|
-
return true;
|
|
23141
|
-
};
|
|
23142
|
-
|
|
23143
|
-
|
|
23144
23002
|
/***/ }),
|
|
23145
23003
|
|
|
23146
23004
|
/***/ 1558:
|
|
@@ -23149,7 +23007,7 @@ module.exports = function hasSymbols() {
|
|
|
23149
23007
|
"use strict";
|
|
23150
23008
|
|
|
23151
23009
|
|
|
23152
|
-
var bind = __nccwpck_require__(
|
|
23010
|
+
var bind = __nccwpck_require__(2025);
|
|
23153
23011
|
|
|
23154
23012
|
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
23155
23013
|
|
|
@@ -23458,7 +23316,7 @@ Separator.prototype.toString = function () {
|
|
|
23458
23316
|
var rx = __nccwpck_require__(1099);
|
|
23459
23317
|
var _ = __nccwpck_require__(6294);
|
|
23460
23318
|
var chalk = __nccwpck_require__(4664);
|
|
23461
|
-
var ansiRegex = __nccwpck_require__(
|
|
23319
|
+
var ansiRegex = __nccwpck_require__(5067);
|
|
23462
23320
|
var runAsync = __nccwpck_require__(2918);
|
|
23463
23321
|
var Choices = __nccwpck_require__(4467);
|
|
23464
23322
|
var ScreenManager = __nccwpck_require__(7522);
|
|
@@ -25586,18 +25444,6 @@ x.iTerm.setCwd = function (cwd) {
|
|
|
25586
25444
|
};
|
|
25587
25445
|
|
|
25588
25446
|
|
|
25589
|
-
/***/ }),
|
|
25590
|
-
|
|
25591
|
-
/***/ 9:
|
|
25592
|
-
/***/ ((module) => {
|
|
25593
|
-
|
|
25594
|
-
"use strict";
|
|
25595
|
-
|
|
25596
|
-
module.exports = function () {
|
|
25597
|
-
return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
|
|
25598
|
-
};
|
|
25599
|
-
|
|
25600
|
-
|
|
25601
25447
|
/***/ }),
|
|
25602
25448
|
|
|
25603
25449
|
/***/ 6695:
|
|
@@ -25679,7 +25525,7 @@ Object.defineProperty(module, 'exports', {
|
|
|
25679
25525
|
|
|
25680
25526
|
"use strict";
|
|
25681
25527
|
|
|
25682
|
-
var escapeStringRegexp = __nccwpck_require__(
|
|
25528
|
+
var escapeStringRegexp = __nccwpck_require__(9679);
|
|
25683
25529
|
var ansiStyles = __nccwpck_require__(6695);
|
|
25684
25530
|
var stripAnsi = __nccwpck_require__(9310);
|
|
25685
25531
|
var hasAnsi = __nccwpck_require__(1098);
|
|
@@ -25796,6 +25642,25 @@ module.exports.stripColor = stripAnsi;
|
|
|
25796
25642
|
module.exports.supportsColor = supportsColor;
|
|
25797
25643
|
|
|
25798
25644
|
|
|
25645
|
+
/***/ }),
|
|
25646
|
+
|
|
25647
|
+
/***/ 9679:
|
|
25648
|
+
/***/ ((module) => {
|
|
25649
|
+
|
|
25650
|
+
"use strict";
|
|
25651
|
+
|
|
25652
|
+
|
|
25653
|
+
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
25654
|
+
|
|
25655
|
+
module.exports = function (str) {
|
|
25656
|
+
if (typeof str !== 'string') {
|
|
25657
|
+
throw new TypeError('Expected a string');
|
|
25658
|
+
}
|
|
25659
|
+
|
|
25660
|
+
return str.replace(matchOperatorsRe, '\\$&');
|
|
25661
|
+
};
|
|
25662
|
+
|
|
25663
|
+
|
|
25799
25664
|
/***/ }),
|
|
25800
25665
|
|
|
25801
25666
|
/***/ 6294:
|
|
@@ -38162,7 +38027,7 @@ module.exports.supportsColor = supportsColor;
|
|
|
38162
38027
|
|
|
38163
38028
|
"use strict";
|
|
38164
38029
|
|
|
38165
|
-
var ansiRegex = __nccwpck_require__(
|
|
38030
|
+
var ansiRegex = __nccwpck_require__(5067)();
|
|
38166
38031
|
|
|
38167
38032
|
module.exports = function (str) {
|
|
38168
38033
|
return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
|
|
@@ -55470,6 +55335,258 @@ module.exports = function(num) {
|
|
|
55470
55335
|
}.call(this));
|
|
55471
55336
|
|
|
55472
55337
|
|
|
55338
|
+
/***/ }),
|
|
55339
|
+
|
|
55340
|
+
/***/ 5982:
|
|
55341
|
+
/***/ ((module) => {
|
|
55342
|
+
|
|
55343
|
+
module.exports = function (args, opts) {
|
|
55344
|
+
if (!opts) opts = {};
|
|
55345
|
+
|
|
55346
|
+
var flags = { bools : {}, strings : {}, unknownFn: null };
|
|
55347
|
+
|
|
55348
|
+
if (typeof opts['unknown'] === 'function') {
|
|
55349
|
+
flags.unknownFn = opts['unknown'];
|
|
55350
|
+
}
|
|
55351
|
+
|
|
55352
|
+
if (typeof opts['boolean'] === 'boolean' && opts['boolean']) {
|
|
55353
|
+
flags.allBools = true;
|
|
55354
|
+
} else {
|
|
55355
|
+
[].concat(opts['boolean']).filter(Boolean).forEach(function (key) {
|
|
55356
|
+
flags.bools[key] = true;
|
|
55357
|
+
});
|
|
55358
|
+
}
|
|
55359
|
+
|
|
55360
|
+
var aliases = {};
|
|
55361
|
+
Object.keys(opts.alias || {}).forEach(function (key) {
|
|
55362
|
+
aliases[key] = [].concat(opts.alias[key]);
|
|
55363
|
+
aliases[key].forEach(function (x) {
|
|
55364
|
+
aliases[x] = [key].concat(aliases[key].filter(function (y) {
|
|
55365
|
+
return x !== y;
|
|
55366
|
+
}));
|
|
55367
|
+
});
|
|
55368
|
+
});
|
|
55369
|
+
|
|
55370
|
+
[].concat(opts.string).filter(Boolean).forEach(function (key) {
|
|
55371
|
+
flags.strings[key] = true;
|
|
55372
|
+
if (aliases[key]) {
|
|
55373
|
+
flags.strings[aliases[key]] = true;
|
|
55374
|
+
}
|
|
55375
|
+
});
|
|
55376
|
+
|
|
55377
|
+
var defaults = opts['default'] || {};
|
|
55378
|
+
|
|
55379
|
+
var argv = { _ : [] };
|
|
55380
|
+
Object.keys(flags.bools).forEach(function (key) {
|
|
55381
|
+
setArg(key, defaults[key] === undefined ? false : defaults[key]);
|
|
55382
|
+
});
|
|
55383
|
+
|
|
55384
|
+
var notFlags = [];
|
|
55385
|
+
|
|
55386
|
+
if (args.indexOf('--') !== -1) {
|
|
55387
|
+
notFlags = args.slice(args.indexOf('--')+1);
|
|
55388
|
+
args = args.slice(0, args.indexOf('--'));
|
|
55389
|
+
}
|
|
55390
|
+
|
|
55391
|
+
function argDefined(key, arg) {
|
|
55392
|
+
return (flags.allBools && /^--[^=]+$/.test(arg)) ||
|
|
55393
|
+
flags.strings[key] || flags.bools[key] || aliases[key];
|
|
55394
|
+
}
|
|
55395
|
+
|
|
55396
|
+
function setArg (key, val, arg) {
|
|
55397
|
+
if (arg && flags.unknownFn && !argDefined(key, arg)) {
|
|
55398
|
+
if (flags.unknownFn(arg) === false) return;
|
|
55399
|
+
}
|
|
55400
|
+
|
|
55401
|
+
var value = !flags.strings[key] && isNumber(val)
|
|
55402
|
+
? Number(val) : val
|
|
55403
|
+
;
|
|
55404
|
+
setKey(argv, key.split('.'), value);
|
|
55405
|
+
|
|
55406
|
+
(aliases[key] || []).forEach(function (x) {
|
|
55407
|
+
setKey(argv, x.split('.'), value);
|
|
55408
|
+
});
|
|
55409
|
+
}
|
|
55410
|
+
|
|
55411
|
+
function setKey (obj, keys, value) {
|
|
55412
|
+
var o = obj;
|
|
55413
|
+
for (var i = 0; i < keys.length-1; i++) {
|
|
55414
|
+
var key = keys[i];
|
|
55415
|
+
if (key === '__proto__') return;
|
|
55416
|
+
if (o[key] === undefined) o[key] = {};
|
|
55417
|
+
if (o[key] === Object.prototype || o[key] === Number.prototype
|
|
55418
|
+
|| o[key] === String.prototype) o[key] = {};
|
|
55419
|
+
if (o[key] === Array.prototype) o[key] = [];
|
|
55420
|
+
o = o[key];
|
|
55421
|
+
}
|
|
55422
|
+
|
|
55423
|
+
var key = keys[keys.length - 1];
|
|
55424
|
+
if (key === '__proto__') return;
|
|
55425
|
+
if (o === Object.prototype || o === Number.prototype
|
|
55426
|
+
|| o === String.prototype) o = {};
|
|
55427
|
+
if (o === Array.prototype) o = [];
|
|
55428
|
+
if (o[key] === undefined || flags.bools[key] || typeof o[key] === 'boolean') {
|
|
55429
|
+
o[key] = value;
|
|
55430
|
+
}
|
|
55431
|
+
else if (Array.isArray(o[key])) {
|
|
55432
|
+
o[key].push(value);
|
|
55433
|
+
}
|
|
55434
|
+
else {
|
|
55435
|
+
o[key] = [ o[key], value ];
|
|
55436
|
+
}
|
|
55437
|
+
}
|
|
55438
|
+
|
|
55439
|
+
function aliasIsBoolean(key) {
|
|
55440
|
+
return aliases[key].some(function (x) {
|
|
55441
|
+
return flags.bools[x];
|
|
55442
|
+
});
|
|
55443
|
+
}
|
|
55444
|
+
|
|
55445
|
+
for (var i = 0; i < args.length; i++) {
|
|
55446
|
+
var arg = args[i];
|
|
55447
|
+
|
|
55448
|
+
if (/^--.+=/.test(arg)) {
|
|
55449
|
+
// Using [\s\S] instead of . because js doesn't support the
|
|
55450
|
+
// 'dotall' regex modifier. See:
|
|
55451
|
+
// http://stackoverflow.com/a/1068308/13216
|
|
55452
|
+
var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
|
|
55453
|
+
var key = m[1];
|
|
55454
|
+
var value = m[2];
|
|
55455
|
+
if (flags.bools[key]) {
|
|
55456
|
+
value = value !== 'false';
|
|
55457
|
+
}
|
|
55458
|
+
setArg(key, value, arg);
|
|
55459
|
+
}
|
|
55460
|
+
else if (/^--no-.+/.test(arg)) {
|
|
55461
|
+
var key = arg.match(/^--no-(.+)/)[1];
|
|
55462
|
+
setArg(key, false, arg);
|
|
55463
|
+
}
|
|
55464
|
+
else if (/^--.+/.test(arg)) {
|
|
55465
|
+
var key = arg.match(/^--(.+)/)[1];
|
|
55466
|
+
var next = args[i + 1];
|
|
55467
|
+
if (next !== undefined && !/^-/.test(next)
|
|
55468
|
+
&& !flags.bools[key]
|
|
55469
|
+
&& !flags.allBools
|
|
55470
|
+
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
55471
|
+
setArg(key, next, arg);
|
|
55472
|
+
i++;
|
|
55473
|
+
}
|
|
55474
|
+
else if (/^(true|false)$/.test(next)) {
|
|
55475
|
+
setArg(key, next === 'true', arg);
|
|
55476
|
+
i++;
|
|
55477
|
+
}
|
|
55478
|
+
else {
|
|
55479
|
+
setArg(key, flags.strings[key] ? '' : true, arg);
|
|
55480
|
+
}
|
|
55481
|
+
}
|
|
55482
|
+
else if (/^-[^-]+/.test(arg)) {
|
|
55483
|
+
var letters = arg.slice(1,-1).split('');
|
|
55484
|
+
|
|
55485
|
+
var broken = false;
|
|
55486
|
+
for (var j = 0; j < letters.length; j++) {
|
|
55487
|
+
var next = arg.slice(j+2);
|
|
55488
|
+
|
|
55489
|
+
if (next === '-') {
|
|
55490
|
+
setArg(letters[j], next, arg)
|
|
55491
|
+
continue;
|
|
55492
|
+
}
|
|
55493
|
+
|
|
55494
|
+
if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
|
|
55495
|
+
setArg(letters[j], next.split('=')[1], arg);
|
|
55496
|
+
broken = true;
|
|
55497
|
+
break;
|
|
55498
|
+
}
|
|
55499
|
+
|
|
55500
|
+
if (/[A-Za-z]/.test(letters[j])
|
|
55501
|
+
&& /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
|
|
55502
|
+
setArg(letters[j], next, arg);
|
|
55503
|
+
broken = true;
|
|
55504
|
+
break;
|
|
55505
|
+
}
|
|
55506
|
+
|
|
55507
|
+
if (letters[j+1] && letters[j+1].match(/\W/)) {
|
|
55508
|
+
setArg(letters[j], arg.slice(j+2), arg);
|
|
55509
|
+
broken = true;
|
|
55510
|
+
break;
|
|
55511
|
+
}
|
|
55512
|
+
else {
|
|
55513
|
+
setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
|
|
55514
|
+
}
|
|
55515
|
+
}
|
|
55516
|
+
|
|
55517
|
+
var key = arg.slice(-1)[0];
|
|
55518
|
+
if (!broken && key !== '-') {
|
|
55519
|
+
if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
|
|
55520
|
+
&& !flags.bools[key]
|
|
55521
|
+
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
55522
|
+
setArg(key, args[i+1], arg);
|
|
55523
|
+
i++;
|
|
55524
|
+
}
|
|
55525
|
+
else if (args[i+1] && /^(true|false)$/.test(args[i+1])) {
|
|
55526
|
+
setArg(key, args[i+1] === 'true', arg);
|
|
55527
|
+
i++;
|
|
55528
|
+
}
|
|
55529
|
+
else {
|
|
55530
|
+
setArg(key, flags.strings[key] ? '' : true, arg);
|
|
55531
|
+
}
|
|
55532
|
+
}
|
|
55533
|
+
}
|
|
55534
|
+
else {
|
|
55535
|
+
if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
|
|
55536
|
+
argv._.push(
|
|
55537
|
+
flags.strings['_'] || !isNumber(arg) ? arg : Number(arg)
|
|
55538
|
+
);
|
|
55539
|
+
}
|
|
55540
|
+
if (opts.stopEarly) {
|
|
55541
|
+
argv._.push.apply(argv._, args.slice(i + 1));
|
|
55542
|
+
break;
|
|
55543
|
+
}
|
|
55544
|
+
}
|
|
55545
|
+
}
|
|
55546
|
+
|
|
55547
|
+
Object.keys(defaults).forEach(function (key) {
|
|
55548
|
+
if (!hasKey(argv, key.split('.'))) {
|
|
55549
|
+
setKey(argv, key.split('.'), defaults[key]);
|
|
55550
|
+
|
|
55551
|
+
(aliases[key] || []).forEach(function (x) {
|
|
55552
|
+
setKey(argv, x.split('.'), defaults[key]);
|
|
55553
|
+
});
|
|
55554
|
+
}
|
|
55555
|
+
});
|
|
55556
|
+
|
|
55557
|
+
if (opts['--']) {
|
|
55558
|
+
argv['--'] = new Array();
|
|
55559
|
+
notFlags.forEach(function(key) {
|
|
55560
|
+
argv['--'].push(key);
|
|
55561
|
+
});
|
|
55562
|
+
}
|
|
55563
|
+
else {
|
|
55564
|
+
notFlags.forEach(function(key) {
|
|
55565
|
+
argv._.push(key);
|
|
55566
|
+
});
|
|
55567
|
+
}
|
|
55568
|
+
|
|
55569
|
+
return argv;
|
|
55570
|
+
};
|
|
55571
|
+
|
|
55572
|
+
function hasKey (obj, keys) {
|
|
55573
|
+
var o = obj;
|
|
55574
|
+
keys.slice(0,-1).forEach(function (key) {
|
|
55575
|
+
o = (o[key] || {});
|
|
55576
|
+
});
|
|
55577
|
+
|
|
55578
|
+
var key = keys[keys.length - 1];
|
|
55579
|
+
return key in o;
|
|
55580
|
+
}
|
|
55581
|
+
|
|
55582
|
+
function isNumber (x) {
|
|
55583
|
+
if (typeof x === 'number') return true;
|
|
55584
|
+
if (/^0x[0-9a-f]+$/i.test(x)) return true;
|
|
55585
|
+
return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
|
|
55586
|
+
}
|
|
55587
|
+
|
|
55588
|
+
|
|
55589
|
+
|
|
55473
55590
|
/***/ }),
|
|
55474
55591
|
|
|
55475
55592
|
/***/ 4778:
|
|
@@ -63579,7 +63696,7 @@ observableProto.controlled = function (enableQueue, scheduler) {
|
|
|
63579
63696
|
"use strict";
|
|
63580
63697
|
|
|
63581
63698
|
|
|
63582
|
-
var GetIntrinsic = __nccwpck_require__(
|
|
63699
|
+
var GetIntrinsic = __nccwpck_require__(2375);
|
|
63583
63700
|
var callBound = __nccwpck_require__(4469);
|
|
63584
63701
|
var inspect = __nccwpck_require__(8819);
|
|
63585
63702
|
|
|
@@ -63703,6 +63820,488 @@ module.exports = function getSideChannel() {
|
|
|
63703
63820
|
};
|
|
63704
63821
|
|
|
63705
63822
|
|
|
63823
|
+
/***/ }),
|
|
63824
|
+
|
|
63825
|
+
/***/ 2475:
|
|
63826
|
+
/***/ ((module) => {
|
|
63827
|
+
|
|
63828
|
+
"use strict";
|
|
63829
|
+
|
|
63830
|
+
|
|
63831
|
+
/* eslint no-invalid-this: 1 */
|
|
63832
|
+
|
|
63833
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
63834
|
+
var slice = Array.prototype.slice;
|
|
63835
|
+
var toStr = Object.prototype.toString;
|
|
63836
|
+
var funcType = '[object Function]';
|
|
63837
|
+
|
|
63838
|
+
module.exports = function bind(that) {
|
|
63839
|
+
var target = this;
|
|
63840
|
+
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
|
|
63841
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
63842
|
+
}
|
|
63843
|
+
var args = slice.call(arguments, 1);
|
|
63844
|
+
|
|
63845
|
+
var bound;
|
|
63846
|
+
var binder = function () {
|
|
63847
|
+
if (this instanceof bound) {
|
|
63848
|
+
var result = target.apply(
|
|
63849
|
+
this,
|
|
63850
|
+
args.concat(slice.call(arguments))
|
|
63851
|
+
);
|
|
63852
|
+
if (Object(result) === result) {
|
|
63853
|
+
return result;
|
|
63854
|
+
}
|
|
63855
|
+
return this;
|
|
63856
|
+
} else {
|
|
63857
|
+
return target.apply(
|
|
63858
|
+
that,
|
|
63859
|
+
args.concat(slice.call(arguments))
|
|
63860
|
+
);
|
|
63861
|
+
}
|
|
63862
|
+
};
|
|
63863
|
+
|
|
63864
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
63865
|
+
var boundArgs = [];
|
|
63866
|
+
for (var i = 0; i < boundLength; i++) {
|
|
63867
|
+
boundArgs.push('$' + i);
|
|
63868
|
+
}
|
|
63869
|
+
|
|
63870
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
63871
|
+
|
|
63872
|
+
if (target.prototype) {
|
|
63873
|
+
var Empty = function Empty() {};
|
|
63874
|
+
Empty.prototype = target.prototype;
|
|
63875
|
+
bound.prototype = new Empty();
|
|
63876
|
+
Empty.prototype = null;
|
|
63877
|
+
}
|
|
63878
|
+
|
|
63879
|
+
return bound;
|
|
63880
|
+
};
|
|
63881
|
+
|
|
63882
|
+
|
|
63883
|
+
/***/ }),
|
|
63884
|
+
|
|
63885
|
+
/***/ 7019:
|
|
63886
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
63887
|
+
|
|
63888
|
+
"use strict";
|
|
63889
|
+
|
|
63890
|
+
|
|
63891
|
+
var implementation = __nccwpck_require__(2475);
|
|
63892
|
+
|
|
63893
|
+
module.exports = Function.prototype.bind || implementation;
|
|
63894
|
+
|
|
63895
|
+
|
|
63896
|
+
/***/ }),
|
|
63897
|
+
|
|
63898
|
+
/***/ 2375:
|
|
63899
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
63900
|
+
|
|
63901
|
+
"use strict";
|
|
63902
|
+
|
|
63903
|
+
|
|
63904
|
+
var undefined;
|
|
63905
|
+
|
|
63906
|
+
var $SyntaxError = SyntaxError;
|
|
63907
|
+
var $Function = Function;
|
|
63908
|
+
var $TypeError = TypeError;
|
|
63909
|
+
|
|
63910
|
+
// eslint-disable-next-line consistent-return
|
|
63911
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
63912
|
+
try {
|
|
63913
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
63914
|
+
} catch (e) {}
|
|
63915
|
+
};
|
|
63916
|
+
|
|
63917
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
63918
|
+
if ($gOPD) {
|
|
63919
|
+
try {
|
|
63920
|
+
$gOPD({}, '');
|
|
63921
|
+
} catch (e) {
|
|
63922
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
63923
|
+
}
|
|
63924
|
+
}
|
|
63925
|
+
|
|
63926
|
+
var throwTypeError = function () {
|
|
63927
|
+
throw new $TypeError();
|
|
63928
|
+
};
|
|
63929
|
+
var ThrowTypeError = $gOPD
|
|
63930
|
+
? (function () {
|
|
63931
|
+
try {
|
|
63932
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
63933
|
+
arguments.callee; // IE 8 does not throw here
|
|
63934
|
+
return throwTypeError;
|
|
63935
|
+
} catch (calleeThrows) {
|
|
63936
|
+
try {
|
|
63937
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
63938
|
+
return $gOPD(arguments, 'callee').get;
|
|
63939
|
+
} catch (gOPDthrows) {
|
|
63940
|
+
return throwTypeError;
|
|
63941
|
+
}
|
|
63942
|
+
}
|
|
63943
|
+
}())
|
|
63944
|
+
: throwTypeError;
|
|
63945
|
+
|
|
63946
|
+
var hasSymbols = __nccwpck_require__(2890)();
|
|
63947
|
+
|
|
63948
|
+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
63949
|
+
|
|
63950
|
+
var needsEval = {};
|
|
63951
|
+
|
|
63952
|
+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
63953
|
+
|
|
63954
|
+
var INTRINSICS = {
|
|
63955
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
63956
|
+
'%Array%': Array,
|
|
63957
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
63958
|
+
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
63959
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
63960
|
+
'%AsyncFunction%': needsEval,
|
|
63961
|
+
'%AsyncGenerator%': needsEval,
|
|
63962
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
63963
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
63964
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
63965
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
63966
|
+
'%Boolean%': Boolean,
|
|
63967
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
63968
|
+
'%Date%': Date,
|
|
63969
|
+
'%decodeURI%': decodeURI,
|
|
63970
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
63971
|
+
'%encodeURI%': encodeURI,
|
|
63972
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
63973
|
+
'%Error%': Error,
|
|
63974
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
63975
|
+
'%EvalError%': EvalError,
|
|
63976
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
63977
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
63978
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
63979
|
+
'%Function%': $Function,
|
|
63980
|
+
'%GeneratorFunction%': needsEval,
|
|
63981
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
63982
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
63983
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
63984
|
+
'%isFinite%': isFinite,
|
|
63985
|
+
'%isNaN%': isNaN,
|
|
63986
|
+
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
63987
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
63988
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
63989
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
63990
|
+
'%Math%': Math,
|
|
63991
|
+
'%Number%': Number,
|
|
63992
|
+
'%Object%': Object,
|
|
63993
|
+
'%parseFloat%': parseFloat,
|
|
63994
|
+
'%parseInt%': parseInt,
|
|
63995
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
63996
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
63997
|
+
'%RangeError%': RangeError,
|
|
63998
|
+
'%ReferenceError%': ReferenceError,
|
|
63999
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
64000
|
+
'%RegExp%': RegExp,
|
|
64001
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
64002
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
64003
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
64004
|
+
'%String%': String,
|
|
64005
|
+
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
64006
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
64007
|
+
'%SyntaxError%': $SyntaxError,
|
|
64008
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
64009
|
+
'%TypedArray%': TypedArray,
|
|
64010
|
+
'%TypeError%': $TypeError,
|
|
64011
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
64012
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
64013
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
64014
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
64015
|
+
'%URIError%': URIError,
|
|
64016
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
64017
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
64018
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
64019
|
+
};
|
|
64020
|
+
|
|
64021
|
+
var doEval = function doEval(name) {
|
|
64022
|
+
var value;
|
|
64023
|
+
if (name === '%AsyncFunction%') {
|
|
64024
|
+
value = getEvalledConstructor('async function () {}');
|
|
64025
|
+
} else if (name === '%GeneratorFunction%') {
|
|
64026
|
+
value = getEvalledConstructor('function* () {}');
|
|
64027
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
64028
|
+
value = getEvalledConstructor('async function* () {}');
|
|
64029
|
+
} else if (name === '%AsyncGenerator%') {
|
|
64030
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
64031
|
+
if (fn) {
|
|
64032
|
+
value = fn.prototype;
|
|
64033
|
+
}
|
|
64034
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
64035
|
+
var gen = doEval('%AsyncGenerator%');
|
|
64036
|
+
if (gen) {
|
|
64037
|
+
value = getProto(gen.prototype);
|
|
64038
|
+
}
|
|
64039
|
+
}
|
|
64040
|
+
|
|
64041
|
+
INTRINSICS[name] = value;
|
|
64042
|
+
|
|
64043
|
+
return value;
|
|
64044
|
+
};
|
|
64045
|
+
|
|
64046
|
+
var LEGACY_ALIASES = {
|
|
64047
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
64048
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
64049
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
64050
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
64051
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
64052
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
64053
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
64054
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
64055
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
64056
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
64057
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
64058
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
64059
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
64060
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
64061
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
64062
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
64063
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
64064
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
64065
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
64066
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
64067
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
64068
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
64069
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
64070
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
64071
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
64072
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
64073
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
64074
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
64075
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
64076
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
64077
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
64078
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
64079
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
64080
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
64081
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
64082
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
64083
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
64084
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
64085
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
64086
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
64087
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
64088
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
64089
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
64090
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
64091
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
64092
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
64093
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
64094
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
64095
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
64096
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
64097
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
64098
|
+
};
|
|
64099
|
+
|
|
64100
|
+
var bind = __nccwpck_require__(7019);
|
|
64101
|
+
var hasOwn = __nccwpck_require__(1558);
|
|
64102
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
64103
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
64104
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
64105
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
64106
|
+
|
|
64107
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
64108
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
64109
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
64110
|
+
var stringToPath = function stringToPath(string) {
|
|
64111
|
+
var first = $strSlice(string, 0, 1);
|
|
64112
|
+
var last = $strSlice(string, -1);
|
|
64113
|
+
if (first === '%' && last !== '%') {
|
|
64114
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
64115
|
+
} else if (last === '%' && first !== '%') {
|
|
64116
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
64117
|
+
}
|
|
64118
|
+
var result = [];
|
|
64119
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
64120
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
64121
|
+
});
|
|
64122
|
+
return result;
|
|
64123
|
+
};
|
|
64124
|
+
/* end adaptation */
|
|
64125
|
+
|
|
64126
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
64127
|
+
var intrinsicName = name;
|
|
64128
|
+
var alias;
|
|
64129
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
64130
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
64131
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
64132
|
+
}
|
|
64133
|
+
|
|
64134
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
64135
|
+
var value = INTRINSICS[intrinsicName];
|
|
64136
|
+
if (value === needsEval) {
|
|
64137
|
+
value = doEval(intrinsicName);
|
|
64138
|
+
}
|
|
64139
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
64140
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
64141
|
+
}
|
|
64142
|
+
|
|
64143
|
+
return {
|
|
64144
|
+
alias: alias,
|
|
64145
|
+
name: intrinsicName,
|
|
64146
|
+
value: value
|
|
64147
|
+
};
|
|
64148
|
+
}
|
|
64149
|
+
|
|
64150
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
64151
|
+
};
|
|
64152
|
+
|
|
64153
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
64154
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
64155
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
64156
|
+
}
|
|
64157
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
64158
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
64159
|
+
}
|
|
64160
|
+
|
|
64161
|
+
var parts = stringToPath(name);
|
|
64162
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
64163
|
+
|
|
64164
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
64165
|
+
var intrinsicRealName = intrinsic.name;
|
|
64166
|
+
var value = intrinsic.value;
|
|
64167
|
+
var skipFurtherCaching = false;
|
|
64168
|
+
|
|
64169
|
+
var alias = intrinsic.alias;
|
|
64170
|
+
if (alias) {
|
|
64171
|
+
intrinsicBaseName = alias[0];
|
|
64172
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
64173
|
+
}
|
|
64174
|
+
|
|
64175
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
64176
|
+
var part = parts[i];
|
|
64177
|
+
var first = $strSlice(part, 0, 1);
|
|
64178
|
+
var last = $strSlice(part, -1);
|
|
64179
|
+
if (
|
|
64180
|
+
(
|
|
64181
|
+
(first === '"' || first === "'" || first === '`')
|
|
64182
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
64183
|
+
)
|
|
64184
|
+
&& first !== last
|
|
64185
|
+
) {
|
|
64186
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
64187
|
+
}
|
|
64188
|
+
if (part === 'constructor' || !isOwn) {
|
|
64189
|
+
skipFurtherCaching = true;
|
|
64190
|
+
}
|
|
64191
|
+
|
|
64192
|
+
intrinsicBaseName += '.' + part;
|
|
64193
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
64194
|
+
|
|
64195
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
64196
|
+
value = INTRINSICS[intrinsicRealName];
|
|
64197
|
+
} else if (value != null) {
|
|
64198
|
+
if (!(part in value)) {
|
|
64199
|
+
if (!allowMissing) {
|
|
64200
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
64201
|
+
}
|
|
64202
|
+
return void undefined;
|
|
64203
|
+
}
|
|
64204
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
64205
|
+
var desc = $gOPD(value, part);
|
|
64206
|
+
isOwn = !!desc;
|
|
64207
|
+
|
|
64208
|
+
// By convention, when a data property is converted to an accessor
|
|
64209
|
+
// property to emulate a data property that does not suffer from
|
|
64210
|
+
// the override mistake, that accessor's getter is marked with
|
|
64211
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
64212
|
+
// uphold the illusion by pretending to see that original data
|
|
64213
|
+
// property, i.e., returning the value rather than the getter
|
|
64214
|
+
// itself.
|
|
64215
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
64216
|
+
value = desc.get;
|
|
64217
|
+
} else {
|
|
64218
|
+
value = value[part];
|
|
64219
|
+
}
|
|
64220
|
+
} else {
|
|
64221
|
+
isOwn = hasOwn(value, part);
|
|
64222
|
+
value = value[part];
|
|
64223
|
+
}
|
|
64224
|
+
|
|
64225
|
+
if (isOwn && !skipFurtherCaching) {
|
|
64226
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
64227
|
+
}
|
|
64228
|
+
}
|
|
64229
|
+
}
|
|
64230
|
+
return value;
|
|
64231
|
+
};
|
|
64232
|
+
|
|
64233
|
+
|
|
64234
|
+
/***/ }),
|
|
64235
|
+
|
|
64236
|
+
/***/ 2890:
|
|
64237
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
64238
|
+
|
|
64239
|
+
"use strict";
|
|
64240
|
+
|
|
64241
|
+
|
|
64242
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
64243
|
+
var hasSymbolSham = __nccwpck_require__(4862);
|
|
64244
|
+
|
|
64245
|
+
module.exports = function hasNativeSymbols() {
|
|
64246
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
64247
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
64248
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
64249
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
64250
|
+
|
|
64251
|
+
return hasSymbolSham();
|
|
64252
|
+
};
|
|
64253
|
+
|
|
64254
|
+
|
|
64255
|
+
/***/ }),
|
|
64256
|
+
|
|
64257
|
+
/***/ 4862:
|
|
64258
|
+
/***/ ((module) => {
|
|
64259
|
+
|
|
64260
|
+
"use strict";
|
|
64261
|
+
|
|
64262
|
+
|
|
64263
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
64264
|
+
module.exports = function hasSymbols() {
|
|
64265
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
64266
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
64267
|
+
|
|
64268
|
+
var obj = {};
|
|
64269
|
+
var sym = Symbol('test');
|
|
64270
|
+
var symObj = Object(sym);
|
|
64271
|
+
if (typeof sym === 'string') { return false; }
|
|
64272
|
+
|
|
64273
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
64274
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
64275
|
+
|
|
64276
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
64277
|
+
// if (sym instanceof Symbol) { return false; }
|
|
64278
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
64279
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
64280
|
+
|
|
64281
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
64282
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
64283
|
+
|
|
64284
|
+
var symVal = 42;
|
|
64285
|
+
obj[sym] = symVal;
|
|
64286
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
64287
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
64288
|
+
|
|
64289
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
64290
|
+
|
|
64291
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
64292
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
64293
|
+
|
|
64294
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
64295
|
+
|
|
64296
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
64297
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
64298
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
64299
|
+
}
|
|
64300
|
+
|
|
64301
|
+
return true;
|
|
64302
|
+
};
|
|
64303
|
+
|
|
64304
|
+
|
|
63706
64305
|
/***/ }),
|
|
63707
64306
|
|
|
63708
64307
|
/***/ 8819:
|
|
@@ -67442,7 +68041,7 @@ if (!global.__vorpal.ui.exists) {
|
|
|
67442
68041
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
|
|
67443
68042
|
|
|
67444
68043
|
var _ = __nccwpck_require__(3255);
|
|
67445
|
-
var minimist = __nccwpck_require__(
|
|
68044
|
+
var minimist = __nccwpck_require__(5982);
|
|
67446
68045
|
var strip = __nccwpck_require__(7668);
|
|
67447
68046
|
|
|
67448
68047
|
var util = {
|
|
@@ -67975,7 +68574,7 @@ var VorpalUtil = __nccwpck_require__(9821);
|
|
|
67975
68574
|
var ui = __nccwpck_require__(2155);
|
|
67976
68575
|
var Session = __nccwpck_require__(3120);
|
|
67977
68576
|
var intercept = __nccwpck_require__(5447);
|
|
67978
|
-
var minimist = __nccwpck_require__(
|
|
68577
|
+
var minimist = __nccwpck_require__(5982);
|
|
67979
68578
|
var commons = __nccwpck_require__(8972);
|
|
67980
68579
|
var chalk = __nccwpck_require__(8173);
|
|
67981
68580
|
var os = __nccwpck_require__(2037);
|
|
@@ -69311,18 +69910,6 @@ x.iTerm.setCwd = function (cwd) {
|
|
|
69311
69910
|
};
|
|
69312
69911
|
|
|
69313
69912
|
|
|
69314
|
-
/***/ }),
|
|
69315
|
-
|
|
69316
|
-
/***/ 6901:
|
|
69317
|
-
/***/ ((module) => {
|
|
69318
|
-
|
|
69319
|
-
"use strict";
|
|
69320
|
-
|
|
69321
|
-
module.exports = function () {
|
|
69322
|
-
return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
|
|
69323
|
-
};
|
|
69324
|
-
|
|
69325
|
-
|
|
69326
69913
|
/***/ }),
|
|
69327
69914
|
|
|
69328
69915
|
/***/ 1982:
|
|
@@ -69404,7 +69991,7 @@ Object.defineProperty(module, 'exports', {
|
|
|
69404
69991
|
|
|
69405
69992
|
"use strict";
|
|
69406
69993
|
|
|
69407
|
-
var escapeStringRegexp = __nccwpck_require__(
|
|
69994
|
+
var escapeStringRegexp = __nccwpck_require__(8082);
|
|
69408
69995
|
var ansiStyles = __nccwpck_require__(1982);
|
|
69409
69996
|
var stripAnsi = __nccwpck_require__(7668);
|
|
69410
69997
|
var hasAnsi = __nccwpck_require__(1098);
|
|
@@ -69521,6 +70108,25 @@ module.exports.stripColor = stripAnsi;
|
|
|
69521
70108
|
module.exports.supportsColor = supportsColor;
|
|
69522
70109
|
|
|
69523
70110
|
|
|
70111
|
+
/***/ }),
|
|
70112
|
+
|
|
70113
|
+
/***/ 8082:
|
|
70114
|
+
/***/ ((module) => {
|
|
70115
|
+
|
|
70116
|
+
"use strict";
|
|
70117
|
+
|
|
70118
|
+
|
|
70119
|
+
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
70120
|
+
|
|
70121
|
+
module.exports = function (str) {
|
|
70122
|
+
if (typeof str !== 'string') {
|
|
70123
|
+
throw new TypeError('Expected a string');
|
|
70124
|
+
}
|
|
70125
|
+
|
|
70126
|
+
return str.replace(matchOperatorsRe, '\\$&');
|
|
70127
|
+
};
|
|
70128
|
+
|
|
70129
|
+
|
|
69524
70130
|
/***/ }),
|
|
69525
70131
|
|
|
69526
70132
|
/***/ 6666:
|
|
@@ -69613,258 +70219,6 @@ module.exports.stderr = main(process.stderr);
|
|
|
69613
70219
|
module.exports.create = main;
|
|
69614
70220
|
|
|
69615
70221
|
|
|
69616
|
-
/***/ }),
|
|
69617
|
-
|
|
69618
|
-
/***/ 1675:
|
|
69619
|
-
/***/ ((module) => {
|
|
69620
|
-
|
|
69621
|
-
module.exports = function (args, opts) {
|
|
69622
|
-
if (!opts) opts = {};
|
|
69623
|
-
|
|
69624
|
-
var flags = { bools : {}, strings : {}, unknownFn: null };
|
|
69625
|
-
|
|
69626
|
-
if (typeof opts['unknown'] === 'function') {
|
|
69627
|
-
flags.unknownFn = opts['unknown'];
|
|
69628
|
-
}
|
|
69629
|
-
|
|
69630
|
-
if (typeof opts['boolean'] === 'boolean' && opts['boolean']) {
|
|
69631
|
-
flags.allBools = true;
|
|
69632
|
-
} else {
|
|
69633
|
-
[].concat(opts['boolean']).filter(Boolean).forEach(function (key) {
|
|
69634
|
-
flags.bools[key] = true;
|
|
69635
|
-
});
|
|
69636
|
-
}
|
|
69637
|
-
|
|
69638
|
-
var aliases = {};
|
|
69639
|
-
Object.keys(opts.alias || {}).forEach(function (key) {
|
|
69640
|
-
aliases[key] = [].concat(opts.alias[key]);
|
|
69641
|
-
aliases[key].forEach(function (x) {
|
|
69642
|
-
aliases[x] = [key].concat(aliases[key].filter(function (y) {
|
|
69643
|
-
return x !== y;
|
|
69644
|
-
}));
|
|
69645
|
-
});
|
|
69646
|
-
});
|
|
69647
|
-
|
|
69648
|
-
[].concat(opts.string).filter(Boolean).forEach(function (key) {
|
|
69649
|
-
flags.strings[key] = true;
|
|
69650
|
-
if (aliases[key]) {
|
|
69651
|
-
flags.strings[aliases[key]] = true;
|
|
69652
|
-
}
|
|
69653
|
-
});
|
|
69654
|
-
|
|
69655
|
-
var defaults = opts['default'] || {};
|
|
69656
|
-
|
|
69657
|
-
var argv = { _ : [] };
|
|
69658
|
-
Object.keys(flags.bools).forEach(function (key) {
|
|
69659
|
-
setArg(key, defaults[key] === undefined ? false : defaults[key]);
|
|
69660
|
-
});
|
|
69661
|
-
|
|
69662
|
-
var notFlags = [];
|
|
69663
|
-
|
|
69664
|
-
if (args.indexOf('--') !== -1) {
|
|
69665
|
-
notFlags = args.slice(args.indexOf('--')+1);
|
|
69666
|
-
args = args.slice(0, args.indexOf('--'));
|
|
69667
|
-
}
|
|
69668
|
-
|
|
69669
|
-
function argDefined(key, arg) {
|
|
69670
|
-
return (flags.allBools && /^--[^=]+$/.test(arg)) ||
|
|
69671
|
-
flags.strings[key] || flags.bools[key] || aliases[key];
|
|
69672
|
-
}
|
|
69673
|
-
|
|
69674
|
-
function setArg (key, val, arg) {
|
|
69675
|
-
if (arg && flags.unknownFn && !argDefined(key, arg)) {
|
|
69676
|
-
if (flags.unknownFn(arg) === false) return;
|
|
69677
|
-
}
|
|
69678
|
-
|
|
69679
|
-
var value = !flags.strings[key] && isNumber(val)
|
|
69680
|
-
? Number(val) : val
|
|
69681
|
-
;
|
|
69682
|
-
setKey(argv, key.split('.'), value);
|
|
69683
|
-
|
|
69684
|
-
(aliases[key] || []).forEach(function (x) {
|
|
69685
|
-
setKey(argv, x.split('.'), value);
|
|
69686
|
-
});
|
|
69687
|
-
}
|
|
69688
|
-
|
|
69689
|
-
function setKey (obj, keys, value) {
|
|
69690
|
-
var o = obj;
|
|
69691
|
-
for (var i = 0; i < keys.length-1; i++) {
|
|
69692
|
-
var key = keys[i];
|
|
69693
|
-
if (key === '__proto__') return;
|
|
69694
|
-
if (o[key] === undefined) o[key] = {};
|
|
69695
|
-
if (o[key] === Object.prototype || o[key] === Number.prototype
|
|
69696
|
-
|| o[key] === String.prototype) o[key] = {};
|
|
69697
|
-
if (o[key] === Array.prototype) o[key] = [];
|
|
69698
|
-
o = o[key];
|
|
69699
|
-
}
|
|
69700
|
-
|
|
69701
|
-
var key = keys[keys.length - 1];
|
|
69702
|
-
if (key === '__proto__') return;
|
|
69703
|
-
if (o === Object.prototype || o === Number.prototype
|
|
69704
|
-
|| o === String.prototype) o = {};
|
|
69705
|
-
if (o === Array.prototype) o = [];
|
|
69706
|
-
if (o[key] === undefined || flags.bools[key] || typeof o[key] === 'boolean') {
|
|
69707
|
-
o[key] = value;
|
|
69708
|
-
}
|
|
69709
|
-
else if (Array.isArray(o[key])) {
|
|
69710
|
-
o[key].push(value);
|
|
69711
|
-
}
|
|
69712
|
-
else {
|
|
69713
|
-
o[key] = [ o[key], value ];
|
|
69714
|
-
}
|
|
69715
|
-
}
|
|
69716
|
-
|
|
69717
|
-
function aliasIsBoolean(key) {
|
|
69718
|
-
return aliases[key].some(function (x) {
|
|
69719
|
-
return flags.bools[x];
|
|
69720
|
-
});
|
|
69721
|
-
}
|
|
69722
|
-
|
|
69723
|
-
for (var i = 0; i < args.length; i++) {
|
|
69724
|
-
var arg = args[i];
|
|
69725
|
-
|
|
69726
|
-
if (/^--.+=/.test(arg)) {
|
|
69727
|
-
// Using [\s\S] instead of . because js doesn't support the
|
|
69728
|
-
// 'dotall' regex modifier. See:
|
|
69729
|
-
// http://stackoverflow.com/a/1068308/13216
|
|
69730
|
-
var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
|
|
69731
|
-
var key = m[1];
|
|
69732
|
-
var value = m[2];
|
|
69733
|
-
if (flags.bools[key]) {
|
|
69734
|
-
value = value !== 'false';
|
|
69735
|
-
}
|
|
69736
|
-
setArg(key, value, arg);
|
|
69737
|
-
}
|
|
69738
|
-
else if (/^--no-.+/.test(arg)) {
|
|
69739
|
-
var key = arg.match(/^--no-(.+)/)[1];
|
|
69740
|
-
setArg(key, false, arg);
|
|
69741
|
-
}
|
|
69742
|
-
else if (/^--.+/.test(arg)) {
|
|
69743
|
-
var key = arg.match(/^--(.+)/)[1];
|
|
69744
|
-
var next = args[i + 1];
|
|
69745
|
-
if (next !== undefined && !/^-/.test(next)
|
|
69746
|
-
&& !flags.bools[key]
|
|
69747
|
-
&& !flags.allBools
|
|
69748
|
-
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
69749
|
-
setArg(key, next, arg);
|
|
69750
|
-
i++;
|
|
69751
|
-
}
|
|
69752
|
-
else if (/^(true|false)$/.test(next)) {
|
|
69753
|
-
setArg(key, next === 'true', arg);
|
|
69754
|
-
i++;
|
|
69755
|
-
}
|
|
69756
|
-
else {
|
|
69757
|
-
setArg(key, flags.strings[key] ? '' : true, arg);
|
|
69758
|
-
}
|
|
69759
|
-
}
|
|
69760
|
-
else if (/^-[^-]+/.test(arg)) {
|
|
69761
|
-
var letters = arg.slice(1,-1).split('');
|
|
69762
|
-
|
|
69763
|
-
var broken = false;
|
|
69764
|
-
for (var j = 0; j < letters.length; j++) {
|
|
69765
|
-
var next = arg.slice(j+2);
|
|
69766
|
-
|
|
69767
|
-
if (next === '-') {
|
|
69768
|
-
setArg(letters[j], next, arg)
|
|
69769
|
-
continue;
|
|
69770
|
-
}
|
|
69771
|
-
|
|
69772
|
-
if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
|
|
69773
|
-
setArg(letters[j], next.split('=')[1], arg);
|
|
69774
|
-
broken = true;
|
|
69775
|
-
break;
|
|
69776
|
-
}
|
|
69777
|
-
|
|
69778
|
-
if (/[A-Za-z]/.test(letters[j])
|
|
69779
|
-
&& /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
|
|
69780
|
-
setArg(letters[j], next, arg);
|
|
69781
|
-
broken = true;
|
|
69782
|
-
break;
|
|
69783
|
-
}
|
|
69784
|
-
|
|
69785
|
-
if (letters[j+1] && letters[j+1].match(/\W/)) {
|
|
69786
|
-
setArg(letters[j], arg.slice(j+2), arg);
|
|
69787
|
-
broken = true;
|
|
69788
|
-
break;
|
|
69789
|
-
}
|
|
69790
|
-
else {
|
|
69791
|
-
setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
|
|
69792
|
-
}
|
|
69793
|
-
}
|
|
69794
|
-
|
|
69795
|
-
var key = arg.slice(-1)[0];
|
|
69796
|
-
if (!broken && key !== '-') {
|
|
69797
|
-
if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
|
|
69798
|
-
&& !flags.bools[key]
|
|
69799
|
-
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
69800
|
-
setArg(key, args[i+1], arg);
|
|
69801
|
-
i++;
|
|
69802
|
-
}
|
|
69803
|
-
else if (args[i+1] && /^(true|false)$/.test(args[i+1])) {
|
|
69804
|
-
setArg(key, args[i+1] === 'true', arg);
|
|
69805
|
-
i++;
|
|
69806
|
-
}
|
|
69807
|
-
else {
|
|
69808
|
-
setArg(key, flags.strings[key] ? '' : true, arg);
|
|
69809
|
-
}
|
|
69810
|
-
}
|
|
69811
|
-
}
|
|
69812
|
-
else {
|
|
69813
|
-
if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
|
|
69814
|
-
argv._.push(
|
|
69815
|
-
flags.strings['_'] || !isNumber(arg) ? arg : Number(arg)
|
|
69816
|
-
);
|
|
69817
|
-
}
|
|
69818
|
-
if (opts.stopEarly) {
|
|
69819
|
-
argv._.push.apply(argv._, args.slice(i + 1));
|
|
69820
|
-
break;
|
|
69821
|
-
}
|
|
69822
|
-
}
|
|
69823
|
-
}
|
|
69824
|
-
|
|
69825
|
-
Object.keys(defaults).forEach(function (key) {
|
|
69826
|
-
if (!hasKey(argv, key.split('.'))) {
|
|
69827
|
-
setKey(argv, key.split('.'), defaults[key]);
|
|
69828
|
-
|
|
69829
|
-
(aliases[key] || []).forEach(function (x) {
|
|
69830
|
-
setKey(argv, x.split('.'), defaults[key]);
|
|
69831
|
-
});
|
|
69832
|
-
}
|
|
69833
|
-
});
|
|
69834
|
-
|
|
69835
|
-
if (opts['--']) {
|
|
69836
|
-
argv['--'] = new Array();
|
|
69837
|
-
notFlags.forEach(function(key) {
|
|
69838
|
-
argv['--'].push(key);
|
|
69839
|
-
});
|
|
69840
|
-
}
|
|
69841
|
-
else {
|
|
69842
|
-
notFlags.forEach(function(key) {
|
|
69843
|
-
argv._.push(key);
|
|
69844
|
-
});
|
|
69845
|
-
}
|
|
69846
|
-
|
|
69847
|
-
return argv;
|
|
69848
|
-
};
|
|
69849
|
-
|
|
69850
|
-
function hasKey (obj, keys) {
|
|
69851
|
-
var o = obj;
|
|
69852
|
-
keys.slice(0,-1).forEach(function (key) {
|
|
69853
|
-
o = (o[key] || {});
|
|
69854
|
-
});
|
|
69855
|
-
|
|
69856
|
-
var key = keys[keys.length - 1];
|
|
69857
|
-
return key in o;
|
|
69858
|
-
}
|
|
69859
|
-
|
|
69860
|
-
function isNumber (x) {
|
|
69861
|
-
if (typeof x === 'number') return true;
|
|
69862
|
-
if (/^0x[0-9a-f]+$/i.test(x)) return true;
|
|
69863
|
-
return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
|
|
69864
|
-
}
|
|
69865
|
-
|
|
69866
|
-
|
|
69867
|
-
|
|
69868
70222
|
/***/ }),
|
|
69869
70223
|
|
|
69870
70224
|
/***/ 1389:
|
|
@@ -69917,7 +70271,7 @@ module.exports = function (str) {
|
|
|
69917
70271
|
|
|
69918
70272
|
"use strict";
|
|
69919
70273
|
|
|
69920
|
-
var ansiRegex = __nccwpck_require__(
|
|
70274
|
+
var ansiRegex = __nccwpck_require__(5067)();
|
|
69921
70275
|
|
|
69922
70276
|
module.exports = function (str) {
|
|
69923
70277
|
return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
|
|
@@ -70530,6 +70884,191 @@ module.exports = require("util");
|
|
|
70530
70884
|
|
|
70531
70885
|
/***/ }),
|
|
70532
70886
|
|
|
70887
|
+
/***/ 492:
|
|
70888
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
70889
|
+
|
|
70890
|
+
"use strict";
|
|
70891
|
+
|
|
70892
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
70893
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
70894
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
70895
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
70896
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
70897
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
70898
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
70899
|
+
});
|
|
70900
|
+
};
|
|
70901
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
70902
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
70903
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
70904
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
70905
|
+
function step(op) {
|
|
70906
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
70907
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
70908
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
70909
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
70910
|
+
switch (op[0]) {
|
|
70911
|
+
case 0: case 1: t = op; break;
|
|
70912
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
70913
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
70914
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
70915
|
+
default:
|
|
70916
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
70917
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
70918
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
70919
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
70920
|
+
if (t[2]) _.ops.pop();
|
|
70921
|
+
_.trys.pop(); continue;
|
|
70922
|
+
}
|
|
70923
|
+
op = body.call(thisArg, _);
|
|
70924
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
70925
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70926
|
+
}
|
|
70927
|
+
};
|
|
70928
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
70929
|
+
exports.AsyncOption = void 0;
|
|
70930
|
+
var asyncresult_js_1 = __nccwpck_require__(6861);
|
|
70931
|
+
var option_js_1 = __nccwpck_require__(6456);
|
|
70932
|
+
/**
|
|
70933
|
+
* An async-aware `Option` counterpart.
|
|
70934
|
+
*
|
|
70935
|
+
* Can be combined with asynchronous code without having to ``await`` anything right until
|
|
70936
|
+
* the moment when you're ready to extract the final ``Option`` out of it.
|
|
70937
|
+
*
|
|
70938
|
+
* Can also be combined with synchronous code for convenience.
|
|
70939
|
+
*/
|
|
70940
|
+
var AsyncOption = /** @class */ (function () {
|
|
70941
|
+
/**
|
|
70942
|
+
* Constructs an `AsyncOption` from an `Option` or a `Promise` of an `Option`.
|
|
70943
|
+
*
|
|
70944
|
+
* @example
|
|
70945
|
+
* ```typescript
|
|
70946
|
+
* const option = new AsyncOption(Promise.resolve(Some('username')))
|
|
70947
|
+
* ```
|
|
70948
|
+
*/
|
|
70949
|
+
function AsyncOption(start) {
|
|
70950
|
+
this.promise = Promise.resolve(start);
|
|
70951
|
+
}
|
|
70952
|
+
/**
|
|
70953
|
+
* Calls `mapper` if the option is `Some`, otherwise keeps the `None` value intact.
|
|
70954
|
+
* This function can be used for control flow based on `Option` values.
|
|
70955
|
+
*
|
|
70956
|
+
* @example
|
|
70957
|
+
* ```typescript
|
|
70958
|
+
* let hasValue = Some(1).toAsyncOption()
|
|
70959
|
+
* let noValue = None.toAsyncOption()
|
|
70960
|
+
*
|
|
70961
|
+
* await hasValue.andThen(async (value) => Some(value * 2)).promise // Some(2)
|
|
70962
|
+
* await hasValue.andThen(async (value) => None).promise // None
|
|
70963
|
+
* await noValue.andThen(async (value) => Ok(value * 2)).promise // None
|
|
70964
|
+
* ```
|
|
70965
|
+
*/
|
|
70966
|
+
AsyncOption.prototype.andThen = function (mapper) {
|
|
70967
|
+
var _this = this;
|
|
70968
|
+
return this.thenInternal(function (option) { return __awaiter(_this, void 0, void 0, function () {
|
|
70969
|
+
var mapped;
|
|
70970
|
+
return __generator(this, function (_a) {
|
|
70971
|
+
if (option.isNone()) {
|
|
70972
|
+
return [2 /*return*/, option];
|
|
70973
|
+
}
|
|
70974
|
+
mapped = mapper(option.value);
|
|
70975
|
+
return [2 /*return*/, mapped instanceof AsyncOption ? mapped.promise : mapped];
|
|
70976
|
+
});
|
|
70977
|
+
}); });
|
|
70978
|
+
};
|
|
70979
|
+
/**
|
|
70980
|
+
* Maps an `AsyncOption<T>` to `AsyncOption<U>` by applying a function to a contained
|
|
70981
|
+
* `Some` value, leaving a `None` value untouched.
|
|
70982
|
+
*
|
|
70983
|
+
* This function can be used to compose the results of two functions.
|
|
70984
|
+
*
|
|
70985
|
+
* @example
|
|
70986
|
+
* ```typescript
|
|
70987
|
+
* let hasValue = Ok(1).toAsyncOption()
|
|
70988
|
+
* let noValue = None.toAsyncOption()
|
|
70989
|
+
*
|
|
70990
|
+
* await hasValue.map(async (value) => value * 2).promise // Some(2)
|
|
70991
|
+
* await noValue.map(async (value) => value * 2).promise // None
|
|
70992
|
+
* ```
|
|
70993
|
+
*/
|
|
70994
|
+
AsyncOption.prototype.map = function (mapper) {
|
|
70995
|
+
var _this = this;
|
|
70996
|
+
return this.thenInternal(function (option) { return __awaiter(_this, void 0, void 0, function () {
|
|
70997
|
+
var _a;
|
|
70998
|
+
return __generator(this, function (_b) {
|
|
70999
|
+
switch (_b.label) {
|
|
71000
|
+
case 0:
|
|
71001
|
+
if (option.isNone()) {
|
|
71002
|
+
return [2 /*return*/, option];
|
|
71003
|
+
}
|
|
71004
|
+
_a = option_js_1.Some;
|
|
71005
|
+
return [4 /*yield*/, mapper(option.value)];
|
|
71006
|
+
case 1: return [2 /*return*/, _a.apply(void 0, [_b.sent()])];
|
|
71007
|
+
}
|
|
71008
|
+
});
|
|
71009
|
+
}); });
|
|
71010
|
+
};
|
|
71011
|
+
/**
|
|
71012
|
+
* Returns the value from `other` if this `AsyncOption` contains `None`, otherwise returns self.
|
|
71013
|
+
*
|
|
71014
|
+
* If `other` is a result of a function call consider using `orElse` instead, it will
|
|
71015
|
+
* only evaluate the function when needed.
|
|
71016
|
+
*
|
|
71017
|
+
* @example
|
|
71018
|
+
* ```
|
|
71019
|
+
* const noValue = new AsyncOption(None)
|
|
71020
|
+
* const hasValue = new AsyncOption(Some(1))
|
|
71021
|
+
*
|
|
71022
|
+
* await noValue.or(Some(123)).promise // Some(123)
|
|
71023
|
+
* await hasValue.or(Some(123)).promise // Some(1)
|
|
71024
|
+
* ```
|
|
71025
|
+
*/
|
|
71026
|
+
AsyncOption.prototype.or = function (other) {
|
|
71027
|
+
return this.orElse(function () { return other; });
|
|
71028
|
+
};
|
|
71029
|
+
/**
|
|
71030
|
+
* Returns the value obtained by calling `other` if this `AsyncOption` contains `None`, otherwise
|
|
71031
|
+
* returns self.
|
|
71032
|
+
*
|
|
71033
|
+
* @example
|
|
71034
|
+
* ```
|
|
71035
|
+
* const noValue = new AsyncOption(None)
|
|
71036
|
+
* const hasValue = new AsyncOption(Some(1))
|
|
71037
|
+
*
|
|
71038
|
+
* await noValue.orElse(() => Some(123)).promise // Some(123)
|
|
71039
|
+
* await hasValue.orElse(() => Some(123)).promise // Some(1)
|
|
71040
|
+
* ```
|
|
71041
|
+
*/
|
|
71042
|
+
AsyncOption.prototype.orElse = function (other) {
|
|
71043
|
+
var _this = this;
|
|
71044
|
+
return this.thenInternal(function (option) { return __awaiter(_this, void 0, void 0, function () {
|
|
71045
|
+
var otherValue;
|
|
71046
|
+
return __generator(this, function (_a) {
|
|
71047
|
+
if (option.isSome()) {
|
|
71048
|
+
return [2 /*return*/, option];
|
|
71049
|
+
}
|
|
71050
|
+
otherValue = other();
|
|
71051
|
+
return [2 /*return*/, otherValue instanceof AsyncOption ? otherValue.promise : otherValue];
|
|
71052
|
+
});
|
|
71053
|
+
}); });
|
|
71054
|
+
};
|
|
71055
|
+
/**
|
|
71056
|
+
* Converts an `AsyncOption<T>` to an `AsyncResult<T, E>` so that `None` is converted to
|
|
71057
|
+
* `Err(error)` and `Some` is converted to `Ok`.
|
|
71058
|
+
*/
|
|
71059
|
+
AsyncOption.prototype.toResult = function (error) {
|
|
71060
|
+
return new asyncresult_js_1.AsyncResult(this.promise.then(function (option) { return option.toResult(error); }));
|
|
71061
|
+
};
|
|
71062
|
+
AsyncOption.prototype.thenInternal = function (mapper) {
|
|
71063
|
+
return new AsyncOption(this.promise.then(mapper));
|
|
71064
|
+
};
|
|
71065
|
+
return AsyncOption;
|
|
71066
|
+
}());
|
|
71067
|
+
exports.AsyncOption = AsyncOption;
|
|
71068
|
+
//# sourceMappingURL=asyncoption.js.map
|
|
71069
|
+
|
|
71070
|
+
/***/ }),
|
|
71071
|
+
|
|
70533
71072
|
/***/ 6861:
|
|
70534
71073
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
70535
71074
|
|
|
@@ -70573,6 +71112,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
70573
71112
|
};
|
|
70574
71113
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
70575
71114
|
exports.AsyncResult = void 0;
|
|
71115
|
+
var asyncoption_js_1 = __nccwpck_require__(492);
|
|
70576
71116
|
var result_js_1 = __nccwpck_require__(9293);
|
|
70577
71117
|
/**
|
|
70578
71118
|
* An async-aware `Result` counterpart.
|
|
@@ -70656,42 +71196,87 @@ var AsyncResult = /** @class */ (function () {
|
|
|
70656
71196
|
});
|
|
70657
71197
|
}); });
|
|
70658
71198
|
};
|
|
70659
|
-
|
|
70660
|
-
|
|
70661
|
-
|
|
70662
|
-
|
|
70663
|
-
|
|
70664
|
-
|
|
70665
|
-
|
|
70666
|
-
|
|
70667
|
-
|
|
70668
|
-
|
|
70669
|
-
|
|
70670
|
-
|
|
70671
|
-
|
|
70672
|
-
|
|
70673
|
-
|
|
70674
|
-
|
|
70675
|
-
|
|
70676
|
-
|
|
70677
|
-
|
|
70678
|
-
|
|
70679
|
-
|
|
70680
|
-
|
|
70681
|
-
|
|
70682
|
-
|
|
70683
|
-
|
|
70684
|
-
|
|
70685
|
-
|
|
70686
|
-
|
|
70687
|
-
|
|
70688
|
-
|
|
70689
|
-
|
|
70690
|
-
|
|
70691
|
-
|
|
70692
|
-
|
|
70693
|
-
|
|
70694
|
-
|
|
71199
|
+
/**
|
|
71200
|
+
* Maps an `AsyncResult<T, E>` to `AsyncResult<T, F>` by applying `mapper` to the `Err` value,
|
|
71201
|
+
* leaving `Ok` value untouched.
|
|
71202
|
+
*
|
|
71203
|
+
* @example
|
|
71204
|
+
* ```typescript
|
|
71205
|
+
* let goodResult = Ok(1).toAsyncResult()
|
|
71206
|
+
* let badResult = Err('boo').toAsyncResult()
|
|
71207
|
+
*
|
|
71208
|
+
* await goodResult.mapErr(async (error) => `Error is ${error}`).promise // Ok(1)
|
|
71209
|
+
* await badResult.mapErr(async (error) => `Error is ${error}`).promise // Err('Error is boo')
|
|
71210
|
+
* ```
|
|
71211
|
+
*/
|
|
71212
|
+
AsyncResult.prototype.mapErr = function (mapper) {
|
|
71213
|
+
var _this = this;
|
|
71214
|
+
return this.thenInternal(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
71215
|
+
var _a;
|
|
71216
|
+
return __generator(this, function (_b) {
|
|
71217
|
+
switch (_b.label) {
|
|
71218
|
+
case 0:
|
|
71219
|
+
if (result.isOk()) {
|
|
71220
|
+
return [2 /*return*/, result];
|
|
71221
|
+
}
|
|
71222
|
+
_a = result_js_1.Err;
|
|
71223
|
+
return [4 /*yield*/, mapper(result.error)];
|
|
71224
|
+
case 1: return [2 /*return*/, _a.apply(void 0, [_b.sent()])];
|
|
71225
|
+
}
|
|
71226
|
+
});
|
|
71227
|
+
}); });
|
|
71228
|
+
};
|
|
71229
|
+
/**
|
|
71230
|
+
* Returns the value from `other` if this `AsyncResult` contains `Err`, otherwise returns self.
|
|
71231
|
+
*
|
|
71232
|
+
* If `other` is a result of a function call consider using `orElse` instead, it will
|
|
71233
|
+
* only evaluate the function when needed.
|
|
71234
|
+
*
|
|
71235
|
+
* @example
|
|
71236
|
+
* ```
|
|
71237
|
+
* const badResult = new AsyncResult(Err('Error message'))
|
|
71238
|
+
* const goodResult = new AsyncResult(Ok(1))
|
|
71239
|
+
*
|
|
71240
|
+
* await badResult.or(Ok(123)).promise // Ok(123)
|
|
71241
|
+
* await goodResult.or(Ok(123)).promise // Ok(1)
|
|
71242
|
+
* ```
|
|
71243
|
+
*/
|
|
71244
|
+
AsyncResult.prototype.or = function (other) {
|
|
71245
|
+
return this.orElse(function () { return other; });
|
|
71246
|
+
};
|
|
71247
|
+
/**
|
|
71248
|
+
* Returns the value obtained by calling `other` if this `AsyncResult` contains `Err`, otherwise
|
|
71249
|
+
* returns self.
|
|
71250
|
+
*
|
|
71251
|
+
* @example
|
|
71252
|
+
* ```
|
|
71253
|
+
* const badResult = new AsyncResult(Err('Error message'))
|
|
71254
|
+
* const goodResult = new AsyncResult(Ok(1))
|
|
71255
|
+
*
|
|
71256
|
+
* await badResult.orElse(() => Ok(123)).promise // Ok(123)
|
|
71257
|
+
* await goodResult.orElse(() => Ok(123)).promise // Ok(1)
|
|
71258
|
+
* ```
|
|
71259
|
+
*/
|
|
71260
|
+
AsyncResult.prototype.orElse = function (other) {
|
|
71261
|
+
var _this = this;
|
|
71262
|
+
return this.thenInternal(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
71263
|
+
var otherValue;
|
|
71264
|
+
return __generator(this, function (_a) {
|
|
71265
|
+
if (result.isOk()) {
|
|
71266
|
+
return [2 /*return*/, result];
|
|
71267
|
+
}
|
|
71268
|
+
otherValue = other(result.error);
|
|
71269
|
+
return [2 /*return*/, otherValue instanceof AsyncResult ? otherValue.promise : otherValue];
|
|
71270
|
+
});
|
|
71271
|
+
}); });
|
|
71272
|
+
};
|
|
71273
|
+
/**
|
|
71274
|
+
* Converts from `AsyncResult<T, E>` to `AsyncOption<T>` so that `Err` is converted to `None`
|
|
71275
|
+
* and `Ok` is converted to `Some`.
|
|
71276
|
+
*/
|
|
71277
|
+
AsyncResult.prototype.toOption = function () {
|
|
71278
|
+
return new asyncoption_js_1.AsyncOption(this.promise.then(function (result) { return result.toOption(); }));
|
|
71279
|
+
};
|
|
70695
71280
|
AsyncResult.prototype.thenInternal = function (mapper) {
|
|
70696
71281
|
return new AsyncResult(this.promise.then(mapper));
|
|
70697
71282
|
};
|
|
@@ -70722,6 +71307,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
70722
71307
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
70723
71308
|
};
|
|
70724
71309
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
71310
|
+
__exportStar(__nccwpck_require__(492), exports);
|
|
70725
71311
|
__exportStar(__nccwpck_require__(6861), exports);
|
|
70726
71312
|
__exportStar(__nccwpck_require__(9293), exports);
|
|
70727
71313
|
__exportStar(__nccwpck_require__(6456), exports);
|
|
@@ -70736,6 +71322,7 @@ __exportStar(__nccwpck_require__(6456), exports);
|
|
|
70736
71322
|
|
|
70737
71323
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
70738
71324
|
exports.Option = exports.Some = exports.None = void 0;
|
|
71325
|
+
var asyncoption_js_1 = __nccwpck_require__(492);
|
|
70739
71326
|
var utils_js_1 = __nccwpck_require__(1414);
|
|
70740
71327
|
var result_js_1 = __nccwpck_require__(9293);
|
|
70741
71328
|
/**
|
|
@@ -70790,6 +71377,9 @@ var NoneImpl = /** @class */ (function () {
|
|
|
70790
71377
|
NoneImpl.prototype.toString = function () {
|
|
70791
71378
|
return 'None';
|
|
70792
71379
|
};
|
|
71380
|
+
NoneImpl.prototype.toAsyncOption = function () {
|
|
71381
|
+
return new asyncoption_js_1.AsyncOption(exports.None);
|
|
71382
|
+
};
|
|
70793
71383
|
return NoneImpl;
|
|
70794
71384
|
}());
|
|
70795
71385
|
// Export None as a singleton, then freeze it so it can't be modified
|
|
@@ -70854,6 +71444,9 @@ var SomeImpl = /** @class */ (function () {
|
|
|
70854
71444
|
SomeImpl.prototype.toResult = function (error) {
|
|
70855
71445
|
return (0, result_js_1.Ok)(this.value);
|
|
70856
71446
|
};
|
|
71447
|
+
SomeImpl.prototype.toAsyncOption = function () {
|
|
71448
|
+
return new asyncoption_js_1.AsyncOption(this);
|
|
71449
|
+
};
|
|
70857
71450
|
/**
|
|
70858
71451
|
* Returns the contained `Some` value, but never throws.
|
|
70859
71452
|
* Unlike `unwrap()`, this method doesn't throw and is only callable on an Some<T>
|
|
@@ -70914,7 +71507,7 @@ var Option;
|
|
|
70914
71507
|
return option;
|
|
70915
71508
|
}
|
|
70916
71509
|
else {
|
|
70917
|
-
|
|
71510
|
+
continue;
|
|
70918
71511
|
}
|
|
70919
71512
|
}
|
|
70920
71513
|
// it must be None
|
|
@@ -70931,10 +71524,19 @@ var Option;
|
|
|
70931
71524
|
/***/ }),
|
|
70932
71525
|
|
|
70933
71526
|
/***/ 9293:
|
|
70934
|
-
/***/ ((__unused_webpack_module, exports, __nccwpck_require__)
|
|
71527
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
70935
71528
|
|
|
70936
71529
|
"use strict";
|
|
70937
71530
|
|
|
71531
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
71532
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
71533
|
+
if (ar || !(i in from)) {
|
|
71534
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
71535
|
+
ar[i] = from[i];
|
|
71536
|
+
}
|
|
71537
|
+
}
|
|
71538
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
71539
|
+
};
|
|
70938
71540
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
70939
71541
|
exports.Result = exports.Ok = exports.OkImpl = exports.Err = exports.ErrImpl = void 0;
|
|
70940
71542
|
var utils_js_1 = __nccwpck_require__(1414);
|
|
@@ -71144,15 +71746,12 @@ exports.OkImpl = OkImpl;
|
|
|
71144
71746
|
exports.Ok = OkImpl;
|
|
71145
71747
|
var Result;
|
|
71146
71748
|
(function (Result) {
|
|
71147
|
-
|
|
71148
|
-
|
|
71149
|
-
|
|
71150
|
-
|
|
71151
|
-
function all() {
|
|
71152
|
-
var results = [];
|
|
71153
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
71154
|
-
results[_i] = arguments[_i];
|
|
71749
|
+
function all(arg0) {
|
|
71750
|
+
var argN = [];
|
|
71751
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
71752
|
+
argN[_i - 1] = arguments[_i];
|
|
71155
71753
|
}
|
|
71754
|
+
var results = arg0 === undefined ? [] : Array.isArray(arg0) ? arg0 : __spreadArray([arg0], argN, true);
|
|
71156
71755
|
var okResult = [];
|
|
71157
71756
|
for (var _a = 0, results_1 = results; _a < results_1.length; _a++) {
|
|
71158
71757
|
var result = results_1[_a];
|
|
@@ -71166,15 +71765,12 @@ var Result;
|
|
|
71166
71765
|
return new exports.Ok(okResult);
|
|
71167
71766
|
}
|
|
71168
71767
|
Result.all = all;
|
|
71169
|
-
|
|
71170
|
-
|
|
71171
|
-
|
|
71172
|
-
|
|
71173
|
-
function any() {
|
|
71174
|
-
var results = [];
|
|
71175
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
71176
|
-
results[_i] = arguments[_i];
|
|
71768
|
+
function any(arg0) {
|
|
71769
|
+
var argN = [];
|
|
71770
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
71771
|
+
argN[_i - 1] = arguments[_i];
|
|
71177
71772
|
}
|
|
71773
|
+
var results = arg0 === undefined ? [] : Array.isArray(arg0) ? arg0 : __spreadArray([arg0], argN, true);
|
|
71178
71774
|
var errResult = [];
|
|
71179
71775
|
// short-circuits
|
|
71180
71776
|
for (var _a = 0, results_2 = results; _a < results_2.length; _a++) {
|
|
@@ -71218,6 +71814,18 @@ var Result;
|
|
|
71218
71814
|
}
|
|
71219
71815
|
}
|
|
71220
71816
|
Result.wrapAsync = wrapAsync;
|
|
71817
|
+
/**
|
|
71818
|
+
* Partitions a set of results, separating the `Ok` and `Err` values.
|
|
71819
|
+
*/
|
|
71820
|
+
function partition(results) {
|
|
71821
|
+
return results.reduce(function (_a, v) {
|
|
71822
|
+
var oks = _a[0], errors = _a[1];
|
|
71823
|
+
return v.isOk()
|
|
71824
|
+
? [__spreadArray(__spreadArray([], oks, true), [v.value], false), errors]
|
|
71825
|
+
: [oks, __spreadArray(__spreadArray([], errors, true), [v.error], false)];
|
|
71826
|
+
}, [[], []]);
|
|
71827
|
+
}
|
|
71828
|
+
Result.partition = partition;
|
|
71221
71829
|
function isResult(val) {
|
|
71222
71830
|
return val instanceof exports.Err || val instanceof exports.Ok;
|
|
71223
71831
|
}
|
|
@@ -71249,19 +71857,11 @@ exports.toString = toString;
|
|
|
71249
71857
|
|
|
71250
71858
|
/***/ }),
|
|
71251
71859
|
|
|
71252
|
-
/***/
|
|
71860
|
+
/***/ 1888:
|
|
71253
71861
|
/***/ ((module) => {
|
|
71254
71862
|
|
|
71255
71863
|
"use strict";
|
|
71256
|
-
module.exports = JSON.parse('[{"description":"No API keys or secrets are stored in repository","responsibles":1,"more":""},{"description":"The app does not provide password login","responsibles":1,"more":""},{"description":"Passwords are not stored","responsibles":1,"more":""},{"description":"Passwords are stored hashed with salt and salt is not stored in the repository","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/hash.md)"},{"description":"Input that ends up in DOM is properly sanitized","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/xss.md)"},{"description":"All user inputs have reasonable validations","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/validation.md)"},{"description":"The app is not using cookies","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"The app is using cookies and cookies are properly configured","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"The app uses JWT with a secret and the secret is not stored in the repository","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"Authorization and user roles (RBAC) were reviewed thoroughly","responsibles":2,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/authorization.md)"},{"description":"CORS headers do not use `*`","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cors.md)"},{"description":"CSP headers are properly configured (no `unsafe-inline` or `unsafe-eval`)","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/csp.md)"},{"description":"DoS defense mechanism is implemented","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/dos.md)"},{"description":"YAML/XML parsing is not used or used YAML/XML parsers have disabled DTD","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/dos.md)"},{"description":"The app implements CSRF prevention","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/csrf.md)"},{"description":"The app has a rate limitter","responsibles":1,"more":""},{"description":"The app has disabled GraphQL introspection and schema registry","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/graphql.md)"},{"description":"The app has set GraphQL complexity query limits","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/graphql.md)"},{"description":"`sitemap.xml` does not leak any routes with sensitive data","responsibles":1,"more":""},{"description":"Cloud storage is (private) configured to not leak any sensitive data publicly","responsibles":1,"more":""},{"description":"Security Dashboard checks weekly vulnerable dependencies https://dep.panter.swiss/","responsibles":1,"more":""},{"description":"The app has `.well-known/security.txt` https://securitytxt.org/","responsibles":1,"more":""}]');
|
|
71257
|
-
|
|
71258
|
-
/***/ }),
|
|
71259
|
-
|
|
71260
|
-
/***/ 4147:
|
|
71261
|
-
/***/ ((module) => {
|
|
71262
|
-
|
|
71263
|
-
"use strict";
|
|
71264
|
-
module.exports = JSON.parse('{"name":"@catladder/cli","description":"Panter cli tool for Kubernetes","author":"Marco Wettstein <maw@panter.ch>","homepage":"https://git.panter.ch/catladder/catladder/#readme","bugs":"https://git.panter.ch/catladder/catladder/issues","repository":{"type":"git","url":"git+https://git.panter.ch/catladder/catladder.git","directory":"cli"},"keywords":["GitLab","cloud","cli","gitlab-ci","ci/cd","pipeline","deployment","devops","automation","typescript"],"contributors":[{"name":"Marco Wettstein","email":"maw@panter.ch"},{"name":"Michael Leu","email":"leu@panter.ch"},{"name":"Luboš Matejčík","email":"lma@panter.ch"},{"name":"Kaspar Vollenweider","email":"vok@panter.ch"},{"name":"Silvan Adrian","email":"sia@panter.ch"},{"name":"Stefan Bakocs","email":"stb@panter.ch"},{"name":"Lukas Brezina","email":"brl@panter.ch"}],"license":"MIT","version":"0.0.0","scripts":{"lint":"eslint \\"src/**/*.ts\\"","lint:fix":"eslint \\"src/**/*.ts\\" --fix","test":"yarn run lint","build":"yarn build:compile && yarn build:bundle","build:bundle":"./scripts/bundle","build:compile":"yarn tsc","build:watch":"yarn tsc -w"},"bin":{"catci":"./bin/catci","catenv":"./bin/catenv","catladder":"./bin/catladder"},"engines":{"node":">=12.0.0"},"dependencies":{"ts-node":"^10.9.1"},"devDependencies":{"@catladder/pipeline":"0.0.0","@gitbeaker/rest":"^39.28.0","@kubernetes/client-node":"^0.16.2","@tsconfig/node14":"^1.0.1","@types/common-tags":"^1.8.0","@types/fs-extra":"^5.0.4","@types/js-yaml":"^4.0.5","@types/lodash":"^4.14.185","@types/memoizee":"^0.4.2","@types/node-fetch":"^2.1.4","@types/request":"^2.48.1","@types/tmp":"^0.2.3","@types/update-notifier":"^2.5.0","@types/vorpal":"^1.12.0","@types/websocket":"^0.0.40","@types/yargs":"^13.0.0","child-process-promise":"^2.2.1","clipboardy":"^2.0.0","command-exists-promise":"^2.0.2","common-tags":"^1.8.0","connection-string-parser":"^1.0.4","dayjs":"^1.10.4","eslint":"^8.7.0","fs-extra":"^7.0.1","gitlab":"^4.4.1","js-yaml":"^4.1.0","lodash":"^4.17.21","memoizee":"^0.4.14","node-fetch":"^2.3.0","open":"^8.4.0","prettier":"^2.5.1","prettier-plugin-sh":"^0.14.0","tmp-promise":"^2.0.2","ts-results-es":"^4.1.0-alpha.1","typescript":"^4.5.4","vorpal":"^1.12.0"}}');
|
|
71864
|
+
module.exports = JSON.parse('[{"description":"No API keys or secrets are stored in repository","responsibles":1,"more":""},{"description":"The app does not provide password login","responsibles":1,"more":""},{"description":"Passwords are not stored","responsibles":1,"more":""},{"description":"No sensitive information (passwords, keys, user data, ...) is logged or traced","responsibles":1,"more":"[Logging guide](https://www.notion.so/panterch/Long-story-logging-022722bb878f4724ae5b49e17667b630?pvs=4#9e5a36b7158a4953b73ec6a345bd8989), [Tracing guide](https://www.notion.so/panterch/Long-story-tracing-d8a9ec1ac2ff4fa78cefa8991233224e?pvs=4#535121b5bf9741fbaf8654b4b64d879d)"},{"description":"Passwords are stored hashed with salt and salt is not stored in the repository","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/hash.md)"},{"description":"Input that ends up in DOM is properly sanitized","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/xss.md)"},{"description":"All user inputs have reasonable validations","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/validation.md)"},{"description":"The app is not using cookies","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"The app is using cookies and cookies are properly configured","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"The app uses JWT with a secret and the secret is not stored in the repository","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"Authorization and user roles (RBAC) were reviewed thoroughly","responsibles":2,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/authorization.md)"},{"description":"CORS headers do not use `*`","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cors.md)"},{"description":"CSP headers are properly configured (no `unsafe-inline` or `unsafe-eval`)","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/csp.md)"},{"description":"DoS defense mechanism is implemented","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/dos.md)"},{"description":"YAML/XML parsing is not used or used YAML/XML parsers have disabled DTD","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/dos.md)"},{"description":"The app implements CSRF prevention","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/csrf.md)"},{"description":"The app has a rate limitter","responsibles":1,"more":""},{"description":"The app has disabled GraphQL introspection and schema registry","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/graphql.md)"},{"description":"The app has set GraphQL complexity query limits","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/graphql.md)"},{"description":"`sitemap.xml` does not leak any routes with sensitive data","responsibles":1,"more":""},{"description":"Cloud storage is (private) configured to not leak any sensitive data publicly","responsibles":1,"more":""},{"description":"Security Dashboard checks weekly vulnerable dependencies https://dep.panter.swiss/","responsibles":1,"more":""},{"description":"The app has `.well-known/security.txt` https://securitytxt.org/","responsibles":1,"more":""}]');
|
|
71265
71865
|
|
|
71266
71866
|
/***/ })
|
|
71267
71867
|
|
|
@@ -71379,8 +71979,8 @@ var __webpack_exports__ = {};
|
|
|
71379
71979
|
"use strict";
|
|
71380
71980
|
var exports = __webpack_exports__;
|
|
71381
71981
|
|
|
71382
|
-
exports
|
|
71383
|
-
|
|
71982
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
71983
|
+
const catci_1 = __nccwpck_require__(1123);
|
|
71384
71984
|
(0, catci_1.runCatCi)();
|
|
71385
71985
|
//# sourceMappingURL=catci.js.map
|
|
71386
71986
|
})();
|