
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@zenginehq/backend-webhooks
Advanced tools
Helper library for working with Webhooks in Zengine backend plugins.
Helper module for working with Webhooks in Zengine backend Plugins.
npm i @zenginehq/backend-webhooks --save
var $webhook = require('@zenginehq/backend-webhooks');
var $firebase = require('@zenginehq/backend-firebase');
var $api = require('@zenginehq/backend-http');
// Load settings from firebase.
$firebase.load(workspaceId).then(function (settings) {
if (!$webhook.validateSecret(settings, eventData.request)) {
return eventData.response.status(403).send('Invalid Webhook Key');
}
// Load activity.
return $api.getActivity(activity.id).then(function (fullActivity) {
if ($webhook.activityFolders(fullActivity, settings.submittedFolder)) {
// Do something.
}
});
});
Returns whether the webhook id and secret match what's stored in settings.
Out of the box expects the id to be stored in settings.webhookId
and the key in settings.webhookKey
.
You can customize this by calling $webhook.setIdField('myIdField)
and $webhook.setKeyField('myKeyField')
.
Returns whether the given activity is a move to the specified folder and optionally filter by whether it came from a certain folder too.
1.1.0 (2018-06-29)
<a name="1.0.0"></a>
FAQs
Helper library for working with Webhooks in Zengine backend plugins.
The npm package @zenginehq/backend-webhooks receives a total of 6 weekly downloads. As such, @zenginehq/backend-webhooks popularity was classified as not popular.
We found that @zenginehq/backend-webhooks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.