slack-node
Advanced tools
Comparing version 0.0.92 to 0.0.93
@@ -59,10 +59,6 @@ // Generated by CoffeeScript 1.7.1 | ||
}, function(err, body, response) { | ||
if (err || response !== "ok") { | ||
return callback(err, { | ||
status: "fail", | ||
response: response | ||
}); | ||
} | ||
return callback(err, { | ||
status: "ok", | ||
status: err || response !== "ok" ? "fail" : "ok", | ||
statusCode: body.statusCode, | ||
headers: body.headers, | ||
response: response | ||
@@ -69,0 +65,0 @@ }); |
@@ -31,3 +31,3 @@ // Generated by CoffeeScript 1.7.1 | ||
}); | ||
return it(',should send a correct response', function(done) { | ||
it(',should send a correct response', function(done) { | ||
return slack.webhook({ | ||
@@ -43,2 +43,14 @@ channel: "#general", | ||
}); | ||
return it(',should have status code and headers', function(done) { | ||
return slack.webhook({ | ||
channel: "#general", | ||
username: "webhookbot", | ||
text: "This is posted to #general and comes from a bot named webhookbot.", | ||
"icon_emoji": ":ghost:" | ||
}, function(err, response) { | ||
response.statusCode.should.be.a.Number; | ||
response.headers.should.be.an.Object; | ||
return done(); | ||
}); | ||
}); | ||
}); | ||
@@ -45,0 +57,0 @@ |
{ | ||
"name": "slack-node", | ||
"version": "0.0.92", | ||
"version": "0.0.93", | ||
"description": "slack for node verision, full support", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -82,2 +82,5 @@ slack-node-sdk | ||
* 0.0.93 | ||
* return header and status | ||
* 0.0.92 | ||
@@ -84,0 +87,0 @@ * merge slack emoji for webhook |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19638
179
91