perry-mitchell / webdav-client

WebDAV client written in Typescript for NodeJS and the browser
MIT License
661 stars 143 forks source link

Can not be imported with newer node versions #355

Closed susnux closed 1 year ago

susnux commented 1 year ago

The package can not be imported by some build tools and newer node versions, because the exports field of the package.json contain a folder mapping:

https://github.com/perry-mitchell/webdav-client/blob/630168b8183b2c89b71e38149ff502366ddee6d1/package.json#L11

This is deprecated since Node 14 and removed in Node 17. It should be replaced with:

"./dist/*": "./dist/*"
skjnldsv commented 1 year ago

Related: https://github.com/perry-mitchell/webdav-client/issues/339