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

mailisk

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailisk - npm Package Compare versions

Comparing version

to
2.0.1

14

dist/index.d.ts

@@ -55,6 +55,18 @@ import { AxiosRequestConfig } from 'axios';

*
* 'foo' would return 'foobar@namespace.mailisk.net' but not 'barfoo@namespace.mailisk.net'
* 'foo' would return for 'foobar@namespace.mailisk.net' but not 'barfoo@namespace.mailisk.net'
*/
to_addr_prefix?: string;
/**
* Filter emails by 'from' address. Address must include this.
*
* '@foo' would return for 'a@foo.com', 'b@foo.net'
*/
from_addr_includes?: string;
/**
* Filter emails by subject. This is case insensitive. Subject must include this.
*
* 'password' would return for 'Password reset', 'Reset password notification' but not 'Reset'
*/
subject_includes?: string;
/**
* Will keep the request going till at least one email would be returned.

@@ -61,0 +73,0 @@ *

7

dist/index.js

@@ -74,3 +74,3 @@ "use strict";

if (params?.from_timestamp === void 0 || params?.from_timestamp === null) {
_params.from_timestamp = Math.floor(new Date().getTime() / 1e3) - 5;
_params.from_timestamp = Math.floor(new Date().getTime() / 1e3) - 15 * 60;
}

@@ -81,2 +81,5 @@ if (params?.wait !== false) {

let _config = { ...config };
if (!config?.maxRedirects) {
_config.maxRedirects = 99999;
}
if (_params.wait && !config?.timeout) {

@@ -86,3 +89,3 @@ _config.timeout = 1e3 * 60 * 5;

return (await this.axiosInstance.get(`api/emails/${namespace}/inbox`, {
...config,
..._config,
params: _params

@@ -89,0 +92,0 @@ })).data;

{
"name": "mailisk",
"version": "2.0.0",
"version": "2.0.1",
"description": "Mailisk library for NodeJS",

@@ -5,0 +5,0 @@ "keywords": [

@@ -115,2 +115,6 @@ import axios, { AxiosRequestConfig } from "axios";

if (!config?.maxRedirects) {
_config.maxRedirects = 99999;
}
// by default, wait 5 minutes for emails before timing out

@@ -123,3 +127,3 @@ if (_params.wait && !config?.timeout) {

await this.axiosInstance.get(`api/emails/${namespace}/inbox`, {
...config,
..._config,
params: _params,

@@ -126,0 +130,0 @@ })

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet