@shipstatic/drop 2.11.2 → 2.12.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.
package/README.md CHANGED
@@ -276,7 +276,7 @@ vi.mock('@shipstatic/drop', () => ({ useDrop: mockUseDrop({ phase: 'ready' }) })
276
276
  - **`webkitRelativePath` is the handoff.** Drop writes each file's deploy path there, and the ShipStatic SDK reads it. Don't modify it in between.
277
277
  - **`stripCommonPrefix` mutates File objects.** It returns new `ProcessedFile`s but rewrites `webkitRelativePath` on the underlying `File` — deliberately, because that's what the SDK reads.
278
278
  - **Unreadable entries are skipped silently.** A folder with permission-denied files still deploys; the failures are logged to the console with no programmatic signal.
279
- - **No MD5 here.** Ship computes checksums during upload.
279
+ - **No MD5 here.** Ship computes each file's MD5 for its manifest.
280
280
  - **`type` is the browser's report.** The platform derives `Content-Type` server-side from the path, so drop bundles no MIME database.
281
281
 
282
282
  ## Also available
package/dist/index.cjs CHANGED
@@ -187,6 +187,7 @@ var BILLING_RETURNS = {
187
187
  portal: ["billing", "returned"]
188
188
  };
189
189
  var marker = (kind) => BILLING_RETURNS[kind].join("=");
190
+ var withNext = (door, next) => next ? `${door}?next=${encodeURIComponent(next)}` : door;
190
191
  function consolePaths(account) {
191
192
  const base = "";
192
193
  const at = (path) => `${base}${path}`;
@@ -212,6 +213,9 @@ function consolePaths(account) {
212
213
  apiKey: () => at("/api-key")
213
214
  };
214
215
  }
216
+ Object.assign(({ next } = {}) => withNext("/login", next), {
217
+ link: ({ token, next }) => withNext(`/login/link/${token}`, next)
218
+ });
215
219
  `https://my.shipstatic.com${consolePaths().apiKey()}`;
216
220
  var FileValidationStatus = {
217
221
  /** File is pending validation */