Skip to content

Commit

Permalink
Merge pull request #920 from stripe/jlomas/surface-resources-on-instance
Browse files Browse the repository at this point in the history
Expose StripeResource on instance
  • Loading branch information
richardm-stripe authored Jul 6, 2020
2 parents 73d566d + 391387d commit c6a4071
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/stripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ function Stripe(key, config = {}) {

this._prevRequestMetrics = [];
this._enableTelemetry = props.telemetry !== false;

// Expose StripeResource on the instance too
this.StripeResource = Stripe.StripeResource;
}

Stripe.errors = require('./Error');
Expand Down

0 comments on commit c6a4071

Please sign in to comment.