@ondc/automation-mock-runner 1.3.32 → 1.3.33

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.
@@ -253,8 +253,8 @@ async function buildConfigFromFlowConfig(payloads, flowConfig, domain, version,
253
253
  }
254
254
  else {
255
255
  stepConfig.mock.inputs = {};
256
- if (step.input?.jsonSchema !== undefined) {
257
- stepConfig.mock.inputs = step.input;
256
+ if (step.input && step.input.length > 0 && step.input[0].jsonSchema) {
257
+ stepConfig.mock.inputs = step.input[0];
258
258
  }
259
259
  else {
260
260
  stepConfig.mock.inputs.oldInputs = step.input;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ondc/automation-mock-runner",
3
- "version": "1.3.32",
3
+ "version": "1.3.33",
4
4
  "description": "A TypeScript library for ONDC automation mock runner",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",