Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Commit 2ceb79b

Browse files
committed
Updated to use the new version of ofuda.
1 parent 41ec0d0 commit 2ceb79b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lib/winston-crashlog.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ var CrashLog = exports.CrashLog = function (options) {
2020
this.name = 'CrashLog';
2121
this.client = new Ofuda(options);
2222

23+
this.credentials = {
24+
accessKeyId: options.accessKeyId,
25+
accessKeySecret: options.accessKeySecret
26+
};
27+
2328
this.level = options.level || 'error';
2429
this.notifierName = options.name || 'nodejsapp';
2530
this.notifierVersion = options.name || '0.0.1';
@@ -105,7 +110,7 @@ CrashLog.prototype._buildMessage = function (msg, meta) {
105110

106111
CrashLog.prototype._request = function (body, requestDate) {
107112

108-
return this.client.signHttpRequest(this._checkSumRequest({
113+
return this.client.signHttpRequest(this.credentials, this._checkSumRequest({
109114
method:'POST',
110115
host:this.host,
111116
port:this.port,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name":"winston-crashlog",
33
"description":"Winston transport for crashlog.io.",
4-
"version":"0.1.3",
4+
"version":"0.1.4",
55
"homepage":"https://github.com/wolfeidau/winston-crashlog",
66
"author":{
77
"name":"Mark Wolfe",
@@ -29,7 +29,7 @@
2929
},
3030
"dependencies":{
3131
"winston":"*",
32-
"ofuda":"*"
32+
"ofuda":"~0.3.0"
3333
},
3434
"devDependencies":{
3535
"grunt":"~0.3.17",

0 commit comments

Comments
 (0)