@wix/create-app 0.0.185 → 0.0.187
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/build/index.js
CHANGED
|
@@ -57693,7 +57693,7 @@ function reportCommandStartEvent({
|
|
|
57693
57693
|
var package_default = {
|
|
57694
57694
|
name: "@wix/create-app",
|
|
57695
57695
|
description: "Create Wix apps",
|
|
57696
|
-
version: "0.0.
|
|
57696
|
+
version: "0.0.187",
|
|
57697
57697
|
author: "Ihor Machuzhak",
|
|
57698
57698
|
bin: "bin/index.cjs",
|
|
57699
57699
|
devDependencies: {
|
|
@@ -66792,15 +66792,21 @@ var createShareUrlSchema = external_exports.object({
|
|
|
66792
66792
|
var listShareUrlsSchema = external_exports.object({
|
|
66793
66793
|
shareUrls: external_exports.array(shareUrlSchema)
|
|
66794
66794
|
});
|
|
66795
|
+
var setNamespaceSchema = external_exports.object({
|
|
66796
|
+
namespace: external_exports.string()
|
|
66797
|
+
});
|
|
66798
|
+
var setCodeIdentifierSchema = external_exports.object({
|
|
66799
|
+
codeIdentifier: external_exports.string()
|
|
66800
|
+
});
|
|
66795
66801
|
|
|
66796
66802
|
// ../dev-center-client/src/dev-center-client.ts
|
|
66797
66803
|
var EMPTY_SITE_TEMPLATE = "24bafe8a-7c80-4b63-8a71-08752062f246";
|
|
66798
66804
|
var SetCodeIdentifierResult = (0, import_variant26.variant)({
|
|
66799
|
-
Success:
|
|
66805
|
+
Success: (0, import_variant26.fields)(),
|
|
66800
66806
|
ShouldBeUnique: (0, import_variant26.fields)()
|
|
66801
66807
|
});
|
|
66802
66808
|
var SetNamespaceResult = (0, import_variant26.variant)({
|
|
66803
|
-
Success:
|
|
66809
|
+
Success: (0, import_variant26.fields)(),
|
|
66804
66810
|
ShouldBeUnique: (0, import_variant26.fields)()
|
|
66805
66811
|
});
|
|
66806
66812
|
var DevCenterClient = class {
|
|
@@ -66856,10 +66862,12 @@ var DevCenterClient = class {
|
|
|
66856
66862
|
};
|
|
66857
66863
|
setNamespace = async ({ appId, namespace }) => {
|
|
66858
66864
|
try {
|
|
66859
|
-
await this.httpClient.request(
|
|
66865
|
+
const { data } = await this.httpClient.request(
|
|
66860
66866
|
setNamespace({ appId, appName: namespace })
|
|
66861
66867
|
);
|
|
66862
|
-
return SetNamespaceResult.Success(
|
|
66868
|
+
return SetNamespaceResult.Success({
|
|
66869
|
+
namespace: setNamespaceSchema.parse(data).namespace
|
|
66870
|
+
});
|
|
66863
66871
|
} catch (e2) {
|
|
66864
66872
|
if (isHttpError(e2) && e2.response?.status === 409 && isHttpApplicationError(e2) && e2.response.data.details.applicationError.code === "ALREADY_EXISTS") {
|
|
66865
66873
|
return SetNamespaceResult.ShouldBeUnique({ namespace });
|
|
@@ -66875,10 +66883,12 @@ var DevCenterClient = class {
|
|
|
66875
66883
|
codeIdentifier
|
|
66876
66884
|
}) => {
|
|
66877
66885
|
try {
|
|
66878
|
-
await this.httpClient.request(
|
|
66886
|
+
const { data } = await this.httpClient.request(
|
|
66879
66887
|
setCodeIdentifier({ appId, codeIdentifier })
|
|
66880
66888
|
);
|
|
66881
|
-
return SetCodeIdentifierResult.Success(
|
|
66889
|
+
return SetCodeIdentifierResult.Success({
|
|
66890
|
+
codeIdentifier: setCodeIdentifierSchema.parse(data).codeIdentifier
|
|
66891
|
+
});
|
|
66882
66892
|
} catch (e2) {
|
|
66883
66893
|
if (isHttpError(e2) && e2.response?.status === 409 && isHttpApplicationError(e2) && e2.response.data.details.applicationError.code === "ALREADY_EXISTS") {
|
|
66884
66894
|
return SetCodeIdentifierResult.ShouldBeUnique({ codeIdentifier });
|
|
@@ -68152,7 +68162,7 @@ function getTasks({
|
|
|
68152
68162
|
cause: e2
|
|
68153
68163
|
});
|
|
68154
68164
|
}
|
|
68155
|
-
const { generateApp } = await import("./generator-
|
|
68165
|
+
const { generateApp } = await import("./generator-IR4XXCUW.js");
|
|
68156
68166
|
await generateApp({
|
|
68157
68167
|
packageName,
|
|
68158
68168
|
packageFolder,
|