2.1.0 • Published 4 years ago
inspira-notifications v2.1.0
inspira-notifications
NPM package usefull for sending Slack notifications to the Healthcheck
HOW TO USE
npm install --save inspira-notifications
Use shopify rest calls
import InspiraNotifications from 'inspira-notifications';
const inspiraNotifications = new InspiraNotifications();
// Send a message to healthChecks channel
inspiraNotifications.healthChecks.send(
{ message: <your string or object message>})
.catch((err) => { console.log( err)} )
.then((result) => { console.log(result)});
HOW TO PUBLISH
Push a change with a new version set in package.json and bitbucket pipeline will automatically publish a new npm package.
NOTE: To understand when the version number needs to change refer to npm documentation