@johnmmackey/ms-utils 3.3.2 → 3.3.3
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/CHANGELOG.md +4 -0
- package/lib/mail.js +1 -1
- package/lib/winston-mslogger.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/lib/mail.js
CHANGED
|
@@ -70,7 +70,7 @@ module.exports = async function (recipients, options) {
|
|
|
70
70
|
// Send it to queue here
|
|
71
71
|
if (!aC.ch)
|
|
72
72
|
throw new Error('No current AMQP channel available');
|
|
73
|
-
aC.ch.sendToQueue('email', new Buffer(JSON.stringify(msg)));
|
|
73
|
+
aC.ch.sendToQueue('email', new Buffer.from(JSON.stringify(msg)));
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
function writeKey(v, type) {
|
package/lib/winston-mslogger.js
CHANGED
|
@@ -41,7 +41,7 @@ module.exports = function(winston, serviceName, existingConnectionManager) {
|
|
|
41
41
|
|
|
42
42
|
MSLogger.prototype.log = function (level, msg, meta, callback) {
|
|
43
43
|
cm.sendToQueue( 'logger',
|
|
44
|
-
new Buffer(msg + (isEmpty(meta) ? '' : ' ' + JSON.stringify(meta))),
|
|
44
|
+
new Buffer.from(msg + (isEmpty(meta) ? '' : ' ' + JSON.stringify(meta))),
|
|
45
45
|
{headers: {level: level || 'debug', createdBy: serviceName || '', created: Date.now()}}
|
|
46
46
|
)
|
|
47
47
|
callback(null, true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnmmackey/ms-utils",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"description": "Utility functions for Microservice Architecture",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"homepage": "https://bitbucket.org/52westlabs/ms-utils#readme",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@johnmmackey/amqp-utils": "^1.3.
|
|
17
|
+
"@johnmmackey/amqp-utils": "^1.3.2",
|
|
18
18
|
"etcd3": "^1.1.0",
|
|
19
19
|
"redis": "^3.0.2",
|
|
20
20
|
"uuid": "^8.3.2"
|