Skip to content

Commit

Permalink
Updates dependencies
Browse files Browse the repository at this point in the history
- Webpack 4
- Babel 7
- Numerous production and development dependency updates
  • Loading branch information
chrissrogers committed Oct 11, 2018
1 parent e17b26d commit bb0a6d4
Show file tree
Hide file tree
Showing 13 changed files with 13,102 additions and 9,694 deletions.
8 changes: 2 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import {Recurly} from './lib/recurly';

// Export a single instance.
module.exports = exports = new Recurly();

// Hack for testing.
exports.Recurly = Recurly;
let recurly = new Recurly;
export default recurly;
10 changes: 8 additions & 2 deletions lib/recurly.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Emitter from 'component-emitter';
import pick from 'lodash.pick';
import uuid from 'uuid/v4';
import errors from './recurly/errors';
import bankAccount from './recurly/bank-account';
import {bankAccount} from './recurly/bank-account';
import coupon from './recurly/coupon';
import giftcard from './recurly/giftcard';
import plan from './recurly/plan';
Expand Down Expand Up @@ -121,12 +121,18 @@ export class Recurly extends Emitter {
this.bindReporting();
}

/**
* Expose the class through its common name
*/
get Recurly () {
return this.constructor;
}

/**
* Whether this instance is considered a parent
*
* @return {Boolean}
*/

get isParent () {
return !!this.config.parent;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/bank-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import errors from './errors';

const debug = require('debug')('recurly:bankAccount');

module.exports = {
export const bankAccount = {
token: token,
bankInfo: bankInfo
};
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/coupon.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import errors from './errors';
const debug = require('debug')('recurly:coupon');

/**
* Coupon mixin.
* Coupon
*
* Retrieves coupon information for the `coupon` and optional `plan`.
* The `callback` signature is `err, coupon` where `err` may be a request
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/giftcard.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import errors from './errors';
const debug = require('debug')('recurly:giftcard');

/**
* Giftcard mixin.
* Giftcard
*
* Retrieves giftcard pricing info based on a redemption code. The `callback` signature
* is `err, gift_card` where `err` may be a request or server error and `gift_card` is
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/paypal/strategy/direct.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class DirectStrategy extends PayPalStrategy {
}

/**
* Deprecated Paypal mixin.
* Deprecated Paypal method
*
* @deprecated
* @param {Object} payload
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/plan.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var debug = require('debug')('recurly:plan');

/**
* Plan mixin.
* Plan
*
* Retrieves information for the `plan`. The `callback` signature
* is `err, plan` where `err` may be a request or server error, and `plan`
Expand Down
1 change: 0 additions & 1 deletion lib/recurly/pricing/promise.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Promise from 'promise';
import mixin from 'mixin';

const debug = require('debug')('recurly:pricing:promise');

Expand Down
Loading

0 comments on commit bb0a6d4

Please sign in to comment.