@aws-sdk/middleware-logger 3.29.0 → 3.36.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/CHANGELOG.md +38 -0
- package/dist-cjs/index.js +4 -0
- package/dist-cjs/loggerMiddleware.js +34 -0
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/dist-es/loggerMiddleware.js +42 -0
- package/{src/index.ts → dist-types/index.d.ts} +0 -0
- package/{dist/types → dist-types}/loggerMiddleware.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/loggerMiddleware.d.ts +0 -0
- package/package.json +15 -11
- package/dist/cjs/index.js +0 -5
- package/dist/cjs/loggerMiddleware.js +0 -36
- package/dist/es/index.js +0 -2
- package/dist/es/loggerMiddleware.js +0 -44
- package/dist/tsconfig.cjs.tsbuildinfo +0 -1
- package/dist/tsconfig.es.tsbuildinfo +0 -1
- package/jest.config.js +0 -5
- package/src/loggerMiddleware.spec.ts +0 -152
- package/src/loggerMiddleware.ts +0 -54
- package/tsconfig.cjs.json +0 -10
- package/tsconfig.es.json +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/middleware-logger
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **non-clients:** remove comments from transpiled JS files ([#2813](https://github.com/aws/aws-sdk-js-v3/issues/2813)) ([e6fc7f3](https://github.com/aws/aws-sdk-js-v3/commit/e6fc7f3e0fa74785590ac19e7ed143c916bb9b6e))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @aws-sdk/middleware-logger
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
# [3.29.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.28.0...v3.29.0) (2021-09-02)
|
|
7
45
|
|
|
8
46
|
**Note:** Version bump only for package @aws-sdk/middleware-logger
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0;
|
|
4
|
+
const loggerMiddleware = () => (next, context) => async (args) => {
|
|
5
|
+
const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context;
|
|
6
|
+
const response = await next(args);
|
|
7
|
+
if (!logger) {
|
|
8
|
+
return response;
|
|
9
|
+
}
|
|
10
|
+
if (typeof logger.info === "function") {
|
|
11
|
+
const { $metadata, ...outputWithoutMetadata } = response.output;
|
|
12
|
+
logger.info({
|
|
13
|
+
clientName,
|
|
14
|
+
commandName,
|
|
15
|
+
input: inputFilterSensitiveLog(args.input),
|
|
16
|
+
output: outputFilterSensitiveLog(outputWithoutMetadata),
|
|
17
|
+
metadata: $metadata,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return response;
|
|
21
|
+
};
|
|
22
|
+
exports.loggerMiddleware = loggerMiddleware;
|
|
23
|
+
exports.loggerMiddlewareOptions = {
|
|
24
|
+
name: "loggerMiddleware",
|
|
25
|
+
tags: ["LOGGER"],
|
|
26
|
+
step: "initialize",
|
|
27
|
+
override: true,
|
|
28
|
+
};
|
|
29
|
+
const getLoggerPlugin = (options) => ({
|
|
30
|
+
applyToStack: (clientStack) => {
|
|
31
|
+
clientStack.add(exports.loggerMiddleware(), exports.loggerMiddlewareOptions);
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
exports.getLoggerPlugin = getLoggerPlugin;
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { __awaiter, __generator, __rest } from "tslib";
|
|
2
|
+
export var loggerMiddleware = function () {
|
|
3
|
+
return function (next, context) {
|
|
4
|
+
return function (args) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
|
+
var clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog, response, _a, $metadata, outputWithoutMetadata;
|
|
6
|
+
return __generator(this, function (_b) {
|
|
7
|
+
switch (_b.label) {
|
|
8
|
+
case 0:
|
|
9
|
+
clientName = context.clientName, commandName = context.commandName, inputFilterSensitiveLog = context.inputFilterSensitiveLog, logger = context.logger, outputFilterSensitiveLog = context.outputFilterSensitiveLog;
|
|
10
|
+
return [4, next(args)];
|
|
11
|
+
case 1:
|
|
12
|
+
response = _b.sent();
|
|
13
|
+
if (!logger) {
|
|
14
|
+
return [2, response];
|
|
15
|
+
}
|
|
16
|
+
if (typeof logger.info === "function") {
|
|
17
|
+
_a = response.output, $metadata = _a.$metadata, outputWithoutMetadata = __rest(_a, ["$metadata"]);
|
|
18
|
+
logger.info({
|
|
19
|
+
clientName: clientName,
|
|
20
|
+
commandName: commandName,
|
|
21
|
+
input: inputFilterSensitiveLog(args.input),
|
|
22
|
+
output: outputFilterSensitiveLog(outputWithoutMetadata),
|
|
23
|
+
metadata: $metadata,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return [2, response];
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}); };
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export var loggerMiddlewareOptions = {
|
|
33
|
+
name: "loggerMiddleware",
|
|
34
|
+
tags: ["LOGGER"],
|
|
35
|
+
step: "initialize",
|
|
36
|
+
override: true,
|
|
37
|
+
};
|
|
38
|
+
export var getLoggerPlugin = function (options) { return ({
|
|
39
|
+
applyToStack: function (clientStack) {
|
|
40
|
+
clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
|
|
41
|
+
},
|
|
42
|
+
}); };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-logger",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.36.0",
|
|
4
4
|
"scripts": {
|
|
5
|
+
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
5
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
6
7
|
"build:es": "tsc -p tsconfig.es.json",
|
|
7
|
-
"build": "
|
|
8
|
-
"downlevel-dts": "downlevel-dts dist
|
|
8
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
9
|
+
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
9
10
|
"test": "jest --passWithNoTests"
|
|
10
11
|
},
|
|
11
12
|
"author": {
|
|
@@ -14,30 +15,33 @@
|
|
|
14
15
|
"url": "https://aws.amazon.com/javascript/"
|
|
15
16
|
},
|
|
16
17
|
"license": "Apache-2.0",
|
|
17
|
-
"main": "./dist
|
|
18
|
-
"module": "./dist
|
|
19
|
-
"types": "./dist
|
|
18
|
+
"main": "./dist-cjs/index.js",
|
|
19
|
+
"module": "./dist-es/index.js",
|
|
20
|
+
"types": "./dist-types/index.d.ts",
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@aws-sdk/types": "3.
|
|
22
|
+
"@aws-sdk/types": "3.36.0",
|
|
22
23
|
"tslib": "^2.3.0"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
|
-
"@aws-sdk/protocol-http": "3.
|
|
26
|
+
"@aws-sdk/protocol-http": "3.36.0",
|
|
26
27
|
"@types/jest": "^26.0.4",
|
|
27
28
|
"@types/node": "^10.0.0",
|
|
28
29
|
"jest": "^26.1.0",
|
|
29
|
-
"typescript": "~4.
|
|
30
|
+
"typescript": "~4.3.5"
|
|
30
31
|
},
|
|
31
32
|
"engines": {
|
|
32
33
|
"node": ">= 10.0.0"
|
|
33
34
|
},
|
|
34
35
|
"typesVersions": {
|
|
35
36
|
"<4.0": {
|
|
36
|
-
"dist
|
|
37
|
-
"dist
|
|
37
|
+
"dist-types/*": [
|
|
38
|
+
"dist-types/ts3.4/*"
|
|
38
39
|
]
|
|
39
40
|
}
|
|
40
41
|
},
|
|
42
|
+
"files": [
|
|
43
|
+
"dist-*"
|
|
44
|
+
],
|
|
41
45
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/middleware-logger",
|
|
42
46
|
"repository": {
|
|
43
47
|
"type": "git",
|
package/dist/cjs/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
(0, tslib_1.__exportStar)(require("./loggerMiddleware"), exports);
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsa0VBQW1DIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vbG9nZ2VyTWlkZGxld2FyZVwiO1xuIl19
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0;
|
|
4
|
-
const loggerMiddleware = () => (next, context) => async (args) => {
|
|
5
|
-
const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context;
|
|
6
|
-
const response = await next(args);
|
|
7
|
-
if (!logger) {
|
|
8
|
-
return response;
|
|
9
|
-
}
|
|
10
|
-
if (typeof logger.info === "function") {
|
|
11
|
-
const { $metadata, ...outputWithoutMetadata } = response.output;
|
|
12
|
-
logger.info({
|
|
13
|
-
clientName,
|
|
14
|
-
commandName,
|
|
15
|
-
input: inputFilterSensitiveLog(args.input),
|
|
16
|
-
output: outputFilterSensitiveLog(outputWithoutMetadata),
|
|
17
|
-
metadata: $metadata,
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return response;
|
|
21
|
-
};
|
|
22
|
-
exports.loggerMiddleware = loggerMiddleware;
|
|
23
|
-
exports.loggerMiddlewareOptions = {
|
|
24
|
-
name: "loggerMiddleware",
|
|
25
|
-
tags: ["LOGGER"],
|
|
26
|
-
step: "initialize",
|
|
27
|
-
override: true,
|
|
28
|
-
};
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
30
|
-
const getLoggerPlugin = (options) => ({
|
|
31
|
-
applyToStack: (clientStack) => {
|
|
32
|
-
clientStack.add((0, exports.loggerMiddleware)(), exports.loggerMiddlewareOptions);
|
|
33
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bmV4cG9ydCBjb25zdCBsb2dnZXJNaWRkbGV3YXJlT3B0aW9uczogSW5pdGlhbGl6ZUhhbmRsZXJPcHRpb25zICYgQWJzb2x1dGVMb2NhdGlvbiA9IHtcbiAgbmFtZTogXCJsb2dnZXJNaWRkbGV3YXJlXCIsXG4gIHRhZ3M6IFtcIkxPR0dFUlwiXSxcbiAgc3RlcDogXCJpbml0aWFsaXplXCIsXG4gIG92ZXJyaWRlOiB0cnVlLFxufTtcblxuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby11bnVzZWQtdmFyc1xuZXhwb3J0IGNvbnN0IGdldExvZ2dlclBsdWdpbiA9IChvcHRpb25zOiBhbnkpOiBQbHVnZ2FibGU8YW55LCBhbnk+ID0+ICh7XG4gIGFwcGx5VG9TdGFjazogKGNsaWVudFN0YWNrKSA9PiB7XG4gICAgY2xpZW50U3RhY2suYWRkKGxvZ2dlck1pZGRsZXdhcmUoKSwgbG9nZ2VyTWlkZGxld2FyZU9wdGlvbnMpO1xuICB9LFxufSk7XG4iXX0=
|
package/dist/es/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from "./loggerMiddleware";
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2xvZ2dlck1pZGRsZXdhcmVcIjtcbiJdfQ==
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { __awaiter, __generator, __rest } from "tslib";
|
|
2
|
-
export var loggerMiddleware = function () {
|
|
3
|
-
return function (next, context) {
|
|
4
|
-
return function (args) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
|
-
var clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog, response, _a, $metadata, outputWithoutMetadata;
|
|
6
|
-
return __generator(this, function (_b) {
|
|
7
|
-
switch (_b.label) {
|
|
8
|
-
case 0:
|
|
9
|
-
clientName = context.clientName, commandName = context.commandName, inputFilterSensitiveLog = context.inputFilterSensitiveLog, logger = context.logger, outputFilterSensitiveLog = context.outputFilterSensitiveLog;
|
|
10
|
-
return [4 /*yield*/, next(args)];
|
|
11
|
-
case 1:
|
|
12
|
-
response = _b.sent();
|
|
13
|
-
if (!logger) {
|
|
14
|
-
return [2 /*return*/, response];
|
|
15
|
-
}
|
|
16
|
-
if (typeof logger.info === "function") {
|
|
17
|
-
_a = response.output, $metadata = _a.$metadata, outputWithoutMetadata = __rest(_a, ["$metadata"]);
|
|
18
|
-
logger.info({
|
|
19
|
-
clientName: clientName,
|
|
20
|
-
commandName: commandName,
|
|
21
|
-
input: inputFilterSensitiveLog(args.input),
|
|
22
|
-
output: outputFilterSensitiveLog(outputWithoutMetadata),
|
|
23
|
-
metadata: $metadata,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return [2 /*return*/, response];
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}); };
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export var loggerMiddlewareOptions = {
|
|
33
|
-
name: "loggerMiddleware",
|
|
34
|
-
tags: ["LOGGER"],
|
|
35
|
-
step: "initialize",
|
|
36
|
-
override: true,
|
|
37
|
-
};
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
39
|
-
export var getLoggerPlugin = function (options) { return ({
|
|
40
|
-
applyToStack: function (clientStack) {
|
|
41
|
-
clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
|
|
42
|
-
},
|
|
43
|
-
}); };
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib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HBvcnQgY29uc3QgbG9nZ2VyTWlkZGxld2FyZU9wdGlvbnM6IEluaXRpYWxpemVIYW5kbGVyT3B0aW9ucyAmIEFic29sdXRlTG9jYXRpb24gPSB7XG4gIG5hbWU6IFwibG9nZ2VyTWlkZGxld2FyZVwiLFxuICB0YWdzOiBbXCJMT0dHRVJcIl0sXG4gIHN0ZXA6IFwiaW5pdGlhbGl6ZVwiLFxuICBvdmVycmlkZTogdHJ1ZSxcbn07XG5cbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tdW51c2VkLXZhcnNcbmV4cG9ydCBjb25zdCBnZXRMb2dnZXJQbHVnaW4gPSAob3B0aW9uczogYW55KTogUGx1Z2dhYmxlPGFueSwgYW55PiA9PiAoe1xuICBhcHBseVRvU3RhY2s6IChjbGllbnRTdGFjaykgPT4ge1xuICAgIGNsaWVudFN0YWNrLmFkZChsb2dnZXJNaWRkbGV3YXJlKCksIGxvZ2dlck1pZGRsZXdhcmVPcHRpb25zKTtcbiAgfSxcbn0pO1xuIl19
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/tslib/tslib.d.ts","../../types/dist/types/abort.d.ts","../../types/dist/types/logger.d.ts","../../types/dist/types/http.d.ts","../../types/dist/types/response.d.ts","../../types/dist/types/util.d.ts","../../types/dist/types/middleware.d.ts","../../types/dist/types/command.d.ts","../../types/dist/types/client.d.ts","../../types/dist/types/credentials.d.ts","../../types/dist/types/crypto.d.ts","../../types/dist/types/eventStream.d.ts","../../types/dist/types/pagination.d.ts","../../types/dist/types/transfer.d.ts","../../types/dist/types/serde.d.ts","../../types/dist/types/shapes.d.ts","../../types/dist/types/signature.d.ts","../../types/dist/types/waiter.d.ts","../../types/dist/types/index.d.ts","../../protocol-http/dist/types/httpResponse.d.ts","../../protocol-http/dist/types/httpRequest.d.ts","../../protocol-http/dist/types/httpHandler.d.ts","../../protocol-http/dist/types/isValidHostname.d.ts","../../protocol-http/dist/types/index.d.ts","../src/loggerMiddleware.ts","../src/index.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts","../../../node_modules/@babel/types/lib/index.d.ts","../../../node_modules/@types/babel__generator/index.d.ts","../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../node_modules/@types/babel__template/index.d.ts","../../../node_modules/@types/babel__traverse/index.d.ts","../../../node_modules/@types/babel__core/index.d.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@types/chai-as-promised/index.d.ts","../../../node_modules/@types/fs-extra/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/glob/index.d.ts","../../../node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../node_modules/@types/istanbul-reports/index.d.ts","../../../node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../node_modules/jest-diff/build/types.d.ts","../../../node_modules/jest-diff/build/diffLines.d.ts","../../../node_modules/jest-diff/build/printDiffs.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/pretty-format/build/types.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/minimist/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/parse-json/index.d.ts","../../../node_modules/@types/prettier/index.d.ts","../../../node_modules/@types/stack-utils/index.d.ts","../../../node_modules/@types/uuid/index.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts","../../../node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"12f4cfe2fe60b810c3174537bc2ddb20c1067b7768643d12cb1266fd183afb75","4f1034eac6404cb69bedb8bb04cf246871d1aaebbb99d5617be54f54323464c7","724eb35fdcfa2ad686611b3a8a9d704ad0d478539a8cf0089176e0b8047f7190","d71be3ec7ca8cf9aaf6a8b68653dd3b7d988678edc120a640fc0307967486cc5","2e04271499caec54dea75e7061de06b2549efbe1d652b9bdab2f74fd2572f61f","40b990c27c58cf6d4473c9cdc65daf0428cbfca5cf4b072c73a4ad5a4055ea7f","0b2fe702dda65d25d5e00ec95fc8952036e7e75870c376abeb2cd2150b0a3bed","a9367ec48d3b67800c69c890e616337935df67caad5bff99383949af561042a8","5c1a8d6754a7cceee2135728e8ce6a4f984966a2d16ff1cbed879f7527d55864","a99add785a8a06f19582501ca19e92949f6b840b3f91d880e73582c5efacccde","5a7bb8afd0a22b7754275793f5ca5aeea379a2aad6153a6d68af49a60a899f69","a604c1ae24a48ccdb36396f49a20677d32722f8fd461dfb47186a5b12fd88d60","259c58ced9d80f66a61362a8768529a2746a2bc80183cdb04726f610913bb5d5","b14456a54e15ce24ff9e5ad3b70675b104a36eb35886e3ffaae614292c0908c4","ed01aa50ff4fdbf0f6857596fc385587d87da4896c7980ea75527e098031c488","9e5aef3efc63316ce7aa61b137d354449f792ab92885d03c8894b239db75d90a","8a6c15bfa2a0a9e68005a53fb71b60f3769af0da81001b95e4861310e260b788","aaffeca0d82a3d862c5186af3ca707801e45cc8b2e7d31e430eb715648ffa839","aedcac717f286d9925f0c52aa6165f4e91a2ed05ad9c1e2a8cc91eca18b8eb2b","dd5bab97b9f2d5dec2796fa4ff1b6db7221dfc9158f4e81cf9bcef8750dc32ba","f10a176bcf3a0320f5137c6fc1da2d9b7347f8e2852a0ca5802a0ea9aac2df4c","1c33a2766d210aa58703a1fb9d51c0c49fb0f98495974847870f2f090df9e52a","d1f8a829c5e90734bb47a1d1941b8819aeee6e81a2a772c3c0f70b30e3693fa9","413cb528dd3ba14550e9c10c3f87190aeb9a2359d4a2538972648ee285356af6","57db7032c5fe9405419120a90bab68ce6a67b0165072bd194a1b56c2e78cfe08","d62b7fb6c39357289ba064887935b0966cd99da5a3bb63afc1d6ea4f82ab23f1",{"version":"fb928b21f5a16a1d64a8e2e74a3f389ace89da74820f070f893221213c50aa3c","affectsGlobalScope":true},"28693f9faf04685464c86683696587e65798fea6c12d9131eae4eaf49a0e5ac7","fe892fea1e75a442fffb4a604d7eeb451e858787a9f2f01c4e83bf12a3b5048d","d5c80b931928fbd06f967ce4bdca24fbb37523773ac2c7c87458a689154351fb","fcd718b2feb2820a9844536a1a2fbc77a3da90820e02894d40f879a789f46560","525c8fc510d9632d2a0a9de2d41c3ac1cdd79ff44d3b45c6d81cacabb683528d","ece75b9bfc916f9ccc4e8a9ddee1dda5c987804fbe3b60a01fc120fae731c2ce","4e146a0b69c893ae1538aff8b76f4e8796755bdd45050a83099348d59863437e","a1dc9cfe8be39cbcef62692510b450ab35553ef39382715c88763d0c477704a9","05e732266b5a36789fd9eb846b1f45fec1b6e318b740e3f20fc22fd95f9ebf31","985c3d1b62a4a4f563e3ca3e3a47717cff7d82c81883d62ecf08d8417eb477c4","8059976d7f408e08be353de1833172139bbaa70fc33d01b98249f7226c122119","1733741cf2adc5926ac58c66004268cdc3d34b2ff6250f5114db14253ea02ce1","df18df925483862e8ff216d7b17e50b7311a3add2fb7feb128d321ec099352ca","b6b09f944889a23f19eba6e0f112030e55160c5e1a225012ab2349c582ba5595","152af7c23ec219f632afa2d861abc65993f56cd39a4f3a4018515dbc05950a74","3a0bdc4c5b6f84a1abb5356d7a7fa1f96ac6c5b5646eec3ef2b33c1ed095e155","03394bf8deb8781b490ae9266a843fbdf00647947d79e25fcbf1d89a9e9c8a66","56a15cc211894d79aa44cbb46c276bfd3f10458a61bff2dec99114db8a7e71e3","1a5366b0d4d0153955fd85777c72d35979dabc0537649da6eade09007c0d080a","61c84c3b0eb6e60196d15ae5e21793a1d4241c547f0bdd0529ffae838d1a073c","272522db288a7e03f14ff930407b776357082efce20369ea42239a57af9c7f81","3a8848a9c307429b861402cc69bc472ffe0c05b86474fc158723169161e16389","3f6a1fd73c9dc3bd7f4b79bc075297ca6527904df69b0f2c2c94e4c4c7d9a32c","8969e0b4d22ca77ad011c8fc4a25ec5d515bdfae4ecbd22608ed0d5c38829c1e","b2fe368abdc803b82d27bd27f168d106804422ade198c3c085e2519b195ebd26","0811662f95fabfc05b8f1cefcc46b351092cfc7d2a3e849475c51e2578c5c485","8e2f9031210a8fc27af8844bf69f964307d6013c90336bea9fb5d6ba43248c78","17e157df6125098a1a34eb4d201ee4ac03bbe97e471ab5627bb2c40fce555948","b40652bf8ce4a18133b31349086523b219724dca8df3448c1a0742528e7ad5b9","4bdb7b15b3f9a3ee0b856c7b991d0e522f8ce92f7b66ae8ac00e61d1269dd10a","978aecd2e6bc2ac094e9a35eda98ff8586713857b3655e7c98ca5ed8f7d50662","a185b8e0d7a4ae078a79339d63e98177813aac39256f69f788eaf5c360aa756f","c6b71a0585467900820167370738cfc256e9635471725a7ba1d24a3a262984e5","8bf10278b5c28698a73f800fde911bcc33d405a15f7bddab1c4ade637b69a822","e880a08fbb0d9ee2f733f9183f4d1bdb75bc9e0e64060a8a1fc30540791fcded","3cb4cbade80dde6e045b01d34582625ea45fc2f1080085ef671cefbc9c75625d","69fc4a10650eff3416ba5c2f7ce71744734928a7135ebe5a63c61d2d03ca3ec3","13918848c4e07d1094164112bd7fd151d61cbb949ceef340a2a4595cd609afb6","9af6a9de7bd818e68c4236f20027ff4b19387c2269a6952945d1a716c177cc4d","3497438242251378cf232f36a7fabac70e7bd8229d68dac8955534e63ffc8ff4","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","f6f04f1c31ff0314a67d7911e49a60e76cd5fc4e50c6374e506cb85916fadec9","b668b7fb7c52a05fb9233a27ba5099a73cd8e157b037d67399336635495ab483","b25c5f2970d06c729f464c0aeaa64b1a5b5f1355aa93554bb5f9c199b8624b1e","069733dc220affbe58d9c1d1a93af3707bc515aaed761701d8741b57da4cb964","3051751533eee92572241b3cef28333212401408c4e7aa21718714b793c0f4ed","691aea9772797ca98334eb743e7686e29325b02c6931391bcee4cc7bf27a9f3b","6f1d39d26959517da3bd105c552eded4c34702705c64d75b03f54d864b6e41c2",{"version":"e9cf450600c496a87ab96d288157b79be6c193e8623bd93553d5d64755940dea","affectsGlobalScope":true},{"version":"c8a2f72f046b5efb790cc37cfe79dcf11ce8e35e7e7d9430e10e53e0aa05c7a2","affectsGlobalScope":true},"5171627120eeb3a7e8afb8ed04ea9be7f0b53ba09bb1fc95172483e0fbb0740c","95c22bc19835e28e2e524a4bb8898eb5f2107b640d7279a6d3aade261916bbf2","393137c76bd922ba70a2f8bf1ade4f59a16171a02fb25918c168d48875b0cfb0","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","905c3e8f7ddaa6c391b60c05b2f4c3931d7127ad717a080359db3df510b7bdab","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"ce2169125f42515a26fa60977b6d56ae407f3462e28832fbf6a9013f6a828bab","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","e437d83044ba17246a861aa9691aa14223ff4a9d6f338ab1269c41c758586a88","c9ad058b2cc9ce6dc2ed92960d6d009e8c04bef46d3f5312283debca6869f613","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","08b428a44bc98005536a12456518797e9afe2a08e8b5d9785641713a54475881","c6c4fea9acc55d5e38ff2b70d57ab0b5cdbd08f8bc5d7a226e322cea128c5b57","96b49a9de749afcf92b5bce1d8cc42cfae6816cdf5ea36584fd9256b8b2e5292","3bdd93ec24853e61bfa4c63ebaa425ff3e474156e87a47d90122e1d8cc717c1f","5a2a25feca554a8f289ed62114771b8c63d89f2b58325e2f8b7043e4e0160d11","3845d3b64286c12c60d39fc90ac1cc5e47cbc951530658d2567d578b2faa1f26"],"options":{"declaration":true,"declarationDir":"./types","downlevelIteration":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":true,"inlineSourceMap":true,"inlineSources":true,"module":1,"noEmitHelpers":true,"noFallthroughCasesInSwitch":true,"noUnusedParameters":false,"outDir":"./cjs","preserveConstEnums":true,"removeComments":false,"rootDir":"../src","sourceMap":false,"strict":true,"target":5,"useUnknownInCatchVariables":false},"fileIdsList":[[98],[98,99,100,101,102],[98,100],[104],[67,97],[66,97,107],[110],[111],[117,119],[128],[66,82,97],[113,114],[113,114,115,116],[118],[94,95],[66,73,82],[58,66,73],[82],[64,66,73],[66],[66,82,88],[66,73,82,88],[66,67,68,73,82,85,88],[66,68,85,88],[94,96],[64,66,82],[56],[66,82],[80,89,91],[62,64,73,82],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],[73],[79],[29,53],[29,47,52],[47,48,49],[47],[48,49,50,51],[33,35,36],[33,35],[34],[32,33,35],[30],[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],[31,34],[37],[32,34,42],[33],[32]],"referencedMap":[[100,1],[103,2],[99,1],[101,3],[102,1],[105,4],[106,5],[108,6],[109,5],[111,7],[112,8],[120,9],[129,10],[130,11],[115,12],[117,13],[116,12],[119,14],[96,15],[58,16],[59,17],[62,18],[63,19],[65,20],[66,20],[67,21],[68,22],[69,23],[70,24],[97,25],[71,20],[73,26],[76,27],[80,28],[81,29],[82,20],[85,30],[94,31],[87,32],[88,33],[92,28],[93,18],[54,34],[53,35],[50,36],[49,37],[48,37],[52,38],[37,39],[36,40],[38,41],[40,42],[32,43],[47,44],[35,45],[41,46],[43,47],[44,48],[45,49],[34,42],[46,43]],"exportedModulesMap":[[100,1],[103,2],[99,1],[101,3],[102,1],[105,4],[106,5],[108,6],[109,5],[111,7],[112,8],[120,9],[129,10],[130,11],[115,12],[117,13],[116,12],[119,14],[96,15],[58,16],[59,17],[62,18],[63,19],[65,20],[66,20],[67,21],[68,22],[69,23],[70,24],[97,25],[71,20],[73,26],[76,27],[80,28],[81,29],[82,20],[85,30],[94,31],[87,32],[88,33],[92,28],[93,18],[54,34],[53,35],[50,36],[49,37],[48,37],[52,38],[37,39],[36,40],[38,41],[40,42],[32,43],[47,44],[35,45],[41,46],[43,47],[44,48],[45,49],[34,42],[46,43]],"semanticDiagnosticsPerFile":[100,98,103,99,101,102,105,104,106,108,109,110,111,112,120,121,107,122,123,124,125,126,127,128,129,130,113,115,117,116,114,119,118,29,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,95,56,96,57,58,59,60,61,62,63,64,65,66,67,55,68,69,70,97,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,94,87,88,89,90,91,92,93,54,53,50,49,48,52,51,30,37,36,38,39,40,32,47,31,35,41,33,43,44,45,42,34,46]},"version":"4.4.2"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/tslib/tslib.d.ts","../../types/dist/types/abort.d.ts","../../types/dist/types/logger.d.ts","../../types/dist/types/http.d.ts","../../types/dist/types/response.d.ts","../../types/dist/types/util.d.ts","../../types/dist/types/middleware.d.ts","../../types/dist/types/command.d.ts","../../types/dist/types/client.d.ts","../../types/dist/types/credentials.d.ts","../../types/dist/types/crypto.d.ts","../../types/dist/types/eventStream.d.ts","../../types/dist/types/pagination.d.ts","../../types/dist/types/transfer.d.ts","../../types/dist/types/serde.d.ts","../../types/dist/types/shapes.d.ts","../../types/dist/types/signature.d.ts","../../types/dist/types/waiter.d.ts","../../types/dist/types/index.d.ts","../../protocol-http/dist/types/httpResponse.d.ts","../../protocol-http/dist/types/httpRequest.d.ts","../../protocol-http/dist/types/httpHandler.d.ts","../../protocol-http/dist/types/isValidHostname.d.ts","../../protocol-http/dist/types/index.d.ts","../src/loggerMiddleware.ts","../src/index.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts","../../../node_modules/@babel/types/lib/index.d.ts","../../../node_modules/@types/babel__generator/index.d.ts","../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../node_modules/@types/babel__template/index.d.ts","../../../node_modules/@types/babel__traverse/index.d.ts","../../../node_modules/@types/babel__core/index.d.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@types/chai-as-promised/index.d.ts","../../../node_modules/@types/fs-extra/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/glob/index.d.ts","../../../node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../node_modules/@types/istanbul-reports/index.d.ts","../../../node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../node_modules/jest-diff/build/types.d.ts","../../../node_modules/jest-diff/build/diffLines.d.ts","../../../node_modules/jest-diff/build/printDiffs.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/pretty-format/build/types.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/minimist/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/parse-json/index.d.ts","../../../node_modules/@types/prettier/index.d.ts","../../../node_modules/@types/stack-utils/index.d.ts","../../../node_modules/@types/uuid/index.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts","../../../node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"12f4cfe2fe60b810c3174537bc2ddb20c1067b7768643d12cb1266fd183afb75","4f1034eac6404cb69bedb8bb04cf246871d1aaebbb99d5617be54f54323464c7","724eb35fdcfa2ad686611b3a8a9d704ad0d478539a8cf0089176e0b8047f7190","d71be3ec7ca8cf9aaf6a8b68653dd3b7d988678edc120a640fc0307967486cc5","2e04271499caec54dea75e7061de06b2549efbe1d652b9bdab2f74fd2572f61f","40b990c27c58cf6d4473c9cdc65daf0428cbfca5cf4b072c73a4ad5a4055ea7f","0b2fe702dda65d25d5e00ec95fc8952036e7e75870c376abeb2cd2150b0a3bed","a9367ec48d3b67800c69c890e616337935df67caad5bff99383949af561042a8","5c1a8d6754a7cceee2135728e8ce6a4f984966a2d16ff1cbed879f7527d55864","a99add785a8a06f19582501ca19e92949f6b840b3f91d880e73582c5efacccde","5a7bb8afd0a22b7754275793f5ca5aeea379a2aad6153a6d68af49a60a899f69","a604c1ae24a48ccdb36396f49a20677d32722f8fd461dfb47186a5b12fd88d60","259c58ced9d80f66a61362a8768529a2746a2bc80183cdb04726f610913bb5d5","b14456a54e15ce24ff9e5ad3b70675b104a36eb35886e3ffaae614292c0908c4","ed01aa50ff4fdbf0f6857596fc385587d87da4896c7980ea75527e098031c488","9e5aef3efc63316ce7aa61b137d354449f792ab92885d03c8894b239db75d90a","8a6c15bfa2a0a9e68005a53fb71b60f3769af0da81001b95e4861310e260b788","aaffeca0d82a3d862c5186af3ca707801e45cc8b2e7d31e430eb715648ffa839","aedcac717f286d9925f0c52aa6165f4e91a2ed05ad9c1e2a8cc91eca18b8eb2b","dd5bab97b9f2d5dec2796fa4ff1b6db7221dfc9158f4e81cf9bcef8750dc32ba","f10a176bcf3a0320f5137c6fc1da2d9b7347f8e2852a0ca5802a0ea9aac2df4c","1c33a2766d210aa58703a1fb9d51c0c49fb0f98495974847870f2f090df9e52a","d1f8a829c5e90734bb47a1d1941b8819aeee6e81a2a772c3c0f70b30e3693fa9","413cb528dd3ba14550e9c10c3f87190aeb9a2359d4a2538972648ee285356af6","57db7032c5fe9405419120a90bab68ce6a67b0165072bd194a1b56c2e78cfe08","d62b7fb6c39357289ba064887935b0966cd99da5a3bb63afc1d6ea4f82ab23f1",{"version":"fb928b21f5a16a1d64a8e2e74a3f389ace89da74820f070f893221213c50aa3c","affectsGlobalScope":true},"28693f9faf04685464c86683696587e65798fea6c12d9131eae4eaf49a0e5ac7","fe892fea1e75a442fffb4a604d7eeb451e858787a9f2f01c4e83bf12a3b5048d","d5c80b931928fbd06f967ce4bdca24fbb37523773ac2c7c87458a689154351fb","fcd718b2feb2820a9844536a1a2fbc77a3da90820e02894d40f879a789f46560","525c8fc510d9632d2a0a9de2d41c3ac1cdd79ff44d3b45c6d81cacabb683528d","ece75b9bfc916f9ccc4e8a9ddee1dda5c987804fbe3b60a01fc120fae731c2ce","4e146a0b69c893ae1538aff8b76f4e8796755bdd45050a83099348d59863437e","a1dc9cfe8be39cbcef62692510b450ab35553ef39382715c88763d0c477704a9","05e732266b5a36789fd9eb846b1f45fec1b6e318b740e3f20fc22fd95f9ebf31","985c3d1b62a4a4f563e3ca3e3a47717cff7d82c81883d62ecf08d8417eb477c4","8059976d7f408e08be353de1833172139bbaa70fc33d01b98249f7226c122119","1733741cf2adc5926ac58c66004268cdc3d34b2ff6250f5114db14253ea02ce1","df18df925483862e8ff216d7b17e50b7311a3add2fb7feb128d321ec099352ca","b6b09f944889a23f19eba6e0f112030e55160c5e1a225012ab2349c582ba5595","152af7c23ec219f632afa2d861abc65993f56cd39a4f3a4018515dbc05950a74","3a0bdc4c5b6f84a1abb5356d7a7fa1f96ac6c5b5646eec3ef2b33c1ed095e155","03394bf8deb8781b490ae9266a843fbdf00647947d79e25fcbf1d89a9e9c8a66","56a15cc211894d79aa44cbb46c276bfd3f10458a61bff2dec99114db8a7e71e3","1a5366b0d4d0153955fd85777c72d35979dabc0537649da6eade09007c0d080a","61c84c3b0eb6e60196d15ae5e21793a1d4241c547f0bdd0529ffae838d1a073c","272522db288a7e03f14ff930407b776357082efce20369ea42239a57af9c7f81","3a8848a9c307429b861402cc69bc472ffe0c05b86474fc158723169161e16389","3f6a1fd73c9dc3bd7f4b79bc075297ca6527904df69b0f2c2c94e4c4c7d9a32c","8969e0b4d22ca77ad011c8fc4a25ec5d515bdfae4ecbd22608ed0d5c38829c1e","b2fe368abdc803b82d27bd27f168d106804422ade198c3c085e2519b195ebd26","0811662f95fabfc05b8f1cefcc46b351092cfc7d2a3e849475c51e2578c5c485","8e2f9031210a8fc27af8844bf69f964307d6013c90336bea9fb5d6ba43248c78","17e157df6125098a1a34eb4d201ee4ac03bbe97e471ab5627bb2c40fce555948","b40652bf8ce4a18133b31349086523b219724dca8df3448c1a0742528e7ad5b9","4bdb7b15b3f9a3ee0b856c7b991d0e522f8ce92f7b66ae8ac00e61d1269dd10a","978aecd2e6bc2ac094e9a35eda98ff8586713857b3655e7c98ca5ed8f7d50662","a185b8e0d7a4ae078a79339d63e98177813aac39256f69f788eaf5c360aa756f","c6b71a0585467900820167370738cfc256e9635471725a7ba1d24a3a262984e5","8bf10278b5c28698a73f800fde911bcc33d405a15f7bddab1c4ade637b69a822","e880a08fbb0d9ee2f733f9183f4d1bdb75bc9e0e64060a8a1fc30540791fcded","3cb4cbade80dde6e045b01d34582625ea45fc2f1080085ef671cefbc9c75625d","69fc4a10650eff3416ba5c2f7ce71744734928a7135ebe5a63c61d2d03ca3ec3","13918848c4e07d1094164112bd7fd151d61cbb949ceef340a2a4595cd609afb6","9af6a9de7bd818e68c4236f20027ff4b19387c2269a6952945d1a716c177cc4d","3497438242251378cf232f36a7fabac70e7bd8229d68dac8955534e63ffc8ff4","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","f6f04f1c31ff0314a67d7911e49a60e76cd5fc4e50c6374e506cb85916fadec9","b668b7fb7c52a05fb9233a27ba5099a73cd8e157b037d67399336635495ab483","b25c5f2970d06c729f464c0aeaa64b1a5b5f1355aa93554bb5f9c199b8624b1e","069733dc220affbe58d9c1d1a93af3707bc515aaed761701d8741b57da4cb964","3051751533eee92572241b3cef28333212401408c4e7aa21718714b793c0f4ed","691aea9772797ca98334eb743e7686e29325b02c6931391bcee4cc7bf27a9f3b","6f1d39d26959517da3bd105c552eded4c34702705c64d75b03f54d864b6e41c2",{"version":"e9cf450600c496a87ab96d288157b79be6c193e8623bd93553d5d64755940dea","affectsGlobalScope":true},{"version":"c8a2f72f046b5efb790cc37cfe79dcf11ce8e35e7e7d9430e10e53e0aa05c7a2","affectsGlobalScope":true},"5171627120eeb3a7e8afb8ed04ea9be7f0b53ba09bb1fc95172483e0fbb0740c","95c22bc19835e28e2e524a4bb8898eb5f2107b640d7279a6d3aade261916bbf2","393137c76bd922ba70a2f8bf1ade4f59a16171a02fb25918c168d48875b0cfb0","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","905c3e8f7ddaa6c391b60c05b2f4c3931d7127ad717a080359db3df510b7bdab","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"ce2169125f42515a26fa60977b6d56ae407f3462e28832fbf6a9013f6a828bab","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","e437d83044ba17246a861aa9691aa14223ff4a9d6f338ab1269c41c758586a88","c9ad058b2cc9ce6dc2ed92960d6d009e8c04bef46d3f5312283debca6869f613","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","08b428a44bc98005536a12456518797e9afe2a08e8b5d9785641713a54475881","c6c4fea9acc55d5e38ff2b70d57ab0b5cdbd08f8bc5d7a226e322cea128c5b57","96b49a9de749afcf92b5bce1d8cc42cfae6816cdf5ea36584fd9256b8b2e5292","3bdd93ec24853e61bfa4c63ebaa425ff3e474156e87a47d90122e1d8cc717c1f","5a2a25feca554a8f289ed62114771b8c63d89f2b58325e2f8b7043e4e0160d11","3845d3b64286c12c60d39fc90ac1cc5e47cbc951530658d2567d578b2faa1f26"],"options":{"declaration":true,"declarationDir":"./types","downlevelIteration":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":true,"inlineSourceMap":true,"inlineSources":true,"module":99,"noEmitHelpers":true,"noFallthroughCasesInSwitch":true,"noUnusedParameters":false,"outDir":"./es","preserveConstEnums":true,"removeComments":false,"rootDir":"../src","sourceMap":false,"strict":true,"target":1,"useUnknownInCatchVariables":false},"fileIdsList":[[97],[97,98,99,100,101],[97,99],[103],[66,96],[65,96,106],[109],[110],[116,118],[127],[65,81,96],[112,113],[112,113,114,115],[117],[93,94],[65,72,81],[57,65,72],[81],[63,65,72],[65],[65,81,87],[65,72,81,87],[65,66,67,72,81,84,87],[65,67,84,87],[93,95],[63,65,81],[55],[65,81],[79,88,90],[61,63,72,81],[54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92],[72],[78],[28,52],[28,46,51],[46,47,48],[46],[47,48,49,50],[32,34,35],[32,34],[33],[31,32,34],[29],[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],[30,33],[36],[31,33,41],[32],[31]],"referencedMap":[[99,1],[102,2],[98,1],[100,3],[101,1],[104,4],[105,5],[107,6],[108,5],[110,7],[111,8],[119,9],[128,10],[129,11],[114,12],[116,13],[115,12],[118,14],[95,15],[57,16],[58,17],[61,18],[62,19],[64,20],[65,20],[66,21],[67,22],[68,23],[69,24],[96,25],[70,20],[72,26],[75,27],[79,28],[80,29],[81,20],[84,30],[93,31],[86,32],[87,33],[91,28],[92,18],[53,34],[52,35],[49,36],[48,37],[47,37],[51,38],[36,39],[35,40],[37,41],[39,42],[31,43],[46,44],[34,45],[40,46],[42,47],[43,48],[44,49],[33,42],[45,43]],"exportedModulesMap":[[99,1],[102,2],[98,1],[100,3],[101,1],[104,4],[105,5],[107,6],[108,5],[110,7],[111,8],[119,9],[128,10],[129,11],[114,12],[116,13],[115,12],[118,14],[95,15],[57,16],[58,17],[61,18],[62,19],[64,20],[65,20],[66,21],[67,22],[68,23],[69,24],[96,25],[70,20],[72,26],[75,27],[79,28],[80,29],[81,20],[84,30],[93,31],[86,32],[87,33],[91,28],[92,18],[53,34],[52,35],[49,36],[48,37],[47,37],[51,38],[36,39],[35,40],[37,41],[39,42],[31,43],[46,44],[34,45],[40,46],[42,47],[43,48],[44,49],[33,42],[45,43]],"semanticDiagnosticsPerFile":[99,97,102,98,100,101,104,103,105,107,108,109,110,111,119,120,106,121,122,123,124,125,126,127,128,129,112,114,116,115,113,118,117,28,7,6,2,8,9,10,11,12,13,14,15,3,4,19,16,17,18,20,21,22,5,23,24,25,26,1,27,94,55,95,56,57,58,59,60,61,62,63,64,65,66,54,67,68,69,96,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,93,86,87,88,89,90,91,92,53,52,49,48,47,51,50,29,36,35,37,38,39,31,46,30,34,40,32,42,43,44,41,33,45]},"version":"4.4.2"}
|
package/jest.config.js
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { Logger, MiddlewareStack } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { getLoggerPlugin, loggerMiddleware, loggerMiddlewareOptions } from "./loggerMiddleware";
|
|
4
|
-
|
|
5
|
-
describe("getLoggerPlugin", () => {
|
|
6
|
-
const mockClientStack = {
|
|
7
|
-
add: jest.fn(),
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
afterEach(() => {
|
|
11
|
-
jest.clearAllMocks();
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
it("adds loggerMiddleware", () => {
|
|
15
|
-
getLoggerPlugin({}).applyToStack(mockClientStack as unknown as MiddlewareStack<any, any>);
|
|
16
|
-
expect(mockClientStack.add).toHaveBeenCalledTimes(1);
|
|
17
|
-
expect(mockClientStack.add.mock.calls[0][1]).toEqual(loggerMiddlewareOptions);
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
describe("loggerMiddleware", () => {
|
|
22
|
-
const mockNext = jest.fn();
|
|
23
|
-
|
|
24
|
-
const mockArgs = {
|
|
25
|
-
input: {
|
|
26
|
-
inputKey: "inputValue",
|
|
27
|
-
},
|
|
28
|
-
request: {
|
|
29
|
-
method: "GET",
|
|
30
|
-
headers: {},
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const mockOutput = {
|
|
35
|
-
$metadata: {
|
|
36
|
-
statusCode: 200,
|
|
37
|
-
requestId: "requestId",
|
|
38
|
-
attempts: 2,
|
|
39
|
-
totalRetryDelay: 350,
|
|
40
|
-
},
|
|
41
|
-
outputKey: "outputValue",
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const mockResponse = {
|
|
45
|
-
response: {
|
|
46
|
-
statusCode: 200,
|
|
47
|
-
headers: {
|
|
48
|
-
"x-amzn-requestid": "requestId",
|
|
49
|
-
"x-amz-id-2": "extendedRequestId",
|
|
50
|
-
"x-amz-cf-id": "cfId",
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
output: mockOutput,
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
afterEach(() => {
|
|
57
|
-
jest.clearAllMocks();
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
it("returns without logging if context.logger is not defined", async () => {
|
|
61
|
-
mockNext.mockResolvedValueOnce(mockResponse);
|
|
62
|
-
const response = await loggerMiddleware()(mockNext, {})(mockArgs);
|
|
63
|
-
expect(mockNext).toHaveBeenCalledTimes(1);
|
|
64
|
-
expect(response).toStrictEqual(mockResponse);
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
it("returns without logging if context.logger doesn't have info function", async () => {
|
|
68
|
-
mockNext.mockResolvedValueOnce(mockResponse);
|
|
69
|
-
const logger = {} as Logger;
|
|
70
|
-
const response = await loggerMiddleware()(mockNext, { logger })(mockArgs);
|
|
71
|
-
expect(mockNext).toHaveBeenCalledTimes(1);
|
|
72
|
-
expect(response).toStrictEqual(mockResponse);
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
describe("logs if context.logger has info function", () => {
|
|
76
|
-
it("success case with clientName, commandName, input, metadata", async () => {
|
|
77
|
-
mockNext.mockResolvedValueOnce(mockResponse);
|
|
78
|
-
|
|
79
|
-
const logger = { info: jest.fn() } as unknown as Logger;
|
|
80
|
-
const clientName = "mockClientName";
|
|
81
|
-
const commandName = "mockCommandName";
|
|
82
|
-
|
|
83
|
-
const mockInputLog = { inputKey: "inputKey", inputSensitiveKey: "SENSITIVE_VALUE" };
|
|
84
|
-
const inputFilterSensitiveLog = jest.fn().mockReturnValueOnce(mockInputLog);
|
|
85
|
-
const mockOutputLog = { outputKey: "outputKey", outputSensitiveKey: "SENSITIVE_VALUE" };
|
|
86
|
-
const outputFilterSensitiveLog = jest.fn().mockReturnValueOnce(mockOutputLog);
|
|
87
|
-
|
|
88
|
-
const context = {
|
|
89
|
-
logger,
|
|
90
|
-
clientName,
|
|
91
|
-
commandName,
|
|
92
|
-
inputFilterSensitiveLog,
|
|
93
|
-
outputFilterSensitiveLog,
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
const response = await loggerMiddleware()(mockNext, context)(mockArgs);
|
|
97
|
-
expect(mockNext).toHaveBeenCalledTimes(1);
|
|
98
|
-
expect(response).toStrictEqual(mockResponse);
|
|
99
|
-
|
|
100
|
-
expect(inputFilterSensitiveLog).toHaveBeenCalledTimes(1);
|
|
101
|
-
expect(inputFilterSensitiveLog).toHaveBeenCalledWith(mockArgs.input);
|
|
102
|
-
|
|
103
|
-
const { $metadata, ...outputWithoutMetadata } = mockOutput;
|
|
104
|
-
expect(outputFilterSensitiveLog).toHaveBeenCalledTimes(1);
|
|
105
|
-
expect(outputFilterSensitiveLog).toHaveBeenCalledWith(outputWithoutMetadata);
|
|
106
|
-
|
|
107
|
-
expect(logger.info).toHaveBeenCalledTimes(1);
|
|
108
|
-
expect(logger.info).toHaveBeenCalledWith({
|
|
109
|
-
clientName,
|
|
110
|
-
commandName,
|
|
111
|
-
input: mockInputLog,
|
|
112
|
-
output: mockOutputLog,
|
|
113
|
-
metadata: $metadata,
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
it("header x-amzn-request-id as requestId if x-amzn-requestid is not present", async () => {
|
|
118
|
-
const requestIdBackup = "requestIdBackup";
|
|
119
|
-
const customResponse = {
|
|
120
|
-
...mockResponse,
|
|
121
|
-
response: {
|
|
122
|
-
...mockResponse.response,
|
|
123
|
-
headers: {
|
|
124
|
-
"x-amzn-request-id": requestIdBackup,
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
};
|
|
128
|
-
mockNext.mockResolvedValueOnce(customResponse);
|
|
129
|
-
const logger = { info: jest.fn() } as unknown as Logger;
|
|
130
|
-
const inputFilterSensitiveLog = jest.fn().mockImplementationOnce((input) => input);
|
|
131
|
-
const outputFilterSensitiveLog = jest.fn().mockImplementationOnce((output) => output);
|
|
132
|
-
|
|
133
|
-
const context = {
|
|
134
|
-
logger,
|
|
135
|
-
inputFilterSensitiveLog,
|
|
136
|
-
outputFilterSensitiveLog,
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
const response = await loggerMiddleware()(mockNext, context)(mockArgs);
|
|
140
|
-
expect(mockNext).toHaveBeenCalledTimes(1);
|
|
141
|
-
expect(response).toStrictEqual(customResponse);
|
|
142
|
-
|
|
143
|
-
const { $metadata, ...outputWithoutMetadata } = mockOutput;
|
|
144
|
-
expect(logger.info).toHaveBeenCalledTimes(1);
|
|
145
|
-
expect(logger.info).toHaveBeenCalledWith({
|
|
146
|
-
input: mockArgs.input,
|
|
147
|
-
output: outputWithoutMetadata,
|
|
148
|
-
metadata: $metadata,
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
});
|
package/src/loggerMiddleware.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
-
import {
|
|
3
|
-
AbsoluteLocation,
|
|
4
|
-
HandlerExecutionContext,
|
|
5
|
-
InitializeHandler,
|
|
6
|
-
InitializeHandlerArguments,
|
|
7
|
-
InitializeHandlerOptions,
|
|
8
|
-
InitializeHandlerOutput,
|
|
9
|
-
MetadataBearer,
|
|
10
|
-
Pluggable,
|
|
11
|
-
} from "@aws-sdk/types";
|
|
12
|
-
|
|
13
|
-
export const loggerMiddleware =
|
|
14
|
-
() =>
|
|
15
|
-
<Output extends MetadataBearer = MetadataBearer>(
|
|
16
|
-
next: InitializeHandler<any, Output>,
|
|
17
|
-
context: HandlerExecutionContext
|
|
18
|
-
): InitializeHandler<any, Output> =>
|
|
19
|
-
async (args: InitializeHandlerArguments<any>): Promise<InitializeHandlerOutput<Output>> => {
|
|
20
|
-
const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context;
|
|
21
|
-
|
|
22
|
-
const response = await next(args);
|
|
23
|
-
|
|
24
|
-
if (!logger) {
|
|
25
|
-
return response;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
if (typeof logger.info === "function") {
|
|
29
|
-
const { $metadata, ...outputWithoutMetadata } = response.output;
|
|
30
|
-
logger.info({
|
|
31
|
-
clientName,
|
|
32
|
-
commandName,
|
|
33
|
-
input: inputFilterSensitiveLog(args.input),
|
|
34
|
-
output: outputFilterSensitiveLog(outputWithoutMetadata),
|
|
35
|
-
metadata: $metadata,
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return response;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export const loggerMiddlewareOptions: InitializeHandlerOptions & AbsoluteLocation = {
|
|
43
|
-
name: "loggerMiddleware",
|
|
44
|
-
tags: ["LOGGER"],
|
|
45
|
-
step: "initialize",
|
|
46
|
-
override: true,
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
50
|
-
export const getLoggerPlugin = (options: any): Pluggable<any, any> => ({
|
|
51
|
-
applyToStack: (clientStack) => {
|
|
52
|
-
clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
|
|
53
|
-
},
|
|
54
|
-
});
|
package/tsconfig.cjs.json
DELETED
package/tsconfig.es.json
DELETED