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