@strapi/strapi 4.11.1 → 4.11.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.
|
@@ -94,7 +94,7 @@ const registerAPIRoutes = (strapi) => {
|
|
|
94
94
|
// TODO: remove once auth setup
|
|
95
95
|
// pass meta down to compose endpoint
|
|
96
96
|
router.type = 'content-api';
|
|
97
|
-
router.routes
|
|
97
|
+
router.routes?.forEach((route) => {
|
|
98
98
|
generateRouteScope(route);
|
|
99
99
|
route.info = { apiName };
|
|
100
100
|
});
|
|
@@ -82,7 +82,9 @@ export interface Strapi {
|
|
|
82
82
|
/**
|
|
83
83
|
* Find a controller using its unique identifier
|
|
84
84
|
*/
|
|
85
|
-
controller<TContentTypeUID extends Common.UID.Controller>(
|
|
85
|
+
controller<TContentTypeUID extends Common.UID.Controller>(
|
|
86
|
+
uid: TContentTypeUID
|
|
87
|
+
): Shared.Controllers[TContentTypeUID];
|
|
86
88
|
|
|
87
89
|
/**
|
|
88
90
|
* Getter for the Strapi content types container
|
|
@@ -48,7 +48,10 @@ export type RouterConfig<TContentTypeUID extends Common.UID.ContentType> = {
|
|
|
48
48
|
except?: string[];
|
|
49
49
|
config: Utils.Expression.MatchFirst<
|
|
50
50
|
[
|
|
51
|
-
Utils.Expression.Test<
|
|
51
|
+
Utils.Expression.Test<
|
|
52
|
+
Common.UID.IsCollectionType<TContentTypeUID>,
|
|
53
|
+
CollectionTypeRouterConfig
|
|
54
|
+
>,
|
|
52
55
|
Utils.Expression.Test<Common.UID.IsSingleType<TContentTypeUID>, SingleTypeRouterConfig>
|
|
53
56
|
],
|
|
54
57
|
Generic
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/strapi",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.2",
|
|
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.11.
|
|
85
|
-
"@strapi/data-transfer": "4.11.
|
|
86
|
-
"@strapi/database": "4.11.
|
|
87
|
-
"@strapi/generate-new": "4.11.
|
|
88
|
-
"@strapi/generators": "4.11.
|
|
89
|
-
"@strapi/logger": "4.11.
|
|
90
|
-
"@strapi/permissions": "4.11.
|
|
91
|
-
"@strapi/plugin-content-manager": "4.11.
|
|
92
|
-
"@strapi/plugin-content-type-builder": "4.11.
|
|
93
|
-
"@strapi/plugin-email": "4.11.
|
|
94
|
-
"@strapi/plugin-upload": "4.11.
|
|
95
|
-
"@strapi/typescript-utils": "4.11.
|
|
96
|
-
"@strapi/utils": "4.11.
|
|
84
|
+
"@strapi/admin": "4.11.2",
|
|
85
|
+
"@strapi/data-transfer": "4.11.2",
|
|
86
|
+
"@strapi/database": "4.11.2",
|
|
87
|
+
"@strapi/generate-new": "4.11.2",
|
|
88
|
+
"@strapi/generators": "4.11.2",
|
|
89
|
+
"@strapi/logger": "4.11.2",
|
|
90
|
+
"@strapi/permissions": "4.11.2",
|
|
91
|
+
"@strapi/plugin-content-manager": "4.11.2",
|
|
92
|
+
"@strapi/plugin-content-type-builder": "4.11.2",
|
|
93
|
+
"@strapi/plugin-email": "4.11.2",
|
|
94
|
+
"@strapi/plugin-upload": "4.11.2",
|
|
95
|
+
"@strapi/typescript-utils": "4.11.2",
|
|
96
|
+
"@strapi/utils": "4.11.2",
|
|
97
97
|
"bcryptjs": "2.4.3",
|
|
98
98
|
"boxen": "5.1.2",
|
|
99
99
|
"chalk": "4.1.2",
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"node": ">=14.19.1 <=18.x.x",
|
|
143
143
|
"npm": ">=6.0.0"
|
|
144
144
|
},
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "6f7c815c2bbe41dda7d77136eb8df736c028ff67"
|
|
146
146
|
}
|