Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
fh-wfm-message
Advanced tools
This module contains a message model representation and its related services :
This module is packaged in a CommonJS format, exporting the name of the Angular namespace. The module can be included in an angular.js as follows:
angular.module('app', [
, require('fh-wfm-message')
...
])
A sync manager must first be initialized using the messageSync.createManager()
. This can be placed, for instance, in the resolve
config of a ui-router
controlled application.
resolve: {
messageManager: function(messageSync) {
return messageSync.createManager();
}
}
For a more complete example, please check the demo portal app.
messageSync
APIThese messageSync API methods all return Promises:
messageSync method | Description |
---|---|
messageSync.manager.list | list all messages |
messageSync.manager.create(message) | create a message |
messageSync.manager.read(messageId) | read a message |
messageSync.manager.update(message) | update a message |
Name | Attributes |
---|---|
message-list | list, selectedModel |
message-form | value, workers |
message-detail | message |
The server-side component of this WFM module exports a function that takes express and mediator instances as parameters, as in:
var express = require('express')
, app = express()
, mbaasExpress = mbaasApi.mbaasExpress()
, mediator = require('fh-wfm-mediator/lib/mediator')
;
// configure the express app
...
// setup the wfm message sync server
require('fh-wfm-message/server')(mediator, app, mbaasExpress);
the module broadcasts, and listens for the following events
Listens for | Responds with |
---|---|
wfm:message:list | done:wfm:message:list |
wfm:message:read | done:wfm:message:read |
wfm:message:update | done:wfm:message:update |
wfm:message:create | done:wfm:message:create |
Check this demo cloud application
{
id: 1276001,
receiverId: "156340",
status: "unread",
sender: {
avatar:"https://s3.amazonaws.com/uifaces/faces/twitter/kolage/128.jpg",
name:"Trever Smith"
},
subject: 'Adress change w41',
content: 'hallo hallo'
}
FAQs
An message module for WFM
The npm package fh-wfm-message receives a total of 1 weekly downloads. As such, fh-wfm-message popularity was classified as not popular.
We found that fh-wfm-message demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.