@smithy/middleware-stack
Advanced tools
+7
-8
| { | ||
| "name": "@smithy/middleware-stack", | ||
| "version": "4.2.12", | ||
| "version": "4.2.13", | ||
| "description": "Provides a means for composing multiple middleware functions into a single handler", | ||
| "scripts": { | ||
| "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", | ||
| "build:cjs": "node ../../scripts/inline middleware-stack", | ||
| "build:es": "yarn g:tsc -p tsconfig.es.json", | ||
| "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'", | ||
| "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline middleware-stack", | ||
| "build:types": "yarn g:tsc -p tsconfig.types.json", | ||
| "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4", | ||
| "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", | ||
| "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo", | ||
| "extract:docs": "api-extractor run --local", | ||
| "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"", | ||
| "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", | ||
| "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"", | ||
| "extract:docs": "api-extractor run --local", | ||
| "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", | ||
| "test": "yarn g:vitest run", | ||
@@ -30,3 +29,3 @@ "test:watch": "yarn g:vitest watch" | ||
| "dependencies": { | ||
| "@smithy/types": "^4.13.1", | ||
| "@smithy/types": "^4.14.0", | ||
| "tslib": "^2.6.2" | ||
@@ -33,0 +32,0 @@ }, |
+13
-0
@@ -6,2 +6,15 @@ # @smithy/middleware-stack | ||
| ### :warning: Internal API :warning: | ||
| > This is an internal package. | ||
| > That means this is used as a dependency for other, public packages, but | ||
| > should not be taken directly as a dependency in your application's `package.json`. | ||
| > If you are updating the version of this package, for example to bring in a | ||
| > bug-fix, you should do so by updating your application lockfile with | ||
| > e.g. `npm up @scope/package` or equivalent command in another | ||
| > package manager, rather than taking a direct dependency. | ||
| --- | ||
| The package contains an implementation of middleware stack interface. Middleware | ||
@@ -8,0 +21,0 @@ stack is a structure storing middleware in specified order and resolve these |
| export * from "./MiddlewareStack"; |
| import { MiddlewareStack } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const constructStack: <Input extends object, Output extends object>() => MiddlewareStack<Input, Output>; |
| import { AbsoluteLocation, HandlerOptions, MiddlewareType, Priority, RelativeLocation, Step } from "@smithy/types"; | ||
| export interface MiddlewareEntry<Input extends object, Output extends object> extends HandlerOptions { | ||
| middleware: MiddlewareType<Input, Output>; | ||
| } | ||
| export interface AbsoluteMiddlewareEntry<Input extends object, Output extends object> extends MiddlewareEntry<Input, Output>, AbsoluteLocation { | ||
| step: Step; | ||
| priority: Priority; | ||
| } | ||
| export interface RelativeMiddlewareEntry<Input extends object, Output extends object> extends MiddlewareEntry<Input, Output>, RelativeLocation { | ||
| } | ||
| export type Normalized<T extends MiddlewareEntry<Input, Output>, Input extends object = {}, Output extends object = {}> = T & { | ||
| after: Normalized<RelativeMiddlewareEntry<Input, Output>, Input, Output>[]; | ||
| before: Normalized<RelativeMiddlewareEntry<Input, Output>, Input, Output>[]; | ||
| }; | ||
| export interface NormalizedRelativeEntry<Input extends object, Output extends object> extends HandlerOptions { | ||
| step: Step; | ||
| middleware: MiddlewareType<Input, Output>; | ||
| next?: NormalizedRelativeEntry<Input, Output>; | ||
| prev?: NormalizedRelativeEntry<Input, Output>; | ||
| priority: null; | ||
| } | ||
| export type NamedMiddlewareEntriesMap<Input extends object, Output extends object> = Record<string, MiddlewareEntry<Input, Output>>; |
92
16.46%41951
-2.62%10
-23.08%594
-4.5%Updated