@mysten/signers 0.5.2 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mysten/signers",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "A collection of signers for various providers",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Mysten Labs <build@mystenlabs.com>",
@@ -53,11 +53,11 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@google-cloud/kms": "^4.5.0",
56
- "@noble/curves": "^1.9.4",
56
+ "@noble/curves": "=1.9.4",
57
57
  "@noble/hashes": "^1.8.0",
58
58
  "asn1-ts": "^8.0.2",
59
59
  "@mysten/ledgerjs-hw-app-sui": "0.6.0",
60
- "@mysten/sui": "1.39.1"
60
+ "@mysten/sui": "1.41.0"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">=20"
@@ -86,6 +86,7 @@ export class AwsKmsSigner extends Signer {
86
86
  /**
87
87
  * Synchronous signing is not supported by AWS KMS.
88
88
  * @throws Always throws an error indicating synchronous signing is unsupported.
89
+ * @deprecated use `sign` instead
89
90
  */
90
91
  signData(): never {
91
92
  throw new Error('KMS Signer does not support sync signing');
@@ -244,7 +244,7 @@ export class AwsV4Signer {
244
244
 
245
245
  // headers are always lowercase in keys()
246
246
 
247
- this.signableHeaders = ['host', ...(this.headers as any).keys()]
247
+ this.signableHeaders = ['host', ...((this.headers as any).keys() as string[])]
248
248
  .filter((header) => allHeaders || !UNSIGNABLE_HEADERS.has(header))
249
249
  .sort();
250
250
 
@@ -282,7 +282,7 @@ export class AwsV4Signer {
282
282
  if (this.service === 's3') {
283
283
  try {
284
284
  this.encodedPath = decodeURIComponent(this.url.pathname.replace(/\+/g, ' '));
285
- } catch (e) {
285
+ } catch {
286
286
  this.encodedPath = this.url.pathname;
287
287
  }
288
288
  } else {
@@ -89,6 +89,7 @@ export class GcpKmsSigner extends Signer {
89
89
  /**
90
90
  * Synchronous signing is not supported by GCP KMS.
91
91
  * @throws Always throws an error indicating synchronous signing is unsupported.
92
+ * @deprecated use `sign` instead
92
93
  */
93
94
  signData(): never {
94
95
  throw new Error('GCP Signer does not support sync signing');