@andre1502/react-utilities 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/README.md +61 -12
  2. package/dist/Config/Config.js +4 -3
  3. package/dist/Config/Config.js.map +1 -1
  4. package/dist/EnvironmentEnum-BjXsfSRZ.js +9 -0
  5. package/dist/EnvironmentEnum-BjXsfSRZ.js.map +1 -0
  6. package/dist/EnvironmentEnum-UcQ6Il1O.js +9 -0
  7. package/dist/EnvironmentEnum-UcQ6Il1O.js.map +1 -0
  8. package/dist/I18n/I18n.d.ts +6 -0
  9. package/dist/I18n/I18n.js +104 -0
  10. package/dist/I18n/I18n.js.map +1 -0
  11. package/dist/I18n-CB7SyXYJ.js +3291 -0
  12. package/dist/I18n-CB7SyXYJ.js.map +1 -0
  13. package/dist/I18n-yXLN_hDO.js +3288 -0
  14. package/dist/I18n-yXLN_hDO.js.map +1 -0
  15. package/dist/config-cli.cjs +8 -3
  16. package/dist/config-cli.cjs.map +1 -1
  17. package/dist/config-cli.d.ts +2 -0
  18. package/dist/config-cli.js +8 -0
  19. package/dist/config-cli.js.map +1 -1
  20. package/dist/config-cli.mjs +5 -4
  21. package/dist/config-cli.mjs.map +1 -1
  22. package/dist/enums/EnvironmentEnum.d.ts +5 -0
  23. package/dist/enums/EnvironmentEnum.js +13 -0
  24. package/dist/enums/EnvironmentEnum.js.map +1 -0
  25. package/dist/i18n.cjs +15 -0
  26. package/dist/i18n.cjs.map +1 -0
  27. package/dist/i18n.d.ts +3 -0
  28. package/dist/i18n.js +28 -0
  29. package/dist/i18n.js.map +1 -0
  30. package/dist/i18n.mjs +4 -0
  31. package/dist/i18n.mjs.map +1 -0
  32. package/dist/index-cli.cjs +5 -0
  33. package/dist/index-cli.cjs.map +1 -1
  34. package/dist/index-cli.mjs +1 -0
  35. package/dist/index-cli.mjs.map +1 -1
  36. package/dist/index-rn.cjs +9 -0
  37. package/dist/index-rn.cjs.map +1 -1
  38. package/dist/index-rn.d.ts +1 -0
  39. package/dist/index-rn.js +11 -0
  40. package/dist/index-rn.js.map +1 -1
  41. package/dist/index-rn.mjs +3 -0
  42. package/dist/index-rn.mjs.map +1 -1
  43. package/dist/index.cjs +9 -0
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.js +11 -0
  47. package/dist/index.js.map +1 -1
  48. package/dist/index.mjs +3 -0
  49. package/dist/index.mjs.map +1 -1
  50. package/package.json +11 -6
  51. package/src/Config/Config.ts +4 -3
  52. package/src/I18n/I18n.ts +117 -0
  53. package/src/config-cli.ts +2 -0
  54. package/src/enums/EnvironmentEnum.ts +5 -0
  55. package/src/i18n.ts +4 -0
  56. package/src/index-rn.ts +1 -0
  57. package/src/index.ts +1 -0
  58. package/dist/index-fmt.cjs +0 -16
  59. package/dist/index-fmt.cjs.map +0 -1
  60. package/dist/index-fmt.d.ts +0 -1
  61. package/dist/index-fmt.js +0 -17
  62. package/dist/index-fmt.js.map +0 -1
  63. package/dist/index-fmt.mjs +0 -3
  64. package/dist/index-fmt.mjs.map +0 -1
  65. package/src/index-fmt.ts +0 -1
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var lodash = require('lodash');
4
+ var EnvironmentEnum = require('./EnvironmentEnum-BjXsfSRZ.js');
4
5
  var fs = require('fs');
5
6
  var googleAuthLibrary = require('google-auth-library');
6
7
  var googleapis = require('googleapis');
@@ -169,17 +170,17 @@ const envMap = env => {
169
170
  case 'dev':
170
171
  case 'develop':
171
172
  case 'development':
172
- result = 'dev';
173
+ result = EnvironmentEnum.EnvironmentEnum.DEV;
173
174
  break;
174
175
  case 'stg':
175
176
  case 'stag':
176
177
  case 'staging':
177
- result = 'staging';
178
+ result = EnvironmentEnum.EnvironmentEnum.STAGING;
178
179
  break;
179
180
  case 'prd':
180
181
  case 'prod':
181
182
  case 'production':
182
- result = 'production';
183
+ result = EnvironmentEnum.EnvironmentEnum.PRODUCTION;
183
184
  break;
184
185
  default:
185
186
  throw new Error(`env ${env} not supported.`);
@@ -486,6 +487,10 @@ const fetchRawValue = async options => {
486
487
  return null;
487
488
  };
488
489
 
490
+ Object.defineProperty(exports, "EnvironmentEnum", {
491
+ enumerable: true,
492
+ get: function () { return EnvironmentEnum.EnvironmentEnum; }
493
+ });
489
494
  exports.fetchAll = fetchAll;
490
495
  exports.fetchConfig = fetchConfig;
491
496
  exports.fetchLocales = fetchLocales;
@@ -1 +1 @@
1
- {"version":3,"file":"config-cli.cjs","sources":["../src/Config/Output.ts","../src/Config/Config.ts","../src/Config/GoogleAuth.ts","../src/Config/Locales.ts","../src/Config/Sitemap.ts","../src/config-cli.ts"],"sourcesContent":[null,null,null,null,null,null],"names":["outputToFile","content","options","filename","isFilenameLowercase","toLowerCase","filePath","folder","existsSync","mkdirSync","recursive","writeFile","encoding","flag","err","console","log","processConfig","rows","versionConfig","params","map","key","forEach","row","index","processRow","data","versionName","paramsName","undefined","paramsTypeHandler","isJsonString","str","JSON","parse","e","booleanText","includes","toUpperCase","exportConfig","config","exportAs","stringify","Error","envMap","env","result","contentMap","value","lodash","isNull","transformConfig","configKeyPrefix","envKey","Object","keys","newConfigKey","extensionFile","join","Array","isArray","hasOwnProperty","SCOPES","GOOGLE_APPLICATION_CREDENTIALS_PATH","path","process","cwd","authorizeServiceAccount","isExist","scopes","keyFile","GoogleAuth","fetchGoogleSheet","auth","spreadsheetId","spreadsheetTab","sheets","google","version","res","spreadsheets","values","get","range","majorDimension","processLocales","lang","langData","dIndex","exportLocales","generateRobots","hostname","transformSitemap","urls","includeRobots","stream","SitemapStream","lastmodDateOnly","xmlns","news","xhtml","image","video","custom","streamToPromise","Readable","from","pipe","then","toString","innerFetchLocales","length","output","innerFetchConfig","fetchLocales","error","fetchConfig","fetchAll","option","formatAs","fetchRawValue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;;;;;AAMG;AACH,MAAMA,YAAY,GAAGA,CAACC,OAAe,EAAEC,OAAsB,KAAU;AACrE,EAAA,IAAIC,Q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AI,EAAExE,OAAO,CAAC,CAAA;GAChC,CAAC,OAAOkH,KAAK,EAAE;AACdrG,IAAAA,OAAO,CAACqG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AACF,EAAC;AAED;;;;;AAKG;AACUE,MAAAA,QAAQ,GAAIpH,OAAwB,IAAU;EACzD,IAAI;AACF,IAAA,MAAMwE,IAAI,GAAGN,uBAAuB,EAAE,CAAA;AAEtClE,IAAAA,OAAO,CAACqB,OAAO,CAAEgG,MAAM,IAAI;AACzB,MAAA,IAAIA,MAAM,CAACC,QAAQ,KAAK,SAAS,EAAE;AACjCT,QAAAA,iBAAiB,CAACrC,IAAI,EAAE6C,MAAM,CAAC,CAAA;AACjC,OAAC,MAAM,IAAIA,MAAM,CAACC,QAAQ,KAAK,QAAQ,EAAE;AACvCN,QAAAA,gBAAgB,CAACxC,IAAI,EAAE6C,MAAM,CAAC,CAAA;AAChC,OAAA;AACF,KAAC,CAAC,CAAA;GACH,CAAC,OAAOH,KAAK,EAAE;AACdrG,IAAAA,OAAO,CAACqG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AACF,EAAC;AAED;;;;;AAKG;AACUK,MAAAA,aAAa,GAAG,MAC3BvH,OAAsB,IACiB;EACvC,IAAI;AACF,IAAA,MAAMwE,IAAI,GAAGN,uBAAuB,EAAE,CAAA;AAEtC,IAAA,OAAO,MAAMK,gBAAgB,CAC3BC,IAAI,EACJxE,OAAO,CAACyE,aAAa,EACrBzE,OAAO,CAAC0E,cAAc,CACvB,CAAA;GACF,CAAC,OAAOwC,KAAK,EAAE;AACdrG,IAAAA,OAAO,CAACqG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AAEA,EAAA,OAAO,IAAI,CAAA;AACb;;;;;;;;;"}
1
+ {"version":3,"file":"config-cli.cjs","sources":["../src/Config/Output.ts","../src/Config/Config.ts","../src/Config/GoogleAuth.ts","../src/Config/Locales.ts","../src/Config/Sitemap.ts","../src/config-cli.ts"],"sourcesContent":[null,null,null,null,null,null],"names":["outputToFile","content","options","filename","isFilenameLowercase","toLowerCase","filePath","folder","existsSync","mkdirSync","recursive","writeFile","encoding","flag","err","console","log","processConfig","rows","versionConfig","params","map","key","forEach","row","index","processRow","data","versionName","paramsName","undefined","paramsTypeHandler","isJsonString","str","JSON","parse","e","booleanText","includes","toUpperCase","exportConfig","config","exportAs","stringify","Error","envMap","env","result","EnvironmentEnum","DEV","STAGING","PRODUCTION","contentMap","value","lodash","isNull","transformConfig","configKeyPrefix","envKey","Object","keys","newConfigKey","extensionFile","join","Array","isArray","hasOwnProperty","SCOPES","GOOGLE_APPLICATION_CREDENTIALS_PATH","path","process","cwd","authorizeServiceAccount","isExist","scopes","keyFile","GoogleAuth","fetchGoogleSheet","auth","spreadsheetId","spreadsheetTab","sheets","google","version","res","spreadsheets","values","get","range","majorDimension","processLocales","lang","langData","dIndex","exportLocales","generateRobots","hostname","transformSitemap","urls","includeRobots","stream","SitemapStream","lastmodDateOnly","xmlns","news","xhtml","image","video","custom","streamToPromise","Readable","from","pipe","then","toString","innerFetchLocales","length","output","innerFetchConfig","fetchLocales","error","fetchConfig","fetchAll","option","formatAs","fetchRawValue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;;;;;AAMG;AACH,MAAMA,YAAY,GAAGA,CAACC,OAAe,EAAEC,OAAsB,KAAU;AACrE,EAAA,IAAIC,QAAQ,GAAGD,OAAO,CAACC,QAAQ,CAAA;EAE/B,IAAID,OAAO,CAACE,mBAAmB,EAAE;AAC/BD,IAAAA,QAAQ,GAAGA,QAAQ,CAACE,WAAW,EAAE,CAAA;AACnC,GAAA;EAEA,MAAMC,QAAQ,GAAG,CAAGJ,EAAAA,OAAO,CAACK,MAAM,CAAA,CAAA,EAAIJ,QAAQ,CAAE,CAAA,CAAA;AAEhD,EAAA,IAAI,CAACK,aAAU,CAACN,OAAO,CAACK,MAAM,CAAC,EAAE;AAC/BE,IAAAA,YAAS,CA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MAAA,IAAIA,MAAM,CAACC,QAAQ,KAAK,SAAS,EAAE;AACjCT,QAAAA,iBAAiB,CAACrC,IAAI,EAAE6C,MAAM,CAAC,CAAA;AACjC,OAAC,MAAM,IAAIA,MAAM,CAACC,QAAQ,KAAK,QAAQ,EAAE;AACvCN,QAAAA,gBAAgB,CAACxC,IAAI,EAAE6C,MAAM,CAAC,CAAA;AAChC,OAAA;AACF,KAAC,CAAC,CAAA;GACH,CAAC,OAAOH,KAAK,EAAE;AACdzG,IAAAA,OAAO,CAACyG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AACF,EAAC;AAED;;;;;AAKG;AACUK,MAAAA,aAAa,GAAG,MAC3B3H,OAAsB,IACiB;EACvC,IAAI;AACF,IAAA,MAAM4E,IAAI,GAAGN,uBAAuB,EAAE,CAAA;AAEtC,IAAA,OAAO,MAAMK,gBAAgB,CAC3BC,IAAI,EACJ5E,OAAO,CAAC6E,aAAa,EACrB7E,OAAO,CAAC8E,cAAc,CACvB,CAAA;GACF,CAAC,OAAOwC,KAAK,EAAE;AACdzG,IAAAA,OAAO,CAACyG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AAEA,EAAA,OAAO,IAAI,CAAA;AACb;;;;;;;;;;;;;"}
@@ -1,9 +1,11 @@
1
+ import { EnvironmentEnum } from './enums/EnvironmentEnum';
1
2
  import { ConfigOptions } from './interfaces/Config/ConfigOptions';
2
3
  export { transformConfig } from './Config/Config';
3
4
  export { transformSitemap } from './Config/Sitemap';
4
5
  export * from './interfaces/Config/ConfigOptions';
5
6
  export * from './interfaces/Config/OutputOptions';
6
7
  export type { ExportAs, FormatAs } from './types/Config/OptionType';
8
+ export { EnvironmentEnum };
7
9
  /**
8
10
  * Fetch locales
9
11
  *
@@ -10,8 +10,15 @@ var _exportNames = {
10
10
  fetchAll: true,
11
11
  fetchRawValue: true,
12
12
  transformConfig: true,
13
+ EnvironmentEnum: true,
13
14
  transformSitemap: true
14
15
  };
16
+ Object.defineProperty(exports, "EnvironmentEnum", {
17
+ enumerable: true,
18
+ get: function get() {
19
+ return _EnvironmentEnum.EnvironmentEnum;
20
+ }
21
+ });
15
22
  exports.fetchRawValue = exports.fetchLocales = exports.fetchConfig = exports.fetchAll = void 0;
16
23
  Object.defineProperty(exports, "transformConfig", {
17
24
  enumerable: true,
@@ -28,6 +35,7 @@ Object.defineProperty(exports, "transformSitemap", {
28
35
  var _Config = require("./Config/Config");
29
36
  var _GoogleAuth = require("./Config/GoogleAuth");
30
37
  var _Locales = require("./Config/Locales");
38
+ var _EnvironmentEnum = require("./enums/EnvironmentEnum");
31
39
  var _Sitemap = require("./Config/Sitemap");
32
40
  var _ConfigOptions = require("./interfaces/Config/ConfigOptions");
33
41
  Object.keys(_ConfigOptions).forEach(function (key) {
@@ -1 +1 @@
1
- {"version":3,"file":"config-cli.js","names":["_Config","require","_GoogleAuth","_Locales","_Sitemap","_ConfigOptions","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_OutputOptions","_regeneratorRuntime","e","t","r","n","o","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","_catch","delegateYield","asyncGeneratorStep","_asyncToGenerator","arguments","apply","_next","_throw","innerFetchLocales","_ref","_callee","auth","options","data","_callee$","_context","fetchGoogleSheet","spreadsheetId","spreadsheetTab","console","log","processLocales","exportLocales","output","_x","_x2","innerFetchConfig","_ref2","_callee2","_callee2$","_context2","processConfig","exportConfig","_x3","_x4","fetchLocales","authorizeServiceAccount","error","fetchConfig","fetchAll","option","formatAs","fetchRawValue","_ref3","_callee3","_callee3$","_context3","t0","_x5"],"sources":["../src/config-cli.ts"],"sourcesContent":["import { GoogleAuth } from 'google-auth-library';\nimport { JSONClient } from 'google-auth-library/build/src/auth/googleauth';\nimport { exportConfig, processConfig } from './Config/Config';\nimport { authorizeServiceAccount, fetchGoogleSheet } from './Config/GoogleAuth';\nimport { exportLocales, processLocales } from './Config/Locales';\nimport { ConfigOptions } from './interfaces/Config/ConfigOptions';\n\nexport { transformConfig } from './Config/Config';\nexport { transformSitemap } from './Config/Sitemap';\nexport * from './interfaces/Config/ConfigOptions';\nexport * from './interfaces/Config/OutputOptions';\nexport type { ExportAs, FormatAs } from './types/Config/OptionType';\n\n/**\n * Private function to fetch locales\n *\n * @param {GoogleAuth<JSONClient>} auth\n * @param {ConfigOption} options\n * @return {Promise<void>}\n */\nconst innerFetchLocales = async (\n auth: GoogleAuth<JSONClient>,\n options: ConfigOptions,\n): Promise<void> => {\n // console.log('auth', auth);\n\n const values = await fetchGoogleSheet(\n auth,\n options.spreadsheetId,\n options.spreadsheetTab,\n );\n\n if (!values || values.length === 0) {\n console.log('No data found.');\n return;\n }\n\n // console.log('values,', values);\n\n const data = processLocales(values);\n\n exportLocales(data, options.output);\n};\n\n/**\n * Private function to fetch config\n *\n * @param {GoogleAuth<JSONClient>} auth\n * @param {ConfigOption} options\n * @return {Promise<void>}\n */\nconst innerFetchConfig = async (\n auth: GoogleAuth<JSONClient>,\n options: ConfigOptions,\n): Promise<void> => {\n // console.log('auth', auth);\n\n const values = await fetchGoogleSheet(\n auth,\n options.spreadsheetId,\n options.spreadsheetTab,\n );\n\n if (!values || values.length === 0) {\n console.log('No data found.');\n return;\n }\n\n // console.log('values,', values);\n\n const data = processConfig(values);\n\n exportConfig(data, options.output);\n};\n\n/**\n * Fetch locales\n *\n * @param {ConfigOptions} options\n * @return {void}\n */\nexport const fetchLocales = (options: ConfigOptions): void => {\n try {\n const auth = authorizeServiceAccount();\n\n innerFetchLocales(auth, options);\n } catch (error) {\n console.error(error);\n }\n};\n\n/**\n * Fetch config\n *\n * @param {ConfigOptions} options\n * @return {void}\n */\nexport const fetchConfig = (options: ConfigOptions): void => {\n try {\n const auth = authorizeServiceAccount();\n\n innerFetchConfig(auth, options);\n } catch (error) {\n console.error(error);\n }\n};\n\n/**\n * Fetch all format from array options\n *\n * @param {ConfigOptions[]} options\n * @return {void}\n */\nexport const fetchAll = (options: ConfigOptions[]): void => {\n try {\n const auth = authorizeServiceAccount();\n\n options.forEach((option) => {\n if (option.formatAs === 'locales') {\n innerFetchLocales(auth, option);\n } else if (option.formatAs === 'config') {\n innerFetchConfig(auth, option);\n }\n });\n } catch (error) {\n console.error(error);\n }\n};\n\n/**\n * Fetch raw value\n *\n * @param {ConfigOptions} options\n * @return {Promise<any[][] | null | undefined>}\n */\nexport const fetchRawValue = async (\n options: ConfigOptions,\n): Promise<any[][] | null | undefined> => {\n try {\n const auth = authorizeServiceAccount();\n\n return await fetchGoogleSheet(\n auth,\n options.spreadsheetId,\n options.spreadsheetTab,\n );\n } catch (error) {\n console.error(error);\n }\n\n return null;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAIA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAF,cAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EA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","names":["_Config","require","_GoogleAuth","_Locales","_EnvironmentEnum","_Sitemap","_ConfigOptions","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_OutputOptions","_regeneratorRuntime","e","t","r","n","o","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","_catch","delegateYield","asyncGeneratorStep","_asyncToGenerator","arguments","apply","_next","_throw","innerFetchLocales","_ref","_callee","auth","options","data","_callee$","_context","fetchGoogleSheet","spreadsheetId","spreadsheetTab","console","log","processLocales","exportLocales","output","_x","_x2","innerFetchConfig","_ref2","_callee2","_callee2$","_context2","processConfig","exportConfig","_x3","_x4","fetchLocales","authorizeServiceAccount","error","fetchConfig","fetchAll","option","formatAs","fetchRawValue","_ref3","_callee3","_callee3$","_context3","t0","_x5"],"sources":["../src/config-cli.ts"],"sourcesContent":["import { GoogleAuth } from 'google-auth-library';\nimport { JSONClient } from 'google-auth-library/build/src/auth/googleauth';\nimport { exportConfig, processConfig } from './Config/Config';\nimport { authorizeServiceAccount, fetchGoogleSheet } from './Config/GoogleAuth';\nimport { exportLocales, processLocales } from './Config/Locales';\nimport { EnvironmentEnum } from './enums/EnvironmentEnum';\nimport { ConfigOptions } from './interfaces/Config/ConfigOptions';\n\nexport { transformConfig } from './Config/Config';\nexport { transformSitemap } from './Config/Sitemap';\nexport * from './interfaces/Config/ConfigOptions';\nexport * from './interfaces/Config/OutputOptions';\nexport type { ExportAs, FormatAs } from './types/Config/OptionType';\nexport { EnvironmentEnum };\n\n/**\n * Private function to fetch locales\n *\n * @param {GoogleAuth<JSONClient>} auth\n * @param {ConfigOption} options\n * @return {Promise<void>}\n */\nconst innerFetchLocales = async (\n auth: GoogleAuth<JSONClient>,\n options: ConfigOptions,\n): Promise<void> => {\n // console.log('auth', auth);\n\n const values = await fetchGoogleSheet(\n auth,\n options.spreadsheetId,\n options.spreadsheetTab,\n );\n\n if (!values || values.length === 0) {\n console.log('No data found.');\n return;\n }\n\n // console.log('values,', values);\n\n const data = processLocales(values);\n\n exportLocales(data, options.output);\n};\n\n/**\n * Private function to fetch config\n *\n * @param {GoogleAuth<JSONClient>} auth\n * @param {ConfigOption} options\n * @return {Promise<void>}\n */\nconst innerFetchConfig = async (\n auth: GoogleAuth<JSONClient>,\n options: ConfigOptions,\n): Promise<void> => {\n // console.log('auth', auth);\n\n const values = await fetchGoogleSheet(\n auth,\n options.spreadsheetId,\n options.spreadsheetTab,\n );\n\n if (!values || values.length === 0) {\n console.log('No data found.');\n return;\n }\n\n // console.log('values,', values);\n\n const data = processConfig(values);\n\n exportConfig(data, options.output);\n};\n\n/**\n * Fetch locales\n *\n * @param {ConfigOptions} options\n * @return {void}\n */\nexport const fetchLocales = (options: ConfigOptions): void => {\n try {\n const auth = authorizeServiceAccount();\n\n innerFetchLocales(auth, options);\n } catch (error) {\n console.error(error);\n }\n};\n\n/**\n * Fetch config\n *\n * @param {ConfigOptions} options\n * @return {void}\n */\nexport const fetchConfig = (options: ConfigOptions): void => {\n try {\n const auth = authorizeServiceAccount();\n\n innerFetchConfig(auth, options);\n } catch (error) {\n console.error(error);\n }\n};\n\n/**\n * Fetch all format from array options\n *\n * @param {ConfigOptions[]} options\n * @return {void}\n */\nexport const fetchAll = (options: ConfigOptions[]): void => {\n try {\n const auth = authorizeServiceAccount();\n\n options.forEach((option) => {\n if (option.formatAs === 'locales') {\n innerFetchLocales(auth, option);\n } else if (option.formatAs === 'config') {\n innerFetchConfig(auth, option);\n }\n });\n } catch (error) {\n console.error(error);\n }\n};\n\n/**\n * Fetch raw value\n *\n * @param {ConfigOptions} options\n * @return {Promise<any[][] | null | undefined>}\n */\nexport const fetchRawValue = async (\n options: ConfigOptions,\n): Promise<any[][] | null | undefined> => {\n try {\n const auth = authorizeServiceAccount();\n\n return await fetchGoogleSheet(\n auth,\n options.spreadsheetId,\n options.spreadsheetTab,\n );\n } catch (error) {\n console.error(error);\n }\n\n return null;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAIA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AAAAM,MAAA,CAAAC,IAAA,CAAAF,cAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,cAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAZ,cAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,cAAA,GAAAlB,OAAA;AAAAM,MAAA,CAAAC,IAAA,CAAAW,cAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CA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A,OAAAxG,mBAAA,GAAAkB,IAAA,UAAAwH,UAAAC,SAAA;MAAA,kBAAAA,SAAA,CAAAtD,IAAA,GAAAsD,SAAA,CAAAhF,IAAA;QAAA;UAAAgF,SAAA,CAAAtD,IAAA;UAGdmB,IAAI,GAAG,IAAAyB,mCAAuB,EAAC,CAAC;UAAAU,SAAA,CAAAhF,IAAA;UAAA,OAEzB,IAAAkD,4BAAgB,EAC3BL,IAAI,EACJC,OAAO,CAACK,aAAa,EACrBL,OAAO,CAACM,cACV,CAAC;QAAA;UAAA,OAAA4B,SAAA,CAAAnF,MAAA,WAAAmF,SAAA,CAAAtF,IAAA;QAAA;UAAAsF,SAAA,CAAAtD,IAAA;UAAAsD,SAAA,CAAAC,EAAA,GAAAD,SAAA;UAED3B,OAAO,CAACkB,KAAK,CAAAS,SAAA,CAAAC,EAAM,CAAC;QAAC;UAAA,OAAAD,SAAA,CAAAnF,MAAA,WAGhB,IAAI;QAAA;QAAA;UAAA,OAAAmF,SAAA,CAAAnD,IAAA;MAAA;IAAA,GAAAiD,QAAA;EAAA,CACZ;EAAA,gBAhBYF,aAAaA,CAAAM,GAAA;IAAA,OAAAL,KAAA,CAAAtC,KAAA,OAAAD,SAAA;EAAA;AAAA,GAgBzB","ignoreList":[]}
@@ -1,4 +1,5 @@
1
1
  import * as lodash from 'lodash';
2
+ import { E as EnvironmentEnum } from './EnvironmentEnum-UcQ6Il1O.js';
2
3
  import { existsSync, mkdirSync, writeFile } from 'fs';
3
4
  import { GoogleAuth } from 'google-auth-library';
4
5
  import { google } from 'googleapis';
@@ -146,17 +147,17 @@ const envMap = env => {
146
147
  case 'dev':
147
148
  case 'develop':
148
149
  case 'development':
149
- result = 'dev';
150
+ result = EnvironmentEnum.DEV;
150
151
  break;
151
152
  case 'stg':
152
153
  case 'stag':
153
154
  case 'staging':
154
- result = 'staging';
155
+ result = EnvironmentEnum.STAGING;
155
156
  break;
156
157
  case 'prd':
157
158
  case 'prod':
158
159
  case 'production':
159
- result = 'production';
160
+ result = EnvironmentEnum.PRODUCTION;
160
161
  break;
161
162
  default:
162
163
  throw new Error(`env ${env} not supported.`);
@@ -463,5 +464,5 @@ const fetchRawValue = async options => {
463
464
  return null;
464
465
  };
465
466
 
466
- export { fetchAll, fetchConfig, fetchLocales, fetchRawValue, transformConfig, transformSitemap };
467
+ export { EnvironmentEnum, fetchAll, fetchConfig, fetchLocales, fetchRawValue, transformConfig, transformSitemap };
467
468
  //# sourceMappingURL=config-cli.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-cli.mjs","sources":["../src/Config/Output.ts","../src/Config/Config.ts","../src/Config/GoogleAuth.ts","../src/Config/Locales.ts","../src/Config/Sitemap.ts","../src/config-cli.ts"],"sourcesContent":[null,null,null,null,null,null],"names":["outputToFile","content","options","filename","isFilenameLowercase","toLowerCase","filePath","folder","existsSync","mkdirSync","recursive","writeFile","encoding","flag","err","console","log","processConfig","rows","versionConfig","params","map","key","forEach","row","index","processRow","data","versionName","paramsName","undefined","paramsTypeHandler","isJsonString","str","JSON","parse","e","booleanText","includes","toUpperCase","exportConfig","config","exportAs","stringify","Error","envMap","env","result","contentMap","value","lodash","isNull","transformConfig","configKeyPrefix","envKey","Object","keys","newConfigKey","extensionFile","join","Array","isArray","hasOwnProperty","SCOPES","GOOGLE_APPLICATION_CREDENTIALS_PATH","path","process","cwd","authorizeServiceAccount","isExist","scopes","keyFile","GoogleAuth","fetchGoogleSheet","auth","spreadsheetId","spreadsheetTab","sheets","google","version","res","spreadsheets","values","get","range","majorDimension","processLocales","lang","langData","dIndex","exportLocales","generateRobots","hostname","transformSitemap","urls","includeRobots","stream","SitemapStream","lastmodDateOnly","xmlns","news","xhtml","image","video","custom","streamToPromise","Readable","from","pipe","then","toString","innerFetchLocales","length","output","innerFetchConfig","fetchLocales","error","fetchConfig","fetchAll","option","formatAs","fetchRawValue"],"mappings":";;;;;;;;;AAGA;;;;;;AAMG;AACH,MAAMA,YAAY,GAAGA,CAACC,OAAe,EAAEC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C,IAAAA,gBAAgB,CAACxC,IAAI,EAAExE,OAAO,CAAC,CAAA;GAChC,CAAC,OAAOkH,KAAK,EAAE;AACdrG,IAAAA,OAAO,CAACqG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AACF,EAAC;AAED;;;;;AAKG;AACUE,MAAAA,QAAQ,GAAIpH,OAAwB,IAAU;EACzD,IAAI;AACF,IAAA,MAAMwE,IAAI,GAAGN,uBAAuB,EAAE,CAAA;AAEtClE,IAAAA,OAAO,CAACqB,OAAO,CAAEgG,MAAM,IAAI;AACzB,MAAA,IAAIA,MAAM,CAACC,QAAQ,KAAK,SAAS,EAAE;AACjCT,QAAAA,iBAAiB,CAACrC,IAAI,EAAE6C,MAAM,CAAC,CAAA;AACjC,OAAC,MAAM,IAAIA,MAAM,CAACC,QAAQ,KAAK,QAAQ,EAAE;AACvCN,QAAAA,gBAAgB,CAACxC,IAAI,EAAE6C,MAAM,CAAC,CAAA;AAChC,OAAA;AACF,KAAC,CAAC,CAAA;GACH,CAAC,OAAOH,KAAK,EAAE;AACdrG,IAAAA,OAAO,CAACqG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AACF,EAAC;AAED;;;;;AAKG;AACUK,MAAAA,aAAa,GAAG,MAC3BvH,OAAsB,IACiB;EACvC,IAAI;AACF,IAAA,MAAMwE,IAAI,GAAGN,uBAAuB,EAAE,CAAA;AAEtC,IAAA,OAAO,MAAMK,gBAAgB,CAC3BC,IAAI,EACJxE,OAAO,CAACyE,aAAa,EACrBzE,OAAO,CAAC0E,cAAc,CACvB,CAAA;GACF,CAAC,OAAOwC,KAAK,EAAE;AACdrG,IAAAA,OAAO,CAACqG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AAEA,EAAA,OAAO,IAAI,CAAA;AACb;;;;"}
1
+ {"version":3,"file":"config-cli.mjs","sources":["../src/Config/Output.ts","../src/Config/Config.ts","../src/Config/GoogleAuth.ts","../src/Config/Locales.ts","../src/Config/Sitemap.ts","../src/config-cli.ts"],"sourcesContent":[null,null,null,null,null,null],"names":["outputToFile","content","options","filename","isFilenameLowercase","toLowerCase","filePath","folder","existsSync","mkdirSync","recursive","writeFile","encoding","flag","err","console","log","processConfig","rows","versionConfig","params","map","key","forEach","row","index","processRow","data","versionName","paramsName","undefined","paramsTypeHandler","isJsonString","str","JSON","parse","e","booleanText","includes","toUpperCase","exportConfig","config","exportAs","stringify","Error","envMap","env","result","EnvironmentEnum","DEV","STAGING","PRODUCTION","contentMap","value","lodash","isNull","transformConfig","configKeyPrefix","envKey","Object","keys","newConfigKey","extensionFile","join","Array","isArray","hasOwnProperty","SCOPES","GOOGLE_APPLICATION_CREDENTIALS_PATH","path","process","cwd","authorizeServiceAccount","isExist","scopes","keyFile","GoogleAuth","fetchGoogleSheet","auth","spreadsheetId","spreadsheetTab","sheets","google","version","res","spreadsheets","values","get","range","majorDimension","processLocales","lang","langData","dIndex","exportLocales","generateRobots","hostname","transformSitemap","urls","includeRobots","stream","SitemapStream","lastmodDateOnly","xmlns","news","xhtml","image","video","custom","streamToPromise","Readable","from","pipe","then","toString","innerFetchLocales","length","output","innerFetchConfig","fetchLocales","error","fetchConfig","fetchAll","option","formatAs","fetchRawValue"],"mappings":";;;;;;;;;;AAGA;;;;;;AAMG;AACH,MAAMA,YAAY,GAAGA,CAACC,OAAe,EAAEC,OAAsB,KAAU;AACrE,EAAA,IAAIC,QAAQ,GAAGD,OAAO,CAACC,QAAQ,CAAA;EAE/B,IAAID,OAAO,CAACE,mBAAmB,EAAE;AAC/BD,IAAAA,QAAQ,GAAGA,QAAQ,CAACE,WAAW,EAAE,CAAA;AACnC,GAAA;EAEA,MAAMC,QAAQ,GAAG,CAAGJ,EAAAA,OAAO,CAACK,MAAM,CAAA,CAAA,EAAIJ,QAAQ,CAAE,CAAA,CAAA;AAEhD,EAAA,IAAI,CAACK,UAAU,CAACN,OAAO,CAACK,MAAM,CAAC,EAAE;AAC/BE,IAAAA,SAAS,CAACP,OA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M,CAACC,QAAQ,KAAK,SAAS,EAAE;AACjCT,QAAAA,iBAAiB,CAACrC,IAAI,EAAE6C,MAAM,CAAC,CAAA;AACjC,OAAC,MAAM,IAAIA,MAAM,CAACC,QAAQ,KAAK,QAAQ,EAAE;AACvCN,QAAAA,gBAAgB,CAACxC,IAAI,EAAE6C,MAAM,CAAC,CAAA;AAChC,OAAA;AACF,KAAC,CAAC,CAAA;GACH,CAAC,OAAOH,KAAK,EAAE;AACdzG,IAAAA,OAAO,CAACyG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AACF,EAAC;AAED;;;;;AAKG;AACUK,MAAAA,aAAa,GAAG,MAC3B3H,OAAsB,IACiB;EACvC,IAAI;AACF,IAAA,MAAM4E,IAAI,GAAGN,uBAAuB,EAAE,CAAA;AAEtC,IAAA,OAAO,MAAMK,gBAAgB,CAC3BC,IAAI,EACJ5E,OAAO,CAAC6E,aAAa,EACrB7E,OAAO,CAAC8E,cAAc,CACvB,CAAA;GACF,CAAC,OAAOwC,KAAK,EAAE;AACdzG,IAAAA,OAAO,CAACyG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AAEA,EAAA,OAAO,IAAI,CAAA;AACb;;;;"}
@@ -0,0 +1,5 @@
1
+ export declare enum EnvironmentEnum {
2
+ DEV = "dev",
3
+ STAGING = "staging",
4
+ PRODUCTION = "production"
5
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EnvironmentEnum = void 0;
7
+ var EnvironmentEnum = exports.EnvironmentEnum = /*#__PURE__*/function (EnvironmentEnum) {
8
+ EnvironmentEnum["DEV"] = "dev";
9
+ EnvironmentEnum["STAGING"] = "staging";
10
+ EnvironmentEnum["PRODUCTION"] = "production";
11
+ return EnvironmentEnum;
12
+ }({});
13
+ //# sourceMappingURL=EnvironmentEnum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentEnum.js","names":["EnvironmentEnum","exports"],"sources":["../../src/enums/EnvironmentEnum.ts"],"sourcesContent":["export enum EnvironmentEnum {\n DEV = 'dev',\n STAGING = 'staging',\n PRODUCTION = 'production',\n}\n"],"mappings":";;;;;;IAAYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA","ignoreList":[]}
package/dist/i18n.cjs ADDED
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var EnvironmentEnum = require('./EnvironmentEnum-BjXsfSRZ.js');
4
+ var I18n = require('./I18n-CB7SyXYJ.js');
5
+ require('cross-fetch');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "EnvironmentEnum", {
10
+ enumerable: true,
11
+ get: function () { return EnvironmentEnum.EnvironmentEnum; }
12
+ });
13
+ exports.getV = I18n.getV;
14
+ exports.initI18n = I18n.initI18n;
15
+ //# sourceMappingURL=i18n.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
package/dist/i18n.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { EnvironmentEnum } from './enums/EnvironmentEnum';
2
+ export * from './I18n/I18n';
3
+ export { EnvironmentEnum };
package/dist/i18n.js ADDED
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ EnvironmentEnum: true
8
+ };
9
+ Object.defineProperty(exports, "EnvironmentEnum", {
10
+ enumerable: true,
11
+ get: function get() {
12
+ return _EnvironmentEnum.EnvironmentEnum;
13
+ }
14
+ });
15
+ var _EnvironmentEnum = require("./enums/EnvironmentEnum");
16
+ var _I18n = require("./I18n/I18n");
17
+ Object.keys(_I18n).forEach(function (key) {
18
+ if (key === "default" || key === "__esModule") return;
19
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
20
+ if (key in exports && exports[key] === _I18n[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _I18n[key];
25
+ }
26
+ });
27
+ });
28
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.js","names":["_EnvironmentEnum","require","_I18n","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"sources":["../src/i18n.ts"],"sourcesContent":["import { EnvironmentEnum } from './enums/EnvironmentEnum';\n\nexport * from './I18n/I18n';\nexport { EnvironmentEnum };\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,KAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,KAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAZ,KAAA,CAAAI,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
package/dist/i18n.mjs ADDED
@@ -0,0 +1,4 @@
1
+ export { E as EnvironmentEnum } from './EnvironmentEnum-UcQ6Il1O.js';
2
+ export { g as getV, i as initI18n } from './I18n-yXLN_hDO.js';
3
+ import 'cross-fetch';
4
+ //# sourceMappingURL=i18n.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -2,6 +2,7 @@
2
2
 
3
3
  var configCli = require('./config-cli.cjs');
4
4
  var sentryCli = require('./sentry-cli.cjs');
5
+ var EnvironmentEnum = require('./EnvironmentEnum-BjXsfSRZ.js');
5
6
  require('lodash');
6
7
  require('fs');
7
8
  require('google-auth-library');
@@ -21,4 +22,8 @@ exports.fetchRawValue = configCli.fetchRawValue;
21
22
  exports.transformConfig = configCli.transformConfig;
22
23
  exports.transformSitemap = configCli.transformSitemap;
23
24
  exports.releaseSentrySourceMap = sentryCli.releaseSentrySourceMap;
25
+ Object.defineProperty(exports, "EnvironmentEnum", {
26
+ enumerable: true,
27
+ get: function () { return EnvironmentEnum.EnvironmentEnum; }
28
+ });
24
29
  //# sourceMappingURL=index-cli.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-cli.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index-cli.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,6 @@
1
1
  export { fetchAll, fetchConfig, fetchLocales, fetchRawValue, transformConfig, transformSitemap } from './config-cli.mjs';
2
2
  export { releaseSentrySourceMap } from './sentry-cli.mjs';
3
+ export { E as EnvironmentEnum } from './EnvironmentEnum-UcQ6Il1O.js';
3
4
  import 'lodash';
4
5
  import 'fs';
5
6
  import 'google-auth-library';
@@ -1 +1 @@
1
- {"version":3,"file":"index-cli.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
1
+ {"version":3,"file":"index-cli.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
package/dist/index-rn.cjs CHANGED
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var format = require('./format.cjs');
4
+ var EnvironmentEnum = require('./EnvironmentEnum-BjXsfSRZ.js');
5
+ var I18n = require('./I18n-CB7SyXYJ.js');
4
6
  var ReactNative = require('./ReactNative-CqUrY2ZJ.js');
5
7
  require('@formatjs/intl-numberformat');
8
+ require('cross-fetch');
6
9
  require('@sentry/react-native');
7
10
  require('./Utils-Dilye04y.js');
8
11
 
@@ -16,6 +19,12 @@ exports.formatAccountNumber = format.formatAccountNumber;
16
19
  exports.formatNumber = format.formatNumber;
17
20
  exports.getCurrencySymbol = format.getCurrencySymbol;
18
21
  exports.parseFormatNumber = format.parseFormatNumber;
22
+ Object.defineProperty(exports, "EnvironmentEnum", {
23
+ enumerable: true,
24
+ get: function () { return EnvironmentEnum.EnvironmentEnum; }
25
+ });
26
+ exports.getV = I18n.getV;
27
+ exports.initI18n = I18n.initI18n;
19
28
  exports.initSentry = ReactNative.initSentry;
20
29
  exports.recordAdditionalSentryHttp = ReactNative.recordAdditionalSentryHttp;
21
30
  //# sourceMappingURL=index-rn.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-rn.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index-rn.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,3 @@
1
1
  export * from './format';
2
+ export * from './i18n';
2
3
  export * from './sentry-rn';
package/dist/index-rn.js CHANGED
@@ -14,6 +14,17 @@ Object.keys(_format).forEach(function (key) {
14
14
  }
15
15
  });
16
16
  });
17
+ var _i18n = require("./i18n");
18
+ Object.keys(_i18n).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _i18n[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _i18n[key];
25
+ }
26
+ });
27
+ });
17
28
  var _sentryRn = require("./sentry-rn");
18
29
  Object.keys(_sentryRn).forEach(function (key) {
19
30
  if (key === "default" || key === "__esModule") return;
@@ -1 +1 @@
1
- {"version":3,"file":"index-rn.js","names":["_format","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_sentryRn"],"sources":["../src/index-rn.ts"],"sourcesContent":["export * from './format';\nexport * from './sentry-rn';\n"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,SAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,SAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,SAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,SAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"index-rn.js","names":["_format","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_i18n","_sentryRn"],"sources":["../src/index-rn.ts"],"sourcesContent":["export * from './format';\nexport * from './i18n';\nexport * from './sentry-rn';\n"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,KAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,KAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,KAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,KAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,SAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,SAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,SAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,SAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
package/dist/index-rn.mjs CHANGED
@@ -1,6 +1,9 @@
1
1
  export { CurrencySymbolEnum, formatAccountNumber, formatNumber, getCurrencySymbol, parseFormatNumber } from './format.mjs';
2
+ export { E as EnvironmentEnum } from './EnvironmentEnum-UcQ6Il1O.js';
3
+ export { g as getV, i as initI18n } from './I18n-yXLN_hDO.js';
2
4
  export { i as initSentry, r as recordAdditionalSentryHttp } from './ReactNative-mNnws-b5.js';
3
5
  import '@formatjs/intl-numberformat';
6
+ import 'cross-fetch';
4
7
  import '@sentry/react-native';
5
8
  import './Utils-Cq948gfa.js';
6
9
  //# sourceMappingURL=index-rn.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-rn.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index-rn.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
package/dist/index.cjs CHANGED
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var format = require('./format.cjs');
4
+ var EnvironmentEnum = require('./EnvironmentEnum-BjXsfSRZ.js');
5
+ var I18n = require('./I18n-CB7SyXYJ.js');
4
6
  var React = require('./React-qUl0CBmE.js');
5
7
  require('@formatjs/intl-numberformat');
8
+ require('cross-fetch');
6
9
  require('@sentry/react');
7
10
  require('./Utils-Dilye04y.js');
8
11
 
@@ -16,6 +19,12 @@ exports.formatAccountNumber = format.formatAccountNumber;
16
19
  exports.formatNumber = format.formatNumber;
17
20
  exports.getCurrencySymbol = format.getCurrencySymbol;
18
21
  exports.parseFormatNumber = format.parseFormatNumber;
22
+ Object.defineProperty(exports, "EnvironmentEnum", {
23
+ enumerable: true,
24
+ get: function () { return EnvironmentEnum.EnvironmentEnum; }
25
+ });
26
+ exports.getV = I18n.getV;
27
+ exports.initI18n = I18n.initI18n;
19
28
  exports.initSentry = React.initSentry;
20
29
  exports.recordAdditionalSentryHttp = React.recordAdditionalSentryHttp;
21
30
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}