nightingale-app-react-native 11.7.1 → 11.7.2

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,14 @@
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.2](https://github.com/christophehurpeau/nightingale/compare/v11.7.1...v11.7.2) (2021-11-27)
7
+
8
+ **Note:** Version bump only for package nightingale-app-react-native
9
+
10
+
11
+
12
+
13
+
6
14
  ## [11.7.1](https://github.com/christophehurpeau/nightingale/compare/v11.7.0...v11.7.1) (2021-06-29)
7
15
 
8
16
 
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.
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.7.2",
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.7.2",
99
+ "nightingale-browser-console": "^11.7.2",
100
+ "nightingale-react-native-console": "^11.7.2"
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": "00b1ec6c7468b320e268a12eaac70d59a177787b"
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