polarity-integration-utils 4.3.0 → 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.0",
3
+ "version": "4.3.2",
4
4
  "description": "A utility library for building Polarity Integrations",
5
5
  "files": [
6
6
  "dist"
@@ -86,7 +86,7 @@
86
86
  "devDependencies": {
87
87
  "@eslint/js": "^9.39.4",
88
88
  "@microsoft/api-extractor": "^7.57.7",
89
- "@polarityio/integration-types": "^2.0.0",
89
+ "@polarityio/integration-types": "^3.0.0",
90
90
  "@types/jest": "^30.0.0",
91
91
  "@types/lodash": "^4.17.24",
92
92
  "@types/node": "^20.14.8",
@@ -105,10 +105,10 @@
105
105
  },
106
106
  "dependencies": {
107
107
  "lodash": "^4.18.1",
108
- "postman-request": "^2.88.1-postman.48"
108
+ "postman-request": "2.88.1-postman.48"
109
109
  },
110
110
  "peerDependencies": {
111
- "@polarityio/integration-types": "^2.0.0"
111
+ "@polarityio/integration-types": "^3.0.0"
112
112
  },
113
113
  "sideEffects": false,
114
114
  "overrides": {