
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
patch-profile
Advanced tools
A module for editing your (or other people's) profiles in patch-* family apps. Edits names or images.
You'll need to understand depject (a module for a different way of managing dependency injection), and for hte example below, depnest - a lazy way to write nested objects quickly.
const nest = require('depnest')
const { h } = require('mutant')
exports.gives = nest('app.page.userEdit')
exports.needs = nest({
'about.page.edit': 'first',
'history.sync.push': 'first',
})
exports.create = (api) => {
return nest('app.page.userEdit', userEdit)
function userEdit (location) {
// location is an object { feed, page: 'userEdit' }
const options = { feed: location.feed }
const callback = (err, didEdit) => {
if (err) throw new Error ('Error editing profile', err)
if (didEdit) console.log('Profile updated!')
// go back to the users profile
api.history.sync.push({ page: 'userShow', feed })
}
return h('Page -userEdit', {}, [
h('div.container', [
api.about.page.edit(options, callback)
])
])
}
}
about.page.edit(options=object, callback=function)
Where target is of the form { feed='@....', labels=object }
labels (optional) can be used to over-ride labels for translations: { name, image, cancel, save }
callback (optional) will be called after a user confirms or cancels changes. It has signature (err, didEdit=boolean), where didEdit == true if an edit was published.
styles.mcssPatch-profile exports basic mcss styles. See Patchbay for examples of how this can be integrated into an app.
FAQs
A simple profile editing page for patch-* family apps
We found that patch-profile 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.