@cubejs-backend/shared
Advanced tools
Comparing version 0.26.11 to 0.26.13
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.26.13](https://github.com/cube-js/cube.js/compare/v0.26.12...v0.26.13) (2021-02-12) | ||
**Note:** Version bump only for package @cubejs-backend/shared | ||
## [0.26.11](https://github.com/cube-js/cube.js/compare/v0.26.10...v0.26.11) (2021-02-10) | ||
@@ -8,0 +16,0 @@ |
@@ -25,3 +25,3 @@ "use strict"; | ||
method: 'post', | ||
body: JSON.stringify(toFlush.map(r => (Object.assign(Object.assign({}, r), { sentAt })))), | ||
body: JSON.stringify(toFlush.map(r => ({ ...r, sentAt }))), | ||
headers: { 'Content-Type': 'application/json' }, | ||
@@ -61,3 +61,10 @@ }); | ||
} | ||
trackEvents.push(Object.assign(Object.assign({}, opts), { id: crypto_1.default.randomBytes(16).toString('hex'), clientTimestamp: new Date().toJSON(), platform: process.platform, nodeVersion: process.version, anonymousId })); | ||
trackEvents.push({ | ||
...opts, | ||
id: crypto_1.default.randomBytes(16).toString('hex'), | ||
clientTimestamp: new Date().toJSON(), | ||
platform: process.platform, | ||
nodeVersion: process.version, | ||
anonymousId, | ||
}); | ||
const currentPromise = (flushPromise || Promise.resolve()).then(() => flush()).then(() => { | ||
@@ -64,0 +71,0 @@ if (currentPromise === flushPromise) { |
{ | ||
"name": "@cubejs-backend/shared", | ||
"version": "0.26.11", | ||
"version": "0.26.13", | ||
"description": "Shared code for Cube.js backend packages", | ||
@@ -25,3 +25,3 @@ "main": "dist/src/index.js", | ||
"devDependencies": { | ||
"@cubejs-backend/linter": "^0.26.11", | ||
"@cubejs-backend/linter": "^0.26.13", | ||
"@types/jest": "^26.0.16", | ||
@@ -54,3 +54,3 @@ "@types/node-fetch": "^2.5.7", | ||
}, | ||
"gitHead": "0bcafd9e41c09f17b2f8843fd0702081bbd3f6a8" | ||
"gitHead": "4827eb8e44d0b471da39ceaf49aafda4091c6fb6" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70928
739