cypress-mailisk 1.0.1 → 1.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress-mailisk",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Mailisk library for Cypress",
5
5
  "keywords": [
6
6
  "mailisk",
@@ -97,7 +97,7 @@ declare global {
97
97
  *
98
98
  * See https://docs.cypress.io/api/commands/request#Arguments
99
99
  */
100
- options?: Cypress.RequestOptions,
100
+ options?: Partial<Cypress.RequestOptions>,
101
101
  ): Cypress.Chainable<SearchInboxResponse>;
102
102
  }
103
103
  }
@@ -22,7 +22,7 @@ class MailiskCommands {
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