@shipstatic/drop 2.11.1 → 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.
package/dist/testing.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- // node_modules/.pnpm/@shipstatic+types@3.10.0/node_modules/@shipstatic/types/dist/index.js
3
+ // node_modules/.pnpm/@shipstatic+types@3.12.0-beta.1/node_modules/@shipstatic/types/dist/index.js
4
4
  var ErrorType = {
5
5
  /**
6
6
  * Validation failed. Input shape is wrong.
@@ -173,6 +173,7 @@ var BILLING_RETURNS = {
173
173
  portal: ["billing", "returned"]
174
174
  };
175
175
  var marker = (kind) => BILLING_RETURNS[kind].join("=");
176
+ var withNext = (door, next) => next ? `${door}?next=${encodeURIComponent(next)}` : door;
176
177
  function consolePaths(account) {
177
178
  const base = "";
178
179
  const at = (path) => `${base}${path}`;
@@ -198,6 +199,9 @@ function consolePaths(account) {
198
199
  apiKey: () => at("/api-key")
199
200
  };
200
201
  }
202
+ Object.assign(({ next } = {}) => withNext("/login", next), {
203
+ link: ({ token, next }) => withNext(`/login/link/${token}`, next)
204
+ });
201
205
  `https://my.shipstatic.com${consolePaths().apiKey()}`;
202
206
  var FileValidationStatus = {
203
207
  /** File passed validation and is ready for deployment */