@embeddables/cli 0.6.4 → 0.6.5
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/compiler/index.js
CHANGED
|
@@ -1073,6 +1073,11 @@ async function loadDataOutputs(embeddableId, config = null) {
|
|
|
1073
1073
|
if (matchedAction) {
|
|
1074
1074
|
orderedOutputs.push(matchedAction);
|
|
1075
1075
|
}
|
|
1076
|
+
else {
|
|
1077
|
+
// No .js file for this action (e.g. metadata-only / code-less action like diahook).
|
|
1078
|
+
// Preserve it from config so round-trip does not drop it.
|
|
1079
|
+
orderedOutputs.push(deepClonePreservingOrder(configAction));
|
|
1080
|
+
}
|
|
1076
1081
|
}
|
|
1077
1082
|
// Then, add any actions not in config (in filesystem order)
|
|
1078
1083
|
for (const jsFile of jsFiles) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/proxy/server.ts"],"names":[],"mappings":"AAmCA,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,MAAM,CAAA;IACzB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/proxy/server.ts"],"names":[],"mappings":"AAmCA,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,MAAM,CAAA;IACzB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;;GAoTA"}
|
package/dist/proxy/server.js
CHANGED
|
@@ -150,15 +150,10 @@ export async function startProxyServer(opts) {
|
|
|
150
150
|
const generatedJson = JSON.parse(raw);
|
|
151
151
|
generatedJson.id = opts.embeddableId;
|
|
152
152
|
console.log(`[/init] Loaded local JSON, pages: ${generatedJson.pages?.length ?? 0}`);
|
|
153
|
-
// Strip content_sources before sending to engine (keep in embeddable.json/config.json)
|
|
154
|
-
const flowForEngine = { ...generatedJson };
|
|
155
|
-
if ('content_sources' in flowForEngine) {
|
|
156
|
-
delete flowForEngine.content_sources;
|
|
157
|
-
}
|
|
158
153
|
// Create POST request body with the JSON
|
|
159
154
|
const postBody = {
|
|
160
155
|
json: {
|
|
161
|
-
flow:
|
|
156
|
+
flow: generatedJson,
|
|
162
157
|
flowId: generatedJson.id,
|
|
163
158
|
groupId: 'group_test',
|
|
164
159
|
},
|