Skip to content

Commit 8b31244

Browse files
MasterOdincarlopi
authored andcommitted
bump js-sha256 from 0.11.0 to 0.11.1
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
1 parent 230ff34 commit 8b31244

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

packages/duckdb-wasm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"jasmine": "^5.1.0",
3939
"jasmine-core": "^5.1.2",
4040
"jasmine-spec-reporter": "^7.0.0",
41-
"js-sha256": "^0.11.0",
41+
"js-sha256": "^0.11.1",
4242
"karma": "^6.4.2",
4343
"karma-chrome-launcher": "^3.2.0",
4444
"karma-coverage": "^2.2.1",

packages/duckdb-wasm/src/utils/s3_helper.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,23 +143,12 @@ export function createS3Headers(params: S3Params, payloadParams: S3PayloadParams
143143
'/aws4_request\n' +
144144
canonicalRequestHashStr;
145145

146-
// ts-ignore's because library can accept array buffer as key, but TS arg is incorrect
147146
const signKey = 'AWS4' + params.secretAccessKey;
148147
const kDate = sha256.hmac.arrayBuffer(signKey, params.dateNow);
149148

150-
// Note, js-sha256 has a bug in the TS interface that only supports strings as keys, while we need a bytearray
151-
// as key. PR is open but unmerged: https://github.com/emn178/js-sha256/pull/25
152-
// eslint-disable-next-line
153-
// @ts-ignore
154149
const kRegion = sha256.hmac.arrayBuffer(kDate, params.region);
155-
// eslint-disable-next-line
156-
// @ts-ignore
157150
const kService = sha256.hmac.arrayBuffer(kRegion, params.service);
158-
// eslint-disable-next-line
159-
// @ts-ignore
160151
const signingKey = sha256.hmac.arrayBuffer(kService, 'aws4_request');
161-
// eslint-disable-next-line
162-
// @ts-ignore
163152
const signature = sha256.hmac(signingKey, stringToSign);
164153

165154
res.set(

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5113,10 +5113,10 @@ js-cookie@^3.0.5:
51135113
resolved "https://registry.yarnpkg.com/js-cookie/-/js-cookie-3.0.5.tgz#0b7e2fd0c01552c58ba86e0841f94dc2557dcdbc"
51145114
integrity sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==
51155115

5116-
js-sha256@^0.11.0:
5117-
version "0.11.0"
5118-
resolved "https://registry.yarnpkg.com/js-sha256/-/js-sha256-0.11.0.tgz#256a921d9292f7fe98905face82e367abaca9576"
5119-
integrity sha512-6xNlKayMZvds9h1Y1VWc0fQHQ82BxTXizWPEtEeGvmOUYpBRy4gbWroHLpzowe6xiQhHpelCQiE7HEdznyBL9Q==
5116+
js-sha256@^0.11.1:
5117+
version "0.11.1"
5118+
resolved "https://registry.yarnpkg.com/js-sha256/-/js-sha256-0.11.1.tgz#712262e8fc9569d6f7f6eea72c0d8e5ccc7c976c"
5119+
integrity sha512-o6WSo/LUvY2uC4j7mO50a2ms7E/EAdbP0swigLV+nzHKTTaYnaLIWJ02VdXrsJX0vGedDESQnLsOekr94ryfjg==
51205120

51215121
"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
51225122
version "4.0.0"

0 commit comments

Comments
 (0)