fast-npm-meta
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -19,2 +19,6 @@ interface PackageManifest { | ||
apiEndpoint?: string; | ||
/** | ||
* Fetch function | ||
*/ | ||
fetch?: typeof fetch; | ||
} | ||
@@ -38,7 +42,8 @@ declare const defaultOptions: { | ||
* | ||
* @param scope - npm scope | ||
* @param scope - scope of package, get from 'npm-package-arg' | ||
* @param npmConfigs - npm configs, read from `.npmrc` file | ||
* @param defaultRegistry - default registry, default to 'https://registry.npmjs.org/' | ||
*/ | ||
declare function pickRegistry(scope: string, npmConfigs: Record<string, string>, defaultRegistry?: string): string; | ||
declare function pickRegistry(scope: string | null | undefined, npmConfigs: Record<string, unknown>, defaultRegistry?: string): string; | ||
export { type ApiOptions, NPM_REGISTRY, type PackageManifest, type ResolvedPackageVersion, defaultOptions, getLatestVersion, getLatestVersionBatch, getVersions, getVersionsBatch, pickRegistry }; |
{ | ||
"name": "fast-npm-meta", | ||
"type": "module", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Get npm package metadata", | ||
@@ -38,5 +38,2 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
], | ||
"dependencies": { | ||
"ofetch": "^1.3.4" | ||
}, | ||
"scripts": { | ||
@@ -43,0 +40,0 @@ "build": "unbuild", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Network access
Supply chain riskThis module accesses the network.
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
10957
0
151
4
- Removedofetch@^1.3.4
- Removeddestr@2.0.3(transitive)
- Removednode-fetch-native@1.6.4(transitive)
- Removedofetch@1.4.1(transitive)
- Removedufo@1.5.4(transitive)