Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imapflow

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imapflow - npm Package Compare versions

Comparing version 1.0.47 to 1.0.48

LICENSE.txt

16

package.json
{
"name": "imapflow",
"version": "1.0.47",
"version": "1.0.48",
"description": "IMAP Client for Node",

@@ -30,22 +30,22 @@ "main": "./lib/imap-flow.js",

"braintree-jsdoc-template": "3.3.0",
"eslint": "7.1.0",
"eslint": "7.6.0",
"eslint-config-nodemailer": "1.2.0",
"eslint-config-prettier": "6.11.0",
"grunt": "1.1.0",
"grunt": "1.2.1",
"grunt-cli": "1.3.2",
"grunt-contrib-nodeunit": "2.1.0",
"grunt-eslint": "23.0.0",
"jsdoc": "3.6.4",
"jsdoc": "3.6.5",
"tsd-jsdoc": "2.5.0"
},
"dependencies": {
"@types/node": "14.0.5",
"@types/node": "14.0.27",
"encoding-japanese": "1.0.30",
"iconv-lite": "0.5.1",
"iconv-lite": "0.6.2",
"libbase64": "1.2.1",
"libmime": "4.2.1",
"libmime": "5.0.0",
"libqp": "1.1.0",
"mailsplit": "5.0.0",
"pino": "6.3.0"
"pino": "6.5.1"
}
}

@@ -15,2 +15,4 @@ # ImapFlow

### Free, AGPL-licensed version
First install the module from npm:

@@ -28,2 +30,20 @@

### MIT version
MIT-licensed version is available for [Postal Systems subscribers](https://postalsys.com/).
First install the module from Postal Systems private registry:
```
$ npm install @postalsys/imapflow
```
next import the ImapFlow class into your script:
```js
const { ImapFlow } = require('@postalsys/imapflow');
```
### Promises
All ImapFlow methods use Promises, so you need to wait using `await` or wait for the `then()` method to fire until you get the response.

@@ -30,0 +50,0 @@

@@ -10,1 +10,36 @@ 'use strict';

};
module.exports['Create imapflow instance with custom logger'] = async test => {
class CustomLogger {
constructor() {}
debug(obj) {
console.log(JSON.stringify(obj));
}
info(obj) {
console.log(JSON.stringify(obj));
}
warn(obj) {
console.log(JSON.stringify(obj));
}
// eslint-disable-next-line no-unused-vars
error(obj) {
// we don't actually want to log anything here.
}
}
let imapFlow = new ImapFlow({
logger: new CustomLogger()
});
test.ok(imapFlow);
try {
await imapFlow.connect();
} catch (ex) {
// it is PERFECTLY okay to have an exception here. We expect an ECONNREFUSED if an exception occurs.
test.equal(ex.code, 'ECONNREFUSED');
}
test.done();
};

Sorry, the diff of this file is too big to display

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