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
Bob Varioa
0a851bde31
refactor: remove confusing code practices ( #87 )
...
* 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
Co-authored-by: bob <bob.varioa@gmail.com >
2022-07-01 19:37:59 -03:00
LuanRT
c24e6256c5
chore: fix typo
2022-06-22 19:11:16 -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
LuanRT
359020193b
dev: start parser refactor on the main codebase, see #65 and #44
...
Things were getting a bit complicated and slow with the old parser so I decided to continue #44 's work on the main codebase.
2022-06-06 04:19:14 -03:00
LuanRT
4943685e57
refactor: simplify the player class
2022-05-05 04:17:11 -03:00
LuanRT
75895e5492
chore: update deciphers jsdoc
2022-05-02 01:49:37 -03:00
luan.lrt4@gmail.com
d48065405d
chore: use compiled protobuf schemas to reduce dependency footprint
2022-04-20 03:52:44 -03:00
luan.lrt4@gmail.com
1ab302319d
refactor!: rewrite parser and refactor project structure, closes #19
2022-04-13 01:47:57 -03:00