nightingale-app-react-native 11.7.0 → 11.7.4

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,45 @@
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.7.4](https://github.com/christophehurpeau/nightingale/compare/v11.7.3...v11.7.4) (2021-11-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * build all packages ([dbb4785](https://github.com/christophehurpeau/nightingale/commit/dbb4785cbb8c75942935c4a5935df32fd2e93690))
12
+
13
+
14
+
15
+
16
+
17
+ ## [11.7.3](https://github.com/christophehurpeau/nightingale/compare/v11.7.2...v11.7.3) (2021-11-27)
18
+
19
+ **Note:** Version bump only for package nightingale-app-react-native
20
+
21
+
22
+
23
+
24
+
25
+ ## [11.7.2](https://github.com/christophehurpeau/nightingale/compare/v11.7.1...v11.7.2) (2021-11-27)
26
+
27
+ **Note:** Version bump only for package nightingale-app-react-native
28
+
29
+
30
+
31
+
32
+
33
+ ## [11.7.1](https://github.com/christophehurpeau/nightingale/compare/v11.7.0...v11.7.1) (2021-06-29)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * update pob-babel to bring back webpack 4 support ([4887431](https://github.com/christophehurpeau/nightingale/commit/4887431b3b272496511f879af022638723b9056e))
39
+ * **nightingale-app-react-native:** add react-native-web as optional peer dependency ([0092538](https://github.com/christophehurpeau/nightingale/commit/0092538689a2e3ca8cea9c1422f8140f4c9e8c9c))
40
+
41
+
42
+
43
+
44
+
6
45
  # [11.7.0](https://github.com/christophehurpeau/nightingale/compare/v11.6.0...v11.7.0) (2021-03-29)
7
46
 
8
47
 
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.
@@ -2,14 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var reactNative = require('react-native');
6
5
  var nightingale = require('nightingale');
7
6
  var nightingaleBrowserConsole = require('nightingale-browser-console');
8
7
  var nightingaleReactNativeConsole = require('nightingale-react-native-console');
8
+ var reactNative = require('react-native');
9
9
 
10
- // @ts-expect-error including @types/react-native causes conflicts
11
- const appLogger = new nightingale.Logger('app');
12
- const ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
10
+ var appLogger = new nightingale.Logger('app');
11
+ var ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
13
12
  reactNative.Platform.OS === 'web' ? nightingaleBrowserConsole.BrowserConsoleHandler : nightingaleReactNativeConsole.ReactNativeConsoleHandler;
14
13
  nightingale.configure(process.env.NODE_ENV === 'production' ? [] : [{
15
14
  pattern: /^app(:|$)/,
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser-dev.cjs.js","sources":["../src/index.ts"],"sourcesContent":["// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\nimport { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\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":";;;;;;;;;AAAA;MAWaA,SAAS,GAAG,IAAIC,kBAAJ,CAAW,KAAX;MAEZC,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,13 +1,12 @@
1
- import { Platform } from 'react-native';
2
1
  import { Logger, configure, Level } from 'nightingale';
3
2
  export { Level, addConfig, configure } from 'nightingale';
4
3
  import { BrowserConsoleHandler } from 'nightingale-browser-console';
5
4
  import { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
5
  export { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
+ import { Platform } from 'react-native';
7
7
 
8
- // @ts-expect-error including @types/react-native causes conflicts
9
- const appLogger = new Logger('app');
10
- const ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
8
+ var appLogger = new Logger('app');
9
+ var ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
11
10
  Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;
12
11
  configure(process.env.NODE_ENV === 'production' ? [] : [{
13
12
  pattern: /^app(:|$)/,
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\nimport { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\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":";;;;;;;AAAA;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-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;;;;"}
@@ -2,14 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var reactNative = require('react-native');
6
5
  var nightingale = require('nightingale');
7
6
  var nightingaleBrowserConsole = require('nightingale-browser-console');
8
7
  var nightingaleReactNativeConsole = require('nightingale-react-native-console');
8
+ var reactNative = require('react-native');
9
9
 
10
- // @ts-expect-error including @types/react-native causes conflicts
11
- const appLogger = new nightingale.Logger('app');
12
- const ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
10
+ var appLogger = new nightingale.Logger('app');
11
+ var ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
13
12
  reactNative.Platform.OS === 'web' ? nightingaleBrowserConsole.BrowserConsoleHandler : nightingaleReactNativeConsole.ReactNativeConsoleHandler;
14
13
  nightingale.configure(process.env.NODE_ENV === 'production' ? [] : [{
15
14
  pattern: /^app(:|$)/,
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.cjs.js","sources":["../src/index.ts"],"sourcesContent":["// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\nimport { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\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":";;;;;;;;;AAAA;MAWaA,SAAS,GAAG,IAAIC,kBAAJ,CAAW,KAAX;MAEZC,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,13 +1,12 @@
1
- import { Platform } from 'react-native';
2
1
  import { Logger, configure, Level } from 'nightingale';
3
2
  export { Level, addConfig, configure } from 'nightingale';
4
3
  import { BrowserConsoleHandler } from 'nightingale-browser-console';
5
4
  import { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
5
  export { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
+ import { Platform } from 'react-native';
7
7
 
8
- // @ts-expect-error including @types/react-native causes conflicts
9
- const appLogger = new Logger('app');
10
- const ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
8
+ var appLogger = new Logger('app');
9
+ var ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
11
10
  Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;
12
11
  configure(process.env.NODE_ENV === 'production' ? [] : [{
13
12
  pattern: /^app(:|$)/,
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\nimport { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\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":";;;;;;;AAAA;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-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,11 +1,10 @@
1
- import { Platform } from 'react-native';
2
1
  import { Logger, configure, Level } from 'nightingale';
3
2
  export { Level, addConfig, configure } from 'nightingale';
4
3
  import { BrowserConsoleHandler } from 'nightingale-browser-console';
5
4
  import { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
5
  export { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
+ import { Platform } from 'react-native';
7
7
 
8
- // @ts-expect-error including @types/react-native causes conflicts
9
8
  const appLogger = new Logger('app');
10
9
  const ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
11
10
  Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"index-browsermodern-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\nimport { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\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":";;;;;;;AAAA;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,11 +1,10 @@
1
- import { Platform } from 'react-native';
2
1
  import { Logger, configure, Level } from 'nightingale';
3
2
  export { Level, addConfig, configure } from 'nightingale';
4
3
  import { BrowserConsoleHandler } from 'nightingale-browser-console';
5
4
  import { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
5
  export { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
+ import { Platform } from 'react-native';
7
7
 
8
- // @ts-expect-error including @types/react-native causes conflicts
9
8
  const appLogger = new Logger('app');
10
9
  const ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
11
10
  Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"index-browsermodern.es.js","sources":["../src/index.ts"],"sourcesContent":["// @ts-expect-error including @types/react-native causes conflicts\n// eslint-disable-next-line import/no-unresolved\nimport { Platform } from 'react-native';\nimport { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\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":";;;;;;;AAAA;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":"AAGA,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;AAE7E,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.0",
3
+ "version": "11.7.4",
4
4
  "description": "React Native and Expo logger for application",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -16,23 +16,19 @@
16
16
  "directory": "packages/nightingale-app-react-native"
17
17
  },
18
18
  "homepage": "https://github.com/christophehurpeau/nightingale",
19
+ "type": "commonjs",
19
20
  "browserslist": [
21
+ "defaults",
20
22
  "> 0.2%",
21
- "Firefox ESR",
22
- "last 2 Chrome versions",
23
- "last 2 iOS versions",
24
- "last 2 Edge versions",
25
- "last 2 Safari versions",
26
23
  "not ie < 12",
27
- "not ios_saf < 10",
28
- "not dead",
29
- "not op_mini all"
24
+ "not safari < 10",
25
+ "not ios_saf < 10"
30
26
  ],
31
- "main": "./dist/index-browser.es.js",
32
27
  "types": "./dist/index.d.ts",
33
28
  "module": "./dist/index-browser.es.js",
34
29
  "browser": "./dist/index-browser.es.js",
35
30
  "exports": {
31
+ "./package.json": "./package.json",
36
32
  ".": {
37
33
  "browser": {
38
34
  "browser:modern": {
@@ -60,7 +56,7 @@
60
56
  "build:definitions": "tsc -p tsconfig.build.json",
61
57
  "clean": "rm -Rf docs dist test/node6 coverage",
62
58
  "lint": "yarn run lint:eslint",
63
- "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",
64
60
  "watch": "pob-watch"
65
61
  },
66
62
  "prettier": {
@@ -90,31 +86,26 @@
90
86
  ]
91
87
  },
92
88
  "peerDependencies": {
93
- "react-native": "*"
89
+ "react-native": "*",
90
+ "react-native-web": "*"
91
+ },
92
+ "peerDependenciesMeta": {
93
+ "react-native-web": {
94
+ "optional": true
95
+ }
94
96
  },
95
97
  "dependencies": {
96
- "@types/node": ">=12.0.0",
97
- "nightingale": "^11.7.0",
98
- "nightingale-browser-console": "^11.7.0",
99
- "nightingale-react-native-console": "^11.7.0"
98
+ "nightingale": "^11.7.4",
99
+ "nightingale-browser-console": "^11.7.4",
100
+ "nightingale-react-native-console": "^11.7.4"
100
101
  },
101
102
  "devDependencies": {
102
- "@babel/core": "7.13.10",
103
- "@babel/preset-env": "7.13.10",
104
- "@pob/eslint-config": "43.0.0",
105
- "@pob/eslint-config-node": "43.1.0",
106
- "@pob/eslint-config-typescript": "43.0.0",
107
- "@typescript-eslint/eslint-plugin": "4.19.0",
108
- "@typescript-eslint/parser": "4.19.0",
103
+ "@babel/core": "7.16.0",
104
+ "@babel/preset-env": "7.16.4",
109
105
  "babel-preset-modern-browsers": "15.0.2",
110
- "eslint": "7.23.0",
111
- "eslint-import-resolver-node": "0.3.4",
112
- "eslint-plugin-import": "2.22.1",
113
- "eslint-plugin-node": "11.1.0",
114
- "eslint-plugin-unicorn": "25.0.1",
115
- "pob-babel": "26.8.0",
116
- "rollup": "2.43.1",
117
- "typescript": "4.2.3"
106
+ "pob-babel": "28.5.0",
107
+ "rollup": "2.60.1",
108
+ "typescript": "4.5.2"
118
109
  },
119
- "gitHead": "cc85b26dbfce264e968f288517a1af98d6f5156d"
110
+ "gitHead": "70f6b4ba634ff778fc94bef7e2455e8b6a7db06a"
120
111
  }
@@ -0,0 +1,3 @@
1
+ import createRollupConfig from 'pob-babel/createRollupConfig.js';
2
+
3
+ export default createRollupConfig({});
package/src/index.ts CHANGED
@@ -1,13 +1,12 @@
1
- // @ts-expect-error including @types/react-native causes conflicts
2
- // eslint-disable-next-line import/no-unresolved
3
- import { Platform } from 'react-native';
4
1
  import { Logger, configure, Level } from 'nightingale';
5
2
  import { BrowserConsoleHandler } from 'nightingale-browser-console';
6
3
  import { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
4
+ // @ts-expect-error including @types/react-native causes conflicts
5
+ // eslint-disable-next-line import/no-unresolved
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