-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeps.ts
26 lines (23 loc) · 1.02 KB
/
deps.ts
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
// 3rd-party dependencies from Denoland
//
// Run the following script after making change in this file:
// deno bundle deps.ts vendor/deno-deps.js
//
export { encodeHex } from 'https://deno.land/[email protected]/encoding/hex.ts'
export { decodeBase64 } from 'https://deno.land/[email protected]/encoding/base64.ts'
export { decode as decodeVarint } from 'https://deno.land/x/[email protected]/varint.ts'
export { retry } from 'https://deno.land/[email protected]/async/retry.ts';
// Deno Bundle does not support npm dependencies, we have to load them via CDN
export { CarBlockIterator } from 'https://cdn.skypack.dev/@ipld/[email protected]/?dts'
export {
UnsupportedHashError,
HashMismatchError,
validateBlock
} from 'https://cdn.skypack.dev/@web3-storage/[email protected]/?dts'
// cdn.skypack.dev cannot resolve import from @noble/hashes
// jsdelivr.net seems to work better, it's also recommended by drand-client
export {
fetchBeaconByTime,
HttpChainClient,
HttpCachingChain
} from 'https://cdn.jsdelivr.net/npm/[email protected]/index.js/+esm'