TheNorthMemory / whats-alipay

支付宝 Alipay OpenAPI SDK
MIT License
15 stars 2 forks source link

ES2019 `Object.fromEntries` function doesn't exists on node v10.15 #3

Closed TheNorthMemory closed 3 years ago

TheNorthMemory commented 3 years ago

The npm test were some failed cases under node v10.15.

  1) OpenAPI Kick Start 101
       40001:Missing Required Arguments
         alipay.trade.query should get `missing-app-id` response:
     TypeError: Object.fromEntries is not a function
      at signer (lib/decorator.js:64:20)

The function, Object.fromEntries was available since node v12.4.0, proposal here.