@bigbinary/neeto-playwright-commons 4.1.6 → 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.js +8 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -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",
|