webhooks

v0.2.1arrow_drop_down
v0.2.1
v0.2.0
v0.1.7
v0.1.6
v0.1.5
v0.1.4
v0.1.3
v0.1.2
v0.1.1
v0.1.0
v0.0.2
v0.0.1
STATUS
None
DOWNLOADS
1,275
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
318 KB
4 contributors
Install webhooks as a package?
Copied
npm i @bit/bit.extensions.defaults.webhooks
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right

This extension registers to some of Bit’s core hooks and posts these events as web hooks.

The core hooks being registered

The core hooks registered are: post-receive-objects (post export), post-send-objects (post import), post-deprecate-remote, post-remove-remote.

Configuration

The extension expects a publisherBaseUrl config entry, which defines the address to which the events are posted as web hooks.

Web hooks

The events posted are publisherBaseUrl/export, publisherBaseUrl/import, publisherBaseUrl/deprecate, publisherBaseUrl/remove - each recieves the following json as payload:

{
    componentIds,
    scopeName
}

componentIds - an array of component ids.

Logs

Results and errors are be logged to the extension log.

Help and resources