@sergdudko/stripe-js 2.0.9 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/cjs/esm.js +0 -1
  2. package/dist/cjs/index.js +0 -1
  3. package/dist/cjs/methods/addPaymentMethodToCustomer.js +0 -1
  4. package/dist/cjs/methods/addSourceToCustomer.js +0 -1
  5. package/dist/cjs/methods/confirmPaymentIntentByCard.js +0 -1
  6. package/dist/cjs/methods/confirmPaymentIntentByPaymentMethod.js +0 -1
  7. package/dist/cjs/methods/deletePaymentMethodFromCustomer.js +0 -1
  8. package/dist/cjs/methods/deleteSourceFromCustomer.js +0 -1
  9. package/dist/cjs/methods/getAllCards.js +0 -1
  10. package/dist/cjs/methods/getAllPaymentMethods.js +0 -1
  11. package/dist/cjs/methods/getCustomer.js +0 -1
  12. package/dist/cjs/methods/getDefaultCard.js +0 -1
  13. package/dist/cjs/methods/index.js +0 -1
  14. package/dist/cjs/methods/setDefaultCard.js +0 -1
  15. package/dist/cjs/methods/setDefaultPaymentMethod.js +0 -1
  16. package/dist/cjs/package.json +1 -0
  17. package/dist/cjs/types.js +0 -1
  18. package/dist/cjs/utils/constants.js +0 -1
  19. package/dist/cjs/utils/handlers.js +0 -1
  20. package/dist/esm/esm.js +0 -1
  21. package/dist/esm/index.js +0 -1
  22. package/dist/esm/methods/addPaymentMethodToCustomer.js +0 -1
  23. package/dist/esm/methods/addSourceToCustomer.js +0 -1
  24. package/dist/esm/methods/confirmPaymentIntentByCard.js +0 -1
  25. package/dist/esm/methods/confirmPaymentIntentByPaymentMethod.js +0 -1
  26. package/dist/esm/methods/deletePaymentMethodFromCustomer.js +0 -1
  27. package/dist/esm/methods/deleteSourceFromCustomer.js +0 -1
  28. package/dist/esm/methods/getAllCards.js +0 -1
  29. package/dist/esm/methods/getAllPaymentMethods.js +0 -1
  30. package/dist/esm/methods/getCustomer.js +0 -1
  31. package/dist/esm/methods/getDefaultCard.js +0 -1
  32. package/dist/esm/methods/index.js +0 -1
  33. package/dist/esm/methods/setDefaultCard.js +0 -1
  34. package/dist/esm/methods/setDefaultPaymentMethod.js +0 -1
  35. package/dist/esm/package.json +1 -0
  36. package/dist/esm/types.js +0 -1
  37. package/dist/esm/utils/constants.js +0 -1
  38. package/dist/esm/utils/handlers.js +0 -1
  39. package/package.json +3 -3
package/dist/cjs/esm.js CHANGED
@@ -3,4 +3,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadStripe = void 0;
4
4
  var index_1 = require("./index");
5
5
  Object.defineProperty(exports, "loadStripe", { enumerable: true, get: function () { return index_1.loadStripe; } });
6
- //# sourceMappingURL=esm.js.map
package/dist/cjs/index.js CHANGED
@@ -23,4 +23,3 @@ const loadStripe = async (publishableKey, options) => {
23
23
  return stripe;
24
24
  };
25
25
  exports.loadStripe = loadStripe;
26
- //# sourceMappingURL=index.js.map
@@ -27,4 +27,3 @@ const addPaymentMethodToCustomer = async function (paymentMethodId, customerId,
27
27
  }).then(handlers_1.responseHandler);
28
28
  };
29
29
  exports.addPaymentMethodToCustomer = addPaymentMethodToCustomer;
30
- //# sourceMappingURL=addPaymentMethodToCustomer.js.map
@@ -27,4 +27,3 @@ const addSourceToCustomer = async function (token, customerId, ephemeralKey) {
27
27
  }).then(handlers_1.responseHandler);
28
28
  };
29
29
  exports.addSourceToCustomer = addSourceToCustomer;
30
- //# sourceMappingURL=addSourceToCustomer.js.map
@@ -27,4 +27,3 @@ const confirmPaymentIntentByCard = async function (paymentIntentSecret, paymentM
27
27
  }).then(handlers_1.responseHandler);
28
28
  };
29
29
  exports.confirmPaymentIntentByCard = confirmPaymentIntentByCard;
30
- //# sourceMappingURL=confirmPaymentIntentByCard.js.map
@@ -10,4 +10,3 @@ const confirmPaymentIntentByCard_1 = require("./confirmPaymentIntentByCard");
10
10
  * @returns
11
11
  */
12
12
  exports.confirmPaymentIntentByPaymentMethod = confirmPaymentIntentByCard_1.confirmPaymentIntentByCard;
13
- //# sourceMappingURL=confirmPaymentIntentByPaymentMethod.js.map
@@ -25,4 +25,3 @@ const deletePaymentMethodFromCustomer = async function (paymentMethodId, ephemer
25
25
  }).then(handlers_1.responseHandler);
26
26
  };
27
27
  exports.deletePaymentMethodFromCustomer = deletePaymentMethodFromCustomer;
28
- //# sourceMappingURL=deletePaymentMethodFromCustomer.js.map
@@ -25,4 +25,3 @@ const deleteSourceFromCustomer = async function (sourceId, customerId, ephemeral
25
25
  }).then(handlers_1.responseHandler);
26
26
  };
27
27
  exports.deleteSourceFromCustomer = deleteSourceFromCustomer;
28
- //# sourceMappingURL=deleteSourceFromCustomer.js.map
@@ -24,4 +24,3 @@ const getAllCards = async function (customerId, ephemeralKey) {
24
24
  }).then(handlers_1.responseHandler);
25
25
  };
26
26
  exports.getAllCards = getAllCards;
27
- //# sourceMappingURL=getAllCards.js.map
@@ -24,4 +24,3 @@ const getAllPaymentMethods = async function (customerId, ephemeralKey) {
24
24
  }).then(handlers_1.responseHandler);
25
25
  };
26
26
  exports.getAllPaymentMethods = getAllPaymentMethods;
27
- //# sourceMappingURL=getAllPaymentMethods.js.map
@@ -23,4 +23,3 @@ const getCustomer = async function (customerId, ephemeralKey) {
23
23
  }).then(handlers_1.responseHandler);
24
24
  };
25
25
  exports.getCustomer = getCustomer;
26
- //# sourceMappingURL=getCustomer.js.map
@@ -25,4 +25,3 @@ const getDefaultCard = async function (customerId, ephemeralKey) {
25
25
  .then((e) => (e?.default_source ? e.default_source : undefined));
26
26
  };
27
27
  exports.getDefaultCard = getDefaultCard;
28
- //# sourceMappingURL=getDefaultCard.js.map
@@ -34,4 +34,3 @@ class StripeExtension {
34
34
  }
35
35
  }
36
36
  exports.StripeExtension = StripeExtension;
37
- //# sourceMappingURL=index.js.map
@@ -27,4 +27,3 @@ const setDefaultCard = async function (cardId, customerId, ephemeralKey) {
27
27
  }).then(handlers_1.responseHandler);
28
28
  };
29
29
  exports.setDefaultCard = setDefaultCard;
30
- //# sourceMappingURL=setDefaultCard.js.map
@@ -27,4 +27,3 @@ const setDefaultPaymentMethod = async function (paymentMethodId, customerId, eph
27
27
  }).then(handlers_1.responseHandler);
28
28
  };
29
29
  exports.setDefaultPaymentMethod = setDefaultPaymentMethod;
30
- //# sourceMappingURL=setDefaultPaymentMethod.js.map
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
package/dist/cjs/types.js CHANGED
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -3,4 +3,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.stripeApiVersion = exports.stripeApiUrl = void 0;
4
4
  exports.stripeApiUrl = "https://api.stripe.com/v1";
5
5
  exports.stripeApiVersion = "2025-08-27.basil";
6
- //# sourceMappingURL=constants.js.map
@@ -14,4 +14,3 @@ const responseHandler = async (res) => {
14
14
  return data;
15
15
  };
16
16
  exports.responseHandler = responseHandler;
17
- //# sourceMappingURL=handlers.js.map
package/dist/esm/esm.js CHANGED
@@ -1,2 +1 @@
1
1
  export { loadStripe } from "./index";
2
- //# sourceMappingURL=esm.js.map
package/dist/esm/index.js CHANGED
@@ -19,4 +19,3 @@ export const loadStripe = async (publishableKey, options) => {
19
19
  const stripe = Object.assign(stripeDefault, stripeExtension);
20
20
  return stripe;
21
21
  };
22
- //# sourceMappingURL=index.js.map
@@ -23,4 +23,3 @@ export const addPaymentMethodToCustomer = async function (paymentMethodId, custo
23
23
  method: "POST",
24
24
  }).then(responseHandler);
25
25
  };
26
- //# sourceMappingURL=addPaymentMethodToCustomer.js.map
@@ -23,4 +23,3 @@ export const addSourceToCustomer = async function (token, customerId, ephemeralK
23
23
  method: "POST",
24
24
  }).then(responseHandler);
25
25
  };
26
- //# sourceMappingURL=addSourceToCustomer.js.map
@@ -23,4 +23,3 @@ export const confirmPaymentIntentByCard = async function (paymentIntentSecret, p
23
23
  method: `POST`,
24
24
  }).then(responseHandler);
25
25
  };
26
- //# sourceMappingURL=confirmPaymentIntentByCard.js.map
@@ -7,4 +7,3 @@ import { confirmPaymentIntentByCard } from "./confirmPaymentIntentByCard";
7
7
  * @returns
8
8
  */
9
9
  export const confirmPaymentIntentByPaymentMethod = confirmPaymentIntentByCard;
10
- //# sourceMappingURL=confirmPaymentIntentByPaymentMethod.js.map
@@ -21,4 +21,3 @@ export const deletePaymentMethodFromCustomer = async function (paymentMethodId,
21
21
  method: "POST",
22
22
  }).then(responseHandler);
23
23
  };
24
- //# sourceMappingURL=deletePaymentMethodFromCustomer.js.map
@@ -21,4 +21,3 @@ export const deleteSourceFromCustomer = async function (sourceId, customerId, ep
21
21
  method: "DELETE",
22
22
  }).then(responseHandler);
23
23
  };
24
- //# sourceMappingURL=deleteSourceFromCustomer.js.map
@@ -20,4 +20,3 @@ export const getAllCards = async function (customerId, ephemeralKey) {
20
20
  method: "GET",
21
21
  }).then(responseHandler);
22
22
  };
23
- //# sourceMappingURL=getAllCards.js.map
@@ -20,4 +20,3 @@ export const getAllPaymentMethods = async function (customerId, ephemeralKey) {
20
20
  method: "GET",
21
21
  }).then(responseHandler);
22
22
  };
23
- //# sourceMappingURL=getAllPaymentMethods.js.map
@@ -19,4 +19,3 @@ export const getCustomer = async function (customerId, ephemeralKey) {
19
19
  },
20
20
  }).then(responseHandler);
21
21
  };
22
- //# sourceMappingURL=getCustomer.js.map
@@ -21,4 +21,3 @@ export const getDefaultCard = async function (customerId, ephemeralKey) {
21
21
  .then(responseHandler)
22
22
  .then((e) => (e?.default_source ? e.default_source : undefined));
23
23
  };
24
- //# sourceMappingURL=getDefaultCard.js.map
@@ -30,4 +30,3 @@ export class StripeExtension {
30
30
  this._apiKey = apiKey;
31
31
  }
32
32
  }
33
- //# sourceMappingURL=index.js.map
@@ -23,4 +23,3 @@ export const setDefaultCard = async function (cardId, customerId, ephemeralKey)
23
23
  method: "POST",
24
24
  }).then(responseHandler);
25
25
  };
26
- //# sourceMappingURL=setDefaultCard.js.map
@@ -23,4 +23,3 @@ export const setDefaultPaymentMethod = async function (paymentMethodId, customer
23
23
  method: "POST",
24
24
  }).then(responseHandler);
25
25
  };
26
- //# sourceMappingURL=setDefaultPaymentMethod.js.map
@@ -0,0 +1 @@
1
+ {"type":"module"}
package/dist/esm/types.js CHANGED
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=types.js.map
@@ -1,3 +1,2 @@
1
1
  export const stripeApiUrl = "https://api.stripe.com/v1";
2
2
  export const stripeApiVersion = "2025-08-27.basil";
3
- //# sourceMappingURL=constants.js.map
@@ -10,4 +10,3 @@ export const responseHandler = async (res) => {
10
10
  throw data;
11
11
  return data;
12
12
  };
13
- //# sourceMappingURL=handlers.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sergdudko/stripe-js",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "Supercharge Your Stripe Integration with Enhanced Methods for stripe-js: Take Full Control of Customer Card Management Right from Your Frontend! Elevate Your Payment Processing Capabilities with Ease and Efficiency.",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -19,8 +19,8 @@
19
19
  }
20
20
  },
21
21
  "files": [
22
- "dist/esm/**/*.js",
23
- "dist/cjs/**/*.js",
22
+ "dist/esm/**/*.js{,on}",
23
+ "dist/cjs/**/*.js{,on}",
24
24
  "dist/types/**/*",
25
25
  "README.md",
26
26
  "LICENSE"