Skip to content

Conversation

@anasik
Copy link
Contributor

@anasik anasik commented May 16, 2022

Currently, if users do this:

const result = await client.MyFunction(args)
The result will be equal to an array containing result, rawResponse, soapHeader, rawRequest, mtomAttachments. And if they want just the parsed JSON response they have to do result[0].

This is fine. But if we make promisify return an object instead of an array, they could do this:

const { result } = await client.MyFunction(args)

anasik added 2 commits May 16, 2022 17:30
Currently, if users do this:
> const result =  await client.MyFunction(args) 
The result will be equal to an array containing result, rawResponse, soapHeader, rawRequest, mtomAttachments. And if they want just the parsed JSON response they have to do result[0].

This is fine. But if we make promisify return an object instead of an array, they could do this:
> const { result } =  await client.MyFunction(args)
@smokhov
Copy link
Contributor

smokhov commented Apr 5, 2025

@w666 -- could you please rebase this to run the checks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants