@socketsecurity/registry
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -1,37 +0,40 @@ | ||
declare enum Categories { | ||
CLEANUP = 'cleanup', | ||
LEVELUP = 'levelup', | ||
SPEEDUP = 'speedup', | ||
TUNEUP = 'tuneup' | ||
} | ||
declare type CategoryString = `${Categories}` | ||
declare enum PURL_Type { | ||
NPM = 'npm' | ||
} | ||
declare type EcosystemString = `${PURL_Type}` | ||
declare enum Interop { | ||
BROWSERIFY = 'browserify', | ||
CJS = 'cjs', | ||
ESM = 'esm' | ||
} | ||
declare type InteropString = `${Interop}` | ||
declare type Manifest = { | ||
[Ecosystem in PURL_Type]: ManifestEntry[] | ||
} | ||
declare type ManifestEntry = [string, ManifestEntryData] | ||
declare type ManifestEntryData = { | ||
categories: CategoryString[] | ||
interop: InteropString[] | ||
license: string | ||
name: string | ||
package: string | ||
version: string | ||
deprecated?: boolean | ||
engines: { node: string; npm?: string } | ||
skipTests?: boolean | ||
} | ||
declare interface SocketSecurityRegistry { | ||
getManifestData(): Manifest | undefined | ||
getManifestData(eco: EcosystemString): ManifestEntry[] | undefined | ||
getManifestData( | ||
declare namespace SocketSecurityRegistry { | ||
export enum Categories { | ||
CLEANUP = 'cleanup', | ||
LEVELUP = 'levelup', | ||
SPEEDUP = 'speedup', | ||
TUNEUP = 'tuneup' | ||
} | ||
export type CategoryString = `${Categories}` | ||
export type EcosystemString = `${PURL_Type}` | ||
export enum Interop { | ||
BROWSERIFY = 'browserify', | ||
CJS = 'cjs', | ||
ESM = 'esm' | ||
} | ||
export type InteropString = `${Interop}` | ||
export type Manifest = { | ||
[Ecosystem in PURL_Type]: ManifestEntry[] | ||
} | ||
export type ManifestEntry = [string, ManifestEntryData] | ||
export type ManifestEntryData = { | ||
categories: CategoryString[] | ||
interop: InteropString[] | ||
license: string | ||
name: string | ||
package: string | ||
version: string | ||
deprecated?: boolean | ||
engines: { | ||
node: string | ||
npm?: string | ||
} | ||
skipTests?: boolean | ||
} | ||
export function getManifestData(): Manifest | undefined | ||
export function getManifestData(eco: EcosystemString): ManifestEntry[] | undefined | ||
export function getManifestData( | ||
eco: EcosystemString, | ||
@@ -41,3 +44,2 @@ regPkgName: string | ||
} | ||
declare const registry: SocketSecurityRegistry | ||
export = registry | ||
export = SocketSecurityRegistry |
@@ -911,3 +911,3 @@ { | ||
[ | ||
"pkg:npm/%40socketregistry/number-is-nan@1.0.6", | ||
"pkg:npm/%40socketregistry/number-is-nan@1.0.7", | ||
{ | ||
@@ -920,3 +920,3 @@ "categories": ["cleanup"], | ||
"package": "number-is-nan", | ||
"version": "1.0.6" | ||
"version": "1.0.7" | ||
} | ||
@@ -1202,3 +1202,3 @@ ], | ||
[ | ||
"pkg:npm/%40socketregistry/side-channel@1.0.5", | ||
"pkg:npm/%40socketregistry/side-channel@1.0.6", | ||
{ | ||
@@ -1211,3 +1211,3 @@ "categories": ["cleanup"], | ||
"package": "side-channel", | ||
"version": "1.0.5" | ||
"version": "1.0.6" | ||
} | ||
@@ -1214,0 +1214,0 @@ ], |
{ | ||
"name": "@socketsecurity/registry", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Socket.dev registry helpers methods and metadata", |
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
48028
1651
1609
0