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

is-autoreply

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-autoreply - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

index.js

@@ -23,2 +23,6 @@

module.exports = (headers) => {
if (!headers) {
return false;
}
if(typeof headers === 'string' || Buffer.isBuffer(headers)) {

@@ -25,0 +29,0 @@ headers = headerParse.parseHeaders(headers);

2

package.json
{
"name": "is-autoreply",
"version": "1.0.0",
"version": "1.1.0",
"description": "Detect if email is an autoreply according to the email headers.",

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

@@ -19,4 +19,2 @@

Headers can be String, Buffer or Object (key/value). In case of String or Buffer, the headers are automatically parsed.
```js

@@ -23,0 +21,0 @@ const isAutoreply = require('is-autoreply');

@@ -5,5 +5,2 @@

// Generally email is not autoreply
assert.ok(!isAutoreply({}));
// Test Auto-Submitted header

@@ -104,1 +101,9 @@ assert.ok(!isAutoreply({ 'Auto-Submitted': 'No' }));

assert.ok(!isAutoreply(Buffer.from('MIME-Version: 1.0')));
// Test falsy header values
assert.ok(!isAutoreply());
assert.ok(!isAutoreply(''));
assert.ok(!isAutoreply(Buffer.from('')));
assert.ok(!isAutoreply(null));
assert.ok(!isAutoreply([]));
assert.ok(!isAutoreply({}));
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