skuba 11.1.0-jest30-20250620003740 → 12.0.0-enforce-file-extensions-20250618112549
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/jest/transform.js +15 -1
- package/jest-preset.js +7 -4
- 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.d.ts +1 -1
- package/lib/cli/configure/processing/prettier.js +6 -8
- package/lib/cli/configure/processing/prettier.js.map +3 -3
- 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 +3 -3
- package/lib/cli/migrate/nodeVersion/index.js.map +1 -1
- 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/test/reporters/prettier/index.d.ts +4 -0
- package/lib/cli/test/reporters/prettier/index.js +67 -0
- package/lib/cli/test/reporters/prettier/index.js.map +7 -0
- 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 +12 -12
- 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/package.json +1 -1
- package/template/greeter/src/app.test.ts +1 -1
- 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 +3 -3
- 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/framework/logging.ts +1 -1
- package/template/koa-rest-api/src/framework/metrics.ts +2 -2
- package/template/koa-rest-api/src/framework/server.test.ts +5 -5
- package/template/koa-rest-api/src/framework/server.ts +3 -3
- package/template/koa-rest-api/src/framework/validation.test.ts +4 -4
- package/template/koa-rest-api/src/framework/validation.ts +1 -1
- 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/logging.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 +1 -1
- package/template/koa-rest-api/tsconfig.json +18 -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 +1 -1
- package/template/lambda-sqs-worker-cdk/src/app.test.ts +6 -6
- package/template/lambda-sqs-worker-cdk/src/app.ts +10 -7
- package/template/lambda-sqs-worker-cdk/src/framework/handler.test.ts +4 -4
- package/template/lambda-sqs-worker-cdk/src/framework/handler.ts +2 -2
- package/template/lambda-sqs-worker-cdk/src/framework/logging.ts +1 -1
- package/template/lambda-sqs-worker-cdk/src/framework/metrics.ts +1 -1
- package/template/lambda-sqs-worker-cdk/src/framework/validation.test.ts +2 -2
- 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/logging.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 +1 -1
- package/template/oss-npm-package/src/index.test.ts +1 -1
- package/template/private-npm-package/src/index.test.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/wrapper/requestListener.ts"],
|
|
4
|
-
"sourcesContent": ["import http from 'http';\n\nimport { isFunction, isIpPort, isObject } from '../utils/validation';\n\nimport { serveRequestListener, startServer } from './http';\n\n// Express compatibility\ninterface FunctionConfig extends http.RequestListener {\n port?: number;\n}\n\ninterface ObjectConfig {\n // Koa compatibility\n callback?: () => http.RequestListener;\n\n requestListener?: http.RequestListener;\n\n // Fastify compatibility\n server?: http.Server;\n\n default?: Promise<unknown>;\n port?: unknown;\n}\n\nconst isConfig = (\n data: unknown,\n): data is Promise<FunctionConfig> | Promise<ObjectConfig> =>\n isFunction(data) || isObject(data);\n\ninterface Args {\n availablePort?: number;\n entryPoint: unknown;\n}\n\n/**\n * Create an HTTP server that calls into an exported `http.RequestListener`.\n *\n * This supports Express and Koa applications out of the box.\n */\nexport const runRequestListener = async ({\n availablePort,\n entryPoint,\n}: Args): Promise<void> => {\n if (!isConfig(entryPoint)) {\n // Assume an executable script with weird exports\n return;\n }\n\n let config: FunctionConfig | ObjectConfig = await entryPoint;\n\n if (typeof config === 'object' && isConfig(config.default)) {\n // Prefer `export default` over `export =`\n config = await config.default;\n }\n\n if (Object.keys(config).length === 0) {\n // Assume an executable script with no exports\n return;\n }\n\n const port = isIpPort(config.port) ? config.port : availablePort;\n\n // http.Server support\n if (typeof config !== 'function' && config instanceof http.Server) {\n return startServer(config, port);\n }\n\n // Fastify workaround\n if (\n typeof config !== 'function' &&\n config.server &&\n config.server instanceof http.Server\n ) {\n return startServer(config.server, port);\n }\n\n const requestListener =\n typeof config === 'function'\n ? config\n : (config.requestListener ?? config.callback?.());\n\n if (typeof requestListener !== 'function') {\n // Assume an executable script with non-request listener exports\n return;\n }\n\n return serveRequestListener(requestListener, port);\n};\n"],
|
|
4
|
+
"sourcesContent": ["import http from 'http';\n\nimport { isFunction, isIpPort, isObject } from '../utils/validation.js';\n\nimport { serveRequestListener, startServer } from './http.js';\n\n// Express compatibility\ninterface FunctionConfig extends http.RequestListener {\n port?: number;\n}\n\ninterface ObjectConfig {\n // Koa compatibility\n callback?: () => http.RequestListener;\n\n requestListener?: http.RequestListener;\n\n // Fastify compatibility\n server?: http.Server;\n\n default?: Promise<unknown>;\n port?: unknown;\n}\n\nconst isConfig = (\n data: unknown,\n): data is Promise<FunctionConfig> | Promise<ObjectConfig> =>\n isFunction(data) || isObject(data);\n\ninterface Args {\n availablePort?: number;\n entryPoint: unknown;\n}\n\n/**\n * Create an HTTP server that calls into an exported `http.RequestListener`.\n *\n * This supports Express and Koa applications out of the box.\n */\nexport const runRequestListener = async ({\n availablePort,\n entryPoint,\n}: Args): Promise<void> => {\n if (!isConfig(entryPoint)) {\n // Assume an executable script with weird exports\n return;\n }\n\n let config: FunctionConfig | ObjectConfig = await entryPoint;\n\n if (typeof config === 'object' && isConfig(config.default)) {\n // Prefer `export default` over `export =`\n config = await config.default;\n }\n\n if (Object.keys(config).length === 0) {\n // Assume an executable script with no exports\n return;\n }\n\n const port = isIpPort(config.port) ? config.port : availablePort;\n\n // http.Server support\n if (typeof config !== 'function' && config instanceof http.Server) {\n return startServer(config, port);\n }\n\n // Fastify workaround\n if (\n typeof config !== 'function' &&\n config.server &&\n config.server instanceof http.Server\n ) {\n return startServer(config.server, port);\n }\n\n const requestListener =\n typeof config === 'function'\n ? config\n : (config.requestListener ?? config.callback?.());\n\n if (typeof requestListener !== 'function') {\n // Assume an executable script with non-request listener exports\n return;\n }\n\n return serveRequestListener(requestListener, port);\n};\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AAEjB,wBAA+C;AAE/C,IAAAA,eAAkD;AAoBlD,MAAM,WAAW,CACf,aAEA,8BAAW,IAAI,SAAK,4BAAS,IAAI;AAY5B,MAAM,qBAAqB,OAAO;AAAA,EACvC;AAAA,EACA;AACF,MAA2B;AACzB,MAAI,CAAC,SAAS,UAAU,GAAG;AAEzB;AAAA,EACF;AAEA,MAAI,SAAwC,MAAM;AAElD,MAAI,OAAO,WAAW,YAAY,SAAS,OAAO,OAAO,GAAG;AAE1D,aAAS,MAAM,OAAO;AAAA,EACxB;AAEA,MAAI,OAAO,KAAK,MAAM,EAAE,WAAW,GAAG;AAEpC;AAAA,EACF;AAEA,QAAM,WAAO,4BAAS,OAAO,IAAI,IAAI,OAAO,OAAO;AAGnD,MAAI,OAAO,WAAW,cAAc,kBAAkB,YAAAC,QAAK,QAAQ;AACjE,eAAO,0BAAY,QAAQ,IAAI;AAAA,EACjC;AAGA,MACE,OAAO,WAAW,cAClB,OAAO,UACP,OAAO,kBAAkB,YAAAA,QAAK,QAC9B;AACA,eAAO,0BAAY,OAAO,QAAQ,IAAI;AAAA,EACxC;AAEA,QAAM,kBACJ,OAAO,WAAW,aACd,SACC,OAAO,mBAAmB,OAAO,WAAW;AAEnD,MAAI,OAAO,oBAAoB,YAAY;AAEzC;AAAA,EACF;AAEA,aAAO,mCAAqB,iBAAiB,IAAI;AACnD;",
|
|
6
6
|
"names": ["import_http", "http"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skuba",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0-enforce-file-extensions-20250618112549",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "SEEK development toolkit for backend applications and packages",
|
|
6
6
|
"homepage": "https://github.com/seek-oss/skuba#readme",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@esbuild-plugins/tsconfig-paths": "^0.1.0",
|
|
54
54
|
"@eslint/migrate-config": "~1.3.8",
|
|
55
|
-
"@jest/types": "^
|
|
55
|
+
"@jest/types": "^29.0.0",
|
|
56
56
|
"@octokit/graphql": "^9.0.0",
|
|
57
57
|
"@octokit/graphql-schema": "^15.3.0",
|
|
58
58
|
"@octokit/rest": "^21.0.0",
|
|
59
59
|
"@octokit/types": "^14.0.0",
|
|
60
|
-
"@types/jest": "^
|
|
60
|
+
"@types/jest": "^29.0.0",
|
|
61
61
|
"@types/node": "^22.0.0",
|
|
62
62
|
"chalk": "^4.1.0",
|
|
63
63
|
"concurrently": "^9.0.0",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"ignore": "^7.0.0",
|
|
77
77
|
"is-installed-globally": "^0.4.0",
|
|
78
78
|
"isomorphic-git": "^1.11.1",
|
|
79
|
-
"jest": "^
|
|
80
|
-
"jest-watch-typeahead": "^
|
|
79
|
+
"jest": "^29.0.1",
|
|
80
|
+
"jest-watch-typeahead": "^2.1.1",
|
|
81
81
|
"lodash.mergewith": "^4.6.2",
|
|
82
82
|
"minimist": "^1.2.6",
|
|
83
83
|
"normalize-package-data": "^7.0.0",
|
|
@@ -91,20 +91,20 @@
|
|
|
91
91
|
"semantic-release": "^24.2.3",
|
|
92
92
|
"simple-git": "^3.5.0",
|
|
93
93
|
"ts-dedent": "^2.2.0",
|
|
94
|
-
"ts-jest": "^29.
|
|
94
|
+
"ts-jest": "^29.1.0",
|
|
95
95
|
"ts-node": "^10.9.2",
|
|
96
96
|
"tsconfig-paths": "^4.0.0",
|
|
97
97
|
"tsconfig-seek": "2.0.0",
|
|
98
98
|
"tsx": "^4.16.2",
|
|
99
99
|
"typescript": "~5.8.0",
|
|
100
100
|
"zod": "^3.22.4",
|
|
101
|
-
"eslint-config-skuba": "
|
|
101
|
+
"eslint-config-skuba": "7.0.0-enforce-file-extensions-20250618112549"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@changesets/cli": "2.29.3",
|
|
105
105
|
"@changesets/get-github-info": "0.6.0",
|
|
106
|
-
"@jest/reporters": "
|
|
107
|
-
"@jest/test-result": "
|
|
106
|
+
"@jest/reporters": "29.7.0",
|
|
107
|
+
"@jest/test-result": "29.7.0",
|
|
108
108
|
"@types/ejs": "3.1.5",
|
|
109
109
|
"@types/express": "5.0.1",
|
|
110
110
|
"@types/fs-extra": "11.0.4",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"enhanced-resolve": "5.18.1",
|
|
121
121
|
"express": "5.1.0",
|
|
122
122
|
"fastify": "5.3.2",
|
|
123
|
-
"jest-diff": "
|
|
123
|
+
"jest-diff": "29.7.0",
|
|
124
124
|
"jsonfile": "6.1.0",
|
|
125
125
|
"koa": "3.0.0",
|
|
126
126
|
"memfs": "4.17.1",
|
|
@@ -158,14 +158,14 @@
|
|
|
158
158
|
"format": "pnpm --silent skuba format && pnpm format:packages",
|
|
159
159
|
"format:packages": "pnpm --filter '!./template/**' format",
|
|
160
160
|
"lint": "pnpm --silent skuba lint && pnpm --silent lint:md",
|
|
161
|
-
"lint
|
|
161
|
+
"lint:all": "pnpm lint && pnpm lint:packages",
|
|
162
162
|
"lint:md": "remark --frail --quiet .",
|
|
163
163
|
"lint:packages": "pnpm --filter '!./template/**' lint",
|
|
164
164
|
"release": "pnpm --silent build && changeset publish",
|
|
165
165
|
"skuba": "pnpm --silent build && pnpm --silent skuba:exec",
|
|
166
166
|
"skuba:exec": "node --experimental-vm-modules --no-warnings=ExperimentalWarning lib/skuba",
|
|
167
167
|
"stage": "changeset version && node ./.changeset/inject.js && pnpm format",
|
|
168
|
-
"test": "pnpm --silent skuba test --selectProjects unit",
|
|
168
|
+
"test": "pnpm --silent skuba test --selectProjects unit --",
|
|
169
169
|
"test:ci": "pnpm --silent skuba test --runInBand",
|
|
170
170
|
"test:int": "pnpm --silent skuba test --selectProjects integration --runInBand",
|
|
171
171
|
"test:template": "scripts/test-template.sh",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import './register';
|
|
1
|
+
import './register.js';
|
|
2
2
|
|
|
3
3
|
import express from 'express';
|
|
4
4
|
|
|
5
|
-
import { healthCheckHandler } from './api/healthCheck';
|
|
6
|
-
import { smokeTestHandler } from './api/smokeTest';
|
|
5
|
+
import { healthCheckHandler } from './api/healthCheck.js';
|
|
6
|
+
import { smokeTestHandler } from './api/smokeTest.js';
|
|
7
7
|
|
|
8
8
|
const app = express()
|
|
9
9
|
// TODO: consider using a middleware that adds secure HTTP headers.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { StatsD } from 'hot-shots';
|
|
2
2
|
import { createStatsDClient } from 'seek-datadog-custom-metrics';
|
|
3
3
|
|
|
4
|
-
import { config } from 'src/config';
|
|
4
|
+
import { config } from 'src/config.js';
|
|
5
5
|
|
|
6
|
-
import { logger } from './logging';
|
|
6
|
+
import { logger } from './logging.js';
|
|
7
7
|
|
|
8
8
|
/* istanbul ignore next: StatsD client is not our responsibility */
|
|
9
9
|
export const metricsClient = createStatsDClient(StatsD, config, (err) =>
|
|
@@ -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
|
// If your application is deployed with more than 1 vCPU you can delete this
|
|
8
8
|
// file and use a clustering utility to run `lib/app`.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Router from '@koa/router';
|
|
2
2
|
|
|
3
|
-
import { healthCheckHandler } from './healthCheck';
|
|
4
|
-
import { jobRouter } from './jobs';
|
|
5
|
-
import { smokeTestHandler } from './smokeTest';
|
|
3
|
+
import { healthCheckHandler } from './healthCheck.js';
|
|
4
|
+
import { jobRouter } from './jobs/index.js';
|
|
5
|
+
import { smokeTestHandler } from './smokeTest.js';
|
|
6
6
|
|
|
7
7
|
export const router = new Router()
|
|
8
8
|
.get('/health', healthCheckHandler)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { logger } from 'src/framework/logging';
|
|
2
|
-
import { metricsClient } from 'src/framework/metrics';
|
|
3
|
-
import * as storage from 'src/storage/jobs';
|
|
4
|
-
import type { Middleware } from 'src/types/koa';
|
|
1
|
+
import { logger } from 'src/framework/logging.js';
|
|
2
|
+
import { metricsClient } from 'src/framework/metrics.js';
|
|
3
|
+
import * as storage from 'src/storage/jobs.js';
|
|
4
|
+
import type { Middleware } from 'src/types/koa.js';
|
|
5
5
|
|
|
6
6
|
export const getJobsHandler: Middleware = async (ctx) => {
|
|
7
7
|
const jobs = await storage.readJobs();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Router from '@koa/router';
|
|
2
2
|
|
|
3
|
-
import { jsonBodyParser } from 'src/framework/bodyParser';
|
|
3
|
+
import { jsonBodyParser } from 'src/framework/bodyParser.js';
|
|
4
4
|
|
|
5
|
-
import { getJobsHandler } from './getJobs';
|
|
6
|
-
import { postJobHandler } from './postJob';
|
|
5
|
+
import { getJobsHandler } from './getJobs.js';
|
|
6
|
+
import { postJobHandler } from './postJob.js';
|
|
7
7
|
|
|
8
8
|
export const jobRouter = new Router()
|
|
9
9
|
.get('/', getJobsHandler)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { agentFromRouter } from 'src/testing/server';
|
|
2
|
-
import { mockJobInput } from 'src/testing/types';
|
|
1
|
+
import { agentFromRouter } from 'src/testing/server.js';
|
|
2
|
+
import { mockJobInput } from 'src/testing/types.js';
|
|
3
3
|
|
|
4
|
-
import { jobRouter } from '.';
|
|
4
|
+
import { jobRouter } from './index.js';
|
|
5
5
|
|
|
6
6
|
const agent = agentFromRouter(jobRouter);
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { logger } from 'src/framework/logging';
|
|
2
|
-
import { metricsClient } from 'src/framework/metrics';
|
|
3
|
-
import { validateRequestBody } from 'src/framework/validation';
|
|
4
|
-
import * as storage from 'src/storage/jobs';
|
|
5
|
-
import { JobInputSchema } from 'src/types/jobs';
|
|
6
|
-
import type { Middleware } from 'src/types/koa';
|
|
1
|
+
import { logger } from 'src/framework/logging.js';
|
|
2
|
+
import { metricsClient } from 'src/framework/metrics.js';
|
|
3
|
+
import { validateRequestBody } from 'src/framework/validation.js';
|
|
4
|
+
import * as storage from 'src/storage/jobs.js';
|
|
5
|
+
import { JobInputSchema } from 'src/types/jobs.js';
|
|
6
|
+
import type { Middleware } from 'src/types/koa.js';
|
|
7
7
|
|
|
8
8
|
export const postJobHandler: Middleware = async (ctx) => {
|
|
9
9
|
const jobInput = validateRequestBody(ctx, JobInputSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { smokeTestJobStorage } from 'src/storage/jobs';
|
|
2
|
-
import type { Middleware } from 'src/types/koa';
|
|
1
|
+
import { smokeTestJobStorage } from 'src/storage/jobs.js';
|
|
2
|
+
import type { Middleware } from 'src/types/koa.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Tests connectivity to ensure appropriate access and network configuration.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import './register';
|
|
1
|
+
import './register.js';
|
|
2
2
|
|
|
3
|
-
import { router } from './api';
|
|
4
|
-
import { createApp } from './framework/server';
|
|
3
|
+
import { router } from './api/index.js';
|
|
4
|
+
import { createApp } from './framework/server.js';
|
|
5
5
|
|
|
6
6
|
const app = createApp(router.allowedMethods(), router.routes());
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { StatsD } from 'hot-shots';
|
|
2
2
|
import { createStatsDClient } from 'seek-datadog-custom-metrics';
|
|
3
3
|
|
|
4
|
-
import { config } from 'src/config';
|
|
4
|
+
import { config } from 'src/config.js';
|
|
5
5
|
|
|
6
|
-
import { logger } from './logging';
|
|
6
|
+
import { logger } from './logging.js';
|
|
7
7
|
|
|
8
8
|
/* istanbul ignore next: StatsD client is not our responsibility */
|
|
9
9
|
export const metricsClient = createStatsDClient(StatsD, config, (err) =>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Router from '@koa/router';
|
|
2
2
|
|
|
3
|
-
import { logger } from 'src/testing/logging';
|
|
4
|
-
import { metricsClient } from 'src/testing/metrics';
|
|
5
|
-
import { agentFromRouter } from 'src/testing/server';
|
|
6
|
-
import { chance } from 'src/testing/types';
|
|
7
|
-
import type { Middleware } from 'src/types/koa';
|
|
3
|
+
import { logger } from 'src/testing/logging.js';
|
|
4
|
+
import { metricsClient } from 'src/testing/metrics.js';
|
|
5
|
+
import { agentFromRouter } from 'src/testing/server.js';
|
|
6
|
+
import { chance } from 'src/testing/types.js';
|
|
7
|
+
import type { Middleware } from 'src/types/koa.js';
|
|
8
8
|
|
|
9
9
|
const middleware = jest.fn<void, Parameters<Middleware>>();
|
|
10
10
|
|
|
@@ -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({
|
|
@@ -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.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"lib": [
|
|
5
|
+
// open-telemetry/opentelemetry-js#3580
|
|
6
|
+
"DOM",
|
|
7
|
+
|
|
8
|
+
"ES2024"
|
|
9
|
+
],
|
|
10
|
+
"outDir": "lib",
|
|
11
|
+
"paths": {
|
|
12
|
+
"src": ["src"]
|
|
13
|
+
},
|
|
14
|
+
"target": "ES2024"
|
|
15
|
+
},
|
|
16
|
+
"exclude": ["lib*/**/*"],
|
|
17
|
+
"extends": "skuba/config/tsconfig.json"
|
|
18
|
+
}
|
|
@@ -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
|
|
|
@@ -37,7 +37,7 @@
|
|
|
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-enforce-file-extensions-20250618112549"
|
|
41
41
|
},
|
|
42
42
|
"packageManager": "pnpm@10.12.1",
|
|
43
43
|
"engines": {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PublishCommand } from '@aws-sdk/client-sns';
|
|
2
2
|
|
|
3
|
-
import { metricsClient } from 'src/framework/metrics';
|
|
4
|
-
import { createCtx, createSqsEvent } from 'src/testing/handler';
|
|
5
|
-
import { logger } from 'src/testing/logging';
|
|
6
|
-
import { scoringService, sns } from 'src/testing/services';
|
|
7
|
-
import { chance, mockJobPublishedEvent } from 'src/testing/types';
|
|
3
|
+
import { metricsClient } from 'src/framework/metrics.js';
|
|
4
|
+
import { createCtx, createSqsEvent } from 'src/testing/handler.js';
|
|
5
|
+
import { logger } from 'src/testing/logging.js';
|
|
6
|
+
import { scoringService, sns } from 'src/testing/services.js';
|
|
7
|
+
import { chance, mockJobPublishedEvent } from 'src/testing/types.js';
|
|
8
8
|
|
|
9
|
-
import * as app from './app';
|
|
9
|
+
import * as app from './app.js';
|
|
10
10
|
|
|
11
11
|
describe('app', () => {
|
|
12
12
|
it('exports a handler', () => expect(app).toHaveProperty('handler'));
|
|
@@ -3,13 +3,16 @@ import 'skuba-dive/register';
|
|
|
3
3
|
import { isLambdaHook } from '@seek/aws-codedeploy-hooks';
|
|
4
4
|
import type { SQSEvent } from 'aws-lambda';
|
|
5
5
|
|
|
6
|
-
import { createHandler } from 'src/framework/handler';
|
|
7
|
-
import { logger } from 'src/framework/logging';
|
|
8
|
-
import { metricsClient } from 'src/framework/metrics';
|
|
9
|
-
import { validateJson } from 'src/framework/validation';
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
import { createHandler } from 'src/framework/handler.js';
|
|
7
|
+
import { logger } from 'src/framework/logging.js';
|
|
8
|
+
import { metricsClient } from 'src/framework/metrics.js';
|
|
9
|
+
import { validateJson } from 'src/framework/validation.js';
|
|
10
|
+
import {
|
|
11
|
+
scoreJobPublishedEvent,
|
|
12
|
+
scoringService,
|
|
13
|
+
} from 'src/services/jobScorer.js';
|
|
14
|
+
import { sendPipelineEvent } from 'src/services/pipelineEventSender.js';
|
|
15
|
+
import { JobPublishedEventSchema } from 'src/types/pipelineEvents.js';
|
|
13
16
|
|
|
14
17
|
/**
|
|
15
18
|
* Tests connectivity to ensure appropriate access and network configuration.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createCtx } from 'src/testing/handler';
|
|
2
|
-
import { logger } from 'src/testing/logging';
|
|
3
|
-
import { chance } from 'src/testing/types';
|
|
1
|
+
import { createCtx } from 'src/testing/handler.js';
|
|
2
|
+
import { logger } from 'src/testing/logging.js';
|
|
3
|
+
import { chance } from 'src/testing/types.js';
|
|
4
4
|
|
|
5
|
-
import { createHandler } from './handler';
|
|
5
|
+
import { createHandler } from './handler.js';
|
|
6
6
|
|
|
7
7
|
describe('createHandler', () => {
|
|
8
8
|
const ctx = createCtx();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Context as LambdaContext } from 'aws-lambda';
|
|
2
2
|
import { datadog } from 'datadog-lambda-js';
|
|
3
3
|
|
|
4
|
-
import { config } from 'src/config';
|
|
5
|
-
import { logger, loggerContext } from 'src/framework/logging';
|
|
4
|
+
import { config } from 'src/config.js';
|
|
5
|
+
import { logger, loggerContext } from 'src/framework/logging.js';
|
|
6
6
|
|
|
7
7
|
type Handler<Event, Output> = (
|
|
8
8
|
event: Event,
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
IdDescriptionSchema,
|
|
3
3
|
chance,
|
|
4
4
|
mockIdDescription,
|
|
5
|
-
} from 'src/testing/types';
|
|
5
|
+
} from 'src/testing/types.js';
|
|
6
6
|
|
|
7
|
-
import { validateJson } from './validation';
|
|
7
|
+
import { validateJson } from './validation.js';
|
|
8
8
|
|
|
9
9
|
describe('validateJson', () => {
|
|
10
10
|
const idDescription = mockIdDescription();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { JobScorerInput, JobScorerOutput } from 'src/types/jobScorer';
|
|
1
|
+
import type { JobScorerInput, JobScorerOutput } from 'src/types/jobScorer.js';
|
|
2
2
|
import type {
|
|
3
3
|
JobPublishedEvent,
|
|
4
4
|
JobScoredEvent,
|
|
5
|
-
} from 'src/types/pipelineEvents';
|
|
5
|
+
} from 'src/types/pipelineEvents.js';
|
|
6
6
|
|
|
7
7
|
export const jobPublishedEventToScorerInput = (
|
|
8
8
|
record: JobPublishedEvent,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { scoringService } from 'src/testing/services';
|
|
2
|
-
import { chance, mockJobPublishedEvent } from 'src/testing/types';
|
|
1
|
+
import { scoringService } from 'src/testing/services.js';
|
|
2
|
+
import { chance, mockJobPublishedEvent } from 'src/testing/types.js';
|
|
3
3
|
|
|
4
|
-
import * as jobScorer from './jobScorer';
|
|
4
|
+
import * as jobScorer from './jobScorer.js';
|
|
5
5
|
|
|
6
6
|
describe('scoreJobPublishedEvent', () => {
|
|
7
7
|
beforeAll(scoringService.spy);
|