Skip to content

Commit

Permalink
Remove sasl-ht-sha-256-none from @xmpp/client browser
Browse files Browse the repository at this point in the history
 FAIL  ./packages/client/dist/xmpp.min.js: 45.01KB > maxSize 16KB (gzip)
  • Loading branch information
sonnyp committed Dec 12, 2024
1 parent 42cccdb commit 296000d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"bundlesize": [
{
"path": "./packages/client/dist/xmpp.min.js",
"maxSize": "16 KB"
"maxSize": "17 KB"
}
],
"lint-staged": {
Expand Down
2 changes: 0 additions & 2 deletions packages/client/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const _streamManagement = require("@xmpp/stream-management");

// SASL mechanisms - order matters and define priority
const anonymous = require("@xmpp/sasl-anonymous");
const htsha256 = require("@xmpp/sasl-ht-sha-256-none");
const plain = require("@xmpp/sasl-plain");

function client(options = {}) {
Expand Down Expand Up @@ -65,7 +64,6 @@ function client(options = {}) {
});
// SASL mechanisms - order matters and define priority
const mechanisms = Object.entries({
htsha256,
plain,
anonymous,
}).map(([k, v]) => ({ [k]: [v(sasl2), v(sasl)] }));
Expand Down
4 changes: 2 additions & 2 deletions packages/sasl2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { encode, decode } = require("@xmpp/base64");
const SASLError = require("./lib/SASLError");
var jid = require("@xmpp/jid");
const jid = require("@xmpp/jid");
const xml = require("@xmpp/xml");
const SASLFactory = require("saslmechanisms");

Expand Down Expand Up @@ -163,7 +163,7 @@ async function authenticate(
await Promise.all(hPromises);
}

module.exports = function sasl({ streamFeatures }, credentials, userAgent) {
module.exports = function sasl2({ streamFeatures }, credentials, userAgent) {
const SASL = new SASLFactory();
const handlers = {};
const bindHandlers = {};
Expand Down

0 comments on commit 296000d

Please sign in to comment.