@sedoo/unidoo 0.0.65 → 0.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sedoo/unidoo",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build --target lib --name unidoo src/plugin.js",
@@ -208,7 +208,7 @@ export default {
208
208
  }, this.heatmapKey);
209
209
  },
210
210
  hasPreviousDate (d) {
211
- if (!d || !this.compairDateWithYear(d)) return false;
211
+ if (!d || !this.isDateInYear(d)) return false;
212
212
  const syear = (this.year instanceof Date) ? this.year.getFullYear() : this.year;
213
213
  const firstDay = new Date(syear, 0, 1);
214
214
  d.setHours(0, 0, 0, 0);
@@ -295,7 +295,7 @@ export default {
295
295
  first.getMonth() === second.getMonth() &&
296
296
  first.getDate() === second.getDate()
297
297
  },
298
- compairDateWithYear (d) {
298
+ isDateInYear (d) {
299
299
  if (this.year && d) {
300
300
  const sd = '' + ((d instanceof Date) ? d.getFullYear() : d);
301
301
  const syear = '' + ((this.year instanceof Date) ? this.year.getFullYear() : this.year);