Socket
Socket
Sign inDemoInstall

mailchimp-buddy

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailchimp-buddy - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

1

lib/index.d.ts

@@ -16,3 +16,4 @@ import { AxiosResponse } from 'axios';

subscribeIfNew(email: string): Promise<AxiosResponse<any>>;
unsubscribeIfNew(email: string): Promise<AxiosResponse<any>>;
remove(email: string): Promise<AxiosResponse<any>>;
};

@@ -41,2 +41,8 @@ "use strict";

},
unsubscribeIfNew(email) {
return __awaiter(this, void 0, void 0, function* () {
const data = { email_address: email, status_if_new: 'unsubscribed' };
return yield axios_1.default.put(`${baseUrl}/${md5(email)}`, data, { headers });
});
},
remove(email) {

@@ -43,0 +49,0 @@ return __awaiter(this, void 0, void 0, function* () {

2

package.json
{
"name": "mailchimp-buddy",
"version": "0.0.3",
"version": "0.1.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index",

@@ -40,2 +40,7 @@ import * as crypto from 'crypto';

async unsubscribeIfNew(email: string) {
const data = { email_address: email, status_if_new: 'unsubscribed' };
return await axios.put(`${baseUrl}/${md5(email)}`, data, { headers });
},
async remove(email: string) {

@@ -42,0 +47,0 @@ return await axios.delete(`${baseUrl}/${md5(email)}`, { headers });

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