@typeolymp/utils 0.1.0 → 0.1.2

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.
Files changed (90) hide show
  1. package/build/enums/Color.d.ts +11 -0
  2. package/build/enums/Color.js +16 -0
  3. package/build/enums/Color.js.map +1 -0
  4. package/build/enums/Country.d.ts +4 -0
  5. package/build/enums/Country.js +9 -0
  6. package/build/enums/Country.js.map +1 -0
  7. package/build/enums/CourseTranslation.d.ts +3 -0
  8. package/build/enums/CourseTranslation.js +9 -0
  9. package/build/enums/CourseTranslation.js.map +1 -0
  10. package/build/enums/KeyboardLayout.d.ts +4 -0
  11. package/build/enums/KeyboardLayout.js +14 -0
  12. package/build/enums/KeyboardLayout.js.map +1 -0
  13. package/build/enums/Locale.d.ts +4 -0
  14. package/build/enums/Locale.js +13 -0
  15. package/build/enums/Locale.js.map +1 -0
  16. package/build/enums/Medal.d.ts +5 -0
  17. package/build/enums/Medal.js +10 -0
  18. package/build/enums/Medal.js.map +1 -0
  19. package/build/enums/Plan.d.ts +4 -0
  20. package/build/enums/Plan.js +9 -0
  21. package/build/enums/Plan.js.map +1 -0
  22. package/build/enums/TextTopic.d.ts +11 -0
  23. package/build/enums/TextTopic.js +16 -0
  24. package/build/enums/TextTopic.js.map +1 -0
  25. package/{src/enums/index.ts → build/enums/index.d.ts} +1 -1
  26. package/build/enums/index.js +25 -0
  27. package/build/enums/index.js.map +1 -0
  28. package/build/expressions/hasCapitalLetter.d.ts +1 -0
  29. package/build/expressions/hasCapitalLetter.js +9 -0
  30. package/build/expressions/hasCapitalLetter.js.map +1 -0
  31. package/build/expressions/hasNumber.d.ts +1 -0
  32. package/build/expressions/hasNumber.js +9 -0
  33. package/build/expressions/hasNumber.js.map +1 -0
  34. package/build/expressions/hasSpecialCharacter.d.ts +1 -0
  35. package/build/expressions/hasSpecialCharacter.js +9 -0
  36. package/build/expressions/hasSpecialCharacter.js.map +1 -0
  37. package/build/expressions/index.js +23 -0
  38. package/build/expressions/index.js.map +1 -0
  39. package/build/expressions/isStrongPassword.d.ts +1 -0
  40. package/build/expressions/isStrongPassword.js +12 -0
  41. package/build/expressions/isStrongPassword.js.map +1 -0
  42. package/build/expressions/isValidEmail.d.ts +1 -0
  43. package/build/expressions/isValidEmail.js +9 -0
  44. package/build/expressions/isValidEmail.js.map +1 -0
  45. package/build/expressions/isValidUsername.d.ts +1 -0
  46. package/build/expressions/isValidUsername.js +12 -0
  47. package/build/expressions/isValidUsername.js.map +1 -0
  48. package/build/index.js +30 -0
  49. package/build/index.js.map +1 -0
  50. package/build/parsers/getCountryByLocale.d.ts +2 -0
  51. package/build/parsers/getCountryByLocale.js +13 -0
  52. package/build/parsers/getCountryByLocale.js.map +1 -0
  53. package/build/parsers/getCourseTranslationByLocale.d.ts +2 -0
  54. package/build/parsers/getCourseTranslationByLocale.js +18 -0
  55. package/build/parsers/getCourseTranslationByLocale.js.map +1 -0
  56. package/build/parsers/getKeyboardLayoutByLocale.d.ts +2 -0
  57. package/build/parsers/getKeyboardLayoutByLocale.js +18 -0
  58. package/build/parsers/getKeyboardLayoutByLocale.js.map +1 -0
  59. package/build/parsers/getLanguageCodeByLocale.d.ts +2 -0
  60. package/build/parsers/getLanguageCodeByLocale.js +6 -0
  61. package/build/parsers/getLanguageCodeByLocale.js.map +1 -0
  62. package/build/parsers/getNativeLanguageByLocale.d.ts +2 -0
  63. package/build/parsers/getNativeLanguageByLocale.js +17 -0
  64. package/build/parsers/getNativeLanguageByLocale.js.map +1 -0
  65. package/build/parsers/index.js +22 -0
  66. package/build/parsers/index.js.map +1 -0
  67. package/package.json +5 -1
  68. package/src/enums/Color.ts +0 -11
  69. package/src/enums/Country.ts +0 -4
  70. package/src/enums/CourseTranslation.ts +0 -4
  71. package/src/enums/KeyboardLayout.ts +0 -9
  72. package/src/enums/Locale.ts +0 -8
  73. package/src/enums/Medal.ts +0 -5
  74. package/src/enums/Plan.ts +0 -4
  75. package/src/enums/TextTopic.ts +0 -11
  76. package/src/expressions/hasCapitalLetter.ts +0 -5
  77. package/src/expressions/hasNumber.ts +0 -5
  78. package/src/expressions/hasSpecialCharacter.ts +0 -7
  79. package/src/expressions/isStrongPassword.ts +0 -7
  80. package/src/expressions/isValidEmail.ts +0 -7
  81. package/src/expressions/isValidUsername.ts +0 -7
  82. package/src/parsers/getCountryByLocale.ts +0 -10
  83. package/src/parsers/getCourseTranslationByLocale.ts +0 -15
  84. package/src/parsers/getKeyboardLayoutByLocale.ts +0 -15
  85. package/src/parsers/getLanguageCodeByLocale.ts +0 -3
  86. package/src/parsers/getNativeLanguageByLocale.ts +0 -15
  87. package/tsconfig.json +0 -15
  88. /package/{src/expressions/index.ts → build/expressions/index.d.ts} +0 -0
  89. /package/{src/index.ts → build/index.d.ts} +0 -0
  90. /package/{src/parsers/index.ts → build/parsers/index.d.ts} +0 -0
@@ -0,0 +1,11 @@
1
+ export declare enum Color {
2
+ RED = "red",
3
+ YELLOW = "yellow",
4
+ BLUE = "blue",
5
+ GREEN = "green",
6
+ PURPLE = "purple",
7
+ PINK = "pink",
8
+ ORANGE = "orange",
9
+ DARK_GRAY = "darkGray",
10
+ LIGHT_GRAY = "lightGray"
11
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Color = void 0;
4
+ var Color;
5
+ (function (Color) {
6
+ Color["RED"] = "red";
7
+ Color["YELLOW"] = "yellow";
8
+ Color["BLUE"] = "blue";
9
+ Color["GREEN"] = "green";
10
+ Color["PURPLE"] = "purple";
11
+ Color["PINK"] = "pink";
12
+ Color["ORANGE"] = "orange";
13
+ Color["DARK_GRAY"] = "darkGray";
14
+ Color["LIGHT_GRAY"] = "lightGray";
15
+ })(Color = exports.Color || (exports.Color = {}));
16
+ //# sourceMappingURL=Color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Color.js","sourceRoot":"","sources":["../../src/enums/Color.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAUX;AAVD,WAAY,KAAK;IACf,oBAAW,CAAA;IACX,0BAAiB,CAAA;IACjB,sBAAa,CAAA;IACb,wBAAe,CAAA;IACf,0BAAiB,CAAA;IACjB,sBAAa,CAAA;IACb,0BAAiB,CAAA;IACjB,+BAAsB,CAAA;IACtB,iCAAwB,CAAA;AAC1B,CAAC,EAVW,KAAK,GAAL,aAAK,KAAL,aAAK,QAUhB"}
@@ -0,0 +1,4 @@
1
+ export declare enum Country {
2
+ NL = "Nederland",
3
+ BE = "Belgi\u00EB"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Country = void 0;
4
+ var Country;
5
+ (function (Country) {
6
+ Country["NL"] = "Nederland";
7
+ Country["BE"] = "Belgi\u00EB";
8
+ })(Country = exports.Country || (exports.Country = {}));
9
+ //# sourceMappingURL=Country.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Country.js","sourceRoot":"","sources":["../../src/enums/Country.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,2BAAgB,CAAA;IAChB,6BAAa,CAAA;AACf,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB"}
@@ -0,0 +1,3 @@
1
+ export declare enum CourseTranslation {
2
+ NL_NL = "nl-NL"
3
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CourseTranslation = void 0;
4
+ var CourseTranslation;
5
+ (function (CourseTranslation) {
6
+ CourseTranslation["NL_NL"] = "nl-NL";
7
+ // EN_GB = "en-GB",
8
+ })(CourseTranslation = exports.CourseTranslation || (exports.CourseTranslation = {}));
9
+ //# sourceMappingURL=CourseTranslation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourseTranslation.js","sourceRoot":"","sources":["../../src/enums/CourseTranslation.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,qBAAqB;AACvB,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
@@ -0,0 +1,4 @@
1
+ export declare enum KeyboardLayout {
2
+ QWERTY_NL = "qwerty-nl",
3
+ AZERTY_BE = "azerty-be"
4
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KeyboardLayout = void 0;
4
+ var KeyboardLayout;
5
+ (function (KeyboardLayout) {
6
+ KeyboardLayout["QWERTY_NL"] = "qwerty-nl";
7
+ // QWERTY_UK = "qwerty-uk",
8
+ // QWERTY_US = "qwerty-us",
9
+ // QWERTY_TR = "qwerty-tr",
10
+ KeyboardLayout["AZERTY_BE"] = "azerty-be";
11
+ // AZERTY_FR = "azerty-fr",
12
+ // QWERTZ_DE = "qwertz-de",
13
+ })(KeyboardLayout = exports.KeyboardLayout || (exports.KeyboardLayout = {}));
14
+ //# sourceMappingURL=KeyboardLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyboardLayout.js","sourceRoot":"","sources":["../../src/enums/KeyboardLayout.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,2BAA2B;IAC3B,2BAA2B;IAC3B,2BAA2B;IAC3B,yCAAuB,CAAA;IACvB,2BAA2B;IAC3B,2BAA2B;AAC7B,CAAC,EARW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAQzB"}
@@ -0,0 +1,4 @@
1
+ export declare enum Locale {
2
+ NL_NL = "nl-NL",
3
+ NL_BE = "nl-BE"
4
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Locale = void 0;
4
+ var Locale;
5
+ (function (Locale) {
6
+ Locale["NL_NL"] = "nl-NL";
7
+ Locale["NL_BE"] = "nl-BE";
8
+ // EN_GB = "en-GB",
9
+ // FR_FR = "fr-FR",
10
+ // FR_BE = "fr-BE",
11
+ // DE_DE = "de-DE",
12
+ })(Locale = exports.Locale || (exports.Locale = {}));
13
+ //# sourceMappingURL=Locale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Locale.js","sourceRoot":"","sources":["../../src/enums/Locale.ts"],"names":[],"mappings":";;;AAAA,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,yBAAe,CAAA;IACf,yBAAe,CAAA;IACf,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;AACrB,CAAC,EAPW,MAAM,GAAN,cAAM,KAAN,cAAM,QAOjB"}
@@ -0,0 +1,5 @@
1
+ export declare enum Medal {
2
+ GOLD = "gold",
3
+ SILVER = "silver",
4
+ BRONZE = "bronze"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Medal = void 0;
4
+ var Medal;
5
+ (function (Medal) {
6
+ Medal["GOLD"] = "gold";
7
+ Medal["SILVER"] = "silver";
8
+ Medal["BRONZE"] = "bronze";
9
+ })(Medal = exports.Medal || (exports.Medal = {}));
10
+ //# sourceMappingURL=Medal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Medal.js","sourceRoot":"","sources":["../../src/enums/Medal.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,sBAAa,CAAA;IACb,0BAAiB,CAAA;IACjB,0BAAiB,CAAA;AACnB,CAAC,EAJW,KAAK,GAAL,aAAK,KAAL,aAAK,QAIhB"}
@@ -0,0 +1,4 @@
1
+ export declare enum Plan {
2
+ HOBBY = "hobby",
3
+ PROFESSIONAL = "professional"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Plan = void 0;
4
+ var Plan;
5
+ (function (Plan) {
6
+ Plan["HOBBY"] = "hobby";
7
+ Plan["PROFESSIONAL"] = "professional";
8
+ })(Plan = exports.Plan || (exports.Plan = {}));
9
+ //# sourceMappingURL=Plan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plan.js","sourceRoot":"","sources":["../../src/enums/Plan.ts"],"names":[],"mappings":";;;AAAA,IAAY,IAGX;AAHD,WAAY,IAAI;IACd,uBAAe,CAAA;IACf,qCAA6B,CAAA;AAC/B,CAAC,EAHW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAGf"}
@@ -0,0 +1,11 @@
1
+ export declare enum TextTopic {
2
+ SPORT = "sport",
3
+ MUSIC = "music",
4
+ TECHNIC = "technic",
5
+ MOVIES = "movies",
6
+ NATURE = "nature",
7
+ HISTORY = "history",
8
+ ART = "art",
9
+ FASHION = "fashion",
10
+ OTHER = "other"
11
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextTopic = void 0;
4
+ var TextTopic;
5
+ (function (TextTopic) {
6
+ TextTopic["SPORT"] = "sport";
7
+ TextTopic["MUSIC"] = "music";
8
+ TextTopic["TECHNIC"] = "technic";
9
+ TextTopic["MOVIES"] = "movies";
10
+ TextTopic["NATURE"] = "nature";
11
+ TextTopic["HISTORY"] = "history";
12
+ TextTopic["ART"] = "art";
13
+ TextTopic["FASHION"] = "fashion";
14
+ TextTopic["OTHER"] = "other";
15
+ })(TextTopic = exports.TextTopic || (exports.TextTopic = {}));
16
+ //# sourceMappingURL=TextTopic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextTopic.js","sourceRoot":"","sources":["../../src/enums/TextTopic.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,wBAAW,CAAA;IACX,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EAVW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAUpB"}
@@ -5,4 +5,4 @@ export * from "./KeyboardLayout";
5
5
  export * from "./Locale";
6
6
  export * from "./Plan";
7
7
  export * from "./TextTopic";
8
- export * from "./Medal"
8
+ export * from "./Medal";
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Color"), exports);
18
+ __exportStar(require("./Country"), exports);
19
+ __exportStar(require("./CourseTranslation"), exports);
20
+ __exportStar(require("./KeyboardLayout"), exports);
21
+ __exportStar(require("./Locale"), exports);
22
+ __exportStar(require("./Plan"), exports);
23
+ __exportStar(require("./TextTopic"), exports);
24
+ __exportStar(require("./Medal"), exports);
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,4CAA0B;AAC1B,sDAAoC;AACpC,mDAAiC;AACjC,2CAAyB;AACzB,yCAAuB;AACvB,8CAA4B;AAC5B,0CAAuB"}
@@ -0,0 +1 @@
1
+ export declare const hasCapitalLetter: (input: string) => boolean;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hasCapitalLetter = void 0;
4
+ var hasCapitalLetter = function (input) {
5
+ var regex = new RegExp(/[A-Z]/g);
6
+ return regex.test(input);
7
+ };
8
+ exports.hasCapitalLetter = hasCapitalLetter;
9
+ //# sourceMappingURL=hasCapitalLetter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasCapitalLetter.js","sourceRoot":"","sources":["../../src/expressions/hasCapitalLetter.ts"],"names":[],"mappings":";;;AAAO,IAAM,gBAAgB,GAAG,UAAC,KAAa;IAC5C,IAAM,KAAK,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEnC,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC,CAAC;AAJW,QAAA,gBAAgB,oBAI3B"}
@@ -0,0 +1 @@
1
+ export declare const hasNumber: (input: string) => boolean;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hasNumber = void 0;
4
+ var hasNumber = function (input) {
5
+ var regex = new RegExp(/\d/g);
6
+ return regex.test(input);
7
+ };
8
+ exports.hasNumber = hasNumber;
9
+ //# sourceMappingURL=hasNumber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasNumber.js","sourceRoot":"","sources":["../../src/expressions/hasNumber.ts"],"names":[],"mappings":";;;AAAO,IAAM,SAAS,GAAG,UAAC,KAAa;IACrC,IAAM,KAAK,GAAG,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;IAEhC,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC,CAAC;AAJW,QAAA,SAAS,aAIpB"}
@@ -0,0 +1 @@
1
+ export declare const hasSpecialCharacter: (input: string) => boolean;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hasSpecialCharacter = void 0;
4
+ var hasSpecialCharacter = function (input) {
5
+ var regex = new RegExp(/`|~|!|"|-|_|@|#|\$|%|\^|&|\*|\(|\)|\+|=|\[|\{|\]|\}|\||\\|'|<|,|\.|>|\?|\/|""|;|:|\s/g);
6
+ return regex.test(input);
7
+ };
8
+ exports.hasSpecialCharacter = hasSpecialCharacter;
9
+ //# sourceMappingURL=hasSpecialCharacter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasSpecialCharacter.js","sourceRoot":"","sources":["../../src/expressions/hasSpecialCharacter.ts"],"names":[],"mappings":";;;AAAO,IAAM,mBAAmB,GAAG,UAAC,KAAa;IAC/C,IAAM,KAAK,GAAG,IAAI,MAAM,CACtB,uFAAuF,CACxF,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC,CAAC;AANW,QAAA,mBAAmB,uBAM9B"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./hasCapitalLetter"), exports);
18
+ __exportStar(require("./hasNumber"), exports);
19
+ __exportStar(require("./hasSpecialCharacter"), exports);
20
+ __exportStar(require("./isValidEmail"), exports);
21
+ __exportStar(require("./isValidUsername"), exports);
22
+ __exportStar(require("./isStrongPassword"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/expressions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,8CAA4B;AAC5B,wDAAsC;AACtC,iDAA+B;AAC/B,oDAAkC;AAClC,qDAAmC"}
@@ -0,0 +1 @@
1
+ export declare const isStrongPassword: (password: string) => boolean;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isStrongPassword = void 0;
4
+ var _1 = require(".");
5
+ var isStrongPassword = function (password) {
6
+ return password.length >= 8 &&
7
+ (0, _1.hasNumber)(password) &&
8
+ (0, _1.hasSpecialCharacter)(password) &&
9
+ (0, _1.hasCapitalLetter)(password);
10
+ };
11
+ exports.isStrongPassword = isStrongPassword;
12
+ //# sourceMappingURL=isStrongPassword.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isStrongPassword.js","sourceRoot":"","sources":["../../src/expressions/isStrongPassword.ts"],"names":[],"mappings":";;;AAAA,sBAAqE;AAE9D,IAAM,gBAAgB,GAAG,UAAC,QAAgB;IAC/C,OAAA,QAAQ,CAAC,MAAM,IAAI,CAAC;QACpB,IAAA,YAAS,EAAC,QAAQ,CAAC;QACnB,IAAA,sBAAmB,EAAC,QAAQ,CAAC;QAC7B,IAAA,mBAAgB,EAAC,QAAQ,CAAC;AAH1B,CAG0B,CAAC;AAJhB,QAAA,gBAAgB,oBAIA"}
@@ -0,0 +1 @@
1
+ export declare const isValidEmail: (email: string) => boolean;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isValidEmail = void 0;
4
+ var isValidEmail = function (email) {
5
+ var regex = new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
6
+ return regex.test(email);
7
+ };
8
+ exports.isValidEmail = isValidEmail;
9
+ //# sourceMappingURL=isValidEmail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isValidEmail.js","sourceRoot":"","sources":["../../src/expressions/isValidEmail.ts"],"names":[],"mappings":";;;AAAO,IAAM,YAAY,GAAG,UAAC,KAAa;IACxC,IAAM,KAAK,GAAG,IAAI,MAAM,CACtB,uJAAuJ,CACxJ,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC,CAAC;AANW,QAAA,YAAY,gBAMvB"}
@@ -0,0 +1 @@
1
+ export declare const isValidUsername: (username: string) => boolean;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isValidUsername = void 0;
4
+ var isValidEmail_1 = require("./isValidEmail");
5
+ var isValidUsername = function (username) {
6
+ return username.length >= 5 &&
7
+ username.length <= 15 &&
8
+ username.indexOf(" ") < 0 &&
9
+ !(0, isValidEmail_1.isValidEmail)(username);
10
+ };
11
+ exports.isValidUsername = isValidUsername;
12
+ //# sourceMappingURL=isValidUsername.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isValidUsername.js","sourceRoot":"","sources":["../../src/expressions/isValidUsername.ts"],"names":[],"mappings":";;;AAAA,+CAA8C;AAEvC,IAAM,eAAe,GAAG,UAAC,QAAgB;IAC9C,OAAA,QAAQ,CAAC,MAAM,IAAI,CAAC;QACpB,QAAQ,CAAC,MAAM,IAAI,EAAE;QACrB,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;QACzB,CAAC,IAAA,2BAAY,EAAC,QAAQ,CAAC;AAHvB,CAGuB,CAAC;AAJb,QAAA,eAAe,mBAIF"}
package/build/index.js ADDED
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.parsers = exports.expressions = exports.enums = void 0;
27
+ exports.enums = __importStar(require("./enums"));
28
+ exports.expressions = __importStar(require("./expressions"));
29
+ exports.parsers = __importStar(require("./parsers"));
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiC;AACjC,6DAA6C;AAC7C,qDAAqC"}
@@ -0,0 +1,2 @@
1
+ import { Locale, Country } from "../enums";
2
+ export declare const getCountryByLocale: (locale: Locale) => Country;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCountryByLocale = void 0;
4
+ var enums_1 = require("../enums");
5
+ var getCountryByLocale = function (locale) {
6
+ var countries = {
7
+ "nl-NL": enums_1.Country.NL,
8
+ "nl-BE": enums_1.Country.BE,
9
+ };
10
+ return countries[locale];
11
+ };
12
+ exports.getCountryByLocale = getCountryByLocale;
13
+ //# sourceMappingURL=getCountryByLocale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCountryByLocale.js","sourceRoot":"","sources":["../../src/parsers/getCountryByLocale.ts"],"names":[],"mappings":";;;AAAA,kCAA2C;AAEpC,IAAM,kBAAkB,GAAG,UAAC,MAAc;IAC/C,IAAM,SAAS,GAAiC;QAC9C,OAAO,EAAE,eAAO,CAAC,EAAE;QACnB,OAAO,EAAE,eAAO,CAAC,EAAE;KACpB,CAAC;IAEF,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC,CAAC;AAPW,QAAA,kBAAkB,sBAO7B"}
@@ -0,0 +1,2 @@
1
+ import { Locale, CourseTranslation } from "../enums";
2
+ export declare const getCourseTranslationByLocale: (locale: Locale) => CourseTranslation;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCourseTranslationByLocale = void 0;
4
+ var enums_1 = require("../enums");
5
+ var getCourseTranslationByLocale = function (locale) {
6
+ var courseTranslations = {
7
+ "nl-NL": enums_1.CourseTranslation.NL_NL,
8
+ "nl-BE": enums_1.CourseTranslation.NL_NL,
9
+ // "en-GB": KeyboardLayout.QWERTY_UK,
10
+ // "en-US": KeyboardLayout.QWERTY_US,
11
+ // "fr-BE": KeyboardLayout.AZERTY_FR,
12
+ // "fr-FR": KeyboardLayout.AZERTY_FR,
13
+ // "de-DE": KeyboardLayout.QWERTZ_DE,
14
+ };
15
+ return courseTranslations[locale];
16
+ };
17
+ exports.getCourseTranslationByLocale = getCourseTranslationByLocale;
18
+ //# sourceMappingURL=getCourseTranslationByLocale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCourseTranslationByLocale.js","sourceRoot":"","sources":["../../src/parsers/getCourseTranslationByLocale.ts"],"names":[],"mappings":";;;AAAA,kCAAqD;AAE9C,IAAM,4BAA4B,GAAG,UAAC,MAAc;IACzD,IAAM,kBAAkB,GAA2C;QACjE,OAAO,EAAE,yBAAiB,CAAC,KAAK;QAChC,OAAO,EAAE,yBAAiB,CAAC,KAAK;QAChC,qCAAqC;QACrC,qCAAqC;QACrC,qCAAqC;QACrC,qCAAqC;QACrC,qCAAqC;KACtC,CAAC;IAEF,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC,CAAC;AAZW,QAAA,4BAA4B,gCAYvC"}
@@ -0,0 +1,2 @@
1
+ import { Locale, KeyboardLayout } from "../enums";
2
+ export declare const getKeyboardLayoutByLocale: (locale: Locale) => KeyboardLayout;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getKeyboardLayoutByLocale = void 0;
4
+ var enums_1 = require("../enums");
5
+ var getKeyboardLayoutByLocale = function (locale) {
6
+ var keyboardLayouts = {
7
+ "nl-NL": enums_1.KeyboardLayout.QWERTY_NL,
8
+ "nl-BE": enums_1.KeyboardLayout.AZERTY_BE,
9
+ // "en-GB": KeyboardLayout.QWERTY_UK,
10
+ // "en-US": KeyboardLayout.QWERTY_US,
11
+ // "fr-BE": KeyboardLayout.AZERTY_FR,
12
+ // "fr-FR": KeyboardLayout.AZERTY_FR,
13
+ // "de-DE": KeyboardLayout.QWERTZ_DE,
14
+ };
15
+ return keyboardLayouts[locale];
16
+ };
17
+ exports.getKeyboardLayoutByLocale = getKeyboardLayoutByLocale;
18
+ //# sourceMappingURL=getKeyboardLayoutByLocale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getKeyboardLayoutByLocale.js","sourceRoot":"","sources":["../../src/parsers/getKeyboardLayoutByLocale.ts"],"names":[],"mappings":";;;AAAA,kCAAkD;AAE3C,IAAM,yBAAyB,GAAG,UAAC,MAAc;IACtD,IAAM,eAAe,GAAwC;QAC3D,OAAO,EAAE,sBAAc,CAAC,SAAS;QACjC,OAAO,EAAE,sBAAc,CAAC,SAAS;QACjC,qCAAqC;QACrC,qCAAqC;QACrC,qCAAqC;QACrC,qCAAqC;QACrC,qCAAqC;KACtC,CAAC;IAEF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC,CAAC;AAZW,QAAA,yBAAyB,6BAYpC"}
@@ -0,0 +1,2 @@
1
+ import { Locale } from "../enums";
2
+ export declare const getLanguageCodeByLocale: (locale: Locale) => string;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLanguageCodeByLocale = void 0;
4
+ var getLanguageCodeByLocale = function (locale) { return locale.split("-")[0]; };
5
+ exports.getLanguageCodeByLocale = getLanguageCodeByLocale;
6
+ //# sourceMappingURL=getLanguageCodeByLocale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLanguageCodeByLocale.js","sourceRoot":"","sources":["../../src/parsers/getLanguageCodeByLocale.ts"],"names":[],"mappings":";;;AAEO,IAAM,uBAAuB,GAAG,UAAC,MAAc,IAAK,OAAA,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAApB,CAAoB,CAAC;AAAnE,QAAA,uBAAuB,2BAA4C"}
@@ -0,0 +1,2 @@
1
+ import { Locale } from "../enums";
2
+ export declare const getNativeLanguageByLocale: (locale: Locale) => string;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getNativeLanguageByLocale = void 0;
4
+ var getNativeLanguageByLocale = function (locale) {
5
+ var nativeLanguages = {
6
+ "nl-NL": "Nederlands",
7
+ "nl-BE": "Nederlands (BE)",
8
+ // "en-GB": "English (UK)",
9
+ // "en-US": "English (US)",
10
+ // "fr-BE": "Français (BE)",
11
+ // "fr-FR": "Français",
12
+ // "de-DE": "Deutsch",
13
+ };
14
+ return nativeLanguages[locale];
15
+ };
16
+ exports.getNativeLanguageByLocale = getNativeLanguageByLocale;
17
+ //# sourceMappingURL=getNativeLanguageByLocale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNativeLanguageByLocale.js","sourceRoot":"","sources":["../../src/parsers/getNativeLanguageByLocale.ts"],"names":[],"mappings":";;;AAEO,IAAM,yBAAyB,GAAG,UAAC,MAAc;IACtD,IAAM,eAAe,GAAgC;QACnD,OAAO,EAAE,YAAY;QACrB,OAAO,EAAE,iBAAiB;QAC1B,2BAA2B;QAC3B,2BAA2B;QAC3B,4BAA4B;QAC5B,uBAAuB;QACvB,sBAAsB;KACvB,CAAC;IAEF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC,CAAC;AAZW,QAAA,yBAAyB,6BAYpC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./getCountryByLocale"), exports);
18
+ __exportStar(require("./getCourseTranslationByLocale"), exports);
19
+ __exportStar(require("./getKeyboardLayoutByLocale"), exports);
20
+ __exportStar(require("./getLanguageCodeByLocale"), exports);
21
+ __exportStar(require("./getNativeLanguageByLocale"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/parsers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,iEAA+C;AAC/C,8DAA4C;AAC5C,4DAA0C;AAC1C,8DAA4C"}
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@typeolymp/utils",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "author": "TypeOlymp",
5
+ "files": [
6
+ "/build"
7
+ ],
8
+ "main": "/index.js",
5
9
  "scripts": {
6
10
  "build": "tsc -p .",
7
11
  "refresh": "rm -rf ./node_modules ./package-lock.json && npm install",
@@ -1,11 +0,0 @@
1
- export enum Color {
2
- RED = "red",
3
- YELLOW = "yellow",
4
- BLUE = "blue",
5
- GREEN = "green",
6
- PURPLE = "purple",
7
- PINK = "pink",
8
- ORANGE = "orange",
9
- DARK_GRAY = "darkGray",
10
- LIGHT_GRAY = "lightGray",
11
- }
@@ -1,4 +0,0 @@
1
- export enum Country {
2
- NL = "Nederland",
3
- BE = "België",
4
- }
@@ -1,4 +0,0 @@
1
- export enum CourseTranslation {
2
- NL_NL = "nl-NL",
3
- // EN_GB = "en-GB",
4
- }
@@ -1,9 +0,0 @@
1
- export enum KeyboardLayout {
2
- QWERTY_NL = "qwerty-nl",
3
- // QWERTY_UK = "qwerty-uk",
4
- // QWERTY_US = "qwerty-us",
5
- // QWERTY_TR = "qwerty-tr",
6
- AZERTY_BE = "azerty-be",
7
- // AZERTY_FR = "azerty-fr",
8
- // QWERTZ_DE = "qwertz-de",
9
- }
@@ -1,8 +0,0 @@
1
- export enum Locale {
2
- NL_NL = "nl-NL",
3
- NL_BE = "nl-BE",
4
- // EN_GB = "en-GB",
5
- // FR_FR = "fr-FR",
6
- // FR_BE = "fr-BE",
7
- // DE_DE = "de-DE",
8
- }
@@ -1,5 +0,0 @@
1
- export enum Medal {
2
- GOLD = "gold",
3
- SILVER = "silver",
4
- BRONZE = "bronze",
5
- }
package/src/enums/Plan.ts DELETED
@@ -1,4 +0,0 @@
1
- export enum Plan {
2
- HOBBY = "hobby",
3
- PROFESSIONAL = "professional",
4
- }
@@ -1,11 +0,0 @@
1
- export enum TextTopic {
2
- SPORT = "sport",
3
- MUSIC = "music",
4
- TECHNIC = "technic",
5
- MOVIES = "movies",
6
- NATURE = "nature",
7
- HISTORY = "history",
8
- ART = "art",
9
- FASHION = "fashion",
10
- OTHER = "other",
11
- }
@@ -1,5 +0,0 @@
1
- export const hasCapitalLetter = (input: string): boolean => {
2
- const regex = new RegExp(/[A-Z]/g);
3
-
4
- return regex.test(input);
5
- };
@@ -1,5 +0,0 @@
1
- export const hasNumber = (input: string): boolean => {
2
- const regex = new RegExp(/\d/g);
3
-
4
- return regex.test(input);
5
- };
@@ -1,7 +0,0 @@
1
- export const hasSpecialCharacter = (input: string): boolean => {
2
- const regex = new RegExp(
3
- /`|~|!|"|-|_|@|#|\$|%|\^|&|\*|\(|\)|\+|=|\[|\{|\]|\}|\||\\|'|<|,|\.|>|\?|\/|""|;|:|\s/g
4
- );
5
-
6
- return regex.test(input);
7
- };
@@ -1,7 +0,0 @@
1
- import { hasNumber, hasSpecialCharacter, hasCapitalLetter } from ".";
2
-
3
- export const isStrongPassword = (password: string): boolean =>
4
- password.length >= 8 &&
5
- hasNumber(password) &&
6
- hasSpecialCharacter(password) &&
7
- hasCapitalLetter(password);
@@ -1,7 +0,0 @@
1
- export const isValidEmail = (email: string): boolean => {
2
- const regex = new RegExp(
3
- /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
4
- );
5
-
6
- return regex.test(email);
7
- };
@@ -1,7 +0,0 @@
1
- import { isValidEmail } from "./isValidEmail";
2
-
3
- export const isValidUsername = (username: string): boolean =>
4
- username.length >= 5 &&
5
- username.length <= 15 &&
6
- username.indexOf(" ") < 0 &&
7
- !isValidEmail(username);
@@ -1,10 +0,0 @@
1
- import { Locale, Country } from "../enums";
2
-
3
- export const getCountryByLocale = (locale: Locale) => {
4
- const countries: { [key in Locale]: Country } = {
5
- "nl-NL": Country.NL,
6
- "nl-BE": Country.BE,
7
- };
8
-
9
- return countries[locale];
10
- };
@@ -1,15 +0,0 @@
1
- import { Locale, CourseTranslation } from "../enums";
2
-
3
- export const getCourseTranslationByLocale = (locale: Locale) => {
4
- const courseTranslations: { [key in Locale]: CourseTranslation } = {
5
- "nl-NL": CourseTranslation.NL_NL,
6
- "nl-BE": CourseTranslation.NL_NL,
7
- // "en-GB": KeyboardLayout.QWERTY_UK,
8
- // "en-US": KeyboardLayout.QWERTY_US,
9
- // "fr-BE": KeyboardLayout.AZERTY_FR,
10
- // "fr-FR": KeyboardLayout.AZERTY_FR,
11
- // "de-DE": KeyboardLayout.QWERTZ_DE,
12
- };
13
-
14
- return courseTranslations[locale];
15
- };
@@ -1,15 +0,0 @@
1
- import { Locale, KeyboardLayout } from "../enums";
2
-
3
- export const getKeyboardLayoutByLocale = (locale: Locale) => {
4
- const keyboardLayouts: { [key in Locale]: KeyboardLayout } = {
5
- "nl-NL": KeyboardLayout.QWERTY_NL,
6
- "nl-BE": KeyboardLayout.AZERTY_BE,
7
- // "en-GB": KeyboardLayout.QWERTY_UK,
8
- // "en-US": KeyboardLayout.QWERTY_US,
9
- // "fr-BE": KeyboardLayout.AZERTY_FR,
10
- // "fr-FR": KeyboardLayout.AZERTY_FR,
11
- // "de-DE": KeyboardLayout.QWERTZ_DE,
12
- };
13
-
14
- return keyboardLayouts[locale];
15
- };
@@ -1,3 +0,0 @@
1
- import { Locale } from "../enums";
2
-
3
- export const getLanguageCodeByLocale = (locale: Locale) => locale.split("-")[0];
@@ -1,15 +0,0 @@
1
- import { Locale } from "../enums";
2
-
3
- export const getNativeLanguageByLocale = (locale: Locale) => {
4
- const nativeLanguages: { [key in Locale]: string } = {
5
- "nl-NL": "Nederlands",
6
- "nl-BE": "Nederlands (BE)",
7
- // "en-GB": "English (UK)",
8
- // "en-US": "English (US)",
9
- // "fr-BE": "Français (BE)",
10
- // "fr-FR": "Français",
11
- // "de-DE": "Deutsch",
12
- };
13
-
14
- return nativeLanguages[locale];
15
- };
package/tsconfig.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "rootDir": "src",
4
- "sourceMap": true,
5
- "target": "ES5",
6
- "module": "CommonJS",
7
- "lib": ["ES2019", "DOM"],
8
- "declaration": true,
9
- "outDir": "build",
10
- "strict": true,
11
- "types": ["node"],
12
- "esModuleInterop": true,
13
- "resolveJsonModule": true
14
- }
15
- }
File without changes