@daugasauron/dolly-host-save 0.1.4 → 0.1.5-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/abi.mjs +1 -1
  2. package/download.mjs +4 -4
  3. package/package.json +2 -2
package/abi.mjs CHANGED
@@ -7,4 +7,4 @@ export const DOLLY_DOWNLOAD_CHUNK_CAPACITY = 1048576;
7
7
  export const DOLLY_DOWNLOAD_MAX_SIZE = 1073741824;
8
8
  export const DOLLY_DOWNLOAD_FILE = 51;
9
9
  export const DOLLY_ERRNO = Object.freeze({ E2BIG: 1, EACCES: 2, EADDRINUSE: 3, EADDRNOTAVAIL: 4, EAFNOSUPPORT: 5, EAGAIN: 6, EALREADY: 7, EBADF: 8, EBADMSG: 9, EBUSY: 10, ECANCELED: 11, ECHILD: 12, ECONNABORTED: 13, ECONNREFUSED: 14, ECONNRESET: 15, EDEADLK: 16, EDESTADDRREQ: 17, EDOM: 18, EDQUOT: 19, EEXIST: 20, EFAULT: 21, EFBIG: 22, EHOSTUNREACH: 23, EIDRM: 24, EILSEQ: 25, EINPROGRESS: 26, EINTR: 27, EINVAL: 28, EIO: 29, EISCONN: 30, EISDIR: 31, ELOOP: 32, EMFILE: 33, EMLINK: 34, EMSGSIZE: 35, EMULTIHOP: 36, ENAMETOOLONG: 37, ENETDOWN: 38, ENETRESET: 39, ENETUNREACH: 40, ENFILE: 41, ENOBUFS: 42, ENODEV: 43, ENOENT: 44, ENOEXEC: 45, ENOLCK: 46, ENOLINK: 47, ENOMEM: 48, ENOMSG: 49, ENOPROTOOPT: 50, ENOSPC: 51, ENOSYS: 52, ENOTCONN: 53, ENOTDIR: 54, ENOTEMPTY: 55, ENOTRECOVERABLE: 56, ENOTSOCK: 57, ENOTTY: 59, ENXIO: 60, EOVERFLOW: 61, EOWNERDEAD: 62, EPERM: 63, EPIPE: 64, EPROTO: 65, EPROTONOSUPPORT: 66, EPROTOTYPE: 67, ERANGE: 68, EROFS: 69, ESPIPE: 70, ESRCH: 71, ESTALE: 72, ETIMEDOUT: 73, ETXTBSY: 74, EXDEV: 75, ENODATA: 116, ENOTSUP: 138 });
10
- export const DOLLY_DOWNLOAD_ABI_DIGEST = "f5c6e4ad11e3859791578d73cce40946eb3528da93dc6971c17951faac642b4f";
10
+ export const DOLLY_DOWNLOAD_ABI_DIGEST = "69b653b3db32769d69e208a1c4a47b6d65979c0fc09e12832239973b66c0929d";
package/download.mjs CHANGED
@@ -17,17 +17,17 @@ const sizeLabel = bytes => bytes < 1024 * 1024 ? `${Math.ceil(bytes / 1024)} KiB
17
17
 
18
18
  // Wasm can only ask. Each file reaches the browser's download manager through
19
19
  // one user click on its Save button, never automatically.
20
- export function browser({ keyboard, indicators }) {
20
+ export function browser({ mount, keyboard, indicators }) {
21
21
  const pending = new Int32Array(new SharedArrayBuffer(4));
22
22
  const panel = document.createElement("ul");
23
23
  panel.id = "downloads";
24
24
  panel.className = "page-indicator";
25
25
  panel.setAttribute("aria-label", "Files Dolly offers to save");
26
26
  panel.hidden = true;
27
- document.body.append(panel);
27
+ mount.append(panel);
28
28
  const look = document.head.appendChild(Object.assign(document.createElement("style"), { textContent: `
29
- #downloads { position: fixed; left: 0.6rem; bottom: 0.6rem; z-index: 7; margin: 0; padding: 0.5rem; list-style: none;
30
- max-width: calc(100vw - 1.2rem); color: #e8e3d7; background: #262626; border: 1px solid #f2d45c; font-size: 14px; }
29
+ #downloads { position: absolute; left: 0.6rem; bottom: 0.6rem; z-index: 7; margin: 0; padding: 0.5rem; list-style: none;
30
+ max-width: calc(100% - 1.2rem); color: #e8e3d7; background: #262626; border: 1px solid #f2d45c; font-size: 14px; }
31
31
  #downloads[hidden] { display: none; } #downloads li + li { margin-top: 0.4rem; }
32
32
  #downloads button { margin-right: 0.4rem; color: inherit; background: #333; border: 1px solid #77736c;
33
33
  font: inherit; cursor: pointer; }` }));
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.1.4",
2
+ "version": "0.1.5-rc.0",
3
3
  "type": "module",
4
4
  "name": "@daugasauron/dolly-host-save",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
- "@daugasauron/dolly": "0.1.4"
7
+ "@daugasauron/dolly": "0.1.5-rc.0"
8
8
  },
9
9
  "description": "Dolly's download@0 host module: offer a file to save; the user clicks.",
10
10
  "repository": {