@autofleet/node-common 1.1.53 → 1.1.55

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/logger/index.js CHANGED
@@ -64,10 +64,10 @@ const getFormat = () => {
64
64
  };
65
65
 
66
66
  const createLoggerInstance = (level, exceptionHandlers) => {
67
- let transports = [new winston.transports.Console()];
68
- if (env.NODE_ENV === 'production') {
69
- transports = [loggingWinston];
70
- }
67
+ const transports = [new winston.transports.Console()];
68
+ // if (env.NODE_ENV === 'production') {
69
+ // transports = [loggingWinston];
70
+ // }
71
71
 
72
72
  const logger = createLogger({
73
73
  level,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/node-common",
3
- "version": "1.1.53",
3
+ "version": "1.1.55",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "coverage": "jest --coverage --forceExit --runInBand",
@@ -22,10 +22,8 @@
22
22
  },
23
23
  "homepage": "https://gitlab.com/AutoFleet/node-common#README",
24
24
  "dependencies": {
25
- "@google-cloud/logging-winston": "^0.10.1",
26
- "@google-cloud/monitoring": "^0.6.0",
27
- "@google-cloud/profiler": "^0.2.0",
28
- "@google-cloud/pubsub": "^0.19.0",
25
+ "@google-cloud/logging-winston": "^0.10.2",
26
+ "@google-cloud/pubsub": "^0.20.1",
29
27
  "axios": "^0.18.0",
30
28
  "axios-retry": "^3.1.0",
31
29
  "dotenv": "^5.0.1",
@@ -74,19 +74,19 @@ describe('Settings', () => {
74
74
 
75
75
 
76
76
  it('Use only one request for similar keys', async () => {
77
- const m = mockSetting('key1', 'value1');
77
+ const m = mockSetting('key1EM', 'value1EM');
78
78
  const settings = new Settings({
79
79
  serviceUrl: `http://${serviceUrl}/`,
80
80
  });
81
81
 
82
82
  const [value, value2] = await Promise.all([
83
- settings.get('key1', 'dv'),
84
- settings.get('key1', 'dv'),
83
+ settings.get('key1EM', 'dv'),
84
+ settings.get('key1EM', 'dv'),
85
85
  ]);
86
- expect(value).toEqual('value1');
86
+ expect(value).toEqual('value1EM');
87
87
  expect(m.isDone()).toBeTruthy();
88
88
 
89
- expect(value2).toEqual('value1');
89
+ expect(value2).toEqual('value1EM');
90
90
  });
91
91
 
92
92
  it('Finds with labels', async () => {