@coherentglobal/wasm-runner 0.0.68 → 0.0.70

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,7 +155,6 @@ try {
155
155
  if(!result.response_data) {
156
156
  result.response_data = {}
157
157
  }
158
- console.log('IMAGE OUTPUTS: ', metadata.ImageOutputs)
159
158
  const imageOutputs = metadata.ImageOutputs.reduce( (prev, curr) => {
160
159
  if(!curr?.ImageName) return prev
161
160
  prev[curr.ImageName] = curr?.Base64Content || ""
@@ -205,7 +204,6 @@ try {
205
204
  if(!result.response_data) {
206
205
  result.response_data = {}
207
206
  }
208
- console.log('IMAGE OUTPUTS: ', metadata.ImageOutputs)
209
207
  const imageOutputs = metadata.ImageOutputs.reduce( (prev, curr) => {
210
208
  if(!curr?.ImageName) return prev
211
209
  prev[curr.ImageName] = curr?.Base64Content || ""
@@ -255,7 +253,6 @@ try {
255
253
  if(!result.response_data) {
256
254
  result.response_data = {}
257
255
  }
258
- console.log('IMAGE OUTPUTS: ', metadata.ImageOutputs)
259
256
  const imageOutputs = metadata.ImageOutputs.reduce( (prev, curr) => {
260
257
  if(!curr?.ImageName) return prev
261
258
  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.68",
3
+ "version": "0.0.70",
4
4
  "description": "Coherent WASM runner for Javascript and Node.js",
5
5
  "main": "dist/node.js",
6
6
  "browser": "dist/browser.js",