Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.

Commit 4b10ec0

Browse files
committed
fixed errors
1 parent 204225e commit 4b10ec0

5 files changed

Lines changed: 75 additions & 406 deletions

File tree

lib.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const _ = require('lodash');
22
const elasticsearch7x = require('./src/elasticitems7x');
3-
const itemsapi = require('./src/itemsapi');
43

54
/**
65
* data is json array of objects or stream
@@ -9,9 +8,7 @@ module.exports.import = function(data, options, schema) {
98

109
options = options || {}
1110

12-
if (options.engine === 'itemsapi') {
13-
return itemsapi.import(data, options, schema);
14-
} else if (options.engine === 'elasticsearch7x') {
11+
if (options.engine === 'elasticsearch7x') {
1512
return elasticsearch7x.import(data, options, schema);
1613
}
1714
}

package-lock.json

Lines changed: 73 additions & 153 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "elasticbulk",
3-
"version": "1.0.28",
3+
"version": "1.0.29",
44
"description": "Add data in bulk to ItemsAPI or Elasticsearch. It supports data streaming from PostgreSQL or filesystem",
55
"main": "lib.js",
66
"scripts": {
@@ -12,7 +12,6 @@
1212
"@elastic/elasticsearch": "^7.14.0",
1313
"bluebird": "^3.5.1",
1414
"is-stream": "^4.0.1",
15-
"itemsapi": "^2.1.0",
1615
"lodash": "^4.17.21"
1716
},
1817
"devDependencies": {

0 commit comments

Comments
 (0)