create-sprint 0.0.120 → 0.0.122
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.
|
@@ -13,8 +13,7 @@ export default defineMiddleware({
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
handler: (req: SprintRequest, res: SprintResponse, next: NextFunction) => {
|
|
16
|
-
const auth = req.sprint.authorization
|
|
17
|
-
if (!auth) return res.status(401).json({ error: "No authorization header" });
|
|
16
|
+
const auth = req.sprint.authorization!;
|
|
18
17
|
|
|
19
18
|
const token = auth.replace("Bearer ", "");
|
|
20
19
|
|
|
@@ -38,8 +37,7 @@ export default defineMiddleware({
|
|
|
38
37
|
}
|
|
39
38
|
},
|
|
40
39
|
handler: (req, res, next) => {
|
|
41
|
-
const auth = req.sprint.authorization
|
|
42
|
-
if (!auth) return res.status(401).json({ error: "No authorization header" });
|
|
40
|
+
const auth = req.sprint.authorization!;
|
|
43
41
|
|
|
44
42
|
const token = auth.replace("Bearer ", "");
|
|
45
43
|
|
|
@@ -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.147"
|
|
14
14
|
};
|
|
15
15
|
const devDeps = {
|
|
16
16
|
"@types/node": "^22.0.0",
|
|
@@ -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.147"
|
|
70
70
|
};
|
|
71
71
|
if (telemetry === "sentry" || telemetry === "glitchtip")
|
|
72
72
|
deps["@sentry/node"] = "^8.0.0";
|
package/package.json
CHANGED
|
@@ -13,8 +13,7 @@ export default defineMiddleware({
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
handler: (req: SprintRequest, res: SprintResponse, next: NextFunction) => {
|
|
16
|
-
const auth = req.sprint.authorization
|
|
17
|
-
if (!auth) return res.status(401).json({ error: "No authorization header" });
|
|
16
|
+
const auth = req.sprint.authorization!;
|
|
18
17
|
|
|
19
18
|
const token = auth.replace("Bearer ", "");
|
|
20
19
|
|
|
@@ -38,8 +37,7 @@ export default defineMiddleware({
|
|
|
38
37
|
}
|
|
39
38
|
},
|
|
40
39
|
handler: (req, res, next) => {
|
|
41
|
-
const auth = req.sprint.authorization
|
|
42
|
-
if (!auth) return res.status(401).json({ error: "No authorization header" });
|
|
40
|
+
const auth = req.sprint.authorization!;
|
|
43
41
|
|
|
44
42
|
const token = auth.replace("Bearer ", "");
|
|
45
43
|
|
|
@@ -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.147"
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
const devDeps: Record<string, string> = {
|
|
@@ -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.147"
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
if (telemetry === "sentry" || telemetry === "glitchtip") deps["@sentry/node"] = "^8.0.0";
|