-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
62 lines (58 loc) · 1.49 KB
/
index.ts
File metadata and controls
62 lines (58 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Core API
export { Client, defaultClient } from './core/client.ts'
export { register, create, ecosystems, has } from './core/registry.ts'
export { parsePURL, fullName, createFromPURL, buildPURL } from './core/purl.ts'
export { normalizeLicense, combineLicenses } from './core/license.ts'
export { normalizeRepositoryURL } from './core/repository.ts'
// Errors
export {
PkioError,
HTTPError,
NotFoundError,
RateLimitError,
UnknownEcosystemError,
InvalidPURLError,
} from './core/errors.ts'
// Helpers
export {
fetchPackageFromPURL,
fetchVersionsFromPURL,
fetchDependenciesFromPURL,
fetchMaintainersFromPURL,
bulkFetchPackages,
selectVersion,
resolveDocsUrl,
} from './helpers.ts'
// Types
export type {
Package,
Version,
Dependency,
Maintainer,
VersionStatus,
Scope,
URLBuilder,
Registry,
RegistryFactory,
ClientOptions,
RateLimiter,
ParsedPURL,
} from './core/types.ts'
// Cache
export { getCacheDir } from './cache/paths.ts'
export { getStorage, getEcosystemStorage, computeIntegrity, disposeStorage, clearStorage, configureStorage } from './cache/storage.ts'
export { CachedRegistry } from './cache/cached-registry.ts'
export { createCached } from './cache/index.ts'
export type { CreateCachedOptions } from './cache/index.ts'
export {
readLockfile,
writeLockfile,
cacheKey,
isFresh,
getFreshEntry,
setEntry,
removeEntry,
pruneStale,
DEFAULT_TTL,
} from './cache/lockfile.ts'
export type { Lockfile, LockfileEntry, EntryType } from './cache/lockfile.ts'