UNPKG

dwnpm

Version:

Decentralized Registry Package Manager (DRPM) helps developers publish, install, find and manage Decentralized Packages (DPKs) published to Decentralized Web Nodes (DWNs). DRPM does this by looking up a Decentralized Identifier (DID) to find its DID docum

36 lines 1.81 kB
import { Request } from 'express'; import { PrefixResponse, RegistryGetDpkPath, RegistryResponse, RegistrySaveDpkData, RouteFailureParams, RouteSuccessParams } from '../utils/types.js'; export declare class RegistryUtils { static saveDpkTarball({ name, version, data }: RegistrySaveDpkData): Promise<boolean | string>; static saveDpkMetadata({ name, version, data }: RegistrySaveDpkData): Promise<boolean>; static ensureDpkDir(path: string): Promise<any>; static getDpkPath({ name }: { name: string; }): string; static getDpkLatestPath({ name }: { name: string; }): string; static getDpkVersionPath({ name, version }: RegistryGetDpkPath): string; static getDpkMetadataPath({ name, version }: RegistryGetDpkPath): string; static getDpkTarballPath({ name, version }: RegistryGetDpkPath): string; static saveMetadataToPath({ path, metadata }: { path: string; metadata: any; }): Promise<boolean>; static saveTarballToPath({ path, tarball }: { path: string; tarball: any; }): Promise<boolean>; static loadDpkMetadata(path: string): Promise<any>; static loadDpkTarball(path: string): Promise<any>; static createMetadata(metadata: any): any; static createDist(name: string, version: string): any; static updateMetadata(existingMetadata: any, newMetadata: any): any; static calculateShasum1(path: string): any; static isPrefixed(semver: string): boolean; static findPrefix(prefixed: string): PrefixResponse; static checkReqParams(params: Request['params']): string[][]; static routeFailure({ code, status, error }: RouteFailureParams): RegistryResponse; static routeSuccess({ code, status, data }: RouteSuccessParams): RegistryResponse; } //# sourceMappingURL=utils.d.ts.map