
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@catalist-nestjs/ipfs-http-client
Advanced tools
Simple http ipfs client. Part of [Catalist NestJS Modules](https://github.com/blockarchivelabs/catalist-nestjs-modules/#readme).
Simple http ipfs client. Part of Catalist NestJS Modules.
yarn add @catalist-nestjs/ipfs-http-client
This module depends on FetchModule
from @catalist-nestjs/fetch
, so you need to provide it as a global module or import it into IpfsModule
.
// Import
import { Module } from '@nestjs/common';
import { IpfsModule } from '@catalist-nestjs/offchain-key-storage-client';
import { FetchModule } from '@catalist-nestjs/fetch';
import { MyService } from './my.service';
@Module({
imports: [
IpfsModule.forFeature({
imports: [FetchModule],
url: 'http://127.0.0.1:5001/api/v0',
username: 'username',
password: 'password',
}),
],
providers: [MyService],
exports: [MyService],
})
export class MyModule {}
// Provider usage
import { IpfsGeneralService } from '@catalist-nestjs/offchain-key-storage-client';
export class MyService {
constructor(private ipfsService: IpfsGeneralService) {}
async myMethod() {
return await this.ipfsService.get(
'QmSJiSS956mnxk2UhWo5T7CqCebeDAS4BrnjuBM6VAeheT',
'http://127.0.0.1:5001/api/v0',
);
}
}
@Module({
imports: [
ConfigModule,
// FetchModule.forRoot(),
IpfsModule.forFeatureAsync({
imports: [CustomFetchModule],
async useFactory(config: ConfigService) {
return {
url: config.get('URL'),
username: config.get('USERNAME'),
password: config.get('PASSWORD'),
};
},
inject: [ConfigService],
}),
],
})
export class MyModule {}
import { Module } from '@nestjs/common';
import { IpfsModule } from '@catalist-nestjs/offchain-key-storage-client';
import { FetchModule } from '@catalist-nestjs/fetch';
@Module({
imports: [
IpfsModule.forRoot({
imports: [FetchModule],
url: 'http://127.0.0.1:5001/api/v0',
username: 'username',
password: 'password',
}),
// IpfsModule.forRootAsync({
// imports: [CustomFetchModule],
// async useFactory(config: ConfigService) {
// return {
// url: config.get('URL'),
// username: config.get('USERNAME'),
// password: config.get('PASSWORD'),
// };
// },
// inject: [ConfigService],
// }),
],
})
export class MyModule {}
Example of usage this library https://github.com/catalistfinance/catalist-offchain-key-lib-test.git
FAQs
Simple http ipfs client. Part of [Catalist NestJS Modules](https://github.com/blockarchivelabs/catalist-nestjs-modules/#readme).
We found that @catalist-nestjs/ipfs-http-client demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.