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

llourenco2-tui-calendar

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

llourenco2-tui-calendar - npm Package Compare versions

Comparing version 1.20.9 to 1.20.10

2

package.json

@@ -143,5 +143,5 @@ {

"types": "index.d.ts",
"version": "1.20.9"
"version": "1.20.10"
}

@@ -135,10 +135,6 @@ /**

nearestHour = 0;
} else if (minutes <= 15) {
nearestHour = 0.25;
} else if (minutes > 30) {
nearestHour = 1;
} else if (minutes <= 30) {
nearestHour = 0.5;
} else if (minutes <= 45) {
nearestHour = 0.75;
} else if (minutes > 45) {
nearestHour = 1;
}

@@ -145,0 +141,0 @@

@@ -220,3 +220,3 @@ /**

? eventData.nearestGridEndTimeY
: new TZDate(nearestGridTimeY).addMinutes(15),
: new TZDate(nearestGridTimeY).addMinutes(30),
baseDate,

@@ -282,3 +282,3 @@ dateStart,

].sort(array.compare.num.asc);
range[1].addMinutes(15);
range[1].addMinutes(30);

@@ -285,0 +285,0 @@ eventData.createRange = range;

@@ -186,3 +186,3 @@ /**

function getStyleData(scheduleData) {
var minMinutes = 15;
var minMinutes = 30;
var gridY = scheduleData.nearestGridY,

@@ -238,3 +238,3 @@ gridTimeY = scheduleData.nearestGridTimeY,

TimeCreationGuide.prototype._onDrag = function(dragEventData) {
var minutes30 = 15;
var minutes30 = 30;
var styleFunc = this._styleFunc,

@@ -241,0 +241,0 @@ unitData = this._styleUnit,

@@ -244,3 +244,3 @@ /**

timeDiff -= datetime.millisecondsFrom('minutes', 15);
timeDiff -= datetime.millisecondsFrom('minutes', 30);
newStarts = new TZDate(schedule.getStarts()).addMilliseconds(timeDiff);

@@ -304,3 +304,3 @@ newEnds = new TZDate(schedule.getEnds()).addMilliseconds(timeDiff);

dragStart.timeY,
new TZDate(scheduleData.timeY).addMinutes(15)
new TZDate(scheduleData.timeY).addMinutes(30)
];

@@ -310,3 +310,3 @@

dragStart.nearestGridTimeY,
new TZDate(scheduleData.nearestGridTimeY).addMinutes(15)
new TZDate(scheduleData.nearestGridTimeY).addMinutes(30)
];

@@ -313,0 +313,0 @@

@@ -206,3 +206,3 @@ /**

timeDiff -= datetime.millisecondsFrom('minutes', 15);
timeDiff -= datetime.millisecondsFrom('minutes', 30);

@@ -217,4 +217,4 @@ baseDate = new TZDate(relatedView.getDate());

if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 15)) {
newEnds = new TZDate(schedule.getStarts()).addMinutes(15);
if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 30)) {
newEnds = new TZDate(schedule.getStarts()).addMinutes(30);
}

@@ -271,3 +271,3 @@

dragStart.timeY,
new TZDate(scheduleData.timeY).addMinutes(15)
new TZDate(scheduleData.timeY).addMinutes(30)
];

@@ -277,3 +277,3 @@

dragStart.nearestGridTimeY,
scheduleData.nearestGridTimeY.addMinutes(15)
scheduleData.nearestGridTimeY.addMinutes(30)
];

@@ -280,0 +280,0 @@

@@ -328,3 +328,3 @@ /* eslint complexity: 0 */

if (!end) {
this.end.setMinutes(this.end.getMinutes() + 15);
this.end.setMinutes(this.end.getMinutes() + 30);
}

@@ -331,0 +331,0 @@ };

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc