SAP / node-rfc

Asynchronous, non-blocking SAP NW RFC SDK bindings for Node.js
Apache License 2.0
251 stars 73 forks source link

V2.1.0 Client Version is undefined #180

Closed izzuddin-noormy closed 3 years ago

izzuddin-noormy commented 3 years ago

Hi,

I just found out, that version 2.1.0 whenever my script hit this line of code it says undefined

// create new client const client = new Client(sapConfig.SAP_DEV);

// echo SAP NWRFC SDK and nodejs/RFC binding version console.log("Client version: ", client.version);

bsrdjan commented 3 years ago

The client.version is replaced with client.environment.noderfc.nwrfcdk see 2.0 breaking changes

  noderfc: {
    version: '2.2.0',
    nwrfcsdk: { major: 7500, minor: 0, patchLevel: 7 }
  }
izzuddin-noormy commented 3 years ago

Perfect thank you @bsrdjan