
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
@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');
var workspaceId; // from eventData
var activity; // from eventData
// 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.activityToFolder(fullActivity, settings.submittedFolder)) {
// Do something.
}
// You can also make sure the activity didn't come from a specific folder.
if (!$webhook.activityFromFolder(fullActivity, settings.submittedFolder)) {
// Do something else.
// $api.moveToFolder(approcvedfolder);
}
});
});
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 (ie: record moved from a folder into this one)
Returns whether the given activity is a move from the specified folder (ie: record moved from this folder this another one)
1.2.1 (2018-10-17)
<a name="1.2.0"></a>
FAQs
Helper library for working with Webhooks in Zengine backend plugins.
The npm package @zenginehq/backend-webhooks receives a total of 2 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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.