@bigbinary/neeto-playwright-commons 4.4.1 → 4.5.0
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/index.d.ts +2 -0
- package/index.js +5 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -10073,6 +10073,7 @@ interface InboundEmailParams {
|
|
|
10073
10073
|
subject: string;
|
|
10074
10074
|
body: string;
|
|
10075
10075
|
messageId: string;
|
|
10076
|
+
forwardedTo?: string;
|
|
10076
10077
|
}
|
|
10077
10078
|
interface ReplyInboundEmailParams extends InboundEmailParams {
|
|
10078
10079
|
replyToMessageId: string;
|
|
@@ -10094,6 +10095,7 @@ declare class InboundEmailApis {
|
|
|
10094
10095
|
* subject: faker.git.commitMessage(),
|
|
10095
10096
|
* body: faker.lorem.sentence(),
|
|
10096
10097
|
* messageId: `${faker.string.uuid()}@playwright.test`,
|
|
10098
|
+
* forwardedTo: supportEmail(subdomainName, "forward"), // optional — X-Forwarded-To
|
|
10097
10099
|
* });
|
|
10098
10100
|
*/
|
|
10099
10101
|
create: (emailParams: InboundEmailParams) => Promise<playwright_core.APIResponse | undefined>;
|
package/index.js
CHANGED
|
@@ -127053,6 +127053,7 @@ class InboundEmailApis {
|
|
|
127053
127053
|
* subject: faker.git.commitMessage(),
|
|
127054
127054
|
* body: faker.lorem.sentence(),
|
|
127055
127055
|
* messageId: `${faker.string.uuid()}@playwright.test`,
|
|
127056
|
+
* forwardedTo: supportEmail(subdomainName, "forward"), // optional — X-Forwarded-To
|
|
127056
127057
|
* });
|
|
127057
127058
|
*/
|
|
127058
127059
|
create = (emailParams) => this.deliverSource(emailParams);
|
|
@@ -127073,11 +127074,14 @@ class InboundEmailApis {
|
|
|
127073
127074
|
* });
|
|
127074
127075
|
*/
|
|
127075
127076
|
reply = (emailParams) => this.deliverSource(emailParams);
|
|
127076
|
-
deliverSource = ({ senderEmail, senderName, to, subject, body, messageId, replyToMessageId, }) => {
|
|
127077
|
+
deliverSource = ({ senderEmail, senderName, to, subject, body, messageId, replyToMessageId, forwardedTo, }) => {
|
|
127077
127078
|
const source = [
|
|
127078
127079
|
`Message-ID: <${normalizeMessageId(messageId)}>`,
|
|
127079
127080
|
`From: "${sanitizeHeaderValue(senderName).replace(/"/g, '\\"')}" <${senderEmail}>`,
|
|
127080
127081
|
`To: ${to}`,
|
|
127082
|
+
...(forwardedTo
|
|
127083
|
+
? [`X-Forwarded-To: ${sanitizeHeaderValue(forwardedTo)}`]
|
|
127084
|
+
: []),
|
|
127081
127085
|
`Subject: ${sanitizeHeaderValue(subject)}`,
|
|
127082
127086
|
...(replyToMessageId
|
|
127083
127087
|
? [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-playwright-commons",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "A package encapsulating common playwright code across neeto projects.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-playwright-commons.git",
|
|
6
6
|
"license": "apache-2.0",
|