@aws-sdk/middleware-api-key 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.
- package/dist-cjs/apiKeyConfiguration.js +1 -1
- package/dist-cjs/apiKeyMiddleware.js +1 -1
- package/dist-es/apiKeyConfiguration.js +1 -1
- package/dist-es/apiKeyMiddleware.js +1 -1
- package/dist-types/apiKeyConfiguration.d.ts +1 -1
- package/dist-types/apiKeyMiddleware.d.ts +1 -1
- package/dist-types/ts3.4/apiKeyConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/apiKeyMiddleware.d.ts +1 -1
- package/package.json +5 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveApiKeyConfig = void 0;
|
|
4
|
-
const util_middleware_1 = require("@
|
|
4
|
+
const util_middleware_1 = require("@smithy/util-middleware");
|
|
5
5
|
const resolveApiKeyConfig = (input) => {
|
|
6
6
|
return {
|
|
7
7
|
...input,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getApiKeyPlugin = exports.apiKeyMiddlewareOptions = exports.apiKeyMiddleware = void 0;
|
|
4
|
-
const protocol_http_1 = require("@
|
|
4
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
5
|
const apiKeyMiddleware = (pluginConfig, middlewareConfig) => (next, context) => async function (args) {
|
|
6
6
|
if (!protocol_http_1.HttpRequest.isInstance(args.request) || context.currentAuthConfig)
|
|
7
7
|
return next(args);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpRequest } from "@
|
|
1
|
+
import { HttpRequest } from "@smithy/protocol-http";
|
|
2
2
|
export const apiKeyMiddleware = (pluginConfig, middlewareConfig) => (next, context) => async function (args) {
|
|
3
3
|
if (!HttpRequest.isInstance(args.request) || context.currentAuthConfig)
|
|
4
4
|
return next(args);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FinalizeRequestMiddleware, HttpAuthDefinition, Pluggable, RelativeMiddlewareOptions } from "@
|
|
1
|
+
import { FinalizeRequestMiddleware, HttpAuthDefinition, Pluggable, RelativeMiddlewareOptions } from "@smithy/types";
|
|
2
2
|
import { ApiKeyResolvedConfig } from "./apiKeyConfiguration";
|
|
3
3
|
/**
|
|
4
4
|
* Middleware to inject the API key into the HTTP request.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-api-key",
|
|
3
|
-
"version": "3.
|
|
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",
|
|
@@ -20,9 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
23
|
+
"@aws-sdk/types": "3.369.0",
|
|
24
|
+
"@smithy/protocol-http": "^1.1.0",
|
|
25
|
+
"@smithy/types": "^1.1.0",
|
|
26
|
+
"@smithy/util-middleware": "^1.0.1",
|
|
26
27
|
"tslib": "^2.5.0"
|
|
27
28
|
},
|
|
28
29
|
"engines": {
|