LuanRT
a011f62a90
deps: remove tmpdir dependency
2022-07-06 23:44:32 -03:00
Bob Varioa
f52d15cdb0
Make project multiplatform ( #91 )
...
* Prefer `c ? x : y` over `c && x || y`
* Avoid unnecessary asssignment expressions
* Prefer switch statements over object lookup tables
* Add an .editorconfig
* Fix style issues
* Fix mentioned issues
* remove dynamic require
* Introduce esbuild as a build system
* Add cross platform stream api
* Replace 'fs' with custom cache api
* Add cross platform crypto api
* Add misc. dependencies
* Create multi-platform tests
* Update package-lock, Add build files
* Pull from upstream
* Fix linting issues, and update build files
* Fix comments issues
* Regenerate types, add source maps
Co-authored-by: bob <bob.varioa@gmail.com >
2022-07-06 16:47:48 -03:00
LuanRT
84d5edb6f0
refactor: rewrite OAuth and Requester ( #90 )
...
* chore: update type declarations
* dev: refactor oauth & requester
* chore: tidy things up
* chore: remove unneeded check
2022-07-04 16:34:02 -03:00
LuanRT
1d62e469a9
refactor: rewrite Comments Section logic ( #88 )
...
* feat: add core comments section classes
* chore: update type declarations
* chore: fix linter warnings
* style: fix linter
* chore: update tests
* chore(tests): fix typo
* chore(tests): fix typo x2
* fix(tests): `getReplies()` method is only present in `CommentThread` and not `Comment`
* chore(tests): fix comment id path
* chore(tests): remove outdated code
* chore(tests): fix results path
* chore: enforce code style
* chore: update type declarations
* docs: add examples and documentation
* chore(docs): fix paths
* chore(docs): fix more paths
* chore(docs): fix `Comments.js` path
* chore(docs): fix typo
* chore(docs): mention example file
* chore(examples): fix imports
* chore(examples): fix typo
2022-07-02 19:55:33 -03:00
LuanRT
00c2db791f
style: format & remove unneeded code
2022-06-22 19:05:08 -03:00
Daniel Wykerd
1681a9b84c
feat(player): improved decipher logic ( #79 )
...
* feat(player): improved decipher logic
- Improve the deciphering logic for Signatures and NTokens.
- This makes NToken transforms more than 20x faster
- It also improves caching of the player drastically, by only keeping
the processed responses in binary format. Bringing down the cache
per player from 1.8MB to less than 400 bytes
* fix: linting errors
* fix: tests
* refactor: replace TS enum with ordinary JS objects
2022-06-21 14:29:13 -03:00
LuanRT
49688a0ad6
chore: fix invalid jsdoc comments
2022-06-14 15:03:45 -03:00
xrip
4ad5a5da64
Access axios instance via this.#axios instead of getter
2022-05-31 16:45:56 -03:00
xrip
f05270daee
Share axios instance between modules.
...
This allows to use axios with http(s) and socks proxies via http(s)Agent and proxy settings.
2022-05-31 16:45:56 -03:00
LuanRT
a85e9ef667
refactor!: welp, a lot of stuff
...
- Use the OS temp folder to cache the player, closes #57 .
- Added support for editing channel name, closes #40 .
- Added support for editing channel description.
- Added support for retrieving basic channel analytics, closes #54 .
- Moved `Innertube#getAccountInfo()` to `Innertube#account`, and renamed it to `getInfo()`.
- `getInfo()` is now able to return email, channel id, etc.
- Improved jsdoc.
2022-05-27 08:17:16 -03:00
LuanRT
9f3f8ad820
style: format code
2022-05-18 05:56:28 -03:00
LuanRT
4943685e57
refactor: simplify the player class
2022-05-05 04:17:11 -03:00
luan.lrt4@gmail.com
1ab302319d
refactor!: rewrite parser and refactor project structure, closes #19
2022-04-13 01:47:57 -03:00