@strapi/strapi 4.6.1 → 4.9.0-alpha.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.
- package/ee/license.js +1 -1
- package/lib/middlewares/cors.js +8 -0
- package/lib/middlewares/public/index.js +2 -1
- package/package.json +17 -17
package/ee/license.js
CHANGED
|
@@ -10,7 +10,7 @@ const machineId = require('../lib/utils/machine-id');
|
|
|
10
10
|
const DEFAULT_FEATURES = {
|
|
11
11
|
bronze: [],
|
|
12
12
|
silver: [],
|
|
13
|
-
gold: ['sso', { name: 'audit-logs', options: { retentionDays: 90 } }],
|
|
13
|
+
gold: ['sso', { name: 'audit-logs', options: { retentionDays: 90 } }, 'review-workflows'],
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const publicKey = fs.readFileSync(join(__dirname, 'resources/key.pub'));
|
package/lib/middlewares/cors.js
CHANGED
|
@@ -19,6 +19,14 @@ module.exports = (config) => {
|
|
|
19
19
|
const { origin, expose, maxAge, credentials, methods, headers, keepHeadersOnError } =
|
|
20
20
|
defaultsDeep(defaults, config);
|
|
21
21
|
|
|
22
|
+
if (config.enabled !== undefined) {
|
|
23
|
+
strapi.log.warn(
|
|
24
|
+
'The strapi::cors middleware no longer supports the `enabled` option. Using it' +
|
|
25
|
+
' to conditionally enable CORS might cause an insecure default. To disable strapi::cors, remove it from' +
|
|
26
|
+
' the exported array in config/middleware.js'
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
return cors({
|
|
23
31
|
async origin(ctx) {
|
|
24
32
|
let originList;
|
|
@@ -77,9 +77,10 @@ module.exports = (config, { strapi }) => {
|
|
|
77
77
|
}),
|
|
78
78
|
config: { auth: false },
|
|
79
79
|
},
|
|
80
|
+
// All other public GET-routes except /uploads/(.*) which is handled in upload middleware
|
|
80
81
|
{
|
|
81
82
|
method: 'GET',
|
|
82
|
-
path: '/(
|
|
83
|
+
path: '/((?!uploads/).+)',
|
|
83
84
|
handler: koaStatic(strapi.dirs.static.public, {
|
|
84
85
|
maxage: maxAge,
|
|
85
86
|
defer: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/strapi",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0-alpha.0",
|
|
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",
|
|
@@ -81,19 +81,19 @@
|
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@koa/cors": "3.4.3",
|
|
83
83
|
"@koa/router": "10.1.1",
|
|
84
|
-
"@strapi/admin": "4.
|
|
85
|
-
"@strapi/data-transfer": "4.
|
|
86
|
-
"@strapi/database": "4.
|
|
87
|
-
"@strapi/generate-new": "4.
|
|
88
|
-
"@strapi/generators": "4.
|
|
89
|
-
"@strapi/logger": "4.
|
|
90
|
-
"@strapi/permissions": "4.
|
|
91
|
-
"@strapi/plugin-content-manager": "4.
|
|
92
|
-
"@strapi/plugin-content-type-builder": "4.
|
|
93
|
-
"@strapi/plugin-email": "4.
|
|
94
|
-
"@strapi/plugin-upload": "4.
|
|
95
|
-
"@strapi/typescript-utils": "4.
|
|
96
|
-
"@strapi/utils": "4.
|
|
84
|
+
"@strapi/admin": "4.9.0-alpha.0",
|
|
85
|
+
"@strapi/data-transfer": "4.9.0-alpha.0",
|
|
86
|
+
"@strapi/database": "4.9.0-alpha.0",
|
|
87
|
+
"@strapi/generate-new": "4.9.0-alpha.0",
|
|
88
|
+
"@strapi/generators": "4.9.0-alpha.0",
|
|
89
|
+
"@strapi/logger": "4.9.0-alpha.0",
|
|
90
|
+
"@strapi/permissions": "4.9.0-alpha.0",
|
|
91
|
+
"@strapi/plugin-content-manager": "4.9.0-alpha.0",
|
|
92
|
+
"@strapi/plugin-content-type-builder": "4.9.0-alpha.0",
|
|
93
|
+
"@strapi/plugin-email": "4.9.0-alpha.0",
|
|
94
|
+
"@strapi/plugin-upload": "4.9.0-alpha.0",
|
|
95
|
+
"@strapi/typescript-utils": "4.9.0-alpha.0",
|
|
96
|
+
"@strapi/utils": "4.9.0-alpha.0",
|
|
97
97
|
"bcryptjs": "2.4.3",
|
|
98
98
|
"boxen": "5.1.2",
|
|
99
99
|
"chalk": "4.1.2",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"koa-favicon": "2.1.0",
|
|
119
119
|
"koa-helmet": "6.1.0",
|
|
120
120
|
"koa-ip": "^2.1.2",
|
|
121
|
-
"koa-session": "6.
|
|
121
|
+
"koa-session": "6.4.0",
|
|
122
122
|
"koa-static": "5.0.0",
|
|
123
123
|
"lodash": "4.17.21",
|
|
124
124
|
"mime-types": "2.1.35",
|
|
@@ -135,12 +135,12 @@
|
|
|
135
135
|
"uuid": "^8.3.2"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
|
-
"supertest": "6.
|
|
138
|
+
"supertest": "6.3.3",
|
|
139
139
|
"typescript": "4.6.2"
|
|
140
140
|
},
|
|
141
141
|
"engines": {
|
|
142
142
|
"node": ">=14.19.1 <=18.x.x",
|
|
143
143
|
"npm": ">=6.0.0"
|
|
144
144
|
},
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "35f783d0dc07db101e7e62cb4d682f751551f452"
|
|
146
146
|
}
|