nightingale-react-native-console 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,6 +1,6 @@
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
  "env": {
5
5
  "browser": true
6
6
  },
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
+ ## [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
+
20
+ ### Bug Fixes
21
+
22
+ * **nightingale-react-native-console:** always use console.log ([ad93004](https://github.com/christophehurpeau/nightingale/commit/ad93004db380994a0e378d57a67e64414e02b9bf)), closes [#241](https://github.com/christophehurpeau/nightingale/issues/241)
23
+
24
+
25
+
26
+
27
+
28
+ ## [11.7.2](https://github.com/christophehurpeau/nightingale/compare/v11.7.1...v11.7.2) (2021-11-27)
29
+
30
+ **Note:** Version bump only for package nightingale-react-native-console
31
+
32
+
33
+
34
+
35
+
36
+ ## [11.7.1](https://github.com/christophehurpeau/nightingale/compare/v11.7.0...v11.7.1) (2021-06-29)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * update pob-babel to bring back webpack 4 support ([4887431](https://github.com/christophehurpeau/nightingale/commit/4887431b3b272496511f879af022638723b9056e))
42
+
43
+
44
+
45
+
46
+
6
47
  # [11.7.0](https://github.com/christophehurpeau/nightingale/compare/v11.6.0...v11.7.0) (2021-03-29)
7
48
 
8
49
  **Note:** Version bump only for package nightingale-react-native-console
@@ -1,23 +1,28 @@
1
1
  import formatterANSI from 'nightingale-ansi-formatter';
2
- import consoleOutput from 'nightingale-console-output';
3
2
 
4
- const createHandle = () => {
5
- return record => {
6
- return consoleOutput([formatterANSI(record)], record);
3
+ function consoleOutput(param) {
4
+ var _console;
5
+
6
+ // eslint-disable-next-line no-console
7
+ (_console = console).log.apply(_console, param);
8
+ }
9
+
10
+ var createHandle = function createHandle() {
11
+ return function (record) {
12
+ consoleOutput([formatterANSI(record)]);
7
13
  };
8
14
  };
9
15
 
10
- class ReactNativeConsoleHandler {
11
- constructor(minLevel) {
12
- this.minLevel = 0;
13
- this.minLevel = minLevel;
14
-
15
- this.isHandling = level => level >= minLevel;
16
+ var ReactNativeConsoleHandler = function ReactNativeConsoleHandler(minLevel) {
17
+ this.minLevel = 0;
18
+ this.minLevel = minLevel;
16
19
 
17
- this.handle = createHandle();
18
- }
20
+ this.isHandling = function (level) {
21
+ return level >= minLevel;
22
+ };
19
23
 
20
- }
24
+ this.handle = createHandle();
25
+ };
21
26
 
22
27
  export { ReactNativeConsoleHandler };
23
28
  //# sourceMappingURL=index-browser-dev.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["import formatterANSI from 'nightingale-ansi-formatter';\nimport consoleOutput from 'nightingale-console-output';\nimport type {\n Level,\n Handle,\n IsHandling,\n LogRecord,\n Metadata,\n Handler,\n} from 'nightingale-types';\n\nconst createHandle = (): Handle => {\n return <T extends Metadata>(record: LogRecord<T>): void => {\n return consoleOutput([formatterANSI(record)], record);\n };\n};\n\nexport class ReactNativeConsoleHandler implements Handler {\n minLevel: Level = 0;\n\n handle: Handle;\n\n isHandling: IsHandling;\n\n constructor(minLevel: Level) {\n this.minLevel = minLevel;\n this.isHandling = (level: Level) => level >= minLevel;\n this.handle = createHandle();\n }\n}\n"],"names":["createHandle","record","consoleOutput","formatterANSI","ReactNativeConsoleHandler","constructor","minLevel","isHandling","level","handle"],"mappings":";;;AAWA,MAAMA,YAAY,GAAG,MAAc;AACjC,SAA4BC,MAArB,IAAoD;AACzD,WAAOC,aAAa,CAAC,CAACC,aAAa,CAACF,MAAD,CAAd,CAAD,EAA0BA,MAA1B,CAApB;AACD,GAFD;AAGD,CAJD;;AAMO,MAAMG,yBAAN,CAAmD;AAOxDC,EAAAA,WAAW,CAACC,QAAD,EAAkB;AAAA,SAN7BA,QAM6B,GANX,CAMW;AAC3B,SAAKA,QAAL,GAAgBA,QAAhB;;AACA,SAAKC,UAAL,GAAmBC,KAAD,IAAkBA,KAAK,IAAIF,QAA7C;;AACA,SAAKG,MAAL,GAAcT,YAAY,EAA1B;AACD;;AAXuD;;;;"}
1
+ {"version":3,"file":"index-browser-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["import formatterANSI from 'nightingale-ansi-formatter';\nimport type {\n Level,\n Handle,\n IsHandling,\n LogRecord,\n Metadata,\n Handler,\n} from 'nightingale-types';\n\nfunction consoleOutput<T extends Metadata>(\n param: string | string[],\n record: LogRecord<T>,\n): void {\n // eslint-disable-next-line no-console\n console.log(...param);\n}\n\nconst createHandle = (): Handle => {\n return <T extends Metadata>(record: LogRecord<T>): void => {\n consoleOutput([formatterANSI(record)], record);\n };\n};\n\nexport class ReactNativeConsoleHandler implements Handler {\n minLevel: Level = 0;\n\n handle: Handle;\n\n isHandling: IsHandling;\n\n constructor(minLevel: Level) {\n this.minLevel = minLevel;\n this.isHandling = (level: Level) => level >= minLevel;\n this.handle = createHandle();\n }\n}\n"],"names":["consoleOutput","param","console","log","createHandle","record","formatterANSI","ReactNativeConsoleHandler","minLevel","isHandling","level","handle"],"mappings":";;AAUA,SAASA,aAAT,CACEC,KADF,EAGQ;AAAA;;AACN;AACA,cAAAC,OAAO,EAACC,GAAR,iBAAeF,KAAf;AACD;;AAED,IAAMG,YAAY,GAAG,SAAfA,YAAe,GAAc;AACjC,SAAO,UAAqBC,MAArB,EAAoD;AACzDL,IAAAA,aAAa,CAAC,CAACM,aAAa,CAACD,MAAD,CAAd,CAAD,CAAb;AACD,GAFD;AAGD,CAJD;;IAMaE,yBAAb,GAOE,mCAAYC,QAAZ,EAA6B;AAAA,OAN7BA,QAM6B,GANX,CAMW;AAC3B,OAAKA,QAAL,GAAgBA,QAAhB;;AACA,OAAKC,UAAL,GAAkB,UAACC,KAAD;AAAA,WAAkBA,KAAK,IAAIF,QAA3B;AAAA,GAAlB;;AACA,OAAKG,MAAL,GAAcP,YAAY,EAA1B;AACD;;;;"}
@@ -1,23 +1,28 @@
1
1
  import formatterANSI from 'nightingale-ansi-formatter';
2
- import consoleOutput from 'nightingale-console-output';
3
2
 
4
- const createHandle = () => {
5
- return record => {
6
- return consoleOutput([formatterANSI(record)], record);
3
+ function consoleOutput(param) {
4
+ var _console;
5
+
6
+ // eslint-disable-next-line no-console
7
+ (_console = console).log.apply(_console, param);
8
+ }
9
+
10
+ var createHandle = function createHandle() {
11
+ return function (record) {
12
+ consoleOutput([formatterANSI(record)]);
7
13
  };
8
14
  };
9
15
 
10
- class ReactNativeConsoleHandler {
11
- constructor(minLevel) {
12
- this.minLevel = 0;
13
- this.minLevel = minLevel;
14
-
15
- this.isHandling = level => level >= minLevel;
16
+ var ReactNativeConsoleHandler = function ReactNativeConsoleHandler(minLevel) {
17
+ this.minLevel = 0;
18
+ this.minLevel = minLevel;
16
19
 
17
- this.handle = createHandle();
18
- }
20
+ this.isHandling = function (level) {
21
+ return level >= minLevel;
22
+ };
19
23
 
20
- }
24
+ this.handle = createHandle();
25
+ };
21
26
 
22
27
  export { ReactNativeConsoleHandler };
23
28
  //# sourceMappingURL=index-browser.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["import formatterANSI from 'nightingale-ansi-formatter';\nimport consoleOutput from 'nightingale-console-output';\nimport type {\n Level,\n Handle,\n IsHandling,\n LogRecord,\n Metadata,\n Handler,\n} from 'nightingale-types';\n\nconst createHandle = (): Handle => {\n return <T extends Metadata>(record: LogRecord<T>): void => {\n return consoleOutput([formatterANSI(record)], record);\n };\n};\n\nexport class ReactNativeConsoleHandler implements Handler {\n minLevel: Level = 0;\n\n handle: Handle;\n\n isHandling: IsHandling;\n\n constructor(minLevel: Level) {\n this.minLevel = minLevel;\n this.isHandling = (level: Level) => level >= minLevel;\n this.handle = createHandle();\n }\n}\n"],"names":["createHandle","record","consoleOutput","formatterANSI","ReactNativeConsoleHandler","constructor","minLevel","isHandling","level","handle"],"mappings":";;;AAWA,MAAMA,YAAY,GAAG,MAAc;AACjC,SAA4BC,MAArB,IAAoD;AACzD,WAAOC,aAAa,CAAC,CAACC,aAAa,CAACF,MAAD,CAAd,CAAD,EAA0BA,MAA1B,CAApB;AACD,GAFD;AAGD,CAJD;;AAMO,MAAMG,yBAAN,CAAmD;AAOxDC,EAAAA,WAAW,CAACC,QAAD,EAAkB;AAAA,SAN7BA,QAM6B,GANX,CAMW;AAC3B,SAAKA,QAAL,GAAgBA,QAAhB;;AACA,SAAKC,UAAL,GAAmBC,KAAD,IAAkBA,KAAK,IAAIF,QAA7C;;AACA,SAAKG,MAAL,GAAcT,YAAY,EAA1B;AACD;;AAXuD;;;;"}
1
+ {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["import formatterANSI from 'nightingale-ansi-formatter';\nimport type {\n Level,\n Handle,\n IsHandling,\n LogRecord,\n Metadata,\n Handler,\n} from 'nightingale-types';\n\nfunction consoleOutput<T extends Metadata>(\n param: string | string[],\n record: LogRecord<T>,\n): void {\n // eslint-disable-next-line no-console\n console.log(...param);\n}\n\nconst createHandle = (): Handle => {\n return <T extends Metadata>(record: LogRecord<T>): void => {\n consoleOutput([formatterANSI(record)], record);\n };\n};\n\nexport class ReactNativeConsoleHandler implements Handler {\n minLevel: Level = 0;\n\n handle: Handle;\n\n isHandling: IsHandling;\n\n constructor(minLevel: Level) {\n this.minLevel = minLevel;\n this.isHandling = (level: Level) => level >= minLevel;\n this.handle = createHandle();\n }\n}\n"],"names":["consoleOutput","param","console","log","createHandle","record","formatterANSI","ReactNativeConsoleHandler","minLevel","isHandling","level","handle"],"mappings":";;AAUA,SAASA,aAAT,CACEC,KADF,EAGQ;AAAA;;AACN;AACA,cAAAC,OAAO,EAACC,GAAR,iBAAeF,KAAf;AACD;;AAED,IAAMG,YAAY,GAAG,SAAfA,YAAe,GAAc;AACjC,SAAO,UAAqBC,MAArB,EAAoD;AACzDL,IAAAA,aAAa,CAAC,CAACM,aAAa,CAACD,MAAD,CAAd,CAAD,CAAb;AACD,GAFD;AAGD,CAJD;;IAMaE,yBAAb,GAOE,mCAAYC,QAAZ,EAA6B;AAAA,OAN7BA,QAM6B,GANX,CAMW;AAC3B,OAAKA,QAAL,GAAgBA,QAAhB;;AACA,OAAKC,UAAL,GAAkB,UAACC,KAAD;AAAA,WAAkBA,KAAK,IAAIF,QAA3B;AAAA,GAAlB;;AACA,OAAKG,MAAL,GAAcP,YAAY,EAA1B;AACD;;;;"}
@@ -1,9 +1,13 @@
1
1
  import formatterANSI from 'nightingale-ansi-formatter';
2
- import consoleOutput from 'nightingale-console-output';
2
+
3
+ function consoleOutput(param) {
4
+ // eslint-disable-next-line no-console
5
+ console.log(...param);
6
+ }
3
7
 
4
8
  const createHandle = () => {
5
9
  return record => {
6
- return consoleOutput([formatterANSI(record)], record);
10
+ consoleOutput([formatterANSI(record)]);
7
11
  };
8
12
  };
9
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"index-browsermodern-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["import formatterANSI from 'nightingale-ansi-formatter';\nimport consoleOutput from 'nightingale-console-output';\nimport type {\n Level,\n Handle,\n IsHandling,\n LogRecord,\n Metadata,\n Handler,\n} from 'nightingale-types';\n\nconst createHandle = (): Handle => {\n return <T extends Metadata>(record: LogRecord<T>): void => {\n return consoleOutput([formatterANSI(record)], record);\n };\n};\n\nexport class ReactNativeConsoleHandler implements Handler {\n minLevel: Level = 0;\n\n handle: Handle;\n\n isHandling: IsHandling;\n\n constructor(minLevel: Level) {\n this.minLevel = minLevel;\n this.isHandling = (level: Level) => level >= minLevel;\n this.handle = createHandle();\n }\n}\n"],"names":["createHandle","record","consoleOutput","formatterANSI","ReactNativeConsoleHandler","constructor","minLevel","isHandling","level","handle"],"mappings":";;;AAWA,MAAMA,YAAY,GAAG,MAAc;AACjC,SAA4BC,MAArB,IAAoD;AACzD,WAAOC,aAAa,CAAC,CAACC,aAAa,CAACF,MAAD,CAAd,CAAD,EAA0BA,MAA1B,CAApB;AACD,GAFD;AAGD,CAJD;;AAMO,MAAMG,yBAAN,CAAmD;AAOxDC,EAAAA,WAAW,CAACC,QAAD,EAAkB;AAAA,SAN7BA,QAM6B,GANX,CAMW;AAC3B,SAAKA,QAAL,GAAgBA,QAAhB;;AACA,SAAKC,UAAL,GAAmBC,KAAD,IAAkBA,KAAK,IAAIF,QAA7C;;AACA,SAAKG,MAAL,GAAcT,YAAY,EAA1B;AACD;;AAXuD;;;;"}
1
+ {"version":3,"file":"index-browsermodern-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["import formatterANSI from 'nightingale-ansi-formatter';\nimport type {\n Level,\n Handle,\n IsHandling,\n LogRecord,\n Metadata,\n Handler,\n} from 'nightingale-types';\n\nfunction consoleOutput<T extends Metadata>(\n param: string | string[],\n record: LogRecord<T>,\n): void {\n // eslint-disable-next-line no-console\n console.log(...param);\n}\n\nconst createHandle = (): Handle => {\n return <T extends Metadata>(record: LogRecord<T>): void => {\n consoleOutput([formatterANSI(record)], record);\n };\n};\n\nexport class ReactNativeConsoleHandler implements Handler {\n minLevel: Level = 0;\n\n handle: Handle;\n\n isHandling: IsHandling;\n\n constructor(minLevel: Level) {\n this.minLevel = minLevel;\n this.isHandling = (level: Level) => level >= minLevel;\n this.handle = createHandle();\n }\n}\n"],"names":["consoleOutput","param","console","log","createHandle","record","formatterANSI","ReactNativeConsoleHandler","constructor","minLevel","isHandling","level","handle"],"mappings":";;AAUA,SAASA,aAAT,CACEC,KADF,EAGQ;AACN;AACAC,EAAAA,OAAO,CAACC,GAAR,CAAY,GAAGF,KAAf;AACD;;AAED,MAAMG,YAAY,GAAG,MAAc;AACjC,SAA4BC,MAArB,IAAoD;AACzDL,IAAAA,aAAa,CAAC,CAACM,aAAa,CAACD,MAAD,CAAd,CAAD,CAAb;AACD,GAFD;AAGD,CAJD;;AAMO,MAAME,yBAAN,CAAmD;AAOxDC,EAAAA,WAAW,CAACC,QAAD,EAAkB;AAAA,SAN7BA,QAM6B,GANX,CAMW;AAC3B,SAAKA,QAAL,GAAgBA,QAAhB;;AACA,SAAKC,UAAL,GAAmBC,KAAD,IAAkBA,KAAK,IAAIF,QAA7C;;AACA,SAAKG,MAAL,GAAcR,YAAY,EAA1B;AACD;;AAXuD;;;;"}
@@ -1,9 +1,13 @@
1
1
  import formatterANSI from 'nightingale-ansi-formatter';
2
- import consoleOutput from 'nightingale-console-output';
2
+
3
+ function consoleOutput(param) {
4
+ // eslint-disable-next-line no-console
5
+ console.log(...param);
6
+ }
3
7
 
4
8
  const createHandle = () => {
5
9
  return record => {
6
- return consoleOutput([formatterANSI(record)], record);
10
+ consoleOutput([formatterANSI(record)]);
7
11
  };
8
12
  };
9
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"index-browsermodern.es.js","sources":["../src/index.ts"],"sourcesContent":["import formatterANSI from 'nightingale-ansi-formatter';\nimport consoleOutput from 'nightingale-console-output';\nimport type {\n Level,\n Handle,\n IsHandling,\n LogRecord,\n Metadata,\n Handler,\n} from 'nightingale-types';\n\nconst createHandle = (): Handle => {\n return <T extends Metadata>(record: LogRecord<T>): void => {\n return consoleOutput([formatterANSI(record)], record);\n };\n};\n\nexport class ReactNativeConsoleHandler implements Handler {\n minLevel: Level = 0;\n\n handle: Handle;\n\n isHandling: IsHandling;\n\n constructor(minLevel: Level) {\n this.minLevel = minLevel;\n this.isHandling = (level: Level) => level >= minLevel;\n this.handle = createHandle();\n }\n}\n"],"names":["createHandle","record","consoleOutput","formatterANSI","ReactNativeConsoleHandler","constructor","minLevel","isHandling","level","handle"],"mappings":";;;AAWA,MAAMA,YAAY,GAAG,MAAc;AACjC,SAA4BC,MAArB,IAAoD;AACzD,WAAOC,aAAa,CAAC,CAACC,aAAa,CAACF,MAAD,CAAd,CAAD,EAA0BA,MAA1B,CAApB;AACD,GAFD;AAGD,CAJD;;AAMO,MAAMG,yBAAN,CAAmD;AAOxDC,EAAAA,WAAW,CAACC,QAAD,EAAkB;AAAA,SAN7BA,QAM6B,GANX,CAMW;AAC3B,SAAKA,QAAL,GAAgBA,QAAhB;;AACA,SAAKC,UAAL,GAAmBC,KAAD,IAAkBA,KAAK,IAAIF,QAA7C;;AACA,SAAKG,MAAL,GAAcT,YAAY,EAA1B;AACD;;AAXuD;;;;"}
1
+ {"version":3,"file":"index-browsermodern.es.js","sources":["../src/index.ts"],"sourcesContent":["import formatterANSI from 'nightingale-ansi-formatter';\nimport type {\n Level,\n Handle,\n IsHandling,\n LogRecord,\n Metadata,\n Handler,\n} from 'nightingale-types';\n\nfunction consoleOutput<T extends Metadata>(\n param: string | string[],\n record: LogRecord<T>,\n): void {\n // eslint-disable-next-line no-console\n console.log(...param);\n}\n\nconst createHandle = (): Handle => {\n return <T extends Metadata>(record: LogRecord<T>): void => {\n consoleOutput([formatterANSI(record)], record);\n };\n};\n\nexport class ReactNativeConsoleHandler implements Handler {\n minLevel: Level = 0;\n\n handle: Handle;\n\n isHandling: IsHandling;\n\n constructor(minLevel: Level) {\n this.minLevel = minLevel;\n this.isHandling = (level: Level) => level >= minLevel;\n this.handle = createHandle();\n }\n}\n"],"names":["consoleOutput","param","console","log","createHandle","record","formatterANSI","ReactNativeConsoleHandler","constructor","minLevel","isHandling","level","handle"],"mappings":";;AAUA,SAASA,aAAT,CACEC,KADF,EAGQ;AACN;AACAC,EAAAA,OAAO,CAACC,GAAR,CAAY,GAAGF,KAAf;AACD;;AAED,MAAMG,YAAY,GAAG,MAAc;AACjC,SAA4BC,MAArB,IAAoD;AACzDL,IAAAA,aAAa,CAAC,CAACM,aAAa,CAACD,MAAD,CAAd,CAAD,CAAb;AACD,GAFD;AAGD,CAJD;;AAMO,MAAME,yBAAN,CAAmD;AAOxDC,EAAAA,WAAW,CAACC,QAAD,EAAkB;AAAA,SAN7BA,QAM6B,GANX,CAMW;AAC3B,SAAKA,QAAL,GAAgBA,QAAhB;;AACA,SAAKC,UAAL,GAAmBC,KAAD,IAAkBA,KAAK,IAAIF,QAA7C;;AACA,SAAKG,MAAL,GAAcR,YAAY,EAA1B;AACD;;AAXuD;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACN,UAAU,EAGV,OAAO,EACR,MAAM,mBAAmB,CAAC;AAQ3B,qBAAa,yBAA0B,YAAW,OAAO;IACvD,QAAQ,EAAE,KAAK,CAAK;IAEpB,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,UAAU,CAAC;gBAEX,QAAQ,EAAE,KAAK;CAK5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACN,UAAU,EAGV,OAAO,EACR,MAAM,mBAAmB,CAAC;AAgB3B,qBAAa,yBAA0B,YAAW,OAAO;IACvD,QAAQ,EAAE,KAAK,CAAK;IAEpB,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,UAAU,CAAC;gBAEX,QAAQ,EAAE,KAAK;CAK5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-react-native-console",
3
- "version": "11.7.0",
3
+ "version": "11.7.4",
4
4
  "description": "React Native and Expo handler for nightingale",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -16,23 +16,19 @@
16
16
  "directory": "packages/nightingale-react-native-console"
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": {
@@ -58,7 +54,7 @@
58
54
  "build:definitions": "tsc -p tsconfig.build.json",
59
55
  "clean": "rm -Rf docs dist test/node6 coverage",
60
56
  "lint": "yarn run lint:eslint",
61
- "lint:eslint": "yarn --cwd ../.. run eslint --ext .js,.mjs,.ts --report-unused-disable-directives --quiet packages/nightingale-react-native-console",
57
+ "lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-react-native-console",
62
58
  "watch": "pob-watch"
63
59
  },
64
60
  "prettier": {
@@ -87,27 +83,16 @@
87
83
  ]
88
84
  },
89
85
  "dependencies": {
90
- "nightingale-ansi-formatter": "^11.7.0",
91
- "nightingale-console-output": "^11.7.0",
92
- "nightingale-types": "^11.7.0"
86
+ "nightingale-ansi-formatter": "^11.7.4",
87
+ "nightingale-types": "^11.7.4"
93
88
  },
94
89
  "devDependencies": {
95
- "@babel/core": "7.13.10",
96
- "@babel/preset-env": "7.13.10",
97
- "@pob/eslint-config": "43.0.0",
98
- "@pob/eslint-config-node": "43.1.0",
99
- "@pob/eslint-config-typescript": "43.0.0",
100
- "@typescript-eslint/eslint-plugin": "4.19.0",
101
- "@typescript-eslint/parser": "4.19.0",
90
+ "@babel/core": "7.16.0",
91
+ "@babel/preset-env": "7.16.4",
102
92
  "babel-preset-modern-browsers": "15.0.2",
103
- "eslint": "7.23.0",
104
- "eslint-import-resolver-node": "0.3.4",
105
- "eslint-plugin-import": "2.22.1",
106
- "eslint-plugin-node": "11.1.0",
107
- "eslint-plugin-unicorn": "25.0.1",
108
- "pob-babel": "26.8.0",
109
- "rollup": "2.43.1",
110
- "typescript": "4.2.3"
93
+ "pob-babel": "28.5.0",
94
+ "rollup": "2.60.1",
95
+ "typescript": "4.5.2"
111
96
  },
112
- "gitHead": "cc85b26dbfce264e968f288517a1af98d6f5156d"
97
+ "gitHead": "70f6b4ba634ff778fc94bef7e2455e8b6a7db06a"
113
98
  }
@@ -0,0 +1,3 @@
1
+ import createRollupConfig from 'pob-babel/createRollupConfig.js';
2
+
3
+ export default createRollupConfig({});
package/src/index.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import formatterANSI from 'nightingale-ansi-formatter';
2
- import consoleOutput from 'nightingale-console-output';
3
2
  import type {
4
3
  Level,
5
4
  Handle,
@@ -9,9 +8,17 @@ import type {
9
8
  Handler,
10
9
  } from 'nightingale-types';
11
10
 
11
+ function consoleOutput<T extends Metadata>(
12
+ param: string | string[],
13
+ record: LogRecord<T>,
14
+ ): void {
15
+ // eslint-disable-next-line no-console
16
+ console.log(...param);
17
+ }
18
+
12
19
  const createHandle = (): Handle => {
13
20
  return <T extends Metadata>(record: LogRecord<T>): void => {
14
- return consoleOutput([formatterANSI(record)], record);
21
+ consoleOutput([formatterANSI(record)], record);
15
22
  };
16
23
  };
17
24