@cubejs-backend/shared
Advanced tools
Comparing version 0.28.50 to 0.28.52
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.28.52](https://github.com/cube-js/cube.js/compare/v0.28.51...v0.28.52) (2021-11-03) | ||
### Bug Fixes | ||
* Empty data partitioned pre-aggregations are incorrectly handled -- value provided is not in a recognized RFC2822 or ISO format ([9f3acd5](https://github.com/cube-js/cube.js/commit/9f3acd572bcd2421bf8d3581c4c6287b62e77313)) | ||
## [0.28.50](https://github.com/cube-js/cube.js/compare/v0.28.49...v0.28.50) (2021-10-28) | ||
@@ -8,0 +19,0 @@ |
@@ -80,3 +80,7 @@ "use strict"; | ||
data = JSON.parse(JSON.stringify(data)); | ||
return moment.tz(data[0] && data[0][Object.keys(data[0])[0]], 'UTC').utc().format(moment.HTML5_FMT.DATETIME_LOCAL_MS); | ||
const value = data[0] && data[0][Object.keys(data[0])[0]]; | ||
if (!value) { | ||
return value; | ||
} | ||
return moment.tz(value, 'UTC').utc().format(moment.HTML5_FMT.DATETIME_LOCAL_MS); | ||
}; | ||
@@ -83,0 +87,0 @@ exports.extractDate = extractDate; |
{ | ||
"name": "@cubejs-backend/shared", | ||
"version": "0.28.50", | ||
"version": "0.28.52", | ||
"description": "Shared code for Cube.js backend packages", | ||
@@ -68,3 +68,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "99d42f127fb7403a5c8a632b07e0c3f43fe14ca1" | ||
"gitHead": "22f1fcf3dc77d5784eda6b8eff8bcd430652cc69" | ||
} |
Sorry, the diff of this file is not supported yet
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
138215
1420