nightingale-app-react-native 11.9.0 → 12.1.1

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-commonjs"],
3
+ "extends": ["@pob/eslint-config/root-module"],
4
4
  "ignorePatterns": ["*.d.ts", "/dist"]
5
5
  }
package/CHANGELOG.md CHANGED
@@ -3,6 +3,49 @@
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
+ ## [12.1.1](https://github.com/christophehurpeau/nightingale/compare/v12.1.0...v12.1.1) (2022-01-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * properly configure package type ([2e0cbf5](https://github.com/christophehurpeau/nightingale/commit/2e0cbf555bd3b9fa3c3851025452937f64408aa8))
12
+
13
+
14
+
15
+
16
+
17
+ # [12.1.0](https://github.com/christophehurpeau/nightingale/compare/v12.0.1...v12.1.0) (2021-12-15)
18
+
19
+ **Note:** Version bump only for package nightingale-app-react-native
20
+
21
+
22
+
23
+
24
+
25
+ ## [12.0.1](https://github.com/christophehurpeau/nightingale/compare/v12.0.0...v12.0.1) (2021-12-12)
26
+
27
+ **Note:** Version bump only for package nightingale-app-react-native
28
+
29
+
30
+
31
+
32
+
33
+ # [12.0.0](https://github.com/christophehurpeau/nightingale/compare/v11.9.0...v12.0.0) (2021-12-11)
34
+
35
+
36
+ ### Build System
37
+
38
+ * node 14 and remove dev builds ([432ecd1](https://github.com/christophehurpeau/nightingale/commit/432ecd1faafd0419f57dea00fce560e4cccc207f))
39
+
40
+
41
+ ### BREAKING CHANGES
42
+
43
+ * requires node 14
44
+
45
+
46
+
47
+
48
+
6
49
  # [11.9.0](https://github.com/christophehurpeau/nightingale/compare/v11.8.1...v11.9.0) (2021-11-28)
7
50
 
8
51
 
@@ -8,8 +8,7 @@ var nightingaleReactNativeConsole = require('nightingale-react-native-console');
8
8
  var reactNative = require('react-native');
9
9
 
10
10
  var appLogger = new nightingale.Logger('app');
11
- var ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
12
- reactNative.Platform.OS === 'web' ? nightingaleBrowserConsole.BrowserConsoleHandler : nightingaleReactNativeConsole.ReactNativeConsoleHandler;
11
+ var ReactNativeConsoleHandlerForPlatform = reactNative.Platform.OS === 'web' ? nightingaleBrowserConsole.BrowserConsoleHandler : nightingaleReactNativeConsole.ReactNativeConsoleHandler;
13
12
  nightingale.configure(process.env.NODE_ENV === 'production' ? [] : [{
14
13
  pattern: /^app(:|$)/,
15
14
  handlers: [new ReactNativeConsoleHandlerForPlatform(nightingale.Level.DEBUG)],
@@ -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';\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":";;;;;;;;;IAQaA,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';\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 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":";;;;;;;;;IAQaA,SAAS,GAAG,IAAIC,kBAAJ,CAAW,KAAX;IAEZC,oCAEmB,GAC9BC,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;;;;;;;;;"}
@@ -6,8 +6,7 @@ export { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
6
  import { Platform } from 'react-native';
7
7
 
8
8
  var appLogger = new Logger('app');
9
- var ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
10
- Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;
9
+ var ReactNativeConsoleHandlerForPlatform = Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;
11
10
  configure(process.env.NODE_ENV === 'production' ? [] : [{
12
11
  pattern: /^app(:|$)/,
13
12
  handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],
@@ -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';\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":";;;;;;;IAQaA,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';\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 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":";;;;;;;IAQaA,SAAS,GAAG,IAAIC,MAAJ,CAAW,KAAX;IAEZC,oCAEmB,GAC9BC,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;;;;"}
@@ -6,8 +6,7 @@ export { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
6
  import { Platform } from 'react-native';
7
7
 
8
8
  const appLogger = new Logger('app');
9
- const ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
10
- Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;
9
+ const ReactNativeConsoleHandlerForPlatform = Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;
11
10
  configure(process.env.NODE_ENV === 'production' ? [] : [{
12
11
  pattern: /^app(:|$)/,
13
12
  handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],
@@ -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';\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":";;;;;;;MAQaA,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';\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 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":";;;;;;;MAQaA,SAAS,GAAG,IAAIC,MAAJ,CAAW,KAAX;MAEZC,oCAEmB,GAC9BC,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.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;AAG7E,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"}
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;AAG7E,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,qBACgE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-app-react-native",
3
- "version": "11.9.0",
3
+ "version": "12.1.1",
4
4
  "description": "React Native and Expo logger for application",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -16,7 +16,7 @@
16
16
  "directory": "packages/nightingale-app-react-native"
17
17
  },
18
18
  "homepage": "https://github.com/christophehurpeau/nightingale",
19
- "type": "commonjs",
19
+ "type": "module",
20
20
  "browserslist": [
21
21
  "defaults",
22
22
  "> 0.2%",
@@ -32,29 +32,19 @@
32
32
  ".": {
33
33
  "browser": {
34
34
  "browser:modern": {
35
- "development": {
36
- "import": "./dist/index-browsermodern-dev.es.js"
37
- },
38
35
  "import": "./dist/index-browsermodern.es.js"
39
36
  },
40
- "development": {
41
- "import": "./dist/index-browser-dev.es.js",
42
- "require": "./dist/index-browser-dev.cjs.js"
43
- },
44
37
  "import": "./dist/index-browser.es.js",
45
38
  "require": "./dist/index-browser.cjs.js"
46
39
  }
47
40
  }
48
41
  },
49
- "module:browser": "./dist/index-browser.es.js",
50
- "module:browser-dev": "./dist/index-browser-dev.es.js",
51
42
  "module:modern-browsers": "./dist/index-browsermodern.es.js",
52
- "module:modern-browsers-dev": "./dist/index-browsermodern-dev.es.js",
53
43
  "sideEffects": false,
54
44
  "scripts": {
55
45
  "build": "pob-build && yarn run build:definitions",
56
46
  "build:definitions": "tsc -p tsconfig.build.json",
57
- "clean": "rm -Rf docs dist test/node6 coverage",
47
+ "clean": "rm -Rf dist",
58
48
  "lint": "yarn run lint:eslint",
59
49
  "lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-app-react-native",
60
50
  "watch": "pob-watch"
@@ -95,18 +85,17 @@
95
85
  }
96
86
  },
97
87
  "dependencies": {
98
- "nightingale": "^11.9.0",
99
- "nightingale-browser-console": "^11.7.4",
100
- "nightingale-react-native-console": "^11.9.0"
88
+ "nightingale": "12.1.1",
89
+ "nightingale-browser-console": "12.1.1",
90
+ "nightingale-react-native-console": "12.1.1"
101
91
  },
102
92
  "devDependencies": {
103
- "@babel/core": "7.16.0",
104
- "@babel/preset-env": "7.16.4",
105
- "@types/react-native": "0.66.6",
93
+ "@babel/core": "7.16.7",
94
+ "@babel/preset-env": "7.16.7",
95
+ "@types/react-native": "0.66.11",
106
96
  "babel-preset-modern-browsers": "15.0.2",
107
- "pob-babel": "28.5.0",
108
- "rollup": "2.60.1",
109
- "typescript": "4.5.2"
97
+ "pob-babel": "29.6.1",
98
+ "typescript": "4.5.4"
110
99
  },
111
- "gitHead": "4d2ce31a142c2c4a3b8c5587ce1dc1a827f87bc5"
100
+ "gitHead": "719598e0a3d508801b18542a1054301200b62ed0"
112
101
  }
@@ -6,5 +6,22 @@
6
6
  },
7
7
  "plugins": ["@typescript-eslint"],
8
8
  "extends": ["@pob/eslint-config-typescript"],
9
- "ignorePatterns": ["*.d.ts"]
9
+ "ignorePatterns": ["*.d.ts"],
10
+ "overrides": [
11
+ {
12
+ "files": ["**/*.test.ts", "__tests__/**/*.ts"],
13
+ "extends": ["@pob/eslint-config-typescript/test"],
14
+ "env": {
15
+ "jest": true
16
+ },
17
+ "rules": {
18
+ "import/no-extraneous-dependencies": [
19
+ "error",
20
+ {
21
+ "devDependencies": true
22
+ }
23
+ ]
24
+ }
25
+ }
26
+ ]
10
27
  }
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var nightingale = require('nightingale');
6
- var nightingaleBrowserConsole = require('nightingale-browser-console');
7
- var nightingaleReactNativeConsole = require('nightingale-react-native-console');
8
- var reactNative = require('react-native');
9
-
10
- var appLogger = new nightingale.Logger('app');
11
- var ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
12
- reactNative.Platform.OS === 'web' ? nightingaleBrowserConsole.BrowserConsoleHandler : nightingaleReactNativeConsole.ReactNativeConsoleHandler;
13
- nightingale.configure(process.env.NODE_ENV === 'production' ? [] : [{
14
- pattern: /^app(:|$)/,
15
- handlers: [new ReactNativeConsoleHandlerForPlatform(nightingale.Level.DEBUG)],
16
- stop: true
17
- }, {
18
- handlers: [new ReactNativeConsoleHandlerForPlatform(nightingale.Level.INFO)]
19
- }]);
20
-
21
- exports.Level = nightingale.Level;
22
- exports.addConfig = nightingale.addConfig;
23
- exports.configure = nightingale.configure;
24
- exports.ReactNativeConsoleHandler = nightingaleReactNativeConsole.ReactNativeConsoleHandler;
25
- exports.ReactNativeConsoleHandlerForPlatform = ReactNativeConsoleHandlerForPlatform;
26
- exports.appLogger = appLogger;
27
- //# sourceMappingURL=index-browser-dev.cjs.js.map
@@ -1 +0,0 @@
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';\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":";;;;;;;;;IAQaA,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,20 +0,0 @@
1
- import { Logger, configure, Level } from 'nightingale';
2
- export { Level, addConfig, configure } from 'nightingale';
3
- import { BrowserConsoleHandler } from 'nightingale-browser-console';
4
- import { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
5
- export { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
- import { Platform } from 'react-native';
7
-
8
- var appLogger = new Logger('app');
9
- var ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
10
- Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;
11
- configure(process.env.NODE_ENV === 'production' ? [] : [{
12
- pattern: /^app(:|$)/,
13
- handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],
14
- stop: true
15
- }, {
16
- handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)]
17
- }]);
18
-
19
- export { ReactNativeConsoleHandlerForPlatform, appLogger };
20
- //# sourceMappingURL=index-browser-dev.es.js.map
@@ -1 +0,0 @@
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';\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":";;;;;;;IAQaA,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,20 +0,0 @@
1
- import { Logger, configure, Level } from 'nightingale';
2
- export { Level, addConfig, configure } from 'nightingale';
3
- import { BrowserConsoleHandler } from 'nightingale-browser-console';
4
- import { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
5
- export { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
6
- import { Platform } from 'react-native';
7
-
8
- const appLogger = new Logger('app');
9
- const ReactNativeConsoleHandlerForPlatform = // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
10
- Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;
11
- configure(process.env.NODE_ENV === 'production' ? [] : [{
12
- pattern: /^app(:|$)/,
13
- handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],
14
- stop: true
15
- }, {
16
- handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)]
17
- }]);
18
-
19
- export { ReactNativeConsoleHandlerForPlatform, appLogger };
20
- //# sourceMappingURL=index-browsermodern-dev.es.js.map
@@ -1 +0,0 @@
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';\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":";;;;;;;MAQaA,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;;;;"}