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

vue-calendar-heatmap

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-calendar-heatmap - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

2

package.json
{
"name": "vue-calendar-heatmap",
"version": "0.2.5",
"version": "0.2.6",
"description": "A calendar heatmap Vuejs component built on SVG, inspired by github's contribution calendar graph",

@@ -5,0 +5,0 @@ "author": "Julien Rabin <julien@wildcodeschool.fr>",

@@ -6,3 +6,3 @@ import { DAYS_IN_ONE_YEAR, DAYS_IN_WEEK } from './consts'

this.endDate = this._parseDate(endDate)
this.max = max || Math.max(...values.map(day => day.count))
this.max = max || Math.ceil((Math.max(...values.map(day => day.count)) / 5) * 4)
this.startDate = this._shiftDate(endDate, -DAYS_IN_ONE_YEAR)

@@ -60,4 +60,6 @@ this.values = values

return 0
} else if (value >= this.max) {
return 4
} else {
return Math.ceil(((value * 100) / this.max) * 0.04)
return Math.ceil(((value * 100) / this.max) * (0.03))
}

@@ -64,0 +66,0 @@ }

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