@barbershopio/sprucebot-node
Advanced tools
Comparing version 2.0.1 to 2.0.2
13
index.js
@@ -478,17 +478,6 @@ const Https = require('./https') | ||
validateEventContract(eventContract) { | ||
if ( | ||
!eventContract || | ||
!eventContract.events || | ||
!eventContract.events.publish || | ||
!eventContract.events.subscribe | ||
) { | ||
if (!eventContract || !eventContract.events) { | ||
console.warn( | ||
'⚠️ The event contract is invalid. Check your config/default.js file. The "eventContracts" key must be of the form:' | ||
) | ||
console.log({ | ||
events: { | ||
publish: [], | ||
subscribe: [] | ||
} | ||
}) | ||
throw new Error('INVALID_EVENT_CONTRACT') | ||
@@ -495,0 +484,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": | ||
@@ -9,0 +9,0 @@ "Jam with the Sprucebot API in your favorite scripting language. 🤓", |
499945
8239