@aws-sdk/s3-request-presigner 3.1076.0 → 3.1078.0

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.
Files changed (2) hide show
  1. package/README.md +3 -4
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -29,13 +29,12 @@ section bellow.
29
29
 
30
30
  ```javascript
31
31
  import { S3RequestPresigner } from "@aws-sdk/s3-request-presigner";
32
- import { Sha256 } from "@aws-crypto/sha256-browser";
33
- import { Hash } from "@aws-sdk/hash-node";
32
+ import { Sha256 } from "@aws-sdk/checksums/sha";
33
+
34
34
  const signer = new S3RequestPresigner({
35
35
  region: regionProvider,
36
36
  credentials: credentialsProvider,
37
- sha256: Hash.bind(null, "sha256"), // In Node.js
38
- //sha256: Sha256 // In browsers
37
+ sha256: Sha256,
39
38
  });
40
39
  const presigned = await signer.presign(request);
41
40
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/s3-request-presigner",
3
- "version": "3.1076.0",
3
+ "version": "3.1078.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -23,15 +23,15 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-sdk/core": "^3.974.24",
27
- "@aws-sdk/signature-v4-multi-region": "^3.996.36",
28
- "@aws-sdk/types": "^3.973.14",
29
- "@smithy/core": "^3.27.0",
30
- "@smithy/types": "^4.15.0",
26
+ "@aws-sdk/core": "^3.974.26",
27
+ "@aws-sdk/signature-v4-multi-region": "^3.996.38",
28
+ "@aws-sdk/types": "^3.973.15",
29
+ "@smithy/core": "^3.29.0",
30
+ "@smithy/types": "^4.15.1",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
34
- "@aws-sdk/client-s3": "3.1076.0",
34
+ "@aws-sdk/client-s3": "3.1078.0",
35
35
  "@tsconfig/recommended": "1.0.1",
36
36
  "@types/node": "^20.14.8",
37
37
  "concurrently": "7.0.0",