@nexrender/core 1.45.7 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexrender/core",
3
- "version": "1.45.7",
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": "5d2a29f7c380b9f0217cb19d230206f7ab0e50e0"
39
+ "gitHead": "9286b0383ee0c7f54fec91a7c37b1e6714b71e3e"
40
40
  }
@@ -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
- const proc = childProcess.fork(__filename, ['child', args], {
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 = {}, isRemote) => {
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, true)
195
+ track(args.settings, args.event, args.properties)
196
196
  .then(() => {})
197
197
  }
198
198
 
@@ -84,7 +84,7 @@ const download = (job, settings, asset) => {
84
84
  cachePath;
85
85
 
86
86
  /* TODO: maybe move to external package ?? */
87
- const src = decodeURI(asset.src) === asset.src ? encodeURI(asset.src): asset.src
87
+ const src = asset.src
88
88
  return fetch(src, asset.params)
89
89
  .then(res => res.ok ? res : Promise.reject({reason: 'Initial error downloading file', meta: {src, error: res.error}}))
90
90
  .then(res => {