New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@maildrop/api

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maildrop/api - npm Package Compare versions

Comparing version 1.0.11 to 1.0.13

4

main.js

@@ -7,4 +7,4 @@ const axios = require("axios");

// api base url & path
apiHost: "https://api.maildrop.cc",
apiPath: "/v2/mailbox",
apiHost: "https://api.maildrop.cc/v2",
apiPath: "/mailbox",

@@ -11,0 +11,0 @@ // api key for 'x-api-key' header

@@ -22,3 +22,3 @@ {

},
"version": "1.0.11"
"version": "1.0.13"
}

@@ -77,4 +77,8 @@ # node-js API for maildrop.cc

| email | <code>String</code> | [required] sample linto@maildrop.cc |
| modifier | <code>String</code> | [optional] default 20190422 |
| modifier | <code>String</code> | [optional] number |
```js
maildrop.encryptEmailId("linto@maildrop.cc", "20200101");
```
##### async decryptEmailId(email, modifier)

@@ -88,2 +92,6 @@

| email | <code>String</code> | [required] sample D-214cc9@maildrop.cc |
| modifier | <code>String</code> | [optional] default 20190422 |
| modifier | <code>String</code> | [optional] number |
```js
maildrop.decryptEmailId("D-214cc9@maildrop.cc", "20200101");
```

@@ -5,4 +5,6 @@ const maildrop = require("./main.js");

const email = "linto@maildrop.cc";
console.log("email", email);
const modifier = "20190422";
console.log({ email, modifier });
// test encrypting

@@ -14,3 +16,3 @@ console.log(

"to",
maildrop.encryptEmailId(email, "20200101"),
maildrop.encryptEmailId(email, modifier),
"=========="

@@ -23,8 +25,5 @@ );

"decrypting",
maildrop.encryptEmailId(email, "20200101"),
maildrop.encryptEmailId(email, modifier),
"to",
maildrop.decryptEmailId(
maildrop.encryptEmailId(email, "20200101"),
"20200101"
),
maildrop.decryptEmailId(maildrop.encryptEmailId(email, modifier), modifier),
"=========="

@@ -31,0 +30,0 @@ );

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