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