extremeheat
9501694f23
Fix microsoft auth error condition handling ( #925 )
...
nullish operator can return undefined which causes `if` to not trigger in profile check
2021-11-23 00:37:19 +01:00
LiquidDevelopment
88003d065e
Fixed TypeScript error TS2769 when authenticating with mojang ( #922 )
...
Fixed TypeScript Typing Error TS2769: No overload matches this call.
2021-11-12 02:08:34 +01:00
extremeheat
2a2cc1ee92
Update prismarine-auth usage ( #923 )
...
* Update prismarine-auth usage
add new `deviceType` parameter
* remove whitespace
* use nintendo switch title id
* update examples
2021-11-12 02:08:18 +01:00
muchnameless
24a27df8a9
types(Client): fix events ( #918 )
...
Co-authored-by: Robert Hartmann <robert.hartmann.sb@gmail.com>
2021-11-07 14:43:37 +01:00
usb
052f0e9d0e
add default for authTitle ( #920 )
...
* add default for authTitle
* lint
* make check undefined
2021-11-06 22:44:50 +01:00
Shayne Hartford
7240ac634f
Update ping function return type and make callback optional ( #909 )
...
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
2021-11-04 16:22:38 -04:00
Ghqst
9813670271
Add the ability to send a fake hostname in set_protocol ( #913 )
...
* Update index.d.ts to more closely match API.md
* Update to fit more in line with my API.md
Reorder things for my additions and reorders in API.md
* Update API.md from index.d.ts
* Explain writeChannel
* Clarified on all TODOs
* Add fakeHost to client options
* Reorder index.d.ts
* Fix me forgetting options.fakeHost instead of just fakeHost
Co-authored-by: u9g <43508353+u9g@users.noreply.github.com>
2021-11-04 16:19:32 -04:00
Romain Beaumont
3603910c2a
Revert "Revert "Implement Prismarine-Auth ( #884 ) ( #917 )""
...
This reverts commit bd307493cb
.
2021-11-03 23:23:56 +00:00
Romain Beaumont
bd307493cb
Revert "Implement Prismarine-Auth ( #884 ) ( #917 )"
...
This reverts commit f777f8b8f7
.
2021-11-03 00:27:11 +00:00
Romain Beaumont
f777f8b8f7
Implement Prismarine-Auth ( #884 ) ( #917 )
2021-11-03 01:13:40 +01:00
Ghqst
e305bbdf5c
Improve Typescript definitions and API.md ( #888 )
...
* Update index.d.ts to more closely match API.md
* Update to fit more in line with my API.md
Reorder things for my additions and reorders in API.md
* Update API.md from index.d.ts
* Explain writeChannel
* Clarified on all TODOs
Co-authored-by: u9g <43508353+u9g@users.noreply.github.com>
2021-09-24 17:07:14 +02:00
David Duarte
d9d01c8be4
Lazily generate serverKey ( #907 )
2021-09-18 23:06:20 +02:00
u9g
3be9acad8c
Add ended to typings ( #904 )
2021-09-12 16:42:31 +02:00
u9g
97b94e0593
Make all events have promiselike returns for async ( #903 )
2021-09-03 18:54:32 +02:00
u9g
6138db569a
Update Online Mode Exceptions ( #898 )
2021-08-23 14:46:45 -04:00
u9g
05e6e12ef4
Add once events for all emitted events ( #895 )
...
* Add once events for all emitted events
* fix spelling
2021-08-21 17:39:32 -04:00
u9g
e9f0fbe3fb
Small typings fix ( #893 )
2021-08-21 13:51:47 -04:00
u9g
31bd5d295e
add missing types ( #891 )
...
* Export id on a new interface for servers
* add compressionThreshold
2021-08-21 13:10:58 +02:00
Romain Beaumont
8c964b15f6
Revert "Implement Prismarine-Auth ( #884 )"
...
This reverts commit 9eb61223cf
.
2021-08-14 00:33:59 +00:00
Jordan Jones
9eb61223cf
Implement Prismarine-Auth ( #884 )
...
* remove require-self as dependency
* Working Changes
* Working Changes
* fix(lint)
* Remove unnecessary code
* Use live prismarine-auth package
* Remove unused modules
* cleanup
* upgrade minecraft-data to latest
* Address extremeheat's comments
* Don't check if profileFolder is set to false
* Use updated library
* Update variables
* move option to parameter of function
* upgrade to latest prismarine-auth
* fix cache path
* fix cache path
2021-08-14 01:22:19 +02:00
Shayne Hartford
0d426ef83a
Update index.d.ts ( #878 )
...
* Update index.d.ts
Add listening event to Server class
* Update index.d.ts
2021-07-28 00:16:48 +02:00
Jakob-Niklas See
d0ccff6c80
Typings: Update to match the implementation more closely ( #877 )
2021-07-20 14:55:52 +02:00
Romain Beaumont
80f2c13458
Make 1.17.1 the default
2021-07-18 18:37:58 +02:00
u9g
014635f772
Explicitly add 1.17.1 support ( #876 )
...
* Explicitly add 1.17.1 support
* Update ci.yml
* Update README.md
2021-07-18 18:36:33 +02:00
Rob9315
78f038cae6
Add beforeLogin
function option on server ( #871 )
...
* Add `beforeLogin` event on server
* optional function passin instead of emitted event
* Add documentation and bump version
* undo release push
* add test for `beforeLogin`
2021-07-06 12:42:00 +02:00
James Galbraith
fd174189a1
Make cache path creation recursive ( #857 )
2021-06-28 23:32:15 +02:00
AngeryFrog
da4f293860
Mc.ping return a promise and use callbacks ( #849 )
...
* Added promised based ping
* made it possible too use both promises and callbacks
* Forgot too mention the callback is optional
* Tests
* Promisify the ping function
2021-06-19 22:03:26 +02:00
Romain Beaumont
aac922dd3d
Make 1.17 explicitly tested ( #866 )
...
* Make 1.17 explicitly tested
* update readme
2021-06-17 00:05:04 +02:00
Lupa
63846c6c15
Add setSocket to Typings ( #858 )
...
* setSocket is missing in typings
* Fix lint
* Better descriptive name
2021-06-16 22:49:04 +02:00
Grooble
1796b9693d
Add a way to encode a packet only once and send it to multiple clients ( #851 )
...
* Added Server#.writeToClients()
* Documented server.writeToClients()
* Added test for Server#writeToClients()
* Bad arguments for Promise.all()
* Fixed tests
* Fixed tests
* Fixed tests
* Updated tests
* Reverted timeout to the normal
2021-05-02 01:12:37 +02:00
u9g
6df20541b4
Add snapshot 21w07a
support ( #838 )
...
* Add snapshot `21w07a` support
* Update package.json
* Update version.js
* Update ci.yml
* update mcdata
* Update README.md
* Update mcdata
* Add 21w07a to tested versions
Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2021-04-16 22:56:39 +02:00
Moondarker
f509095bd2
launcher_accounts.json account corruption fix ( #845 )
...
* launcher_accounts.json account corruption fix
* Prevent MS accounts from being removed if option.auth is not specified
2021-04-11 23:14:19 +02:00
Romain Beaumont
fd331399ba
add fullBuffer to packet event
2021-04-08 02:30:48 +02:00
Romain Beaumont
bfb1472e7e
Make 1.16.5 the default ( #840 )
2021-04-06 01:34:05 +02:00
u9g
4aaa837a7d
changed clientsmap and client ( #836 )
...
implements (and closes) https://github.com/PrismarineJS/node-minecraft-protocol/issues/818
2021-03-29 09:44:24 +02:00
u9g
7ebda8047b
Throw if data is not available for a given version ( #830 )
...
* Throw if mcData is invalid
* Update serializer.js
* fix lint
2021-03-26 23:40:45 +01:00
Majorblake
9d6e3a9092
fix write to launcher_accounts.json ( #827 )
...
fix minecraftProfile id missing when writing new profile to launcher_accounts.json, causing yggdrasil to fail when authenticating session
2021-03-22 13:58:00 +01:00
Moondarker
50480f5bfe
Using launcher_accounts.json as new token source ( #826 )
...
* Using launcher_accounts.json as new token source
* Fixed a couple of problems in ae7fd65
2021-03-20 23:29:39 +01:00
extremeheat
eaed25f497
Fix msa caching bug ( #825 )
2021-03-20 23:28:22 +01:00
Romain Beaumont
f363b7d785
add a reason to end connection in keepalive client
2021-03-13 02:38:13 +01:00
Romain Beaumont
cbfa9ef046
Remove test code from microsoftAuth that was getting called at import time
2021-03-02 00:32:19 +01:00
Romain Beaumont
b3953a3bcd
Revert "Refactor/Cleanup TCP_DNS ( #810 )"
...
This didn't work
This reverts commit 10984fd5d5
.
2021-02-06 10:05:01 +00:00
Rob9315
bf309ba5a4
fix launcher_profiles.json problems ( #813 )
...
fixes launcher_profiles.json (formerly launcher_accounts.json) not being written to (all clienttokens being deleted) in specific cases
2021-01-30 01:22:12 +01:00
Jordan Jones
10984fd5d5
Refactor/Cleanup TCP_DNS ( #810 )
...
* Refactor/Cleanup TCP_DNS
* remove return
* nvm
2021-01-30 01:21:36 +01:00
extremeheat
8f2a027812
Msa device code auth ( #806 )
...
* initial msa work
* rm debug code
* Update package.json
* lint, seperate constants, create missing msa cache
* support multiple profiles
* lint
* use shared constants
* fix path issues
* fix token variable
* fix caching msa profile data
* switch clientId to one from microsoft
* store caches in .minecraft, fallback to dev code auth when user+pass fails
* update electron demo, fix error handling, add docs
* fix caching dir
* fix lint
* move to class scope, token fixes
* retry on fail, terminology fixes
* fix promise bug
* cleanup
2021-01-30 01:21:03 +01:00
u9g
41a2d064ce
add auth type ( #799 )
...
made it only accept 'mojang' or 'microsoft' as anything else wouldn't be accepted anyway
2020-12-31 21:27:39 +01:00
Evan Goode
7492025d65
Don't stringify every packet if debug not enabled ( #797 )
2020-12-28 02:42:19 +01:00
ph0t0shop
c7a021d689
Add handler for Login Plugin Message ( #795 )
...
* Add handler for plugin message
* Update pluginChannels.js
2020-12-20 03:35:13 +01:00
dada513
ea52fb8c13
Fixed password=false not using offline mode ( #790 )
...
* Fixed password=false not using offline mode
* revert client token change
2020-12-18 20:49:58 +01:00
Jordan Jones
5d723e9a04
Integrate Authentication for Microsoft Accounts ( #788 )
...
* add node-fetch and @xboxreplay/xboxlive-auth for microsoft/xbox auth
* decide which authentication to use based on options;
if options.auth === 'microsoft' then use microsoft/xbox auth, else use Yggdrasil until they kill that.
* push working auth
* commentary
* eslint does not like me :(
* User-Agent works just fine without version
* linting = 95% of development
* revert changes to encrypt.js
* set haveCredentials to whether or not we have a token.
Technically this will always be true so...?
* eslint
* mod+create: api + example
* mod: readme.md
2020-12-11 21:30:48 +01:00