Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
nestjs-opensearch
Advanced tools
OpenSearch (alternative to Elasticsearch) module for NestJS framework
OpenSearch (alternative to Elasticsearch) module for NestJS framework
For NPM:
$ npm i --save nestjs-opensearch @opensearch-project/opensearch
For Yarn:
$ yarn add nestjs-opensearch @opensearch-project/opensearch
Module for only one connection:
import { OpensearchModule } from 'nestjs-opensearch';
@Module({
imports: [
OpensearchModule.forRoot({
node: 'https://*****.es.amazonaws.com',
}),
],
providers: (...),
})
export class SearchModule { }
Module for multiple connection:
import { OpensearchModule } from 'nestjs-opensearch';
@Module({
imports: [
OpensearchModule.forRoot([
{
clientName: 'foo',
node: 'https://*****.es.amazonaws.com',
},
{
clientName: 'bar',
node: 'https://*****.es.amazonaws.com',
},
]),
],
providers: (...),
})
export class SearchModule { }
Client injection:
import { InjectOpensearchClient, OpensearchClient } from 'nestjs-opensearch';
@Injectable()
export class SearchService {
public constructor(
// For default
private readonly searchClient: OpensearchClient,
// Also for default
@InjectOpensearchClient() private readonly searchClient: OpensearchClient,
// For 'foo' client
@InjectOpensearchClient('foo') private readonly searchClient: OpensearchClient,
) { }
}
FAQs
OpenSearch module for NestJS framework
The npm package nestjs-opensearch receives a total of 17,651 weekly downloads. As such, nestjs-opensearch popularity was classified as popular.
We found that nestjs-opensearch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.