create-sprint 0.0.126 → 0.0.130
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.
|
@@ -10,7 +10,13 @@ export default defineMiddleware({
|
|
|
10
10
|
schema: {
|
|
11
11
|
sprint: {
|
|
12
12
|
authorization: z.sprint().authorization()
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
|
+
headers: z.object({
|
|
15
|
+
"X-Intranet-Origin": z.literal("https://domain.com", {
|
|
16
|
+
// This is an example of how to display a custom error message to avoid filtering values that should not be publicly known.
|
|
17
|
+
errorMap: () => ({ message: "Invalid intranet origin" })
|
|
18
|
+
})
|
|
19
|
+
})
|
|
14
20
|
},
|
|
15
21
|
handler: (req: SprintRequest, res: SprintResponse, next: NextFunction) => {
|
|
16
22
|
const auth = req.sprint.authorization!;
|
|
@@ -34,7 +40,13 @@ export default defineMiddleware({
|
|
|
34
40
|
schema: {
|
|
35
41
|
sprint: {
|
|
36
42
|
authorization: z.sprint().authorization()
|
|
37
|
-
}
|
|
43
|
+
},
|
|
44
|
+
headers: z.object({
|
|
45
|
+
"X-Intranet-Origin": z.literal("https://domain.com", {
|
|
46
|
+
// This is an example of how to display a custom error message to avoid filtering values that should not be publicly known.
|
|
47
|
+
errorMap: () => ({ message: "Invalid intranet origin" })
|
|
48
|
+
})
|
|
49
|
+
})
|
|
38
50
|
},
|
|
39
51
|
handler: (req, res, next) => {
|
|
40
52
|
const auth = req.sprint.authorization!;
|
|
@@ -10,7 +10,7 @@ export function generateJWTKeys() {
|
|
|
10
10
|
;
|
|
11
11
|
export function getTypeScriptPackageJson(name, telemetry, swagger, graphql) {
|
|
12
12
|
const deps = {
|
|
13
|
-
"sprint-es": "^0.0.
|
|
13
|
+
"sprint-es": "^0.0.155"
|
|
14
14
|
};
|
|
15
15
|
const devDeps = {
|
|
16
16
|
"@types/node": "^22.0.0",
|
|
@@ -38,11 +38,11 @@ export function getTypeScriptPackageJson(name, telemetry, swagger, graphql) {
|
|
|
38
38
|
main: "dist/app.js",
|
|
39
39
|
type: "module",
|
|
40
40
|
scripts: {
|
|
41
|
-
build: "sprint
|
|
42
|
-
start: "sprint
|
|
43
|
-
dev: "sprint
|
|
44
|
-
doctor: "sprint
|
|
45
|
-
"generate:keys": "sprint
|
|
41
|
+
build: "sprint build",
|
|
42
|
+
start: "sprint start",
|
|
43
|
+
dev: "sprint dev",
|
|
44
|
+
doctor: "sprint doctor",
|
|
45
|
+
"generate:keys": "sprint generate-keys"
|
|
46
46
|
},
|
|
47
47
|
dependencies: deps,
|
|
48
48
|
devDependencies: devDeps,
|
|
@@ -66,7 +66,7 @@ export function getTypeScriptPackageJson(name, telemetry, swagger, graphql) {
|
|
|
66
66
|
;
|
|
67
67
|
export function getJavaScriptPackageJson(name, telemetry, swagger, graphql) {
|
|
68
68
|
const deps = {
|
|
69
|
-
"sprint-es": "^0.0.
|
|
69
|
+
"sprint-es": "^0.0.155"
|
|
70
70
|
};
|
|
71
71
|
if (telemetry === "sentry" || telemetry === "glitchtip")
|
|
72
72
|
deps["@sentry/node"] = "^8.0.0";
|
|
@@ -86,11 +86,11 @@ export function getJavaScriptPackageJson(name, telemetry, swagger, graphql) {
|
|
|
86
86
|
main: "src/app.js",
|
|
87
87
|
type: "module",
|
|
88
88
|
scripts: {
|
|
89
|
-
build: "sprint
|
|
90
|
-
start: "sprint
|
|
91
|
-
dev: "sprint
|
|
92
|
-
doctor: "sprint
|
|
93
|
-
"generate:keys": "sprint
|
|
89
|
+
build: "sprint build",
|
|
90
|
+
start: "sprint start",
|
|
91
|
+
dev: "sprint dev",
|
|
92
|
+
doctor: "sprint doctor",
|
|
93
|
+
"generate:keys": "sprint generate-keys"
|
|
94
94
|
},
|
|
95
95
|
dependencies: deps
|
|
96
96
|
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-sprint",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.130",
|
|
4
4
|
"description": "Create a new Sprint API project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"create-sprint": "./dist/cli.js"
|
|
8
|
-
"sprint": "./dist/cli.js"
|
|
7
|
+
"create-sprint": "./dist/cli.js"
|
|
9
8
|
},
|
|
10
9
|
"files": [
|
|
11
10
|
"dist/**/*",
|
|
@@ -10,7 +10,13 @@ export default defineMiddleware({
|
|
|
10
10
|
schema: {
|
|
11
11
|
sprint: {
|
|
12
12
|
authorization: z.sprint().authorization()
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
|
+
headers: z.object({
|
|
15
|
+
"X-Intranet-Origin": z.literal("https://domain.com", {
|
|
16
|
+
// This is an example of how to display a custom error message to avoid filtering values that should not be publicly known.
|
|
17
|
+
errorMap: () => ({ message: "Invalid intranet origin" })
|
|
18
|
+
})
|
|
19
|
+
})
|
|
14
20
|
},
|
|
15
21
|
handler: (req: SprintRequest, res: SprintResponse, next: NextFunction) => {
|
|
16
22
|
const auth = req.sprint.authorization!;
|
|
@@ -34,7 +40,13 @@ export default defineMiddleware({
|
|
|
34
40
|
schema: {
|
|
35
41
|
sprint: {
|
|
36
42
|
authorization: z.sprint().authorization()
|
|
37
|
-
}
|
|
43
|
+
},
|
|
44
|
+
headers: z.object({
|
|
45
|
+
"X-Intranet-Origin": z.literal("https://domain.com", {
|
|
46
|
+
// This is an example of how to display a custom error message to avoid filtering values that should not be publicly known.
|
|
47
|
+
errorMap: () => ({ message: "Invalid intranet origin" })
|
|
48
|
+
})
|
|
49
|
+
})
|
|
38
50
|
},
|
|
39
51
|
handler: (req, res, next) => {
|
|
40
52
|
const auth = req.sprint.authorization!;
|
|
@@ -16,7 +16,7 @@ export function generateJWTKeys(): JWTKeys {
|
|
|
16
16
|
|
|
17
17
|
export function getTypeScriptPackageJson(name: string, telemetry: string, swagger: boolean, graphql: boolean) {
|
|
18
18
|
const deps: Record<string, string> = {
|
|
19
|
-
"sprint-es": "^0.0.
|
|
19
|
+
"sprint-es": "^0.0.155"
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
const devDeps: Record<string, string> = {
|
|
@@ -45,11 +45,11 @@ export function getTypeScriptPackageJson(name: string, telemetry: string, swagge
|
|
|
45
45
|
main: "dist/app.js",
|
|
46
46
|
type: "module",
|
|
47
47
|
scripts: {
|
|
48
|
-
build: "sprint
|
|
49
|
-
start: "sprint
|
|
50
|
-
dev: "sprint
|
|
51
|
-
doctor: "sprint
|
|
52
|
-
"generate:keys": "sprint
|
|
48
|
+
build: "sprint build",
|
|
49
|
+
start: "sprint start",
|
|
50
|
+
dev: "sprint dev",
|
|
51
|
+
doctor: "sprint doctor",
|
|
52
|
+
"generate:keys": "sprint generate-keys"
|
|
53
53
|
},
|
|
54
54
|
dependencies: deps,
|
|
55
55
|
devDependencies: devDeps,
|
|
@@ -73,7 +73,7 @@ export function getTypeScriptPackageJson(name: string, telemetry: string, swagge
|
|
|
73
73
|
|
|
74
74
|
export function getJavaScriptPackageJson(name: string, telemetry: string, swagger: boolean, graphql: boolean) {
|
|
75
75
|
const deps: Record<string, string> = {
|
|
76
|
-
"sprint-es": "^0.0.
|
|
76
|
+
"sprint-es": "^0.0.155"
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
if (telemetry === "sentry" || telemetry === "glitchtip") deps["@sentry/node"] = "^8.0.0";
|
|
@@ -94,11 +94,11 @@ export function getJavaScriptPackageJson(name: string, telemetry: string, swagge
|
|
|
94
94
|
main: "src/app.js",
|
|
95
95
|
type: "module",
|
|
96
96
|
scripts: {
|
|
97
|
-
build: "sprint
|
|
98
|
-
start: "sprint
|
|
99
|
-
dev: "sprint
|
|
100
|
-
doctor: "sprint
|
|
101
|
-
"generate:keys": "sprint
|
|
97
|
+
build: "sprint build",
|
|
98
|
+
start: "sprint start",
|
|
99
|
+
dev: "sprint dev",
|
|
100
|
+
doctor: "sprint doctor",
|
|
101
|
+
"generate:keys": "sprint generate-keys"
|
|
102
102
|
},
|
|
103
103
|
dependencies: deps
|
|
104
104
|
};
|