Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

recurrence-stripe

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recurrence-stripe - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

dist/index.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc