@vendure/dashboard 3.5.2-master-202512190240 → 3.5.2

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.
@@ -99,6 +99,7 @@ export interface DashboardPluginOptions {
99
99
  export declare class DashboardPlugin implements NestModule {
100
100
  private readonly processContext;
101
101
  private static options;
102
+ private readonly rateLimitRequests;
102
103
  constructor(processContext: ProcessContext);
103
104
  /**
104
105
  * @description
@@ -126,6 +126,7 @@ const metrics_service_js_1 = require("./service/metrics.service.js");
126
126
  let DashboardPlugin = DashboardPlugin_1 = class DashboardPlugin {
127
127
  constructor(processContext) {
128
128
  this.processContext = processContext;
129
+ this.rateLimitRequests = process.env.NODE_ENV === 'production' ? 500 : 100000;
129
130
  }
130
131
  /**
131
132
  * @description
@@ -151,7 +152,7 @@ let DashboardPlugin = DashboardPlugin_1 = class DashboardPlugin {
151
152
  createStaticServer(dashboardPath) {
152
153
  const limiter = (0, express_rate_limit_1.rateLimit)({
153
154
  windowMs: 60 * 1000,
154
- limit: process.env.NODE_ENV === 'production' ? 500 : 1000000,
155
+ limit: this.rateLimitRequests,
155
156
  standardHeaders: true,
156
157
  legacyHeaders: false,
157
158
  });
@@ -196,7 +197,7 @@ let DashboardPlugin = DashboardPlugin_1 = class DashboardPlugin {
196
197
  createDefaultPage() {
197
198
  const limiter = (0, express_rate_limit_1.rateLimit)({
198
199
  windowMs: 60 * 1000,
199
- limit: process.env.NODE_ENV === 'production' ? 500 : 20000,
200
+ limit: this.rateLimitRequests,
200
201
  standardHeaders: true,
201
202
  legacyHeaders: false,
202
203
  });
@@ -218,7 +219,7 @@ let DashboardPlugin = DashboardPlugin_1 = class DashboardPlugin {
218
219
  createDynamicHandler(route, appDir, viteDevServerPort) {
219
220
  const limiter = (0, express_rate_limit_1.rateLimit)({
220
221
  windowMs: 60 * 1000,
221
- limit: process.env.NODE_ENV === 'production' ? 500 : 2000,
222
+ limit: this.rateLimitRequests,
222
223
  standardHeaders: true,
223
224
  legacyHeaders: false,
224
225
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vendure/dashboard",
3
3
  "private": false,
4
- "version": "3.5.2-master-202512190240",
4
+ "version": "3.5.2",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -156,8 +156,8 @@
156
156
  "@storybook/addon-vitest": "^10.0.0-beta.9",
157
157
  "@storybook/react-vite": "^10.0.0-beta.9",
158
158
  "@types/node": "^22.13.4",
159
- "@vendure/common": "^3.5.2-master-202512190240",
160
- "@vendure/core": "^3.5.2-master-202512190240",
159
+ "@vendure/common": "3.5.2",
160
+ "@vendure/core": "3.5.2",
161
161
  "@vitest/browser": "^3.2.4",
162
162
  "@vitest/coverage-v8": "^3.2.4",
163
163
  "eslint": "^9.19.0",