Socket
Socket
Sign inDemoInstall

@cubejs-client/core

Package Overview
Dependencies
Maintainers
3
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cubejs-client/core - npm Package Compare versions

Comparing version 0.33.55 to 0.33.58

2

dist/cubejs-client-core.esm.js

@@ -446,3 +446,3 @@ import { v4 } from 'uuid';

if (originalTimeDimension) {
if (originalTimeDimension?.dateRange) {
const [originalStart, originalEnd] = originalTimeDimension.dateRange;

@@ -449,0 +449,0 @@ dateRange = [dayjs(originalStart) > range.start ? dayjs(originalStart) : range.start, dayjs(originalEnd) < range.end ? dayjs(originalEnd) : range.end];

{
"name": "@cubejs-client/core",
"version": "0.33.55",
"version": "0.33.58",
"engines": {},

@@ -48,3 +48,3 @@ "repository": {

},
"gitHead": "7cb9ace521ab59474e54e4f7cbfb98acb91c9008"
"gitHead": "49caef372253236528bcf96b74fbda2447709541"
}

@@ -172,3 +172,3 @@ import dayjs from 'dayjs';

if (originalTimeDimension) {
if (originalTimeDimension?.dateRange) {
const [originalStart, originalEnd] = originalTimeDimension.dateRange;

@@ -175,0 +175,0 @@

@@ -244,2 +244,12 @@ import 'jest';

);
const resultSet5 = new ResultSet(
loadResponse({
timeDimensions: [
{
dimension: 'Orders.ts',
granularity: 'week',
}
]
})
);

@@ -370,2 +380,25 @@ it('handles a query with a time dimension', () => {

});
it('snap date range to granularity if the date range is not defined in the time dimension', () => {
expect(
resultSet5.drillDown({ xValues: ['2020-08-01T00:00:00.000'] })
).toEqual({
measures: [],
segments: [],
dimensions: ['Orders.id', 'Orders.title'],
filters: [
{
member: 'Orders.count',
operator: 'measureFilter',
},
],
timeDimensions: [
{
dimension: 'Orders.ts',
dateRange: ['2020-07-27T00:00:00.000', '2020-08-02T23:59:59.999'],
},
],
timezone: 'UTC',
});
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc