create-sprint 0.0.136 → 0.0.138
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.
|
@@ -106,7 +106,7 @@ export function getUploadController(language) {
|
|
|
106
106
|
return `import { Handler, SprintRequest, SprintResponse } from "sprint-es";
|
|
107
107
|
|
|
108
108
|
export const uploadPdfController: Handler = (req: SprintRequest, res: SprintResponse) => {
|
|
109
|
-
const file = req.
|
|
109
|
+
const file = req.files?.document[0];
|
|
110
110
|
|
|
111
111
|
if (!file) return res.status(400).json({ error: "No file uploaded" });
|
|
112
112
|
|
|
@@ -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.168"
|
|
14
14
|
};
|
|
15
15
|
const devDeps = {
|
|
16
16
|
"@types/node": "^22.0.0",
|
|
@@ -67,7 +67,7 @@ export function getTypeScriptPackageJson(name, telemetry, swagger, graphql) {
|
|
|
67
67
|
;
|
|
68
68
|
export function getJavaScriptPackageJson(name, telemetry, swagger, graphql) {
|
|
69
69
|
const deps = {
|
|
70
|
-
"sprint-es": "^0.0.
|
|
70
|
+
"sprint-es": "^0.0.168"
|
|
71
71
|
};
|
|
72
72
|
if (telemetry === "sentry" || telemetry === "glitchtip")
|
|
73
73
|
deps["@sentry/node"] = "^8.0.0";
|
package/package.json
CHANGED
|
@@ -105,7 +105,7 @@ export function getUploadController(language: string) {
|
|
|
105
105
|
return `import { Handler, SprintRequest, SprintResponse } from "sprint-es";
|
|
106
106
|
|
|
107
107
|
export const uploadPdfController: Handler = (req: SprintRequest, res: SprintResponse) => {
|
|
108
|
-
const file = req.
|
|
108
|
+
const file = req.files?.document[0];
|
|
109
109
|
|
|
110
110
|
if (!file) return res.status(400).json({ error: "No file uploaded" });
|
|
111
111
|
|
|
@@ -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.168"
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
const devDeps: Record<string, string> = {
|
|
@@ -76,7 +76,7 @@ export function getTypeScriptPackageJson(name: string, telemetry: string, swagge
|
|
|
76
76
|
|
|
77
77
|
export function getJavaScriptPackageJson(name: string, telemetry: string, swagger: boolean, graphql: boolean) {
|
|
78
78
|
const deps: Record<string, string> = {
|
|
79
|
-
"sprint-es": "^0.0.
|
|
79
|
+
"sprint-es": "^0.0.168"
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
if (telemetry === "sentry" || telemetry === "glitchtip") deps["@sentry/node"] = "^8.0.0";
|