cypress-mailisk 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Install with npm
4
4
 
5
5
  ```shell
6
- npm install -save-dev cypress-mailisk
6
+ npm install --save-dev cypress-mailisk
7
7
  ```
8
8
 
9
9
  ## Install with Yarn
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress-mailisk",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Mailisk library for Cypress",
5
5
  "keywords": [
6
6
  "mailisk",
@@ -73,7 +73,7 @@ export interface SearchInboxResponse {
73
73
  /**
74
74
  * Parameters that were used for the query
75
75
  */
76
- params: SearchInboxParams;
76
+ options: SearchInboxParams;
77
77
  /**
78
78
  * Emails
79
79
  */
@@ -15,14 +15,14 @@ class MailiskCommands {
15
15
  }
16
16
 
17
17
  mailiskListNamespaces() {
18
- return this.request.get('/api/namespaces');
18
+ return this.request.get('api/namespaces');
19
19
  }
20
20
 
21
21
  mailiskSearchInbox(namespace, params, options = {}) {
22
22
  let _params = { ...params };
23
23
 
24
24
  // default timestamp, 5 seconds before starting this request
25
- if (!params.from_timestamp) {
25
+ if (params?.from_timestamp === undefined || params?.from_timestamp === null) {
26
26
  _params.from_timestamp = Math.floor(new Date().getTime() / 1000) - 5;
27
27
  }
28
28