-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathwinston-transport+4.7.1.patch
48 lines (42 loc) · 1.47 KB
/
winston-transport+4.7.1.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff --git a/node_modules/winston-transport/legacy.js b/node_modules/winston-transport/legacy.js
index 6cc9522..26cda28 100644
--- a/node_modules/winston-transport/legacy.js
+++ b/node_modules/winston-transport/legacy.js
@@ -1,6 +1,5 @@
'use strict';
-const util = require('util');
const { LEVEL } = require('triple-beam');
const TransportStream = require('./modern');
@@ -38,11 +37,6 @@ const LegacyTransportStream = module.exports = function LegacyTransportStream(op
}
};
-/*
- * Inherit from TransportStream using Node.js built-ins
- */
-util.inherits(LegacyTransportStream, TransportStream);
-
/**
* Writes the info object to our transport instance.
* @param {mixed} info - TODO: add param description.
diff --git a/node_modules/winston-transport/modern.js b/node_modules/winston-transport/modern.js
index 37eeb3d..c05b973 100644
--- a/node_modules/winston-transport/modern.js
+++ b/node_modules/winston-transport/modern.js
@@ -1,7 +1,6 @@
'use strict';
-const util = require('util');
-const Writable = require('readable-stream/lib/_stream_writable.js');
+const { Writable } = require('stream');
const { LEVEL } = require('triple-beam');
/**
@@ -53,11 +52,6 @@ const TransportStream = module.exports = function TransportStream(options = {})
});
};
-/*
- * Inherit from Writeable using Node.js built-ins
- */
-util.inherits(TransportStream, Writable);
-
/**
* Writes the info object to our transport instance.
* @param {mixed} info - TODO: add param description.