mirror of
https://github.com/strapi/strapi.git
synced 2025-08-23 16:19:37 +00:00
Merge branch 'v4/backend' into pluginAPI/loadPlugin
This commit is contained in:
commit
c3642a4f10
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "getstarted",
|
||||
"private": true,
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "A Strapi application.",
|
||||
"scripts": {
|
||||
"develop": "strapi develop",
|
||||
@ -12,25 +12,25 @@
|
||||
"strapi": "strapi"
|
||||
},
|
||||
"dependencies": {
|
||||
"@strapi/admin": "3.6.6",
|
||||
"@strapi/plugin-content-manager": "3.6.6",
|
||||
"@strapi/plugin-content-type-builder": "3.6.6",
|
||||
"@strapi/plugin-documentation": "3.6.6",
|
||||
"@strapi/plugin-email": "3.6.6",
|
||||
"@strapi/plugin-graphql": "3.6.6",
|
||||
"@strapi/plugin-i18n": "3.6.6",
|
||||
"@strapi/plugin-upload": "3.6.6",
|
||||
"@strapi/plugin-users-permissions": "3.6.6",
|
||||
"@strapi/provider-email-mailgun": "3.6.6",
|
||||
"@strapi/provider-upload-aws-s3": "3.6.6",
|
||||
"@strapi/provider-upload-cloudinary": "3.6.6",
|
||||
"@strapi/strapi": "3.6.6",
|
||||
"@strapi/utils": "3.6.6",
|
||||
"@strapi/admin": "3.6.7",
|
||||
"@strapi/plugin-content-manager": "3.6.7",
|
||||
"@strapi/plugin-content-type-builder": "3.6.7",
|
||||
"@strapi/plugin-documentation": "3.6.7",
|
||||
"@strapi/plugin-email": "3.6.7",
|
||||
"@strapi/plugin-graphql": "3.6.7",
|
||||
"@strapi/plugin-i18n": "3.6.7",
|
||||
"@strapi/plugin-upload": "3.6.7",
|
||||
"@strapi/plugin-users-permissions": "3.6.7",
|
||||
"@strapi/provider-email-mailgun": "3.6.7",
|
||||
"@strapi/provider-upload-aws-s3": "3.6.7",
|
||||
"@strapi/provider-upload-cloudinary": "3.6.7",
|
||||
"@strapi/strapi": "3.6.7",
|
||||
"@strapi/utils": "3.6.7",
|
||||
"lodash": "4.17.21",
|
||||
"mysql": "2.18.1",
|
||||
"pg": "8.6.0",
|
||||
"sqlite3": "5.0.2",
|
||||
"strapi-middleware-views": "3.6.6"
|
||||
"strapi-middleware-views": "3.6.7"
|
||||
},
|
||||
"strapi": {
|
||||
"uuid": "getstarted"
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"packages": [
|
||||
"packages/*",
|
||||
"examples/*"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "create-strapi-app",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Generate a new Strapi application.",
|
||||
"license": "SEE LICENSE IN LICENSE",
|
||||
"homepage": "https://strapi.io",
|
||||
@ -21,7 +21,7 @@
|
||||
"inquirer": "8.1.0",
|
||||
"js-yaml": "4.1.0",
|
||||
"node-fetch": "^2.6.1",
|
||||
"@strapi/generate-new": "3.6.6"
|
||||
"@strapi/generate-new": "3.6.7"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"no tests yet\""
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "create-strapi-starter",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Generate a new Strapi application.",
|
||||
"license": "SEE LICENSE IN LICENSE",
|
||||
"homepage": "https://strapi.io",
|
||||
@ -26,7 +26,7 @@
|
||||
"js-yaml": "4.1.0",
|
||||
"node-fetch": "^2.6.1",
|
||||
"ora": "5.4.0",
|
||||
"@strapi/generate-new": "3.6.6",
|
||||
"@strapi/generate-new": "3.6.7",
|
||||
"tar": "6.1.4"
|
||||
},
|
||||
"scripts": {
|
||||
|
@ -1,29 +1,32 @@
|
||||
import React from 'react';
|
||||
import { FormattedMessage, useIntl } from 'react-intl';
|
||||
import { useTracking } from '@strapi/helper-plugin';
|
||||
import Wrapper from './Wrapper';
|
||||
import LogoStrapi from '../../../assets/images/banner_strapi-rocket.png';
|
||||
|
||||
const PluginBanner = () => {
|
||||
const MarketplaceBanner = () => {
|
||||
const { formatMessage } = useIntl();
|
||||
const { trackUsage } = useTracking();
|
||||
|
||||
return (
|
||||
<Wrapper>
|
||||
<img
|
||||
className="bannerImage"
|
||||
src={LogoStrapi}
|
||||
alt={formatMessage({ id: 'app.components.PluginBanner.image.alt' })}
|
||||
alt={formatMessage({ id: 'app.components.MarketplaceBanner.image.alt' })}
|
||||
/>
|
||||
<div>
|
||||
<div>
|
||||
<FormattedMessage id="app.components.PluginBanner" />
|
||||
<FormattedMessage id="app.components.MarketplaceBanner" />
|
||||
</div>
|
||||
<a
|
||||
href="https://github.com/strapi/awesome-strapi"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="bannerLink"
|
||||
onClick={() => trackUsage('didGoToStrapiAwesome')}
|
||||
>
|
||||
<FormattedMessage id="app.components.PluginBanner.link" />
|
||||
<FormattedMessage id="app.components.MarketplaceBanner.link" />
|
||||
<i className="fa fa-external-link-alt" />
|
||||
</a>
|
||||
</div>
|
||||
@ -31,4 +34,4 @@ const PluginBanner = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default PluginBanner;
|
||||
export default MarketplaceBanner;
|
@ -15,7 +15,7 @@ import { useFetchPluginsFromMarketPlace } from '../../hooks';
|
||||
import PageTitle from '../../components/PageTitle';
|
||||
import PluginCard from './PluginCard';
|
||||
import Wrapper from './Wrapper';
|
||||
import PluginBanner from './PluginBanner';
|
||||
import MarketplaceBanner from './MarketplaceBanner';
|
||||
|
||||
const MarketPlacePage = () => {
|
||||
const toggleNotification = useNotification();
|
||||
@ -91,7 +91,7 @@ const MarketPlacePage = () => {
|
||||
id: 'app.components.InstallPluginPage.description',
|
||||
})}
|
||||
/>
|
||||
<PluginBanner />
|
||||
<MarketplaceBanner />
|
||||
<div className="row" style={{ paddingTop: '4.1rem' }}>
|
||||
{data.map(plugin => {
|
||||
return (
|
||||
|
@ -231,9 +231,9 @@
|
||||
"app.components.Official": "Official",
|
||||
"app.components.Onboarding.label.completed": "% completed",
|
||||
"app.components.Onboarding.title": "Get Started Videos",
|
||||
"app.components.PluginBanner": "Discover plugins built by the community, and many more awesome things to kickstart your project, on Strapi Awesome.",
|
||||
"app.components.PluginBanner.image.alt": "a strapi rocket logo",
|
||||
"app.components.PluginBanner.link": "Check it out now",
|
||||
"app.components.MarketplaceBanner": "Discover plugins built by the community, and many more awesome things to kickstart your project, on Strapi Awesome.",
|
||||
"app.components.MarketplaceBanner.image.alt": "a strapi rocket logo",
|
||||
"app.components.MarketplaceBanner.link": "Check it out now",
|
||||
"app.components.PluginCard.Button.label.download": "Download",
|
||||
"app.components.PluginCard.Button.label.install": "Already installed",
|
||||
"app.components.PluginCard.PopUpWarning.install.impossible.autoReload.needed": "The autoReload feature needs to be enabled. Please start your app with `yarn develop`.",
|
||||
|
@ -12,6 +12,11 @@ module.exports = {
|
||||
path: '/connect/:provider',
|
||||
handler: 'authentication.providerLogin',
|
||||
},
|
||||
{
|
||||
method: 'POST',
|
||||
path: '/connect/:provider',
|
||||
handler: 'authentication.providerLogin',
|
||||
},
|
||||
{
|
||||
method: 'GET',
|
||||
path: '/providers/options',
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/admin",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Strapi Admin",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -39,8 +39,8 @@
|
||||
"@fortawesome/free-solid-svg-icons": "^5.15.3",
|
||||
"@fortawesome/react-fontawesome": "^0.1.14",
|
||||
"@strapi/babel-plugin-switch-ee-ce": "1.0.0",
|
||||
"@strapi/helper-plugin": "3.6.6",
|
||||
"@strapi/utils": "3.6.6",
|
||||
"@strapi/helper-plugin": "3.6.7",
|
||||
"@strapi/utils": "3.6.7",
|
||||
"axios": "^0.21.1",
|
||||
"babel-loader": "8.2.2",
|
||||
"babel-plugin-styled-components": "1.12.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/plugin-content-manager",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "A powerful UI to easily manage your data.",
|
||||
"strapi": {
|
||||
"icon": "plug",
|
||||
@ -12,8 +12,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@sindresorhus/slugify": "1.1.0",
|
||||
"@strapi/helper-plugin": "3.6.6",
|
||||
"@strapi/utils": "3.6.6",
|
||||
"@strapi/helper-plugin": "3.6.7",
|
||||
"@strapi/utils": "3.6.7",
|
||||
"lodash": "4.17.21",
|
||||
"pluralize": "^8.0.0",
|
||||
"yup": "^0.32.9"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/plugin-content-type-builder",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Strapi plugin to create content type (API).",
|
||||
"strapi": {
|
||||
"name": "Content Type Builder",
|
||||
@ -10,10 +10,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@sindresorhus/slugify": "1.1.0",
|
||||
"@strapi/generate": "3.6.6",
|
||||
"@strapi/generate-api": "3.6.6",
|
||||
"@strapi/helper-plugin": "3.6.6",
|
||||
"@strapi/utils": "3.6.6",
|
||||
"@strapi/generate": "3.6.7",
|
||||
"@strapi/generate-api": "3.6.7",
|
||||
"@strapi/helper-plugin": "3.6.7",
|
||||
"@strapi/utils": "3.6.7",
|
||||
"fs-extra": "^9.1.0",
|
||||
"lodash": "4.17.21",
|
||||
"pluralize": "^8.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/database",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Strapi's database layer",
|
||||
"homepage": "https://strapi.io",
|
||||
"main": "./lib/index.js",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/plugin-email",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Easily configure your Strapi application to send emails.",
|
||||
"strapi": {
|
||||
"name": "Email",
|
||||
@ -14,12 +14,12 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash": "4.17.21",
|
||||
"@strapi/provider-email-sendmail": "3.6.6",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/provider-email-sendmail": "3.6.7",
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"rimraf": "3.0.2",
|
||||
"@strapi/helper-plugin": "3.6.6"
|
||||
"@strapi/helper-plugin": "3.6.7"
|
||||
},
|
||||
"author": {
|
||||
"name": "Strapi team",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/helper-plugin",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Helper for Strapi plugins development",
|
||||
"main": "build/index.js",
|
||||
"module": "build/index.esm.js",
|
||||
|
@ -68,9 +68,8 @@ const createDefaultImplementation = ({ strapi, db, eventHub, entityValidator })
|
||||
|
||||
const query = transformParamsToQuery(uid, params);
|
||||
|
||||
// return first element and ignore filters
|
||||
if (kind === 'singleType') {
|
||||
return db.query(uid).findOne({});
|
||||
return db.query(uid).findOne(query);
|
||||
}
|
||||
|
||||
return db.query(uid).findMany(query);
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/strapi",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"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",
|
||||
"homepage": "https://strapi.io",
|
||||
"directories": {
|
||||
@ -13,18 +13,18 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@koa/cors": "^3.0.0",
|
||||
"@strapi/admin": "3.6.6",
|
||||
"@strapi/database": "3.6.6",
|
||||
"@strapi/generate": "3.6.6",
|
||||
"@strapi/generate-api": "3.6.6",
|
||||
"@strapi/generate-controller": "3.6.6",
|
||||
"@strapi/generate-model": "3.6.6",
|
||||
"@strapi/generate-new": "3.6.6",
|
||||
"@strapi/generate-plugin": "3.6.6",
|
||||
"@strapi/generate-policy": "3.6.6",
|
||||
"@strapi/generate-service": "3.6.6",
|
||||
"@strapi/logger": "3.6.6",
|
||||
"@strapi/utils": "3.6.6",
|
||||
"@strapi/admin": "3.6.7",
|
||||
"@strapi/database": "3.6.7",
|
||||
"@strapi/generate": "3.6.7",
|
||||
"@strapi/generate-api": "3.6.7",
|
||||
"@strapi/generate-controller": "3.6.7",
|
||||
"@strapi/generate-model": "3.6.7",
|
||||
"@strapi/generate-new": "3.6.7",
|
||||
"@strapi/generate-plugin": "3.6.7",
|
||||
"@strapi/generate-policy": "3.6.7",
|
||||
"@strapi/generate-service": "3.6.7",
|
||||
"@strapi/logger": "3.6.7",
|
||||
"@strapi/utils": "3.6.7",
|
||||
"async": "^2.1.2",
|
||||
"boom": "^7.3.0",
|
||||
"boxen": "4.2.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/plugin-upload",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Makes it easy to upload images and files to your Strapi Application.",
|
||||
"strapi": {
|
||||
"displayName": "Media Library",
|
||||
@ -14,9 +14,9 @@
|
||||
"test": "echo \"no tests yet\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@strapi/helper-plugin": "3.6.6",
|
||||
"@strapi/provider-upload-local": "3.6.6",
|
||||
"@strapi/utils": "3.6.6",
|
||||
"@strapi/helper-plugin": "3.6.7",
|
||||
"@strapi/provider-upload-local": "3.6.7",
|
||||
"@strapi/utils": "3.6.7",
|
||||
"byte-size": "^7.0.1",
|
||||
"cropperjs": "^1.5.11",
|
||||
"immer": "9.0.5",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/utils",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Shared utilities for the Strapi packages",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/generate-api",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Generate an API for a Strapi application.",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
@ -15,7 +15,7 @@
|
||||
"dependencies": {
|
||||
"lodash": "4.17.21",
|
||||
"pluralize": "^8.0.0",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"no tests yet\""
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/generate-new",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Generate a new Strapi application.",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/generate-controller",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Generate a controller for a Strapi API.",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
@ -15,7 +15,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash": "4.17.21",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"no tests yet\""
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/generate",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Master of ceremonies for the Strapi generators.",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
@ -20,7 +20,7 @@
|
||||
"fs-extra": "^9.1.0",
|
||||
"lodash": "4.17.21",
|
||||
"reportback": "^2.0.2",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"author": {
|
||||
"name": "Strapi team",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/generate-model",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Generate a model for a Strapi API.",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
@ -16,7 +16,7 @@
|
||||
"dependencies": {
|
||||
"lodash": "4.17.21",
|
||||
"pluralize": "^8.0.0",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"no tests yet\""
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/generate-plugin",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Generate an plugin for a Strapi application.",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
@ -15,7 +15,7 @@
|
||||
"dependencies": {
|
||||
"fs-extra": "^9.1.0",
|
||||
"lodash": "4.17.21",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"no tests yet\""
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/generate-policy",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Generate a policy for a Strapi API.",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
@ -15,7 +15,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash": "4.17.21",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"no tests yet\""
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/generate-service",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Generate a service for a Strapi API.",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
@ -15,7 +15,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash": "4.17.21",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"no tests yet\""
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/plugin-documentation",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
||||
"strapi": {
|
||||
"displayName": "Documentation",
|
||||
@ -13,7 +13,7 @@
|
||||
"test": "echo \"no tests yet\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@strapi/helper-plugin": "3.6.6",
|
||||
"@strapi/helper-plugin": "3.6.7",
|
||||
"cheerio": "^1.0.0-rc.5",
|
||||
"fs-extra": "^9.1.0",
|
||||
"koa-static": "^5.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/plugin-graphql",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Adds GraphQL endpoint with default API methods.",
|
||||
"strapi": {
|
||||
"displayName": "GraphQL",
|
||||
@ -29,7 +29,7 @@
|
||||
"koa-compose": "^4.1.0",
|
||||
"lodash": "4.17.21",
|
||||
"pluralize": "^8.0.0",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"cross-env": "^7.0.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/plugin-i18n",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "This plugin enables to create, to read and to update content in different languages, both from the Admin Panel and from the API",
|
||||
"strapi": {
|
||||
"displayName": "Internationalization",
|
||||
@ -14,7 +14,7 @@
|
||||
"lodash": "4.17.20",
|
||||
"p-map": "4.0.0",
|
||||
"pluralize": "8.0.0",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"author": {
|
||||
"name": "A Strapi developer",
|
||||
|
@ -173,9 +173,7 @@ describe('localizations service', () => {
|
||||
setGlobalStrapi();
|
||||
|
||||
const update = jest.fn();
|
||||
global.strapi.query = () => {
|
||||
return { update };
|
||||
};
|
||||
global.strapi.entityService = { update };
|
||||
|
||||
const entry = {
|
||||
id: 1,
|
||||
@ -188,7 +186,7 @@ describe('localizations service', () => {
|
||||
await syncNonLocalizedAttributes(entry, { model });
|
||||
|
||||
expect(update).toHaveBeenCalledTimes(1);
|
||||
expect(update).toHaveBeenCalledWith({ where: { id: 2 }, data: { stars: 1 } });
|
||||
expect(update).toHaveBeenCalledWith(model.uid, 2, { data: { stars: 1 } });
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -53,7 +53,7 @@ const syncNonLocalizedAttributes = async (entry, { model }) => {
|
||||
}
|
||||
|
||||
const updateLocalization = id => {
|
||||
return strapi.query(model.uid).update({ where: { id }, data: nonLocalizedAttributes });
|
||||
return strapi.entityService.update(model.uid, id, { data: nonLocalizedAttributes });
|
||||
};
|
||||
|
||||
await Promise.all(entry.localizations.map(({ id }) => updateLocalization(id)));
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/plugin-sentry",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Send Strapi error events to Sentry",
|
||||
"strapi": {
|
||||
"name": "Sentry",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/plugin-users-permissions",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Protect your API with a full-authentication process based on JWT",
|
||||
"strapi": {
|
||||
"displayName": "Roles & Permissions",
|
||||
@ -15,8 +15,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@purest/providers": "^1.0.2",
|
||||
"@strapi/helper-plugin": "3.6.6",
|
||||
"@strapi/utils": "3.6.6",
|
||||
"@strapi/helper-plugin": "3.6.7",
|
||||
"@strapi/utils": "3.6.7",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"grant-koa": "5.4.8",
|
||||
"jsonwebtoken": "^8.1.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/provider-email-amazon-ses",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Amazon SES provider for strapi email",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
@ -15,7 +15,7 @@
|
||||
"main": "./lib",
|
||||
"dependencies": {
|
||||
"node-ses": "^3.0.3",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"author": {
|
||||
"email": "nikolay@tsenkov.net",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/provider-email-mailgun",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Mailgun provider for strapi email plugin",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
@ -14,7 +14,7 @@
|
||||
"main": "./lib",
|
||||
"dependencies": {
|
||||
"mailgun-js": "0.22.0",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"strapi": {
|
||||
"isProvider": true
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/provider-email-nodemailer",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Nodemailer provider for Strapi 3",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/provider-email-sendgrid",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Sendgrid provider for strapi email",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
@ -14,7 +14,7 @@
|
||||
"main": "./lib",
|
||||
"dependencies": {
|
||||
"@sendgrid/mail": "6.4.0",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"strapi": {
|
||||
"isProvider": true
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/provider-email-sendmail",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Sendmail provider for strapi email",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
@ -13,7 +13,7 @@
|
||||
"main": "./lib",
|
||||
"dependencies": {
|
||||
"sendmail": "^1.6.1",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"strapi": {
|
||||
"isProvider": true
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/provider-upload-aws-s3",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "AWS S3 provider for strapi upload",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/provider-upload-cloudinary",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Cloudinary provider for strapi upload",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/provider-upload-local",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Local provider for strapi upload",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/provider-upload-rackspace",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Rackspace provider for strapi upload",
|
||||
"main": "./lib",
|
||||
"keywords": [],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-hook-ejs",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "EJS hook for the Strapi framework",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-hook-redis",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Redis hook for the Strapi framework",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
@ -19,7 +19,7 @@
|
||||
"lodash": "4.17.21",
|
||||
"rimraf": "3.0.2",
|
||||
"stack-trace": "0.0.10",
|
||||
"@strapi/utils": "3.6.6"
|
||||
"@strapi/utils": "3.6.7"
|
||||
},
|
||||
"author": {
|
||||
"email": "hi@strapi.io",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-middleware-views",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Views middleware to enable server-side rendering for the Strapi framework",
|
||||
"homepage": "https://strapi.io",
|
||||
"keywords": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@strapi/logger",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.7",
|
||||
"description": "Strapi's logger",
|
||||
"homepage": "https://strapi.io",
|
||||
"main": "./lib/index.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user