create-sprint 0.0.120 → 0.0.124

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/dist/index.js CHANGED
@@ -38,8 +38,8 @@ export async function runCLI(args) {
38
38
  message: "Language:",
39
39
  options: [
40
40
  { value: "typescript", label: "TypeScript", hint: "recommended" },
41
- { value: "javascript", label: "JavaScript" },
42
- ],
41
+ { value: "javascript", label: "JavaScript", hint: "not recommended" }
42
+ ]
43
43
  }),
44
44
  telemetry: () => p.select({
45
45
  message: "Error tracking:",
@@ -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.138"
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.138"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sprint",
3
- "version": "0.0.120",
3
+ "version": "0.0.124",
4
4
  "description": "Create a new Sprint API project",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -65,8 +65,8 @@ export async function runCLI(args: string[]) {
65
65
  message: "Language:",
66
66
  options: [
67
67
  { value: "typescript", label: "TypeScript", hint: "recommended" },
68
- { value: "javascript", label: "JavaScript" },
69
- ],
68
+ { value: "javascript", label: "JavaScript", hint: "not recommended" }
69
+ ]
70
70
  }),
71
71
 
72
72
  telemetry: () =>
@@ -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.138"
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.138"
76
+ "sprint-es": "^0.0.147"
77
77
  };
78
78
 
79
79
  if (telemetry === "sentry" || telemetry === "glitchtip") deps["@sentry/node"] = "^8.0.0";