@smithy/invalid-dependency
Advanced tools
+6
-10
@@ -1,10 +0,6 @@ | ||
| 'use strict'; | ||
| const invalidFunction = (message) => () => { | ||
| throw new Error(message); | ||
| }; | ||
| const invalidProvider = (message) => () => Promise.reject(message); | ||
| exports.invalidFunction = invalidFunction; | ||
| exports.invalidProvider = invalidProvider; | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.invalidProvider = exports.invalidFunction = void 0; | ||
| var client_1 = require("@smithy/core/client"); | ||
| Object.defineProperty(exports, "invalidFunction", { enumerable: true, get: function () { return client_1.invalidFunction; } }); | ||
| Object.defineProperty(exports, "invalidProvider", { enumerable: true, get: function () { return client_1.invalidProvider; } }); |
+1
-2
@@ -1,2 +0,1 @@ | ||
| export * from "./invalidFunction"; | ||
| export * from "./invalidProvider"; | ||
| export { invalidFunction, invalidProvider } from "@smithy/core/client"; |
@@ -1,8 +0,2 @@ | ||
| /** | ||
| * @internal | ||
| */ | ||
| export * from "./invalidFunction"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export * from "./invalidProvider"; | ||
| /** @deprecated Use @smithy/core/client instead. */ | ||
| export { invalidFunction, invalidProvider } from "@smithy/core/client"; |
+5
-25
| { | ||
| "name": "@smithy/invalid-dependency", | ||
| "version": "4.2.14", | ||
| "version": "4.3.0", | ||
| "scripts": { | ||
| "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'", | ||
| "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline invalid-dependency", | ||
| "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", | ||
| "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\"", | ||
| "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", | ||
| "test": "yarn g:vitest run", | ||
| "test:watch": "yarn g:vitest watch" | ||
| "build": "yarn g:tsc -p tsconfig.cjs.json && yarn g:tsc -p tsconfig.es.json && yarn g:tsc -p tsconfig.types.json", | ||
| "clean": "rm -rf dist-cjs dist-es dist-types", | ||
| "stage-release": "rm -rf .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz" | ||
| }, | ||
@@ -26,12 +19,5 @@ "main": "./dist-cjs/index.js", | ||
| "dependencies": { | ||
| "@smithy/types": "^4.14.1", | ||
| "@smithy/core": "^3.24.0", | ||
| "tslib": "^2.6.2" | ||
| }, | ||
| "typesVersions": { | ||
| "<4.5": { | ||
| "dist-types/*": [ | ||
| "dist-types/ts3.4/*" | ||
| ] | ||
| } | ||
| }, | ||
| "files": [ | ||
@@ -46,8 +32,2 @@ "dist-*/**" | ||
| }, | ||
| "devDependencies": { | ||
| "concurrently": "7.0.0", | ||
| "downlevel-dts": "0.10.1", | ||
| "premove": "4.0.0", | ||
| "typedoc": "0.23.23" | ||
| }, | ||
| "typedoc": { | ||
@@ -54,0 +34,0 @@ "entryPoint": "src/index.ts" |
| export const invalidFunction = (message) => () => { | ||
| throw new Error(message); | ||
| }; |
| export const invalidProvider = (message) => () => Promise.reject(message); |
| /** | ||
| * @internal | ||
| */ | ||
| export declare const invalidFunction: (message: string) => () => never; |
| import type { Provider } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const invalidProvider: (message: string) => Provider<any>; |
-17
| # @smithy/invalid-dependency | ||
| [](https://www.npmjs.com/package/@smithy/invalid-dependency) | ||
| [](https://www.npmjs.com/package/@smithy/invalid-dependency) | ||
| ### :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. | ||
| --- |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
0
-100%13212
-12%5
-50%9
-70%1
Infinity%0
-100%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed