forked from dylan-sutton-chavez/edge-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaults.js
More file actions
20 lines (18 loc) · 1015 Bytes
/
defaults.js
File metadata and controls
20 lines (18 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
Built-in base manifest. Official std packages resolvable by bare name with no user packages.json.
Lowest precedence (user `imports` win) and lazy: an unused default is never fetched.
*/
/* Worker-side std packages (.wasm). Pinned for reproducibility; the lockfile verifies the bytes when integrity is on. */
export const DEFAULT_IMPORTS = {
json: 'https://cdn.edgepython.com/std/json.wasm',
re: 'https://cdn.edgepython.com/std/re.wasm',
math: 'https://cdn.edgepython.com/std/math.wasm',
test: 'https://cdn.edgepython.com/std/test.py',
};
/* Main-thread host libraries (ESM). Pages flattens each `<name>/src/` to `cdn.edgepython.com/host/<name>/`. Same lazy + opt-out rules; merged under any user `host` entries. */
export const DEFAULT_HOST = {
dom: 'https://cdn.edgepython.com/host/dom/index.js',
network: 'https://cdn.edgepython.com/host/network/index.js',
storage: 'https://cdn.edgepython.com/host/storage/index.js',
time: 'https://cdn.edgepython.com/host/time/index.js',
};