@smithy/util-middleware
Advanced tools
+6
-7
| { | ||
| "name": "@smithy/util-middleware", | ||
| "version": "4.2.12", | ||
| "version": "4.2.13", | ||
| "description": "Shared utilities for to be used in middleware packages.", | ||
@@ -8,11 +8,10 @@ "main": "./dist-cjs/index.js", | ||
| "scripts": { | ||
| "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", | ||
| "build:cjs": "node ../../scripts/inline util-middleware", | ||
| "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 util-middleware", | ||
| "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", | ||
| "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}\"", | ||
| "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", | ||
| "test": "yarn g:vitest run", | ||
@@ -32,3 +31,3 @@ "test:watch": "yarn g:vitest watch" | ||
| "dependencies": { | ||
| "@smithy/types": "^4.13.1", | ||
| "@smithy/types": "^4.14.0", | ||
| "tslib": "^2.6.2" | ||
@@ -35,0 +34,0 @@ }, |
+9
-4
@@ -6,8 +6,13 @@ # @smithy/util-middleware | ||
| > An internal package | ||
| ### :warning: Internal API :warning: | ||
| This package provides shared utilities for middleware. | ||
| > 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`. | ||
| ## Usage | ||
| > 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. | ||
| You probably shouldn't, at least directly. | ||
| --- |
| import { HandlerExecutionContext } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const getSmithyContext: (context: HandlerExecutionContext) => Record<string, unknown>; |
| /** | ||
| * @internal | ||
| */ | ||
| export * from "./getSmithyContext"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export * from "./normalizeProvider"; |
| import { Provider } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| * | ||
| * @returns a provider function for the input value if it isn't already one. | ||
| */ | ||
| export declare const normalizeProvider: <T>(input: T | Provider<T>) => Provider<T>; |
18
38.46%15674
-1.42%10
-23.08%41
-32.79%Updated