@cubejs-client/core
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -41,2 +41,7 @@ 'use strict'; | ||
}, | ||
year: function year(range) { | ||
return Array.from(range.snapTo('year').by('year')).map(function (d) { | ||
return d.format('YYYY-01-01T00:00:00.000'); | ||
}); | ||
}, | ||
hour: function hour(range) { | ||
@@ -529,3 +534,3 @@ return Array.from(range.by('hour')).map(function (d) { | ||
} | ||
}, _callee, this); | ||
}, _callee); | ||
})); | ||
@@ -532,0 +537,0 @@ |
{ | ||
"name": "@cubejs-client/core", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "cube.js client", | ||
@@ -29,3 +29,3 @@ "main": "dist/cubejs-client-core.js", | ||
}, | ||
"gitHead": "8ab93e21c35a569edb18e8b8f6a04df2e74b48fa" | ||
"gitHead": "f46b13e1bf02b96cfb961c3e02fb77b0ed682be1" | ||
} |
@@ -14,2 +14,5 @@ import { groupBy, pipe, toPairs, uniq, filter, map, unnest, dropLast, equals, reduce, minBy, maxBy } from 'ramda'; | ||
.map(d => d.format('YYYY-MM-01T00:00:00.000')), | ||
year: (range) => | ||
Array.from(range.snapTo('year').by('year')) | ||
.map(d => d.format('YYYY-01-01T00:00:00.000')), | ||
hour: (range) => | ||
@@ -16,0 +19,0 @@ Array.from(range.by('hour')) |
Sorry, the diff of this file is too big to display
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
457080
13076