New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tartine/common

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tartine/common - npm Package Compare versions

Comparing version

to
1.0.31

42

dist/validations/payloads.d.ts

@@ -29,44 +29,2 @@ import type { JwtPayload } from "jsonwebtoken";

status: Stripe.Subscription.Status;
/**
* A date in the future at which the subscription will automatically get canceled
*/
cancel_at: number | null;
/**
* If the subscription has been canceled with the `at_period_end` flag set to `true`, `cancel_at_period_end` on the subscription will be true. You can use this attribute to determine whether a subscription that has a status of active is scheduled to be canceled at the end of the current period.
*/
cancel_at_period_end: boolean;
/**
* Start of the current period that the subscription has been invoiced for.
*/
current_period_start: number;
/**
* End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.
*/
current_period_end: number;
/**
*
*/
product: {
/**
* The ID of the product this price is associated with.
*/
id: string | Stripe.Product | Stripe.DeletedProduct;
};
/**
*
*/
price: {
/**
* Unique identifier for the object.
*/
id: string;
/**
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
*/
currency: string;
/**
* The unit amount in %s to be charged, represented as a whole integer if possible. Only set if `billing_scheme=per_unit`.
*/
unit_amount: number | null;
};
};

@@ -73,0 +31,0 @@ };

17

dist/validations/payloads.js

@@ -10,18 +10,3 @@ "use strict";

typeof obj.user.subscription.id === "string" &&
typeof obj.user.subscription.status === "string" &&
(typeof obj.user.subscription.cancel_at === "number" ||
/**
* typeof null === 'object'
*/
typeof obj.user.subscription.cancel_at === "object") &&
typeof obj.user.subscription.cancel_at_period_end === "boolean" &&
typeof obj.user.subscription.current_period_start === "number" &&
typeof obj.user.subscription.current_period_end === "number" &&
typeof obj.user.subscription.product === "object" &&
typeof obj.user.subscription.product.id === "string" &&
typeof obj.user.subscription.price === "object" &&
typeof obj.user.subscription.price.id === "string" &&
typeof obj.user.subscription.price.currency === "string" &&
(typeof obj.user.subscription.price.unit_amount === "number" ||
typeof obj.user.subscription.price.unit_amount === null));
typeof obj.user.subscription.status === "string");
}

@@ -28,0 +13,0 @@ exports.hasUserPayload = hasUserPayload;

2

package.json
{
"name": "@tartine/common",
"version": "1.0.30",
"version": "1.0.31",
"description": "Nothing but commons",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",