@aws-sdk/polly-request-presigner 3.1045.0 → 3.1046.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
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var clientPolly = require('@aws-sdk/client-polly');
4
- var utilFormatUrl = require('@aws-sdk/util-format-url');
5
- var protocolHttp = require('@smithy/protocol-http');
4
+ var util = require('@aws-sdk/core/util');
5
+ var protocols = require('@smithy/core/protocols');
6
6
  var signatureV4 = require('@smithy/signature-v4');
7
7
 
8
8
  const getSignedUrl = async (client, command, options = {}) => {
@@ -15,7 +15,7 @@ const getSignedUrl = async (client, command, options = {}) => {
15
15
  });
16
16
  const presignInterceptMiddleware = (next, context) => async (args) => {
17
17
  const { request } = args;
18
- if (!protocolHttp.HttpRequest.isInstance(request)) {
18
+ if (!protocols.HttpRequest.isInstance(request)) {
19
19
  throw new Error("Request to be presigned is not an valid HTTP request.");
20
20
  }
21
21
  request.method = "GET";
@@ -58,7 +58,7 @@ const getSignedUrl = async (client, command, options = {}) => {
58
58
  finally {
59
59
  client.middlewareStack.remove("presignInterceptMiddleware");
60
60
  }
61
- return utilFormatUrl.formatUrl(presigned);
61
+ return util.formatUrl(presigned);
62
62
  };
63
63
 
64
64
  const getSynthesizeSpeechUrl = async (input) => {
@@ -1,5 +1,5 @@
1
- import { formatUrl } from "@aws-sdk/util-format-url";
2
- import { HttpRequest } from "@smithy/protocol-http";
1
+ import { formatUrl } from "@aws-sdk/core/util";
2
+ import { HttpRequest } from "@smithy/core/protocols";
3
3
  import { SignatureV4 } from "@smithy/signature-v4";
4
4
  export const getSignedUrl = async (client, command, options = {}) => {
5
5
  const { credentials } = client.config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/polly-request-presigner",
3
- "version": "3.1045.0",
3
+ "version": "3.1046.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 polly-request-presigner",
@@ -25,11 +25,11 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/client-polly": "3.1045.0",
28
+ "@aws-sdk/client-polly": "3.1046.0",
29
+ "@aws-sdk/core": "^3.974.9",
29
30
  "@aws-sdk/types": "^3.973.8",
30
- "@aws-sdk/util-format-url": "^3.972.10",
31
- "@smithy/protocol-http": "^5.3.14",
32
- "@smithy/signature-v4": "^5.3.14",
31
+ "@smithy/core": "^3.24.1",
32
+ "@smithy/signature-v4": "^5.4.1",
33
33
  "@smithy/types": "^4.14.1",
34
34
  "tslib": "^2.6.2"
35
35
  },