@loopback/logging 0.7.0 → 0.8.1

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/dist/fluent.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Getter, Provider } from '@loopback/core';
2
2
  import { FluentSender, Options } from 'fluent-logger';
3
- import TransportStream = require('winston-transport');
3
+ import TransportStream from 'winston-transport';
4
4
  export { FluentSender } from 'fluent-logger';
5
5
  /**
6
6
  * Provider for FluentSender
package/dist/fluent.js CHANGED
@@ -9,9 +9,9 @@ const tslib_1 = require("tslib");
9
9
  const core_1 = require("@loopback/core");
10
10
  const fluent_logger_1 = require("fluent-logger");
11
11
  const keys_1 = require("./keys");
12
- const fluent = require('fluent-logger');
13
- var fluent_logger_2 = require("fluent-logger");
14
- Object.defineProperty(exports, "FluentSender", { enumerable: true, get: function () { return fluent_logger_2.FluentSender; } });
12
+ const fluent_logger_2 = (0, tslib_1.__importDefault)(require("fluent-logger"));
13
+ var fluent_logger_3 = require("fluent-logger");
14
+ Object.defineProperty(exports, "FluentSender", { enumerable: true, get: function () { return fluent_logger_3.FluentSender; } });
15
15
  /**
16
16
  * Provider for FluentSender
17
17
  */
@@ -49,7 +49,7 @@ let FluentTransportProvider = class FluentTransportProvider {
49
49
  if (options == null) {
50
50
  throw new Error(`Fluent is not configured. Please configure ${this.binding.key}.`);
51
51
  }
52
- const winstonTransportClass = fluent.support.winstonTransport();
52
+ const winstonTransportClass = fluent_logger_2.default.support.winstonTransport();
53
53
  return new winstonTransportClass('LoopBack', options);
54
54
  }
55
55
  };
@@ -1 +1 @@
1
- {"version":3,"file":"fluent.js","sourceRoot":"","sources":["../src/fluent.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAyE;AACzE,iDAAwE;AACxE,iCAAuC;AACvC,MAAM,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC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AAC;SACH;QACD,MAAM,qBAAqB,GAAG,uBAAM,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAChE,OAAO,IAAI,qBAAqB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF,CAAA;AAZC;IADC,aAAM,CAAC,OAAO,EAAE;2CACA,cAAO;wDAAU;AAPvB,uBAAuB;IAE/B,wBAAA,aAAM,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,sBAAe,CAAC,aAAa,EAAC,CAAC,CAAA;;GAFnD,uBAAuB,CAmBnC;AAnBY,0DAAuB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loopback/logging",
3
3
  "description": "An extension exposes logging for Winston and Fluentd with LoopBack 4",
4
- "version": "0.7.0",
4
+ "version": "0.8.1",
5
5
  "keywords": [
6
6
  "LoopBack",
7
7
  "Cloud Native",
@@ -40,24 +40,24 @@
40
40
  "templates"
41
41
  ],
42
42
  "peerDependencies": {
43
- "@loopback/core": "^3.0.0",
44
- "@loopback/rest": "^11.0.0"
43
+ "@loopback/core": "^3.1.1",
44
+ "@loopback/rest": "^11.1.1"
45
45
  },
46
46
  "dependencies": {
47
47
  "fluent-logger": "^3.4.1",
48
48
  "morgan": "^1.10.0",
49
49
  "tslib": "^2.3.1",
50
- "winston": "^3.3.3",
51
- "winston-transport": "^4.4.0"
50
+ "winston": "^3.6.0",
51
+ "winston-transport": "^4.5.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@loopback/build": "^8.0.0",
55
- "@loopback/core": "^3.0.0",
56
- "@loopback/eslint-config": "^12.0.0",
57
- "@loopback/rest": "^11.0.0",
58
- "@loopback/testlab": "^4.0.0",
54
+ "@loopback/build": "^8.1.1",
55
+ "@loopback/core": "^3.1.1",
56
+ "@loopback/eslint-config": "^12.0.3",
57
+ "@loopback/rest": "^11.1.1",
58
+ "@loopback/testlab": "^4.1.1",
59
59
  "@types/morgan": "^1.9.3",
60
- "@types/node": "^10.17.60"
60
+ "@types/node": "^12.20.46"
61
61
  },
62
- "gitHead": "00a62f630c19341ce399cec3a45563b1ead6e3b8"
62
+ "gitHead": "8aff2ce33aad3daa53b05fa0fbe8a1b2c7ad0bdf"
63
63
  }
package/src/fluent.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  import {Binding, config, Getter, inject, Provider} from '@loopback/core';
7
7
  import {createFluentSender, FluentSender, Options} from 'fluent-logger';
8
8
  import {LoggingBindings} from './keys';
9
- const fluent = require('fluent-logger');
10
- import TransportStream = require('winston-transport');
9
+ import fluent from 'fluent-logger';
10
+ import TransportStream from 'winston-transport';
11
11
 
12
12
  export {FluentSender} from 'fluent-logger';
13
13