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.44

4

dist/magic/magic-email.d.ts

@@ -5,9 +5,9 @@ import sg from "@sendgrid/mail";

*/
export declare function getMagicLink(payload: {
export declare function getLoginLink(payload: {
email: string;
landingPage: string;
}): Promise<string>;
export declare function sendMagicLink(payload: {
export declare function sendLoginLink(payload: {
email: string;
landingPage: string;
}): Promise<[sg.ClientResponse, {}]>;

@@ -42,3 +42,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.sendMagicLink = exports.getMagicLink = void 0;
exports.sendLoginLink = exports.getLoginLink = void 0;
var mail_1 = __importDefault(require("@sendgrid/mail"));

@@ -74,3 +74,3 @@ var jsonwebtoken_1 = require("jsonwebtoken");

*/
function getMagicLink(payload) {
function getLoginLink(payload) {
return __awaiter(this, void 0, void 0, function () {

@@ -89,8 +89,8 @@ var magicPayload, url;

}
exports.getMagicLink = getMagicLink;
function sendMagicLink(payload) {
exports.getLoginLink = getLoginLink;
function sendLoginLink(payload) {
return __awaiter(this, void 0, void 0, function () {
var link, html, message;
return __generator(this, function (_a) {
link = getMagicLink(payload);
link = getLoginLink(payload);
html = "\n <div>\n Greetings!\n <br>\n Click <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"".concat(link, "\">here</a> to login into your account.\n </div>\n ");

@@ -112,2 +112,2 @@ message = {

}
exports.sendMagicLink = sendMagicLink;
exports.sendLoginLink = sendLoginLink;
{
"name": "@tartine/common",
"version": "1.0.43",
"version": "1.0.44",
"description": "Nothing but commons",

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