@shipstatic/drop 2.10.3-beta.1 → 2.10.4-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/index.cjs +29 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +30 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +30 -1
- package/dist/testing.js.map +1 -1
- package/package.json +3 -3
package/dist/testing.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/@shipstatic+types@3.
|
|
3
|
+
// node_modules/.pnpm/@shipstatic+types@3.8.0-beta.4/node_modules/@shipstatic/types/dist/index.js
|
|
4
4
|
var ErrorType = {
|
|
5
5
|
/**
|
|
6
6
|
* Validation failed. Input shape is wrong.
|
|
@@ -168,6 +168,35 @@ var WEB_FILE_EXTENSIONS = [
|
|
|
168
168
|
"zip"
|
|
169
169
|
];
|
|
170
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
|
+
function consolePaths(account) {
|
|
177
|
+
const base = "";
|
|
178
|
+
const at = (path) => `${base}${path}`;
|
|
179
|
+
return {
|
|
180
|
+
dashboard: () => "/",
|
|
181
|
+
newSite: () => at("/new"),
|
|
182
|
+
deployments: Object.assign(() => at("/deployments"), {
|
|
183
|
+
upload: () => at("/deployments/upload")
|
|
184
|
+
}),
|
|
185
|
+
domains: Object.assign(() => at("/domains"), {
|
|
186
|
+
connect: (domain) => at(`/domains/${domain}/connect`),
|
|
187
|
+
deployment: (domain) => at(`/domains/${domain}/deployment`)
|
|
188
|
+
}),
|
|
189
|
+
settings: (fragment) => at(fragment ? `/settings#${fragment}` : "/settings"),
|
|
190
|
+
/** Settings, marked as the landing of a Stripe Customer Portal return. */
|
|
191
|
+
settingsAfterBilling: () => at(`/settings?${marker("portal")}`),
|
|
192
|
+
upgrade: (plan) => at(plan ? `/upgrade/${plan}` : "/upgrade"),
|
|
193
|
+
success: () => at("/success"),
|
|
194
|
+
/** The success page, marked as the landing of a Stripe Checkout return. */
|
|
195
|
+
successAfterCheckout: () => at(`/success?${marker("checkout")}`),
|
|
196
|
+
apiKey: () => at("/api-key")
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
`https://my.shipstatic.com${consolePaths().apiKey()}`;
|
|
171
200
|
var FileValidationStatus = {
|
|
172
201
|
/** File passed validation and is ready for deployment */
|
|
173
202
|
READY: "ready"
|