@aws-sdk/middleware-signing 3.357.0 → 3.369.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.
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveSigV4AuthConfig = exports.resolveAwsAuthConfig = void 0;
4
- const property_provider_1 = require("@aws-sdk/property-provider");
5
- const signature_v4_1 = require("@aws-sdk/signature-v4");
6
- const util_middleware_1 = require("@aws-sdk/util-middleware");
4
+ const property_provider_1 = require("@smithy/property-provider");
5
+ const signature_v4_1 = require("@smithy/signature-v4");
6
+ const util_middleware_1 = require("@smithy/util-middleware");
7
7
  const CREDENTIAL_EXPIRE_WINDOW = 300000;
8
8
  const resolveAwsAuthConfig = (input) => {
9
9
  const normalizedCreds = input.credentials
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin = exports.awsAuthMiddlewareOptions = exports.awsAuthMiddleware = void 0;
4
- const protocol_http_1 = require("@aws-sdk/protocol-http");
4
+ const protocol_http_1 = require("@smithy/protocol-http");
5
5
  const getSkewCorrectedDate_1 = require("./utils/getSkewCorrectedDate");
6
6
  const getUpdatedSystemClockOffset_1 = require("./utils/getUpdatedSystemClockOffset");
7
7
  const awsAuthMiddleware = (options) => (next, context) => async function (args) {
@@ -1,6 +1,6 @@
1
- import { memoize } from "@aws-sdk/property-provider";
2
- import { SignatureV4 } from "@aws-sdk/signature-v4";
3
- import { normalizeProvider } from "@aws-sdk/util-middleware";
1
+ import { memoize } from "@smithy/property-provider";
2
+ import { SignatureV4 } from "@smithy/signature-v4";
3
+ import { normalizeProvider } from "@smithy/util-middleware";
4
4
  const CREDENTIAL_EXPIRE_WINDOW = 300000;
5
5
  export const resolveAwsAuthConfig = (input) => {
6
6
  const normalizedCreds = input.credentials
@@ -1,4 +1,4 @@
1
- import { HttpRequest, HttpResponse } from "@aws-sdk/protocol-http";
1
+ import { HttpRequest, HttpResponse } from "@smithy/protocol-http";
2
2
  import { getSkewCorrectedDate } from "./utils/getSkewCorrectedDate";
3
3
  import { getUpdatedSystemClockOffset } from "./utils/getUpdatedSystemClockOffset";
4
4
  export const awsAuthMiddleware = (options) => (next, context) => async function (args) {
@@ -1,5 +1,5 @@
1
- import { SignatureV4CryptoInit, SignatureV4Init } from "@aws-sdk/signature-v4";
2
- import { AuthScheme, AwsCredentialIdentity, ChecksumConstructor, HashConstructor, Logger, MemoizedProvider, Provider, RegionInfoProvider, RequestSigner } from "@aws-sdk/types";
1
+ import { SignatureV4CryptoInit, SignatureV4Init } from "@smithy/signature-v4";
2
+ import { AuthScheme, AwsCredentialIdentity, ChecksumConstructor, HashConstructor, Logger, MemoizedProvider, Provider, RegionInfoProvider, RequestSigner } from "@smithy/types";
3
3
  export interface AwsAuthInputConfig {
4
4
  /**
5
5
  * The credentials used to sign requests.
@@ -1,4 +1,4 @@
1
- import { FinalizeRequestMiddleware, Pluggable, RelativeMiddlewareOptions } from "@aws-sdk/types";
1
+ import { FinalizeRequestMiddleware, Pluggable, RelativeMiddlewareOptions } from "@smithy/types";
2
2
  import { AwsAuthResolvedConfig } from "./awsAuthConfiguration";
3
3
  export declare const awsAuthMiddleware: <Input extends object, Output extends object>(options: AwsAuthResolvedConfig) => FinalizeRequestMiddleware<Input, Output>;
4
4
  export declare const awsAuthMiddlewareOptions: RelativeMiddlewareOptions;
@@ -1,4 +1,4 @@
1
- import { SignatureV4CryptoInit, SignatureV4Init } from "@aws-sdk/signature-v4";
1
+ import { SignatureV4CryptoInit, SignatureV4Init } from "@smithy/signature-v4";
2
2
  import {
3
3
  AuthScheme,
4
4
  AwsCredentialIdentity,
@@ -9,7 +9,7 @@ import {
9
9
  Provider,
10
10
  RegionInfoProvider,
11
11
  RequestSigner,
12
- } from "@aws-sdk/types";
12
+ } from "@smithy/types";
13
13
  export interface AwsAuthInputConfig {
14
14
  credentials?: AwsCredentialIdentity | Provider<AwsCredentialIdentity>;
15
15
  signer?:
@@ -2,7 +2,7 @@ import {
2
2
  FinalizeRequestMiddleware,
3
3
  Pluggable,
4
4
  RelativeMiddlewareOptions,
5
- } from "@aws-sdk/types";
5
+ } from "@smithy/types";
6
6
  import { AwsAuthResolvedConfig } from "./awsAuthConfiguration";
7
7
  export declare const awsAuthMiddleware: <
8
8
  Input extends object,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-signing",
3
- "version": "3.357.0",
3
+ "version": "3.369.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",
@@ -21,11 +21,12 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/property-provider": "3.357.0",
25
- "@aws-sdk/protocol-http": "3.357.0",
26
- "@aws-sdk/signature-v4": "3.357.0",
27
- "@aws-sdk/types": "3.357.0",
28
- "@aws-sdk/util-middleware": "3.357.0",
24
+ "@aws-sdk/types": "3.369.0",
25
+ "@smithy/property-provider": "^1.0.1",
26
+ "@smithy/protocol-http": "^1.1.0",
27
+ "@smithy/signature-v4": "^1.0.1",
28
+ "@smithy/types": "^1.1.0",
29
+ "@smithy/util-middleware": "^1.0.1",
29
30
  "tslib": "^2.5.0"
30
31
  },
31
32
  "engines": {