mirror of
https://github.com/strapi/strapi.git
synced 2025-12-12 15:32:42 +00:00
Bump graphql-upload version & link content API scope to the custom mutations
This commit is contained in:
parent
314a2952a0
commit
0d7d430469
@ -193,6 +193,19 @@ module.exports = ({ strapi }) => {
|
||||
['Mutation.createUploadFile']: { auth: { scope: 'plugin::upload.content-api.upload' } },
|
||||
['Mutation.updateUploadFile']: { auth: { scope: 'plugin::upload.content-api.upload' } },
|
||||
['Mutation.deleteUploadFile']: { auth: { scope: 'plugin::upload.content-api.destroy' } },
|
||||
|
||||
[`Mutation.${UPLOAD_MUTATION_NAME}`]: {
|
||||
auth: { scope: 'plugin::upload.content-api.upload' },
|
||||
},
|
||||
[`Mutation.${MULTIPLE_UPLOAD_MUTATION_NAME}`]: {
|
||||
auth: { scope: 'plugin::upload.content-api.upload' },
|
||||
},
|
||||
[`Mutation.${UPDATE_FILE_INFO_MUTATION_NAME}`]: {
|
||||
auth: { scope: 'plugin::upload.content-api.upload' },
|
||||
},
|
||||
[`Mutation.${DELETE_FILE_MUTATION_NAME}`]: {
|
||||
auth: { scope: 'plugin::upload.content-api.destroy' },
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
"graphql-playground-middleware-koa": "^1.6.21",
|
||||
"graphql-type-json": "^0.3.2",
|
||||
"graphql-type-long": "^0.1.1",
|
||||
"graphql-upload": "12.0.0",
|
||||
"graphql-upload": "^13.0.0",
|
||||
"koa-compose": "^4.1.0",
|
||||
"lodash": "4.17.21",
|
||||
"nexus": "1.1.0",
|
||||
|
||||
37
yarn.lock
37
yarn.lock
@ -13002,16 +13002,15 @@ graphql-type-long@^0.1.1:
|
||||
resolved "https://registry.yarnpkg.com/graphql-type-long/-/graphql-type-long-0.1.1.tgz#c1b1323f7b3bb3fe48f05502b883145f90adbfd6"
|
||||
integrity sha512-pIp/F3LR0qqfbF4TX3CwBwPskA7850KG6/DnzaYJtdgxxzw20dcKfutLbyk8okBGg8iHbFoXgnZWHgfwNmxSZw==
|
||||
|
||||
graphql-upload@12.0.0:
|
||||
version "12.0.0"
|
||||
resolved "https://registry.yarnpkg.com/graphql-upload/-/graphql-upload-12.0.0.tgz#2351d20d294e920fb25d2eba9f7c352e37a1a02b"
|
||||
integrity sha512-ovZ3Q7sZ17Bmn8tYl22MfrpNR7nYM/DUszXWgkue7SFIlI9jtqszHAli8id8ZcnGBc9GF0gUTNSskYWW+5aNNQ==
|
||||
graphql-upload@^13.0.0:
|
||||
version "13.0.0"
|
||||
resolved "https://registry.yarnpkg.com/graphql-upload/-/graphql-upload-13.0.0.tgz#1a255b64d3cbf3c9f9171fa62a8fb0b9b59bb1d9"
|
||||
integrity sha512-YKhx8m/uOtKu4Y1UzBFJhbBGJTlk7k4CydlUUiNrtxnwZv0WigbRHP+DVhRNKt7u7DXOtcKZeYJlGtnMXvreXA==
|
||||
dependencies:
|
||||
busboy "^0.3.1"
|
||||
fs-capacitor "^6.2.0"
|
||||
http-errors "^1.8.0"
|
||||
isobject "^4.0.0"
|
||||
object-path "^0.11.5"
|
||||
http-errors "^1.8.1"
|
||||
object-path "^0.11.8"
|
||||
|
||||
graphql@15.5.1:
|
||||
version "15.5.1"
|
||||
@ -13584,6 +13583,17 @@ http-errors@1.8.0, http-errors@^1.6.3, http-errors@^1.7.3, http-errors@^1.8.0, h
|
||||
statuses ">= 1.5.0 < 2"
|
||||
toidentifier "1.0.0"
|
||||
|
||||
http-errors@^1.8.1:
|
||||
version "1.8.1"
|
||||
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.8.1.tgz#7c3f28577cbc8a207388455dbd62295ed07bd68c"
|
||||
integrity sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==
|
||||
dependencies:
|
||||
depd "~1.1.2"
|
||||
inherits "2.0.4"
|
||||
setprototypeof "1.2.0"
|
||||
statuses ">= 1.5.0 < 2"
|
||||
toidentifier "1.0.1"
|
||||
|
||||
http-errors@~1.6.2:
|
||||
version "1.6.3"
|
||||
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d"
|
||||
@ -18320,10 +18330,10 @@ object-keys@^1.0.12, object-keys@^1.1.1:
|
||||
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
|
||||
integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==
|
||||
|
||||
object-path@^0.11.5:
|
||||
version "0.11.7"
|
||||
resolved "https://registry.yarnpkg.com/object-path/-/object-path-0.11.7.tgz#5f211161f34bb395e4b13a5f565b79d933b6f65d"
|
||||
integrity sha512-T4evaK9VfGGQskXBDILcn6F90ZD+WO3OwRFFQ2rmZdUH4vQeDBpiolTpVlPY2yj5xSepyILTjDyM6UvbbdHMZw==
|
||||
object-path@^0.11.8:
|
||||
version "0.11.8"
|
||||
resolved "https://registry.yarnpkg.com/object-path/-/object-path-0.11.8.tgz#ed002c02bbdd0070b78a27455e8ae01fc14d4742"
|
||||
integrity sha512-YJjNZrlXJFM42wTBn6zgOJVar9KFJvzx6sTWDte8sWZF//cnjl0BxHNpfZx+ZffXX63A9q0b1zsFiBX4g4X5KA==
|
||||
|
||||
object-visit@^1.0.0:
|
||||
version "1.0.1"
|
||||
@ -23928,6 +23938,11 @@ toidentifier@1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553"
|
||||
integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==
|
||||
|
||||
toidentifier@1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35"
|
||||
integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==
|
||||
|
||||
toml@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/toml/-/toml-3.0.0.tgz#342160f1af1904ec9d204d03a5d61222d762c5ee"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user