@aws-sdk/s3-presigned-post 3.362.0 → 3.367.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.
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createPresignedPost = void 0;
4
4
  const client_s3_1 = require("@aws-sdk/client-s3");
5
- const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
6
- const signature_v4_1 = require("@aws-sdk/signature-v4");
7
5
  const util_format_url_1 = require("@aws-sdk/util-format-url");
8
- const util_hex_encoding_1 = require("@aws-sdk/util-hex-encoding");
9
- const util_utf8_1 = require("@aws-sdk/util-utf8");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const signature_v4_1 = require("@smithy/signature-v4");
8
+ const util_hex_encoding_1 = require("@smithy/util-hex-encoding");
9
+ const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const constants_1 = require("./constants");
11
11
  const createPresignedPost = async (client, { Bucket, Key, Conditions = [], Fields = {}, Expires = 3600 }) => {
12
12
  const { systemClockOffset, base64Encoder, utf8Decoder, sha256 } = client.config;
@@ -1,9 +1,9 @@
1
1
  import { PutObjectCommand } from "@aws-sdk/client-s3";
2
- import { getEndpointFromInstructions, toEndpointV1, } from "@aws-sdk/middleware-endpoint";
3
- import { createScope, getSigningKey } from "@aws-sdk/signature-v4";
4
2
  import { formatUrl } from "@aws-sdk/util-format-url";
5
- import { toHex } from "@aws-sdk/util-hex-encoding";
6
- import { toUint8Array } from "@aws-sdk/util-utf8";
3
+ import { getEndpointFromInstructions, toEndpointV1, } from "@smithy/middleware-endpoint";
4
+ import { createScope, getSigningKey } from "@smithy/signature-v4";
5
+ import { toHex } from "@smithy/util-hex-encoding";
6
+ import { toUint8Array } from "@smithy/util-utf8";
7
7
  import { ALGORITHM_IDENTIFIER, ALGORITHM_QUERY_PARAM, AMZ_DATE_QUERY_PARAM, CREDENTIAL_QUERY_PARAM, SIGNATURE_QUERY_PARAM, TOKEN_QUERY_PARAM, } from "./constants";
8
8
  export const createPresignedPost = async (client, { Bucket, Key, Conditions = [], Fields = {}, Expires = 3600 }) => {
9
9
  const { systemClockOffset, base64Encoder, utf8Decoder, sha256 } = client.config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/s3-presigned-post",
3
- "version": "3.362.0",
3
+ "version": "3.367.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -22,13 +22,14 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/client-s3": "3.362.0",
26
- "@aws-sdk/middleware-endpoint": "3.357.0",
27
- "@aws-sdk/signature-v4": "3.357.0",
25
+ "@aws-sdk/client-s3": "3.367.0",
28
26
  "@aws-sdk/types": "3.357.0",
29
- "@aws-sdk/util-format-url": "3.357.0",
30
- "@aws-sdk/util-hex-encoding": "3.310.0",
31
- "@aws-sdk/util-utf8": "3.310.0",
27
+ "@aws-sdk/util-format-url": "3.363.0",
28
+ "@smithy/middleware-endpoint": "^1.0.1",
29
+ "@smithy/signature-v4": "^1.0.1",
30
+ "@smithy/types": "^1.1.0",
31
+ "@smithy/util-hex-encoding": "^1.0.1",
32
+ "@smithy/util-utf8": "^1.0.1",
32
33
  "tslib": "^2.5.0"
33
34
  },
34
35
  "devDependencies": {