Skip to content

Commit

Permalink
Merge pull request #1382 from SciCatProject/dependabot/npm_and_yarn/e…
Browse files Browse the repository at this point in the history
…lastic/elasticsearch-8.15.0

build(deps): bump @elastic/elasticsearch from 8.13.1 to 8.15.0
  • Loading branch information
github-actions[bot] authored Aug 30, 2024
2 parents d0e24ce + a7558f4 commit 9d223b6
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 28 deletions.
48 changes: 23 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@casl/ability": "^6.3.2",
"@elastic/elasticsearch": "^8.9.0",
"@elastic/elasticsearch": "^8.15.0",
"@nestjs-modules/mailer": "^2.0.2",
"@nestjs/axios": "^3.0.0",
"@nestjs/common": "^10.3.8",
Expand Down Expand Up @@ -118,6 +118,9 @@
"wait-on": "^8.0.0"
},
"jest": {
"setupFilesAfterEnv": [
"../test/config/jest.setup.js"
],
"moduleFileExtensions": [
"js",
"json",
Expand Down
2 changes: 1 addition & 1 deletion src/elastic-search/elastic-search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export class ElasticSearchService implements OnModuleInit {
limit = 20,
skip = 0,
sort?: Record<string, SortOrder>,
): Promise<{ totalCount: number; data: string[] }> {
): Promise<{ totalCount: number; data: (string | undefined)[] }> {
const defaultMinScore = searchParam.text ? 1 : 0;

try {
Expand Down
2 changes: 1 addition & 1 deletion test/config/jest-e2e.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"setupFilesAfterEnv": ["./test/config/jest.setup.js"],
"moduleFileExtensions": ["js", "json", "ts"],
"rootDir": "../../",
"testTimeout": 30000,
Expand All @@ -16,5 +17,4 @@
"isolatedModules": true
}
}

}
2 changes: 2 additions & 0 deletions test/config/jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-disable @typescript-eslint/no-var-requires */
global.ReadableStream = require("node:stream/web").ReadableStream;

0 comments on commit 9d223b6

Please sign in to comment.