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.1 to 0.0.2

22

index.js

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

/**
* Expose `StripeCharges`.
* Expose `ChargesDashboard`.
*/
module.exports = StripeCharges;
module.exports = ChargesDashboard;

@@ -17,4 +17,4 @@ /**

*/
function StripeCharges (key, options) {
if (!(this instanceof StripeCharges)) return new StripeCharges(key, options);
function ChargesDashboard (key, options) {
if (!(this instanceof ChargesDashboard)) return new ChargesDashboard(key, options);
this.charges = Charges(key);

@@ -35,3 +35,3 @@ this.options = options || {};

StripeCharges.prototype.stripe = function (data, callback) {
ChargesDashboard.prototype.stripe = function (data, callback) {
var self = this;

@@ -58,3 +58,3 @@ var results = data.stripe = (data.stripe || {});

StripeCharges.prototype.last2Days = function (charges, results) {
ChargesDashboard.prototype.last2Days = function (charges, results) {
var today = new Date();

@@ -84,3 +84,3 @@

StripeCharges.prototype.daily = function (charges, results) {
ChargesDashboard.prototype.daily = function (charges, results) {
var today = new Date();

@@ -109,3 +109,3 @@

StripeCharges.prototype.weekly = function (charges, results) {
ChargesDashboard.prototype.weekly = function (charges, results) {
var yesterday = Dates.day.shift(new Date(), -1);

@@ -131,3 +131,3 @@

StripeCharges.prototype.monthly = function (charges, results) {
ChargesDashboard.prototype.monthly = function (charges, results) {
var yesterday = Dates.day.shift(new Date(), -1);

@@ -153,3 +153,3 @@

StripeCharges.prototype.total = function (charges, results) {
ChargesDashboard.prototype.total = function (charges, results) {
charges = this.paidCharges(charges);

@@ -169,3 +169,3 @@ results['charges'] = charges.count();

StripeCharges.prototype.paidCharges = function (charges, start, end) {
ChargesDashboard.prototype.paidCharges = function (charges, start, end) {
if (this.options.filter) charges = charges.filter(this.options.filter);

@@ -172,0 +172,0 @@ if (start && end) charges = charges.created(floor(start), ceil(end));

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

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

"timeago": "~0.1.0",
"stripe-charges": "~0.0.1"
"stripe-charges": "~0.0.3"
}
}
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