codatio / codat-js

Javascript Client Library for Codat accounting data API
Apache License 2.0
4 stars 0 forks source link

Node 16.6.1 deprecation: invalid main in package.json #38

Open ondertan opened 3 years ago

ondertan commented 3 years ago

After updating a microservice to the latest version of node when I start up the app I get the following warning

[DEP0128] DeprecationWarning: Invalid 'main' field in '[...]/node_modules/codat/package.json' of 'codat.js'. Please either fix that or report it to the module author

Based on the latest documentation it seems like having "main": "codat.js" in package.json will no longer be supported when you also have index.js in the top level directory.

ondertan commented 3 years ago

cc: @jasond-s since I see your name in all the issues and most PRs

smontiu commented 2 years ago

Same here, appears all-time on logs

jasond-s commented 2 years ago

This repo and the associated NPM is currently deprecated, please see the readme file. I think you can get a good way to working with Codat using JS by creating a client directly from our OAS document.

If you have suggestions though and would like to see some development on this library, please feel free to raise a PR and we can take a look. Thanks.