twenty-sdk 0.4.1 → 0.4.3
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/AllIcons-CGPKtPQS-DNCqqVPl.js +18986 -0
- package/dist/AllIcons-CGPKtPQS-pnhRwY6h.mjs +30768 -0
- package/dist/{cli.cjs → cli/index.cjs} +22 -22
- package/dist/{cli.mjs → cli/index.mjs} +304 -302
- package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +0 -1
- package/dist/cli/utilities/build/common/front-component-build/constants/front-component-external-modules.d.ts +1 -0
- package/dist/cli/utilities/build/common/front-component-build/utils/create-front-component-build-options.d.ts +14 -0
- package/dist/cli/utilities/build/common/front-component-build/utils/get-front-component-build-plugins.d.ts +2 -0
- package/dist/front-component/__stories__/FrontComponentRenderer.stories.d.ts +9 -0
- package/dist/front-component/__stories__/mocks/interactive.front-component.d.ts +7 -0
- package/dist/front-component/__stories__/mocks/lifecycle.front-component.d.ts +7 -0
- package/dist/front-component/__stories__/mocks/static.front-component.d.ts +7 -0
- package/dist/front-component/__stories__/utils/buildMockComponents.d.ts +1 -0
- package/dist/front-component/__stories__/utils/loadBuiltComponent.d.ts +1 -0
- package/dist/front-component/index.cjs +1 -0
- package/dist/front-component/index.mjs +2668 -0
- package/dist/front-component-constants/index.cjs +1 -0
- package/dist/{front-component-constants.mjs → front-component-constants/index.mjs} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/dist/input-CCBkYU6b.mjs +28020 -0
- package/dist/input-QArI9uHN.js +402 -0
- package/dist/isValidCountryCode-B7MxBtRC-BNPnBggZ.js +25 -0
- package/dist/{jsx-runtime-C9ldtZbm.mjs → isValidCountryCode-B7MxBtRC-BsdyqBLg.mjs} +4054 -4685
- package/dist/jsx-runtime-BdMIAavf.mjs +639 -0
- package/dist/jsx-runtime-Bglt9wWZ.js +30 -0
- package/dist/{types-DqLnNRPE.js → types-BhI-EY61.js} +1 -1
- package/dist/{types-BSOjxfFi.mjs → types-DBujFsE7.mjs} +3 -3
- package/dist/ui/index.cjs +2015 -0
- package/dist/ui/index.d.ts +11 -0
- package/dist/ui/index.mjs +9941 -0
- package/dist/vendor/twenty-shared/database-events/object-record.base.event.d.ts +1 -0
- package/dist/vendor/twenty-shared/database-events/object-record.base.event.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/{isValidCountryCode-Dyji5s5r.mjs → isValidCountryCode-B7MxBtRC.mjs} +963 -939
- package/dist/vendor/twenty-shared/{isValidCountryCode-D-UqlXRW.js → isValidCountryCode-BXhYkDye.js} +3 -3
- package/dist/vendor/twenty-shared/types/EventLogTable.d.ts +6 -0
- package/dist/vendor/twenty-shared/types/EventLogTable.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/types/FilterableFieldType.d.ts +1 -1
- package/dist/vendor/twenty-shared/types/FilterableFieldType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/RecordGqlOperationFilter.d.ts +5 -1
- package/dist/vendor/twenty-shared/types/RecordGqlOperationFilter.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/SettingsPath.d.ts +1 -0
- package/dist/vendor/twenty-shared/types/SettingsPath.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/index.d.ts +2 -1
- package/dist/vendor/twenty-shared/types/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types.cjs +1 -1
- package/dist/vendor/twenty-shared/types.mjs +58 -56
- package/dist/vendor/twenty-shared/utils/filter/index.d.ts +1 -0
- package/dist/vendor/twenty-shared/utils/filter/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/turnRecordFilterIntoGqlOperationFilter.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/utils/getEmptyRecordGqlOperationFilter.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/utils/getFilterTypeFromFieldType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingFilesFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingFilesFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/index.d.ts +1 -0
- package/dist/vendor/twenty-shared/utils/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils.cjs +2 -2
- package/dist/vendor/twenty-shared/utils.mjs +171 -151
- package/dist/vendor/twenty-shared/workflow.cjs +1 -1
- package/dist/vendor/twenty-shared/workflow.mjs +1 -1
- package/dist/vendor/twenty-ui/{Avatar-zyamQwOj.cjs → Avatar-CRldFv_0.cjs} +1 -1
- package/dist/vendor/twenty-ui/{Avatar-Cg4dvBA_.js → Avatar-q9sRncB5.js} +2 -2
- package/dist/vendor/twenty-ui/{Button-BChGSHVB.js → Button-C4mFr9D-.js} +2 -2
- package/dist/vendor/twenty-ui/{Button-PLd38fEI.cjs → Button-DglXLX4t.cjs} +2 -2
- package/dist/vendor/twenty-ui/{ColorSample-BEUix7Ah.cjs → ColorSample-D9DM-_ee.cjs} +1 -1
- package/dist/vendor/twenty-ui/{ColorSample-Bp-he5lO.js → ColorSample-IEHpxKsX.js} +1 -1
- package/dist/vendor/twenty-ui/MainColorNames-C1tU0n7M.cjs +1 -0
- package/dist/vendor/twenty-ui/MainColorNames-CH_C4JeD.js +5 -0
- package/dist/vendor/twenty-ui/{MainColorsLight-x_vjLhiq.js → MainColorsLight--0X05KcO.js} +1 -1
- package/dist/vendor/twenty-ui/{MainColorsLight-GOpmobTe.cjs → MainColorsLight-CpgC1-1i.cjs} +1 -1
- package/dist/vendor/twenty-ui/{OverflowingTextWithTooltip-1P96Lw-o.cjs → OverflowingTextWithTooltip-C4x0j2AD.cjs} +1 -1
- package/dist/vendor/twenty-ui/{OverflowingTextWithTooltip-F-KEqUMB.js → OverflowingTextWithTooltip-FRJL71ks.js} +2 -2
- package/dist/vendor/twenty-ui/{Tag-CfX8tARK.js → Tag-C0nqcoLd.js} +3 -3
- package/dist/vendor/twenty-ui/{Tag-DIE1bmT7.cjs → Tag-C6YGTe8G.cjs} +1 -1
- package/dist/vendor/twenty-ui/{ThemeCommon-BiQXECTo.cjs → ThemeCommon-DMvprlEs.cjs} +1 -1
- package/dist/vendor/twenty-ui/{ThemeCommon-CUpBXrDJ.js → ThemeCommon-RVLgB4Pa.js} +1 -1
- package/dist/vendor/twenty-ui/components.cjs +1 -1
- package/dist/vendor/twenty-ui/components.mjs +5 -5
- package/dist/vendor/twenty-ui/{config-D3RPmuwk.cjs → config-2EfZqKOo.cjs} +1 -1
- package/dist/vendor/twenty-ui/{config-D9UgCg2c.js → config-wKIVPAkA.js} +1 -1
- package/dist/vendor/twenty-ui/display.cjs +1 -1
- package/dist/vendor/twenty-ui/display.mjs +9 -9
- package/dist/vendor/twenty-ui/feedback.cjs +1 -1
- package/dist/vendor/twenty-ui/feedback.mjs +1 -1
- package/dist/vendor/twenty-ui/{getDisplayValueByUrlType-BMzTxZmB.cjs → getDisplayValueByUrlType-DwG-FZ1p.cjs} +1 -1
- package/dist/vendor/twenty-ui/{getDisplayValueByUrlType-BqPVhhu2.js → getDisplayValueByUrlType-DxqXD84p.js} +1 -1
- package/dist/vendor/twenty-ui/input.cjs +4 -4
- package/dist/vendor/twenty-ui/input.mjs +6 -6
- package/dist/vendor/twenty-ui/{isValidCountryCode-Dyji5s5r-MH68p3NE.cjs → isValidCountryCode-B7MxBtRC-BroSlnrA.cjs} +6 -6
- package/dist/vendor/twenty-ui/{isValidCountryCode-Dyji5s5r-B7O5eJvP.js → isValidCountryCode-B7MxBtRC-DyiZn2sl.js} +647 -647
- package/dist/vendor/twenty-ui/json-visualizer.cjs +2 -2
- package/dist/vendor/twenty-ui/json-visualizer.mjs +1 -1
- package/dist/vendor/twenty-ui/layout.cjs +2 -2
- package/dist/vendor/twenty-ui/layout.mjs +1 -1
- package/dist/vendor/twenty-ui/navigation.cjs +5 -5
- package/dist/vendor/twenty-ui/navigation.mjs +6 -6
- package/dist/vendor/twenty-ui/testing.cjs +2 -2
- package/dist/vendor/twenty-ui/testing.mjs +2 -2
- package/dist/vendor/twenty-ui/theme.cjs +1 -1
- package/dist/vendor/twenty-ui/theme.mjs +6 -6
- package/dist/vendor/twenty-ui/{themeColorSchema-CgAr-Bzv.js → themeColorSchema-DVfjPoxx.js} +1 -1
- package/dist/vendor/twenty-ui/{themeColorSchema-DSPsU2O5.cjs → themeColorSchema-DfeeV1pm.cjs} +1 -1
- package/dist/vendor/twenty-ui/{useMouseDownNavigation-C_8Q5KFZ.cjs → useMouseDownNavigation-Dr9ganU0.cjs} +1 -1
- package/dist/vendor/twenty-ui/{useMouseDownNavigation-qpLZC7wJ.js → useMouseDownNavigation-QLT907PP.js} +1 -1
- package/dist/vendor/twenty-ui/utilities.cjs +1 -1
- package/dist/vendor/twenty-ui/utilities.mjs +3 -3
- package/package.json +20 -25
- package/dist/front-component-constants.cjs +0 -1
- package/dist/front-component.cjs +0 -155
- package/dist/front-component.mjs +0 -23453
- package/dist/jsx-runtime-CfccAQK_.js +0 -54
- package/dist/vendor/twenty-ui/MainColorNames-DNUaoKmR.cjs +0 -1
- package/dist/vendor/twenty-ui/MainColorNames-O_b9E7H3.js +0 -5
|
@@ -6,14 +6,14 @@ import * as he from "fs-extra";
|
|
|
6
6
|
import { readFile as dy } from "fs-extra";
|
|
7
7
|
import Fc from "crypto";
|
|
8
8
|
import * as gy from "node:fs/promises";
|
|
9
|
-
import { T as ji, l as Dc, Z as wa
|
|
9
|
+
import { T as ji, l as Dc, Z as wa } from "../isValidCountryCode-B7MxBtRC-BsdyqBLg.mjs";
|
|
10
10
|
import { isNonEmptyString as my } from "@sniptt/guards";
|
|
11
11
|
import yy from "lodash.camelcase";
|
|
12
|
-
import { s as mc } from "
|
|
13
|
-
import { H as Pc } from "
|
|
12
|
+
import { s as mc } from "../RatingValues-CT-y6O0b-CsGZSJKO.mjs";
|
|
13
|
+
import { H as Pc } from "../HtmlTagToRemoteComponent-DlsAI7JU.mjs";
|
|
14
14
|
import * as vy from "fs/promises";
|
|
15
15
|
import * as kc from "esbuild";
|
|
16
|
-
import {
|
|
16
|
+
import { N as mn } from "../types-DBujFsE7.mjs";
|
|
17
17
|
import Uc from "chokidar";
|
|
18
18
|
import * as _y from "os";
|
|
19
19
|
import xy from "os";
|
|
@@ -23,15 +23,12 @@ import { createClient as Ty } from "graphql-sse";
|
|
|
23
23
|
import * as ci from "typescript";
|
|
24
24
|
import { createRequire as wy } from "module";
|
|
25
25
|
import { glob as Mc } from "fast-glob";
|
|
26
|
-
import {
|
|
26
|
+
import { j as Q, c as yn, g as Ey } from "../jsx-runtime-BdMIAavf.mjs";
|
|
27
|
+
import { generate as Sy } from "@genql/cli";
|
|
27
28
|
import Qt from "inquirer";
|
|
28
29
|
import { v4 as hi } from "uuid";
|
|
29
|
-
import { Command as
|
|
30
|
-
import { inspect as
|
|
31
|
-
var yn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
32
|
-
function by(n) {
|
|
33
|
-
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
34
|
-
}
|
|
30
|
+
import { Command as Ay, CommanderError as Iy } from "commander";
|
|
31
|
+
import { inspect as by } from "util";
|
|
35
32
|
const Yt = process.env.INIT_CWD || process.cwd(), Pi = (n) => n && !n?.startsWith("/") ? Nt(Yt, n) : n, Ny = async (n, r, i) => {
|
|
36
33
|
const o = new Set(i), u = r.filter((f) => !o.has(f));
|
|
37
34
|
for (const f of u) {
|
|
@@ -57,7 +54,13 @@ const Yt = process.env.INIT_CWD || process.cwd(), Pi = (n) => n && !n?.startsWit
|
|
|
57
54
|
checksum: P
|
|
58
55
|
}));
|
|
59
56
|
}
|
|
60
|
-
}, Cy =
|
|
57
|
+
}, Cy = [
|
|
58
|
+
"react-dom",
|
|
59
|
+
"twenty-sdk",
|
|
60
|
+
"twenty-sdk/*",
|
|
61
|
+
"twenty-shared",
|
|
62
|
+
"twenty-shared/*"
|
|
63
|
+
], Ly = (n) => my(n) ? n[0].toUpperCase() + n.slice(1) : "", Ry = (n) => Ly(yy(n)), Fy = (n) => typeof n == "object" && n !== null && !Array.isArray(n), Dy = "RemoteComponents", Py = () => {
|
|
61
64
|
const n = Object.keys(Pc).join(
|
|
62
65
|
"|"
|
|
63
66
|
);
|
|
@@ -65,15 +68,15 @@ const Yt = process.env.INIT_CWD || process.cwd(), Pi = (n) => n && !n?.startsWit
|
|
|
65
68
|
`(<\\/?)\\b(${n})\\b(?=[\\s>\\/>])`,
|
|
66
69
|
"g"
|
|
67
70
|
);
|
|
68
|
-
},
|
|
69
|
-
|
|
71
|
+
}, ky = Py(), Uy = (n) => n.replace(
|
|
72
|
+
ky,
|
|
70
73
|
(r, i, o) => {
|
|
71
74
|
const u = Pc[o];
|
|
72
|
-
return ji(u) ? `${i}${
|
|
75
|
+
return ji(u) ? `${i}${Dy}.${u}` : r;
|
|
73
76
|
}
|
|
74
|
-
),
|
|
77
|
+
), My = /import\s*\{\s*defineFrontComponent\s*\}\s*from\s*['"][^'"]+['"];?\n?/g, vc = /export\s+default\s+defineFrontComponent\s*\(\s*\{[^}]*component\s*:\s*(\w+)[^}]*\}\s*\)\s*;?/s, $y = (n) => {
|
|
75
78
|
let r = n.replace(
|
|
76
|
-
|
|
79
|
+
My,
|
|
77
80
|
""
|
|
78
81
|
);
|
|
79
82
|
const i = r.match(
|
|
@@ -92,16 +95,16 @@ const Yt = process.env.INIT_CWD || process.cwd(), Pi = (n) => n && !n?.startsWit
|
|
|
92
95
|
);
|
|
93
96
|
}
|
|
94
97
|
return r;
|
|
95
|
-
},
|
|
98
|
+
}, By = {
|
|
96
99
|
name: "jsx-transform-to-remote-dom-worker-format-plugin",
|
|
97
100
|
setup: (n) => {
|
|
98
101
|
n.onLoad(
|
|
99
102
|
{ filter: /\.tsx$/ },
|
|
100
103
|
async ({ path: r }) => {
|
|
101
104
|
try {
|
|
102
|
-
const i = await gy.readFile(r, "utf8"), o =
|
|
105
|
+
const i = await gy.readFile(r, "utf8"), o = Uy(i);
|
|
103
106
|
return { contents: `var RemoteComponents = globalThis.RemoteComponents;
|
|
104
|
-
${
|
|
107
|
+
${$y(
|
|
105
108
|
o
|
|
106
109
|
)}`, loader: "tsx" };
|
|
107
110
|
} catch (i) {
|
|
@@ -117,29 +120,29 @@ ${My(
|
|
|
117
120
|
}
|
|
118
121
|
);
|
|
119
122
|
}
|
|
120
|
-
},
|
|
121
|
-
const r = n.trim(), i = r.match(
|
|
123
|
+
}, jy = /^(\w+)\s+as\s+(\w+)$/, Wy = (n) => {
|
|
124
|
+
const r = n.trim(), i = r.match(jy);
|
|
122
125
|
if (ji(i)) {
|
|
123
126
|
const [, o, u] = i;
|
|
124
127
|
return { originalName: o, aliasName: u };
|
|
125
128
|
}
|
|
126
129
|
return { originalName: r, aliasName: r };
|
|
127
|
-
}, _c = /import\s+(?:(\w+)\s*,?\s*)?(?:\{([^}]*)\})?\s*from\s*['"]react['"];?/g,
|
|
130
|
+
}, _c = /import\s+(?:(\w+)\s*,?\s*)?(?:\{([^}]*)\})?\s*from\s*['"]react['"];?/g, Gy = /^react(\/jsx-runtime)?$/, Vy = `
|
|
128
131
|
export var jsx = globalThis.jsx;
|
|
129
132
|
export var jsxs = globalThis.jsxs;
|
|
130
133
|
export var Fragment = globalThis.React.Fragment;
|
|
131
|
-
`.trim(),
|
|
134
|
+
`.trim(), qy = (n) => {
|
|
132
135
|
const r = /* @__PURE__ */ new Set();
|
|
133
136
|
let i;
|
|
134
137
|
for (; ji(i = _c.exec(n)); ) {
|
|
135
138
|
const o = i[1], u = i[2];
|
|
136
139
|
o && r.add("default"), u && u.split(",").filter((f) => f.trim()).forEach((f) => {
|
|
137
|
-
const { originalName: g } =
|
|
140
|
+
const { originalName: g } = Wy(f);
|
|
138
141
|
r.add(g);
|
|
139
142
|
});
|
|
140
143
|
}
|
|
141
144
|
return _c.lastIndex = 0, r;
|
|
142
|
-
},
|
|
145
|
+
}, Jy = (n) => {
|
|
143
146
|
const r = [];
|
|
144
147
|
for (const i of n)
|
|
145
148
|
i === "default" ? r.push("export default globalThis.React;") : r.push(
|
|
@@ -147,48 +150,56 @@ export var Fragment = globalThis.React.Fragment;
|
|
|
147
150
|
);
|
|
148
151
|
return r.join(`
|
|
149
152
|
`);
|
|
150
|
-
},
|
|
153
|
+
}, zy = {
|
|
151
154
|
name: "react-globals",
|
|
152
155
|
setup: async (n) => {
|
|
153
156
|
const r = /* @__PURE__ */ new Map();
|
|
154
157
|
n.onStart(() => {
|
|
155
158
|
r.clear();
|
|
156
159
|
}), n.onResolve(
|
|
157
|
-
{ filter:
|
|
160
|
+
{ filter: Gy },
|
|
158
161
|
async ({ importer: i, path: o }) => {
|
|
159
162
|
if (i && !r.has(i))
|
|
160
163
|
try {
|
|
161
164
|
const u = await vy.readFile(i, "utf-8");
|
|
162
165
|
r.set(
|
|
163
166
|
i,
|
|
164
|
-
|
|
167
|
+
qy(u)
|
|
165
168
|
);
|
|
166
169
|
} catch {
|
|
167
170
|
r.set(i, /* @__PURE__ */ new Set());
|
|
168
171
|
}
|
|
169
172
|
return {
|
|
170
|
-
path: o,
|
|
173
|
+
path: o === "react" && i ? `react?importer=${encodeURIComponent(i)}` : o,
|
|
171
174
|
namespace: "react-globals",
|
|
172
175
|
pluginData: { importer: i }
|
|
173
176
|
};
|
|
174
177
|
}
|
|
175
178
|
), n.onLoad(
|
|
176
179
|
{ filter: /.*/, namespace: "react-globals" },
|
|
177
|
-
({
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
180
|
+
({ path: i, pluginData: o }) => {
|
|
181
|
+
if (i === "react/jsx-runtime")
|
|
182
|
+
return {
|
|
183
|
+
contents: Vy,
|
|
184
|
+
loader: "js"
|
|
185
|
+
};
|
|
186
|
+
if (i === "react" || i.startsWith("react?importer=")) {
|
|
187
|
+
const u = o?.importer || decodeURIComponent(i.split("react?importer=")[1] || ""), f = r.get(u) || /* @__PURE__ */ new Set();
|
|
188
|
+
return {
|
|
189
|
+
contents: Jy(f),
|
|
190
|
+
loader: "js"
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
return null;
|
|
186
194
|
}
|
|
187
195
|
);
|
|
188
196
|
}
|
|
189
|
-
},
|
|
197
|
+
}, Qy = () => [
|
|
198
|
+
zy,
|
|
199
|
+
By
|
|
200
|
+
], Da = "public", Hy = "TWENTY_API_KEY", Yy = "TWENTY_API_URL", _n = ".twenty/output";
|
|
190
201
|
var Re = /* @__PURE__ */ ((n) => (n.Object = "object", n.Field = "field", n.LogicFunction = "logicFunction", n.FrontComponent = "frontComponent", n.Role = "role", n))(Re || {});
|
|
191
|
-
const
|
|
202
|
+
const Xy = [
|
|
192
203
|
"path",
|
|
193
204
|
"fs",
|
|
194
205
|
"crypto",
|
|
@@ -211,12 +222,6 @@ const Hy = [
|
|
|
211
222
|
"twenty-sdk/*",
|
|
212
223
|
"twenty-shared",
|
|
213
224
|
"twenty-shared/*"
|
|
214
|
-
], Yy = [
|
|
215
|
-
"react-dom",
|
|
216
|
-
"twenty-sdk",
|
|
217
|
-
"twenty-sdk/*",
|
|
218
|
-
"twenty-shared",
|
|
219
|
-
"twenty-shared/*"
|
|
220
225
|
];
|
|
221
226
|
class $c {
|
|
222
227
|
constructor(r) {
|
|
@@ -301,7 +306,7 @@ class $c {
|
|
|
301
306
|
}), await this.esBuildContext.rebuild(), await this.buildCompletePromise, this.watchMode && await this.esBuildContext.watch();
|
|
302
307
|
}
|
|
303
308
|
}
|
|
304
|
-
const
|
|
309
|
+
const Ky = {
|
|
305
310
|
name: "external-patterns",
|
|
306
311
|
setup: (n) => {
|
|
307
312
|
n.onResolve({ filter: /(?:^|\/)generated(?:\/|$)/ }, (r) => ({
|
|
@@ -309,27 +314,24 @@ const Xy = {
|
|
|
309
314
|
external: !0
|
|
310
315
|
}));
|
|
311
316
|
}
|
|
312
|
-
},
|
|
317
|
+
}, Zy = (n) => new $c({
|
|
313
318
|
...n,
|
|
314
319
|
config: {
|
|
315
|
-
externalModules:
|
|
320
|
+
externalModules: Xy,
|
|
316
321
|
fileFolder: mn.BuiltLogicFunction,
|
|
317
322
|
platform: "node",
|
|
318
|
-
extraPlugins: [
|
|
323
|
+
extraPlugins: [Ky]
|
|
319
324
|
}
|
|
320
|
-
}),
|
|
325
|
+
}), ev = (n) => new $c({
|
|
321
326
|
...n,
|
|
322
327
|
config: {
|
|
323
|
-
externalModules:
|
|
328
|
+
externalModules: Cy,
|
|
324
329
|
fileFolder: mn.BuiltFrontComponent,
|
|
325
330
|
jsx: "automatic",
|
|
326
|
-
extraPlugins:
|
|
327
|
-
Jy,
|
|
328
|
-
$y
|
|
329
|
-
]
|
|
331
|
+
extraPlugins: Qy()
|
|
330
332
|
}
|
|
331
333
|
});
|
|
332
|
-
class
|
|
334
|
+
class tv {
|
|
333
335
|
constructor(r) {
|
|
334
336
|
this.watcher = null, this.appPath = r.appPath, this.handleChangeDetected = r.handleChangeDetected;
|
|
335
337
|
}
|
|
@@ -353,7 +355,7 @@ class ev {
|
|
|
353
355
|
await this.watcher?.close();
|
|
354
356
|
}
|
|
355
357
|
}
|
|
356
|
-
const
|
|
358
|
+
const nv = ({
|
|
357
359
|
manifest: n,
|
|
358
360
|
builtFileInfos: r
|
|
359
361
|
}) => {
|
|
@@ -404,7 +406,7 @@ const tv = ({
|
|
|
404
406
|
u === mn.Source && (g === "package.json" && (i.application.packageJsonChecksum = f), g === "yarn.lock" && (i.application.yarnLockChecksum = f));
|
|
405
407
|
}
|
|
406
408
|
return i;
|
|
407
|
-
},
|
|
409
|
+
}, iv = async (n, r) => {
|
|
408
410
|
const i = Pe.join(n, _n);
|
|
409
411
|
await he.ensureDir(i);
|
|
410
412
|
const o = Pe.join(i, "manifest.json");
|
|
@@ -496,10 +498,10 @@ function Wi(n, r) {
|
|
|
496
498
|
r ?? "Unexpected invariant triggered."
|
|
497
499
|
);
|
|
498
500
|
}
|
|
499
|
-
const
|
|
501
|
+
const rv = /\r\n|[\n\r]/g;
|
|
500
502
|
function Oa(n, r) {
|
|
501
503
|
let i = 0, o = 1;
|
|
502
|
-
for (const u of n.body.matchAll(
|
|
504
|
+
for (const u of n.body.matchAll(rv)) {
|
|
503
505
|
if (typeof u.index == "number" || Wi(!1), u.index >= r)
|
|
504
506
|
break;
|
|
505
507
|
i = u.index + u[0].length, o += 1;
|
|
@@ -509,7 +511,7 @@ function Oa(n, r) {
|
|
|
509
511
|
column: r + 1 - i
|
|
510
512
|
};
|
|
511
513
|
}
|
|
512
|
-
function
|
|
514
|
+
function sv(n) {
|
|
513
515
|
return Bc(
|
|
514
516
|
n.source,
|
|
515
517
|
Oa(n.source, n.start)
|
|
@@ -542,7 +544,7 @@ function xc(n) {
|
|
|
542
544
|
return r.map(([o, u]) => o.padStart(i) + (u ? " " + u : "")).join(`
|
|
543
545
|
`);
|
|
544
546
|
}
|
|
545
|
-
function
|
|
547
|
+
function av(n) {
|
|
546
548
|
const r = n[0];
|
|
547
549
|
return r == null || "kind" in r || "length" in r ? {
|
|
548
550
|
nodes: r,
|
|
@@ -594,7 +596,7 @@ class fe extends Error {
|
|
|
594
596
|
*/
|
|
595
597
|
constructor(r, ...i) {
|
|
596
598
|
var o, u, f;
|
|
597
|
-
const { nodes: g, source: v, positions: w, path: b, originalError: O, extensions: D } =
|
|
599
|
+
const { nodes: g, source: v, positions: w, path: b, originalError: O, extensions: D } = av(i);
|
|
598
600
|
super(r), this.name = "GraphQLError", this.path = b ?? void 0, this.originalError = O ?? void 0, this.nodes = Tc(
|
|
599
601
|
Array.isArray(g) ? g : g ? [g] : void 0
|
|
600
602
|
);
|
|
@@ -644,7 +646,7 @@ class fe extends Error {
|
|
|
644
646
|
for (const i of this.nodes)
|
|
645
647
|
i.loc && (r += `
|
|
646
648
|
|
|
647
|
-
` +
|
|
649
|
+
` + sv(i.loc));
|
|
648
650
|
else if (this.source && this.locations)
|
|
649
651
|
for (const i of this.locations)
|
|
650
652
|
r += `
|
|
@@ -668,7 +670,7 @@ function De(n, r, i) {
|
|
|
668
670
|
positions: [r]
|
|
669
671
|
});
|
|
670
672
|
}
|
|
671
|
-
class
|
|
673
|
+
class ov {
|
|
672
674
|
/**
|
|
673
675
|
* The character offset at which this Node begins.
|
|
674
676
|
*/
|
|
@@ -813,10 +815,10 @@ const Wc = {
|
|
|
813
815
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
814
816
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
815
817
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
816
|
-
},
|
|
818
|
+
}, uv = new Set(Object.keys(Wc));
|
|
817
819
|
function wc(n) {
|
|
818
820
|
const r = n?.kind;
|
|
819
|
-
return typeof r == "string" &&
|
|
821
|
+
return typeof r == "string" && uv.has(r);
|
|
820
822
|
}
|
|
821
823
|
var Ht;
|
|
822
824
|
(function(n) {
|
|
@@ -846,12 +848,12 @@ function Pa(n) {
|
|
|
846
848
|
function Vc(n) {
|
|
847
849
|
return Gc(n) || Bi(n) || n === 95;
|
|
848
850
|
}
|
|
849
|
-
function
|
|
851
|
+
function cv(n) {
|
|
850
852
|
var r;
|
|
851
853
|
let i = Number.MAX_SAFE_INTEGER, o = null, u = -1;
|
|
852
854
|
for (let g = 0; g < n.length; ++g) {
|
|
853
855
|
var f;
|
|
854
|
-
const v = n[g], w =
|
|
856
|
+
const v = n[g], w = lv(v);
|
|
855
857
|
w !== v.length && (o = (f = o) !== null && f !== void 0 ? f : g, u = g, g !== 0 && w < i && (i = w));
|
|
856
858
|
}
|
|
857
859
|
return n.map((g, v) => v === 0 ? g : g.slice(i)).slice(
|
|
@@ -859,13 +861,13 @@ function uv(n) {
|
|
|
859
861
|
u + 1
|
|
860
862
|
);
|
|
861
863
|
}
|
|
862
|
-
function
|
|
864
|
+
function lv(n) {
|
|
863
865
|
let r = 0;
|
|
864
866
|
for (; r < n.length && Ca(n.charCodeAt(r)); )
|
|
865
867
|
++r;
|
|
866
868
|
return r;
|
|
867
869
|
}
|
|
868
|
-
function
|
|
870
|
+
function fv(n) {
|
|
869
871
|
if (n === "")
|
|
870
872
|
return !0;
|
|
871
873
|
let r = !0, i = !1, o = !0, u = !1;
|
|
@@ -904,7 +906,7 @@ function lv(n) {
|
|
|
904
906
|
}
|
|
905
907
|
return !(r || o && u);
|
|
906
908
|
}
|
|
907
|
-
function
|
|
909
|
+
function pv(n, r) {
|
|
908
910
|
const i = n.replace(/"""/g, '\\"""'), o = i.split(/\r\n|[\n\r]/g), u = o.length === 1, f = o.length > 1 && o.slice(1).every((M) => M.length === 0 || Ca(M.charCodeAt(0))), g = i.endsWith('\\"""'), v = n.endsWith('"') && !g, w = n.endsWith("\\"), b = v || w, O = (
|
|
909
911
|
// add leading and trailing new lines only if it improves readability
|
|
910
912
|
!u || n.length > 70 || b || f || g
|
|
@@ -919,7 +921,7 @@ var A;
|
|
|
919
921
|
(function(n) {
|
|
920
922
|
n.SOF = "<SOF>", n.EOF = "<EOF>", n.BANG = "!", n.DOLLAR = "$", n.AMP = "&", n.PAREN_L = "(", n.PAREN_R = ")", n.SPREAD = "...", n.COLON = ":", n.EQUALS = "=", n.AT = "@", n.BRACKET_L = "[", n.BRACKET_R = "]", n.BRACE_L = "{", n.PIPE = "|", n.BRACE_R = "}", n.NAME = "Name", n.INT = "Int", n.FLOAT = "Float", n.STRING = "String", n.BLOCK_STRING = "BlockString", n.COMMENT = "Comment";
|
|
921
923
|
})(A || (A = {}));
|
|
922
|
-
class
|
|
924
|
+
class hv {
|
|
923
925
|
/**
|
|
924
926
|
* The previously focused non-ignored token.
|
|
925
927
|
*/
|
|
@@ -956,14 +958,14 @@ class pv {
|
|
|
956
958
|
if (r.next)
|
|
957
959
|
r = r.next;
|
|
958
960
|
else {
|
|
959
|
-
const i =
|
|
961
|
+
const i = gv(this, r.end);
|
|
960
962
|
r.next = i, i.prev = r, r = i;
|
|
961
963
|
}
|
|
962
964
|
while (r.kind === A.COMMENT);
|
|
963
965
|
return r;
|
|
964
966
|
}
|
|
965
967
|
}
|
|
966
|
-
function
|
|
968
|
+
function dv(n) {
|
|
967
969
|
return n === A.BANG || n === A.DOLLAR || n === A.AMP || n === A.PAREN_L || n === A.PAREN_R || n === A.SPREAD || n === A.COLON || n === A.EQUALS || n === A.AT || n === A.BRACKET_L || n === A.BRACKET_R || n === A.BRACE_L || n === A.PIPE || n === A.BRACE_R;
|
|
968
970
|
}
|
|
969
971
|
function di(n) {
|
|
@@ -992,7 +994,7 @@ function Ne(n, r, i, o, u) {
|
|
|
992
994
|
const f = n.line, g = 1 + i - n.lineStart;
|
|
993
995
|
return new jc(r, i, o, f, g, u);
|
|
994
996
|
}
|
|
995
|
-
function
|
|
997
|
+
function gv(n, r) {
|
|
996
998
|
const i = n.source.body, o = i.length;
|
|
997
999
|
let u = r;
|
|
998
1000
|
for (; u < o; ) {
|
|
@@ -1033,7 +1035,7 @@ function dv(n, r) {
|
|
|
1033
1035
|
continue;
|
|
1034
1036
|
// Comment
|
|
1035
1037
|
case 35:
|
|
1036
|
-
return
|
|
1038
|
+
return mv(n, u);
|
|
1037
1039
|
// Token ::
|
|
1038
1040
|
// - Punctuator
|
|
1039
1041
|
// - Name
|
|
@@ -1074,12 +1076,12 @@ function dv(n, r) {
|
|
|
1074
1076
|
return Ne(n, A.BRACE_R, u, u + 1);
|
|
1075
1077
|
// StringValue
|
|
1076
1078
|
case 34:
|
|
1077
|
-
return i.charCodeAt(u + 1) === 34 && i.charCodeAt(u + 2) === 34 ?
|
|
1079
|
+
return i.charCodeAt(u + 1) === 34 && i.charCodeAt(u + 2) === 34 ? wv(n, u) : vv(n, u);
|
|
1078
1080
|
}
|
|
1079
1081
|
if (Bi(f) || f === 45)
|
|
1080
|
-
return
|
|
1082
|
+
return yv(n, u, f);
|
|
1081
1083
|
if (Pa(f))
|
|
1082
|
-
return
|
|
1084
|
+
return Ev(n, u);
|
|
1083
1085
|
throw De(
|
|
1084
1086
|
n.source,
|
|
1085
1087
|
u,
|
|
@@ -1088,7 +1090,7 @@ function dv(n, r) {
|
|
|
1088
1090
|
}
|
|
1089
1091
|
return Ne(n, A.EOF, o, o);
|
|
1090
1092
|
}
|
|
1091
|
-
function
|
|
1093
|
+
function mv(n, r) {
|
|
1092
1094
|
const i = n.source.body, o = i.length;
|
|
1093
1095
|
let u = r + 1;
|
|
1094
1096
|
for (; u < o; ) {
|
|
@@ -1110,7 +1112,7 @@ function gv(n, r) {
|
|
|
1110
1112
|
i.slice(r + 1, u)
|
|
1111
1113
|
);
|
|
1112
1114
|
}
|
|
1113
|
-
function
|
|
1115
|
+
function yv(n, r, i) {
|
|
1114
1116
|
const o = n.source.body;
|
|
1115
1117
|
let u = r, f = i, g = !1;
|
|
1116
1118
|
if (f === 45 && (f = o.charCodeAt(++u)), f === 48) {
|
|
@@ -1158,7 +1160,7 @@ function Ea(n, r, i) {
|
|
|
1158
1160
|
++u;
|
|
1159
1161
|
return u;
|
|
1160
1162
|
}
|
|
1161
|
-
function
|
|
1163
|
+
function vv(n, r) {
|
|
1162
1164
|
const i = n.source.body, o = i.length;
|
|
1163
1165
|
let u = r + 1, f = u, g = "";
|
|
1164
1166
|
for (; u < o; ) {
|
|
@@ -1167,7 +1169,7 @@ function yv(n, r) {
|
|
|
1167
1169
|
return g += i.slice(f, u), Ne(n, A.STRING, r, u + 1, g);
|
|
1168
1170
|
if (v === 92) {
|
|
1169
1171
|
g += i.slice(f, u);
|
|
1170
|
-
const w = i.charCodeAt(u + 1) === 117 ? i.charCodeAt(u + 2) === 123 ?
|
|
1172
|
+
const w = i.charCodeAt(u + 1) === 117 ? i.charCodeAt(u + 2) === 123 ? _v(n, u) : xv(n, u) : Tv(n, u);
|
|
1171
1173
|
g += w.value, u += w.size, f = u;
|
|
1172
1174
|
continue;
|
|
1173
1175
|
}
|
|
@@ -1189,7 +1191,7 @@ function yv(n, r) {
|
|
|
1189
1191
|
}
|
|
1190
1192
|
throw De(n.source, u, "Unterminated string.");
|
|
1191
1193
|
}
|
|
1192
|
-
function
|
|
1194
|
+
function _v(n, r) {
|
|
1193
1195
|
const i = n.source.body;
|
|
1194
1196
|
let o = 0, u = 3;
|
|
1195
1197
|
for (; u < 12; ) {
|
|
@@ -1214,7 +1216,7 @@ function vv(n, r) {
|
|
|
1214
1216
|
)}".`
|
|
1215
1217
|
);
|
|
1216
1218
|
}
|
|
1217
|
-
function
|
|
1219
|
+
function xv(n, r) {
|
|
1218
1220
|
const i = n.source.body, o = Ec(i, r + 2);
|
|
1219
1221
|
if (di(o))
|
|
1220
1222
|
return {
|
|
@@ -1241,7 +1243,7 @@ function Ec(n, r) {
|
|
|
1241
1243
|
function Ui(n) {
|
|
1242
1244
|
return n >= 48 && n <= 57 ? n - 48 : n >= 65 && n <= 70 ? n - 55 : n >= 97 && n <= 102 ? n - 87 : -1;
|
|
1243
1245
|
}
|
|
1244
|
-
function
|
|
1246
|
+
function Tv(n, r) {
|
|
1245
1247
|
const i = n.source.body;
|
|
1246
1248
|
switch (i.charCodeAt(r + 1)) {
|
|
1247
1249
|
case 34:
|
|
@@ -1295,7 +1297,7 @@ function xv(n, r) {
|
|
|
1295
1297
|
)}".`
|
|
1296
1298
|
);
|
|
1297
1299
|
}
|
|
1298
|
-
function
|
|
1300
|
+
function wv(n, r) {
|
|
1299
1301
|
const i = n.source.body, o = i.length;
|
|
1300
1302
|
let u = n.lineStart, f = r + 3, g = f, v = "";
|
|
1301
1303
|
const w = [];
|
|
@@ -1309,7 +1311,7 @@ function Tv(n, r) {
|
|
|
1309
1311
|
r,
|
|
1310
1312
|
f + 3,
|
|
1311
1313
|
// Return a string of the lines joined with U+000A.
|
|
1312
|
-
|
|
1314
|
+
cv(w).join(`
|
|
1313
1315
|
`)
|
|
1314
1316
|
);
|
|
1315
1317
|
return n.line += w.length - 1, n.lineStart = u, O;
|
|
@@ -1338,7 +1340,7 @@ function Tv(n, r) {
|
|
|
1338
1340
|
}
|
|
1339
1341
|
throw De(n.source, f, "Unterminated string.");
|
|
1340
1342
|
}
|
|
1341
|
-
function
|
|
1343
|
+
function Ev(n, r) {
|
|
1342
1344
|
const i = n.source.body, o = i.length;
|
|
1343
1345
|
let u = r + 1;
|
|
1344
1346
|
for (; u < o; ) {
|
|
@@ -1356,7 +1358,7 @@ function wv(n, r) {
|
|
|
1356
1358
|
i.slice(r, u)
|
|
1357
1359
|
);
|
|
1358
1360
|
}
|
|
1359
|
-
const
|
|
1361
|
+
const Sv = 10, zc = 2;
|
|
1360
1362
|
function q(n) {
|
|
1361
1363
|
return zr(n, []);
|
|
1362
1364
|
}
|
|
@@ -1367,45 +1369,45 @@ function zr(n, r) {
|
|
|
1367
1369
|
case "function":
|
|
1368
1370
|
return n.name ? `[function ${n.name}]` : "[function]";
|
|
1369
1371
|
case "object":
|
|
1370
|
-
return
|
|
1372
|
+
return Av(n, r);
|
|
1371
1373
|
default:
|
|
1372
1374
|
return String(n);
|
|
1373
1375
|
}
|
|
1374
1376
|
}
|
|
1375
|
-
function
|
|
1377
|
+
function Av(n, r) {
|
|
1376
1378
|
if (n === null)
|
|
1377
1379
|
return "null";
|
|
1378
1380
|
if (r.includes(n))
|
|
1379
1381
|
return "[Circular]";
|
|
1380
1382
|
const i = [...r, n];
|
|
1381
|
-
if (
|
|
1383
|
+
if (Iv(n)) {
|
|
1382
1384
|
const o = n.toJSON();
|
|
1383
1385
|
if (o !== n)
|
|
1384
1386
|
return typeof o == "string" ? o : zr(o, i);
|
|
1385
1387
|
} else if (Array.isArray(n))
|
|
1386
|
-
return
|
|
1387
|
-
return
|
|
1388
|
+
return Nv(n, i);
|
|
1389
|
+
return bv(n, i);
|
|
1388
1390
|
}
|
|
1389
|
-
function
|
|
1391
|
+
function Iv(n) {
|
|
1390
1392
|
return typeof n.toJSON == "function";
|
|
1391
1393
|
}
|
|
1392
|
-
function
|
|
1394
|
+
function bv(n, r) {
|
|
1393
1395
|
const i = Object.entries(n);
|
|
1394
|
-
return i.length === 0 ? "{}" : r.length > zc ? "[" +
|
|
1396
|
+
return i.length === 0 ? "{}" : r.length > zc ? "[" + Ov(n) + "]" : "{ " + i.map(
|
|
1395
1397
|
([u, f]) => u + ": " + zr(f, r)
|
|
1396
1398
|
).join(", ") + " }";
|
|
1397
1399
|
}
|
|
1398
|
-
function
|
|
1400
|
+
function Nv(n, r) {
|
|
1399
1401
|
if (n.length === 0)
|
|
1400
1402
|
return "[]";
|
|
1401
1403
|
if (r.length > zc)
|
|
1402
1404
|
return "[Array]";
|
|
1403
|
-
const i = Math.min(
|
|
1405
|
+
const i = Math.min(Sv, n.length), o = n.length - i, u = [];
|
|
1404
1406
|
for (let f = 0; f < i; ++f)
|
|
1405
1407
|
u.push(zr(n[f], r));
|
|
1406
1408
|
return o === 1 ? u.push("... 1 more item") : o > 1 && u.push(`... ${o} more items`), "[" + u.join(", ") + "]";
|
|
1407
1409
|
}
|
|
1408
|
-
function
|
|
1410
|
+
function Ov(n) {
|
|
1409
1411
|
const r = Object.prototype.toString.call(n).replace(/^\[object /, "").replace(/]$/, "");
|
|
1410
1412
|
if (r === "Object" && typeof n.constructor == "function") {
|
|
1411
1413
|
const i = n.constructor.name;
|
|
@@ -1464,19 +1466,19 @@ class Qc {
|
|
|
1464
1466
|
return "Source";
|
|
1465
1467
|
}
|
|
1466
1468
|
}
|
|
1467
|
-
function
|
|
1469
|
+
function Cv(n) {
|
|
1468
1470
|
return Ut(n, Qc);
|
|
1469
1471
|
}
|
|
1470
|
-
function
|
|
1471
|
-
const i = new
|
|
1472
|
+
function Lv(n, r) {
|
|
1473
|
+
const i = new Rv(n, r);
|
|
1472
1474
|
i.expectToken(A.SOF);
|
|
1473
1475
|
const o = i.parseValueLiteral(!1);
|
|
1474
1476
|
return i.expectToken(A.EOF), o;
|
|
1475
1477
|
}
|
|
1476
|
-
class
|
|
1478
|
+
class Rv {
|
|
1477
1479
|
constructor(r, i = {}) {
|
|
1478
|
-
const o =
|
|
1479
|
-
this._lexer = new
|
|
1480
|
+
const o = Cv(r) ? r : new Qc(r);
|
|
1481
|
+
this._lexer = new hv(o), this._options = i, this._tokenCounter = 0;
|
|
1480
1482
|
}
|
|
1481
1483
|
/**
|
|
1482
1484
|
* Converts a name lex token into a name parse node.
|
|
@@ -2443,7 +2445,7 @@ class Lv {
|
|
|
2443
2445
|
* given parsed object.
|
|
2444
2446
|
*/
|
|
2445
2447
|
node(r, i) {
|
|
2446
|
-
return this._options.noLocation !== !0 && (i.loc = new
|
|
2448
|
+
return this._options.noLocation !== !0 && (i.loc = new ov(
|
|
2447
2449
|
r,
|
|
2448
2450
|
this._lexer.lastToken,
|
|
2449
2451
|
this._lexer.source
|
|
@@ -2579,10 +2581,10 @@ function Br(n) {
|
|
|
2579
2581
|
return Hc(n.kind) + (r != null ? ` "${r}"` : "");
|
|
2580
2582
|
}
|
|
2581
2583
|
function Hc(n) {
|
|
2582
|
-
return
|
|
2584
|
+
return dv(n) ? `"${n}"` : n;
|
|
2583
2585
|
}
|
|
2584
|
-
const
|
|
2585
|
-
function
|
|
2586
|
+
const Fv = 5;
|
|
2587
|
+
function Dv(n, r) {
|
|
2586
2588
|
const [i, o] = r ? [n, r] : [void 0, n];
|
|
2587
2589
|
let u = " Did you mean ";
|
|
2588
2590
|
i && (u += i + " ");
|
|
@@ -2595,7 +2597,7 @@ function Fv(n, r) {
|
|
|
2595
2597
|
case 2:
|
|
2596
2598
|
return u + f[0] + " or " + f[1] + "?";
|
|
2597
2599
|
}
|
|
2598
|
-
const g = f.slice(0,
|
|
2600
|
+
const g = f.slice(0, Fv), v = g.pop();
|
|
2599
2601
|
return u + g.join(", ") + ", or " + v + "?";
|
|
2600
2602
|
}
|
|
2601
2603
|
function Sc(n) {
|
|
@@ -2619,7 +2621,7 @@ function Qr(n, r) {
|
|
|
2619
2621
|
i[o] = r(n[o], o);
|
|
2620
2622
|
return i;
|
|
2621
2623
|
}
|
|
2622
|
-
function
|
|
2624
|
+
function Pv(n, r) {
|
|
2623
2625
|
let i = 0, o = 0;
|
|
2624
2626
|
for (; i < n.length && o < r.length; ) {
|
|
2625
2627
|
let u = n.charCodeAt(i), f = r.charCodeAt(o);
|
|
@@ -2646,22 +2648,22 @@ function Dv(n, r) {
|
|
|
2646
2648
|
}
|
|
2647
2649
|
return n.length - r.length;
|
|
2648
2650
|
}
|
|
2649
|
-
const La = 48,
|
|
2651
|
+
const La = 48, kv = 57;
|
|
2650
2652
|
function jr(n) {
|
|
2651
|
-
return !isNaN(n) && La <= n && n <=
|
|
2653
|
+
return !isNaN(n) && La <= n && n <= kv;
|
|
2652
2654
|
}
|
|
2653
|
-
function
|
|
2654
|
-
const i = /* @__PURE__ */ Object.create(null), o = new
|
|
2655
|
+
function Uv(n, r) {
|
|
2656
|
+
const i = /* @__PURE__ */ Object.create(null), o = new Mv(n), u = Math.floor(n.length * 0.4) + 1;
|
|
2655
2657
|
for (const f of r) {
|
|
2656
2658
|
const g = o.measure(f, u);
|
|
2657
2659
|
g !== void 0 && (i[f] = g);
|
|
2658
2660
|
}
|
|
2659
2661
|
return Object.keys(i).sort((f, g) => {
|
|
2660
2662
|
const v = i[f] - i[g];
|
|
2661
|
-
return v !== 0 ? v :
|
|
2663
|
+
return v !== 0 ? v : Pv(f, g);
|
|
2662
2664
|
});
|
|
2663
2665
|
}
|
|
2664
|
-
class
|
|
2666
|
+
class Mv {
|
|
2665
2667
|
constructor(r) {
|
|
2666
2668
|
this._input = r, this._inputLowerCase = r.toLowerCase(), this._inputArray = Ac(this._inputLowerCase), this._rows = [
|
|
2667
2669
|
new Array(r.length + 1).fill(0),
|
|
@@ -2728,14 +2730,14 @@ function vt(n) {
|
|
|
2728
2730
|
r[i] = o;
|
|
2729
2731
|
return r;
|
|
2730
2732
|
}
|
|
2731
|
-
function
|
|
2732
|
-
return `"${n.replace(
|
|
2733
|
+
function $v(n) {
|
|
2734
|
+
return `"${n.replace(Bv, jv)}"`;
|
|
2733
2735
|
}
|
|
2734
|
-
const
|
|
2735
|
-
function
|
|
2736
|
-
return
|
|
2736
|
+
const Bv = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
2737
|
+
function jv(n) {
|
|
2738
|
+
return Wv[n.charCodeAt(0)];
|
|
2737
2739
|
}
|
|
2738
|
-
const
|
|
2740
|
+
const Wv = [
|
|
2739
2741
|
"\\u0000",
|
|
2740
2742
|
"\\u0001",
|
|
2741
2743
|
"\\u0002",
|
|
@@ -2901,11 +2903,11 @@ const jv = [
|
|
|
2901
2903
|
"\\u009D",
|
|
2902
2904
|
"\\u009E",
|
|
2903
2905
|
"\\u009F"
|
|
2904
|
-
],
|
|
2905
|
-
function
|
|
2906
|
+
], Gv = Object.freeze({});
|
|
2907
|
+
function Vv(n, r, i = Wc) {
|
|
2906
2908
|
const o = /* @__PURE__ */ new Map();
|
|
2907
2909
|
for (const ge of Object.values(N))
|
|
2908
|
-
o.set(ge,
|
|
2910
|
+
o.set(ge, qv(r, ge));
|
|
2909
2911
|
let u, f = Array.isArray(n), g = [n], v = -1, w = [], b = n, O, D;
|
|
2910
2912
|
const P = [], M = [];
|
|
2911
2913
|
do {
|
|
@@ -2939,7 +2941,7 @@ function Gv(n, r, i = Wc) {
|
|
|
2939
2941
|
var $, de;
|
|
2940
2942
|
wc(b) || ue(!1, `Invalid AST Node: ${q(b)}.`);
|
|
2941
2943
|
const R = ge ? ($ = o.get(b.kind)) === null || $ === void 0 ? void 0 : $.leave : (de = o.get(b.kind)) === null || de === void 0 ? void 0 : de.enter;
|
|
2942
|
-
if (_e = R?.call(r, b, O, D, P, M), _e ===
|
|
2944
|
+
if (_e = R?.call(r, b, O, D, P, M), _e === Gv)
|
|
2943
2945
|
break;
|
|
2944
2946
|
if (_e === !1) {
|
|
2945
2947
|
if (!ge) {
|
|
@@ -2969,7 +2971,7 @@ function Gv(n, r, i = Wc) {
|
|
|
2969
2971
|
} while (u !== void 0);
|
|
2970
2972
|
return w.length !== 0 ? w[w.length - 1][1] : n;
|
|
2971
2973
|
}
|
|
2972
|
-
function
|
|
2974
|
+
function qv(n, r) {
|
|
2973
2975
|
const i = n[r];
|
|
2974
2976
|
return typeof i == "object" ? i : typeof i == "function" ? {
|
|
2975
2977
|
enter: i,
|
|
@@ -2980,9 +2982,9 @@ function Vv(n, r) {
|
|
|
2980
2982
|
};
|
|
2981
2983
|
}
|
|
2982
2984
|
function mt(n) {
|
|
2983
|
-
return
|
|
2985
|
+
return Vv(n, zv);
|
|
2984
2986
|
}
|
|
2985
|
-
const
|
|
2987
|
+
const Jv = 80, zv = {
|
|
2986
2988
|
Name: {
|
|
2987
2989
|
leave: (n) => n.value
|
|
2988
2990
|
},
|
|
@@ -3018,7 +3020,7 @@ const qv = 80, Jv = {
|
|
|
3018
3020
|
leave({ alias: n, name: r, arguments: i, directives: o, selectionSet: u }) {
|
|
3019
3021
|
const f = ne("", n, ": ") + r;
|
|
3020
3022
|
let g = f + ne("(", k(i, ", "), ")");
|
|
3021
|
-
return g.length >
|
|
3023
|
+
return g.length > Jv && (g = f + ne(`(
|
|
3022
3024
|
`, Vr(k(i, `
|
|
3023
3025
|
`)), `
|
|
3024
3026
|
)`)), k([g, k(o, " "), u], " ");
|
|
@@ -3056,7 +3058,7 @@ const qv = 80, Jv = {
|
|
|
3056
3058
|
leave: ({ value: n }) => n
|
|
3057
3059
|
},
|
|
3058
3060
|
StringValue: {
|
|
3059
|
-
leave: ({ value: n, block: r }) => r ?
|
|
3061
|
+
leave: ({ value: n, block: r }) => r ? pv(n) : $v(n)
|
|
3060
3062
|
},
|
|
3061
3063
|
BooleanValue: {
|
|
3062
3064
|
leave: ({ value: n }) => n ? "true" : "false"
|
|
@@ -3281,7 +3283,7 @@ function Ct(n) {
|
|
|
3281
3283
|
);
|
|
3282
3284
|
return n;
|
|
3283
3285
|
}
|
|
3284
|
-
function
|
|
3286
|
+
function Qv(n) {
|
|
3285
3287
|
if (n === "true" || n === "false" || n === "null")
|
|
3286
3288
|
throw new fe(`Enum values cannot be named: ${n}`);
|
|
3287
3289
|
return Ct(n);
|
|
@@ -3295,7 +3297,7 @@ function gi(n) {
|
|
|
3295
3297
|
function Xt(n) {
|
|
3296
3298
|
return Ut(n, En);
|
|
3297
3299
|
}
|
|
3298
|
-
function
|
|
3300
|
+
function Hv(n) {
|
|
3299
3301
|
if (!Xt(n))
|
|
3300
3302
|
throw new Error(`Expected ${q(n)} to be a GraphQL Object type.`);
|
|
3301
3303
|
return n;
|
|
@@ -3303,7 +3305,7 @@ function Qv(n) {
|
|
|
3303
3305
|
function dt(n) {
|
|
3304
3306
|
return Ut(n, cl);
|
|
3305
3307
|
}
|
|
3306
|
-
function
|
|
3308
|
+
function Yv(n) {
|
|
3307
3309
|
if (!dt(n))
|
|
3308
3310
|
throw new Error(
|
|
3309
3311
|
`Expected ${q(n)} to be a GraphQL Interface type.`
|
|
@@ -3334,7 +3336,7 @@ function Zc(n) {
|
|
|
3334
3336
|
function el(n) {
|
|
3335
3337
|
return gi(n) || Tn(n);
|
|
3336
3338
|
}
|
|
3337
|
-
function
|
|
3339
|
+
function Xv(n) {
|
|
3338
3340
|
return dt(n) || xn(n);
|
|
3339
3341
|
}
|
|
3340
3342
|
class ht {
|
|
@@ -3374,12 +3376,12 @@ function ka(n) {
|
|
|
3374
3376
|
function tl(n) {
|
|
3375
3377
|
return Xc(n) && !vn(n);
|
|
3376
3378
|
}
|
|
3377
|
-
function
|
|
3379
|
+
function Kv(n) {
|
|
3378
3380
|
if (!tl(n))
|
|
3379
3381
|
throw new Error(`Expected ${q(n)} to be a GraphQL nullable type.`);
|
|
3380
3382
|
return n;
|
|
3381
3383
|
}
|
|
3382
|
-
function
|
|
3384
|
+
function Zv(n) {
|
|
3383
3385
|
if (n) {
|
|
3384
3386
|
let r = n;
|
|
3385
3387
|
for (; ka(r); )
|
|
@@ -3587,7 +3589,7 @@ class cl {
|
|
|
3587
3589
|
class ll {
|
|
3588
3590
|
constructor(r) {
|
|
3589
3591
|
var i;
|
|
3590
|
-
this.name = Ct(r.name), this.description = r.description, this.resolveType = r.resolveType, this.extensions = vt(r.extensions), this.astNode = r.astNode, this.extensionASTNodes = (i = r.extensionASTNodes) !== null && i !== void 0 ? i : [], this._types =
|
|
3592
|
+
this.name = Ct(r.name), this.description = r.description, this.resolveType = r.resolveType, this.extensions = vt(r.extensions), this.astNode = r.astNode, this.extensionASTNodes = (i = r.extensionASTNodes) !== null && i !== void 0 ? i : [], this._types = e_.bind(void 0, r), r.resolveType == null || typeof r.resolveType == "function" || ue(
|
|
3591
3593
|
!1,
|
|
3592
3594
|
`${this.name} must provide "resolveType" as a function, but got: ${q(r.resolveType)}.`
|
|
3593
3595
|
);
|
|
@@ -3616,7 +3618,7 @@ class ll {
|
|
|
3616
3618
|
return this.toString();
|
|
3617
3619
|
}
|
|
3618
3620
|
}
|
|
3619
|
-
function
|
|
3621
|
+
function e_(n) {
|
|
3620
3622
|
const r = nl(n.types);
|
|
3621
3623
|
return Array.isArray(r) || ue(
|
|
3622
3624
|
!1,
|
|
@@ -3627,7 +3629,7 @@ class Hr {
|
|
|
3627
3629
|
/* <T> */
|
|
3628
3630
|
constructor(r) {
|
|
3629
3631
|
var i;
|
|
3630
|
-
this.name = Ct(r.name), this.description = r.description, this.extensions = vt(r.extensions), this.astNode = r.astNode, this.extensionASTNodes = (i = r.extensionASTNodes) !== null && i !== void 0 ? i : [], this._values =
|
|
3632
|
+
this.name = Ct(r.name), this.description = r.description, this.extensions = vt(r.extensions), this.astNode = r.astNode, this.extensionASTNodes = (i = r.extensionASTNodes) !== null && i !== void 0 ? i : [], this._values = t_(this.name, r.values), this._valueLookup = new Map(
|
|
3631
3633
|
this._values.map((o) => [o.value, o])
|
|
3632
3634
|
), this._nameLookup = Yc(this._values, (o) => o.name);
|
|
3633
3635
|
}
|
|
@@ -3713,10 +3715,10 @@ class Hr {
|
|
|
3713
3715
|
}
|
|
3714
3716
|
}
|
|
3715
3717
|
function Wr(n, r) {
|
|
3716
|
-
const i = n.getValues().map((u) => u.name), o =
|
|
3717
|
-
return
|
|
3718
|
+
const i = n.getValues().map((u) => u.name), o = Uv(r, i);
|
|
3719
|
+
return Dv("the enum value", o);
|
|
3718
3720
|
}
|
|
3719
|
-
function
|
|
3721
|
+
function t_(n, r) {
|
|
3720
3722
|
return fi(r) || ue(
|
|
3721
3723
|
!1,
|
|
3722
3724
|
`${n} values must be an object with value names as keys.`
|
|
@@ -3724,7 +3726,7 @@ function e_(n, r) {
|
|
|
3724
3726
|
!1,
|
|
3725
3727
|
`${n}.${i} must refer to an object with a "value" key representing an internal value but got: ${q(o)}.`
|
|
3726
3728
|
), {
|
|
3727
|
-
name:
|
|
3729
|
+
name: Qv(i),
|
|
3728
3730
|
description: o.description,
|
|
3729
3731
|
value: o.value !== void 0 ? o.value : i,
|
|
3730
3732
|
deprecationReason: o.deprecationReason,
|
|
@@ -3735,7 +3737,7 @@ function e_(n, r) {
|
|
|
3735
3737
|
class fl {
|
|
3736
3738
|
constructor(r) {
|
|
3737
3739
|
var i;
|
|
3738
|
-
this.name = Ct(r.name), this.description = r.description, this.extensions = vt(r.extensions), this.astNode = r.astNode, this.extensionASTNodes = (i = r.extensionASTNodes) !== null && i !== void 0 ? i : [], this._fields =
|
|
3740
|
+
this.name = Ct(r.name), this.description = r.description, this.extensions = vt(r.extensions), this.astNode = r.astNode, this.extensionASTNodes = (i = r.extensionASTNodes) !== null && i !== void 0 ? i : [], this._fields = n_.bind(void 0, r);
|
|
3739
3741
|
}
|
|
3740
3742
|
get [Symbol.toStringTag]() {
|
|
3741
3743
|
return "GraphQLInputObjectType";
|
|
@@ -3768,7 +3770,7 @@ class fl {
|
|
|
3768
3770
|
return this.toString();
|
|
3769
3771
|
}
|
|
3770
3772
|
}
|
|
3771
|
-
function
|
|
3773
|
+
function n_(n) {
|
|
3772
3774
|
const r = il(n.fields);
|
|
3773
3775
|
return fi(r) || ue(
|
|
3774
3776
|
!1,
|
|
@@ -3786,7 +3788,7 @@ function t_(n) {
|
|
|
3786
3788
|
astNode: i.astNode
|
|
3787
3789
|
}));
|
|
3788
3790
|
}
|
|
3789
|
-
const Sa = 2147483647, Aa = -2147483648,
|
|
3791
|
+
const Sa = 2147483647, Aa = -2147483648, i_ = new Wn({
|
|
3790
3792
|
name: "Int",
|
|
3791
3793
|
description: "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",
|
|
3792
3794
|
serialize(n) {
|
|
@@ -3833,7 +3835,7 @@ const Sa = 2147483647, Aa = -2147483648, n_ = new Wn({
|
|
|
3833
3835
|
);
|
|
3834
3836
|
return r;
|
|
3835
3837
|
}
|
|
3836
|
-
}),
|
|
3838
|
+
}), r_ = new Wn({
|
|
3837
3839
|
name: "Float",
|
|
3838
3840
|
description: "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",
|
|
3839
3841
|
serialize(n) {
|
|
@@ -3956,12 +3958,12 @@ const Sa = 2147483647, Aa = -2147483648, n_ = new Wn({
|
|
|
3956
3958
|
}
|
|
3957
3959
|
}), hl = Object.freeze([
|
|
3958
3960
|
be,
|
|
3959
|
-
n_,
|
|
3960
3961
|
i_,
|
|
3962
|
+
r_,
|
|
3961
3963
|
gt,
|
|
3962
3964
|
pl
|
|
3963
3965
|
]);
|
|
3964
|
-
function
|
|
3966
|
+
function s_(n) {
|
|
3965
3967
|
return hl.some(({ name: r }) => n.name === r);
|
|
3966
3968
|
}
|
|
3967
3969
|
function Vi(n) {
|
|
@@ -3976,7 +3978,7 @@ function Vi(n) {
|
|
|
3976
3978
|
}
|
|
3977
3979
|
return n;
|
|
3978
3980
|
}
|
|
3979
|
-
function
|
|
3981
|
+
function a_(n) {
|
|
3980
3982
|
return Ut(n, mi);
|
|
3981
3983
|
}
|
|
3982
3984
|
class mi {
|
|
@@ -4010,7 +4012,7 @@ class mi {
|
|
|
4010
4012
|
return this.toString();
|
|
4011
4013
|
}
|
|
4012
4014
|
}
|
|
4013
|
-
const
|
|
4015
|
+
const o_ = new mi({
|
|
4014
4016
|
name: "include",
|
|
4015
4017
|
description: "Directs the executor to include this field or fragment only when the `if` argument is true.",
|
|
4016
4018
|
locations: [
|
|
@@ -4024,7 +4026,7 @@ const a_ = new mi({
|
|
|
4024
4026
|
description: "Included when true."
|
|
4025
4027
|
}
|
|
4026
4028
|
}
|
|
4027
|
-
}),
|
|
4029
|
+
}), u_ = new mi({
|
|
4028
4030
|
name: "skip",
|
|
4029
4031
|
description: "Directs the executor to skip this field or fragment when the `if` argument is true.",
|
|
4030
4032
|
locations: [
|
|
@@ -4038,7 +4040,7 @@ const a_ = new mi({
|
|
|
4038
4040
|
description: "Skipped when true."
|
|
4039
4041
|
}
|
|
4040
4042
|
}
|
|
4041
|
-
}), dl = "No longer supported",
|
|
4043
|
+
}), dl = "No longer supported", c_ = new mi({
|
|
4042
4044
|
name: "deprecated",
|
|
4043
4045
|
description: "Marks an element of a GraphQL schema as no longer supported.",
|
|
4044
4046
|
locations: [
|
|
@@ -4054,7 +4056,7 @@ const a_ = new mi({
|
|
|
4054
4056
|
defaultValue: dl
|
|
4055
4057
|
}
|
|
4056
4058
|
}
|
|
4057
|
-
}),
|
|
4059
|
+
}), l_ = new mi({
|
|
4058
4060
|
name: "specifiedBy",
|
|
4059
4061
|
description: "Exposes a URL that specifies the behavior of this scalar.",
|
|
4060
4062
|
locations: [se.SCALAR],
|
|
@@ -4065,15 +4067,15 @@ const a_ = new mi({
|
|
|
4065
4067
|
}
|
|
4066
4068
|
}
|
|
4067
4069
|
}), gl = Object.freeze([
|
|
4068
|
-
a_,
|
|
4069
4070
|
o_,
|
|
4070
4071
|
u_,
|
|
4071
|
-
c_
|
|
4072
|
+
c_,
|
|
4073
|
+
l_
|
|
4072
4074
|
]);
|
|
4073
|
-
function
|
|
4075
|
+
function f_(n) {
|
|
4074
4076
|
return gl.some(({ name: r }) => r === n.name);
|
|
4075
4077
|
}
|
|
4076
|
-
function
|
|
4078
|
+
function p_(n) {
|
|
4077
4079
|
return typeof n == "object" && typeof n?.[Symbol.iterator] == "function";
|
|
4078
4080
|
}
|
|
4079
4081
|
function li(n, r) {
|
|
@@ -4089,7 +4091,7 @@ function li(n, r) {
|
|
|
4089
4091
|
return null;
|
|
4090
4092
|
if (Gi(r)) {
|
|
4091
4093
|
const i = r.ofType;
|
|
4092
|
-
if (
|
|
4094
|
+
if (p_(n)) {
|
|
4093
4095
|
const o = [];
|
|
4094
4096
|
for (const u of n) {
|
|
4095
4097
|
const f = li(u, i);
|
|
@@ -4380,7 +4382,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4380
4382
|
possibleTypes: {
|
|
4381
4383
|
type: new ht(new re(kt)),
|
|
4382
4384
|
resolve(n, r, i, { schema: o }) {
|
|
4383
|
-
if (
|
|
4385
|
+
if (Xv(n))
|
|
4384
4386
|
return o.getPossibleTypes(n);
|
|
4385
4387
|
}
|
|
4386
4388
|
},
|
|
@@ -4568,10 +4570,10 @@ const Tl = Object.freeze([
|
|
|
4568
4570
|
_l,
|
|
4569
4571
|
xl
|
|
4570
4572
|
]);
|
|
4571
|
-
function
|
|
4573
|
+
function h_(n) {
|
|
4572
4574
|
return Tl.some(({ name: r }) => n.name === r);
|
|
4573
4575
|
}
|
|
4574
|
-
class
|
|
4576
|
+
class d_ {
|
|
4575
4577
|
// Used as a cache for validateSchema().
|
|
4576
4578
|
constructor(r) {
|
|
4577
4579
|
var i, o;
|
|
@@ -4588,7 +4590,7 @@ class h_ {
|
|
|
4588
4590
|
u.delete(f), bt(f, u);
|
|
4589
4591
|
this._queryType != null && bt(this._queryType, u), this._mutationType != null && bt(this._mutationType, u), this._subscriptionType != null && bt(this._subscriptionType, u);
|
|
4590
4592
|
for (const f of this._directives)
|
|
4591
|
-
if (
|
|
4593
|
+
if (a_(f))
|
|
4592
4594
|
for (const g of f.args)
|
|
4593
4595
|
bt(g.type, u);
|
|
4594
4596
|
bt(Ua, u), this._typeMap = /* @__PURE__ */ Object.create(null), this._subTypeMap = /* @__PURE__ */ Object.create(null), this._implementationsMap = /* @__PURE__ */ Object.create(null);
|
|
@@ -4701,7 +4703,7 @@ class h_ {
|
|
|
4701
4703
|
}
|
|
4702
4704
|
}
|
|
4703
4705
|
function bt(n, r) {
|
|
4704
|
-
const i =
|
|
4706
|
+
const i = Zv(n);
|
|
4705
4707
|
if (!r.has(i)) {
|
|
4706
4708
|
if (r.add(i), xn(i))
|
|
4707
4709
|
for (const o of i.getTypes())
|
|
@@ -4785,7 +4787,7 @@ function Mi(n, r, i) {
|
|
|
4785
4787
|
function Nc(n, r) {
|
|
4786
4788
|
return n.kind === N.VARIABLE && r == null;
|
|
4787
4789
|
}
|
|
4788
|
-
function
|
|
4790
|
+
function g_(n) {
|
|
4789
4791
|
const r = {
|
|
4790
4792
|
descriptions: !0,
|
|
4791
4793
|
specifiedByUrl: !1,
|
|
@@ -4904,7 +4906,7 @@ function d_(n) {
|
|
|
4904
4906
|
}
|
|
4905
4907
|
`;
|
|
4906
4908
|
}
|
|
4907
|
-
function
|
|
4909
|
+
function m_(n, r) {
|
|
4908
4910
|
Kt(n) && Kt(n.__schema) || ue(
|
|
4909
4911
|
!1,
|
|
4910
4912
|
`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${q(
|
|
@@ -4919,7 +4921,7 @@ function g_(n, r) {
|
|
|
4919
4921
|
for (const x of [...hl, ...Tl])
|
|
4920
4922
|
o[x.name] && (o[x.name] = x);
|
|
4921
4923
|
const u = i.queryType ? O(i.queryType) : null, f = i.mutationType ? O(i.mutationType) : null, g = i.subscriptionType ? O(i.subscriptionType) : null, v = i.directives ? i.directives.map(Ve) : [];
|
|
4922
|
-
return new
|
|
4924
|
+
return new d_({
|
|
4923
4925
|
description: i.description,
|
|
4924
4926
|
query: u,
|
|
4925
4927
|
mutation: f,
|
|
@@ -4940,7 +4942,7 @@ function g_(n, r) {
|
|
|
4940
4942
|
if (!V)
|
|
4941
4943
|
throw new Error("Decorated type deeper than introspection query.");
|
|
4942
4944
|
const we = w(V);
|
|
4943
|
-
return new re(
|
|
4945
|
+
return new re(Kv(we));
|
|
4944
4946
|
}
|
|
4945
4947
|
return b(x);
|
|
4946
4948
|
}
|
|
@@ -4956,10 +4958,10 @@ function g_(n, r) {
|
|
|
4956
4958
|
return we;
|
|
4957
4959
|
}
|
|
4958
4960
|
function O(x) {
|
|
4959
|
-
return
|
|
4961
|
+
return Hv(b(x));
|
|
4960
4962
|
}
|
|
4961
4963
|
function D(x) {
|
|
4962
|
-
return
|
|
4964
|
+
return Yv(b(x));
|
|
4963
4965
|
}
|
|
4964
4966
|
function P(x) {
|
|
4965
4967
|
if (x != null && x.name != null && x.kind != null)
|
|
@@ -5109,7 +5111,7 @@ function g_(n, r) {
|
|
|
5109
5111
|
`Introspection must provide input type for arguments, but received: ${_t}.`
|
|
5110
5112
|
);
|
|
5111
5113
|
}
|
|
5112
|
-
const we = x.defaultValue != null ? Mi(
|
|
5114
|
+
const we = x.defaultValue != null ? Mi(Lv(x.defaultValue), V) : void 0;
|
|
5113
5115
|
return {
|
|
5114
5116
|
description: x.description,
|
|
5115
5117
|
type: V,
|
|
@@ -5139,28 +5141,28 @@ function g_(n, r) {
|
|
|
5139
5141
|
});
|
|
5140
5142
|
}
|
|
5141
5143
|
}
|
|
5142
|
-
function
|
|
5143
|
-
return
|
|
5144
|
+
function y_(n) {
|
|
5145
|
+
return __(
|
|
5144
5146
|
n,
|
|
5145
|
-
(r) => !
|
|
5146
|
-
|
|
5147
|
+
(r) => !f_(r),
|
|
5148
|
+
v_
|
|
5147
5149
|
);
|
|
5148
5150
|
}
|
|
5149
|
-
function
|
|
5150
|
-
return !
|
|
5151
|
+
function v_(n) {
|
|
5152
|
+
return !s_(n) && !h_(n);
|
|
5151
5153
|
}
|
|
5152
|
-
function
|
|
5154
|
+
function __(n, r, i) {
|
|
5153
5155
|
const o = n.getDirectives().filter(r), u = Object.values(n.getTypeMap()).filter(i);
|
|
5154
5156
|
return [
|
|
5155
|
-
|
|
5156
|
-
...o.map((f) =>
|
|
5157
|
-
...u.map((f) =>
|
|
5157
|
+
x_(n),
|
|
5158
|
+
...o.map((f) => O_(f)),
|
|
5159
|
+
...u.map((f) => w_(f))
|
|
5158
5160
|
].filter(Boolean).join(`
|
|
5159
5161
|
|
|
5160
5162
|
`);
|
|
5161
5163
|
}
|
|
5162
|
-
function
|
|
5163
|
-
if (n.description == null &&
|
|
5164
|
+
function x_(n) {
|
|
5165
|
+
if (n.description == null && T_(n))
|
|
5164
5166
|
return;
|
|
5165
5167
|
const r = [], i = n.getQueryType();
|
|
5166
5168
|
i && r.push(` query: ${i.name}`);
|
|
@@ -5172,7 +5174,7 @@ ${r.join(`
|
|
|
5172
5174
|
`)}
|
|
5173
5175
|
}`;
|
|
5174
5176
|
}
|
|
5175
|
-
function
|
|
5177
|
+
function T_(n) {
|
|
5176
5178
|
const r = n.getQueryType();
|
|
5177
5179
|
if (r && r.name !== "Query")
|
|
5178
5180
|
return !1;
|
|
@@ -5182,45 +5184,45 @@ function x_(n) {
|
|
|
5182
5184
|
const o = n.getSubscriptionType();
|
|
5183
5185
|
return !(o && o.name !== "Subscription");
|
|
5184
5186
|
}
|
|
5185
|
-
function
|
|
5187
|
+
function w_(n) {
|
|
5186
5188
|
if (gi(n))
|
|
5187
|
-
return w_(n);
|
|
5188
|
-
if (Xt(n))
|
|
5189
5189
|
return E_(n);
|
|
5190
|
-
if (
|
|
5190
|
+
if (Xt(n))
|
|
5191
5191
|
return S_(n);
|
|
5192
|
-
if (
|
|
5192
|
+
if (dt(n))
|
|
5193
5193
|
return A_(n);
|
|
5194
|
-
if (
|
|
5194
|
+
if (xn(n))
|
|
5195
5195
|
return I_(n);
|
|
5196
|
-
if (
|
|
5196
|
+
if (Tn(n))
|
|
5197
5197
|
return b_(n);
|
|
5198
|
+
if (wn(n))
|
|
5199
|
+
return N_(n);
|
|
5198
5200
|
Wi(!1, "Unexpected type: " + q(n));
|
|
5199
5201
|
}
|
|
5200
|
-
function
|
|
5201
|
-
return yt(n) + `scalar ${n.name}` +
|
|
5202
|
+
function E_(n) {
|
|
5203
|
+
return yt(n) + `scalar ${n.name}` + C_(n);
|
|
5202
5204
|
}
|
|
5203
5205
|
function wl(n) {
|
|
5204
5206
|
const r = n.getInterfaces();
|
|
5205
5207
|
return r.length ? " implements " + r.map((i) => i.name).join(" & ") : "";
|
|
5206
5208
|
}
|
|
5207
|
-
function
|
|
5209
|
+
function S_(n) {
|
|
5208
5210
|
return yt(n) + `type ${n.name}` + wl(n) + El(n);
|
|
5209
5211
|
}
|
|
5210
|
-
function
|
|
5212
|
+
function A_(n) {
|
|
5211
5213
|
return yt(n) + `interface ${n.name}` + wl(n) + El(n);
|
|
5212
5214
|
}
|
|
5213
|
-
function
|
|
5215
|
+
function I_(n) {
|
|
5214
5216
|
const r = n.getTypes(), i = r.length ? " = " + r.join(" | ") : "";
|
|
5215
5217
|
return yt(n) + "union " + n.name + i;
|
|
5216
5218
|
}
|
|
5217
|
-
function
|
|
5219
|
+
function b_(n) {
|
|
5218
5220
|
const r = n.getValues().map(
|
|
5219
5221
|
(i, o) => yt(i, " ", !o) + " " + i.name + $a(i.deprecationReason)
|
|
5220
5222
|
);
|
|
5221
5223
|
return yt(n) + `enum ${n.name}` + Ma(r);
|
|
5222
5224
|
}
|
|
5223
|
-
function
|
|
5225
|
+
function N_(n) {
|
|
5224
5226
|
const r = Object.values(n.getFields()).map(
|
|
5225
5227
|
(i, o) => yt(i, " ", !o) + " " + Fa(i)
|
|
5226
5228
|
);
|
|
@@ -5251,7 +5253,7 @@ function Fa(n) {
|
|
|
5251
5253
|
let i = n.name + ": " + String(n.type);
|
|
5252
5254
|
return r && (i += ` = ${mt(r)}`), i + $a(n.deprecationReason);
|
|
5253
5255
|
}
|
|
5254
|
-
function
|
|
5256
|
+
function O_(n) {
|
|
5255
5257
|
return yt(n) + "directive @" + n.name + Sl(n.args) + (n.isRepeatable ? " repeatable" : "") + " on " + n.locations.join(" | ");
|
|
5256
5258
|
}
|
|
5257
5259
|
function $a(n) {
|
|
@@ -5260,7 +5262,7 @@ function $a(n) {
|
|
|
5260
5262
|
value: n
|
|
5261
5263
|
})})` : " @deprecated";
|
|
5262
5264
|
}
|
|
5263
|
-
function
|
|
5265
|
+
function C_(n) {
|
|
5264
5266
|
return n.specifiedByURL == null ? "" : ` @specifiedBy(url: ${mt({
|
|
5265
5267
|
kind: N.STRING,
|
|
5266
5268
|
value: n.specifiedByURL
|
|
@@ -5273,7 +5275,7 @@ function yt(n, r = "", i = !0) {
|
|
|
5273
5275
|
const u = mt({
|
|
5274
5276
|
kind: N.STRING,
|
|
5275
5277
|
value: o,
|
|
5276
|
-
block:
|
|
5278
|
+
block: fv(o)
|
|
5277
5279
|
});
|
|
5278
5280
|
return (r && !i ? `
|
|
5279
5281
|
` + r : r) + u.replace(/\n/g, `
|
|
@@ -5484,7 +5486,7 @@ class Zt {
|
|
|
5484
5486
|
}
|
|
5485
5487
|
async getSchema() {
|
|
5486
5488
|
try {
|
|
5487
|
-
const r =
|
|
5489
|
+
const r = g_(), i = await this.client.post(
|
|
5488
5490
|
"/graphql",
|
|
5489
5491
|
{
|
|
5490
5492
|
query: r
|
|
@@ -5501,10 +5503,10 @@ class Zt {
|
|
|
5501
5503
|
success: !1,
|
|
5502
5504
|
error: `GraphQL introspection errors: ${JSON.stringify(i.data.errors)}`
|
|
5503
5505
|
};
|
|
5504
|
-
const o =
|
|
5506
|
+
const o = m_(i.data.data);
|
|
5505
5507
|
return {
|
|
5506
5508
|
success: !0,
|
|
5507
|
-
data:
|
|
5509
|
+
data: y_(o),
|
|
5508
5510
|
message: "Successfully load schema"
|
|
5509
5511
|
};
|
|
5510
5512
|
} catch (r) {
|
|
@@ -5653,7 +5655,7 @@ class Zt {
|
|
|
5653
5655
|
uploadApplicationFile(file: $file, applicationUniversalIdentifier: $applicationUniversalIdentifier, fileFolder: $fileFolder, filePath: $filePath)
|
|
5654
5656
|
{ path }
|
|
5655
5657
|
}
|
|
5656
|
-
`, O =
|
|
5658
|
+
`, O = Ry(o), D = JSON.stringify({
|
|
5657
5659
|
query: b,
|
|
5658
5660
|
variables: {
|
|
5659
5661
|
file: null,
|
|
@@ -5729,7 +5731,7 @@ class Zt {
|
|
|
5729
5731
|
}[i] || "application/octet-stream";
|
|
5730
5732
|
}
|
|
5731
5733
|
}
|
|
5732
|
-
class
|
|
5734
|
+
class L_ {
|
|
5733
5735
|
constructor(r) {
|
|
5734
5736
|
this.apiService = new Zt(), this.applicationUniversalIdentifier = r.applicationUniversalIdentifier, this.appPath = r.appPath;
|
|
5735
5737
|
}
|
|
@@ -5747,7 +5749,7 @@ class C_ {
|
|
|
5747
5749
|
}
|
|
5748
5750
|
}
|
|
5749
5751
|
var Al = /* @__PURE__ */ ((n) => (n.DefineApplication = "defineApplication", n.DefineField = "defineField", n.DefineLogicFunction = "defineLogicFunction", n.DefineObject = "defineObject", n.DefineRole = "defineRole", n.DefineFrontComponent = "defineFrontComponent", n))(Al || {}), gn = /* @__PURE__ */ ((n) => (n.Application = "application", n.Fields = "fields", n.LogicFunctions = "logicFunctions", n.Objects = "objects", n.Roles = "roles", n.FrontComponents = "frontComponents", n.PublicAssets = "publicAssets", n))(gn || {});
|
|
5750
|
-
const
|
|
5752
|
+
const R_ = {
|
|
5751
5753
|
defineApplication: "application",
|
|
5752
5754
|
defineField: "fields",
|
|
5753
5755
|
defineLogicFunction: "logicFunctions",
|
|
@@ -5755,13 +5757,13 @@ const L_ = {
|
|
|
5755
5757
|
defineRole: "roles",
|
|
5756
5758
|
defineFrontComponent: "frontComponents"
|
|
5757
5759
|
/* FrontComponents */
|
|
5758
|
-
},
|
|
5760
|
+
}, F_ = (n) => {
|
|
5759
5761
|
if (!ci.isCallExpression(n))
|
|
5760
5762
|
return;
|
|
5761
5763
|
const r = n.expression;
|
|
5762
5764
|
if (ci.isIdentifier(r) && Object.values(Al).includes(r.text))
|
|
5763
5765
|
return r.text;
|
|
5764
|
-
},
|
|
5766
|
+
}, D_ = (n) => {
|
|
5765
5767
|
const r = ci.createSourceFile(
|
|
5766
5768
|
"temp.ts",
|
|
5767
5769
|
n,
|
|
@@ -5775,7 +5777,7 @@ const L_ = {
|
|
|
5775
5777
|
if (ci.isExportAssignment(o)) {
|
|
5776
5778
|
if (o.isExportEquals || !o.expression)
|
|
5777
5779
|
return;
|
|
5778
|
-
const u =
|
|
5780
|
+
const u = F_(o.expression);
|
|
5779
5781
|
if (u)
|
|
5780
5782
|
return u;
|
|
5781
5783
|
}
|
|
@@ -5783,9 +5785,9 @@ const L_ = {
|
|
|
5783
5785
|
filePath: n,
|
|
5784
5786
|
appPath: r
|
|
5785
5787
|
}) => {
|
|
5786
|
-
const i = await
|
|
5787
|
-
return
|
|
5788
|
-
},
|
|
5788
|
+
const i = await P_({ filePath: n, appPath: r });
|
|
5789
|
+
return k_(i, n);
|
|
5790
|
+
}, P_ = async ({
|
|
5789
5791
|
filePath: n,
|
|
5790
5792
|
appPath: r
|
|
5791
5793
|
}) => {
|
|
@@ -5815,21 +5817,21 @@ const L_ = {
|
|
|
5815
5817
|
} finally {
|
|
5816
5818
|
await he.remove(b);
|
|
5817
5819
|
}
|
|
5818
|
-
},
|
|
5819
|
-
if (ji(n.default) &&
|
|
5820
|
+
}, k_ = (n, r) => {
|
|
5821
|
+
if (ji(n.default) && Fy(n.default))
|
|
5820
5822
|
return n.default;
|
|
5821
5823
|
throw new Error(
|
|
5822
5824
|
`Config file ${r} must export a config object default export`
|
|
5823
5825
|
);
|
|
5824
|
-
},
|
|
5826
|
+
}, U_ = async (n) => await Mc(["**/*.ts", "**/*.tsx"], {
|
|
5825
5827
|
cwd: n,
|
|
5826
5828
|
absolute: !0,
|
|
5827
5829
|
ignore: ["**/node_modules/**", "**/*.d.ts", "**/dist/**", "**/.twenty/**"],
|
|
5828
5830
|
onlyFiles: !0
|
|
5829
|
-
}),
|
|
5831
|
+
}), M_ = async (n) => await Mc([`${Da}/**/*`], {
|
|
5830
5832
|
cwd: n,
|
|
5831
5833
|
onlyFiles: !0
|
|
5832
|
-
}),
|
|
5834
|
+
}), $_ = async (n, r) => {
|
|
5833
5835
|
const i = {};
|
|
5834
5836
|
for (const o of r) {
|
|
5835
5837
|
const f = Ot(n, o).split(fy), g = await he.readFile(o, "utf8");
|
|
@@ -5841,14 +5843,14 @@ const L_ = {
|
|
|
5841
5843
|
}
|
|
5842
5844
|
return i;
|
|
5843
5845
|
}, Xr = async (n) => {
|
|
5844
|
-
const r = await
|
|
5846
|
+
const r = await U_(n), i = [];
|
|
5845
5847
|
let o;
|
|
5846
5848
|
const u = [], f = [], g = [], v = [], w = [], b = [], O = [], D = [], P = [], M = [], $ = [], de = [], ae = [];
|
|
5847
5849
|
for (const R of r) {
|
|
5848
|
-
const ee = await dy(R, "utf-8"), H = Ot(n, R), ce =
|
|
5850
|
+
const ee = await dy(R, "utf-8"), H = Ot(n, R), ce = D_(ee);
|
|
5849
5851
|
if (!ce)
|
|
5850
5852
|
continue;
|
|
5851
|
-
switch (
|
|
5853
|
+
switch (R_[ce]) {
|
|
5852
5854
|
case gn.Application: {
|
|
5853
5855
|
const x = await ui({
|
|
5854
5856
|
appPath: n,
|
|
@@ -5923,7 +5925,7 @@ const L_ = {
|
|
|
5923
5925
|
Dc();
|
|
5924
5926
|
}
|
|
5925
5927
|
}
|
|
5926
|
-
const ge = await
|
|
5928
|
+
const ge = await M_(n);
|
|
5927
5929
|
for (const R of ge)
|
|
5928
5930
|
b.push({
|
|
5929
5931
|
filePath: R,
|
|
@@ -5941,7 +5943,7 @@ const L_ = {
|
|
|
5941
5943
|
logicFunctions: v,
|
|
5942
5944
|
frontComponents: w,
|
|
5943
5945
|
publicAssets: b,
|
|
5944
|
-
sources: await
|
|
5946
|
+
sources: await $_(n, r)
|
|
5945
5947
|
} : null, filePaths: {
|
|
5946
5948
|
application: O,
|
|
5947
5949
|
objects: D,
|
|
@@ -5951,7 +5953,7 @@ const L_ = {
|
|
|
5951
5953
|
frontComponents: de,
|
|
5952
5954
|
publicAssets: ae
|
|
5953
5955
|
}, errors: i };
|
|
5954
|
-
},
|
|
5956
|
+
}, B_ = (n) => {
|
|
5955
5957
|
const r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
|
|
5956
5958
|
for (const o of n)
|
|
5957
5959
|
r.has(o) ? i.add(o) : r.add(o);
|
|
@@ -5963,11 +5965,11 @@ const L_ = {
|
|
|
5963
5965
|
for (const [i, o] of Object.entries(n))
|
|
5964
5966
|
i === "universalIdentifier" && typeof o == "string" && r.push(o), typeof o == "object" && r.push(...Il(o));
|
|
5965
5967
|
return r;
|
|
5966
|
-
},
|
|
5967
|
-
const r = [], i = [], o =
|
|
5968
|
+
}, j_ = (n) => {
|
|
5969
|
+
const r = [], i = [], o = B_(Il(n));
|
|
5968
5970
|
return o.length > 0 && r.push(`Duplicate universal identifiers: ${o.join(", ")}`), wa(n.objects) || i.push("No object defined"), wa(n.logicFunctions) || i.push("No logic function defined"), wa(n.frontComponents) || i.push("No front component defined"), { errors: r, warnings: i, isValid: r.length === 0 };
|
|
5969
5971
|
};
|
|
5970
|
-
class
|
|
5972
|
+
class W_ {
|
|
5971
5973
|
constructor(r) {
|
|
5972
5974
|
this.builtFileInfos = /* @__PURE__ */ new Map(), this.fileUploader = null, this.apiService = new Zt({ disableInterceptors: !0 }), this.activeUploads = /* @__PURE__ */ new Set(), this.syncTimer = null, this.isSyncing = !1, this.serverReady = !1, this.serverErrorLogged = !1, this.appPath = r.appPath, this.debounceMs = r.debounceMs ?? 200, this.handleManifestBuilt = r.handleManifestBuilt, this.uiStateManager = r.uiStateManager;
|
|
5973
5975
|
}
|
|
@@ -6085,7 +6087,7 @@ class j_ {
|
|
|
6085
6087
|
});
|
|
6086
6088
|
return;
|
|
6087
6089
|
}
|
|
6088
|
-
const i =
|
|
6090
|
+
const i = j_(r.manifest);
|
|
6089
6091
|
if (!i.isValid) {
|
|
6090
6092
|
for (const f of i.errors)
|
|
6091
6093
|
this.uiStateManager.addEvent({
|
|
@@ -6146,7 +6148,7 @@ class j_ {
|
|
|
6146
6148
|
return;
|
|
6147
6149
|
}
|
|
6148
6150
|
}
|
|
6149
|
-
this.fileUploader = new
|
|
6151
|
+
this.fileUploader = new L_({
|
|
6150
6152
|
appPath: this.appPath,
|
|
6151
6153
|
applicationUniversalIdentifier: r.manifest.application.universalIdentifier
|
|
6152
6154
|
});
|
|
@@ -6158,14 +6160,14 @@ class j_ {
|
|
|
6158
6160
|
}
|
|
6159
6161
|
for (; this.activeUploads.size > 0; )
|
|
6160
6162
|
await Promise.all(this.activeUploads);
|
|
6161
|
-
const o =
|
|
6163
|
+
const o = nv({
|
|
6162
6164
|
manifest: r.manifest,
|
|
6163
6165
|
builtFileInfos: this.builtFileInfos
|
|
6164
6166
|
});
|
|
6165
6167
|
this.uiStateManager.addEvent({
|
|
6166
6168
|
message: "Manifest checksums set",
|
|
6167
6169
|
status: "info"
|
|
6168
|
-
}), await
|
|
6170
|
+
}), await iv(this.appPath, o), this.uiStateManager.addEvent({
|
|
6169
6171
|
message: "Manifest saved to output directory",
|
|
6170
6172
|
status: "info"
|
|
6171
6173
|
}), this.uiStateManager.addEvent({
|
|
@@ -6199,13 +6201,13 @@ class j_ {
|
|
|
6199
6201
|
}
|
|
6200
6202
|
}
|
|
6201
6203
|
}
|
|
6202
|
-
const
|
|
6204
|
+
const G_ = {
|
|
6203
6205
|
pending: ["building", "uploading", "success"],
|
|
6204
6206
|
building: ["pending", "uploading", "success"],
|
|
6205
6207
|
uploading: ["pending", "success"],
|
|
6206
6208
|
success: ["pending", "building", "uploading"]
|
|
6207
6209
|
};
|
|
6208
|
-
class
|
|
6210
|
+
class V_ {
|
|
6209
6211
|
constructor({
|
|
6210
6212
|
appPath: r,
|
|
6211
6213
|
frontendUrl: i
|
|
@@ -6309,7 +6311,7 @@ class G_ {
|
|
|
6309
6311
|
}
|
|
6310
6312
|
updateFileStatus(r, i) {
|
|
6311
6313
|
const o = new Map(this.state.entities), u = o.get(r);
|
|
6312
|
-
u?.status && !
|
|
6314
|
+
u?.status && !G_[u.status].find(
|
|
6313
6315
|
(f) => f === i
|
|
6314
6316
|
) || (o.set(
|
|
6315
6317
|
r,
|
|
@@ -6335,12 +6337,12 @@ const Ia = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"
|
|
|
6335
6337
|
[Re.LogicFunction]: "Logic functions",
|
|
6336
6338
|
[Re.FrontComponent]: "Front components",
|
|
6337
6339
|
[Re.Role]: "Roles"
|
|
6338
|
-
}, Nl = Object.keys(bl),
|
|
6340
|
+
}, Nl = Object.keys(bl), q_ = {
|
|
6339
6341
|
info: "gray",
|
|
6340
6342
|
success: "green",
|
|
6341
6343
|
error: "red",
|
|
6342
6344
|
warning: "yellow"
|
|
6343
|
-
},
|
|
6345
|
+
}, J_ = (n) => {
|
|
6344
6346
|
const r = /* @__PURE__ */ new Map();
|
|
6345
6347
|
for (const i of Nl)
|
|
6346
6348
|
r.set(i, []);
|
|
@@ -6351,16 +6353,16 @@ const Ia = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"
|
|
|
6351
6353
|
o.push(i), r.set(i.type, o);
|
|
6352
6354
|
}
|
|
6353
6355
|
return r;
|
|
6354
|
-
},
|
|
6356
|
+
}, z_ = (n) => n.toLocaleTimeString("en-US", {
|
|
6355
6357
|
hour12: !1,
|
|
6356
6358
|
hour: "2-digit",
|
|
6357
6359
|
minute: "2-digit",
|
|
6358
6360
|
second: "2-digit"
|
|
6359
|
-
}),
|
|
6361
|
+
}), Q_ = (n, r = 40) => {
|
|
6360
6362
|
if (n.length <= r) return n;
|
|
6361
6363
|
const i = n.split("/");
|
|
6362
6364
|
return i.length <= 2 ? n : `.../${i.slice(-2).join("/")}`;
|
|
6363
|
-
},
|
|
6365
|
+
}, H_ = (n) => !n.frontendUrl || !n.appUniversalIdentifier ? null : `${n.frontendUrl}/settings/applications`, Y_ = async (n) => {
|
|
6364
6366
|
const [r, i] = await Promise.all([import("react"), import("ink")]), { useState: o, useEffect: u } = r, { render: f, Box: g, Text: v, Static: w } = i, b = (R, ee = 80) => {
|
|
6365
6367
|
const [H, ce] = o(0);
|
|
6366
6368
|
return u(() => {
|
|
@@ -6370,7 +6372,7 @@ const Ia = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"
|
|
|
6370
6372
|
return () => clearInterval(Ve);
|
|
6371
6373
|
}, [R.length, ee]), R[H];
|
|
6372
6374
|
}, O = ({ event: R }) => {
|
|
6373
|
-
const ee =
|
|
6375
|
+
const ee = q_[R.status], H = z_(R.timestamp);
|
|
6374
6376
|
return /* @__PURE__ */ Q.jsxs(g, { children: [
|
|
6375
6377
|
/* @__PURE__ */ Q.jsxs(v, { dimColor: !0, children: [
|
|
6376
6378
|
H,
|
|
@@ -6398,7 +6400,7 @@ const Ia = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"
|
|
|
6398
6400
|
/* @__PURE__ */ Q.jsx(v, { children: R.name }),
|
|
6399
6401
|
R.path !== R.name && /* @__PURE__ */ Q.jsxs(v, { dimColor: !0, children: [
|
|
6400
6402
|
" (",
|
|
6401
|
-
|
|
6403
|
+
Q_(R.path),
|
|
6402
6404
|
")"
|
|
6403
6405
|
] })
|
|
6404
6406
|
] }), M = ({
|
|
@@ -6425,7 +6427,7 @@ const Ia = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"
|
|
|
6425
6427
|
}, ae = ({
|
|
6426
6428
|
snapshot: R
|
|
6427
6429
|
}) => {
|
|
6428
|
-
const ee =
|
|
6430
|
+
const ee = J_(R.entities), H = H_(R);
|
|
6429
6431
|
return /* @__PURE__ */ Q.jsxs(
|
|
6430
6432
|
g,
|
|
6431
6433
|
{
|
|
@@ -6531,17 +6533,17 @@ class Cc {
|
|
|
6531
6533
|
await he.remove(u);
|
|
6532
6534
|
}
|
|
6533
6535
|
}
|
|
6534
|
-
class
|
|
6536
|
+
class X_ {
|
|
6535
6537
|
constructor() {
|
|
6536
6538
|
this.appPath = "", this.orchestrator = null, this.manifestWatcher = null, this.logicFunctionsWatcher = null, this.frontComponentsWatcher = null, this.assetWatcher = null, this.dependencyWatcher = null, this.watchersStarted = !1, this.uiStateManager = null, this.unmountUI = null;
|
|
6537
6539
|
}
|
|
6538
6540
|
async execute(r) {
|
|
6539
|
-
this.appPath = r.appPath ?? Yt, await this.cleanOutputDir(), this.uiStateManager = new
|
|
6541
|
+
this.appPath = r.appPath ?? Yt, await this.cleanOutputDir(), this.uiStateManager = new V_({
|
|
6540
6542
|
appPath: this.appPath,
|
|
6541
6543
|
frontendUrl: process.env.FRONTEND_URL
|
|
6542
6544
|
});
|
|
6543
|
-
const { unmount: i } = await
|
|
6544
|
-
this.unmountUI = i, this.orchestrator = new
|
|
6545
|
+
const { unmount: i } = await Y_(this.uiStateManager);
|
|
6546
|
+
this.unmountUI = i, this.orchestrator = new W_({
|
|
6545
6547
|
appPath: this.appPath,
|
|
6546
6548
|
handleManifestBuilt: this.handleWatcherRestarts.bind(this),
|
|
6547
6549
|
uiStateManager: this.uiStateManager
|
|
@@ -6552,7 +6554,7 @@ class Y_ {
|
|
|
6552
6554
|
await he.ensureDir(r), await he.emptyDir(r);
|
|
6553
6555
|
}
|
|
6554
6556
|
async startManifestWatcher() {
|
|
6555
|
-
this.manifestWatcher = new
|
|
6557
|
+
this.manifestWatcher = new tv({
|
|
6556
6558
|
appPath: this.appPath,
|
|
6557
6559
|
handleChangeDetected: this.orchestrator.handleChangeDetected.bind(
|
|
6558
6560
|
this.orchestrator
|
|
@@ -6576,7 +6578,7 @@ class Y_ {
|
|
|
6576
6578
|
]);
|
|
6577
6579
|
}
|
|
6578
6580
|
async startLogicFunctionsWatcher(r) {
|
|
6579
|
-
this.logicFunctionsWatcher =
|
|
6581
|
+
this.logicFunctionsWatcher = Zy({
|
|
6580
6582
|
appPath: this.appPath,
|
|
6581
6583
|
sourcePaths: r,
|
|
6582
6584
|
handleBuildError: this.orchestrator.handleFileBuildError.bind(
|
|
@@ -6588,7 +6590,7 @@ class Y_ {
|
|
|
6588
6590
|
}), await this.logicFunctionsWatcher.start();
|
|
6589
6591
|
}
|
|
6590
6592
|
async startFrontComponentsWatcher(r) {
|
|
6591
|
-
this.frontComponentsWatcher =
|
|
6593
|
+
this.frontComponentsWatcher = ev({
|
|
6592
6594
|
appPath: this.appPath,
|
|
6593
6595
|
sourcePaths: r,
|
|
6594
6596
|
handleBuildError: this.orchestrator.handleFileBuildError.bind(
|
|
@@ -6632,13 +6634,13 @@ class Y_ {
|
|
|
6632
6634
|
process.on("SIGINT", () => void r()), process.on("SIGTERM", () => void r());
|
|
6633
6635
|
}
|
|
6634
6636
|
}
|
|
6635
|
-
const
|
|
6636
|
-
class
|
|
6637
|
+
const K_ = "generated";
|
|
6638
|
+
class Z_ {
|
|
6637
6639
|
constructor() {
|
|
6638
6640
|
this.configService = new Be(), this.apiService = new Zt();
|
|
6639
6641
|
}
|
|
6640
6642
|
async generate(r) {
|
|
6641
|
-
const i = Nt(r,
|
|
6643
|
+
const i = Nt(r, K_);
|
|
6642
6644
|
console.log(C.blue("📦 Generating Twenty client...")), console.log(C.gray(`📁 Output Path: ${i}`)), console.log("");
|
|
6643
6645
|
const o = await this.configService.getConfig(), u = o.apiUrl, f = o.apiKey;
|
|
6644
6646
|
if (!u || !f) {
|
|
@@ -6654,7 +6656,7 @@ class K_ {
|
|
|
6654
6656
|
if (!g.success)
|
|
6655
6657
|
return;
|
|
6656
6658
|
const { data: v } = g, w = hy(i);
|
|
6657
|
-
await
|
|
6659
|
+
await Sy({
|
|
6658
6660
|
schema: v,
|
|
6659
6661
|
output: w,
|
|
6660
6662
|
scalarTypes: {
|
|
@@ -6672,10 +6674,10 @@ class K_ {
|
|
|
6672
6674
|
// ----------------------------------------------------
|
|
6673
6675
|
|
|
6674
6676
|
const defaultOptions: ClientOptions = {
|
|
6675
|
-
url: \`\${process.env.${
|
|
6677
|
+
url: \`\${process.env.${Yy}}/graphql\`,
|
|
6676
6678
|
headers: {
|
|
6677
6679
|
'Content-Type': 'application/json',
|
|
6678
|
-
Authorization: \`Bearer \${process.env.${
|
|
6680
|
+
Authorization: \`Bearer \${process.env.${Hy}}\`,
|
|
6679
6681
|
},
|
|
6680
6682
|
}
|
|
6681
6683
|
|
|
@@ -6747,9 +6749,9 @@ export default class Twenty {
|
|
|
6747
6749
|
await he.appendFile(Nt(r, "index.ts"), i);
|
|
6748
6750
|
}
|
|
6749
6751
|
}
|
|
6750
|
-
class
|
|
6752
|
+
class ex {
|
|
6751
6753
|
constructor() {
|
|
6752
|
-
this.clientService = new
|
|
6754
|
+
this.clientService = new Z_();
|
|
6753
6755
|
}
|
|
6754
6756
|
async execute(r = Yt) {
|
|
6755
6757
|
try {
|
|
@@ -6762,7 +6764,7 @@ class Z_ {
|
|
|
6762
6764
|
}
|
|
6763
6765
|
}
|
|
6764
6766
|
}
|
|
6765
|
-
class
|
|
6767
|
+
class tx {
|
|
6766
6768
|
constructor() {
|
|
6767
6769
|
this.apiService = new Zt();
|
|
6768
6770
|
}
|
|
@@ -6798,7 +6800,7 @@ class ex {
|
|
|
6798
6800
|
return r;
|
|
6799
6801
|
}
|
|
6800
6802
|
}
|
|
6801
|
-
class
|
|
6803
|
+
class nx {
|
|
6802
6804
|
constructor() {
|
|
6803
6805
|
this.configService = new Be();
|
|
6804
6806
|
}
|
|
@@ -6830,7 +6832,7 @@ class tx {
|
|
|
6830
6832
|
}
|
|
6831
6833
|
}
|
|
6832
6834
|
}
|
|
6833
|
-
class
|
|
6835
|
+
class ix {
|
|
6834
6836
|
constructor() {
|
|
6835
6837
|
this.configService = new Be(), this.apiService = new Zt();
|
|
6836
6838
|
}
|
|
@@ -6882,7 +6884,7 @@ class nx {
|
|
|
6882
6884
|
}
|
|
6883
6885
|
}
|
|
6884
6886
|
}
|
|
6885
|
-
class
|
|
6887
|
+
class rx {
|
|
6886
6888
|
constructor() {
|
|
6887
6889
|
this.configService = new Be();
|
|
6888
6890
|
}
|
|
@@ -6903,7 +6905,7 @@ class ix {
|
|
|
6903
6905
|
}
|
|
6904
6906
|
}
|
|
6905
6907
|
}
|
|
6906
|
-
class
|
|
6908
|
+
class sx {
|
|
6907
6909
|
constructor() {
|
|
6908
6910
|
this.configService = new Be(), this.apiService = new Zt();
|
|
6909
6911
|
}
|
|
@@ -6927,7 +6929,7 @@ class rx {
|
|
|
6927
6929
|
}
|
|
6928
6930
|
}
|
|
6929
6931
|
}
|
|
6930
|
-
class
|
|
6932
|
+
class ax {
|
|
6931
6933
|
constructor() {
|
|
6932
6934
|
this.apiService = new Zt();
|
|
6933
6935
|
}
|
|
@@ -7002,7 +7004,7 @@ class sx {
|
|
|
7002
7004
|
);
|
|
7003
7005
|
}
|
|
7004
7006
|
}
|
|
7005
|
-
class
|
|
7007
|
+
class ox {
|
|
7006
7008
|
constructor() {
|
|
7007
7009
|
this.apiService = new Zt();
|
|
7008
7010
|
}
|
|
@@ -7040,7 +7042,7 @@ class ax {
|
|
|
7040
7042
|
), console.log("");
|
|
7041
7043
|
}
|
|
7042
7044
|
}
|
|
7043
|
-
class
|
|
7045
|
+
class ux {
|
|
7044
7046
|
constructor() {
|
|
7045
7047
|
this.configService = new Be(), this.apiService = new Zt();
|
|
7046
7048
|
}
|
|
@@ -7103,7 +7105,7 @@ class ox {
|
|
|
7103
7105
|
}
|
|
7104
7106
|
}
|
|
7105
7107
|
var ba, Lc;
|
|
7106
|
-
function
|
|
7108
|
+
function cx() {
|
|
7107
7109
|
if (Lc) return ba;
|
|
7108
7110
|
Lc = 1;
|
|
7109
7111
|
var n = "[object Symbol]", r = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, i = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, o = "\\ud800-\\udfff", u = "\\u0300-\\u036f\\ufe20-\\ufe23", f = "\\u20d0-\\u20f0", g = "\\u2700-\\u27bf", v = "a-z\\xdf-\\xf6\\xf8-\\xff", w = "\\xac\\xb1\\xd7\\xf7", b = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", O = "\\u2000-\\u206f", D = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", P = "A-Z\\xc0-\\xd6\\xd8-\\xde", M = "\\ufe0e\\ufe0f", $ = w + b + O + D, de = "['’]", ae = "[" + $ + "]", ge = "[" + u + f + "]", He = "\\d+", _e = "[" + g + "]", R = "[" + v + "]", ee = "[^" + o + $ + He + g + v + P + "]", H = "\\ud83c[\\udffb-\\udfff]", ce = "(?:" + ge + "|" + H + ")", Ve = "[^" + o + "]", x = "(?:\\ud83c[\\udde6-\\uddff]){2}", V = "[\\ud800-\\udbff][\\udc00-\\udfff]", we = "[" + P + "]", _t = "\\u200d", en = "(?:" + R + "|" + ee + ")", qi = "(?:" + we + "|" + ee + ")", Ji = "(?:" + de + "(?:d|ll|m|re|s|t|ve))?", zi = "(?:" + de + "(?:D|LL|M|RE|S|T|VE))?", Lt = ce + "?", xt = "[" + M + "]?", Kr = "(?:" + _t + "(?:" + [Ve, x, V].join("|") + ")" + xt + Lt + ")*", Gn = xt + Lt + Kr, rt = "(?:" + [_e, x, V].join("|") + ")" + Gn, Zr = RegExp(de, "g"), es = RegExp(ge, "g"), ts = RegExp([
|
|
@@ -7361,8 +7363,8 @@ function ux() {
|
|
|
7361
7363
|
}
|
|
7362
7364
|
return ba = Nn, ba;
|
|
7363
7365
|
}
|
|
7364
|
-
var
|
|
7365
|
-
const pi = /* @__PURE__ */
|
|
7366
|
+
var lx = cx();
|
|
7367
|
+
const pi = /* @__PURE__ */ Ey(lx), fx = ({
|
|
7366
7368
|
name: n,
|
|
7367
7369
|
universalIdentifier: r = hi()
|
|
7368
7370
|
}) => {
|
|
@@ -7386,7 +7388,7 @@ export default defineFrontComponent({
|
|
|
7386
7388
|
component: Component,
|
|
7387
7389
|
});
|
|
7388
7390
|
`;
|
|
7389
|
-
},
|
|
7391
|
+
}, px = ({
|
|
7390
7392
|
name: n,
|
|
7391
7393
|
universalIdentifier: r = hi()
|
|
7392
7394
|
}) => {
|
|
@@ -7447,8 +7449,8 @@ var $i = { exports: {} };
|
|
|
7447
7449
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7448
7450
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
7449
7451
|
*/
|
|
7450
|
-
var
|
|
7451
|
-
function
|
|
7452
|
+
var hx = $i.exports, Rc;
|
|
7453
|
+
function dx() {
|
|
7452
7454
|
return Rc || (Rc = 1, function(n, r) {
|
|
7453
7455
|
(function() {
|
|
7454
7456
|
var i, o = "4.17.21", u = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", g = "Expected a function", v = "Invalid `variable` option passed into `_.template`", w = "__lodash_hash_undefined__", b = 500, O = "__lodash_placeholder__", D = 1, P = 2, M = 4, $ = 1, de = 2, ae = 1, ge = 2, He = 4, _e = 8, R = 16, ee = 32, H = 64, ce = 128, Ve = 256, x = 512, V = 30, we = "...", _t = 800, en = 16, qi = 1, Ji = 2, zi = 3, Lt = 1 / 0, xt = 9007199254740991, Kr = 17976931348623157e292, Gn = NaN, rt = 4294967295, Zr = rt - 1, es = rt >>> 1, ts = [
|
|
@@ -11108,14 +11110,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
11108
11110
|
}], te.prototype.clone = wp, te.prototype.reverse = Ep, te.prototype.value = Sp, l.prototype.at = Zd, l.prototype.chain = eg, l.prototype.commit = tg, l.prototype.next = ng, l.prototype.plant = rg, l.prototype.reverse = sg, l.prototype.toJSON = l.prototype.valueOf = l.prototype.value = ag, l.prototype.first = l.prototype.head, Ti && (l.prototype[Ti] = ig), l;
|
|
11109
11111
|
}, Kn = tp();
|
|
11110
11112
|
Cn ? ((Cn.exports = Kn)._ = Kn, ys._ = Kn) : ke._ = Kn;
|
|
11111
|
-
}).call(
|
|
11113
|
+
}).call(hx);
|
|
11112
11114
|
}($i, $i.exports)), $i.exports;
|
|
11113
11115
|
}
|
|
11114
|
-
var
|
|
11116
|
+
var gx = dx();
|
|
11115
11117
|
const Na = (n) => {
|
|
11116
|
-
const r =
|
|
11118
|
+
const r = gx.startCase(n).toLowerCase();
|
|
11117
11119
|
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
11118
|
-
},
|
|
11120
|
+
}, mx = ({
|
|
11119
11121
|
data: n
|
|
11120
11122
|
}) => `import { defineObject } from 'twenty-sdk';
|
|
11121
11123
|
|
|
@@ -11137,7 +11139,7 @@ export default defineObject({
|
|
|
11137
11139
|
// },
|
|
11138
11140
|
],
|
|
11139
11141
|
});
|
|
11140
|
-
`,
|
|
11142
|
+
`, yx = ({
|
|
11141
11143
|
name: n,
|
|
11142
11144
|
universalIdentifier: r = hi()
|
|
11143
11145
|
}) => {
|
|
@@ -11157,7 +11159,7 @@ export default defineRole({
|
|
|
11157
11159
|
canDestroyAllObjectRecords: false,
|
|
11158
11160
|
});
|
|
11159
11161
|
`;
|
|
11160
|
-
},
|
|
11162
|
+
}, vx = ({
|
|
11161
11163
|
data: n
|
|
11162
11164
|
}) => {
|
|
11163
11165
|
const r = hi(), i = n.description ? `
|
|
@@ -11172,11 +11174,11 @@ export default defineField({
|
|
|
11172
11174
|
objectUniversalIdentifier: '${n.objectUniversalIdentifier}',${i}
|
|
11173
11175
|
});
|
|
11174
11176
|
`;
|
|
11175
|
-
},
|
|
11176
|
-
class
|
|
11177
|
+
}, _x = "src";
|
|
11178
|
+
class xx {
|
|
11177
11179
|
async execute(r, i) {
|
|
11178
11180
|
try {
|
|
11179
|
-
const o = r ?? await this.getEntity(), u = this.getFolderName(o), f = i ? Nt(Yt, i) : Nt(Yt,
|
|
11181
|
+
const o = r ?? await this.getEntity(), u = this.getFolderName(o), f = i ? Nt(Yt, i) : Nt(Yt, _x, u);
|
|
11180
11182
|
await he.ensureDir(f);
|
|
11181
11183
|
const { name: g, file: v } = await this.getEntityData(o), w = Nt(f, this.getFileName(g, o));
|
|
11182
11184
|
if (await he.pathExists(w)) {
|
|
@@ -11198,31 +11200,31 @@ class _x {
|
|
|
11198
11200
|
async getEntityData(r) {
|
|
11199
11201
|
switch (r) {
|
|
11200
11202
|
case Re.Object: {
|
|
11201
|
-
const i = await this.getObjectData(), o = i.nameSingular, u =
|
|
11203
|
+
const i = await this.getObjectData(), o = i.nameSingular, u = mx({
|
|
11202
11204
|
data: i
|
|
11203
11205
|
});
|
|
11204
11206
|
return { name: o, file: u };
|
|
11205
11207
|
}
|
|
11206
11208
|
case Re.Field: {
|
|
11207
|
-
const i = await this.getFieldData(), o = i.name, u =
|
|
11209
|
+
const i = await this.getFieldData(), o = i.name, u = vx({
|
|
11208
11210
|
data: i
|
|
11209
11211
|
});
|
|
11210
11212
|
return { name: o, file: u };
|
|
11211
11213
|
}
|
|
11212
11214
|
case Re.LogicFunction: {
|
|
11213
|
-
const i = await this.getEntityName(r), o =
|
|
11215
|
+
const i = await this.getEntityName(r), o = px({
|
|
11214
11216
|
name: i
|
|
11215
11217
|
});
|
|
11216
11218
|
return { name: i, file: o };
|
|
11217
11219
|
}
|
|
11218
11220
|
case Re.FrontComponent: {
|
|
11219
|
-
const i = await this.getEntityName(r), o =
|
|
11221
|
+
const i = await this.getEntityName(r), o = fx({
|
|
11220
11222
|
name: i
|
|
11221
11223
|
});
|
|
11222
11224
|
return { name: i, file: o };
|
|
11223
11225
|
}
|
|
11224
11226
|
case Re.Role: {
|
|
11225
|
-
const i = await this.getEntityName(r), o =
|
|
11227
|
+
const i = await this.getEntityName(r), o = yx({
|
|
11226
11228
|
name: i
|
|
11227
11229
|
});
|
|
11228
11230
|
return { name: i, file: o };
|
|
@@ -11347,8 +11349,8 @@ class _x {
|
|
|
11347
11349
|
}
|
|
11348
11350
|
}
|
|
11349
11351
|
}
|
|
11350
|
-
const
|
|
11351
|
-
const r = new
|
|
11352
|
+
const Tx = (n) => {
|
|
11353
|
+
const r = new nx(), i = new ix(), o = new rx(), u = new sx(), f = new ux();
|
|
11352
11354
|
n.command("auth:login").description("Authenticate with Twenty").option("--api-key <key>", "API key for authentication").option("--api-url <url>", "Twenty API URL").action(async (P) => {
|
|
11353
11355
|
await i.execute(P);
|
|
11354
11356
|
}), n.command("auth:logout").description("Remove authentication credentials").action(async () => {
|
|
@@ -11360,7 +11362,7 @@ const xx = (n) => {
|
|
|
11360
11362
|
}), n.command("auth:list").description("List all configured workspaces").action(async () => {
|
|
11361
11363
|
await r.execute();
|
|
11362
11364
|
});
|
|
11363
|
-
const g = new
|
|
11365
|
+
const g = new X_(), v = new tx(), w = new xx(), b = new ex(), O = new ox(), D = new ax();
|
|
11364
11366
|
n.command("app:dev [appPath]").description("Watch and sync local application changes").action(async (P) => {
|
|
11365
11367
|
await g.execute({
|
|
11366
11368
|
appPath: Pi(P)
|
|
@@ -11417,12 +11419,12 @@ const xx = (n) => {
|
|
|
11417
11419
|
});
|
|
11418
11420
|
}
|
|
11419
11421
|
);
|
|
11420
|
-
},
|
|
11421
|
-
version:
|
|
11422
|
+
}, wx = "0.4.3", Ex = {
|
|
11423
|
+
version: wx
|
|
11422
11424
|
};
|
|
11423
|
-
|
|
11424
|
-
const yi = new
|
|
11425
|
-
yi.name("twenty").description("CLI for Twenty application development").version(
|
|
11425
|
+
by.defaultOptions.depth = 10;
|
|
11426
|
+
const yi = new Ay();
|
|
11427
|
+
yi.name("twenty").description("CLI for Twenty application development").version(Ex.version);
|
|
11426
11428
|
yi.option(
|
|
11427
11429
|
"--workspace <name>",
|
|
11428
11430
|
"Use a specific workspace configuration (overrides the default set by auth:switch)"
|
|
@@ -11433,10 +11435,10 @@ yi.hook("preAction", async (n) => {
|
|
|
11433
11435
|
C.gray(`👩💻 Workspace - ${Be.getActiveWorkspace()}`)
|
|
11434
11436
|
);
|
|
11435
11437
|
});
|
|
11436
|
-
|
|
11438
|
+
Tx(yi);
|
|
11437
11439
|
yi.exitOverride();
|
|
11438
11440
|
try {
|
|
11439
11441
|
yi.parse();
|
|
11440
11442
|
} catch (n) {
|
|
11441
|
-
n instanceof
|
|
11443
|
+
n instanceof Iy && process.exit(n.exitCode), n instanceof Error && (console.error(C.red("Error:"), n.message), process.exit(1));
|
|
11442
11444
|
}
|