From d9b9a37747d843e0139c7e2b67c92364da5228a4 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Tue, 18 Apr 2023 21:34:51 -0400 Subject: [PATCH] Update to @opensearch-project/opensearch 2.2.1 Drop workaround for opensearch-project/opensearch-js#377, which has been fixed upstream. --- index.ts | 2 -- package-lock.json | 8 ++++---- package.json | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/index.ts b/index.ts index 66ec3b9..99d9c49 100644 --- a/index.ts +++ b/index.ts @@ -39,8 +39,6 @@ export const search = memoizee( options, AwsSigv4Signer({ region, - // @ts-expect-error: service is missing from type definition; - // fixed in https://github.com/opensearch-project/opensearch-js/pull/377 service, }) ) diff --git a/package-lock.json b/package-lock.json index a7ae2ff..51a1c1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@architect/functions": "^5.3.4", "@aws-sdk/credential-provider-node": "3.188.0", - "@opensearch-project/opensearch": "^2.2.0", + "@opensearch-project/opensearch": "^2.2.1", "memoizee": "^0.4.15" }, "devDependencies": { @@ -869,9 +869,9 @@ } }, "node_modules/@opensearch-project/opensearch": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@opensearch-project/opensearch/-/opensearch-2.2.0.tgz", - "integrity": "sha512-E0f2Hooruz9y+17AF69oyyruikVMAEr1TxcQBNEQV4aQnI3o0+6CjqZS+t94SCZdWRTuN7HjIIVGbaYCJDpxgA==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@opensearch-project/opensearch/-/opensearch-2.2.1.tgz", + "integrity": "sha512-8zfQX1acL9eWG+ohIc9nJVT9LSqXCdbVEJs0rCPRtji3XF6ahzsiKmGNTeWLxCPDxWCjAIWq9t95xP3Y5Egi6Q==", "dependencies": { "aws4": "^1.11.0", "debug": "^4.3.1", diff --git a/package.json b/package.json index 00a0273..2617942 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "dependencies": { "@architect/functions": "^5.3.4", "@aws-sdk/credential-provider-node": "3.188.0", - "@opensearch-project/opensearch": "^2.2.0", + "@opensearch-project/opensearch": "^2.2.1", "memoizee": "^0.4.15" }, "devDependencies": {