nightingale-app-react-native 11.7.1 → 11.8.0

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/.eslintrc.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "root": true,
3
- "extends": ["@pob/eslint-config/root", "@pob/eslint-config-node"],
3
+ "extends": ["@pob/eslint-config/root-commonjs"],
4
4
  "ignorePatterns": ["*.d.ts", "/dist"]
5
5
  }
package/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [11.8.0](https://github.com/christophehurpeau/nightingale/compare/v11.7.4...v11.8.0) (2021-11-27)
7
+
8
+ **Note:** Version bump only for package nightingale-app-react-native
9
+
10
+
11
+
12
+
13
+
14
+ ## [11.7.4](https://github.com/christophehurpeau/nightingale/compare/v11.7.3...v11.7.4) (2021-11-27)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * build all packages ([dbb4785](https://github.com/christophehurpeau/nightingale/commit/dbb4785cbb8c75942935c4a5935df32fd2e93690))
20
+
21
+
22
+
23
+
24
+
25
+ ## [11.7.3](https://github.com/christophehurpeau/nightingale/compare/v11.7.2...v11.7.3) (2021-11-27)
26
+
27
+ **Note:** Version bump only for package nightingale-app-react-native
28
+
29
+
30
+
31
+
32
+
33
+ ## [11.7.2](https://github.com/christophehurpeau/nightingale/compare/v11.7.1...v11.7.2) (2021-11-27)
34
+
35
+ **Note:** Version bump only for package nightingale-app-react-native
36
+
37
+
38
+
39
+
40
+
6
41
  ## [11.7.1](https://github.com/christophehurpeau/nightingale/compare/v11.7.0...v11.7.1) (2021-06-29)
7
42
 
8
43
 
package/README.md CHANGED
@@ -65,3 +65,8 @@ configure(
65
65
  ],
66
66
  );
67
67
  ```
68
+
69
+ ## Use source maps to display error stack trace
70
+
71
+ - for browser (expo web or react-native-web), see [nightingale-browser-console](https://npmjs.org/package/nightingale-browser-console)
72
+ - for android/ios, [expo-sentry](https://docs.expo.io/guides/using-sentry/#publish-your-app-with-sourcemaps) can send sourcemaps when publishing for production.
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser-dev.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig } from 'nightingale';\n\nexport { Level, ReactNativeConsoleHandler };\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;;;IAWaA,SAAS,GAAG,IAAIC,kBAAJ,CAAW,KAAX;IAEZC,oCAEmB;AAE9BC,oBAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,+CAAxB,GAAgDC;AAElDC,qBAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,iBAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,iBAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;;;;;;"}
1
+ {"version":3,"file":"index-browser-dev.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig, Level } from 'nightingale';\nexport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;;;IAUaA,SAAS,GAAG,IAAIC,kBAAJ,CAAW,KAAX;IAEZC,oCAEmB;AAE9BC,oBAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,+CAAxB,GAAgDC;AAElDC,qBAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,iBAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,iBAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig } from 'nightingale';\n\nexport { Level, ReactNativeConsoleHandler };\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;IAWaA,SAAS,GAAG,IAAIC,MAAJ,CAAW,KAAX;IAEZC,oCAEmB;AAE9BC,QAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,qBAAxB,GAAgDC;AAElDC,SAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;"}
1
+ {"version":3,"file":"index-browser-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig, Level } from 'nightingale';\nexport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;IAUaA,SAAS,GAAG,IAAIC,MAAJ,CAAW,KAAX;IAEZC,oCAEmB;AAE9BC,QAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,qBAAxB,GAAgDC;AAElDC,SAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig } from 'nightingale';\n\nexport { Level, ReactNativeConsoleHandler };\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;;;IAWaA,SAAS,GAAG,IAAIC,kBAAJ,CAAW,KAAX;IAEZC,oCAEmB;AAE9BC,oBAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,+CAAxB,GAAgDC;AAElDC,qBAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,iBAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,iBAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;;;;;;"}
1
+ {"version":3,"file":"index-browser.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig, Level } from 'nightingale';\nexport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;;;IAUaA,SAAS,GAAG,IAAIC,kBAAJ,CAAW,KAAX;IAEZC,oCAEmB;AAE9BC,oBAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,+CAAxB,GAAgDC;AAElDC,qBAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,iBAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,iBAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig } from 'nightingale';\n\nexport { Level, ReactNativeConsoleHandler };\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;IAWaA,SAAS,GAAG,IAAIC,MAAJ,CAAW,KAAX;IAEZC,oCAEmB;AAE9BC,QAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,qBAAxB,GAAgDC;AAElDC,SAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;"}
1
+ {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig, Level } from 'nightingale';\nexport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;IAUaA,SAAS,GAAG,IAAIC,MAAJ,CAAW,KAAX;IAEZC,oCAEmB;AAE9BC,QAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,qBAAxB,GAAgDC;AAElDC,SAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index-browsermodern-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig } from 'nightingale';\n\nexport { Level, ReactNativeConsoleHandler };\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;MAWaA,SAAS,GAAG,IAAIC,MAAJ,CAAW,KAAX;MAEZC,oCAEmB;AAE9BC,QAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,qBAAxB,GAAgDC;AAElDC,SAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;"}
1
+ {"version":3,"file":"index-browsermodern-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig, Level } from 'nightingale';\nexport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;MAUaA,SAAS,GAAG,IAAIC,MAAJ,CAAW,KAAX;MAEZC,oCAEmB;AAE9BC,QAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,qBAAxB,GAAgDC;AAElDC,SAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index-browsermodern.es.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig } from 'nightingale';\n\nexport { Level, ReactNativeConsoleHandler };\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;MAWaA,SAAS,GAAG,IAAIC,MAAJ,CAAW,KAAX;MAEZC,oCAEmB;AAE9BC,QAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,qBAAxB,GAAgDC;AAElDC,SAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;"}
1
+ {"version":3,"file":"index-browsermodern.es.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig, Level } from 'nightingale';\nexport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;MAUaA,SAAS,GAAG,IAAIC,MAAJ,CAAW,KAAX;MAEZC,oCAEmB;AAE9BC,QAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,qBAAxB,GAAgDC;AAElDC,SAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Logger, Level } from 'nightingale';
1
+ import { Logger } from 'nightingale';
2
2
  import { BrowserConsoleHandler } from 'nightingale-browser-console';
3
3
  import { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
4
- export { configure, addConfig } from 'nightingale';
5
- export { Level, ReactNativeConsoleHandler };
4
+ export { configure, addConfig, Level } from 'nightingale';
5
+ export { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
6
  export declare const appLogger: Logger;
7
7
  export declare const ReactNativeConsoleHandlerForPlatform: typeof ReactNativeConsoleHandler | typeof BrowserConsoleHandler;
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,KAAK,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAK7E,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,yBAAyB,EAAE,CAAC;AAE5C,eAAO,MAAM,SAAS,QAAoB,CAAC;AAE3C,eAAO,MAAM,oCAAoC,EAC7C,OAAO,yBAAyB,GAChC,OAAO,qBAEgE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAoB,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAK7E,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAE7E,eAAO,MAAM,SAAS,QAAoB,CAAC;AAE3C,eAAO,MAAM,oCAAoC,EAC7C,OAAO,yBAAyB,GAChC,OAAO,qBAEgE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-app-react-native",
3
- "version": "11.7.1",
3
+ "version": "11.8.0",
4
4
  "description": "React Native and Expo logger for application",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -16,6 +16,7 @@
16
16
  "directory": "packages/nightingale-app-react-native"
17
17
  },
18
18
  "homepage": "https://github.com/christophehurpeau/nightingale",
19
+ "type": "commonjs",
19
20
  "browserslist": [
20
21
  "defaults",
21
22
  "> 0.2%",
@@ -23,11 +24,11 @@
23
24
  "not safari < 10",
24
25
  "not ios_saf < 10"
25
26
  ],
26
- "main": "./dist/index-browser.es.js",
27
27
  "types": "./dist/index.d.ts",
28
28
  "module": "./dist/index-browser.es.js",
29
29
  "browser": "./dist/index-browser.es.js",
30
30
  "exports": {
31
+ "./package.json": "./package.json",
31
32
  ".": {
32
33
  "browser": {
33
34
  "browser:modern": {
@@ -55,7 +56,7 @@
55
56
  "build:definitions": "tsc -p tsconfig.build.json",
56
57
  "clean": "rm -Rf docs dist test/node6 coverage",
57
58
  "lint": "yarn run lint:eslint",
58
- "lint:eslint": "yarn --cwd ../.. run eslint --ext .js,.mjs,.ts --report-unused-disable-directives --quiet packages/nightingale-app-react-native",
59
+ "lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-app-react-native",
59
60
  "watch": "pob-watch"
60
61
  },
61
62
  "prettier": {
@@ -94,28 +95,17 @@
94
95
  }
95
96
  },
96
97
  "dependencies": {
97
- "@types/node": ">=12.0.0",
98
- "nightingale": "^11.7.1",
99
- "nightingale-browser-console": "^11.7.1",
100
- "nightingale-react-native-console": "^11.7.1"
98
+ "nightingale": "^11.8.0",
99
+ "nightingale-browser-console": "^11.7.4",
100
+ "nightingale-react-native-console": "^11.7.4"
101
101
  },
102
102
  "devDependencies": {
103
- "@babel/core": "7.14.6",
104
- "@babel/preset-env": "7.14.7",
105
- "@pob/eslint-config": "43.2.0",
106
- "@pob/eslint-config-node": "43.2.0",
107
- "@pob/eslint-config-typescript": "43.2.0",
108
- "@typescript-eslint/eslint-plugin": "4.28.1",
109
- "@typescript-eslint/parser": "4.28.1",
103
+ "@babel/core": "7.16.0",
104
+ "@babel/preset-env": "7.16.4",
110
105
  "babel-preset-modern-browsers": "15.0.2",
111
- "eslint": "7.29.0",
112
- "eslint-import-resolver-node": "0.3.4",
113
- "eslint-plugin-import": "2.23.4",
114
- "eslint-plugin-node": "11.1.0",
115
- "eslint-plugin-unicorn": "29.0.0",
116
- "pob-babel": "27.0.3",
117
- "rollup": "2.52.3",
118
- "typescript": "4.3.4"
106
+ "pob-babel": "28.5.0",
107
+ "rollup": "2.60.1",
108
+ "typescript": "4.5.2"
119
109
  },
120
- "gitHead": "325214aa6c7f87ace818389b77ce7b4208005c11"
110
+ "gitHead": "7429d6a1f01b1b222adecdeb0bb5da74174b0ff2"
121
111
  }
@@ -0,0 +1,3 @@
1
+ import createRollupConfig from 'pob-babel/createRollupConfig.js';
2
+
3
+ export default createRollupConfig({});
package/src/index.ts CHANGED
@@ -5,9 +5,8 @@ import { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
5
5
  // eslint-disable-next-line import/no-unresolved
6
6
  import { Platform } from 'react-native';
7
7
 
8
- export { configure, addConfig } from 'nightingale';
9
-
10
- export { Level, ReactNativeConsoleHandler };
8
+ export { configure, addConfig, Level } from 'nightingale';
9
+ export { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
11
10
 
12
11
  export const appLogger = new Logger('app');
13
12