@aws-sdk/middleware-logger 3.2.0 → 3.5.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/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-logger",
3
- "version": "3.2.0",
3
+ "version": "3.5.0",
4
4
  "scripts": {
5
5
  "prepublishOnly": "yarn build:cjs && yarn build:es",
6
6
  "pretest": "yarn build:cjs",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build": "yarn build:es && yarn build:cjs",
10
+ "postbuild": "downlevel-dts types types/ts3.4",
10
11
  "test": "jest --passWithNoTests"
11
12
  },
12
13
  "author": {
@@ -17,13 +18,13 @@
17
18
  "license": "Apache-2.0",
18
19
  "main": "./dist/cjs/index.js",
19
20
  "module": "./dist/es/index.js",
20
- "types": "./dist/cjs/index.d.ts",
21
+ "types": "./types/index.d.ts",
21
22
  "dependencies": {
23
+ "@aws-sdk/types": "3.4.1",
22
24
  "tslib": "^1.8.0"
23
25
  },
24
26
  "devDependencies": {
25
- "@aws-sdk/protocol-http": "3.2.0",
26
- "@aws-sdk/types": "3.1.0",
27
+ "@aws-sdk/protocol-http": "3.5.0",
27
28
  "@types/jest": "^26.0.4",
28
29
  "@types/node": "^10.0.0",
29
30
  "jest": "^26.1.0",
@@ -32,6 +33,13 @@
32
33
  "engines": {
33
34
  "node": ">= 10.0.0"
34
35
  },
36
+ "typesVersions": {
37
+ "<4.0": {
38
+ "types/*": [
39
+ "types/ts3.4/*"
40
+ ]
41
+ }
42
+ },
35
43
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/master/packages/middleware-logger",
36
44
  "repository": {
37
45
  "type": "git",
@@ -42,6 +42,7 @@ export const loggerMiddlewareOptions: InitializeHandlerOptions & AbsoluteLocatio
42
42
  name: "loggerMiddleware",
43
43
  tags: ["LOGGER"],
44
44
  step: "initialize",
45
+ override: true,
45
46
  };
46
47
 
47
48
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
package/tsconfig.cjs.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
+ "declarationDir": "./types",
3
4
  "rootDir": "./src",
4
5
  "outDir": "./dist/cjs",
5
6
  "baseUrl": "."
package/tsconfig.es.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "lib": ["es5", "es2015.promise", "es2015.iterable"],
4
+ "declarationDir": "./types",
4
5
  "rootDir": "./src",
5
6
  "outDir": "./dist/es",
6
7
  "baseUrl": "."
File without changes
File without changes
File without changes
@@ -1 +1 @@
1
- export * from "./loggerMiddleware";
1
+ export * from "./loggerMiddleware";
@@ -1,4 +1,4 @@
1
- import { AbsoluteLocation, HandlerExecutionContext, InitializeHandler, InitializeHandlerOptions, MetadataBearer, Pluggable } from "@aws-sdk/types";
2
- export declare const loggerMiddleware: () => <Output extends MetadataBearer = MetadataBearer>(next: InitializeHandler<any, Output>, context: HandlerExecutionContext) => InitializeHandler<any, Output>;
3
- export declare const loggerMiddlewareOptions: InitializeHandlerOptions & AbsoluteLocation;
4
- export declare const getLoggerPlugin: (options: any) => Pluggable<any, any>;
1
+ import { AbsoluteLocation, HandlerExecutionContext, InitializeHandler, InitializeHandlerOptions, MetadataBearer, Pluggable } from "@aws-sdk/types";
2
+ export declare const loggerMiddleware: () => <Output extends MetadataBearer = MetadataBearer>(next: InitializeHandler<any, Output>, context: HandlerExecutionContext) => InitializeHandler<any, Output>;
3
+ export declare const loggerMiddlewareOptions: InitializeHandlerOptions & AbsoluteLocation;
4
+ export declare const getLoggerPlugin: (options: any) => Pluggable<any, any>;
@@ -1 +1 @@
1
- export {};
1
+ export {};