@strapi/strapi 4.4.3 → 4.4.4
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,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const { has } = require('lodash/fp');
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
const ALLOWED_TYPES = [
|
|
6
|
+
'biginteger',
|
|
7
|
+
'boolean',
|
|
8
|
+
'date',
|
|
9
|
+
'datetime',
|
|
10
|
+
'decimal',
|
|
11
|
+
'email',
|
|
12
|
+
'enumeration',
|
|
13
|
+
'float',
|
|
14
|
+
'integer',
|
|
15
|
+
'json',
|
|
16
|
+
'password',
|
|
17
|
+
'richtext',
|
|
18
|
+
'string',
|
|
19
|
+
'text',
|
|
20
|
+
'time',
|
|
21
|
+
'uid',
|
|
22
|
+
];
|
|
5
23
|
|
|
6
24
|
const customFieldsRegistry = (strapi) => {
|
|
7
25
|
const customFields = {};
|
|
@@ -27,7 +45,7 @@ const customFieldsRegistry = (strapi) => {
|
|
|
27
45
|
}
|
|
28
46
|
|
|
29
47
|
const { name, plugin, type } = cf;
|
|
30
|
-
if (!
|
|
48
|
+
if (!ALLOWED_TYPES.includes(type)) {
|
|
31
49
|
throw new Error(
|
|
32
50
|
`Custom field type: '${type}' is not a valid Strapi type or it can't be used with a Custom Field`
|
|
33
51
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/strapi",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.4",
|
|
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",
|
|
@@ -78,20 +78,20 @@
|
|
|
78
78
|
"test:unit": "jest --verbose"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@koa/cors": "3.4.
|
|
81
|
+
"@koa/cors": "3.4.2",
|
|
82
82
|
"@koa/router": "10.1.1",
|
|
83
|
-
"@strapi/admin": "4.4.
|
|
84
|
-
"@strapi/database": "4.4.
|
|
85
|
-
"@strapi/generate-new": "4.4.
|
|
86
|
-
"@strapi/generators": "4.4.
|
|
87
|
-
"@strapi/logger": "4.4.
|
|
88
|
-
"@strapi/permissions": "4.4.
|
|
89
|
-
"@strapi/plugin-content-manager": "4.4.
|
|
90
|
-
"@strapi/plugin-content-type-builder": "4.4.
|
|
91
|
-
"@strapi/plugin-email": "4.4.
|
|
92
|
-
"@strapi/plugin-upload": "4.4.
|
|
93
|
-
"@strapi/typescript-utils": "4.4.
|
|
94
|
-
"@strapi/utils": "4.4.
|
|
83
|
+
"@strapi/admin": "4.4.4",
|
|
84
|
+
"@strapi/database": "4.4.4",
|
|
85
|
+
"@strapi/generate-new": "4.4.4",
|
|
86
|
+
"@strapi/generators": "4.4.4",
|
|
87
|
+
"@strapi/logger": "4.4.4",
|
|
88
|
+
"@strapi/permissions": "4.4.4",
|
|
89
|
+
"@strapi/plugin-content-manager": "4.4.4",
|
|
90
|
+
"@strapi/plugin-content-type-builder": "4.4.4",
|
|
91
|
+
"@strapi/plugin-email": "4.4.4",
|
|
92
|
+
"@strapi/plugin-upload": "4.4.4",
|
|
93
|
+
"@strapi/typescript-utils": "4.4.4",
|
|
94
|
+
"@strapi/utils": "4.4.4",
|
|
95
95
|
"bcryptjs": "2.4.3",
|
|
96
96
|
"boxen": "5.1.2",
|
|
97
97
|
"chalk": "4.1.2",
|
|
@@ -140,5 +140,5 @@
|
|
|
140
140
|
"node": ">=14.19.1 <=18.x.x",
|
|
141
141
|
"npm": ">=6.0.0"
|
|
142
142
|
},
|
|
143
|
-
"gitHead": "
|
|
143
|
+
"gitHead": "02f7b3b65deab4f7db360141d6f87f4a6840170e"
|
|
144
144
|
}
|