@andre1502/react-utilities 1.0.7 → 1.0.8
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 +39 -0
- package/dist/{EnvironmentEnum-CXTWJxNo.js → EnvironmentEnum-F4hjulGN.js} +3 -1
- package/dist/EnvironmentEnum-F4hjulGN.js.map +1 -0
- package/dist/{Utils-CJ7ureSW.js → Utils-Bb2yUYbQ.js} +1 -1
- package/dist/{Utils-CJ7ureSW.js.map → Utils-Bb2yUYbQ.js.map} +1 -1
- package/dist/{config-cli-BIF4xuoO.js → config-cli-CY_z5CYp.js} +285 -283
- package/dist/config-cli-CY_z5CYp.js.map +1 -0
- package/dist/config-cli.js +3 -3
- package/dist/enums/EnvironmentEnum.d.ts +2 -0
- package/dist/{format-BgweN3o5.js → format-DOgTlvp7.js} +1 -1
- package/dist/{format-BgweN3o5.js.map → format-DOgTlvp7.js.map} +1 -1
- package/dist/format.js +1 -1
- package/dist/{hooks-oAipbPQ2.js → hooks-BBCIHhac.js} +1 -1
- package/dist/{hooks-oAipbPQ2.js.map → hooks-BBCIHhac.js.map} +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{i18n-D1jKJPI0.js → i18n-CJthsaWo.js} +475 -597
- package/dist/i18n-CJthsaWo.js.map +1 -0
- package/dist/i18n.js +2 -2
- package/dist/index-cli.js +3 -3
- package/dist/index-rn.js +4 -4
- package/dist/index.js +4 -4
- package/dist/{sentry-rn-DZwIel7y.js → sentry-rn-DNJphpGY.js} +2 -2
- package/dist/{sentry-rn-DZwIel7y.js.map → sentry-rn-DNJphpGY.js.map} +1 -1
- package/dist/sentry-rn.js +1 -1
- package/dist/sentry.js +1 -1
- package/package.json +2 -2
- package/src/Config/Config.ts +1 -1
- package/src/enums/EnvironmentEnum.ts +2 -0
- package/dist/EnvironmentEnum-CXTWJxNo.js.map +0 -1
- package/dist/browser-ponyfill-C-HVh7ck.js +0 -321
- package/dist/browser-ponyfill-C-HVh7ck.js.map +0 -1
- package/dist/chunk-vKJrgz-R.js +0 -16
- package/dist/config-cli-BIF4xuoO.js.map +0 -1
- package/dist/i18n-D1jKJPI0.js.map +0 -1
package/README.md
CHANGED
|
@@ -367,6 +367,45 @@ initI18n({
|
|
|
367
367
|
});
|
|
368
368
|
```
|
|
369
369
|
|
|
370
|
+
## Local Testing
|
|
371
|
+
|
|
372
|
+
If you want to test this library in another local project, here are the most effective ways to do it.
|
|
373
|
+
|
|
374
|
+
### Method 1: The Quickest Way (`yarn add`)
|
|
375
|
+
|
|
376
|
+
Best for a 10-second check.
|
|
377
|
+
|
|
378
|
+
1. In your other project: `yarn add ../react-utilities` (use the relative path).
|
|
379
|
+
2. **Warning**: This uses symlinks. If you get a "Duplicate React" or "Invalid Hook Call" error, use Method 2.
|
|
380
|
+
|
|
381
|
+
### Method 2: The Recommended Way (`yalc`)
|
|
382
|
+
|
|
383
|
+
Best for active development. It avoids all symlink/React issues by copying files instead of linking them.
|
|
384
|
+
|
|
385
|
+
**In this library:**
|
|
386
|
+
|
|
387
|
+
1. Install yalc globally: `npm i -g yalc`
|
|
388
|
+
2. Build and publish locally: `yarn build && yalc publish`
|
|
389
|
+
3. (Optional) For auto-syncing: `yarn build:watch` and in another terminal `yalc publish --push`
|
|
390
|
+
|
|
391
|
+
**In your other project:**
|
|
392
|
+
|
|
393
|
+
1. Add the local package: `yalc add @andre1502/react-utilities`
|
|
394
|
+
2. Install dependencies: `yarn install` (or npm/pnpm)
|
|
395
|
+
|
|
396
|
+
### Method 3: The "Clean" Way (`npm pack`)
|
|
397
|
+
|
|
398
|
+
Best for final verification before publishing.
|
|
399
|
+
|
|
400
|
+
**In this library:**
|
|
401
|
+
|
|
402
|
+
1. `yarn build`
|
|
403
|
+
2. `npm pack` (this creates a `.tgz` file like `andre1502-react-utilities-1.0.8.tgz`)
|
|
404
|
+
|
|
405
|
+
**In your other project:**
|
|
406
|
+
|
|
407
|
+
1. `yarn add ./path/to/andre1502-react-utilities-1.0.8.tgz`
|
|
408
|
+
|
|
370
409
|
## 💖 Support the Project
|
|
371
410
|
|
|
372
411
|
If this project saved you time or helped you build something cool, consider a one-time donation!
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
//#region src/enums/EnvironmentEnum.ts
|
|
2
2
|
var e = {
|
|
3
3
|
DEV: "dev",
|
|
4
|
+
QAT: "qat",
|
|
4
5
|
STAGING: "staging",
|
|
6
|
+
UAT: "uat",
|
|
5
7
|
PRODUCTION: "production"
|
|
6
8
|
};
|
|
7
9
|
//#endregion
|
|
8
10
|
export { e as t };
|
|
9
11
|
|
|
10
|
-
//# sourceMappingURL=EnvironmentEnum-
|
|
12
|
+
//# sourceMappingURL=EnvironmentEnum-F4hjulGN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentEnum-F4hjulGN.js","names":[],"sources":["../src/enums/EnvironmentEnum.ts"],"sourcesContent":["export const EnvironmentEnum = {\n DEV: 'dev',\n QAT: 'qat',\n STAGING: 'staging',\n UAT: 'uat',\n PRODUCTION: 'production',\n} as const;\n\nexport type EnvironmentEnum =\n (typeof EnvironmentEnum)[keyof typeof EnvironmentEnum];\n"],"mappings":";AAAA,IAAa,IAAkB;CAC7B,KAAK;CACL,KAAK;CACL,SAAS;CACT,KAAK;CACL,YAAY;CACb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils-
|
|
1
|
+
{"version":3,"file":"Utils-Bb2yUYbQ.js","names":[],"sources":["../src/Sentry/Utils.ts"],"sourcesContent":["const recordSentryHttp = (\n Sentry: any,\n config?: any,\n request?: any,\n response?: any,\n) => {\n if (config) {\n Sentry.withScope((scope: any) => {\n scope.setContext('config', config);\n });\n }\n\n if (request) {\n Sentry.withScope((scope: any) => {\n scope.setContext('request', request);\n });\n }\n\n if (response) {\n Sentry.withScope((scope: any) => {\n scope.setContext('response', response);\n });\n }\n};\n\nexport { recordSentryHttp };\n"],"mappings":";AAAA,IAAM,KACJ,GACA,GACA,GACA,MACG;AAaH,CAZI,KACF,EAAO,WAAW,MAAe;AAC/B,IAAM,WAAW,UAAU,EAAO;GAClC,EAGA,KACF,EAAO,WAAW,MAAe;AAC/B,IAAM,WAAW,WAAW,EAAQ;GACpC,EAGA,KACF,EAAO,WAAW,MAAe;AAC/B,IAAM,WAAW,YAAY,EAAS;GACtC"}
|