crates.io
Advanced tools
Comparing version 2.2.6 to 2.2.7
@@ -1,18 +0,30 @@ | ||
export declare namespace Endpoint { | ||
namespace Crates { | ||
function authors(packageName: string, version: string): string; | ||
function crate(packageName: string): string; | ||
function crates(): string; | ||
function dependencies(packageName: string): string; | ||
function download(packageName: string, version: string): string; | ||
function downloads(packageName: string): string; | ||
function following(packageName: string): string; | ||
function owners(packageName: string): string; | ||
function ownerTeam(packageName: string): string; | ||
function ownerUser(packageName: string): string; | ||
function reverseDependencies(packageName: string): string; | ||
function version(packageName: string, version: string): string; | ||
function versions(packageName: string): string; | ||
} | ||
function summary(): string; | ||
} | ||
export declare const Endpoint: { | ||
AUTHORS: string; | ||
CRATES: string; | ||
DEPENDENCIES: string; | ||
DOWNLOAD: string; | ||
DOWNLOADS: string; | ||
FOLLOWING: string; | ||
OWNERS: string; | ||
OWNER_TEAM: string; | ||
OWNER_USER: string; | ||
REVERSE_DEPENDENCIES: string; | ||
SUMMARY: string; | ||
VERSIONS: string; | ||
Crates: { | ||
authors(packageName: string, version: string): string; | ||
crate(packageName: string): string; | ||
crates(): string; | ||
dependencies(packageName: string): string; | ||
download(packageName: string, version: string): string; | ||
downloads(packageName: string): string; | ||
following(packageName: string): string; | ||
owners(packageName: string): string; | ||
ownerTeam(packageName: string): string; | ||
ownerUser(packageName: string): string; | ||
reverseDependencies(packageName: string): string; | ||
version(packageName: string, version: string): string; | ||
versions(packageName: string): string; | ||
}; | ||
summary(): string; | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Endpoint = void 0; | ||
var Endpoint; | ||
(function (Endpoint) { | ||
const AUTHORS = 'authors'; | ||
const CRATES = 'crates'; | ||
const DEPENDENCIES = 'dependencies'; | ||
const DOWNLOAD = 'download'; | ||
const DOWNLOADS = 'downloads'; | ||
const FOLLOWING = 'following'; | ||
const OWNERS = 'owners'; | ||
const OWNER_TEAM = 'owner_team'; | ||
const OWNER_USER = 'owner_user'; | ||
const REVERSE_DEPENDENCIES = 'reverse_dependencies'; | ||
const SUMMARY = 'summary'; | ||
const VERSIONS = 'versions'; | ||
const encode = encodeURIComponent; | ||
let Crates; | ||
(function (Crates) { | ||
function authors(packageName, version) { | ||
return `/${CRATES}/${encode(packageName)}/${encode(version)}/${AUTHORS}`; | ||
} | ||
Crates.authors = authors; | ||
function crate(packageName) { | ||
return `/${CRATES}/${encode(packageName)}`; | ||
} | ||
Crates.crate = crate; | ||
function crates() { | ||
return `/${CRATES}`; | ||
} | ||
Crates.crates = crates; | ||
function dependencies(packageName) { | ||
return `/${CRATES}/${encode(packageName)}/${DEPENDENCIES}`; | ||
} | ||
Crates.dependencies = dependencies; | ||
function download(packageName, version) { | ||
return `/${CRATES}/${encode(packageName)}/${encode(version)}/${DOWNLOAD}`; | ||
} | ||
Crates.download = download; | ||
function downloads(packageName) { | ||
return `/${CRATES}/${encode(packageName)}/${DOWNLOADS}`; | ||
} | ||
Crates.downloads = downloads; | ||
function following(packageName) { | ||
return `/${CRATES}/${encode(packageName)}/${FOLLOWING}`; | ||
} | ||
Crates.following = following; | ||
function owners(packageName) { | ||
return `/${CRATES}/${encode(packageName)}/${OWNERS}`; | ||
} | ||
Crates.owners = owners; | ||
function ownerTeam(packageName) { | ||
return `/${CRATES}/${encode(packageName)}/${OWNER_TEAM}`; | ||
} | ||
Crates.ownerTeam = ownerTeam; | ||
function ownerUser(packageName) { | ||
return `/${CRATES}/${encode(packageName)}/${OWNER_USER}`; | ||
} | ||
Crates.ownerUser = ownerUser; | ||
function reverseDependencies(packageName) { | ||
return `/${CRATES}/${encode(packageName)}/${REVERSE_DEPENDENCIES}`; | ||
} | ||
Crates.reverseDependencies = reverseDependencies; | ||
function version(packageName, version) { | ||
return `/${CRATES}/${encode(packageName)}/${encode(version)}`; | ||
} | ||
Crates.version = version; | ||
function versions(packageName) { | ||
return `/${CRATES}/${encode(packageName)}/${VERSIONS}`; | ||
} | ||
Crates.versions = versions; | ||
})(Crates = Endpoint.Crates || (Endpoint.Crates = {})); | ||
function summary() { | ||
return `/${SUMMARY}`; | ||
} | ||
Endpoint.summary = summary; | ||
})(Endpoint || (exports.Endpoint = Endpoint = {})); | ||
const encode = encodeURIComponent; | ||
exports.Endpoint = { | ||
AUTHORS: 'authors', | ||
CRATES: 'crates', | ||
DEPENDENCIES: 'dependencies', | ||
DOWNLOAD: 'download', | ||
DOWNLOADS: 'downloads', | ||
FOLLOWING: 'following', | ||
OWNERS: 'owners', | ||
OWNER_TEAM: 'owner_team', | ||
OWNER_USER: 'owner_user', | ||
REVERSE_DEPENDENCIES: 'reverse_dependencies', | ||
SUMMARY: 'summary', | ||
VERSIONS: 'versions', | ||
Crates: { | ||
authors(packageName, version) { | ||
return `/${exports.Endpoint.CRATES}/${encode(packageName)}/${encode(version)}/${exports.Endpoint.AUTHORS}`; | ||
}, | ||
crate(packageName) { | ||
return `/${exports.Endpoint.CRATES}/${encode(packageName)}`; | ||
}, | ||
crates() { | ||
return `/${exports.Endpoint.CRATES}`; | ||
}, | ||
dependencies(packageName) { | ||
return `/${exports.Endpoint.CRATES}/${encode(packageName)}/${exports.Endpoint.DEPENDENCIES}`; | ||
}, | ||
download(packageName, version) { | ||
return `/${exports.Endpoint.CRATES}/${encode(packageName)}/${encode(version)}/${exports.Endpoint.DOWNLOAD}`; | ||
}, | ||
downloads(packageName) { | ||
return `/${exports.Endpoint.CRATES}/${encode(packageName)}/${exports.Endpoint.DOWNLOADS}`; | ||
}, | ||
following(packageName) { | ||
return `/${exports.Endpoint.CRATES}/${encode(packageName)}/${exports.Endpoint.FOLLOWING}`; | ||
}, | ||
owners(packageName) { | ||
return `/${exports.Endpoint.CRATES}/${encode(packageName)}/${exports.Endpoint.OWNERS}`; | ||
}, | ||
ownerTeam(packageName) { | ||
return `/${exports.Endpoint.CRATES}/${encode(packageName)}/${exports.Endpoint.OWNER_TEAM}`; | ||
}, | ||
ownerUser(packageName) { | ||
return `/${exports.Endpoint.CRATES}/${encode(packageName)}/${exports.Endpoint.OWNER_USER}`; | ||
}, | ||
reverseDependencies(packageName) { | ||
return `/${exports.Endpoint.CRATES}/${encode(packageName)}/${exports.Endpoint.REVERSE_DEPENDENCIES}`; | ||
}, | ||
version(packageName, version) { | ||
return `/${exports.Endpoint.CRATES}/${encode(packageName)}/${encode(version)}`; | ||
}, | ||
versions(packageName) { | ||
return `/${exports.Endpoint.CRATES}/${encode(packageName)}/${exports.Endpoint.VERSIONS}`; | ||
}, | ||
}, | ||
summary() { | ||
return `/${exports.Endpoint.SUMMARY}`; | ||
}, | ||
}; | ||
//# sourceMappingURL=Endpoints.js.map |
{ | ||
"author": "Florian Imdahl <git@ffflorian.de>", | ||
"dependencies": { | ||
"axios": "1.6.1" | ||
"axios": "1.6.2" | ||
}, | ||
"description": "A crates.io API client", | ||
"devDependencies": { | ||
"@types/node": "~18", | ||
"@types/node": "~20", | ||
"rimraf": "5.0.5", | ||
"typedoc": "0.25.3", | ||
"typescript": "5.2.2" | ||
"typedoc": "0.25.4", | ||
"typescript": "5.3.3" | ||
}, | ||
@@ -36,4 +36,4 @@ "engines": { | ||
}, | ||
"version": "2.2.6", | ||
"gitHead": "821fab89f76213a7a554bf709de37cce4b014561" | ||
"version": "2.2.7", | ||
"gitHead": "aa5b730d4b95e99bc6689be327cfaef7d8fb931a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
69584
697
+ Addedaxios@1.6.2(transitive)
- Removedaxios@1.6.1(transitive)
Updatedaxios@1.6.2