@coherentglobal/wasm-runner 0.0.70 → 0.0.71

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.
@@ -160,10 +160,11 @@ try {
160
160
  prev[curr.ImageName] = curr?.Base64Content || ""
161
161
  return prev
162
162
  }, {})
163
+
163
164
  const metadataOutput = {
165
+ ...result.response_data.outputs,
164
166
  ...metadata?.Outputs,
165
- ...imageOutputs,
166
- ...result.response_data.outputs
167
+ ...imageOutputs
167
168
  }
168
169
  result.response_data.outputs = Object.assign({}, metadataOutput);
169
170
  return rawString ? JSON.stringify(result) : result;
@@ -210,9 +211,9 @@ try {
210
211
  return prev
211
212
  }, {})
212
213
  const metadataOutput = {
214
+ ...result.response_data.outputs,
213
215
  ...metadata?.Outputs,
214
216
  ...imageOutputs,
215
- ...result.response_data.outputs
216
217
  }
217
218
  result.response_data.outputs = Object.assign({}, metadataOutput);
218
219
  return rawString ? JSON.stringify(result) : result;
@@ -255,13 +256,13 @@ try {
255
256
  }
256
257
  const imageOutputs = metadata.ImageOutputs.reduce( (prev, curr) => {
257
258
  if(!curr?.ImageName) return prev
258
- prev[curr.ImageName] = curr?.Base64Content || ""
259
+ prev[curr.ImageName] = curr?.Base64Content || null
259
260
  return prev
260
261
  }, {})
261
262
  const metadataOutput = {
263
+ ...result.response_data.outputs,
262
264
  ...metadata?.Outputs,
263
- ...imageOutputs,
264
- ...result.response_data.outputs
265
+ ...imageOutputs
265
266
  }
266
267
  result.response_data.outputs = Object.assign({}, metadataOutput);
267
268
  return rawString ? JSON.stringify(result) : result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coherentglobal/wasm-runner",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "description": "Coherent WASM runner for Javascript and Node.js",
5
5
  "main": "dist/node.js",
6
6
  "browser": "dist/browser.js",