@takeshape/util
Advanced tools
Comparing version 10.15.0 to 10.16.0
@@ -327,3 +327,2 @@ /// <reference types="stripe/types/crypto/crypto" /> | ||
export declare function isStripeChargeObject(charge: string | Stripe.Charge | null): charge is Stripe.Charge; | ||
export type ProductsMapping = Record<string, Stripe.Product>; | ||
export type PaymentAmount = { | ||
@@ -330,0 +329,0 @@ total: number; |
@@ -0,3 +1,4 @@ | ||
export declare function isoToISODateOnly(iso: string): string; | ||
export declare function unixToISO(unix: number): string; | ||
export declare function unixToISODateOnly(unix: number): string; | ||
//# sourceMappingURL=unix-to-iso.d.ts.map |
@@ -6,4 +6,8 @@ "use strict"; | ||
}); | ||
exports.isoToISODateOnly = isoToISODateOnly; | ||
exports.unixToISO = unixToISO; | ||
exports.unixToISODateOnly = unixToISODateOnly; | ||
function isoToISODateOnly(iso) { | ||
return iso.slice(0, 10); | ||
} | ||
function unixToISO(unix) { | ||
@@ -13,3 +17,3 @@ return new Date(unix * 1000).toISOString(); | ||
function unixToISODateOnly(unix) { | ||
return unixToISO(unix).slice(0, 10); | ||
return isoToISODateOnly(unixToISO(unix)); | ||
} |
@@ -0,1 +1,4 @@ | ||
export function isoToISODateOnly(iso) { | ||
return iso.slice(0, 10); | ||
} | ||
export function unixToISO(unix) { | ||
@@ -5,3 +8,3 @@ return new Date(unix * 1000).toISOString(); | ||
export function unixToISODateOnly(unix) { | ||
return unixToISO(unix).slice(0, 10); | ||
return isoToISODateOnly(unixToISO(unix)); | ||
} |
{ | ||
"name": "@takeshape/util", | ||
"version": "10.15.0", | ||
"version": "10.16.0", | ||
"description": "Shared utilities", | ||
@@ -36,3 +36,3 @@ "homepage": "https://www.takeshape.io", | ||
"url-parse": "^1.5.3", | ||
"@takeshape/routing": "10.15.0" | ||
"@takeshape/routing": "10.16.0" | ||
}, | ||
@@ -50,3 +50,3 @@ "devDependencies": { | ||
"stripe": "13.8.0", | ||
"@takeshape/typescript-jest-junit-reporter": "10.15.0" | ||
"@takeshape/typescript-jest-junit-reporter": "10.16.0" | ||
}, | ||
@@ -53,0 +53,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
202736
4551
+ Added@takeshape/routing@10.16.0(transitive)
- Removed@takeshape/routing@10.15.0(transitive)
Updated@takeshape/routing@10.16.0