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.1.0 to 0.2.0

1

lib/index.d.ts

@@ -13,2 +13,3 @@ import { AxiosResponse } from 'axios';

list(): Promise<AxiosResponse<any>>;
get(email: string): Promise<AxiosResponse<any>>;
subscribe(email: string): Promise<AxiosResponse<any>>;

@@ -15,0 +16,0 @@ unsubscribe(email: string): Promise<AxiosResponse<any>>;

@@ -23,2 +23,7 @@ "use strict";

},
get(email) {
return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default.get(`${baseUrl}/${md5(email)}`, { headers });
});
},
subscribe(email) {

@@ -25,0 +30,0 @@ return __awaiter(this, void 0, void 0, function* () {

2

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

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

@@ -25,2 +25,6 @@ import * as crypto from 'crypto';

async get(email: string) {
return await axios.get(`${baseUrl}/${md5(email)}`, { headers });
},
async subscribe(email: string) {

@@ -27,0 +31,0 @@ const data = { status: 'subscribed' };

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