@bigbinary/neeto-playwright-commons 4.1.5 → 4.1.7
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 +3 -3
- package/index.js +10 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1351,7 +1351,7 @@ declare class RailsEmailUtils {
|
|
|
1351
1351
|
*
|
|
1352
1352
|
* email: The recipient email address used to find the email
|
|
1353
1353
|
*
|
|
1354
|
-
* subjectSubstring: The subject of the email used to match it. Defaults to the string
|
|
1354
|
+
* subjectSubstring: The subject of the email used to match it. Defaults to the string Your login code is to match Neeto OTP emails
|
|
1355
1355
|
*
|
|
1356
1356
|
* timeout: The timeout duration number in milliseconds, which when exceeded without finding matching emails, the method throws an error. Default to 2 minutes.
|
|
1357
1357
|
*
|
|
@@ -1712,7 +1712,7 @@ declare class MailerUtils {
|
|
|
1712
1712
|
*
|
|
1713
1713
|
* email: The recipient email address used to find the email
|
|
1714
1714
|
*
|
|
1715
|
-
* subjectSubstring: The subject of the email used to match it. Defaults to the string
|
|
1715
|
+
* subjectSubstring: The subject of the email used to match it. Defaults to the string Your login code is to match Neeto OTP emails
|
|
1716
1716
|
*
|
|
1717
1717
|
* timeout: The timeout duration number in milliseconds, which when exceeded without finding matching emails, the method throws an error. Default to 2 minutes.
|
|
1718
1718
|
*
|
|
@@ -3982,7 +3982,7 @@ declare const CREDENTIALS: {
|
|
|
3982
3982
|
* Pattern for the subject of OTP emails.
|
|
3983
3983
|
*
|
|
3984
3984
|
*/
|
|
3985
|
-
declare const OTP_EMAIL_PATTERN = "
|
|
3985
|
+
declare const OTP_EMAIL_PATTERN = "Your login code is";
|
|
3986
3986
|
/**
|
|
3987
3987
|
*
|
|
3988
3988
|
* Default Slack channel.
|
package/index.js
CHANGED
|
@@ -498,7 +498,7 @@ const CREDENTIALS = {
|
|
|
498
498
|
password: "welcome",
|
|
499
499
|
subdomainName: "spinkart",
|
|
500
500
|
};
|
|
501
|
-
const OTP_EMAIL_PATTERN = "
|
|
501
|
+
const OTP_EMAIL_PATTERN = "Your login code is";
|
|
502
502
|
const SLACK_DEFAULT_CHANNEL = "general";
|
|
503
503
|
const CUSTOM_DOMAIN_SUFFIX = "aceinvoice.com";
|
|
504
504
|
const ZAPIER_TEST_EMAIL = (product) => `neeto-${product}-zapier-test@${process.env.FASTMAIL_DOMAIN_NAME}`;
|
|
@@ -2376,7 +2376,7 @@ const MEMBER_TEXTS = {
|
|
|
2376
2376
|
};
|
|
2377
2377
|
const INTEGRATIONS_TEXTS = {
|
|
2378
2378
|
connectHeader: (integration) => `Connect your ${integration} account`,
|
|
2379
|
-
connectedHeader: (integration) =>
|
|
2379
|
+
connectedHeader: (integration) => `${integration} is connected`,
|
|
2380
2380
|
};
|
|
2381
2381
|
const SLACK_WEB_TEXTS = {
|
|
2382
2382
|
signOut: "Sign out",
|
|
@@ -4388,7 +4388,11 @@ const genKeccak = (suffix, blockLen, outputLen, info = {})=>createHasher(()=>new
|
|
|
4388
4388
|
|
|
4389
4389
|
const initializeTotp = ({ issuer, secret, }) => {
|
|
4390
4390
|
if (isNotPresent(secret)) {
|
|
4391
|
-
|
|
4391
|
+
// Set dummy 2FA secret in dev env to prevent TOTP init from throwing error
|
|
4392
|
+
if (IS_DEV_ENV)
|
|
4393
|
+
secret = "JBSWY3DPEHPK3PXP";
|
|
4394
|
+
else
|
|
4395
|
+
throw new Error("Secret for TOTP generation is not defined.");
|
|
4392
4396
|
}
|
|
4393
4397
|
return new TOTP({
|
|
4394
4398
|
issuer,
|
|
@@ -125305,9 +125309,9 @@ const REFRESH_TOKEN_ENV_KEYS = {
|
|
|
125305
125309
|
outlook: "EMAIL_DELIVERY_OUTLOOK_REFRESH_TOKEN",
|
|
125306
125310
|
};
|
|
125307
125311
|
const FROM_EMAIL_ENV_KEYS = {
|
|
125308
|
-
gmail: "
|
|
125309
|
-
outlook: "
|
|
125310
|
-
sparkpost: "
|
|
125312
|
+
gmail: "GOOGLE_LOGIN_EMAIL",
|
|
125313
|
+
outlook: "MICROSOFT_LOGIN_EMAIL",
|
|
125314
|
+
sparkpost: "SPARKPOST_EMAIL",
|
|
125311
125315
|
};
|
|
125312
125316
|
class EmailDeliveryUtils {
|
|
125313
125317
|
neetoPlaywrightUtilities;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-playwright-commons",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.7",
|
|
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",
|