Socket
Socket
Sign inDemoInstall

dashboards-stripe-charges

Package Overview
Dependencies
20
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

5

History.md
0.0.3 / 2014-04-15
==================
* starting from now, not yesterday
0.0.1 - March 3, 2014
-------------------------
:sparkles:

12

index.js

@@ -105,6 +105,6 @@

ChargesDashboard.prototype.weekly = function (charges, results) {
var yesterday = Dates.day.shift(new Date(), -1);
var now = new Date();
var oneWeekAgo = Dates.day.shift(yesterday, -7);
var oneWeekAgoCharges = this.paidCharges(charges, oneWeekAgo, yesterday);
var oneWeekAgo = Dates.day.shift(now, -7);
var oneWeekAgoCharges = this.paidCharges(charges, oneWeekAgo, now);
results['charges 0-1 weeks ago'] = oneWeekAgoCharges.count();

@@ -127,6 +127,6 @@ results['total charged 0-1 weeks ago'] = oneWeekAgoCharges.total();

ChargesDashboard.prototype.monthly = function (charges, results) {
var yesterday = Dates.day.shift(new Date(), -1);
var now = new Date();
var oneMonthAgo = Dates.month.shift(yesterday, -1);
var oneMonthAgoCharges = this.paidCharges(charges, oneMonthAgo, yesterday);
var oneMonthAgo = Dates.month.shift(now, -1);
var oneMonthAgoCharges = this.paidCharges(charges, oneMonthAgo, now);
results['charges 0-1 months ago'] = oneMonthAgoCharges.count();

@@ -133,0 +133,0 @@ results['total charged 0-1 months ago'] = oneMonthAgoCharges.total();

{
"name": "dashboards-stripe-charges",
"version": "0.0.2",
"version": "0.0.3",
"lib": "./lib",

@@ -22,2 +22,2 @@ "repository": "git://github.com/segmentio/dashboards-stripe-charges.git",

}
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc