Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Dec 12, 2024
1 parent 3477d68 commit 42cccdb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/sasl-ht-sha-256-none/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Mechanism.prototype.final = (data) => {
}
};

module.exports = (sasl) => {
module.exports = function sasl2(sasl) {
sasl.use(Mechanism);
};
8 changes: 5 additions & 3 deletions packages/sasl2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ async function authenticate(
}

switch (element.name) {
case "failure":
case "failure": {
reject(SASLError.fromElement(element));
break;
case "continue":
}
case "continue": {
// No tasks supported yet
reject();
break;
}
case "success": {
const additionalData = element.getChild("additional-data")?.text();
if (additionalData && mech.final) {
Expand Down Expand Up @@ -182,7 +184,7 @@ module.exports = function sasl({ streamFeatures }, credentials, userAgent) {
?.map((m) => m.text()) || [],
);
const supported = SASL._mechs.map(({ name }) => name);
// eslint-disable-next-line unicorn/prefer-array-find

const intersection = supported
.map((mech) => ({
name: mech,
Expand Down
4 changes: 2 additions & 2 deletions packages/xmpp.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
"@xmpp/reconnect": "^0.13.2",
"@xmpp/resolve": "^0.13.2",
"@xmpp/resource-binding": "^0.13.2",
"@xmpp/sasl2": "^0.13.0",
"@xmpp/sasl": "^0.13.2",
"@xmpp/sasl-anonymous": "^0.13.2",
"@xmpp/sasl-ht-sha-256-none": "^0.13.0",
"@xmpp/sasl-plain": "^0.13.2",
"@xmpp/sasl-scram-sha-1": "^0.13.2",
"@xmpp/sasl-ht-sha-256-none": "^0.13.0",
"@xmpp/sasl2": "^0.13.0",
"@xmpp/session-establishment": "^0.13.2",
"@xmpp/starttls": "^0.13.2",
"@xmpp/stream-features": "^0.13.2",
Expand Down

0 comments on commit 42cccdb

Please sign in to comment.