skuba 7.0.0 → 7.1.0
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-preset.js +7 -1
- package/lib/api/git/commitAllChanges.d.ts +2 -2
- package/lib/api/git/commitAllChanges.js.map +2 -2
- package/lib/api/net/waitFor.d.ts +1 -1
- package/lib/api/net/waitFor.js.map +2 -2
- package/lib/cli/adapter/eslint.d.ts +2 -2
- package/lib/cli/adapter/eslint.js.map +2 -2
- package/lib/cli/adapter/prettier.d.ts +8 -1
- package/lib/cli/adapter/prettier.js +6 -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.map +2 -2
- package/lib/cli/configure/analyseDependencies.js.map +2 -2
- package/lib/cli/configure/analysis/package.js.map +2 -2
- package/lib/cli/configure/ensureTemplateCompletion.d.ts +1 -1
- package/lib/cli/configure/ensureTemplateCompletion.js.map +2 -2
- package/lib/cli/configure/index.js +1 -1
- package/lib/cli/configure/index.js.map +1 -1
- package/lib/cli/configure/patchDockerfile.d.ts +1 -0
- package/lib/cli/configure/patchDockerfile.js +65 -0
- package/lib/cli/configure/patchDockerfile.js.map +7 -0
- package/lib/cli/configure/processing/typescript.js +1 -1
- package/lib/cli/configure/processing/typescript.js.map +2 -2
- package/lib/cli/format.js +2 -0
- package/lib/cli/format.js.map +2 -2
- package/lib/cli/init/getConfig.d.ts +2 -2
- package/lib/cli/init/getConfig.js +1 -1
- package/lib/cli/init/getConfig.js.map +2 -2
- package/lib/cli/init/prompts.d.ts +1 -1
- package/lib/cli/init/prompts.js.map +2 -2
- package/lib/cli/lint/autofix.js +15 -0
- package/lib/cli/lint/autofix.js.map +2 -2
- package/lib/cli/lint/eslint.d.ts +1 -1
- package/lib/cli/lint/eslint.js.map +2 -2
- package/lib/cli/lint/prettier.d.ts +1 -1
- package/lib/cli/lint/prettier.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/index.js.map +1 -1
- package/lib/utils/copy.d.ts +1 -1
- package/lib/utils/copy.js.map +1 -1
- package/lib/utils/exec.d.ts +1 -2
- package/lib/utils/exec.js.map +2 -2
- package/lib/utils/manifest.d.ts +1 -2
- package/lib/utils/manifest.js.map +2 -2
- package/lib/utils/validation.d.ts +1 -1
- package/lib/utils/validation.js.map +1 -1
- package/lib/wrapper/http.d.ts +1 -1
- package/lib/wrapper/http.js.map +2 -2
- package/package.json +8 -8
- package/template/base/_.prettierignore +1 -0
- package/template/express-rest-api/Dockerfile +1 -1
- package/template/koa-rest-api/Dockerfile +1 -1
- package/template/koa-rest-api/package.json +1 -1
- package/template/koa-rest-api/src/framework/server.ts +1 -1
- package/template/koa-rest-api/src/testing/server.ts +1 -1
- package/template/lambda-sqs-worker/src/services/jobScorer.ts +5 -2
- package/template/lambda-sqs-worker-cdk/infra/appStack.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skuba",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0",
|
|
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",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"dotenv": "^16.0.0",
|
|
82
82
|
"ejs": "^3.1.6",
|
|
83
83
|
"enquirer": "^2.3.6",
|
|
84
|
-
"esbuild": "~0.
|
|
84
|
+
"esbuild": "~0.19.0",
|
|
85
85
|
"eslint": "^8.11.0",
|
|
86
|
-
"eslint-config-skuba": "
|
|
86
|
+
"eslint-config-skuba": "3.0.2",
|
|
87
87
|
"execa": "^5.0.0",
|
|
88
88
|
"fdir": "^6.0.0",
|
|
89
89
|
"fs-extra": "^11.0.0",
|
|
@@ -122,24 +122,24 @@
|
|
|
122
122
|
"devDependencies": {
|
|
123
123
|
"@changesets/cli": "2.26.2",
|
|
124
124
|
"@changesets/get-github-info": "0.5.2",
|
|
125
|
-
"@jest/reporters": "29.6.
|
|
125
|
+
"@jest/reporters": "29.6.2",
|
|
126
126
|
"@types/ejs": "3.1.2",
|
|
127
127
|
"@types/express": "4.17.17",
|
|
128
128
|
"@types/fs-extra": "11.0.1",
|
|
129
|
-
"@types/koa": "2.13.
|
|
129
|
+
"@types/koa": "2.13.8",
|
|
130
130
|
"@types/libnpmsearch": "2.0.3",
|
|
131
131
|
"@types/lodash.mergewith": "4.6.7",
|
|
132
|
-
"@types/module-alias": "2.0.
|
|
132
|
+
"@types/module-alias": "2.0.2",
|
|
133
133
|
"@types/npm-which": "3.0.1",
|
|
134
134
|
"@types/picomatch": "2.3.0",
|
|
135
135
|
"@types/supertest": "2.0.12",
|
|
136
136
|
"@types/validate-npm-package-name": "4.0.0",
|
|
137
137
|
"enhanced-resolve": "5.15.0",
|
|
138
138
|
"express": "4.18.2",
|
|
139
|
-
"fastify": "4.
|
|
139
|
+
"fastify": "4.21.0",
|
|
140
140
|
"jsonfile": "6.1.0",
|
|
141
141
|
"koa": "2.14.2",
|
|
142
|
-
"memfs": "4.2.
|
|
142
|
+
"memfs": "4.2.1",
|
|
143
143
|
"remark-cli": "11.0.0",
|
|
144
144
|
"remark-preset-lint-recommended": "6.1.3",
|
|
145
145
|
"semver": "7.5.4",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@koa/router": "^12.0.0",
|
|
16
16
|
"@opentelemetry/api": "^1.1.0",
|
|
17
17
|
"@opentelemetry/exporter-trace-otlp-grpc": "^0.41.0",
|
|
18
|
-
"@opentelemetry/instrumentation-aws-sdk": "^0.
|
|
18
|
+
"@opentelemetry/instrumentation-aws-sdk": "^0.36.0",
|
|
19
19
|
"@opentelemetry/instrumentation-http": "^0.41.0",
|
|
20
20
|
"@opentelemetry/sdk-node": "^0.41.0",
|
|
21
21
|
"@seek/logger": "^6.0.0",
|
|
@@ -36,7 +36,7 @@ const version = VersionMiddleware.create({
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
export const createApp = <State, Context>(
|
|
39
|
-
...middleware: Koa.Middleware<State, Context
|
|
39
|
+
...middleware: Array<Koa.Middleware<State, Context>>
|
|
40
40
|
) =>
|
|
41
41
|
new Koa()
|
|
42
42
|
// TODO: consider using a middleware that adds secure HTTP headers.
|
|
@@ -14,7 +14,7 @@ export const agentFromApp = <State, Context>(app: Koa<State, Context>) =>
|
|
|
14
14
|
* Create a new SuperTest agent from a set of Koa middleware.
|
|
15
15
|
*/
|
|
16
16
|
export const agentFromMiddleware = <State, Context>(
|
|
17
|
-
...middleware: Koa.Middleware<State, Context
|
|
17
|
+
...middleware: Array<Koa.Middleware<State, Context>>
|
|
18
18
|
) => {
|
|
19
19
|
const app = createApp(...middleware);
|
|
20
20
|
|
|
@@ -2,8 +2,11 @@ import {
|
|
|
2
2
|
jobPublishedEventToScorerInput,
|
|
3
3
|
jobScorerOutputToScoredEvent,
|
|
4
4
|
} from 'src/mapping/jobScorer';
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import {
|
|
6
|
+
type JobScorerInput,
|
|
7
|
+
type JobScorerOutput,
|
|
8
|
+
JobScorerOutputSchema,
|
|
9
|
+
} from 'src/types/jobScorer';
|
|
7
10
|
import type {
|
|
8
11
|
JobPublishedEvent,
|
|
9
12
|
JobScoredEvent,
|