Skip to content

Commit

Permalink
Remove circular reference in Stripe object
Browse files Browse the repository at this point in the history
  • Loading branch information
anniel-stripe committed Apr 5, 2023
1 parent 91b0a6e commit 4a90564
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/stripe.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ export function createStripe(
Stripe.HttpClientResponse = HttpClientResponse;
Stripe.CryptoProvider = CryptoProvider;

// For backwards compatibiblity after moving to separate CJS and ESM entrypoints.
// To be removed in the next major version.
Stripe.Stripe = Stripe;
Stripe.default = Stripe;

function Stripe(
this: StripeObject,
key: string,
Expand Down
3 changes: 0 additions & 3 deletions testProjects/mjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ assert(Stripe.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
assert(Stripe.webhooks);
assert(Stripe.resources);

assert(Stripe.Stripe);
assert(Stripe.default);

const stripe = new Stripe(process.argv[2]);
const defaultStripe = new DefaultStripe(process.argv[2]);

Expand Down

0 comments on commit 4a90564

Please sign in to comment.