@verdaccio/types
Advanced tools
Comparing version 11.0.0-6-next.13 to 11.0.0-6-next.14
@@ -79,3 +79,2 @@ export interface PackageAccess { | ||
version: string; | ||
devDependencies?: string; | ||
directories?: any; | ||
@@ -101,3 +100,7 @@ dist: Dist; | ||
etag?: string; | ||
dependencies: any; | ||
dependencies?: Dependencies; | ||
peerDependencies?: Dependencies; | ||
devDependencies?: Dependencies; | ||
optionalDependencies?: Dependencies; | ||
bundleDependencies?: Dependencies; | ||
keywords?: string | string[]; | ||
@@ -110,3 +113,15 @@ nodeVersion?: string; | ||
deprecated?: string; | ||
funding?: { | ||
type: string; | ||
url: string; | ||
}; | ||
engines?: Engines; | ||
hasInstallScript?: boolean; | ||
} | ||
export interface Dependencies { | ||
[key: string]: string; | ||
} | ||
export interface Engines { | ||
[key: string]: string; | ||
} | ||
export interface Versions { | ||
@@ -184,2 +199,13 @@ [key: string]: Version; | ||
} | ||
export declare type AbbreviatedVersion = Pick<Version, 'name' | 'version' | 'description' | 'dependencies' | 'devDependencies' | 'bin' | 'dist' | 'engines' | 'funding' | 'peerDependencies'>; | ||
export interface AbbreviatedVersions { | ||
[key: string]: AbbreviatedVersion; | ||
} | ||
/** | ||
* | ||
*/ | ||
export declare type AbbreviatedManifest = Pick<Manifest, 'name' | 'dist-tags' | 'time'> & { | ||
modified: string; | ||
versions: AbbreviatedVersions; | ||
}; | ||
export interface PublishManifest { | ||
@@ -186,0 +212,0 @@ /** |
# Change Log | ||
## 11.0.0-6-next.14 | ||
### Minor Changes | ||
- 37274e4c: feat: implement abbreviated manifest | ||
Enable abbreviated manifest data by adding the header: | ||
``` | ||
curl -H "Accept: application/vnd.npm.install-v1+json" https://registry.npmjs.org/verdaccio | ||
``` | ||
It returns a filtered manifest, additionally includes the [time](https://github.com/pnpm/rfcs/pull/2) field by request. | ||
Current support for packages managers: | ||
- npm: yes | ||
- pnpm: yes | ||
- yarn classic: yes | ||
- yarn modern (+2.x): [no](https://github.com/yarnpkg/berry/pull/3981#issuecomment-1076566096) | ||
https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#abbreviated-metadata-format | ||
## 11.0.0-6-next.13 | ||
@@ -4,0 +27,0 @@ |
{ | ||
"name": "@verdaccio/types", | ||
"version": "11.0.0-6-next.13", | ||
"version": "11.0.0-6-next.14", | ||
"description": "verdaccio types definitions", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/node": "16.11.47", | ||
"@types/node": "16.11.51", | ||
"typedoc": "beta", | ||
@@ -40,0 +40,0 @@ "typedoc-plugin-missing-exports": "1.0.0" |
@@ -95,3 +95,2 @@ export interface PackageAccess { | ||
version: string; | ||
devDependencies?: string; | ||
directories?: any; | ||
@@ -117,3 +116,7 @@ dist: Dist; | ||
etag?: string; | ||
dependencies: any; | ||
dependencies?: Dependencies; | ||
peerDependencies?: Dependencies; | ||
devDependencies?: Dependencies; | ||
optionalDependencies?: Dependencies; | ||
bundleDependencies?: Dependencies; | ||
keywords?: string | string[]; | ||
@@ -126,4 +129,15 @@ nodeVersion?: string; | ||
deprecated?: string; | ||
funding?: { type: string; url: string }; | ||
engines?: Engines; | ||
hasInstallScript?: boolean; | ||
} | ||
export interface Dependencies { | ||
[key: string]: string; | ||
} | ||
export interface Engines { | ||
[key: string]: string; | ||
} | ||
export interface Versions { | ||
@@ -200,2 +214,28 @@ [key: string]: Version; | ||
} | ||
export type AbbreviatedVersion = Pick< | ||
Version, | ||
| 'name' | ||
| 'version' | ||
| 'description' | ||
| 'dependencies' | ||
| 'devDependencies' | ||
| 'bin' | ||
| 'dist' | ||
| 'engines' | ||
| 'funding' | ||
| 'peerDependencies' | ||
>; | ||
export interface AbbreviatedVersions { | ||
[key: string]: AbbreviatedVersion; | ||
} | ||
/** | ||
* | ||
*/ | ||
export type AbbreviatedManifest = Pick<Manifest, 'name' | 'dist-tags' | 'time'> & { | ||
modified: string; | ||
versions: AbbreviatedVersions; | ||
}; | ||
export interface PublishManifest { | ||
@@ -202,0 +242,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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
76646
1407
0