@strapi/strapi 4.5.4 → 4.5.5

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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const createError = require('http-errors');
4
- const { NotFoundError, UnauthorizedError, ForbiddenError, PayloadTooLargeError } =
4
+ const { NotFoundError, UnauthorizedError, ForbiddenError, PayloadTooLargeError, RateLimitError } =
5
5
  require('@strapi/utils').errors;
6
6
 
7
7
  const mapErrorsAndStatus = [
@@ -21,6 +21,10 @@ const mapErrorsAndStatus = [
21
21
  classError: PayloadTooLargeError,
22
22
  status: 413,
23
23
  },
24
+ {
25
+ classError: RateLimitError,
26
+ status: 429,
27
+ },
24
28
  ];
25
29
 
26
30
  const formatApplicationError = (error) => {
@@ -372,6 +372,11 @@ export interface Strapi {
372
372
  */
373
373
  telemetry: any;
374
374
 
375
+ /**
376
+ * Used to access ctx from anywhere within the Strapi application
377
+ */
378
+ requestContext: any;
379
+
375
380
  /**
376
381
  * Strapi DB layer instance
377
382
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/strapi",
3
- "version": "4.5.4",
3
+ "version": "4.5.5",
4
4
  "description": "An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite",
5
5
  "keywords": [
6
6
  "strapi",
@@ -80,18 +80,18 @@
80
80
  "dependencies": {
81
81
  "@koa/cors": "3.4.3",
82
82
  "@koa/router": "10.1.1",
83
- "@strapi/admin": "4.5.4",
84
- "@strapi/database": "4.5.4",
85
- "@strapi/generate-new": "4.5.4",
86
- "@strapi/generators": "4.5.4",
87
- "@strapi/logger": "4.5.4",
88
- "@strapi/permissions": "4.5.4",
89
- "@strapi/plugin-content-manager": "4.5.4",
90
- "@strapi/plugin-content-type-builder": "4.5.4",
91
- "@strapi/plugin-email": "4.5.4",
92
- "@strapi/plugin-upload": "4.5.4",
93
- "@strapi/typescript-utils": "4.5.4",
94
- "@strapi/utils": "4.5.4",
83
+ "@strapi/admin": "4.5.5",
84
+ "@strapi/database": "4.5.5",
85
+ "@strapi/generate-new": "4.5.5",
86
+ "@strapi/generators": "4.5.5",
87
+ "@strapi/logger": "4.5.5",
88
+ "@strapi/permissions": "4.5.5",
89
+ "@strapi/plugin-content-manager": "4.5.5",
90
+ "@strapi/plugin-content-type-builder": "4.5.5",
91
+ "@strapi/plugin-email": "4.5.5",
92
+ "@strapi/plugin-upload": "4.5.5",
93
+ "@strapi/typescript-utils": "4.5.5",
94
+ "@strapi/utils": "4.5.5",
95
95
  "bcryptjs": "2.4.3",
96
96
  "boxen": "5.1.2",
97
97
  "chalk": "4.1.2",
@@ -126,7 +126,7 @@
126
126
  "open": "8.4.0",
127
127
  "ora": "5.4.1",
128
128
  "package-json": "7.0.0",
129
- "qs": "6.10.1",
129
+ "qs": "6.11.0",
130
130
  "resolve-cwd": "3.0.0",
131
131
  "semver": "7.3.8",
132
132
  "statuses": "2.0.1",
@@ -140,5 +140,5 @@
140
140
  "node": ">=14.19.1 <=18.x.x",
141
141
  "npm": ">=6.0.0"
142
142
  },
143
- "gitHead": "8716ecc920130db5341b0904cf868c6e6b581a5d"
143
+ "gitHead": "8f1988367c1ccbbb1c44866d9dc9fa512e4f3b31"
144
144
  }