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 +1 -1
- package/package.json +1 -1
- package/src/mailiskCommands.d.ts +1 -1
- package/src/mailiskCommands.js +2 -2
package/README.md
CHANGED
package/package.json
CHANGED
package/src/mailiskCommands.d.ts
CHANGED
package/src/mailiskCommands.js
CHANGED
|
@@ -15,14 +15,14 @@ class MailiskCommands {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
mailiskListNamespaces() {
|
|
18
|
-
return this.request.get('
|
|
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 (
|
|
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
|
|