@nexrender/core 1.46.0 → 1.46.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/package.json +2 -2
- package/src/helpers/analytics.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexrender/core",
|
|
3
|
-
"version": "1.46.
|
|
3
|
+
"version": "1.46.1",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"author": "Inlife",
|
|
6
6
|
"homepage": "https://www.nexrender.com",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "9286b0383ee0c7f54fec91a7c37b1e6714b71e3e"
|
|
40
40
|
}
|
package/src/helpers/analytics.js
CHANGED
|
@@ -32,7 +32,7 @@ const analytics = new PostHog(analyticsPublicKey, {
|
|
|
32
32
|
*/
|
|
33
33
|
const forceSyncRequest = (settings, event, properties) => {
|
|
34
34
|
const args = JSON.stringify({settings, event, properties})
|
|
35
|
-
|
|
35
|
+
childProcess.fork(__filename, ['child', args], {
|
|
36
36
|
stdio: 'ignore',
|
|
37
37
|
})
|
|
38
38
|
}
|
|
@@ -51,7 +51,7 @@ let cache = {
|
|
|
51
51
|
* @param {*} properties
|
|
52
52
|
* @returns {Promise<void>}
|
|
53
53
|
*/
|
|
54
|
-
const track = async (settings, event, properties = {}
|
|
54
|
+
const track = async (settings, event, properties = {}) => {
|
|
55
55
|
// if (isRemote) console.log('tracking', event, properties, settings)
|
|
56
56
|
|
|
57
57
|
if (settings.noAnalytics === true) return;
|
|
@@ -192,7 +192,7 @@ const track = async (settings, event, properties = {}, isRemote) => {
|
|
|
192
192
|
|
|
193
193
|
if (process.argv[2] === 'child') {
|
|
194
194
|
const args = JSON.parse(process.argv[3])
|
|
195
|
-
track(args.settings, args.event, args.properties
|
|
195
|
+
track(args.settings, args.event, args.properties)
|
|
196
196
|
.then(() => {})
|
|
197
197
|
}
|
|
198
198
|
|