@eide/foir-cli 0.6.0 → 0.6.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +11 -9
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -5201,15 +5201,17 @@ async function reconcilePlacements(client, configId, placements, summary) {
5201
5201
  const currentConfigJson = config2.config ?? {};
5202
5202
  const updatedConfig = {
5203
5203
  ...currentConfigJson,
5204
- placements: placements.map((p) => ({
5205
- type: p.type,
5206
- url: p.url,
5207
- allowedOrigin: p.allowedOrigin,
5208
- height: p.height,
5209
- tabName: p.tabName,
5210
- hideContentTab: p.hideContentTab,
5211
- modelKeys: p.modelKeys
5212
- }))
5204
+ placements: placements.map((p) => {
5205
+ const out = {};
5206
+ if (p.type !== void 0) out.type = p.type;
5207
+ if (p.url !== void 0) out.url = p.url;
5208
+ if (p.allowedOrigin !== void 0) out.allowedOrigin = p.allowedOrigin;
5209
+ if (p.height !== void 0) out.height = p.height;
5210
+ if (p.tabName !== void 0) out.tabName = p.tabName;
5211
+ if (p.hideContentTab !== void 0) out.hideContentTab = p.hideContentTab;
5212
+ if (p.modelKeys !== void 0) out.modelKeys = p.modelKeys;
5213
+ return out;
5214
+ })
5213
5215
  };
5214
5216
  await client.configs.updateConfig({
5215
5217
  id: configId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eide/foir-cli",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Universal platform CLI for Foir platform",
5
5
  "type": "module",
6
6
  "publishConfig": {