@aws-sdk/polly-request-presigner 3.774.0 → 3.776.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.
package/dist-cjs/index.js CHANGED
@@ -33,10 +33,12 @@ var import_util_format_url = require("@aws-sdk/util-format-url");
33
33
  var import_protocol_http = require("@smithy/protocol-http");
34
34
  var import_signature_v4 = require("@smithy/signature-v4");
35
35
  var getSignedUrl = /* @__PURE__ */ __name(async (client, command, options = {}) => {
36
+ const { credentials } = client.config;
36
37
  const signer = new import_signature_v4.SignatureV4({
37
38
  service: options.service || "polly",
38
39
  uriEscapePath: options.uriEscapePath || false,
39
- ...client.config
40
+ ...client.config,
41
+ credentials
40
42
  });
41
43
  const presignInterceptMiddleware = /* @__PURE__ */ __name((next, context) => async (args) => {
42
44
  const { request } = args;
@@ -2,10 +2,12 @@ import { formatUrl } from "@aws-sdk/util-format-url";
2
2
  import { HttpRequest } from "@smithy/protocol-http";
3
3
  import { SignatureV4 } from "@smithy/signature-v4";
4
4
  export const getSignedUrl = async (client, command, options = {}) => {
5
+ const { credentials } = client.config;
5
6
  const signer = new SignatureV4({
6
7
  service: options.service || "polly",
7
8
  uriEscapePath: options.uriEscapePath || false,
8
9
  ...client.config,
10
+ credentials: credentials,
9
11
  });
10
12
  const presignInterceptMiddleware = (next, context) => async (args) => {
11
13
  const { request } = args;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/polly-request-presigner",
3
- "version": "3.774.0",
3
+ "version": "3.776.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline polly-request-presigner",
@@ -22,12 +22,12 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/client-polly": "3.774.0",
26
- "@aws-sdk/types": "3.734.0",
27
- "@aws-sdk/util-format-url": "3.734.0",
28
- "@smithy/protocol-http": "^5.0.1",
29
- "@smithy/signature-v4": "^5.0.1",
30
- "@smithy/types": "^4.1.0",
25
+ "@aws-sdk/client-polly": "3.776.0",
26
+ "@aws-sdk/types": "3.775.0",
27
+ "@aws-sdk/util-format-url": "3.775.0",
28
+ "@smithy/protocol-http": "^5.1.0",
29
+ "@smithy/signature-v4": "^5.0.2",
30
+ "@smithy/types": "^4.2.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {