@coherentglobal/wasm-runner 0.0.67 → 0.0.69

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.
@@ -129,8 +129,8 @@ try {
129
129
  let isAsync = typeof instance._is_async === 'function' && instance._is_async(wb);
130
130
 
131
131
  const hasSubServices = req?.request_meta?.service_category && req?.request_meta?.service_category.split(',').map(d => d.toLowerCase())
132
- const isMetadataSubSvc = hasSubServices.some(c => c === 'metadata') && metadata !== undefined;
133
- const isFormSpecSubSvc = hasSubServices.some(c => c === 'formspec') && formspec !== undefined;
132
+ const isMetadataSubSvc = hasSubServices && hasSubServices.some(c => c === 'metadata') && metadata !== undefined;
133
+ const isFormSpecSubSvc = hasSubServices && hasSubServices.some(c => c === 'formspec') && formspec !== undefined;
134
134
  const isAsyncCheck = isAsync === 1 || isAsync === true || isAsync === 'true'
135
135
 
136
136
  let result
@@ -155,6 +155,7 @@ try {
155
155
  if(!result.response_data) {
156
156
  result.response_data = {}
157
157
  }
158
+ console.log('IMAGE OUTPUTS: ', metadata.ImageOutputs)
158
159
  const imageOutputs = metadata.ImageOutputs.reduce( (prev, curr) => {
159
160
  if(!curr?.ImageName) return prev
160
161
  prev[curr.ImageName] = curr?.Base64Content || ""
@@ -204,6 +205,7 @@ try {
204
205
  if(!result.response_data) {
205
206
  result.response_data = {}
206
207
  }
208
+ console.log('IMAGE OUTPUTS: ', metadata.ImageOutputs)
207
209
  const imageOutputs = metadata.ImageOutputs.reduce( (prev, curr) => {
208
210
  if(!curr?.ImageName) return prev
209
211
  prev[curr.ImageName] = curr?.Base64Content || ""
@@ -253,6 +255,7 @@ try {
253
255
  if(!result.response_data) {
254
256
  result.response_data = {}
255
257
  }
258
+ console.log('IMAGE OUTPUTS: ', metadata.ImageOutputs)
256
259
  const imageOutputs = metadata.ImageOutputs.reduce( (prev, curr) => {
257
260
  if(!curr?.ImageName) return prev
258
261
  prev[curr.ImageName] = curr?.Base64Content || ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coherentglobal/wasm-runner",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "description": "Coherent WASM runner for Javascript and Node.js",
5
5
  "main": "dist/node.js",
6
6
  "browser": "dist/browser.js",