@drawbridge/drawbridge-stripe 0.1.2 → 0.1.3

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.
package/dist/index.js CHANGED
@@ -158,6 +158,10 @@ var require_billing = __commonJS({
158
158
  title: customer + ".credit_balance_depleted"
159
159
  });
160
160
  const stripePricingPlanSubscriptionId = (_d = (_c = (_b = (_a = actions == null ? void 0 : actions.data) == null ? void 0 : _a[0]) == null ? void 0 : _b.subscribe) == null ? void 0 : _c.pricing_plan_subscription_details) == null ? void 0 : _d.pricing_plan_subscription;
161
+ if (!stripePricingPlanSubscriptionId) {
162
+ throw new Error("Stripe billing intent did not return a pricing plan subscription ID for customer: " + customer);
163
+ }
164
+ ;
161
165
  return {
162
166
  stripeAlerts: {
163
167
  ai: {
package/dist/index.mjs CHANGED
@@ -164,6 +164,10 @@ var require_billing = __commonJS({
164
164
  title: customer + ".credit_balance_depleted"
165
165
  });
166
166
  const stripePricingPlanSubscriptionId = (_d = (_c = (_b = (_a = actions == null ? void 0 : actions.data) == null ? void 0 : _a[0]) == null ? void 0 : _b.subscribe) == null ? void 0 : _c.pricing_plan_subscription_details) == null ? void 0 : _d.pricing_plan_subscription;
167
+ if (!stripePricingPlanSubscriptionId) {
168
+ throw new Error("Stripe billing intent did not return a pricing plan subscription ID for customer: " + customer);
169
+ }
170
+ ;
167
171
  return {
168
172
  stripeAlerts: {
169
173
  ai: {
package/package.json CHANGED
@@ -24,5 +24,5 @@
24
24
  "build": "tsup ./index.js && npm publish"
25
25
  },
26
26
  "types": "dist/index.d.ts",
27
- "version": "0.1.2"
27
+ "version": "0.1.3"
28
28
  }