Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@devexpress/dx-scheduler-core

Package Overview
Dependencies
Maintainers
12
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devexpress/dx-scheduler-core - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

23

dist/dx-scheduler-core.es.js
/**
* Bundle of @devexpress/dx-scheduler-core
* Generated: 2019-08-01
* Version: 2.0.2
* Generated: 2019-08-16
* Version: 2.0.3
* License: https://js.devexpress.com/Licensing

@@ -9,3 +9,3 @@ */

import moment from 'moment';
import { RRule, RRuleSet, rrulestr } from 'rrule';
import { RRule, RRuleSet } from 'rrule';

@@ -314,9 +314,17 @@ /*! *****************************************************************************

}
var options = __assign({}, RRule.parseString(appointment.rRule), { dtstart: moment(appointment.start).toDate() });
var appointmentStartDate = moment(appointment.start).toDate();
var options = __assign({}, RRule.parseString(appointment.rRule), { dtstart: new Date(getUTCDate(appointmentStartDate)) });
var rruleSet = new RRuleSet();
if (appointment.exDate) {
rruleSet = rrulestr("EXDATE:" + appointment.exDate, { forceset: true });
appointment.exDate.split(',').reduce(function (acc, date) {
var currentExDate = moment(date).toDate();
rruleSet.exdate(new Date(getUTCDate(currentExDate)));
}, []);
}
rruleSet.rrule(new RRule(options));
var datesInBoundaries = rruleSet.between(leftBound, rightBound);
// According to https://github.com/jakubroztocil/rrule#important-use-utc-dates
// we have to format the dates we get from RRuleSet to get local dates
var datesInBoundaries = rruleSet.between(leftBound, rightBound).map(function (date) {
return moment.utc(date).format('YYYY-MM-DD HH:mm');
});
if (datesInBoundaries.length === 0)

@@ -328,2 +336,5 @@ return [];

};
var getUTCDate = function (date) {
return Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes());
};

@@ -330,0 +341,0 @@ var subtractSecond = function (date) { return moment(date).subtract(1, 'second').toDate(); };

/**
* Bundle of @devexpress/dx-scheduler-core
* Generated: 2019-08-01
* Version: 2.0.2
* Generated: 2019-08-16
* Version: 2.0.3
* License: https://js.devexpress.com/Licensing

@@ -320,9 +320,17 @@ */

}
var options = __assign({}, rrule.RRule.parseString(appointment.rRule), { dtstart: moment(appointment.start).toDate() });
var appointmentStartDate = moment(appointment.start).toDate();
var options = __assign({}, rrule.RRule.parseString(appointment.rRule), { dtstart: new Date(getUTCDate(appointmentStartDate)) });
var rruleSet = new rrule.RRuleSet();
if (appointment.exDate) {
rruleSet = rrule.rrulestr("EXDATE:" + appointment.exDate, { forceset: true });
appointment.exDate.split(',').reduce(function (acc, date) {
var currentExDate = moment(date).toDate();
rruleSet.exdate(new Date(getUTCDate(currentExDate)));
}, []);
}
rruleSet.rrule(new rrule.RRule(options));
var datesInBoundaries = rruleSet.between(leftBound, rightBound);
// According to https://github.com/jakubroztocil/rrule#important-use-utc-dates
// we have to format the dates we get from RRuleSet to get local dates
var datesInBoundaries = rruleSet.between(leftBound, rightBound).map(function (date) {
return moment.utc(date).format('YYYY-MM-DD HH:mm');
});
if (datesInBoundaries.length === 0)

@@ -334,2 +342,5 @@ return [];

};
var getUTCDate = function (date) {
return Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes());
};

@@ -336,0 +347,0 @@ var subtractSecond = function (date) { return moment(date).subtract(1, 'second').toDate(); };

{
"name": "@devexpress/dx-scheduler-core",
"version": "2.0.2",
"version": "2.0.3",
"description": "Core library for the DevExtreme Reactive Scheduler component",

@@ -44,6 +44,6 @@ "author": {

"@babel/preset-env": "^7.5.5",
"@devexpress/dx-core": "2.0.2",
"@devexpress/dx-core": "2.0.3",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^24.8.0",
"core-js": "^3.1.4",
"core-js": "^3.2.1",
"eslint": "^6.1.0",

@@ -53,7 +53,7 @@ "eslint-config-airbnb-base": "^13.2.0",

"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.14.1",
"eslint-plugin-jest": "^22.15.1",
"jest": "^24.8.0",
"rollup": "^1.17.0",
"rollup": "^1.19.4",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-license": "^0.9.0",
"rollup-plugin-license": "^0.12.0",
"rollup-plugin-replace": "^2.2.0",

@@ -64,3 +64,3 @@ "rollup-plugin-typescript2": "^0.22.1",

"peerDependencies": {
"@devexpress/dx-core": "2.0.2"
"@devexpress/dx-core": "2.0.3"
},

@@ -71,3 +71,3 @@ "dependencies": {

},
"gitHead": "781df644dad87a3308ced4a4bbb25e077d9cf094"
"gitHead": "1790d3c1f2654a09c2fddba300d26bd713512301"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc