Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@metaid/cooler-metaid
Advanced tools
Cooler MetaID is a library for MetaID protocol. It provides a set of functions to manage the DID document and the DID transaction.
Cooler MetaID is a RESTful-like domain protocol based on Microvision Chain and MetaID DID protocol. Developers can use Cooler MetaID to create his own domain resource.
The API examples listed here are still under development.
import { define, use } from '@metaid/cooler-metaid'
// define api returns a class represents what the domain is.
const Buzz = define('buzz', {
//...
})
// use api returns a class represents what the domain is. (using existing domain)
const Buzz = use('buzz')
const GroupMessage = use('group-message')
// list
const buzzes = Buzz.list()
// list filtered by query
const buzzes = Buzz.list({
where: {
title: 'Hello World',
},
})
// auth
await Buzz.login('0x1234567890') // metaid or address
await Buzz.logout()
// my list
Buzz.login('0x1234567890') // metaid or address
const myBuzzes = Buzz.myList()
// has root
Buzz.login('0x1234567890') // metaid or address
const hasRoot: boolean = Buzz.hasRoot()
// create container
Buzz.login('0x1234567890') // metaid or address
await Buzz.hasRoot()
// get one
const buzz = Buzz.one('0x1234567890') // txid
const buzz = Buzz.first('0x1234567890') // or use alias `first`
const buzz = Buzz.get('0x1234567890') // ...or `get`
const buzz = Buzz.one({
where: {
title: 'Hello World',
},
})
// create
const newBuzz = Buzz.create({
title: 'Hello World',
content: 'This is my first buzz',
})
// update
const updatedBuzz = Buzz.update('0x1234567890', {
title: 'Hello World',
content: 'This is my first buzz',
})
// or update one existing resource
const oldBuzz = Buzz.get('0x1234567890')
const updatedBuzz = oldBuzz.update({
title: 'Hello World',
content: 'This is my first buzz',
})
// delete
const deletedBuzz = Buzz.delete('0x1234567890')
// or delete one existing resource
oldBuzz.delete()
FAQs
Cooler MetaID is a library for MetaID protocol. It provides a set of functions to manage the DID document and the DID transaction.
We found that @metaid/cooler-metaid 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.