@akemona-org/strapi 3.9.1 → 3.9.3-next.1
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/lib/services/metrics/index.js +23 -23
- package/lib/services/metrics/sender.js +6 -6
- package/package.json +12 -12
|
@@ -4,25 +4,25 @@
|
|
|
4
4
|
* You can learn more at https://strapi.akemona.com/documentation/developer-docs/latest/getting-started/usage-information.html
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
const crypto = require('crypto');
|
|
8
|
-
const fs = require('fs');
|
|
9
|
-
const path = require('path');
|
|
10
|
-
const { scheduleJob } = require('node-schedule');
|
|
11
|
-
|
|
12
|
-
const ee = require('../../utils/ee');
|
|
13
|
-
const wrapWithRateLimit = require('./rate-limiter');
|
|
14
|
-
const createSender = require('./sender');
|
|
15
|
-
const createMiddleware = require('./middleware');
|
|
16
|
-
const isTruthy = require('./is-truthy');
|
|
17
|
-
|
|
18
|
-
const LIMITED_EVENTS = [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
];
|
|
24
|
-
|
|
25
|
-
const createTelemetryInstance = (strapi) => {
|
|
7
|
+
// const crypto = require('crypto');
|
|
8
|
+
// const fs = require('fs');
|
|
9
|
+
// const path = require('path');
|
|
10
|
+
// const { scheduleJob } = require('node-schedule');
|
|
11
|
+
|
|
12
|
+
// const ee = require('../../utils/ee');
|
|
13
|
+
// const wrapWithRateLimit = require('./rate-limiter');
|
|
14
|
+
// const createSender = require('./sender');
|
|
15
|
+
// const createMiddleware = require('./middleware');
|
|
16
|
+
// const isTruthy = require('./is-truthy');
|
|
17
|
+
|
|
18
|
+
// const LIMITED_EVENTS = [
|
|
19
|
+
// 'didSaveMediaWithAlternativeText',
|
|
20
|
+
// 'didSaveMediaWithCaption',
|
|
21
|
+
// 'didDisableResponsiveDimensions',
|
|
22
|
+
// 'didEnableResponsiveDimensions',
|
|
23
|
+
// ];
|
|
24
|
+
|
|
25
|
+
/* const createTelemetryInstance = (strapi) => {
|
|
26
26
|
const { uuid } = strapi.config;
|
|
27
27
|
const isDisabled = !uuid || isTruthy(process.env.STRAPI_TELEMETRY_DISABLED);
|
|
28
28
|
|
|
@@ -75,9 +75,9 @@ const createTelemetryInstance = (strapi) => {
|
|
|
75
75
|
return sendEvent(event, payload);
|
|
76
76
|
},
|
|
77
77
|
};
|
|
78
|
-
};
|
|
78
|
+
}; */
|
|
79
79
|
|
|
80
|
-
const hash = (str) => crypto.createHash('sha256').update(str).digest('hex');
|
|
80
|
+
/* const hash = (str) => crypto.createHash('sha256').update(str).digest('hex');
|
|
81
81
|
|
|
82
82
|
const hashProject = (strapi) => hash(`${strapi.config.info.name}${strapi.config.info.description}`);
|
|
83
83
|
|
|
@@ -94,6 +94,6 @@ const hashDep = (strapi) => {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
return hash(`${depStr}`);
|
|
97
|
-
};
|
|
97
|
+
}; */
|
|
98
98
|
|
|
99
|
-
module.exports = createTelemetryInstance;
|
|
99
|
+
// module.exports = createTelemetryInstance;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
|
|
2
|
+
/*
|
|
3
3
|
const os = require('os');
|
|
4
4
|
const _ = require('lodash');
|
|
5
5
|
const isDocker = require('is-docker');
|
|
@@ -14,24 +14,24 @@ const defaultQueryOpts = {
|
|
|
14
14
|
headers: { 'Content-Type': 'application/json' },
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const ANALYTICS_URI = 'https://analytics.strapi.io';
|
|
17
|
+
const ANALYTICS_URI = 'https://analytics.strapi.io'; */
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Add properties from the package.json strapi key in the metadata
|
|
21
21
|
* @param {object} metadata
|
|
22
22
|
*/
|
|
23
|
-
const addPackageJsonStrapiMetadata = (metadata, strapi) => {
|
|
23
|
+
/* const addPackageJsonStrapiMetadata = (metadata, strapi) => {
|
|
24
24
|
const { packageJsonStrapi = {} } = strapi.config;
|
|
25
25
|
|
|
26
26
|
_.defaults(metadata, packageJsonStrapi);
|
|
27
|
-
};
|
|
27
|
+
}; */
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Create a send function for event with all the necessary metadatas
|
|
31
31
|
* @param {Object} strapi strapi app
|
|
32
32
|
* @returns {Function} (event, payload) -> Promise{boolean}
|
|
33
33
|
*/
|
|
34
|
-
module.exports = (strapi) => {
|
|
34
|
+
/* module.exports = (strapi) => {
|
|
35
35
|
const { uuid } = strapi.config;
|
|
36
36
|
const deviceId = machineIdSync();
|
|
37
37
|
const isEE = strapi.EE === true && ee.isEE === true;
|
|
@@ -73,4 +73,4 @@ module.exports = (strapi) => {
|
|
|
73
73
|
return false;
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
-
};
|
|
76
|
+
}; */
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.9.1",
|
|
6
|
+
"version": "3.9.3-next.1",
|
|
7
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: MongoDB, MySQL, MariaDB, PostgreSQL, SQLite",
|
|
8
8
|
"homepage": "https://strapi.akemona.com",
|
|
9
9
|
"directories": {
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
"strapi": "./bin/strapi.js"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@akemona-org/strapi-database": "3.9.1",
|
|
19
|
-
"@akemona-org/strapi-generate": "3.9.1",
|
|
20
|
-
"@akemona-org/strapi-generate-api": "3.9.1",
|
|
21
|
-
"@akemona-org/strapi-generate-controller": "3.9.1",
|
|
22
|
-
"@akemona-org/strapi-generate-model": "3.9.1",
|
|
23
|
-
"@akemona-org/strapi-generate-new": "3.9.1",
|
|
24
|
-
"@akemona-org/strapi-generate-plugin": "3.9.1",
|
|
25
|
-
"@akemona-org/strapi-generate-policy": "3.9.1",
|
|
26
|
-
"@akemona-org/strapi-generate-service": "3.9.1",
|
|
27
|
-
"@akemona-org/strapi-utils": "3.9.1",
|
|
18
|
+
"@akemona-org/strapi-database": "3.9.3-next.1",
|
|
19
|
+
"@akemona-org/strapi-generate": "3.9.3-next.1",
|
|
20
|
+
"@akemona-org/strapi-generate-api": "3.9.3-next.1",
|
|
21
|
+
"@akemona-org/strapi-generate-controller": "3.9.3-next.1",
|
|
22
|
+
"@akemona-org/strapi-generate-model": "3.9.3-next.1",
|
|
23
|
+
"@akemona-org/strapi-generate-new": "3.9.3-next.1",
|
|
24
|
+
"@akemona-org/strapi-generate-plugin": "3.9.3-next.1",
|
|
25
|
+
"@akemona-org/strapi-generate-policy": "3.9.3-next.1",
|
|
26
|
+
"@akemona-org/strapi-generate-service": "3.9.3-next.1",
|
|
27
|
+
"@akemona-org/strapi-utils": "3.9.3-next.1",
|
|
28
28
|
"@koa/cors": "^3.0.0",
|
|
29
29
|
"async": "^2.1.2",
|
|
30
30
|
"boom": "^7.3.0",
|
|
@@ -139,5 +139,5 @@
|
|
|
139
139
|
"react",
|
|
140
140
|
"reactjs"
|
|
141
141
|
],
|
|
142
|
-
"gitHead": "
|
|
142
|
+
"gitHead": "96ff1698243b60a37f6f3353068f866fd538939a"
|
|
143
143
|
}
|