
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@cuser/reader
Advanced tools
+ new CuserReader(core: CuserCore, peerId: string | Promise<string>, opts?: CuserReaderOptions): CuserReader
Defined in reader/reader.js:32
| Name | Type | Default value |
|---|---|---|
core | CuserCore | - |
peerId | string | Promise<string> | - |
opts | CuserReaderOptions | {} |
Returns: CuserReader
▸ Private_resolveRootMessage(topicId: string): Promise<string>
Defined in reader/reader.js:118
Get the root message for a certain topicId
| Name | Type |
|---|---|
topicId | string |
Returns: Promise<string>
▸ getMessage(cid: string): Promise<GraphMessage>
Defined in reader/reader.js:108
Gets the message from ipfs using the CID given by parameter
| Name | Type |
|---|---|
cid | string |
Returns: Promise<GraphMessage>
▸ getMessages(topicId: string, opts: CuserReaderMessagesIteratorOptions): Promise<CuserReaderMessageIteratorResult[]> | AsyncIterable<CuserReaderMessageIteratorResult>
Defined in reader/reader.js:76
Gets messages from ipfs layer
example
const messages = reader.getMessages('custom_topic_id');
console.log(messages);
const messages = reader.getMessages('custom_topic_id', {
iterator: true,
});
for await (let value of messages) {
console.log(value);
}
| Name | Type |
|---|---|
topicId | string |
opts | CuserReaderMessagesIteratorOptions |
Returns: Promise<CuserReaderMessageIteratorResult[]> | AsyncIterable<CuserReaderMessageIteratorResult>
FAQs
messages reader from the ipfs transport layer
We found that @cuser/reader 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 compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.