@types/find-cache-dir
Advanced tools
Comparing version 3.2.1 to 5.0.0
{ | ||
"name": "@types/find-cache-dir", | ||
"version": "3.2.1", | ||
"description": "TypeScript definitions for find-cache-dir", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/find-cache-dir", | ||
"version": "5.0.0", | ||
"description": "Stub TypeScript definitions entry for find-cache-dir, which provides its own types definitions", | ||
"main": "", | ||
"scripts": {}, | ||
"license": "MIT", | ||
"contributors": [ | ||
{ | ||
"name": "BendingBender", | ||
"url": "https://github.com/BendingBender", | ||
"githubUsername": "BendingBender" | ||
}, | ||
{ | ||
"name": "Piotr Błażejewicz", | ||
"url": "https://github.com/peterblazejewicz", | ||
"githubUsername": "peterblazejewicz" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/find-cache-dir" | ||
"dependencies": { | ||
"find-cache-dir": "*" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "334de16107158efff7e9ae59f7f60bfce908bd9097d9796e9dd9a62c13c018fe", | ||
"typeScriptVersion": "3.6" | ||
"deprecated": "This is a stub types definition. find-cache-dir provides its own type definitions, so you do not need this installed." | ||
} |
@@ -1,76 +0,3 @@ | ||
# Installation | ||
> `npm install --save @types/find-cache-dir` | ||
This is a stub types definition for @types/find-cache-dir (https://github.com/sindresorhus/find-cache-dir#readme). | ||
# Summary | ||
This package contains type definitions for find-cache-dir (https://github.com/avajs/find-cache-dir#readme). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/find-cache-dir. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/find-cache-dir/index.d.ts) | ||
````ts | ||
// Type definitions for find-cache-dir 3.2 | ||
// Project: https://github.com/avajs/find-cache-dir#readme | ||
// Definitions by: BendingBender <https://github.com/BendingBender> | ||
// Piotr Błażejewicz <https://github.com/peterblazejewicz> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
export = findCacheDir; | ||
/** | ||
* Finds the cache directory using the supplied options. | ||
* The algorithm tries to find a `package.json` file, searching every parent directory of the `cwd` specified | ||
* (or implied from other options). It returns a `string` containing the absolute path to the cache directory, | ||
* or `undefined` if `package.json` was never found or if the `node_modules` directory is unwritable. | ||
*/ | ||
declare function findCacheDir(options: findCacheDir.OptionsWithThunk): ((...pathParts: string[]) => string) | undefined; | ||
declare function findCacheDir(options: findCacheDir.Options): string | undefined; | ||
declare namespace findCacheDir { | ||
interface Options { | ||
/** | ||
* Should be the same as your project name in `package.json`. | ||
*/ | ||
name: string; | ||
/** | ||
* An array of files that will be searched for a common parent directory. | ||
* This common parent directory will be used in lieu of the `cwd` option below. | ||
*/ | ||
files?: string | string[] | undefined; | ||
/** | ||
* Directory to start searching for a `package.json` from. | ||
*/ | ||
cwd?: string | undefined; | ||
/** | ||
* If `true`, the directory will be created synchronously before returning. | ||
* @default false | ||
*/ | ||
create?: boolean | undefined; | ||
/** | ||
* If `true`, this modifies the return type to be a function that is a thunk for `path.join(theFoundCacheDirectory)`. | ||
* @default false | ||
*/ | ||
thunk?: boolean | undefined; | ||
} | ||
interface OptionsWithThunk extends Options { | ||
/** | ||
* If `true`, this modifies the return type to be a function that is a thunk for `path.join(theFoundCacheDirectory)`. | ||
* @default false | ||
*/ | ||
thunk: true; | ||
} | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 20:32:58 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
# Credits | ||
These definitions were written by [BendingBender](https://github.com/BendingBender), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). | ||
find-cache-dir provides its own type definitions, so you don't need @types/find-cache-dir installed! |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
1792
1
3
0
2
1
1
3
1
1
+ Addedfind-cache-dir@*
+ Addedcommon-path-prefix@3.0.0(transitive)
+ Addedfind-cache-dir@5.0.0(transitive)
+ Addedfind-up@6.3.0(transitive)
+ Addedlocate-path@7.2.0(transitive)
+ Addedp-limit@4.0.0(transitive)
+ Addedp-locate@6.0.0(transitive)
+ Addedpath-exists@5.0.0(transitive)
+ Addedpkg-dir@7.0.0(transitive)
+ Addedyocto-queue@1.1.1(transitive)