Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nestjs-opensearch

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestjs-opensearch - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

3

interfaces/module-options.d.ts

@@ -0,1 +1,2 @@

import type { ModuleMetadata } from '@nestjs/common';
import type { ClientOptions } from '@opensearch-project/opensearch';

@@ -5,3 +6,3 @@ export interface OpensearchClientOptions extends ClientOptions {

}
export interface OpensearchAsyncClientOptions {
export interface OpensearchAsyncClientOptions extends Pick<ModuleMetadata, 'imports'> {
clientName?: string | symbol;

@@ -8,0 +9,0 @@ useFactory: (...args: any[]) => ClientOptions | Promise<ClientOptions>;

@@ -7,4 +7,8 @@ import { DynamicModule, OnApplicationShutdown } from '@nestjs/common';

private readonly clientMap;
static forRoot(options: OpensearchClientOptions | OpensearchClientOptions[]): DynamicModule;
static forRootAsync(options: OpensearchAsyncClientOptions | OpensearchAsyncClientOptions[]): DynamicModule;
static forRoot(options: OpensearchClientOptions): DynamicModule;
/** @deprecated Please call forRoot() multiple times instead of using an array */
static forRoot(options: OpensearchClientOptions[]): DynamicModule;
static forRootAsync(options: OpensearchAsyncClientOptions): DynamicModule;
/** @deprecated Please call forRootAsync() multiple times instead of using an array */
static forRootAsync(options: OpensearchAsyncClientOptions[]): DynamicModule;
private static buildProviders;

@@ -11,0 +15,0 @@ private static buildAsyncProviders;

@@ -37,2 +37,3 @@ "use strict";

module: OpensearchModule_1,
imports: Array.isArray(options) ? undefined : options.imports,
exports: providers,

@@ -39,0 +40,0 @@ providers,

{
"name": "nestjs-opensearch",
"version": "0.2.0",
"version": "0.3.0",
"author": "neoatlan",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1,3 +0,19 @@

# nestjs-opensearch
OpenSearch module for NestJS framework
<p align="center">
<a href="http://nestjs.com/"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
<h1 align="center">nestjs-opensearch</h1>
<p align="center">
OpenSearch module for NestJS framework
<br />
<a href="#installation"><strong>Installation</strong></a>
·
<a href="#usage"><strong>Usage</strong></a>
·
<a href="https://github.com/neoatlan/nestjs-opensearch/issues"><strong>Issues</strong></a>
<br />
<img src="https://img.shields.io/npm/v/nestjs-opensearch.svg" alt="NPM Version" />
<img src="https://img.shields.io/npm/l/nestjs-opensearch.svg" alt="Package License" />
<img src="https://img.shields.io/npm/dm/nestjs-opensearch.svg" alt="NPM Downloads" />
</p>
<br />
</p>

@@ -36,12 +52,10 @@ ## Installation

imports: [
OpensearchModule.forRoot([
{
clientName: 'foo',
node: 'https://*****.es.amazonaws.com',
},
{
clientName: 'bar',
node: 'https://*****.es.amazonaws.com',
},
]),
OpensearchModule.forRoot({
clientName: 'foo',
node: 'https://*****.es.amazonaws.com',
}),
OpensearchModule.forRoot({
clientName: 'bar',
node: 'https://*****.es.amazonaws.com',
}),
],

@@ -48,0 +62,0 @@ providers: (...),

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc