@seip/blue-bird 0.3.1 → 0.3.3
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/core/app.js +2 -2
- package/core/cli/react.js +8 -6
- package/package.json +1 -1
package/core/app.js
CHANGED
|
@@ -136,7 +136,7 @@ class App {
|
|
|
136
136
|
* Bootstraps the application by configuring global middlewares and routes.
|
|
137
137
|
* Sets up JSON parsing, URL encoding, CORS, and custom middlewares.
|
|
138
138
|
*/
|
|
139
|
-
dispatch() {
|
|
139
|
+
async dispatch() {
|
|
140
140
|
if (this.json) this.app.use(express.json())
|
|
141
141
|
if (this.urlencoded) this.app.use(express.urlencoded({ extended: true }))
|
|
142
142
|
if (this.cookieParser) this.app.use(cookieParser())
|
|
@@ -207,7 +207,7 @@ class App {
|
|
|
207
207
|
this.errorHandler();
|
|
208
208
|
|
|
209
209
|
if (this.swagger) {
|
|
210
|
-
const Swagger = import("./swagger.js")
|
|
210
|
+
const { default: Swagger } = await import("./swagger.js")
|
|
211
211
|
const defaultSwaggerOptions = {
|
|
212
212
|
info: {
|
|
213
213
|
title: "Blue Bird API",
|
package/core/cli/react.js
CHANGED
|
@@ -78,13 +78,15 @@ class ReactScaffold {
|
|
|
78
78
|
pkg.scripts["vite:build"] = "vite build";
|
|
79
79
|
|
|
80
80
|
pkg.devDependencies = pkg.devDependencies || {};
|
|
81
|
-
|
|
82
|
-
pkg.devDependencies["
|
|
81
|
+
|
|
82
|
+
pkg.devDependencies["vite"] = "^7.3.1";
|
|
83
|
+
pkg.devDependencies["@vitejs/plugin-react"] = "^4.3.4";
|
|
83
84
|
|
|
84
85
|
pkg.dependencies = pkg.dependencies || {};
|
|
85
|
-
pkg.dependencies["react"] = "^
|
|
86
|
-
pkg.dependencies["react-dom"] = "^
|
|
87
|
-
pkg.dependencies["react-router-dom"] = "^
|
|
86
|
+
pkg.dependencies["react"] = "^19.2.4";
|
|
87
|
+
pkg.dependencies["react-dom"] = "^19.2.4";
|
|
88
|
+
pkg.dependencies["react-router-dom"] = "^7.2.0";
|
|
89
|
+
|
|
88
90
|
|
|
89
91
|
fs.writeFileSync(packagePath, JSON.stringify(pkg, null, 2));
|
|
90
92
|
console.log(chalk.gray("Updated package.json dependencies and scripts."));
|
|
@@ -406,4 +408,4 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
406
408
|
|
|
407
409
|
|
|
408
410
|
const scaffold = new ReactScaffold();
|
|
409
|
-
scaffold.install();
|
|
411
|
+
scaffold.install();
|