
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@ezraobiwale/dpd
Advanced tools
A Deployd frontend library
npm i @ezraobiwale/dpd
or
yarn add @ezraobiwale/dpd
This library allows you to decide which http and socket transports to use.
import dpd from '@ezraobiwale/dpd'
const server = dpd(httpTransport[, socketTransport])
Important Note
The httpTransport must have a request method that takes a single object parameter:
request({
method, // get | post | put | delete
url, // the request url
data // An object representing the data being sent
})
const collection = server.col('collection-name')
The collection object has methods get, post, put, del and exec.
collection.get({ $sort: { name: 1 } }) // get a list
collection.get('abcd1234') // get an item
collection.post({ name: 'John Doe' }) // creates new item
collection.put({ name: 'Jane Doe' }) // updates an item
collection.del('abcd1234') // deletes an item
**Note**
The response is always the returned value of the `request` method of the http transport.
### Socket Usage
Methods include `on`, `once`, `off` and `emit`:
#### on
```javascript
server.on('create', (/*...*/) => {
// do something
})
server.once('create', (/*...*/) => {
// do something
})
server.off('create', (/*...*/) => {
// do something
})
server.emit('notify', { /*...*/ })
import Vue from 'vue'
import { VueInstaller } from '@ezraobiwale/dpd'
Vue.use(VueInstaller, httpTransport [, socketTransport])
You can then access dpd as this.$dpd.
FAQs
A Deployd frontend library
We found that @ezraobiwale/dpd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.