@nestjs/elasticsearch
Advanced tools
Comparing version 7.1.0 to 8.0.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ELASTICSEARCH_MODULE_OPTIONS = void 0; | ||
exports.ELASTICSEARCH_MODULE_OPTIONS = 'ELASTICSEARCH_MODULE_OPTIONS'; |
@@ -19,2 +19,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ElasticsearchModule = void 0; | ||
const common_1 = require("@nestjs/common"); | ||
@@ -21,0 +22,0 @@ const elasticsearch_constants_1 = require("./elasticsearch.constants"); |
@@ -15,2 +15,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ElasticsearchService = void 0; | ||
const elasticsearch_1 = require("@elastic/elasticsearch"); | ||
@@ -26,5 +27,6 @@ const common_1 = require("@nestjs/common"); | ||
common_1.Injectable(), | ||
__param(0, common_1.Optional()), __param(0, common_1.Inject(elasticsearch_constants_1.ELASTICSEARCH_MODULE_OPTIONS)), | ||
__param(0, common_1.Optional()), | ||
__param(0, common_1.Inject(elasticsearch_constants_1.ELASTICSEARCH_MODULE_OPTIONS)), | ||
__metadata("design:paramtypes", [Object]) | ||
], ElasticsearchService); | ||
exports.ElasticsearchService = ElasticsearchService; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./elasticsearch.module")); | ||
__export(require("./elasticsearch.service")); | ||
__exportStar(require("./elasticsearch.module"), exports); | ||
__exportStar(require("./elasticsearch.service"), exports); | ||
__exportStar(require("./interfaces"), exports); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./elasticsearch-module-options.interface"), exports); |
{ | ||
"name": "@nestjs/elasticsearch", | ||
"version": "7.1.0", | ||
"version": "8.0.0", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@elasticsearch)", | ||
@@ -19,23 +19,22 @@ "author": "Kamil Mysliwiec", | ||
"@elastic/elasticsearch": "^7.4.0", | ||
"@nestjs/common": "^6.0.0 || ^7.0.0", | ||
"rxjs": "^6.2.1" | ||
"@nestjs/common": "^6.0.0 || ^7.0.0 || ^8.0.0", | ||
"rxjs": "^6.2.1 || ^7.2.0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "8.3.5", | ||
"@commitlint/config-angular": "8.3.4", | ||
"@elastic/elasticsearch": "7.6.1", | ||
"@nestjs/common": "7.0.1", | ||
"@types/node": "13.9.1", | ||
"@typescript-eslint/eslint-plugin": "2.23.0", | ||
"@typescript-eslint/parser": "2.23.0", | ||
"eslint": "6.8.0", | ||
"eslint-config-prettier": "6.10.0", | ||
"eslint-plugin-import": "2.20.1", | ||
"husky": "4.2.3", | ||
"lint-staged": "10.0.8", | ||
"prettier": "1.19.1", | ||
"release-it": "13.1.1", | ||
"rxjs": "6.5.4", | ||
"rxjs-compat": "6.5.4", | ||
"typescript": "3.8.3" | ||
"@commitlint/cli": "12.1.4", | ||
"@commitlint/config-angular": "12.1.4", | ||
"@elastic/elasticsearch": "7.13.0", | ||
"@nestjs/common": "8.0.0", | ||
"@types/node": "14.17.4", | ||
"@typescript-eslint/eslint-plugin": "4.28.2", | ||
"@typescript-eslint/parser": "4.28.2", | ||
"eslint": "7.30.0", | ||
"eslint-config-prettier": "8.3.0", | ||
"eslint-plugin-import": "2.23.4", | ||
"husky": "7.0.1", | ||
"lint-staged": "11.0.0", | ||
"prettier": "2.3.2", | ||
"release-it": "14.10.0", | ||
"rxjs": "7.2.0", | ||
"typescript": "4.3.5" | ||
}, | ||
@@ -42,0 +41,0 @@ "lint-staged": { |
@@ -44,3 +44,3 @@ <p align="center"> | ||
imports: [ElasticsearchModule.register({ | ||
node: 'localhost:9200', | ||
node: 'http://localhost:9200', | ||
})], | ||
@@ -70,3 +70,3 @@ providers: [...], | ||
useFactory: () => ({ | ||
node: 'localhost:9200' | ||
node: 'http://localhost:9200' | ||
}) | ||
@@ -82,3 +82,3 @@ }); | ||
useFactory: async (configService: ConfigService) => ({ | ||
node: configService.getString('ELASTICSEARCH_NODE'), | ||
node: configService.get('ELASTICSEARCH_NODE'), | ||
}), | ||
@@ -103,3 +103,3 @@ inject: [ConfigService], | ||
return { | ||
node: 'localhost:9200' | ||
node: 'http://localhost:9200' | ||
}; | ||
@@ -106,0 +106,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19786
16
21
180