expensify-common 2.0.139 → 2.0.141
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 +7 -1
- package/dist/CONST.js +8 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/CONST.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ declare const CONST: {
|
|
|
38
38
|
readonly AU: "AUD";
|
|
39
39
|
readonly UK: "GBP";
|
|
40
40
|
readonly NZ: "NZD";
|
|
41
|
+
readonly EU: "EUR";
|
|
41
42
|
};
|
|
42
43
|
readonly STATES: {
|
|
43
44
|
readonly AK: {
|
|
@@ -872,5 +873,10 @@ declare const UI: {
|
|
|
872
873
|
readonly QR_CODE: "js_qrCode";
|
|
873
874
|
readonly DIALOG_Z_INDEX: 4000;
|
|
874
875
|
};
|
|
876
|
+
/**
|
|
877
|
+
* List of most frequently used public domains
|
|
878
|
+
* @deprecated use PUBLIC_DOMAINS_SET instead
|
|
879
|
+
*/
|
|
875
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"];
|
|
876
|
-
|
|
881
|
+
declare const PUBLIC_DOMAINS_SET: Set<string>;
|
|
882
|
+
export { g_cloudFront, g_cloudFrontImg, CONST, UI, PUBLIC_DOMAINS_SET, PUBLIC_DOMAINS };
|
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.PUBLIC_DOMAINS = exports.UI = exports.CONST = exports.g_cloudFrontImg = exports.g_cloudFront = void 0;
|
|
4
|
+
exports.PUBLIC_DOMAINS = 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
|
/**
|
|
@@ -46,6 +46,7 @@ const CONST = {
|
|
|
46
46
|
AU: 'AUD',
|
|
47
47
|
UK: 'GBP',
|
|
48
48
|
NZ: 'NZD',
|
|
49
|
+
EU: 'EUR',
|
|
49
50
|
},
|
|
50
51
|
STATES: {
|
|
51
52
|
AK: {
|
|
@@ -918,7 +919,10 @@ const UI = {
|
|
|
918
919
|
DIALOG_Z_INDEX: 4000,
|
|
919
920
|
};
|
|
920
921
|
exports.UI = UI;
|
|
921
|
-
|
|
922
|
+
/**
|
|
923
|
+
* List of most frequently used public domains
|
|
924
|
+
* @deprecated use PUBLIC_DOMAINS_SET instead
|
|
925
|
+
*/
|
|
922
926
|
const PUBLIC_DOMAINS = [
|
|
923
927
|
'accountant.com',
|
|
924
928
|
'afis.ch',
|
|
@@ -993,3 +997,5 @@ const PUBLIC_DOMAINS = [
|
|
|
993
997
|
'ymail.com',
|
|
994
998
|
];
|
|
995
999
|
exports.PUBLIC_DOMAINS = PUBLIC_DOMAINS;
|
|
1000
|
+
const PUBLIC_DOMAINS_SET = new Set(PUBLIC_DOMAINS);
|
|
1001
|
+
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 } from './CONST';
|
|
4
|
+
export { g_cloudFront, g_cloudFrontImg, CONST, UI, PUBLIC_DOMAINS_SET, PUBLIC_DOMAINS } 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.PUBLIC_DOMAINS = exports.UI = exports.CONST = exports.g_cloudFrontImg = exports.g_cloudFront = exports.BrowserDetect = exports.APIDeferred = exports.API = void 0;
|
|
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 = 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; } });
|
|
@@ -49,6 +49,7 @@ Object.defineProperty(exports, "g_cloudFront", { enumerable: true, get: function
|
|
|
49
49
|
Object.defineProperty(exports, "g_cloudFrontImg", { enumerable: true, get: function () { return CONST_1.g_cloudFrontImg; } });
|
|
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
|
+
Object.defineProperty(exports, "PUBLIC_DOMAINS_SET", { enumerable: true, get: function () { return CONST_1.PUBLIC_DOMAINS_SET; } });
|
|
52
53
|
Object.defineProperty(exports, "PUBLIC_DOMAINS", { enumerable: true, get: function () { return CONST_1.PUBLIC_DOMAINS; } });
|
|
53
54
|
var Cookie_1 = require("./Cookie");
|
|
54
55
|
Object.defineProperty(exports, "Cookie", { enumerable: true, get: function () { return __importDefault(Cookie_1).default; } });
|