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

@elastic/elasticsearch

Package Overview
Dependencies
Maintainers
68
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic/elasticsearch - npm Package Compare versions

Comparing version 8.16.0 to 8.16.1

.tap/processinfo/10179d89-116d-4f2b-88ac-162c5926108e.json

21

lib/api/api/ingest.d.ts

@@ -18,2 +18,9 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';

/**
* Deletes an ip location database configuration
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.16/delete-ip-location-database-api.html | Elasticsearch API documentation}
*/
deleteIpLocationDatabase(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
deleteIpLocationDatabase(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
deleteIpLocationDatabase(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
/**
* Deletes one or more existing ingest pipeline.

@@ -40,2 +47,9 @@ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.16/delete-pipeline-api.html | Elasticsearch API documentation}

/**
* Returns the specified ip location database configuration
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.16/get-ip-location-database-api.html | Elasticsearch API documentation}
*/
getIpLocationDatabase(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
getIpLocationDatabase(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
getIpLocationDatabase(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
/**
* Returns information about one or more ingest pipelines. This API returns a local reference of the pipeline.

@@ -62,2 +76,9 @@ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.16/get-pipeline-api.html | Elasticsearch API documentation}

/**
* Puts the configuration for a ip location database to be downloaded
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.16/put-ip-location-database-api.html | Elasticsearch API documentation}
*/
putIpLocationDatabase(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
putIpLocationDatabase(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
putIpLocationDatabase(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
/**
* Creates or updates an ingest pipeline. Changes made using this API take effect immediately.

@@ -64,0 +85,0 @@ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ingest.html | Elasticsearch API documentation}

77

lib/api/api/ingest.js

@@ -54,2 +54,25 @@ "use strict";

}
async deleteIpLocationDatabase(params, options) {
const acceptedPath = ['id'];
const querystring = {};
const body = undefined;
params = params !== null && params !== void 0 ? params : {};
for (const key in params) {
if (acceptedPath.includes(key)) {
continue;
}
else if (key !== 'body') {
querystring[key] = params[key];
}
}
const method = 'DELETE';
const path = `/_ingest/ip_location/database/${encodeURIComponent(params.id.toString())}`;
const meta = {
name: 'ingest.delete_ip_location_database',
pathParts: {
id: params.id
}
};
return await this.transport.request({ path, method, querystring, body, meta }, options);
}
async deletePipeline(params, options) {

@@ -131,2 +154,33 @@ const acceptedPath = ['id'];

}
async getIpLocationDatabase(params, options) {
const acceptedPath = ['id'];
const querystring = {};
const body = undefined;
params = params !== null && params !== void 0 ? params : {};
for (const key in params) {
if (acceptedPath.includes(key)) {
continue;
}
else if (key !== 'body') {
querystring[key] = params[key];
}
}
let method = '';
let path = '';
if (params.id != null) {
method = 'GET';
path = `/_ingest/ip_location/database/${encodeURIComponent(params.id.toString())}`;
}
else {
method = 'GET';
path = '/_ingest/ip_location/database';
}
const meta = {
name: 'ingest.get_ip_location_database',
pathParts: {
id: params.id
}
};
return await this.transport.request({ path, method, querystring, body, meta }, options);
}
async getPipeline(params, options) {

@@ -222,2 +276,25 @@ const acceptedPath = ['id'];

}
async putIpLocationDatabase(params, options) {
const acceptedPath = ['id'];
const querystring = {};
const body = undefined;
params = params !== null && params !== void 0 ? params : {};
for (const key in params) {
if (acceptedPath.includes(key)) {
continue;
}
else if (key !== 'body') {
querystring[key] = params[key];
}
}
const method = 'PUT';
const path = `/_ingest/ip_location/database/${encodeURIComponent(params.id.toString())}`;
const meta = {
name: 'ingest.put_ip_location_database',
pathParts: {
id: params.id
}
};
return await this.transport.request({ path, method, querystring, body, meta }, options);
}
async putPipeline(params, options) {

@@ -224,0 +301,0 @@ const acceptedPath = ['id'];

9

package.json
{
"name": "@elastic/elasticsearch",
"version": "8.16.0",
"versionCanary": "8.16.0-canary.0",
"version": "8.16.1",
"versionCanary": "8.16.1-canary.0",
"description": "The official Elasticsearch client for Node.js",

@@ -9,3 +9,5 @@ "main": "./index.js",

"exports": {
"require": "./index.js"
"require": "./index.js",
"import": "./index.js",
"types": "./index.d.ts"
},

@@ -16,2 +18,3 @@ "scripts": {

"test:unit-bun": "bun run build && bunx tap",
"test:esm": "npm run build && cd test/esm/ && npm install && node test-import.mjs",
"test:coverage-100": "npm run build && tap --coverage --100",

@@ -18,0 +21,0 @@ "test:coverage-report": "npm run build && tap --coverage && nyc report --reporter=text-lcov > coverage.lcov",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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