-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tokensaver #14
Tokensaver #14
Conversation
gigatexel
commented
Jul 12, 2021
- added tokensaver.js for standalone purposes (for instance, the Daikin Cloud currently under development for Home Assistant)
- added binaries for tokensaver.js
Hey, thank you, good idea. Whats about the 2add binaries" .... I can not see that anywhere ... |
example/tokensaver.js
Outdated
let tokenSet; | ||
|
||
// Fix EventEmitter memory leak warning | ||
process.setMaxListeners(Infinity); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you had such errors? Do you found the source? I never saw them while trying
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes had memory leak warnings, most certainly caused by background requests from other apps on the pc - since they all use the proxy (and not only the browser consulting the daikin cloud)
But not sure if it fixes this...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean solution would be to find out where in code it happens (i assume somewhere isn the proxy?) and then increase it there. This also works as hack, yes ;-) Is the error messag giving any additional hin when it happens?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will look into this further and give feedback here. Errors occur from underlying proxy library I think (not your code)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would accept for now, all ok ... for proxy lib we can make a PR or at least an issue if we knowo "where" it happens
I'm quite new to github, sorry. |
For the binaries ... how you did build them? What they do? Where is the source? In fact it will not work that way :-) I think we need to build them dynamically with each release. I do not want to have a manual step here. |
I installed all dependencies in my local folder ( |
What is "pkg"? never did that. but in fact what we then need is to find the exact commands and add them to the github action as build step and somehow add them also to the release to Github ... I never did that. But it's not option for me to have additional manual steps per release, I have too many other duties and this would cost too much time. So |
PS: you mean? https://www.npmjs.com/package/pkg ?? |
Yes, that's the one. I fully understand you time-concerns. Maybe we should skip the binaries for now? |
PS: Maybe https://github.com/softprops/action-gh-release could do the job ... so adding one more step after npm publish to build the stuff. and thenm one step after creating the release to upload the created files |
Ok, lets try it :-) 1.) add pkg as dev dependency to the package.json that it gets installed, do an npm install and update package-lock.json file too
3.) Then we check thsat this works :-) But I would say we do this n a second PR, ok? SO I will merge this one here and you add a second? |
I agree. |
Ready for merge I think. |
Thank you, do you want to give the "auto binaries " a try in a new PR or should I start in a branch? Then we can finalize that together |
So I made the changes you proposed in these files:
Any suggestions how I can trigger the deploy-step in test-and-release.yml? As I said before, GitHub newbie :-) |
honestly ... I think we review and merge it and then simply try it :-)) |