expensify-common 2.0.151 → 2.0.152
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/dist/CONST.d.ts +2 -4
- package/dist/CONST.js +4 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -2
- package/package.json +1 -1
package/dist/CONST.d.ts
CHANGED
|
@@ -874,9 +874,7 @@ declare const UI: {
|
|
|
874
874
|
readonly DIALOG_Z_INDEX: 4000;
|
|
875
875
|
};
|
|
876
876
|
/**
|
|
877
|
-
*
|
|
878
|
-
* @deprecated use PUBLIC_DOMAINS_SET instead
|
|
877
|
+
* Set of most frequently used public domains
|
|
879
878
|
*/
|
|
880
|
-
declare const PUBLIC_DOMAINS: readonly ["accountant.com", "afis.ch", "aol.com", "artlover.com", "asia.com", "att.net", "bellsouth.net", "bills.expensify.com", "btinternet.com", "cheerful.com", "chromeexpensify.com", "comcast.net", "consultant.com", "contractor.com", "cox.net", "cpa.com", "cryptohistoryprice.com", "dr.com", "email.com", "engineer.com", "europe.com", "evernote.user", "execs.com", "expensify.cash", "expensify.sms", "gmail.com", "gmail.con", "googlemail.com", "hey.com", "hotmail.co.uk", "hotmail.com", "hotmail.fr", "hotmail.it", "icloud.com", "iname.com", "jeeviess.com", "live.com", "mac.com", "mail.com", "mail.ru", "mailfence.com", "me.com", "msn.com", "musician.org", "myself.com", "outlook.com", "pm.me", "post.com", "privaterelay.appleid.com", "proton.me", "protonmail.ch", "protonmail.com", "qq.com", "rigl.ch", "sasktel.net", "sbcglobal.net", "spacehotline.com", "tafmail.com", "techie.com", "usa.com", "verizon.net", "vomoto.com", "wolfandcranebar.tech", "workmail.com", "writeme.com", "yahoo.ca", "yahoo.co.in", "yahoo.co.uk", "yahoo.com", "yahoo.com.br", "ymail.com"];
|
|
881
879
|
declare const PUBLIC_DOMAINS_SET: Set<string>;
|
|
882
|
-
export { g_cloudFront, g_cloudFrontImg, CONST, UI, PUBLIC_DOMAINS_SET
|
|
880
|
+
export { g_cloudFront, g_cloudFrontImg, CONST, UI, PUBLIC_DOMAINS_SET };
|
package/dist/CONST.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* eslint-disable no-useless-escape */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.PUBLIC_DOMAINS_SET = exports.UI = exports.CONST = exports.g_cloudFrontImg = exports.g_cloudFront = void 0;
|
|
5
5
|
const EMAIL_BASE_REGEX = "(?=((?=[\\w'#%+-]+(?:\\.[\\w'#%+-]+)*@)[\\w\\.'#%+-]{1,64}@(?:(?=[a-z\\d]+(?:-+[a-z\\d]+)*\\.)(?:[a-z\\d-]{1,63}\\.)+[a-z]{2,63})(?= |_|\\b))(?<end>.*))\\S{3,254}(?=\\k<end>$)";
|
|
6
6
|
const MOMENT_FORMAT_STRING = 'YYYY-MM-DD';
|
|
7
7
|
/**
|
|
@@ -920,10 +920,9 @@ const UI = {
|
|
|
920
920
|
};
|
|
921
921
|
exports.UI = UI;
|
|
922
922
|
/**
|
|
923
|
-
*
|
|
924
|
-
* @deprecated use PUBLIC_DOMAINS_SET instead
|
|
923
|
+
* Set of most frequently used public domains
|
|
925
924
|
*/
|
|
926
|
-
const
|
|
925
|
+
const PUBLIC_DOMAINS_SET = new Set([
|
|
927
926
|
'accountant.com',
|
|
928
927
|
'afis.ch',
|
|
929
928
|
'aol.com',
|
|
@@ -995,7 +994,5 @@ const PUBLIC_DOMAINS = [
|
|
|
995
994
|
'yahoo.com',
|
|
996
995
|
'yahoo.com.br',
|
|
997
996
|
'ymail.com',
|
|
998
|
-
];
|
|
999
|
-
exports.PUBLIC_DOMAINS = PUBLIC_DOMAINS;
|
|
1000
|
-
const PUBLIC_DOMAINS_SET = new Set(PUBLIC_DOMAINS);
|
|
997
|
+
]);
|
|
1001
998
|
exports.PUBLIC_DOMAINS_SET = PUBLIC_DOMAINS_SET;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as API } from './API';
|
|
2
2
|
export { default as APIDeferred } from './APIDeferred';
|
|
3
3
|
export { default as BrowserDetect } from './BrowserDetect';
|
|
4
|
-
export { g_cloudFront, g_cloudFrontImg, CONST, UI, PUBLIC_DOMAINS_SET
|
|
4
|
+
export { g_cloudFront, g_cloudFrontImg, CONST, UI, PUBLIC_DOMAINS_SET } from './CONST';
|
|
5
5
|
export { default as Cookie } from './Cookie';
|
|
6
6
|
export { default as CredentialsWrapper, LOGIN_PARTNER_DETAILS } from './CredentialsWrapper';
|
|
7
7
|
export * as Device from './Device';
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.TLD_REGEX = exports.Str = exports.fastMerge = exports.Url = exports.Templates = exports.ReportHistoryStore = exports.PubSub = exports.PageEvent = exports.Num = exports.Network = exports.Logger = exports.ExpensiMark = exports.Device = exports.LOGIN_PARTNER_DETAILS = exports.CredentialsWrapper = exports.Cookie = exports.
|
|
39
|
+
exports.TLD_REGEX = exports.Str = exports.fastMerge = exports.Url = exports.Templates = exports.ReportHistoryStore = exports.PubSub = exports.PageEvent = exports.Num = exports.Network = exports.Logger = exports.ExpensiMark = exports.Device = exports.LOGIN_PARTNER_DETAILS = exports.CredentialsWrapper = exports.Cookie = exports.PUBLIC_DOMAINS_SET = exports.UI = exports.CONST = exports.g_cloudFrontImg = exports.g_cloudFront = exports.BrowserDetect = exports.APIDeferred = exports.API = void 0;
|
|
40
40
|
// eslint-disable-next-line rulesdir/no-api-in-views
|
|
41
41
|
var API_1 = require("./API");
|
|
42
42
|
Object.defineProperty(exports, "API", { enumerable: true, get: function () { return __importDefault(API_1).default; } });
|
|
@@ -50,7 +50,6 @@ Object.defineProperty(exports, "g_cloudFrontImg", { enumerable: true, get: funct
|
|
|
50
50
|
Object.defineProperty(exports, "CONST", { enumerable: true, get: function () { return CONST_1.CONST; } });
|
|
51
51
|
Object.defineProperty(exports, "UI", { enumerable: true, get: function () { return CONST_1.UI; } });
|
|
52
52
|
Object.defineProperty(exports, "PUBLIC_DOMAINS_SET", { enumerable: true, get: function () { return CONST_1.PUBLIC_DOMAINS_SET; } });
|
|
53
|
-
Object.defineProperty(exports, "PUBLIC_DOMAINS", { enumerable: true, get: function () { return CONST_1.PUBLIC_DOMAINS; } });
|
|
54
53
|
var Cookie_1 = require("./Cookie");
|
|
55
54
|
Object.defineProperty(exports, "Cookie", { enumerable: true, get: function () { return __importDefault(Cookie_1).default; } });
|
|
56
55
|
var CredentialsWrapper_1 = require("./CredentialsWrapper");
|