hendt / ebay-api

eBay Node API in TypeScript for Node and Browser with RESTful and Traditional APIs. This library aims to implement all available eBay apis.
https://hendt.gitbook.io/ebay-api
MIT License
141 stars 38 forks source link

Cloudflare Worker support #169

Open lukasjaronis opened 1 month ago

lukasjaronis commented 1 month ago

Can we add support for CF workers? Would need to use node:crypto instead of crypto.

dantio commented 1 month ago

Yep, definitely planed. However, it's more work than just replace the 'crypto' with 'node: crypto' ...

lukasjaronis commented 1 month ago

Only thing that was getting in the way of using the ebayApi in a Cloudflare Worker was the digitalSignature, which I locally patched to account for environment and use the appropriate crypto API. XML parsing is not an issue since you can set compatibility flags in a worker to make it work.

dantio commented 1 month ago

@lukasjaronis Might you share all your changes? That would be great.