@sprucelabs/sprucebot-node
Advanced tools
Comparing version 6.66.0 to 6.67.0
@@ -6,2 +6,14 @@ # Change Log | ||
<a name="6.67.0"></a> | ||
# [6.67.0](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/compare/v6.66.0...v6.67.0) (2018-09-04) | ||
### Features | ||
* add timeout to sb emit methods ([f7f3ca1](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/commit/f7f3ca1)) | ||
<a name="6.66.0"></a> | ||
@@ -8,0 +20,0 @@ # [6.66.0](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/compare/v6.65.2...v6.66.0) (2018-09-03) |
10
index.js
@@ -452,6 +452,7 @@ const Https = require('./https') | ||
*/ | ||
async emit(locationId, eventName, payload = {}) { | ||
async emit(locationId, eventName, payload = {}, options) { | ||
return this.https.post(`locations/${locationId}/emit`, { | ||
eventName, | ||
payload | ||
payload, | ||
options | ||
}) | ||
@@ -466,6 +467,7 @@ } | ||
*/ | ||
async emitOrganization(organizationId, eventName, payload = {}) { | ||
async emitOrganization(organizationId, eventName, payload = {}, options) { | ||
return this.https.post(`organizations/${organizationId}/emit`, { | ||
eventName, | ||
payload | ||
payload, | ||
options | ||
}) | ||
@@ -472,0 +474,0 @@ } |
@@ -28,3 +28,3 @@ const Sprucebot = require('./index') | ||
jest.setTimeout(10000) | ||
jest.setTimeout(20000) | ||
@@ -31,0 +31,0 @@ describe('API Tests', () => { |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "6.66.0", | ||
"version": "6.67.0", | ||
"description": "Jam with the Sprucebot API in your favorite scripting language. 🤓", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "9656b293d042fd25d3ce42de42a206fb35f2e84a" | ||
"gitHead": "2b04a4912ad74ddfb8d0bd6292e82bafce04473d" | ||
} |
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
383542
8349