polarity-integration-utils 4.3.1 → 4.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../lib/logging/logger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AA2B5D;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,SAAS,GAAI,QAAQ,MAAM,SAEhC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,SAAS,cAAgB,CAAC;AAEhC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../lib/logging/logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAmB5D;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,SAAS,GAAI,QAAQ,MAAM,SAEhC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,SAAS,cAAgB,CAAC;AAEhC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
@@ -1,24 +1,16 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getLogger = exports.setLogger = void 0;
7
- const fs_1 = __importDefault(require("fs"));
8
- const createLogMethod = (loggingLevel) => (...content) => {
9
- if (content.length === 0)
10
- return true;
11
- fs_1.default.appendFileSync('devRunnerResults.json', '\n' + JSON.stringify({ SOURCE: `Logger.${loggingLevel}`, content }, null, 2));
12
- };
4
+ const noop = (..._args) => true;
13
5
  function createDefaultLogger() {
14
6
  const logger = {
15
7
  child: () => logger,
16
- trace: createLogMethod('trace'),
17
- debug: createLogMethod('debug'),
18
- info: createLogMethod('info'),
19
- warn: createLogMethod('warn'),
20
- error: createLogMethod('error'),
21
- fatal: createLogMethod('fatal')
8
+ trace: noop,
9
+ debug: noop,
10
+ info: noop,
11
+ warn: noop,
12
+ error: noop,
13
+ fatal: noop
22
14
  };
23
15
  return logger;
24
16
  }
@@ -1,24 +1,16 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getLogger = exports.setLogger = void 0;
7
- const fs_1 = __importDefault(require("fs"));
8
- const createLogMethod = (loggingLevel) => (...content) => {
9
- if (content.length === 0)
10
- return true;
11
- fs_1.default.appendFileSync('devRunnerResults.json', '\n' + JSON.stringify({ SOURCE: `Logger.${loggingLevel}`, content }, null, 2));
12
- };
4
+ const noop = (..._args) => true;
13
5
  function createDefaultLogger() {
14
6
  const logger = {
15
7
  child: () => logger,
16
- trace: createLogMethod('trace'),
17
- debug: createLogMethod('debug'),
18
- info: createLogMethod('info'),
19
- warn: createLogMethod('warn'),
20
- error: createLogMethod('error'),
21
- fatal: createLogMethod('fatal')
8
+ trace: noop,
9
+ debug: noop,
10
+ info: noop,
11
+ warn: noop,
12
+ error: noop,
13
+ fatal: noop
22
14
  };
23
15
  return logger;
24
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polarity-integration-utils",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "A utility library for building Polarity Integrations",
5
5
  "files": [
6
6
  "dist"