skuba 11.1.0-jest30-20250620003740 → 12.0.0-enable-js-extensions-20250704134302
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/jest/moduleNameMapper.js +4 -1
- package/lib/api/buildkite/annotate.js +2 -2
- package/lib/api/buildkite/annotate.js.map +1 -1
- package/lib/api/buildkite/index.d.ts +3 -3
- package/lib/api/buildkite/index.js +2 -2
- package/lib/api/buildkite/index.js.map +1 -1
- package/lib/api/git/commitAllChanges.d.ts +2 -2
- package/lib/api/git/commitAllChanges.js +3 -3
- package/lib/api/git/commitAllChanges.js.map +1 -1
- package/lib/api/git/getChangedFiles.js +1 -1
- package/lib/api/git/getChangedFiles.js.map +1 -1
- package/lib/api/git/index.d.ts +12 -12
- package/lib/api/git/index.js +11 -11
- package/lib/api/git/index.js.map +1 -1
- package/lib/api/git/pull.js +2 -2
- package/lib/api/git/pull.js.map +1 -1
- package/lib/api/git/push.js +2 -2
- package/lib/api/git/push.js.map +1 -1
- package/lib/api/git/reset.js +1 -1
- package/lib/api/git/reset.js.map +1 -1
- package/lib/api/github/checkRun.js +4 -4
- package/lib/api/github/checkRun.js.map +1 -1
- package/lib/api/github/environment.js +1 -1
- package/lib/api/github/environment.js.map +1 -1
- package/lib/api/github/index.d.ts +7 -7
- package/lib/api/github/index.js +6 -6
- package/lib/api/github/index.js.map +1 -1
- package/lib/api/github/issueComment.js +4 -4
- package/lib/api/github/issueComment.js.map +1 -1
- package/lib/api/github/pullRequest.js +3 -3
- package/lib/api/github/pullRequest.js.map +1 -1
- package/lib/api/github/push.d.ts +1 -1
- package/lib/api/github/push.js +3 -3
- package/lib/api/github/push.js.map +1 -1
- package/lib/api/jest/index.js +2 -2
- package/lib/api/jest/index.js.map +1 -1
- package/lib/api/net/compose.js +1 -1
- package/lib/api/net/compose.js.map +1 -1
- package/lib/api/net/index.d.ts +1 -1
- package/lib/api/net/index.js +1 -1
- package/lib/api/net/index.js.map +1 -1
- package/lib/api/net/waitFor.d.ts +1 -1
- package/lib/api/net/waitFor.js +2 -2
- package/lib/api/net/waitFor.js.map +1 -1
- package/lib/cli/adapter/eslint.d.ts +1 -1
- package/lib/cli/adapter/eslint.js +1 -1
- package/lib/cli/adapter/eslint.js.map +1 -1
- package/lib/cli/adapter/prettier.d.ts +1 -1
- package/lib/cli/adapter/prettier.js +4 -4
- package/lib/cli/adapter/prettier.js.map +2 -2
- package/lib/cli/build/assets.d.ts +1 -1
- package/lib/cli/build/assets.js +4 -4
- package/lib/cli/build/assets.js.map +1 -1
- package/lib/cli/build/esbuild.js +3 -3
- package/lib/cli/build/esbuild.js.map +1 -1
- package/lib/cli/build/index.js +6 -6
- package/lib/cli/build/index.js.map +1 -1
- package/lib/cli/build/tsc.d.ts +1 -1
- package/lib/cli/build/tsc.js +2 -2
- package/lib/cli/build/tsc.js.map +1 -1
- package/lib/cli/buildPackage/index.js +3 -3
- package/lib/cli/buildPackage/index.js.map +1 -1
- package/lib/cli/configure/analyseConfiguration.d.ts +2 -2
- package/lib/cli/configure/analyseConfiguration.js +2 -2
- package/lib/cli/configure/analyseConfiguration.js.map +1 -1
- package/lib/cli/configure/analyseDependencies.d.ts +1 -1
- package/lib/cli/configure/analyseDependencies.js +6 -6
- package/lib/cli/configure/analyseDependencies.js.map +1 -1
- package/lib/cli/configure/analysis/files.js +1 -1
- package/lib/cli/configure/analysis/files.js.map +1 -1
- package/lib/cli/configure/analysis/git.js +2 -2
- package/lib/cli/configure/analysis/git.js.map +1 -1
- package/lib/cli/configure/analysis/package.d.ts +1 -1
- package/lib/cli/configure/analysis/package.js +2 -2
- package/lib/cli/configure/analysis/package.js.map +1 -1
- package/lib/cli/configure/analysis/project.d.ts +1 -1
- package/lib/cli/configure/analysis/project.js +4 -4
- package/lib/cli/configure/analysis/project.js.map +2 -2
- package/lib/cli/configure/dependencies/index.d.ts +5 -5
- package/lib/cli/configure/dependencies/index.js +5 -5
- package/lib/cli/configure/dependencies/index.js.map +1 -1
- package/lib/cli/configure/dependencies/seekDatadogCustomMetrics.d.ts +2 -2
- package/lib/cli/configure/dependencies/seekDatadogCustomMetrics.js +1 -1
- package/lib/cli/configure/dependencies/seekDatadogCustomMetrics.js.map +1 -1
- package/lib/cli/configure/dependencies/seekKoala.d.ts +2 -2
- package/lib/cli/configure/dependencies/seekKoala.js +1 -1
- package/lib/cli/configure/dependencies/seekKoala.js.map +1 -1
- package/lib/cli/configure/dependencies/skuba.d.ts +2 -2
- package/lib/cli/configure/dependencies/skuba.js +1 -1
- package/lib/cli/configure/dependencies/skuba.js.map +1 -1
- package/lib/cli/configure/dependencies/skubaDeps.d.ts +1 -1
- package/lib/cli/configure/dependencies/skubaDeps.js.map +1 -1
- package/lib/cli/configure/dependencies/skubaDive.d.ts +2 -2
- package/lib/cli/configure/dependencies/skubaDive.js +1 -1
- package/lib/cli/configure/dependencies/skubaDive.js.map +1 -1
- package/lib/cli/configure/ensureTemplateCompletion.d.ts +1 -1
- package/lib/cli/configure/ensureTemplateCompletion.js +6 -6
- package/lib/cli/configure/ensureTemplateCompletion.js.map +1 -1
- package/lib/cli/configure/getEntryPoint.d.ts +2 -2
- package/lib/cli/configure/getEntryPoint.js +3 -3
- package/lib/cli/configure/getEntryPoint.js.map +1 -1
- package/lib/cli/configure/getProjectType.d.ts +2 -2
- package/lib/cli/configure/getProjectType.js +3 -3
- package/lib/cli/configure/getProjectType.js.map +1 -1
- package/lib/cli/configure/index.js +14 -14
- package/lib/cli/configure/index.js.map +1 -1
- package/lib/cli/configure/modules/eslint.d.ts +1 -1
- package/lib/cli/configure/modules/eslint.js +4 -4
- package/lib/cli/configure/modules/eslint.js.map +1 -1
- package/lib/cli/configure/modules/ignore.d.ts +1 -1
- package/lib/cli/configure/modules/ignore.js +2 -2
- package/lib/cli/configure/modules/ignore.js.map +1 -1
- package/lib/cli/configure/modules/index.d.ts +1 -1
- package/lib/cli/configure/modules/index.js +10 -10
- package/lib/cli/configure/modules/index.js.map +1 -1
- package/lib/cli/configure/modules/jest.d.ts +1 -1
- package/lib/cli/configure/modules/jest.js +4 -4
- package/lib/cli/configure/modules/jest.js.map +1 -1
- package/lib/cli/configure/modules/nodemon.d.ts +1 -1
- package/lib/cli/configure/modules/nodemon.js +1 -1
- package/lib/cli/configure/modules/nodemon.js.map +1 -1
- package/lib/cli/configure/modules/package.d.ts +1 -1
- package/lib/cli/configure/modules/package.js +4 -4
- package/lib/cli/configure/modules/package.js.map +1 -1
- package/lib/cli/configure/modules/prettier.d.ts +1 -1
- package/lib/cli/configure/modules/prettier.js +4 -4
- package/lib/cli/configure/modules/prettier.js.map +1 -1
- package/lib/cli/configure/modules/renovate.d.ts +1 -1
- package/lib/cli/configure/modules/renovate.js +5 -5
- package/lib/cli/configure/modules/renovate.js.map +1 -1
- package/lib/cli/configure/modules/serverless.d.ts +1 -1
- package/lib/cli/configure/modules/serverless.js.map +1 -1
- package/lib/cli/configure/modules/skubaDive.d.ts +1 -1
- package/lib/cli/configure/modules/skubaDive.js +4 -4
- package/lib/cli/configure/modules/skubaDive.js.map +1 -1
- package/lib/cli/configure/modules/tslint.d.ts +1 -1
- package/lib/cli/configure/modules/tslint.js +1 -1
- package/lib/cli/configure/modules/tslint.js.map +1 -1
- package/lib/cli/configure/processing/deleteFiles.d.ts +1 -1
- package/lib/cli/configure/processing/deleteFiles.js.map +1 -1
- package/lib/cli/configure/processing/json.js +2 -2
- package/lib/cli/configure/processing/json.js.map +1 -1
- package/lib/cli/configure/processing/loadFiles.d.ts +1 -1
- package/lib/cli/configure/processing/loadFiles.js.map +1 -1
- package/lib/cli/configure/processing/module.d.ts +1 -1
- package/lib/cli/configure/processing/module.js +1 -1
- package/lib/cli/configure/processing/module.js.map +1 -1
- package/lib/cli/configure/processing/package.d.ts +1 -1
- package/lib/cli/configure/processing/package.js +2 -2
- package/lib/cli/configure/processing/package.js.map +1 -1
- package/lib/cli/configure/processing/prettier.js +1 -1
- package/lib/cli/configure/processing/prettier.js.map +1 -1
- package/lib/cli/configure/processing/typescript.js +1 -1
- package/lib/cli/configure/processing/typescript.js.map +1 -1
- package/lib/cli/configure/types.d.ts +2 -2
- package/lib/cli/configure/types.js.map +1 -1
- package/lib/cli/format/index.js +5 -5
- package/lib/cli/format/index.js.map +1 -1
- package/lib/cli/help/index.js +2 -2
- package/lib/cli/help/index.js.map +1 -1
- package/lib/cli/init/getConfig.d.ts +3 -3
- package/lib/cli/init/getConfig.js +9 -9
- package/lib/cli/init/getConfig.js.map +1 -1
- package/lib/cli/init/git.js +2 -2
- package/lib/cli/init/git.js.map +1 -1
- package/lib/cli/init/index.js +15 -15
- package/lib/cli/init/index.js.map +1 -1
- package/lib/cli/init/prompts.d.ts +1 -1
- package/lib/cli/init/prompts.js +2 -2
- package/lib/cli/init/prompts.js.map +1 -1
- package/lib/cli/init/types.js +2 -2
- package/lib/cli/init/types.js.map +1 -1
- package/lib/cli/init/writePackageJson.d.ts +1 -1
- package/lib/cli/init/writePackageJson.js +2 -2
- package/lib/cli/init/writePackageJson.js.map +1 -1
- package/lib/cli/lint/annotate/buildkite/eslint.d.ts +1 -1
- package/lib/cli/lint/annotate/buildkite/eslint.js +1 -1
- package/lib/cli/lint/annotate/buildkite/eslint.js.map +1 -1
- package/lib/cli/lint/annotate/buildkite/index.d.ts +4 -4
- package/lib/cli/lint/annotate/buildkite/index.js +5 -5
- package/lib/cli/lint/annotate/buildkite/index.js.map +1 -1
- package/lib/cli/lint/annotate/buildkite/internal.d.ts +1 -1
- package/lib/cli/lint/annotate/buildkite/internal.js +1 -1
- package/lib/cli/lint/annotate/buildkite/internal.js.map +1 -1
- package/lib/cli/lint/annotate/buildkite/prettier.d.ts +1 -1
- package/lib/cli/lint/annotate/buildkite/prettier.js +1 -1
- package/lib/cli/lint/annotate/buildkite/prettier.js.map +1 -1
- package/lib/cli/lint/annotate/buildkite/tsc.d.ts +1 -1
- package/lib/cli/lint/annotate/buildkite/tsc.js +1 -1
- package/lib/cli/lint/annotate/buildkite/tsc.js.map +1 -1
- package/lib/cli/lint/annotate/github/eslint.d.ts +2 -2
- package/lib/cli/lint/annotate/github/eslint.js.map +1 -1
- package/lib/cli/lint/annotate/github/index.d.ts +4 -4
- package/lib/cli/lint/annotate/github/index.js +6 -6
- package/lib/cli/lint/annotate/github/index.js.map +2 -2
- package/lib/cli/lint/annotate/github/internal.d.ts +2 -2
- package/lib/cli/lint/annotate/github/internal.js.map +1 -1
- package/lib/cli/lint/annotate/github/prettier.d.ts +2 -2
- package/lib/cli/lint/annotate/github/prettier.js.map +1 -1
- package/lib/cli/lint/annotate/github/tsc.d.ts +2 -2
- package/lib/cli/lint/annotate/github/tsc.js.map +1 -1
- package/lib/cli/lint/annotate/index.d.ts +4 -4
- package/lib/cli/lint/annotate/index.js +2 -2
- package/lib/cli/lint/annotate/index.js.map +1 -1
- package/lib/cli/lint/autofix.d.ts +2 -2
- package/lib/cli/lint/autofix.js +11 -11
- package/lib/cli/lint/autofix.js.map +1 -1
- package/lib/cli/lint/eslint.d.ts +2 -2
- package/lib/cli/lint/eslint.js +3 -3
- package/lib/cli/lint/eslint.js.map +1 -1
- package/lib/cli/lint/external.d.ts +3 -3
- package/lib/cli/lint/external.js +3 -3
- package/lib/cli/lint/external.js.map +1 -1
- package/lib/cli/lint/index.js +8 -8
- package/lib/cli/lint/index.js.map +1 -1
- package/lib/cli/lint/internal.d.ts +1 -1
- package/lib/cli/lint/internal.js +5 -5
- package/lib/cli/lint/internal.js.map +1 -1
- package/lib/cli/lint/internalLints/detectBadCodeowners.d.ts +2 -2
- package/lib/cli/lint/internalLints/detectBadCodeowners.js +2 -2
- package/lib/cli/lint/internalLints/detectBadCodeowners.js.map +1 -1
- package/lib/cli/lint/internalLints/noSkubaTemplateJs.d.ts +2 -2
- package/lib/cli/lint/internalLints/noSkubaTemplateJs.js +2 -2
- package/lib/cli/lint/internalLints/noSkubaTemplateJs.js.map +1 -1
- package/lib/cli/lint/internalLints/patchRenovateConfig.d.ts +2 -2
- package/lib/cli/lint/internalLints/patchRenovateConfig.js +5 -5
- package/lib/cli/lint/internalLints/patchRenovateConfig.js.map +1 -1
- package/lib/cli/lint/internalLints/refreshConfigFiles.d.ts +3 -3
- package/lib/cli/lint/internalLints/refreshConfigFiles.js +7 -7
- package/lib/cli/lint/internalLints/refreshConfigFiles.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/index.d.ts +3 -3
- package/lib/cli/lint/internalLints/upgrade/index.js +4 -4
- package/lib/cli/lint/internalLints/upgrade/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/index.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/index.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/index.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/index.js +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.js +4 -4
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/addEmptyExports.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/addEmptyExports.js +4 -4
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/addEmptyExports.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/index.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/index.js +4 -4
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/index.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchDockerfile.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchDockerfile.js +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchDockerfile.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchServerListener.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchServerListener.js +3 -3
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchServerListener.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/index.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/index.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/index.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/index.js +5 -5
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/upgradeESLint.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/upgradeESLint.js +5 -5
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/upgradeESLint.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/index.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/index.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/index.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/index.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/upgradeNode.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/upgradeNode.js +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/upgradeNode.js.map +2 -2
- package/lib/cli/lint/prettier.d.ts +2 -2
- package/lib/cli/lint/prettier.js +3 -3
- package/lib/cli/lint/prettier.js.map +1 -1
- package/lib/cli/lint/tsc.d.ts +1 -1
- package/lib/cli/lint/tsc.js +1 -1
- package/lib/cli/lint/tsc.js.map +1 -1
- package/lib/cli/migrate/index.js +2 -2
- package/lib/cli/migrate/index.js.map +1 -1
- package/lib/cli/migrate/nodeVersion/checks.js +1 -1
- package/lib/cli/migrate/nodeVersion/checks.js.map +1 -1
- package/lib/cli/migrate/nodeVersion/index.js +21 -21
- package/lib/cli/migrate/nodeVersion/index.js.map +2 -2
- package/lib/cli/node/index.js +3 -3
- package/lib/cli/node/index.js.map +1 -1
- package/lib/cli/release/index.js +1 -1
- package/lib/cli/release/index.js.map +1 -1
- package/lib/cli/start/index.js +4 -4
- package/lib/cli/start/index.js.map +1 -1
- package/lib/cli/test/reporters/github/annotations.d.ts +1 -1
- package/lib/cli/test/reporters/github/annotations.js.map +1 -1
- package/lib/cli/test/reporters/github/index.js +5 -5
- package/lib/cli/test/reporters/github/index.js.map +2 -2
- package/lib/cli/version/index.js +2 -2
- package/lib/cli/version/index.js.map +1 -1
- package/lib/index.d.ts +5 -5
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/skuba.js +8 -8
- package/lib/skuba.js.map +1 -1
- package/lib/utils/args.js +1 -1
- package/lib/utils/args.js.map +1 -1
- package/lib/utils/copy.js +2 -2
- package/lib/utils/copy.js.map +1 -1
- package/lib/utils/dir.js +2 -2
- package/lib/utils/dir.js.map +1 -1
- package/lib/utils/error.js +2 -2
- package/lib/utils/error.js.map +1 -1
- package/lib/utils/exec.d.ts +1 -1
- package/lib/utils/exec.js +2 -2
- package/lib/utils/exec.js.map +1 -1
- package/lib/utils/help.js +2 -2
- package/lib/utils/help.js.map +1 -1
- package/lib/utils/logo.js +3 -3
- package/lib/utils/logo.js.map +1 -1
- package/lib/utils/manifest.js +1 -1
- package/lib/utils/manifest.js.map +1 -1
- package/lib/utils/packageManager.js +1 -1
- package/lib/utils/packageManager.js.map +1 -1
- package/lib/utils/template.js +2 -2
- package/lib/utils/template.js.map +1 -1
- package/lib/utils/version.js +2 -2
- package/lib/utils/version.js.map +1 -1
- package/lib/utils/wait.js +2 -2
- package/lib/utils/wait.js.map +1 -1
- package/lib/utils/worker.d.ts +3 -3
- package/lib/utils/worker.js +1 -1
- package/lib/utils/worker.js.map +1 -1
- package/lib/wrapper/functionHandler.js +3 -3
- package/lib/wrapper/functionHandler.js.map +1 -1
- package/lib/wrapper/http.js +1 -1
- package/lib/wrapper/http.js.map +1 -1
- package/lib/wrapper/index.js +3 -3
- package/lib/wrapper/index.js.map +1 -1
- package/lib/wrapper/main.js +2 -2
- package/lib/wrapper/main.js.map +1 -1
- package/lib/wrapper/requestListener.js +2 -2
- package/lib/wrapper/requestListener.js.map +1 -1
- package/package.json +15 -15
- package/template/express-rest-api/.buildkite/pipeline.yml +1 -1
- package/template/express-rest-api/Dockerfile.dev-deps +1 -1
- package/template/express-rest-api/package.json +1 -1
- package/template/express-rest-api/src/app.test.ts +1 -1
- package/template/express-rest-api/src/app.ts +3 -3
- package/template/express-rest-api/src/framework/logging.ts +1 -1
- package/template/express-rest-api/src/framework/metrics.ts +2 -2
- package/template/express-rest-api/src/listen.ts +4 -4
- package/template/greeter/.buildkite/pipeline.yml +1 -1
- package/template/greeter/Dockerfile +1 -1
- package/template/greeter/package.json +2 -2
- package/template/greeter/src/app.test.ts +1 -1
- package/template/koa-rest-api/.buildkite/pipeline.yml +1 -1
- package/template/koa-rest-api/Dockerfile.dev-deps +1 -1
- package/template/koa-rest-api/package.json +7 -7
- package/template/koa-rest-api/src/api/healthCheck.ts +1 -1
- package/template/koa-rest-api/src/api/index.ts +3 -3
- package/template/koa-rest-api/src/api/jobs/getJobs.test.ts +2 -2
- package/template/koa-rest-api/src/api/jobs/getJobs.ts +4 -4
- package/template/koa-rest-api/src/api/jobs/index.ts +3 -3
- package/template/koa-rest-api/src/api/jobs/postJob.test.ts +4 -4
- package/template/koa-rest-api/src/api/jobs/postJob.ts +6 -6
- package/template/koa-rest-api/src/api/smokeTest.ts +2 -2
- package/template/koa-rest-api/src/app.test.ts +2 -2
- package/template/koa-rest-api/src/app.ts +3 -3
- package/template/koa-rest-api/src/config.ts +1 -1
- package/template/koa-rest-api/src/framework/logging.ts +22 -13
- package/template/koa-rest-api/src/framework/metrics.ts +2 -2
- package/template/koa-rest-api/src/framework/server.test.ts +95 -64
- package/template/koa-rest-api/src/framework/server.ts +3 -3
- package/template/koa-rest-api/src/framework/validation.test.ts +35 -35
- package/template/koa-rest-api/src/framework/validation.ts +15 -22
- package/template/koa-rest-api/src/listen.ts +4 -4
- package/template/koa-rest-api/src/storage/jobs.ts +1 -1
- package/template/koa-rest-api/src/testing/metrics.ts +1 -1
- package/template/koa-rest-api/src/testing/server.ts +1 -1
- package/template/koa-rest-api/src/testing/types.ts +2 -2
- package/template/koa-rest-api/src/types/jobs.ts +1 -1
- package/template/lambda-sqs-worker-cdk/.buildkite/pipeline.yml +2 -2
- package/template/lambda-sqs-worker-cdk/Dockerfile +1 -1
- package/template/lambda-sqs-worker-cdk/infra/__snapshots__/appStack.test.ts.snap +6 -0
- package/template/lambda-sqs-worker-cdk/infra/appStack.ts +1 -1
- package/template/lambda-sqs-worker-cdk/infra/index.ts +2 -2
- package/template/lambda-sqs-worker-cdk/package.json +5 -5
- package/template/lambda-sqs-worker-cdk/src/app.test.ts +81 -22
- package/template/lambda-sqs-worker-cdk/src/app.ts +10 -7
- package/template/lambda-sqs-worker-cdk/src/config.ts +1 -1
- package/template/lambda-sqs-worker-cdk/src/framework/handler.test.ts +38 -18
- package/template/lambda-sqs-worker-cdk/src/framework/handler.ts +2 -2
- package/template/lambda-sqs-worker-cdk/src/framework/logging.ts +23 -12
- package/template/lambda-sqs-worker-cdk/src/framework/metrics.ts +1 -1
- package/template/lambda-sqs-worker-cdk/src/framework/validation.test.ts +8 -11
- package/template/lambda-sqs-worker-cdk/src/framework/validation.ts +3 -7
- package/template/lambda-sqs-worker-cdk/src/mapping/jobScorer.ts +2 -2
- package/template/lambda-sqs-worker-cdk/src/services/jobScorer.test.ts +3 -3
- package/template/lambda-sqs-worker-cdk/src/services/jobScorer.ts +3 -3
- package/template/lambda-sqs-worker-cdk/src/services/pipelineEventSender.test.ts +3 -3
- package/template/lambda-sqs-worker-cdk/src/services/pipelineEventSender.ts +2 -2
- package/template/lambda-sqs-worker-cdk/src/testing/handler.ts +1 -1
- package/template/lambda-sqs-worker-cdk/src/testing/services.ts +2 -2
- package/template/lambda-sqs-worker-cdk/src/testing/types.ts +2 -2
- package/template/lambda-sqs-worker-cdk/src/types/jobScorer.ts +1 -1
- package/template/lambda-sqs-worker-cdk/src/types/pipelineEvents.ts +1 -1
- package/template/oss-npm-package/src/index.test.ts +1 -1
- package/template/private-npm-package/src/index.test.ts +1 -1
- package/template/koa-rest-api/src/testing/logging.ts +0 -16
- package/template/lambda-sqs-worker-cdk/src/testing/logging.ts +0 -19
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import Router from '@koa/router';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
3
|
+
import { metricsClient } from 'src/testing/metrics.js';
|
|
4
|
+
import { agentFromRouter } from 'src/testing/server.js';
|
|
5
|
+
import { chance } from 'src/testing/types.js';
|
|
6
|
+
import type { Middleware } from 'src/types/koa.js';
|
|
7
|
+
|
|
8
|
+
import { stdoutMock } from './logging.js';
|
|
8
9
|
|
|
9
10
|
const middleware = jest.fn<void, Parameters<Middleware>>();
|
|
10
11
|
|
|
@@ -15,10 +16,10 @@ const router = new Router()
|
|
|
15
16
|
const agent = agentFromRouter(router);
|
|
16
17
|
|
|
17
18
|
describe('createApp', () => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
afterEach(() => {
|
|
20
|
+
metricsClient.clear();
|
|
21
|
+
stdoutMock.clear();
|
|
22
|
+
});
|
|
22
23
|
|
|
23
24
|
it('handles root route', async () => {
|
|
24
25
|
middleware.mockImplementation((ctx) => (ctx.body = ''));
|
|
@@ -29,9 +30,7 @@ describe('createApp', () => {
|
|
|
29
30
|
.expect('server', /.+/)
|
|
30
31
|
.expect('x-api-version', /.+/);
|
|
31
32
|
|
|
32
|
-
expect(
|
|
33
|
-
|
|
34
|
-
expect(logger.info).not.toHaveBeenCalled();
|
|
33
|
+
expect(stdoutMock.calls).toHaveLength(0);
|
|
35
34
|
|
|
36
35
|
metricsClient.expectTagSubset(['env:test', 'version:test']);
|
|
37
36
|
metricsClient.expectTagSubset([
|
|
@@ -51,9 +50,7 @@ describe('createApp', () => {
|
|
|
51
50
|
.expect('server', /.+/)
|
|
52
51
|
.expect('x-api-version', /.+/);
|
|
53
52
|
|
|
54
|
-
expect(
|
|
55
|
-
|
|
56
|
-
expect(logger.info).not.toHaveBeenCalled();
|
|
53
|
+
expect(stdoutMock.calls).toHaveLength(0);
|
|
57
54
|
|
|
58
55
|
metricsClient.expectTagSubset([
|
|
59
56
|
'http_method:put',
|
|
@@ -72,13 +69,15 @@ describe('createApp', () => {
|
|
|
72
69
|
.expect('server', /.+/)
|
|
73
70
|
.expect('x-api-version', /.+/);
|
|
74
71
|
|
|
75
|
-
expect(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
72
|
+
expect(stdoutMock.calls).toMatchObject([
|
|
73
|
+
{
|
|
74
|
+
level: 30,
|
|
75
|
+
method: 'GET',
|
|
76
|
+
msg: 'Client error',
|
|
77
|
+
status: 404,
|
|
78
|
+
url: '/unknown',
|
|
79
|
+
},
|
|
80
|
+
]);
|
|
82
81
|
|
|
83
82
|
metricsClient.expectTagSubset([
|
|
84
83
|
'http_method:get',
|
|
@@ -102,13 +101,16 @@ describe('createApp', () => {
|
|
|
102
101
|
.expect('server', /.+/)
|
|
103
102
|
.expect('x-api-version', /.+/);
|
|
104
103
|
|
|
105
|
-
expect(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
104
|
+
expect(stdoutMock.calls).toMatchObject([
|
|
105
|
+
{
|
|
106
|
+
level: 30,
|
|
107
|
+
method: 'GET',
|
|
108
|
+
msg: 'Client error',
|
|
109
|
+
route: '/',
|
|
110
|
+
status: 400,
|
|
111
|
+
url: '/',
|
|
112
|
+
},
|
|
113
|
+
]);
|
|
112
114
|
|
|
113
115
|
metricsClient.expectTagSubset([
|
|
114
116
|
'http_method:get',
|
|
@@ -129,13 +131,20 @@ describe('createApp', () => {
|
|
|
129
131
|
.expect('server', /.+/)
|
|
130
132
|
.expect('x-api-version', /.+/);
|
|
131
133
|
|
|
132
|
-
expect(
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
expect(stdoutMock.calls).toMatchObject([
|
|
135
|
+
{
|
|
136
|
+
err: {
|
|
137
|
+
statusCode: 400,
|
|
138
|
+
type: 'BadRequestError',
|
|
139
|
+
},
|
|
140
|
+
level: 30,
|
|
141
|
+
method: 'GET',
|
|
142
|
+
msg: 'Client error',
|
|
143
|
+
route: '/',
|
|
144
|
+
status: 400,
|
|
145
|
+
url: '/',
|
|
146
|
+
},
|
|
147
|
+
]);
|
|
139
148
|
|
|
140
149
|
metricsClient.expectTagSubset([
|
|
141
150
|
'http_method:get',
|
|
@@ -156,13 +165,20 @@ describe('createApp', () => {
|
|
|
156
165
|
.expect('server', /.+/)
|
|
157
166
|
.expect('x-api-version', /.+/);
|
|
158
167
|
|
|
159
|
-
expect(
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
168
|
+
expect(stdoutMock.calls).toMatchObject([
|
|
169
|
+
{
|
|
170
|
+
err: {
|
|
171
|
+
statusCode: 500,
|
|
172
|
+
type: 'InternalServerError',
|
|
173
|
+
},
|
|
174
|
+
level: 50,
|
|
175
|
+
method: 'GET',
|
|
176
|
+
msg: 'Server error',
|
|
177
|
+
route: '/',
|
|
178
|
+
status: 500,
|
|
179
|
+
url: '/',
|
|
180
|
+
},
|
|
181
|
+
]);
|
|
166
182
|
|
|
167
183
|
metricsClient.expectTagSubset([
|
|
168
184
|
'http_method:get',
|
|
@@ -185,13 +201,20 @@ describe('createApp', () => {
|
|
|
185
201
|
.expect('server', /.+/)
|
|
186
202
|
.expect('x-api-version', /.+/);
|
|
187
203
|
|
|
188
|
-
expect(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
204
|
+
expect(stdoutMock.calls).toMatchObject([
|
|
205
|
+
{
|
|
206
|
+
err: {
|
|
207
|
+
message: err.message,
|
|
208
|
+
type: 'Error',
|
|
209
|
+
},
|
|
210
|
+
level: 50,
|
|
211
|
+
method: 'GET',
|
|
212
|
+
msg: 'Server error',
|
|
213
|
+
route: '/',
|
|
214
|
+
status: 500,
|
|
215
|
+
url: '/',
|
|
216
|
+
},
|
|
217
|
+
]);
|
|
195
218
|
|
|
196
219
|
metricsClient.expectTagSubset([
|
|
197
220
|
'http_method:get',
|
|
@@ -212,13 +235,17 @@ describe('createApp', () => {
|
|
|
212
235
|
.expect('server', /.+/)
|
|
213
236
|
.expect('x-api-version', /.+/);
|
|
214
237
|
|
|
215
|
-
expect(
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
238
|
+
expect(stdoutMock.calls).toMatchObject([
|
|
239
|
+
{
|
|
240
|
+
err: null,
|
|
241
|
+
level: 50,
|
|
242
|
+
method: 'GET',
|
|
243
|
+
msg: 'Server error',
|
|
244
|
+
route: '/',
|
|
245
|
+
status: 500,
|
|
246
|
+
url: '/',
|
|
247
|
+
},
|
|
248
|
+
]);
|
|
222
249
|
|
|
223
250
|
metricsClient.expectTagSubset([
|
|
224
251
|
'http_method:get',
|
|
@@ -241,13 +268,17 @@ describe('createApp', () => {
|
|
|
241
268
|
.expect('server', /.+/)
|
|
242
269
|
.expect('x-api-version', /.+/);
|
|
243
270
|
|
|
244
|
-
expect(
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
271
|
+
expect(stdoutMock.calls).toMatchObject([
|
|
272
|
+
{
|
|
273
|
+
err,
|
|
274
|
+
level: 50,
|
|
275
|
+
method: 'GET',
|
|
276
|
+
msg: 'Server error',
|
|
277
|
+
route: '/',
|
|
278
|
+
status: 500,
|
|
279
|
+
url: '/',
|
|
280
|
+
},
|
|
281
|
+
]);
|
|
251
282
|
|
|
252
283
|
metricsClient.expectTagSubset([
|
|
253
284
|
'http_method:get',
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
VersionMiddleware,
|
|
9
9
|
} from 'seek-koala';
|
|
10
10
|
|
|
11
|
-
import { config } from 'src/config';
|
|
12
|
-
import { contextMiddleware, logger } from 'src/framework/logging';
|
|
13
|
-
import { metricsClient } from 'src/framework/metrics';
|
|
11
|
+
import { config } from 'src/config.js';
|
|
12
|
+
import { contextMiddleware, logger } from 'src/framework/logging.js';
|
|
13
|
+
import { metricsClient } from 'src/framework/metrics.js';
|
|
14
14
|
|
|
15
15
|
const metrics = MetricsMiddleware.create(
|
|
16
16
|
metricsClient,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { agentFromMiddleware } from 'src/testing/server';
|
|
1
|
+
import { agentFromMiddleware } from 'src/testing/server.js';
|
|
2
2
|
import {
|
|
3
3
|
IdDescriptionSchema,
|
|
4
4
|
chance,
|
|
5
5
|
mockIdDescription,
|
|
6
|
-
} from 'src/testing/types';
|
|
6
|
+
} from 'src/testing/types.js';
|
|
7
7
|
|
|
8
|
-
import { jsonBodyParser } from './bodyParser';
|
|
9
|
-
import { validate } from './validation';
|
|
8
|
+
import { jsonBodyParser } from './bodyParser.js';
|
|
9
|
+
import { validate } from './validation.js';
|
|
10
10
|
|
|
11
11
|
const agent = agentFromMiddleware(jsonBodyParser, (ctx) => {
|
|
12
12
|
const result = validate({
|
|
@@ -43,15 +43,15 @@ describe('validate', () => {
|
|
|
43
43
|
.expect(422)
|
|
44
44
|
.expect(({ body }) =>
|
|
45
45
|
expect(body).toMatchInlineSnapshot(`
|
|
46
|
-
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
`),
|
|
46
|
+
{
|
|
47
|
+
"invalidFields": {
|
|
48
|
+
"~union0/id": "Invalid input: expected string, received null",
|
|
49
|
+
"~union1/id": "Invalid input: expected number, received null",
|
|
50
|
+
"~union1/summary": "Invalid input: expected string, received undefined",
|
|
51
|
+
},
|
|
52
|
+
"message": "Input validation failed",
|
|
53
|
+
}
|
|
54
|
+
`),
|
|
55
55
|
);
|
|
56
56
|
});
|
|
57
57
|
|
|
@@ -62,17 +62,17 @@ describe('validate', () => {
|
|
|
62
62
|
.expect(422)
|
|
63
63
|
.expect(({ body }) =>
|
|
64
64
|
expect(body).toMatchInlineSnapshot(`
|
|
65
|
-
{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
`),
|
|
65
|
+
{
|
|
66
|
+
"invalidFields": {
|
|
67
|
+
"~union0/description~union0": "Invalid input: expected string, received undefined",
|
|
68
|
+
"~union0/description~union1": "Invalid input: expected object, received undefined",
|
|
69
|
+
"~union0/id": "Invalid input: expected string, received undefined",
|
|
70
|
+
"~union1/id": "Invalid input: expected number, received undefined",
|
|
71
|
+
"~union1/summary": "Invalid input: expected string, received undefined",
|
|
72
|
+
},
|
|
73
|
+
"message": "Input validation failed",
|
|
74
|
+
}
|
|
75
|
+
`),
|
|
76
76
|
));
|
|
77
77
|
|
|
78
78
|
it('blocks invalid nested union prop', () => {
|
|
@@ -89,17 +89,17 @@ describe('validate', () => {
|
|
|
89
89
|
.expect(422)
|
|
90
90
|
.expect(({ body }) =>
|
|
91
91
|
expect(body).toMatchInlineSnapshot(`
|
|
92
|
-
{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
`),
|
|
92
|
+
{
|
|
93
|
+
"invalidFields": {
|
|
94
|
+
"~union0/description~union0": "Invalid input: expected string, received object",
|
|
95
|
+
"~union0/description~union1/content": "Invalid input: expected string, received undefined",
|
|
96
|
+
"~union0/id": "Invalid input: expected string, received null",
|
|
97
|
+
"~union1/id": "Invalid input: expected number, received null",
|
|
98
|
+
"~union1/summary": "Invalid input: expected string, received undefined",
|
|
99
|
+
},
|
|
100
|
+
"message": "Input validation failed",
|
|
101
|
+
}
|
|
102
|
+
`),
|
|
103
103
|
);
|
|
104
104
|
});
|
|
105
105
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ErrorMiddleware } from 'seek-koala';
|
|
2
|
-
import {
|
|
2
|
+
import type { core, z } from 'zod/v4';
|
|
3
3
|
|
|
4
|
-
import type { Context } from 'src/types/koa';
|
|
4
|
+
import type { Context } from 'src/types/koa.js';
|
|
5
5
|
|
|
6
6
|
type InvalidFields = Record<string, string>;
|
|
7
7
|
|
|
@@ -35,41 +35,38 @@ type InvalidFields = Record<string, string>;
|
|
|
35
35
|
* @see [union error example](./validation.test.ts)
|
|
36
36
|
*/
|
|
37
37
|
const parseInvalidFieldsFromError = (err: z.ZodError): InvalidFields =>
|
|
38
|
-
Object.fromEntries(parseTuples(err
|
|
38
|
+
Object.fromEntries(parseTuples(err.issues));
|
|
39
39
|
|
|
40
40
|
const parseTuples = (
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
errors: core.$ZodIssue[],
|
|
42
|
+
basePath: Array<string | number | symbol> = [],
|
|
43
|
+
unions: Record<number, number[]> = {},
|
|
43
44
|
): Array<readonly [string, string]> =>
|
|
44
45
|
errors.flatMap((issue) => {
|
|
45
|
-
if (issue.code ===
|
|
46
|
-
return issue.
|
|
47
|
-
parseTuples(err, {
|
|
46
|
+
if (issue.code === 'invalid_union') {
|
|
47
|
+
return issue.errors.flatMap((err, idx) =>
|
|
48
|
+
parseTuples(err, issue.path, {
|
|
48
49
|
...unions,
|
|
49
50
|
[issue.path.length]: [...(unions[issue.path.length] ?? []), idx],
|
|
50
51
|
}),
|
|
51
52
|
);
|
|
52
53
|
}
|
|
53
54
|
|
|
54
|
-
const path = ['', ...issue.path]
|
|
55
|
+
const path = ['', ...basePath, ...issue.path]
|
|
55
56
|
.map((prop, idx) => [prop, ...(unions[idx] ?? [])].join('~union'))
|
|
56
57
|
.join('/');
|
|
57
58
|
|
|
58
59
|
return [[path, issue.message]] as const;
|
|
59
60
|
});
|
|
60
61
|
|
|
61
|
-
export const validate = <
|
|
62
|
-
Output,
|
|
63
|
-
Def extends z.ZodTypeDef = z.ZodTypeDef,
|
|
64
|
-
Input = Output,
|
|
65
|
-
>({
|
|
62
|
+
export const validate = <Output, Input = Output>({
|
|
66
63
|
ctx,
|
|
67
64
|
input,
|
|
68
65
|
schema,
|
|
69
66
|
}: {
|
|
70
67
|
ctx: Context;
|
|
71
68
|
input: unknown;
|
|
72
|
-
schema: z.ZodSchema<Output,
|
|
69
|
+
schema: z.ZodSchema<Output, Input>;
|
|
73
70
|
}): Output => {
|
|
74
71
|
const parseResult = schema.safeParse(input);
|
|
75
72
|
if (parseResult.success === false) {
|
|
@@ -85,15 +82,11 @@ export const validate = <
|
|
|
85
82
|
return parseResult.data;
|
|
86
83
|
};
|
|
87
84
|
|
|
88
|
-
export const validateRequestBody = <
|
|
89
|
-
Output,
|
|
90
|
-
Def extends z.ZodTypeDef = z.ZodTypeDef,
|
|
91
|
-
Input = Output,
|
|
92
|
-
>(
|
|
85
|
+
export const validateRequestBody = <Output, Input = Output>(
|
|
93
86
|
ctx: Context,
|
|
94
|
-
schema: z.ZodSchema<Output,
|
|
87
|
+
schema: z.ZodSchema<Output, Input>,
|
|
95
88
|
): Output =>
|
|
96
|
-
validate<Output,
|
|
89
|
+
validate<Output, Input>({
|
|
97
90
|
ctx,
|
|
98
91
|
input: ctx.request.body as unknown,
|
|
99
92
|
schema,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import './register';
|
|
1
|
+
import './register.js';
|
|
2
2
|
|
|
3
|
-
import app from './app';
|
|
4
|
-
import { config } from './config';
|
|
5
|
-
import { logger } from './framework/logging';
|
|
3
|
+
import app from './app.js';
|
|
4
|
+
import { config } from './config.js';
|
|
5
|
+
import { logger } from './framework/logging.js';
|
|
6
6
|
|
|
7
7
|
// This implements a minimal version of `koa-cluster`'s interface
|
|
8
8
|
// If your application is deployed with more than 1 vCPU you can delete this
|
|
@@ -2,7 +2,7 @@ import type Router from '@koa/router';
|
|
|
2
2
|
import type Koa from 'koa';
|
|
3
3
|
import request from 'supertest';
|
|
4
4
|
|
|
5
|
-
import { createApp } from 'src/framework/server';
|
|
5
|
+
import { createApp } from 'src/framework/server.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Create a new SuperTest agent from a Koa application.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Chance } from 'chance';
|
|
2
|
-
import { z } from 'zod';
|
|
2
|
+
import { z } from 'zod/v4';
|
|
3
3
|
|
|
4
|
-
import type { JobInput } from 'src/types/jobs';
|
|
4
|
+
import type { JobInput } from 'src/types/jobs.js';
|
|
5
5
|
|
|
6
6
|
export type IdDescription = z.infer<typeof IdDescriptionSchema>;
|
|
7
7
|
|
|
@@ -23,7 +23,7 @@ configs:
|
|
|
23
23
|
concurrency: 1
|
|
24
24
|
plugins:
|
|
25
25
|
- *docker-ecr-cache
|
|
26
|
-
- docker-compose#v5.
|
|
26
|
+
- docker-compose#v5.10.0:
|
|
27
27
|
dependencies: false
|
|
28
28
|
run: app
|
|
29
29
|
environment:
|
|
@@ -52,7 +52,7 @@ steps:
|
|
|
52
52
|
GET_NPM_TOKEN: please
|
|
53
53
|
plugins:
|
|
54
54
|
- *docker-ecr-cache
|
|
55
|
-
- docker-compose#v5.
|
|
55
|
+
- docker-compose#v5.10.0:
|
|
56
56
|
run: app
|
|
57
57
|
environment:
|
|
58
58
|
- GITHUB_API_TOKEN
|
|
@@ -369,6 +369,9 @@ exports[`returns expected CloudFormation stack for dev 1`] = `
|
|
|
369
369
|
"Type": "AWS::Lambda::EventSourceMapping",
|
|
370
370
|
},
|
|
371
371
|
"workerCurrentVersionxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx": {
|
|
372
|
+
"Metadata": {
|
|
373
|
+
"aws:cdk:do-not-refactor": true,
|
|
374
|
+
},
|
|
372
375
|
"Properties": {
|
|
373
376
|
"FunctionName": {
|
|
374
377
|
"Ref": "worker28EA3E30",
|
|
@@ -1099,6 +1102,9 @@ exports[`returns expected CloudFormation stack for prod 1`] = `
|
|
|
1099
1102
|
"Type": "AWS::Lambda::EventSourceMapping",
|
|
1100
1103
|
},
|
|
1101
1104
|
"workerCurrentVersionxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx": {
|
|
1105
|
+
"Metadata": {
|
|
1106
|
+
"aws:cdk:do-not-refactor": true,
|
|
1107
|
+
},
|
|
1102
1108
|
"Properties": {
|
|
1103
1109
|
"FunctionName": {
|
|
1104
1110
|
"Ref": "worker28EA3E30",
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import type { Construct } from 'constructs';
|
|
17
17
|
import { DatadogLambda } from 'datadog-cdk-constructs-v2';
|
|
18
18
|
|
|
19
|
-
import { config } from './config';
|
|
19
|
+
import { config } from './config.js';
|
|
20
20
|
|
|
21
21
|
// Updated by https://github.com/seek-oss/rynovate
|
|
22
22
|
const DATADOG_EXTENSION_LAYER_VERSION = 64;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HookStack } from '@seek/aws-codedeploy-infra';
|
|
2
2
|
import { App } from 'aws-cdk-lib';
|
|
3
3
|
|
|
4
|
-
import { AppStack } from './appStack';
|
|
5
|
-
import { config } from './config';
|
|
4
|
+
import { AppStack } from './appStack.js';
|
|
5
|
+
import { config } from './config.js';
|
|
6
6
|
|
|
7
7
|
const app = new App();
|
|
8
8
|
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"@aws-sdk/client-codedeploy": "^3.363.0",
|
|
18
18
|
"@aws-sdk/client-lambda": "^3.363.0",
|
|
19
19
|
"@aws-sdk/client-sns": "^3.363.0",
|
|
20
|
-
"@seek/aws-codedeploy-hooks": "^
|
|
20
|
+
"@seek/aws-codedeploy-hooks": "^2.0.0",
|
|
21
21
|
"@seek/logger": "^10.0.0",
|
|
22
22
|
"datadog-lambda-js": "^10.0.0",
|
|
23
23
|
"dd-trace": "^5.0.0",
|
|
24
24
|
"skuba-dive": "^2.0.0",
|
|
25
|
-
"zod": "^3.
|
|
25
|
+
"zod": "^3.25.67"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@seek/aws-codedeploy-infra": "^
|
|
28
|
+
"@seek/aws-codedeploy-infra": "^3.0.0",
|
|
29
29
|
"@types/aws-lambda": "^8.10.82",
|
|
30
30
|
"@types/chance": "^1.1.3",
|
|
31
31
|
"@types/node": "^22.13.10",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"constructs": "^10.0.17",
|
|
38
38
|
"datadog-cdk-constructs-v2": "^2.0.0",
|
|
39
39
|
"pino-pretty": "^13.0.0",
|
|
40
|
-
"skuba": "
|
|
40
|
+
"skuba": "12.0.0-enable-js-extensions-20250704134302"
|
|
41
41
|
},
|
|
42
|
-
"packageManager": "pnpm@10.12.
|
|
42
|
+
"packageManager": "pnpm@10.12.4",
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=22"
|
|
45
45
|
}
|