@tsed/cli-generate-http-client 6.3.0 → 6.4.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.
|
@@ -39,7 +39,15 @@ let GenerateHttpClientCmd = class GenerateHttpClientCmd {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
catch (er) { }
|
|
42
|
-
|
|
42
|
+
try {
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
const platform = await import("@tsed/platform-fastify");
|
|
45
|
+
if (platform) {
|
|
46
|
+
return platform.PlatformFastify;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch (er) { }
|
|
50
|
+
throw new Error("Unsupported platform. Please use Express.js, Koa.js or Fastify.js platform.");
|
|
43
51
|
}
|
|
44
52
|
async generate($ctx) {
|
|
45
53
|
const Platform = await this.loadPlatformModule();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/cli-generate-http-client",
|
|
3
3
|
"description": "Ts.ED CLI plugin. Export a command that generate an HTTP Client (axios or fetch) from your Ts.ED controllers and OS3 spec.",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.4.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/esm/index.js",
|
|
7
7
|
"source": "./src/index.ts",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"tslib": "2.7.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@tsed/cli": "6.
|
|
30
|
-
"@tsed/cli-core": "6.
|
|
31
|
-
"@tsed/typescript": "6.
|
|
29
|
+
"@tsed/cli": "6.4.0",
|
|
30
|
+
"@tsed/cli-core": "6.4.0",
|
|
31
|
+
"@tsed/typescript": "6.4.0",
|
|
32
32
|
"cross-env": "7.0.3",
|
|
33
33
|
"swagger-typescript-api": "^13.0.22",
|
|
34
34
|
"typescript": "5.6.2",
|