@wix/create-new 0.0.29 → 0.0.30
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 +49 -6
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -69744,6 +69744,44 @@ function shouldAddPerformanceIntegrations(options) {
|
|
|
69744
69744
|
// ../cli-error-reporting/src/error-reporter.ts
|
|
69745
69745
|
var import_verror3 = __toESM(require_verror(), 1);
|
|
69746
69746
|
import EventEmitter2 from "node:events";
|
|
69747
|
+
|
|
69748
|
+
// ../cli-error-reporting/src/error-utils.ts
|
|
69749
|
+
init_esm_shims();
|
|
69750
|
+
function truncateStringValues(value2, maxLength) {
|
|
69751
|
+
if (value2 == null) {
|
|
69752
|
+
return value2;
|
|
69753
|
+
}
|
|
69754
|
+
if (typeof value2 === "string") {
|
|
69755
|
+
if (value2.length <= maxLength) {
|
|
69756
|
+
return value2;
|
|
69757
|
+
}
|
|
69758
|
+
return `${value2.slice(0, maxLength)} [Truncated]`;
|
|
69759
|
+
}
|
|
69760
|
+
if (Array.isArray(value2)) {
|
|
69761
|
+
return value2.map((item) => truncateStringValues(item, maxLength));
|
|
69762
|
+
}
|
|
69763
|
+
if (typeof value2 === "object") {
|
|
69764
|
+
return Object.fromEntries(
|
|
69765
|
+
Object.entries(value2).map(([k, v]) => [
|
|
69766
|
+
k,
|
|
69767
|
+
truncateStringValues(v, maxLength)
|
|
69768
|
+
])
|
|
69769
|
+
);
|
|
69770
|
+
}
|
|
69771
|
+
return value2;
|
|
69772
|
+
}
|
|
69773
|
+
function toSafeJson(value2) {
|
|
69774
|
+
if (typeof value2 === "string") {
|
|
69775
|
+
try {
|
|
69776
|
+
return JSON.parse(value2);
|
|
69777
|
+
} catch {
|
|
69778
|
+
return value2;
|
|
69779
|
+
}
|
|
69780
|
+
}
|
|
69781
|
+
return value2;
|
|
69782
|
+
}
|
|
69783
|
+
|
|
69784
|
+
// ../cli-error-reporting/src/error-reporter.ts
|
|
69747
69785
|
var ReportErrorResult = (0, import_variant18.variant)({
|
|
69748
69786
|
Reported: (0, import_variant18.fields)(),
|
|
69749
69787
|
Ignored: {}
|
|
@@ -69759,7 +69797,11 @@ var reportError = (scope, originalError, { data } = {}) => {
|
|
|
69759
69797
|
const httpError = extractHttpError(error);
|
|
69760
69798
|
if (httpError) {
|
|
69761
69799
|
localScope.setTag("request.id", httpError.requestId);
|
|
69762
|
-
|
|
69800
|
+
const errorInfo = getHttpErrorInfo(httpError);
|
|
69801
|
+
errorInfo.request.data = toSafeJson(errorInfo.request.data);
|
|
69802
|
+
errorInfo.response.data = toSafeJson(errorInfo.response.data);
|
|
69803
|
+
const truncatedErrorInfo = truncateStringValues(errorInfo, 200);
|
|
69804
|
+
localScope.setContext("Request Info", truncatedErrorInfo);
|
|
69763
69805
|
}
|
|
69764
69806
|
if (error instanceof Error) {
|
|
69765
69807
|
localScope.setContext("Error Details", {
|
|
@@ -69798,8 +69840,9 @@ function createErrorReporter({ dsn, release: release2 }) {
|
|
|
69798
69840
|
},
|
|
69799
69841
|
// Since we pass `requestInfo`, the default depth of 3
|
|
69800
69842
|
// redacts most useful info passed from API error responses
|
|
69801
|
-
// so we increase it to include more of the potential error http
|
|
69802
|
-
normalizeDepth:
|
|
69843
|
+
// so we increase it to include more of the potential error http response.
|
|
69844
|
+
normalizeDepth: 8,
|
|
69845
|
+
normalizeMaxBreadth: 20
|
|
69803
69846
|
});
|
|
69804
69847
|
const sentryScope = new Scope();
|
|
69805
69848
|
sentryScope.setClient(sentryClient);
|
|
@@ -93007,7 +93050,7 @@ var ChooseTemplate2 = ({ onSubmit }) => {
|
|
|
93007
93050
|
const groups = (0, import_react142.useMemo)(
|
|
93008
93051
|
() => [
|
|
93009
93052
|
{
|
|
93010
|
-
title: "
|
|
93053
|
+
title: "Wix Vibe compatible templates",
|
|
93011
93054
|
items: vibeCompatibleTemplates.map((template) => ({
|
|
93012
93055
|
key: template.siteTemplateId,
|
|
93013
93056
|
title: template.title,
|
|
@@ -93016,7 +93059,7 @@ var ChooseTemplate2 = ({ onSubmit }) => {
|
|
|
93016
93059
|
}))
|
|
93017
93060
|
},
|
|
93018
93061
|
{
|
|
93019
|
-
title: "
|
|
93062
|
+
title: "Standard templates",
|
|
93020
93063
|
// https://dev.wix.com/docs/go-headless/get-started/templates/wix-managed-templates/wix-cli-for-headless-templates
|
|
93021
93064
|
description: /* @__PURE__ */ import_react142.default.createElement(Text2, null, "(", /* @__PURE__ */ import_react142.default.createElement(Link, { url: "https://wix.to/zuKh3Fo" }, "Learn more"), ")"),
|
|
93022
93065
|
items: pureHeadlessTemplates.map((template) => ({
|
|
@@ -94566,7 +94609,7 @@ var getHeadlessCommand = ({
|
|
|
94566
94609
|
var package_default = {
|
|
94567
94610
|
name: "@wix/create-new",
|
|
94568
94611
|
description: "General entry point for creating Wix projects",
|
|
94569
|
-
version: "0.0.
|
|
94612
|
+
version: "0.0.30",
|
|
94570
94613
|
bin: "bin/index.cjs",
|
|
94571
94614
|
devDependencies: {
|
|
94572
94615
|
"@commander-js/extra-typings": "^13.0.0",
|