@tartine/common
Advanced tools
Comparing version
import sg from "@sendgrid/mail"; | ||
export declare function generateMagicLink(email: string, landingPage: string): string; | ||
export declare function sendMagicLink(email: string, landingPage: string): Promise<[sg.ClientResponse, {}]>; | ||
/** | ||
* Success page | ||
* | ||
* const session = await stripe.checkout.sessions.retrieve(req.query.session_id); | ||
const customer = await stripe.customers.retrieve(session.customer); | ||
*/ |
@@ -83,1 +83,7 @@ "use strict"; | ||
exports.sendMagicLink = sendMagicLink; | ||
/** | ||
* Success page | ||
* | ||
* const session = await stripe.checkout.sessions.retrieve(req.query.session_id); | ||
const customer = await stripe.customers.retrieve(session.customer); | ||
*/ |
@@ -1,2 +0,2 @@ | ||
import { Request, Response } from "express"; | ||
export declare const errorHandler: (error: Error, _: Request, response: Response) => Response<any, Record<string, any>>; | ||
import { Request, Response, NextFunction } from "express"; | ||
export declare const errorHandler: (error: Error, _: Request, response: Response, next: NextFunction) => Response<any, Record<string, any>>; |
@@ -5,3 +5,3 @@ "use strict"; | ||
var errors_1 = require("../errors"); | ||
var errorHandler = function (error, _, response) { | ||
var errorHandler = function (error, _, response, next) { | ||
response.set("Content-Type", "application/problem+json"); | ||
@@ -8,0 +8,0 @@ if (error instanceof errors_1.CustomError) { |
{ | ||
"name": "@tartine/common", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Nothing but commons", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
40723
1%977
1.24%