Merge branch 'master' into features/i18n

This commit is contained in:
Alexandre Bodin 2021-04-21 13:02:12 +02:00
commit 4a0448e5bf
4 changed files with 21 additions and 14 deletions

View File

@ -11,15 +11,15 @@
"@sentry/node": "6.2.5" "@sentry/node": "6.2.5"
}, },
"author": { "author": {
"name": "A Strapi developer", "name": "Strapi team",
"email": "", "email": "hi@strapi.io",
"url": "" "url": "https://strapi.io"
}, },
"maintainers": [ "maintainers": [
{ {
"name": "A Strapi developer", "name": "Strapi team",
"email": "", "email": "hi@strapi.io",
"url": "" "url": "https://strapi.io"
} }
], ],
"engines": { "engines": {

View File

@ -43,15 +43,15 @@
"uuid": "^3.2.1" "uuid": "^3.2.1"
}, },
"author": { "author": {
"name": "A Strapi developer", "name": "Strapi team",
"email": "", "email": "hi@strapi.io",
"url": "" "url": "https://strapi.io"
}, },
"maintainers": [ "maintainers": [
{ {
"name": "A Strapi developer", "name": "Strapi team",
"email": "", "email": "hi@strapi.io",
"url": "" "url": "https://strapi.io"
} }
], ],
"engines": { "engines": {

View File

@ -256,9 +256,15 @@ class Strapi {
} }
} }
// Emit started event. // Get database clients
const databaseClients = _.map(this.config.get('connections'), _.property('settings.client')); const databaseClients = _.map(this.config.get('connections'), _.property('settings.client'));
await this.telemetry.send('didStartServer', { database: databaseClients });
// Emit started event.
await this.telemetry.send('didStartServer', {
database: databaseClients,
plugins: this.config.installedPlugins,
providers: this.config.installedProviders,
});
if (cb && typeof cb === 'function') { if (cb && typeof cb === 'function') {
cb(); cb();

View File

@ -83,6 +83,7 @@ module.exports = (dir, initialConfig = {}) => {
installedPlugins: getPrefixedDeps('strapi-plugin', pkgJSON), installedPlugins: getPrefixedDeps('strapi-plugin', pkgJSON),
installedMiddlewares: getPrefixedDeps('strapi-middleware', pkgJSON), installedMiddlewares: getPrefixedDeps('strapi-middleware', pkgJSON),
installedHooks: getPrefixedDeps('strapi-hook', pkgJSON), installedHooks: getPrefixedDeps('strapi-hook', pkgJSON),
installedProviders: getPrefixedDeps('strapi-provider', pkgJSON),
}; };
const baseConfig = { const baseConfig = {