nightingale-app-react-native 12.1.4 → 14.0.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/CHANGELOG.md +41 -0
- package/README.md +3 -0
- package/dist/{index.d.ts → definitions/index.d.ts} +1 -1
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/index-browser.es.js.map +1 -1
- package/dist/index-browsermodern.es.js.map +1 -1
- package/package.json +32 -41
- package/src/index.ts +2 -2
- package/dist/index-browser.cjs.js +0 -25
- package/dist/index-browser.cjs.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/rollup.config.mjs +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
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
|
+
## [14.0.0](https://github.com/christophehurpeau/nightingale/compare/v13.0.0...v14.0.0) (2023-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ⚠ BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* **deps:** require node 18
|
|
12
|
+
* requires node 18
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* requires node 18 ([4452b11](https://github.com/christophehurpeau/nightingale/commit/4452b116188e58c293be85e462e04922f7ad51f0))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Miscellaneous Chores
|
|
20
|
+
|
|
21
|
+
* **deps:** update dependency @pob/root to v8 ([#760](https://github.com/christophehurpeau/nightingale/issues/760)) ([22dc3cc](https://github.com/christophehurpeau/nightingale/commit/22dc3cceabdfd465d04ee36fec8fdac31febab69))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [13.0.0](https://github.com/christophehurpeau/nightingale/compare/v12.1.4...v13.0.0) (2022-11-19)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Code Refactoring
|
|
29
|
+
|
|
30
|
+
* drop node 14 and cjs ([9a8ca06](https://github.com/christophehurpeau/nightingale/commit/9a8ca064449ddc0d69e26543e21c2d522536c50a))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* build for node 16 ([30ae3e9](https://github.com/christophehurpeau/nightingale/commit/30ae3e9c455dbad793c2f704b9d860069dc80c32))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### BREAKING CHANGES
|
|
39
|
+
|
|
40
|
+
* dropped node 14 and cjs
|
|
41
|
+
* drop node 14
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
## [12.1.4](https://github.com/christophehurpeau/nightingale/compare/v12.1.3...v12.1.4) (2022-02-05)
|
|
7
48
|
|
|
8
49
|
|
package/README.md
CHANGED
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<a href="https://npmjs.org/package/nightingale-app-react-native"><img src="https://img.shields.io/npm/v/nightingale-app-react-native.svg?style=flat-square"></a>
|
|
11
|
+
<a href="https://npmjs.org/package/nightingale-app-react-native"><img src="https://img.shields.io/npm/dw/nightingale-app-react-native.svg?style=flat-square"></a>
|
|
12
|
+
<a href="https://npmjs.org/package/nightingale-app-react-native"><img src="https://img.shields.io/node/v/nightingale-app-react-native.svg?style=flat-square"></a>
|
|
13
|
+
<a href="https://npmjs.org/package/nightingale-app-react-native"><img src="https://img.shields.io/npm/types/nightingale-app-react-native.svg?style=flat-square"></a>
|
|
11
14
|
</p>
|
|
12
15
|
|
|
13
16
|
## Install
|
|
@@ -3,5 +3,5 @@ import { BrowserConsoleHandler } from 'nightingale-browser-console';
|
|
|
3
3
|
import { ReactNativeConsoleHandler } from 'nightingale-react-native-console';
|
|
4
4
|
export { configure, addConfig, Level } from 'nightingale';
|
|
5
5
|
export declare const appLogger: Logger;
|
|
6
|
-
export declare const ReactNativeConsoleHandlerForPlatform: typeof
|
|
6
|
+
export declare const ReactNativeConsoleHandlerForPlatform: typeof BrowserConsoleHandler | typeof ReactNativeConsoleHandler;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;AAE1D,eAAO,MAAM,SAAS,QAAoB,CAAC;AAE3C,eAAO,MAAM,oCAAoC,EAC7C,OAAO,qBAAqB,GAC5B,OAAO,yBACgE,CAAC"}
|
|
@@ -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';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof
|
|
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';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof BrowserConsoleHandler\n | typeof ReactNativeConsoleHandler =\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":";;;;;;IAOaA,SAAS,GAAG,IAAIC,MAAM,CAAC,KAAK,EAAC;AAEnC,IAAMC,oCAEuB,GAClCC,QAAQ,CAACC,EAAE,KAAK,KAAK,GAAGC,qBAAqB,GAAGC,0BAAyB;AAE3EC,SAAS,CACPC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GACjC,EAAE,GACF,CACE;AACEC,EAAAA,OAAO,EAAE,WAAW;EACpBC,QAAQ,EAAE,CAAC,IAAIV,oCAAoC,CAACW,KAAK,CAACC,KAAK,CAAC,CAAC;AACjEC,EAAAA,IAAI,EAAE,IAAA;AACR,CAAC,EACD;EACEH,QAAQ,EAAE,CAAC,IAAIV,oCAAoC,CAACW,KAAK,CAACG,IAAI,CAAC,CAAA;AACjE,CAAC,CAET,CAAC;;;;"}
|
|
@@ -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';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof
|
|
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';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof BrowserConsoleHandler\n | typeof ReactNativeConsoleHandler =\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":";;;;;;MAOaA,SAAS,GAAG,IAAIC,MAAM,CAAC,KAAK,EAAC;AAEnC,MAAMC,oCAEuB,GAClCC,QAAQ,CAACC,EAAE,KAAK,KAAK,GAAGC,qBAAqB,GAAGC,0BAAyB;AAE3EC,SAAS,CACPC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GACjC,EAAE,GACF,CACE;AACEC,EAAAA,OAAO,EAAE,WAAW;EACpBC,QAAQ,EAAE,CAAC,IAAIV,oCAAoC,CAACW,KAAK,CAACC,KAAK,CAAC,CAAC;AACjEC,EAAAA,IAAI,EAAE,IAAA;AACR,CAAC,EACD;EACEH,QAAQ,EAAE,CAAC,IAAIV,oCAAoC,CAACW,KAAK,CAACG,IAAI,CAAC,CAAA;AACjE,CAAC,CAET,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nightingale-app-react-native",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"description": "React Native and Expo logger for application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nightingale",
|
|
@@ -17,14 +17,19 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/christophehurpeau/nightingale",
|
|
19
19
|
"type": "module",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18.12.0"
|
|
22
|
+
},
|
|
23
|
+
"browserslist": {
|
|
24
|
+
"production": [
|
|
25
|
+
"defaults",
|
|
26
|
+
"> 0.2%",
|
|
27
|
+
"not ie < 12",
|
|
28
|
+
"not safari < 10",
|
|
29
|
+
"not ios_saf < 10"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"types": "./dist/definitions/index.d.ts",
|
|
28
33
|
"module": "./dist/index-browser.es.js",
|
|
29
34
|
"browser": "./dist/index-browser.es.js",
|
|
30
35
|
"exports": {
|
|
@@ -34,41 +39,29 @@
|
|
|
34
39
|
"browser:modern": {
|
|
35
40
|
"import": "./dist/index-browsermodern.es.js"
|
|
36
41
|
},
|
|
37
|
-
"import": "./dist/index-browser.es.js"
|
|
38
|
-
"require": "./dist/index-browser.cjs.js"
|
|
42
|
+
"import": "./dist/index-browser.es.js"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
},
|
|
42
|
-
"module:modern-browsers": "./dist/index-browsermodern.es.js",
|
|
43
46
|
"sideEffects": false,
|
|
44
47
|
"scripts": {
|
|
45
|
-
"build": "
|
|
46
|
-
"build:definitions": "tsc -p tsconfig.
|
|
47
|
-
"clean": "
|
|
48
|
+
"build": "yarn clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
|
|
49
|
+
"build:definitions": "tsc -p tsconfig.json",
|
|
50
|
+
"clean": "yarn clean:build",
|
|
51
|
+
"clean:build": "pob-babel-clean-out dist",
|
|
48
52
|
"lint": "yarn run lint:eslint",
|
|
49
|
-
"lint:eslint": "
|
|
50
|
-
"watch": "
|
|
51
|
-
},
|
|
52
|
-
"prettier": {
|
|
53
|
-
"trailingComma": "all",
|
|
54
|
-
"singleQuote": true,
|
|
55
|
-
"arrowParens": "always"
|
|
53
|
+
"lint:eslint": "yarn ../.. run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-app-react-native",
|
|
54
|
+
"watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
|
|
56
55
|
},
|
|
56
|
+
"prettier": "@pob/root/prettier-config",
|
|
57
57
|
"pob": {
|
|
58
58
|
"babelEnvs": [
|
|
59
59
|
{
|
|
60
60
|
"target": "browser",
|
|
61
|
-
"version": "modern"
|
|
62
|
-
"formats": [
|
|
63
|
-
"es"
|
|
64
|
-
]
|
|
61
|
+
"version": "modern"
|
|
65
62
|
},
|
|
66
63
|
{
|
|
67
|
-
"target": "browser"
|
|
68
|
-
"formats": [
|
|
69
|
-
"cjs",
|
|
70
|
-
"es"
|
|
71
|
-
]
|
|
64
|
+
"target": "browser"
|
|
72
65
|
}
|
|
73
66
|
],
|
|
74
67
|
"entries": [
|
|
@@ -85,17 +78,15 @@
|
|
|
85
78
|
}
|
|
86
79
|
},
|
|
87
80
|
"dependencies": {
|
|
88
|
-
"nightingale": "
|
|
89
|
-
"nightingale-browser-console": "
|
|
90
|
-
"nightingale-react-native-console": "
|
|
81
|
+
"nightingale": "14.0.0",
|
|
82
|
+
"nightingale-browser-console": "14.0.0",
|
|
83
|
+
"nightingale-react-native-console": "14.0.0"
|
|
91
84
|
},
|
|
92
85
|
"devDependencies": {
|
|
93
|
-
"@babel/core": "7.
|
|
94
|
-
"@babel/preset-env": "7.
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"pob-babel": "30.0.1",
|
|
98
|
-
"typescript": "4.5.5"
|
|
86
|
+
"@babel/core": "7.22.5",
|
|
87
|
+
"@babel/preset-env": "7.22.5",
|
|
88
|
+
"pob-babel": "36.1.0",
|
|
89
|
+
"typescript": "5.1.6"
|
|
99
90
|
},
|
|
100
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "bc20e0f093a4fecd4d87f9374f6dbc375c09c25e"
|
|
101
92
|
}
|
package/src/index.ts
CHANGED
|
@@ -8,8 +8,8 @@ export { configure, addConfig, Level } from 'nightingale';
|
|
|
8
8
|
export const appLogger = new Logger('app');
|
|
9
9
|
|
|
10
10
|
export const ReactNativeConsoleHandlerForPlatform:
|
|
11
|
-
| typeof
|
|
12
|
-
| typeof
|
|
11
|
+
| typeof BrowserConsoleHandler
|
|
12
|
+
| typeof ReactNativeConsoleHandler =
|
|
13
13
|
Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;
|
|
14
14
|
|
|
15
15
|
configure(
|
|
@@ -1,25 +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 = reactNative.Platform.OS === 'web' ? nightingaleBrowserConsole.BrowserConsoleHandler : nightingaleReactNativeConsole.ReactNativeConsoleHandler;
|
|
12
|
-
nightingale.configure(process.env.NODE_ENV === 'production' ? [] : [{
|
|
13
|
-
pattern: /^app(:|$)/,
|
|
14
|
-
handlers: [new ReactNativeConsoleHandlerForPlatform(nightingale.Level.DEBUG)],
|
|
15
|
-
stop: true
|
|
16
|
-
}, {
|
|
17
|
-
handlers: [new ReactNativeConsoleHandlerForPlatform(nightingale.Level.INFO)]
|
|
18
|
-
}]);
|
|
19
|
-
|
|
20
|
-
exports.Level = nightingale.Level;
|
|
21
|
-
exports.addConfig = nightingale.addConfig;
|
|
22
|
-
exports.configure = nightingale.configure;
|
|
23
|
-
exports.ReactNativeConsoleHandlerForPlatform = ReactNativeConsoleHandlerForPlatform;
|
|
24
|
-
exports.appLogger = appLogger;
|
|
25
|
-
//# sourceMappingURL=index-browser.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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';\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":";;;;;;;;;IAOaA,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;;;;;;;;"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;AAE1D,eAAO,MAAM,SAAS,QAAoB,CAAC;AAE3C,eAAO,MAAM,oCAAoC,EAC7C,OAAO,yBAAyB,GAChC,OAAO,qBACgE,CAAC"}
|
package/rollup.config.mjs
DELETED