@shipstatic/drop 2.10.3 → 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/index.cjs
CHANGED
|
@@ -182,6 +182,35 @@ function hasUnbuiltMarker(filePath2) {
|
|
|
182
182
|
const segments = filePath2.replace(/\\/g, "/").split("/").filter(Boolean);
|
|
183
183
|
return segments.some((s) => UNBUILT_PROJECT_MARKERS.has(s));
|
|
184
184
|
}
|
|
185
|
+
var BILLING_RETURNS = {
|
|
186
|
+
checkout: ["upgrading", "true"],
|
|
187
|
+
portal: ["billing", "returned"]
|
|
188
|
+
};
|
|
189
|
+
var marker = (kind) => BILLING_RETURNS[kind].join("=");
|
|
190
|
+
function consolePaths(account) {
|
|
191
|
+
const base = "";
|
|
192
|
+
const at = (path) => `${base}${path}`;
|
|
193
|
+
return {
|
|
194
|
+
dashboard: () => "/",
|
|
195
|
+
newSite: () => at("/new"),
|
|
196
|
+
deployments: Object.assign(() => at("/deployments"), {
|
|
197
|
+
upload: () => at("/deployments/upload")
|
|
198
|
+
}),
|
|
199
|
+
domains: Object.assign(() => at("/domains"), {
|
|
200
|
+
connect: (domain) => at(`/domains/${domain}/connect`),
|
|
201
|
+
deployment: (domain) => at(`/domains/${domain}/deployment`)
|
|
202
|
+
}),
|
|
203
|
+
settings: (fragment) => at(fragment ? `/settings#${fragment}` : "/settings"),
|
|
204
|
+
/** Settings, marked as the landing of a Stripe Customer Portal return. */
|
|
205
|
+
settingsAfterBilling: () => at(`/settings?${marker("portal")}`),
|
|
206
|
+
upgrade: (plan) => at(plan ? `/upgrade/${plan}` : "/upgrade"),
|
|
207
|
+
success: () => at("/success"),
|
|
208
|
+
/** The success page, marked as the landing of a Stripe Checkout return. */
|
|
209
|
+
successAfterCheckout: () => at(`/success?${marker("checkout")}`),
|
|
210
|
+
apiKey: () => at("/api-key")
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
`https://my.shipstatic.com${consolePaths().apiKey()}`;
|
|
185
214
|
var FileValidationStatus = {
|
|
186
215
|
/** File is pending validation */
|
|
187
216
|
PENDING: "pending",
|