Skip to content

Commit

Permalink
reap the benefits
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Jan 6, 2025
1 parent 2f3fd0d commit 182d4d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ function client(options = {}) {
createOnAuthenticate(credentials ?? { username, password }, userAgent),
);

const fast = setupIfAvailable(_fast, {
const fast = _fast({
sasl2,
});
fast && sasl2.setup({ fast });
sasl2.setup({ fast });

// SASL2 inline features
const bind2 = _bind2({ sasl2, entity }, resource);

// FAST mechanisms - order matters and define priority
fast && setupIfAvailable(htsha256none, fast.saslFactory);
htsha256none(fast.saslFactory);

// Stream features - order matters and define priority
const sasl = _sasl(
Expand Down
4 changes: 1 addition & 3 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
"@xmpp/tcp": false,
"@xmpp/tls": false,
"@xmpp/starttls": false,
"@xmpp/sasl-scram-sha-1": false,
"@xmpp/sasl-ht-sha-256-none": false,
"@xmpp/fast": false
"@xmpp/sasl-scram-sha-1": false
},
"engines": {
"node": ">= 20"
Expand Down
1 change: 0 additions & 1 deletion packages/sasl-ht-sha-256-none/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"XMPP",
"sasl"
],
"dependencies": {},
"engines": {
"node": ">= 20"
},
Expand Down

0 comments on commit 182d4d2

Please sign in to comment.