recurrence-stripe
Advanced tools
Comparing version 1.0.5 to 1.0.6
export declare const createStripeClient: (secretKey: any) => { | ||
subscriptions: (subscriptionId: any) => Promise<{ | ||
status: any; | ||
status: boolean; | ||
startDate: Date; | ||
@@ -5,0 +5,0 @@ endDate: Date; |
@@ -23,2 +23,3 @@ "use strict"; | ||
}); | ||
const statusPaid = ['trialing', 'active']; | ||
return { | ||
@@ -31,7 +32,6 @@ subscriptions: (subscriptionId) => __awaiter(void 0, void 0, void 0, function* () { | ||
const data = { | ||
status: subscription.status, | ||
status: statusPaid.includes(subscription.status), | ||
startDate: new Date(subscription.current_period_start * 1000), | ||
endDate: new Date(subscription.current_period_end * 1000), | ||
}; | ||
console.log(data); | ||
return data; | ||
@@ -38,0 +38,0 @@ } |
{ | ||
"name": "recurrence-stripe", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5134