@mailhooks/sdk 2.6.0 → 2.6.11
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/LICENSE +21 -0
- package/dist/index.js +3 -3
- package/package.json +16 -8
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Mailhooks
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.js
CHANGED
|
@@ -150,11 +150,11 @@ var EmailsResource = class extends MailhooksClient {
|
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
152
|
* Wait for an email that matches the given filters
|
|
153
|
-
*
|
|
153
|
+
*
|
|
154
154
|
* @param options - Options for waiting including filters, timeouts, and delays
|
|
155
155
|
* @returns The first email that matches the filters
|
|
156
156
|
* @throws Error if timeout is reached or max retries exceeded
|
|
157
|
-
*
|
|
157
|
+
*
|
|
158
158
|
* @example
|
|
159
159
|
* // Wait for an email from a specific sender (only considers emails from last 10 seconds)
|
|
160
160
|
* const email = await mailhooks.emails.waitFor({
|
|
@@ -163,7 +163,7 @@ var EmailsResource = class extends MailhooksClient {
|
|
|
163
163
|
* pollInterval: 2000, // Check every 2 seconds
|
|
164
164
|
* lookbackWindow: 10000, // Only consider emails from last 10 seconds
|
|
165
165
|
* });
|
|
166
|
-
*
|
|
166
|
+
*
|
|
167
167
|
* @example
|
|
168
168
|
* // Wait with initial delay (useful when you know email will take time)
|
|
169
169
|
* const email = await mailhooks.emails.waitFor({
|
package/package.json
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailhooks/sdk",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.11",
|
|
4
4
|
"description": "TypeScript SDK for Mailhooks API",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Mailhooks/integrations.git",
|
|
8
|
+
"directory": "packages/sdk"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/Mailhooks/integrations#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/Mailhooks/integrations/issues"
|
|
13
|
+
},
|
|
5
14
|
"publishConfig": {
|
|
6
15
|
"access": "public"
|
|
7
16
|
},
|
|
8
17
|
"type": "module",
|
|
9
18
|
"main": "dist/index.js",
|
|
10
19
|
"types": "dist/index.d.ts",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "tsup",
|
|
13
|
-
"dev": "tsc -p . --watch",
|
|
14
|
-
"test": "echo \"No tests yet\"",
|
|
15
|
-
"prepublishOnly": "pnpm build"
|
|
16
|
-
},
|
|
17
20
|
"keywords": [
|
|
18
21
|
"mailhooks",
|
|
19
22
|
"email",
|
|
@@ -41,5 +44,10 @@
|
|
|
41
44
|
"import": "./dist/index.js",
|
|
42
45
|
"default": "./dist/index.js"
|
|
43
46
|
}
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "tsup",
|
|
50
|
+
"dev": "tsc -p . --watch",
|
|
51
|
+
"test": "echo \"No tests yet\""
|
|
44
52
|
}
|
|
45
|
-
}
|
|
53
|
+
}
|