@shipstatic/drop 2.15.0 → 2.15.1-beta.1

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,89 +1,6 @@
1
1
  'use strict';
2
2
 
3
- // node_modules/.pnpm/@shipstatic+types@3.15.0/node_modules/@shipstatic/types/dist/index.js
4
- var ErrorType = {
5
- /**
6
- * Validation failed. Input shape is wrong.
7
- *
8
- * Carries 400 when an API judged it — including a client-side pre-check of a
9
- * rule the server enforces too, which keeps the error identical wherever it
10
- * was caught. **Statusless** when a client rejects something no API judges,
11
- * such as a CLI's own command grammar: `status` is documented "(API
12
- * contexts)" on `ErrorResponse`, so there is none to report.
13
- */
14
- Validation: "validation_failed",
15
- /** Resource not found (404). */
16
- NotFound: "not_found",
17
- /** Authenticated but not allowed (403). User lacks permission for this action. */
18
- Forbidden: "forbidden",
19
- /** Rate limit exceeded (429). */
20
- RateLimit: "rate_limit_exceeded",
21
- /** Authentication required or failed (401). Missing/invalid credentials. */
22
- Authentication: "authentication_failed",
23
- /** Business rule violation. Catch-all for 4xx state-rule errors that aren't more specific. */
24
- Business: "business_logic_error",
25
- /** API server error (500). Generic server-side fault. */
26
- Api: "internal_server_error",
27
- /**
28
- * The platform is closed for maintenance (503). A deliberate operator
29
- * state, not a fault — nothing errored; the API is refusing work on
30
- * purpose, and deployed sites keep serving throughout.
31
- *
32
- * Distinct from `Api` at 503, which the platform already uses for a
33
- * dependency that failed. A consumer has to tell
34
- * "we closed the door" from "something broke": the two get opposite words
35
- * and opposite retry behaviour.
36
- */
37
- Maintenance: "maintenance",
38
- /**
39
- * The project could not be built as submitted (422). The platform ran the
40
- * caller's own instructions, the dependency install and then the build
41
- * script, and they failed. So the verdict is the caller's: deterministic,
42
- * not worth a retry, and answered with the evidence. `details` is a
43
- * `BuildFailureDetails`, and the message is the one sentence the builder
44
- * authored for the person who will fix the project.
45
- *
46
- * Distinct from `Api` at 500, which is what the platform answers when it
47
- * could not RUN the build at all (the sandbox failed to start, a host
48
- * fault). A consumer has to tell "your project cannot be built" from "we
49
- * could not build it": the two get opposite words, opposite retry
50
- * behaviour, and only the second pages an operator.
51
- */
52
- Build: "build_failed",
53
- /** Network/connection error. Client-side only — set by HTTP clients on fetch failure; never produced server-side. */
54
- Network: "network_error",
55
- /**
56
- * A deadline expired before the exchange completed. Client-side only — set
57
- * by HTTP clients when a timeout signal fires; never produced server-side.
58
- *
59
- * A member of the NETWORK category rather than a sibling of it:
60
- * `isNetworkError()` answers "nothing was exchanged", which is true of a
61
- * deadline exactly as it is of a refused connection, so every consumer that
62
- * retries, declines to report, or declines to relay a wire message on that
63
- * category is already right about a timeout. The distinct TYPE exists for
64
- * the one decision the category cannot make — what to SAY. "Check your
65
- * internet connection" is the wrong sentence for a five-minute deploy
66
- * ceiling, and a surface can only tell the two apart by type.
67
- *
68
- * The same relationship every comparable SDK ships:
69
- * `APIConnectionTimeoutError extends APIConnectionError`.
70
- */
71
- Timeout: "timeout_error",
72
- /** Operation was cancelled. Client-side only — set on `AbortSignal` abort; never produced server-side. */
73
- Cancelled: "operation_cancelled",
74
- /** File operation error. Client-side only — set by SDK during local file processing; never produced server-side. */
75
- File: "file_error",
76
- /** Configuration error. Client-side only — set by SDK during config parsing/validation; never produced server-side. */
77
- Config: "config_error"
78
- };
79
- var CLIENT_ONLY_ERROR_TYPES = /* @__PURE__ */ new Set([
80
- ErrorType.Network,
81
- ErrorType.Timeout,
82
- ErrorType.Cancelled,
83
- ErrorType.File,
84
- ErrorType.Config
85
- ]);
86
- new Set(Object.values(ErrorType).filter((t) => !CLIENT_ONLY_ERROR_TYPES.has(t)));
3
+ // node_modules/.pnpm/@shipstatic+types@3.16.0-beta.4/node_modules/@shipstatic/types/dist/index.js
87
4
  var WEB_FILE_EXTENSIONS = [
88
5
  // Markup & documents
89
6
  "html",
@@ -167,42 +84,7 @@ var WEB_FILE_EXTENSIONS = [
167
84
  // Archive — a whole site in one file
168
85
  "zip"
169
86
  ];
170
- var WEB_FILE_ACCEPT = WEB_FILE_EXTENSIONS.map((ext) => `.${ext}`).join(",");
171
- var BILLING_RETURNS = {
172
- checkout: ["upgrading", "true"],
173
- portal: ["billing", "returned"]
174
- };
175
- var marker = (kind) => BILLING_RETURNS[kind].join("=");
176
- var withNext = (door, next) => next ? `${door}?next=${encodeURIComponent(next)}` : door;
177
- function consolePaths(account) {
178
- const base = "";
179
- const at = (path) => `${base}${path}`;
180
- return {
181
- dashboard: () => "/",
182
- newSite: () => at("/new"),
183
- deployments: Object.assign(() => at("/deployments"), {
184
- upload: () => at("/deployments/upload")
185
- }),
186
- domains: Object.assign(() => at("/domains"), {
187
- connect: (domain) => at(`/domains/${domain}/connect`),
188
- deployment: (domain) => at(`/domains/${domain}/deployment`)
189
- }),
190
- settings: (fragment) => at(fragment ? `/settings#${fragment}` : "/settings"),
191
- /** The claim of an anonymous deployment into this account; the API mails the bare form. */
192
- claim: (code) => at(`/claim/${code}`),
193
- /** Settings, marked as the landing of a Stripe Customer Portal return. */
194
- settingsAfterBilling: () => at(`/settings?${marker("portal")}`),
195
- upgrade: (plan) => at(plan ? `/upgrade/${plan}` : "/upgrade"),
196
- success: () => at("/success"),
197
- /** The success page, marked as the landing of a Stripe Checkout return. */
198
- successAfterCheckout: () => at(`/success?${marker("checkout")}`),
199
- apiKey: () => at("/api-key")
200
- };
201
- }
202
- Object.assign(({ next } = {}) => withNext("/login", next), {
203
- link: ({ token, next }) => withNext(`/login/link/${token}`, next)
204
- });
205
- `https://my.shipstatic.com${consolePaths().apiKey()}`;
87
+ var WEB_FILE_ACCEPT = /* @__PURE__ */ (() => WEB_FILE_EXTENSIONS.map((ext) => `.${ext}`).join(","))();
206
88
  var FileValidationStatus = {
207
89
  /** File passed validation and is ready for deployment */
208
90
  READY: "ready"