@shipstatic/drop 2.11.2 → 2.12.0-beta.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.
@@ -1,5 +1,5 @@
1
1
  import { FileValidationStatusType } from '@shipstatic/types';
2
- import { d as DropReturn, P as ProcessedFile } from './useDrop-C43AHhf8.cjs';
2
+ import { d as DropReturn, P as ProcessedFile } from './useDrop-vakC-Kel.cjs';
3
3
  import '@shipstatic/ship';
4
4
 
5
5
  /**
package/dist/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { FileValidationStatusType } from '@shipstatic/types';
2
- import { d as DropReturn, P as ProcessedFile } from './useDrop-C43AHhf8.js';
2
+ import { d as DropReturn, P as ProcessedFile } from './useDrop-vakC-Kel.js';
3
3
  import '@shipstatic/ship';
4
4
 
5
5
  /**
package/dist/testing.js CHANGED
@@ -1,4 +1,4 @@
1
- // node_modules/.pnpm/@shipstatic+types@3.10.1/node_modules/@shipstatic/types/dist/index.js
1
+ // node_modules/.pnpm/@shipstatic+types@3.12.0-beta.1/node_modules/@shipstatic/types/dist/index.js
2
2
  var ErrorType = {
3
3
  /**
4
4
  * Validation failed. Input shape is wrong.
@@ -171,6 +171,7 @@ var BILLING_RETURNS = {
171
171
  portal: ["billing", "returned"]
172
172
  };
173
173
  var marker = (kind) => BILLING_RETURNS[kind].join("=");
174
+ var withNext = (door, next) => next ? `${door}?next=${encodeURIComponent(next)}` : door;
174
175
  function consolePaths(account) {
175
176
  const base = "";
176
177
  const at = (path) => `${base}${path}`;
@@ -196,6 +197,9 @@ function consolePaths(account) {
196
197
  apiKey: () => at("/api-key")
197
198
  };
198
199
  }
200
+ Object.assign(({ next } = {}) => withNext("/login", next), {
201
+ link: ({ token, next }) => withNext(`/login/link/${token}`, next)
202
+ });
199
203
  `https://my.shipstatic.com${consolePaths().apiKey()}`;
200
204
  var FileValidationStatus = {
201
205
  /** File passed validation and is ready for deployment */