@terreno/api 0.2.0 → 0.3.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.
@@ -242,7 +242,7 @@ function initializeRoutes(UserModel, addRoutes, options) {
242
242
  if (options.addMiddleware) {
243
243
  options.addMiddleware(app);
244
244
  }
245
- app.use(express_1.default.json());
245
+ app.use(express_1.default.json({ limit: "50mb" }));
246
246
  // Add login/signup/refresh_token before the JWT/auth middlewares
247
247
  (0, auth_1.addAuthRoutes)(app, UserModel, options === null || options === void 0 ? void 0 : options.authOptions);
248
248
  (0, auth_1.setupAuth)(app, UserModel);
package/package.json CHANGED
@@ -93,5 +93,5 @@
93
93
  "updateSnapshot": "bun test --update-snapshots"
94
94
  },
95
95
  "types": "dist/index.d.ts",
96
- "version": "0.2.0"
96
+ "version": "0.3.0"
97
97
  }
@@ -193,7 +193,7 @@ function initializeRoutes(
193
193
  options.addMiddleware(app);
194
194
  }
195
195
 
196
- app.use(express.json());
196
+ app.use(express.json({limit: "50mb"}));
197
197
 
198
198
  // Add login/signup/refresh_token before the JWT/auth middlewares
199
199
  addAuthRoutes(app, UserModel as any, options?.authOptions);