nightingale-react-native-console 11.7.3 → 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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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
+
6
17
  ## [11.7.3](https://github.com/christophehurpeau/nightingale/compare/v11.7.2...v11.7.3) (2021-11-27)
7
18
 
8
19
 
@@ -1,9 +1,15 @@
1
1
  import formatterANSI from 'nightingale-ansi-formatter';
2
- import consoleOutput from 'nightingale-console-output';
2
+
3
+ function consoleOutput(param) {
4
+ var _console;
5
+
6
+ // eslint-disable-next-line no-console
7
+ (_console = console).log.apply(_console, param);
8
+ }
3
9
 
4
10
  var createHandle = function createHandle() {
5
11
  return function (record) {
6
- return consoleOutput([formatterANSI(record)], record);
12
+ consoleOutput([formatterANSI(record)]);
7
13
  };
8
14
  };
9
15
 
@@ -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","minLevel","isHandling","level","handle"],"mappings":";;;AAWA,IAAMA,YAAY,GAAG,SAAfA,YAAe,GAAc;AACjC,SAAO,UAAqBC,MAArB,EAAoD;AACzD,WAAOC,aAAa,CAAC,CAACC,aAAa,CAACF,MAAD,CAAd,CAAD,EAA0BA,MAA1B,CAApB;AACD,GAFD;AAGD,CAJD;;IAMaG,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,GAAcR,YAAY,EAA1B;AACD;;;;"}
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,9 +1,15 @@
1
1
  import formatterANSI from 'nightingale-ansi-formatter';
2
- import consoleOutput from 'nightingale-console-output';
2
+
3
+ function consoleOutput(param) {
4
+ var _console;
5
+
6
+ // eslint-disable-next-line no-console
7
+ (_console = console).log.apply(_console, param);
8
+ }
3
9
 
4
10
  var createHandle = function createHandle() {
5
11
  return function (record) {
6
- return consoleOutput([formatterANSI(record)], record);
12
+ consoleOutput([formatterANSI(record)]);
7
13
  };
8
14
  };
9
15
 
@@ -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","minLevel","isHandling","level","handle"],"mappings":";;;AAWA,IAAMA,YAAY,GAAG,SAAfA,YAAe,GAAc;AACjC,SAAO,UAAqBC,MAArB,EAAoD;AACzD,WAAOC,aAAa,CAAC,CAACC,aAAa,CAACF,MAAD,CAAd,CAAD,EAA0BA,MAA1B,CAApB;AACD,GAFD;AAGD,CAJD;;IAMaG,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,GAAcR,YAAY,EAA1B;AACD;;;;"}
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.3",
3
+ "version": "11.7.4",
4
4
  "description": "React Native and Expo handler for nightingale",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -83,8 +83,8 @@
83
83
  ]
84
84
  },
85
85
  "dependencies": {
86
- "nightingale-ansi-formatter": "^11.7.2",
87
- "nightingale-types": "^11.7.2"
86
+ "nightingale-ansi-formatter": "^11.7.4",
87
+ "nightingale-types": "^11.7.4"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@babel/core": "7.16.0",
@@ -94,5 +94,5 @@
94
94
  "rollup": "2.60.1",
95
95
  "typescript": "4.5.2"
96
96
  },
97
- "gitHead": "0dabc3c418b42f63ac53ce014291398e5f030af4"
97
+ "gitHead": "70f6b4ba634ff778fc94bef7e2455e8b6a7db06a"
98
98
  }