create-disposabl-app 1.3.3 → 1.4.0
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/package.json +1 -1
- package/setup.mjs +2 -2
- package/template.tar.gz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-disposabl-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Create a Disposabl app with Exact and Convex",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/disposabl-dev/disposabl-exact/tree/main/packages/create-disposabl-app#readme",
|
package/setup.mjs
CHANGED
|
@@ -106,8 +106,8 @@ export async function setup(directory, name, config, terminal, signal) {
|
|
|
106
106
|
delete config.appId;
|
|
107
107
|
config.appSlug = app.appSlug;
|
|
108
108
|
config.serviceOrigin = client.origin;
|
|
109
|
-
if (typeof app.
|
|
110
|
-
config.apiOrigin = app.
|
|
109
|
+
if (typeof app.url === "string" && /^https:\/\/[a-z0-9-]+\.disposabl\.xyz$/.test(app.url)) {
|
|
110
|
+
config.apiOrigin = app.url;
|
|
111
111
|
}
|
|
112
112
|
await writeJson(join(directory, "disposabl.json"), config);
|
|
113
113
|
terminal.progress("App linked to " + repository + ". App slug saved in disposabl.json.");
|
package/template.tar.gz
CHANGED
|
Binary file
|