@andre1502/react-utilities 1.0.5 → 1.0.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/README.md +35 -51
- package/dist/Config/Config.d.ts +12 -1
- package/dist/EnvironmentEnum-CXTWJxNo.js +10 -0
- package/dist/EnvironmentEnum-CXTWJxNo.js.map +1 -0
- package/dist/Utils-CJ7ureSW.js +14 -0
- package/dist/Utils-CJ7ureSW.js.map +1 -0
- package/dist/browser-ponyfill-C-HVh7ck.js +321 -0
- package/dist/browser-ponyfill-C-HVh7ck.js.map +1 -0
- package/dist/chunk-vKJrgz-R.js +16 -0
- package/dist/config-cli-BIF4xuoO.js +1491 -0
- package/dist/config-cli-BIF4xuoO.js.map +1 -0
- package/dist/config-cli.d.ts +1 -1
- package/dist/config-cli.js +3 -222
- package/dist/enums/CurrencySymbolEnum.d.ts +6 -5
- package/dist/enums/DeviceEnum.d.ts +5 -4
- package/dist/enums/EnvironmentEnum.d.ts +6 -5
- package/dist/format-BgweN3o5.js +65549 -0
- package/dist/format-BgweN3o5.js.map +1 -0
- package/dist/format.d.ts +26 -26
- package/dist/format.js +2 -55
- package/dist/hooks-oAipbPQ2.js +78 -0
- package/dist/hooks-oAipbPQ2.js.map +1 -0
- package/dist/hooks.js +2 -86
- package/dist/i18n-D1jKJPI0.js +1941 -0
- package/dist/i18n-D1jKJPI0.js.map +1 -0
- package/dist/i18n.js +4 -28
- package/dist/index-cli.d.ts +0 -1
- package/dist/index-cli.js +3 -28
- package/dist/index-rn.js +6 -39
- package/dist/index.js +7 -61
- package/dist/interfaces/Config/EntryOptions.d.ts +4 -0
- package/dist/sentry-rn-DZwIel7y.js +743 -0
- package/dist/sentry-rn-DZwIel7y.js.map +1 -0
- package/dist/sentry-rn.js +2 -28
- package/dist/sentry.js +39 -26
- package/dist/sentry.js.map +1 -1
- package/dist/utils.js +45 -37
- package/dist/utils.js.map +1 -1
- package/package.json +56 -86
- package/src/Config/Config.ts +48 -1
- package/src/Config/GoogleAuth.ts +1 -1
- package/src/Sentry/React.ts +2 -4
- package/src/Sentry/ReactNative.ts +2 -4
- package/src/config-cli.ts +1 -1
- package/src/enums/CurrencySymbolEnum.ts +8 -5
- package/src/enums/DeviceEnum.ts +6 -4
- package/src/enums/EnvironmentEnum.ts +8 -5
- package/src/format.ts +32 -32
- package/src/index-cli.ts +0 -1
- package/src/interfaces/Config/EntryOptions.ts +4 -0
- package/dist/Config/Config.js +0 -216
- package/dist/Config/Config.js.map +0 -1
- package/dist/Config/GoogleAuth.js +0 -68
- package/dist/Config/GoogleAuth.js.map +0 -1
- package/dist/Config/Locales.js +0 -62
- package/dist/Config/Locales.js.map +0 -1
- package/dist/Config/Output.js +0 -36
- package/dist/Config/Output.js.map +0 -1
- package/dist/Config/Sitemap.js +0 -72
- package/dist/Config/Sitemap.js.map +0 -1
- package/dist/EnvironmentEnum-BjXsfSRZ.js +0 -9
- package/dist/EnvironmentEnum-BjXsfSRZ.js.map +0 -1
- package/dist/EnvironmentEnum-UcQ6Il1O.js +0 -9
- package/dist/EnvironmentEnum-UcQ6Il1O.js.map +0 -1
- package/dist/Format/NumberFormat.js +0 -77
- package/dist/Format/NumberFormat.js.map +0 -1
- package/dist/Format/NumberParser.js +0 -51
- package/dist/Format/NumberParser.js.map +0 -1
- package/dist/Hooks/useDevice.js +0 -47
- package/dist/Hooks/useDevice.js.map +0 -1
- package/dist/Hooks/useSound.js +0 -47
- package/dist/Hooks/useSound.js.map +0 -1
- package/dist/Hooks/useWebSocket.js +0 -120
- package/dist/Hooks/useWebSocket.js.map +0 -1
- package/dist/I18n/I18n.js +0 -134
- package/dist/I18n/I18n.js.map +0 -1
- package/dist/NumberFormat-CvvBWhHc.js +0 -89
- package/dist/NumberFormat-CvvBWhHc.js.map +0 -1
- package/dist/NumberFormat-glmpbk7E.js +0 -94
- package/dist/NumberFormat-glmpbk7E.js.map +0 -1
- package/dist/React-BaJ1KfGF.js +0 -87
- package/dist/React-BaJ1KfGF.js.map +0 -1
- package/dist/React-qUl0CBmE.js +0 -109
- package/dist/React-qUl0CBmE.js.map +0 -1
- package/dist/ReactNative-B4gt8nBr.js +0 -1790
- package/dist/ReactNative-B4gt8nBr.js.map +0 -1
- package/dist/ReactNative-CDMfQFfN.js +0 -1812
- package/dist/ReactNative-CDMfQFfN.js.map +0 -1
- package/dist/Sentry/Build.d.ts +0 -9
- package/dist/Sentry/Build.js +0 -87
- package/dist/Sentry/Build.js.map +0 -1
- package/dist/Sentry/React.js +0 -103
- package/dist/Sentry/React.js.map +0 -1
- package/dist/Sentry/ReactNative.js +0 -113
- package/dist/Sentry/ReactNative.js.map +0 -1
- package/dist/Sentry/Utils.js +0 -24
- package/dist/Sentry/Utils.js.map +0 -1
- package/dist/Utils/Array.js +0 -26
- package/dist/Utils/Array.js.map +0 -1
- package/dist/Utils/Files.js +0 -51
- package/dist/Utils/Files.js.map +0 -1
- package/dist/Utils/Pagination.js +0 -32
- package/dist/Utils/Pagination.js.map +0 -1
- package/dist/Utils/Utils.js +0 -101
- package/dist/Utils/Utils.js.map +0 -1
- package/dist/Utils-BC1fDy39.js +0 -74
- package/dist/Utils-BC1fDy39.js.map +0 -1
- package/dist/Utils-Cq948gfa.js +0 -20
- package/dist/Utils-Cq948gfa.js.map +0 -1
- package/dist/Utils-D7KRF8VU.js +0 -64
- package/dist/Utils-D7KRF8VU.js.map +0 -1
- package/dist/Utils-Dilye04y.js +0 -22
- package/dist/Utils-Dilye04y.js.map +0 -1
- package/dist/config-cli.cjs +0 -500
- package/dist/config-cli.cjs.map +0 -1
- package/dist/config-cli.js.map +0 -1
- package/dist/config-cli.mjs +0 -469
- package/dist/config-cli.mjs.map +0 -1
- package/dist/enums/CurrencySymbolEnum.js +0 -15
- package/dist/enums/CurrencySymbolEnum.js.map +0 -1
- package/dist/enums/DeviceEnum.js +0 -12
- package/dist/enums/DeviceEnum.js.map +0 -1
- package/dist/enums/EnvironmentEnum.js +0 -13
- package/dist/enums/EnvironmentEnum.js.map +0 -1
- package/dist/format.cjs +0 -43
- package/dist/format.cjs.map +0 -1
- package/dist/format.js.map +0 -1
- package/dist/format.mjs +0 -30
- package/dist/format.mjs.map +0 -1
- package/dist/hooks.cjs +0 -13
- package/dist/hooks.cjs.map +0 -1
- package/dist/hooks.js.map +0 -1
- package/dist/hooks.mjs +0 -4
- package/dist/hooks.mjs.map +0 -1
- package/dist/i18n.cjs +0 -3039
- package/dist/i18n.cjs.map +0 -1
- package/dist/i18n.js.map +0 -1
- package/dist/i18n.mjs +0 -3032
- package/dist/i18n.mjs.map +0 -1
- package/dist/index-cli.cjs +0 -30
- package/dist/index-cli.cjs.map +0 -1
- package/dist/index-cli.js.map +0 -1
- package/dist/index-cli.mjs +0 -14
- package/dist/index-cli.mjs.map +0 -1
- package/dist/index-rn.cjs +0 -57
- package/dist/index-rn.cjs.map +0 -1
- package/dist/index-rn.js.map +0 -1
- package/dist/index-rn.mjs +0 -36
- package/dist/index-rn.mjs.map +0 -1
- package/dist/index.cjs +0 -79
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -40
- package/dist/index.mjs.map +0 -1
- package/dist/interfaces/Config/ConfigOptions.js +0 -6
- package/dist/interfaces/Config/ConfigOptions.js.map +0 -1
- package/dist/interfaces/Config/OutputMap.js +0 -6
- package/dist/interfaces/Config/OutputMap.js.map +0 -1
- package/dist/interfaces/Config/OutputOptions.js +0 -6
- package/dist/interfaces/Config/OutputOptions.js.map +0 -1
- package/dist/interfaces/Config/SitemapMap.js +0 -6
- package/dist/interfaces/Config/SitemapMap.js.map +0 -1
- package/dist/interfaces/Config/StringMap.js +0 -6
- package/dist/interfaces/Config/StringMap.js.map +0 -1
- package/dist/interfaces/Format/FormatOptions.js +0 -6
- package/dist/interfaces/Format/FormatOptions.js.map +0 -1
- package/dist/interfaces/Sentry/InitOptions.js +0 -6
- package/dist/interfaces/Sentry/InitOptions.js.map +0 -1
- package/dist/interfaces/Sentry/InitOptionsRN.js +0 -6
- package/dist/interfaces/Sentry/InitOptionsRN.js.map +0 -1
- package/dist/interfaces/Sentry/SourceMapOptions.d.ts +0 -7
- package/dist/interfaces/Sentry/SourceMapOptions.js +0 -6
- package/dist/interfaces/Sentry/SourceMapOptions.js.map +0 -1
- package/dist/sentry-cli.cjs +0 -119
- package/dist/sentry-cli.cjs.map +0 -1
- package/dist/sentry-cli.d.ts +0 -9
- package/dist/sentry-cli.js +0 -49
- package/dist/sentry-cli.js.map +0 -1
- package/dist/sentry-cli.mjs +0 -98
- package/dist/sentry-cli.mjs.map +0 -1
- package/dist/sentry-rn.cjs +0 -11
- package/dist/sentry-rn.cjs.map +0 -1
- package/dist/sentry-rn.js.map +0 -1
- package/dist/sentry-rn.mjs +0 -4
- package/dist/sentry-rn.mjs.map +0 -1
- package/dist/sentry.cjs +0 -11
- package/dist/sentry.cjs.map +0 -1
- package/dist/sentry.mjs +0 -4
- package/dist/sentry.mjs.map +0 -1
- package/dist/types/Config/OptionType.js +0 -6
- package/dist/types/Config/OptionType.js.map +0 -1
- package/dist/types/Format/OptionType.js +0 -6
- package/dist/types/Format/OptionType.js.map +0 -1
- package/dist/types/Sentry/OptionType.js +0 -6
- package/dist/types/Sentry/OptionType.js.map +0 -1
- package/dist/useWebSocket-B_B6kWXM.js +0 -167
- package/dist/useWebSocket-B_B6kWXM.js.map +0 -1
- package/dist/useWebSocket-YQWaiBz9.js +0 -172
- package/dist/useWebSocket-YQWaiBz9.js.map +0 -1
- package/dist/utils.cjs +0 -59
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.mjs +0 -43
- package/dist/utils.mjs.map +0 -1
- package/src/Sentry/Build.ts +0 -67
- package/src/interfaces/Sentry/SourceMapOptions.ts +0 -7
- package/src/sentry-cli.ts +0 -16
package/dist/index-cli.cjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var configCli = require('./config-cli.cjs');
|
|
4
|
-
var sentryCli = require('./sentry-cli.cjs');
|
|
5
|
-
var EnvironmentEnum = require('./EnvironmentEnum-BjXsfSRZ.js');
|
|
6
|
-
require('lodash-es');
|
|
7
|
-
require('./Utils-BC1fDy39.js');
|
|
8
|
-
require('fs');
|
|
9
|
-
require('google-auth-library');
|
|
10
|
-
require('googleapis');
|
|
11
|
-
require('path');
|
|
12
|
-
require('process');
|
|
13
|
-
require('sitemap');
|
|
14
|
-
require('stream');
|
|
15
|
-
require('@sentry/cli');
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
exports.fetchAll = configCli.fetchAll;
|
|
20
|
-
exports.fetchConfig = configCli.fetchConfig;
|
|
21
|
-
exports.fetchLocales = configCli.fetchLocales;
|
|
22
|
-
exports.fetchRawValue = configCli.fetchRawValue;
|
|
23
|
-
exports.transformConfig = configCli.transformConfig;
|
|
24
|
-
exports.transformSitemap = configCli.transformSitemap;
|
|
25
|
-
exports.releaseSentrySourceMap = sentryCli.releaseSentrySourceMap;
|
|
26
|
-
Object.defineProperty(exports, "EnvironmentEnum", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function () { return EnvironmentEnum.EnvironmentEnum; }
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=index-cli.cjs.map
|
package/dist/index-cli.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-cli.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index-cli.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-cli.js","names":["_configCli","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_sentryCli"],"sources":["../src/index-cli.ts"],"sourcesContent":["export * from './config-cli';\nexport * from './sentry-cli';\n"],"mappings":";;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
package/dist/index-cli.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { fetchAll, fetchConfig, fetchLocales, fetchRawValue, transformConfig, transformSitemap } from './config-cli.mjs';
|
|
2
|
-
export { releaseSentrySourceMap } from './sentry-cli.mjs';
|
|
3
|
-
export { E as EnvironmentEnum } from './EnvironmentEnum-UcQ6Il1O.js';
|
|
4
|
-
import 'lodash-es';
|
|
5
|
-
import './Utils-D7KRF8VU.js';
|
|
6
|
-
import 'fs';
|
|
7
|
-
import 'google-auth-library';
|
|
8
|
-
import 'googleapis';
|
|
9
|
-
import 'path';
|
|
10
|
-
import 'process';
|
|
11
|
-
import 'sitemap';
|
|
12
|
-
import 'stream';
|
|
13
|
-
import '@sentry/cli';
|
|
14
|
-
//# sourceMappingURL=index-cli.mjs.map
|
package/dist/index-cli.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-cli.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/index-rn.cjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var NumberFormat = require('./NumberFormat-glmpbk7E.js');
|
|
4
|
-
require('@formatjs/intl-getcanonicallocales/polyfill');
|
|
5
|
-
require('@formatjs/intl-locale/polyfill');
|
|
6
|
-
require('@formatjs/intl-pluralrules/locale-data/en');
|
|
7
|
-
require('@formatjs/intl-pluralrules/locale-data/vi');
|
|
8
|
-
require('@formatjs/intl-pluralrules/locale-data/zh');
|
|
9
|
-
require('@formatjs/intl-pluralrules/polyfill');
|
|
10
|
-
require('@formatjs/intl-displaynames/locale-data/en');
|
|
11
|
-
require('@formatjs/intl-displaynames/locale-data/vi');
|
|
12
|
-
require('@formatjs/intl-displaynames/locale-data/zh');
|
|
13
|
-
require('@formatjs/intl-displaynames/polyfill');
|
|
14
|
-
require('@formatjs/intl-listformat/locale-data/en');
|
|
15
|
-
require('@formatjs/intl-listformat/locale-data/vi');
|
|
16
|
-
require('@formatjs/intl-listformat/locale-data/zh');
|
|
17
|
-
require('@formatjs/intl-listformat/polyfill');
|
|
18
|
-
require('@formatjs/intl-numberformat/locale-data/en');
|
|
19
|
-
require('@formatjs/intl-numberformat/locale-data/vi');
|
|
20
|
-
require('@formatjs/intl-numberformat/locale-data/zh');
|
|
21
|
-
require('@formatjs/intl-numberformat/polyfill');
|
|
22
|
-
require('@formatjs/intl-relativetimeformat/locale-data/en');
|
|
23
|
-
require('@formatjs/intl-relativetimeformat/locale-data/vi');
|
|
24
|
-
require('@formatjs/intl-relativetimeformat/locale-data/zh');
|
|
25
|
-
require('@formatjs/intl-relativetimeformat/polyfill');
|
|
26
|
-
require('@formatjs/intl-datetimeformat/locale-data/en');
|
|
27
|
-
require('@formatjs/intl-datetimeformat/locale-data/vi');
|
|
28
|
-
require('@formatjs/intl-datetimeformat/locale-data/zh');
|
|
29
|
-
require('@formatjs/intl-datetimeformat/polyfill');
|
|
30
|
-
require('@formatjs/intl-datetimeformat/add-golden-tz.js');
|
|
31
|
-
var EnvironmentEnum = require('./EnvironmentEnum-BjXsfSRZ.js');
|
|
32
|
-
var i18n = require('./i18n.cjs');
|
|
33
|
-
var ReactNative = require('./ReactNative-CDMfQFfN.js');
|
|
34
|
-
var Utils = require('./Utils-BC1fDy39.js');
|
|
35
|
-
require('@formatjs/intl-numberformat');
|
|
36
|
-
require('@sentry/react-native');
|
|
37
|
-
require('./Utils-Dilye04y.js');
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
Object.defineProperty(exports, "CurrencySymbolEnum", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function () { return NumberFormat.CurrencySymbolEnum; }
|
|
44
|
-
});
|
|
45
|
-
exports.formatAccountNumber = NumberFormat.formatAccountNumber;
|
|
46
|
-
exports.formatNumber = NumberFormat.formatNumber;
|
|
47
|
-
exports.getCurrencySymbol = NumberFormat.getCurrencySymbol;
|
|
48
|
-
exports.parseFormatNumber = NumberFormat.parseFormatNumber;
|
|
49
|
-
Object.defineProperty(exports, "EnvironmentEnum", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () { return EnvironmentEnum.EnvironmentEnum; }
|
|
52
|
-
});
|
|
53
|
-
exports.initI18n = i18n.initI18n;
|
|
54
|
-
exports.initSentry = ReactNative.initSentry;
|
|
55
|
-
exports.recordAdditionalSentryHttp = ReactNative.recordAdditionalSentryHttp;
|
|
56
|
-
exports.getV = Utils.getV;
|
|
57
|
-
//# sourceMappingURL=index-rn.cjs.map
|
package/dist/index-rn.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-rn.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index-rn.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export { C as CurrencySymbolEnum, f as formatAccountNumber, a as formatNumber, g as getCurrencySymbol, p as parseFormatNumber } from './NumberFormat-CvvBWhHc.js';
|
|
2
|
-
import '@formatjs/intl-getcanonicallocales/polyfill';
|
|
3
|
-
import '@formatjs/intl-locale/polyfill';
|
|
4
|
-
import '@formatjs/intl-pluralrules/locale-data/en';
|
|
5
|
-
import '@formatjs/intl-pluralrules/locale-data/vi';
|
|
6
|
-
import '@formatjs/intl-pluralrules/locale-data/zh';
|
|
7
|
-
import '@formatjs/intl-pluralrules/polyfill';
|
|
8
|
-
import '@formatjs/intl-displaynames/locale-data/en';
|
|
9
|
-
import '@formatjs/intl-displaynames/locale-data/vi';
|
|
10
|
-
import '@formatjs/intl-displaynames/locale-data/zh';
|
|
11
|
-
import '@formatjs/intl-displaynames/polyfill';
|
|
12
|
-
import '@formatjs/intl-listformat/locale-data/en';
|
|
13
|
-
import '@formatjs/intl-listformat/locale-data/vi';
|
|
14
|
-
import '@formatjs/intl-listformat/locale-data/zh';
|
|
15
|
-
import '@formatjs/intl-listformat/polyfill';
|
|
16
|
-
import '@formatjs/intl-numberformat/locale-data/en';
|
|
17
|
-
import '@formatjs/intl-numberformat/locale-data/vi';
|
|
18
|
-
import '@formatjs/intl-numberformat/locale-data/zh';
|
|
19
|
-
import '@formatjs/intl-numberformat/polyfill';
|
|
20
|
-
import '@formatjs/intl-relativetimeformat/locale-data/en';
|
|
21
|
-
import '@formatjs/intl-relativetimeformat/locale-data/vi';
|
|
22
|
-
import '@formatjs/intl-relativetimeformat/locale-data/zh';
|
|
23
|
-
import '@formatjs/intl-relativetimeformat/polyfill';
|
|
24
|
-
import '@formatjs/intl-datetimeformat/locale-data/en';
|
|
25
|
-
import '@formatjs/intl-datetimeformat/locale-data/vi';
|
|
26
|
-
import '@formatjs/intl-datetimeformat/locale-data/zh';
|
|
27
|
-
import '@formatjs/intl-datetimeformat/polyfill';
|
|
28
|
-
import '@formatjs/intl-datetimeformat/add-golden-tz.js';
|
|
29
|
-
export { E as EnvironmentEnum } from './EnvironmentEnum-UcQ6Il1O.js';
|
|
30
|
-
export { initI18n } from './i18n.mjs';
|
|
31
|
-
export { i as initSentry, r as recordAdditionalSentryHttp } from './ReactNative-B4gt8nBr.js';
|
|
32
|
-
export { g as getV } from './Utils-D7KRF8VU.js';
|
|
33
|
-
import '@formatjs/intl-numberformat';
|
|
34
|
-
import '@sentry/react-native';
|
|
35
|
-
import './Utils-Cq948gfa.js';
|
|
36
|
-
//# sourceMappingURL=index-rn.mjs.map
|
package/dist/index-rn.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-rn.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.cjs
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var NumberFormat = require('./NumberFormat-glmpbk7E.js');
|
|
4
|
-
require('@formatjs/intl-getcanonicallocales/polyfill');
|
|
5
|
-
require('@formatjs/intl-locale/polyfill');
|
|
6
|
-
require('@formatjs/intl-pluralrules/locale-data/en');
|
|
7
|
-
require('@formatjs/intl-pluralrules/locale-data/vi');
|
|
8
|
-
require('@formatjs/intl-pluralrules/locale-data/zh');
|
|
9
|
-
require('@formatjs/intl-pluralrules/polyfill');
|
|
10
|
-
require('@formatjs/intl-displaynames/locale-data/en');
|
|
11
|
-
require('@formatjs/intl-displaynames/locale-data/vi');
|
|
12
|
-
require('@formatjs/intl-displaynames/locale-data/zh');
|
|
13
|
-
require('@formatjs/intl-displaynames/polyfill');
|
|
14
|
-
require('@formatjs/intl-listformat/locale-data/en');
|
|
15
|
-
require('@formatjs/intl-listformat/locale-data/vi');
|
|
16
|
-
require('@formatjs/intl-listformat/locale-data/zh');
|
|
17
|
-
require('@formatjs/intl-listformat/polyfill');
|
|
18
|
-
require('@formatjs/intl-numberformat/locale-data/en');
|
|
19
|
-
require('@formatjs/intl-numberformat/locale-data/vi');
|
|
20
|
-
require('@formatjs/intl-numberformat/locale-data/zh');
|
|
21
|
-
require('@formatjs/intl-numberformat/polyfill');
|
|
22
|
-
require('@formatjs/intl-relativetimeformat/locale-data/en');
|
|
23
|
-
require('@formatjs/intl-relativetimeformat/locale-data/vi');
|
|
24
|
-
require('@formatjs/intl-relativetimeformat/locale-data/zh');
|
|
25
|
-
require('@formatjs/intl-relativetimeformat/polyfill');
|
|
26
|
-
require('@formatjs/intl-datetimeformat/locale-data/en');
|
|
27
|
-
require('@formatjs/intl-datetimeformat/locale-data/vi');
|
|
28
|
-
require('@formatjs/intl-datetimeformat/locale-data/zh');
|
|
29
|
-
require('@formatjs/intl-datetimeformat/polyfill');
|
|
30
|
-
require('@formatjs/intl-datetimeformat/add-golden-tz.js');
|
|
31
|
-
var useWebSocket = require('./useWebSocket-YQWaiBz9.js');
|
|
32
|
-
var EnvironmentEnum = require('./EnvironmentEnum-BjXsfSRZ.js');
|
|
33
|
-
var i18n = require('./i18n.cjs');
|
|
34
|
-
var React = require('./React-qUl0CBmE.js');
|
|
35
|
-
var utils = require('./utils.cjs');
|
|
36
|
-
var Utils = require('./Utils-BC1fDy39.js');
|
|
37
|
-
require('@formatjs/intl-numberformat');
|
|
38
|
-
require('react');
|
|
39
|
-
require('howler');
|
|
40
|
-
require('@sentry/react');
|
|
41
|
-
require('./Utils-Dilye04y.js');
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
Object.defineProperty(exports, "CurrencySymbolEnum", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () { return NumberFormat.CurrencySymbolEnum; }
|
|
48
|
-
});
|
|
49
|
-
exports.formatAccountNumber = NumberFormat.formatAccountNumber;
|
|
50
|
-
exports.formatNumber = NumberFormat.formatNumber;
|
|
51
|
-
exports.getCurrencySymbol = NumberFormat.getCurrencySymbol;
|
|
52
|
-
exports.parseFormatNumber = NumberFormat.parseFormatNumber;
|
|
53
|
-
exports.useDevice = useWebSocket.useDevice;
|
|
54
|
-
exports.useSEStore = useWebSocket.useSEStore;
|
|
55
|
-
exports.useSound = useWebSocket.useSound;
|
|
56
|
-
exports.useWebSocket = useWebSocket.useWebSocket;
|
|
57
|
-
Object.defineProperty(exports, "EnvironmentEnum", {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () { return EnvironmentEnum.EnvironmentEnum; }
|
|
60
|
-
});
|
|
61
|
-
exports.initI18n = i18n.initI18n;
|
|
62
|
-
exports.initSentry = React.initSentry;
|
|
63
|
-
exports.recordAdditionalSentryHttp = React.recordAdditionalSentryHttp;
|
|
64
|
-
exports.getItemRow = utils.getItemRow;
|
|
65
|
-
exports.getNextPage = utils.getNextPage;
|
|
66
|
-
exports.getTotalPages = utils.getTotalPages;
|
|
67
|
-
exports.joinWithoutFalsy = utils.joinWithoutFalsy;
|
|
68
|
-
exports.padArrayStart = utils.padArrayStart;
|
|
69
|
-
exports.sliceFromEnd = utils.sliceFromEnd;
|
|
70
|
-
exports.autoBlur = Utils.autoBlur;
|
|
71
|
-
exports.getKeyByValue = Utils.getKeyByValue;
|
|
72
|
-
exports.getLastPathName = Utils.getLastPathName;
|
|
73
|
-
exports.getUniquePermutations = Utils.getUniquePermutations;
|
|
74
|
-
exports.getV = Utils.getV;
|
|
75
|
-
exports.isHiddenKey = Utils.isHiddenKey;
|
|
76
|
-
exports.isValidHttpUrl = Utils.isValidHttpUrl;
|
|
77
|
-
exports.padNumber = Utils.padNumber;
|
|
78
|
-
exports.parseQueryString = Utils.parseQueryString;
|
|
79
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_format","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_hooks","_i18n","_sentry","_utils"],"sources":["../src/index.ts"],"sourcesContent":["export * from './format';\nexport * from './hooks';\nexport * from './i18n';\nexport * from './sentry';\nexport * from './utils';\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,MAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,MAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,MAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,MAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,KAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,KAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,KAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,KAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,OAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,OAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,OAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAG,OAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,MAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,MAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,MAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAI,MAAA,CAAAR,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
package/dist/index.mjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export { C as CurrencySymbolEnum, f as formatAccountNumber, a as formatNumber, g as getCurrencySymbol, p as parseFormatNumber } from './NumberFormat-CvvBWhHc.js';
|
|
2
|
-
import '@formatjs/intl-getcanonicallocales/polyfill';
|
|
3
|
-
import '@formatjs/intl-locale/polyfill';
|
|
4
|
-
import '@formatjs/intl-pluralrules/locale-data/en';
|
|
5
|
-
import '@formatjs/intl-pluralrules/locale-data/vi';
|
|
6
|
-
import '@formatjs/intl-pluralrules/locale-data/zh';
|
|
7
|
-
import '@formatjs/intl-pluralrules/polyfill';
|
|
8
|
-
import '@formatjs/intl-displaynames/locale-data/en';
|
|
9
|
-
import '@formatjs/intl-displaynames/locale-data/vi';
|
|
10
|
-
import '@formatjs/intl-displaynames/locale-data/zh';
|
|
11
|
-
import '@formatjs/intl-displaynames/polyfill';
|
|
12
|
-
import '@formatjs/intl-listformat/locale-data/en';
|
|
13
|
-
import '@formatjs/intl-listformat/locale-data/vi';
|
|
14
|
-
import '@formatjs/intl-listformat/locale-data/zh';
|
|
15
|
-
import '@formatjs/intl-listformat/polyfill';
|
|
16
|
-
import '@formatjs/intl-numberformat/locale-data/en';
|
|
17
|
-
import '@formatjs/intl-numberformat/locale-data/vi';
|
|
18
|
-
import '@formatjs/intl-numberformat/locale-data/zh';
|
|
19
|
-
import '@formatjs/intl-numberformat/polyfill';
|
|
20
|
-
import '@formatjs/intl-relativetimeformat/locale-data/en';
|
|
21
|
-
import '@formatjs/intl-relativetimeformat/locale-data/vi';
|
|
22
|
-
import '@formatjs/intl-relativetimeformat/locale-data/zh';
|
|
23
|
-
import '@formatjs/intl-relativetimeformat/polyfill';
|
|
24
|
-
import '@formatjs/intl-datetimeformat/locale-data/en';
|
|
25
|
-
import '@formatjs/intl-datetimeformat/locale-data/vi';
|
|
26
|
-
import '@formatjs/intl-datetimeformat/locale-data/zh';
|
|
27
|
-
import '@formatjs/intl-datetimeformat/polyfill';
|
|
28
|
-
import '@formatjs/intl-datetimeformat/add-golden-tz.js';
|
|
29
|
-
export { u as useDevice, a as useSEStore, b as useSound, c as useWebSocket } from './useWebSocket-B_B6kWXM.js';
|
|
30
|
-
export { E as EnvironmentEnum } from './EnvironmentEnum-UcQ6Il1O.js';
|
|
31
|
-
export { initI18n } from './i18n.mjs';
|
|
32
|
-
export { i as initSentry, r as recordAdditionalSentryHttp } from './React-BaJ1KfGF.js';
|
|
33
|
-
export { getItemRow, getNextPage, getTotalPages, joinWithoutFalsy, padArrayStart, sliceFromEnd } from './utils.mjs';
|
|
34
|
-
export { e as autoBlur, d as getKeyByValue, a as getLastPathName, c as getUniquePermutations, g as getV, f as isHiddenKey, i as isValidHttpUrl, p as padNumber, b as parseQueryString } from './Utils-D7KRF8VU.js';
|
|
35
|
-
import '@formatjs/intl-numberformat';
|
|
36
|
-
import 'react';
|
|
37
|
-
import 'howler';
|
|
38
|
-
import '@sentry/react';
|
|
39
|
-
import './Utils-Cq948gfa.js';
|
|
40
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigOptions.js","names":[],"sources":["../../../src/interfaces/Config/ConfigOptions.ts"],"sourcesContent":["import { FormatAs } from '../../types/Config/OptionType';\nimport { OutputOptions } from './OutputOptions';\n\nexport interface ConfigOptions {\n spreadsheetId: string;\n spreadsheetTab: string;\n formatAs: FormatAs;\n output: OutputOptions;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OutputMap.js","names":[],"sources":["../../../src/interfaces/Config/OutputMap.ts"],"sourcesContent":["export interface OutputMap {\n [key: string]: any;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OutputOptions.js","names":[],"sources":["../../../src/interfaces/Config/OutputOptions.ts"],"sourcesContent":["import { ExportAs } from '../../types/Config/OptionType';\n\nexport interface OutputOptions {\n folder: string;\n filename: string;\n isFilenameLowercase?: boolean;\n exportAs?: ExportAs;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SitemapMap.js","names":[],"sources":["../../../src/interfaces/Config/SitemapMap.ts"],"sourcesContent":["export interface SitemapMap {\n url: string;\n changeFreq: string;\n priority: number;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StringMap.js","names":[],"sources":["../../../src/interfaces/Config/StringMap.ts"],"sourcesContent":["export interface StringMap {\n [key: string]: string;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormatOptions.js","names":[],"sources":["../../../src/interfaces/Format/FormatOptions.ts"],"sourcesContent":["import {\n CurrencyDisplay,\n StyleCurrency,\n TrailingZeroDisplay,\n} from '../../types/Format/OptionType';\n\nexport interface FormatOptions {\n lang: string;\n currency: string;\n value: number;\n styleCurrency?: StyleCurrency;\n currencyDisplay?: CurrencyDisplay;\n showValue?: boolean;\n showCurrency?: boolean;\n minimumFractionDigits?: number;\n maximumFractionDigits?: number;\n trailingZeroDisplay?: TrailingZeroDisplay;\n options?: any;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InitOptions.js","names":[],"sources":["../../../src/interfaces/Sentry/InitOptions.ts"],"sourcesContent":["import { StringRegexArr } from '../../types/Sentry/OptionType';\n\nexport interface HttpClientIntegrationOptions {\n failedRequestStatusCodes: ([number, number] | number)[];\n failedRequestTargets: StringRegexArr;\n}\n\nexport interface CaptureConsoleIntegrationOptions {\n levels: string[];\n}\n\nexport interface InitOptions {\n env: string;\n dsn: string;\n debug: boolean;\n release: string;\n requiredEnvForSendToSentry?: string[];\n ignoreErrorsOptions?: StringRegexArr;\n httpClientIntegrationOptions?: HttpClientIntegrationOptions;\n captureConsoleIntegrationOptions?: CaptureConsoleIntegrationOptions;\n beforeSend?: (event: any, hint: any) => any;\n options?: any;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InitOptionsRN.js","names":[],"sources":["../../../src/interfaces/Sentry/InitOptionsRN.ts"],"sourcesContent":["import { InitOptions } from './InitOptions';\n\nexport interface InitOptionsRN extends Omit<InitOptions, 'release'> {\n release?: string;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SourceMapOptions.js","names":[],"sources":["../../../src/interfaces/Sentry/SourceMapOptions.ts"],"sourcesContent":["export interface SourceMapOptions {\n env: string;\n release: string;\n includeFolder: string[];\n urlPrefix: string;\n requiredEnvForSourceMap: string[];\n}\n"],"mappings":"","ignoreList":[]}
|
package/dist/sentry-cli.cjs
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var SentryCli = require('@sentry/cli');
|
|
4
|
-
var fs = require('fs');
|
|
5
|
-
var path = require('path');
|
|
6
|
-
|
|
7
|
-
function _interopNamespaceDefault(e) {
|
|
8
|
-
var n = Object.create(null);
|
|
9
|
-
if (e) {
|
|
10
|
-
Object.keys(e).forEach(function (k) {
|
|
11
|
-
if (k !== 'default') {
|
|
12
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return e[k]; }
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
n.default = e;
|
|
21
|
-
return Object.freeze(n);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @param {string} path - The path.
|
|
28
|
-
* @returns {boolean} Whether path is a directory, otherwise always false.
|
|
29
|
-
*/
|
|
30
|
-
const isDir = path => {
|
|
31
|
-
try {
|
|
32
|
-
const stat = fs.lstatSync(path);
|
|
33
|
-
return stat.isDirectory();
|
|
34
|
-
} catch (error) {
|
|
35
|
-
// lstatSync throws an error if path doesn't exist
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* @param {string} dirPath - Directory path.
|
|
41
|
-
* @param {string[]} exts - List of Extension file need to be removed.
|
|
42
|
-
* @returns {void}
|
|
43
|
-
*/
|
|
44
|
-
const deleteFile = (dirPath, exts) => {
|
|
45
|
-
fs.readdir(dirPath, (err, files) => {
|
|
46
|
-
if (err) {
|
|
47
|
-
console.error(err);
|
|
48
|
-
}
|
|
49
|
-
files.forEach(file => {
|
|
50
|
-
const fileDir = path__namespace.join(`${dirPath}/${file}`);
|
|
51
|
-
// Get the extension name of the file, lowercase it, then see if it is in the array of extensions
|
|
52
|
-
// defined above. If so, remove it.
|
|
53
|
-
if (isDir(fileDir)) {
|
|
54
|
-
deleteFile(fileDir, exts);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
if (file.toLowerCase() === '.ds_store' || exts.includes(path__namespace.extname(file).toLowerCase())) {
|
|
58
|
-
fs.unlinkSync(fileDir);
|
|
59
|
-
console.log(`File: ${fileDir} deleted successfully.`);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
// sentry-cli sourcemaps inject --org <org> --project <project> ./build/static/js && sentry-cli sourcemaps upload --org <org> --project <project> ./build/static/js
|
|
66
|
-
/**
|
|
67
|
-
* Create Sentry release and upload to Sentry host.
|
|
68
|
-
*
|
|
69
|
-
* @param {SourceMapOptions} options
|
|
70
|
-
* @return {Promise<void>}
|
|
71
|
-
*/
|
|
72
|
-
const releaseSourceMap = async options => {
|
|
73
|
-
if (!options.requiredEnvForSourceMap || options.requiredEnvForSourceMap.length <= 0) {
|
|
74
|
-
options.requiredEnvForSourceMap = ['production'];
|
|
75
|
-
}
|
|
76
|
-
if (!options.urlPrefix) {
|
|
77
|
-
options.urlPrefix = '';
|
|
78
|
-
}
|
|
79
|
-
if (!options.includeFolder || options.includeFolder.length <= 0) {
|
|
80
|
-
console.error('includeFolder value is empty.');
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
if (!options.requiredEnvForSourceMap.includes(options.env)) {
|
|
84
|
-
console.log('No need to upload sentry source map, required env:', options.requiredEnvForSourceMap);
|
|
85
|
-
options.includeFolder.forEach(folder => deleteFile(folder, ['.map']));
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
try {
|
|
89
|
-
const cli = new SentryCli();
|
|
90
|
-
console.log('Now creating sentry release ' + options.release);
|
|
91
|
-
await cli.releases.new(options.release);
|
|
92
|
-
console.log('Now uploading source maps');
|
|
93
|
-
await cli.releases.uploadSourceMaps(options.release, {
|
|
94
|
-
urlPrefix: options.urlPrefix,
|
|
95
|
-
include: options.includeFolder,
|
|
96
|
-
rewrite: true,
|
|
97
|
-
validate: true,
|
|
98
|
-
useArtifactBundle: true
|
|
99
|
-
});
|
|
100
|
-
console.log('Releasing release');
|
|
101
|
-
await cli.releases.finalize(options.release);
|
|
102
|
-
options.includeFolder.forEach(folder => deleteFile(folder, ['.map']));
|
|
103
|
-
} catch (ex) {
|
|
104
|
-
console.error('Source maps uploading failed:', ex);
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Create and upload sentry release source map.
|
|
110
|
-
*
|
|
111
|
-
* @param {SourceMapOption} options
|
|
112
|
-
* @return {Promise<void>}
|
|
113
|
-
*/
|
|
114
|
-
const releaseSentrySourceMap = async options => {
|
|
115
|
-
await releaseSourceMap(options);
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
exports.releaseSentrySourceMap = releaseSentrySourceMap;
|
|
119
|
-
//# sourceMappingURL=sentry-cli.cjs.map
|
package/dist/sentry-cli.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sentry-cli.cjs","sources":["../src/Utils/Files.ts","../src/Sentry/Build.ts","../src/sentry-cli.ts"],"sourcesContent":[null,null,null],"names":["isDir","path","stat","lstatSync","isDirectory","error","deleteFile","dirPath","exts","readdir","err","files","console","forEach","file","fileDir","join","toLowerCase","includes","extname","unlinkSync","log","releaseSourceMap","options","requiredEnvForSourceMap","length","urlPrefix","includeFolder","env","folder","cli","SentryCli","release","releases","new","uploadSourceMaps","include","rewrite","validate","useArtifactBundle","finalize","ex","releaseSentrySourceMap"],"mappings":"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"}
|
package/dist/sentry-cli.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SourceMapOptions } from './interfaces/Sentry/SourceMapOptions';
|
|
2
|
-
export * from './interfaces/Sentry/SourceMapOptions';
|
|
3
|
-
/**
|
|
4
|
-
* Create and upload sentry release source map.
|
|
5
|
-
*
|
|
6
|
-
* @param {SourceMapOption} options
|
|
7
|
-
* @return {Promise<void>}
|
|
8
|
-
*/
|
|
9
|
-
export declare const releaseSentrySourceMap: (options: SourceMapOptions) => Promise<void>;
|
package/dist/sentry-cli.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
releaseSentrySourceMap: true
|
|
8
|
-
};
|
|
9
|
-
exports.releaseSentrySourceMap = void 0;
|
|
10
|
-
var _Build = require("./Sentry/Build");
|
|
11
|
-
var _SourceMapOptions = require("./interfaces/Sentry/SourceMapOptions");
|
|
12
|
-
Object.keys(_SourceMapOptions).forEach(function (key) {
|
|
13
|
-
if (key === "default" || key === "__esModule") return;
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
15
|
-
if (key in exports && exports[key] === _SourceMapOptions[key]) return;
|
|
16
|
-
Object.defineProperty(exports, key, {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function get() {
|
|
19
|
-
return _SourceMapOptions[key];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
24
|
-
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
|
|
25
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
26
|
-
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
27
|
-
/**
|
|
28
|
-
* Create and upload sentry release source map.
|
|
29
|
-
*
|
|
30
|
-
* @param {SourceMapOption} options
|
|
31
|
-
* @return {Promise<void>}
|
|
32
|
-
*/
|
|
33
|
-
var releaseSentrySourceMap = exports.releaseSentrySourceMap = /*#__PURE__*/function () {
|
|
34
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
35
|
-
return _regenerator().w(function (_context) {
|
|
36
|
-
while (1) switch (_context.n) {
|
|
37
|
-
case 0:
|
|
38
|
-
_context.n = 1;
|
|
39
|
-
return (0, _Build.releaseSourceMap)(options);
|
|
40
|
-
case 1:
|
|
41
|
-
return _context.a(2);
|
|
42
|
-
}
|
|
43
|
-
}, _callee);
|
|
44
|
-
}));
|
|
45
|
-
return function releaseSentrySourceMap(_x) {
|
|
46
|
-
return _ref.apply(this, arguments);
|
|
47
|
-
};
|
|
48
|
-
}();
|
|
49
|
-
//# sourceMappingURL=sentry-cli.js.map
|