@strapi/plugin-users-permissions 4.2.3 → 4.3.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/package.json +6 -6
- package/server/controllers/user.js +1 -1
- package/server/register.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-users-permissions",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Protect your API with a full-authentication process based on JWT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"test:front:watch:ce": "cross-env IS_EE=false jest --config ./jest.config.front.js --watchAll"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@strapi/helper-plugin": "4.
|
|
31
|
-
"@strapi/utils": "4.
|
|
30
|
+
"@strapi/helper-plugin": "4.3.0",
|
|
31
|
+
"@strapi/utils": "4.3.0",
|
|
32
32
|
"bcryptjs": "2.4.3",
|
|
33
33
|
"grant-koa": "5.4.8",
|
|
34
34
|
"jsonwebtoken": "^8.1.0",
|
|
35
|
-
"koa2-ratelimit": "^
|
|
35
|
+
"koa2-ratelimit": "^1.1.1",
|
|
36
36
|
"lodash": "4.17.21",
|
|
37
37
|
"purest": "4.0.2",
|
|
38
38
|
"react": "^17.0.2",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"url-join": "4.0.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"koa": "^2.13.
|
|
49
|
+
"koa": "^2.13.4"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=14.19.1 <=16.x.x",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"required": true,
|
|
60
60
|
"kind": "plugin"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "74a2b908df75bc8001d72f9dc8571c4b7a2da337"
|
|
63
63
|
}
|
|
@@ -138,7 +138,7 @@ module.exports = {
|
|
|
138
138
|
async find(ctx) {
|
|
139
139
|
const users = await getService('user').fetchAll(ctx.query);
|
|
140
140
|
|
|
141
|
-
ctx.body = await Promise.all(users.map(
|
|
141
|
+
ctx.body = await Promise.all(users.map(user => sanitizeOutput(user, ctx)));
|
|
142
142
|
},
|
|
143
143
|
|
|
144
144
|
/**
|
package/server/register.js
CHANGED
|
@@ -17,6 +17,9 @@ module.exports = ({ strapi }) => {
|
|
|
17
17
|
const specPath = path.join(__dirname, '../documentation/content-api.yaml');
|
|
18
18
|
const spec = fs.readFileSync(specPath, 'utf8');
|
|
19
19
|
|
|
20
|
-
strapi
|
|
20
|
+
strapi
|
|
21
|
+
.plugin('documentation')
|
|
22
|
+
.service('documentation')
|
|
23
|
+
.registerDoc(spec);
|
|
21
24
|
}
|
|
22
25
|
};
|