@trivikr-test/util-middleware
Advanced tools
Comparing version 3.55.0 to 3.170.0-es2015
@@ -1,6 +0,6 @@ | ||
export var normalizeProvider = function (input) { | ||
export const normalizeProvider = (input) => { | ||
if (typeof input === "function") | ||
return input; | ||
var promisified = Promise.resolve(input); | ||
return function () { return promisified; }; | ||
const promisified = Promise.resolve(input); | ||
return () => promisified; | ||
}; |
@@ -1,2 +0,2 @@ | ||
import { Provider } from "@aws-sdk/types"; | ||
import { Provider } from "@trivikr-test/types"; | ||
export declare const normalizeProvider: <T>(input: T | Provider<T>) => Provider<T>; |
export * from "./normalizeProvider"; |
@@ -1,2 +0,4 @@ | ||
import { Provider } from "@aws-sdk/types"; | ||
export declare const normalizeProvider: <T>(input: T | Provider<T>) => Provider<T>; | ||
import { Provider } from "@trivikr-test/types"; | ||
export declare const normalizeProvider: <T>( | ||
input: T | Provider<T> | ||
) => Provider<T>; |
{ | ||
"name": "@trivikr-test/util-middleware", | ||
"version": "3.55.0", | ||
"version": "3.170.0-es2015", | ||
"description": "Shared utilities for to be used in middleware packages.", | ||
@@ -11,2 +11,3 @@ "main": "./dist-cjs/index.js", | ||
"build:es": "tsc -p tsconfig.es.json", | ||
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", | ||
"build:types": "tsc -p tsconfig.types.json", | ||
@@ -30,7 +31,7 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", | ||
"devDependencies": { | ||
"@trivikr-test/types": "3.55.0", | ||
"@trivikr-test/types": "3.170.0-es2015", | ||
"@tsconfig/recommended": "1.0.1", | ||
"@types/node": "^10.0.0", | ||
"concurrently": "7.0.0", | ||
"downlevel-dts": "0.7.0", | ||
"downlevel-dts": "0.10.1", | ||
"rimraf": "3.0.2", | ||
@@ -37,0 +38,0 @@ "typedoc": "0.19.2", |
@@ -1,12 +0,1 @@ | ||
# @aws-sdk/util-middleware | ||
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/util-middleware/latest.svg)](https://www.npmjs.com/package/@aws-sdk/util-middleware) | ||
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/util-middleware.svg)](https://www.npmjs.com/package/@aws-sdk/util-middleware) | ||
> An internal package | ||
This package provides shared utilities for middleware. | ||
## Usage | ||
You probably shouldn't, at least directly. | ||
Please refer [README.md](https://github.com/aws/aws-sdk-js-v3/blob/v3.170.0/packages/util-middleware/README.md) for v3.170.0. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29
14208
2
2