Skip to content

Commit

Permalink
Merge branch 'main' into sasl2
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Dec 21, 2024
2 parents 7ce1b2f + d30c272 commit 21bb7cb
Show file tree
Hide file tree
Showing 33 changed files with 34 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/base64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"base64"
Expand Down
1 change: 1 addition & 0 deletions packages/client-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"dependencies": {
"@xmpp/connection": "^0.13.2",
"@xmpp/jid": "^0.13.2",
Expand Down
1 change: 1 addition & 0 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"dependencies": {
"@xmpp/client-core": "^0.13.2",
"@xmpp/iq": "^0.13.2",
Expand Down
1 change: 1 addition & 0 deletions packages/component-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"component",
Expand Down
1 change: 1 addition & 0 deletions packages/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"component"
Expand Down
1 change: 1 addition & 0 deletions packages/connection-tcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"connection",
Expand Down
1 change: 1 addition & 0 deletions packages/connection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"connection"
Expand Down
1 change: 1 addition & 0 deletions packages/debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"debug"
Expand Down
1 change: 1 addition & 0 deletions packages/error/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"xmpp",
"error"
Expand Down
1 change: 1 addition & 0 deletions packages/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"event",
"events",
Expand Down
1 change: 1 addition & 0 deletions packages/id/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"id"
Expand Down
1 change: 1 addition & 0 deletions packages/iq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"iq",
Expand Down
1 change: 1 addition & 0 deletions packages/jid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"JID"
Expand Down
1 change: 1 addition & 0 deletions packages/middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"middleware"
Expand Down
1 change: 1 addition & 0 deletions packages/reconnect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"reconnect"
Expand Down
1 change: 1 addition & 0 deletions packages/resolve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"dns",
Expand Down
1 change: 1 addition & 0 deletions packages/resource-binding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"bind",
Expand Down
1 change: 1 addition & 0 deletions packages/sasl-anonymous/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"sasl",
Expand Down
4 changes: 2 additions & 2 deletions packages/sasl-ht-sha-256-none/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ Mechanism.prototype.Mechanism = Mechanism;
Mechanism.prototype.name = "HT-SHA-256-NONE";
Mechanism.prototype.clientFirst = true;

Mechanism.prototype.response = (cred) => {
Mechanism.prototype.response = function response(cred) {
this.password = cred.password;
const hmac = createHmac("sha256", this.password);
hmac.update("Initiator");
return cred.username + "\0" + hmac.digest("latin1");
};

Mechanism.prototype.final = (data) => {
Mechanism.prototype.final = function final(data) {
const hmac = createHmac("sha256", this.password);
hmac.update("Responder");
if (hmac.digest("latin1") !== data) {
Expand Down
1 change: 1 addition & 0 deletions packages/sasl-plain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"sasl",
Expand Down
1 change: 1 addition & 0 deletions packages/sasl-scram-sha-1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"sasl",
Expand Down
1 change: 1 addition & 0 deletions packages/sasl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"sasl"
Expand Down
1 change: 1 addition & 0 deletions packages/session-establishment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"session",
Expand Down
1 change: 1 addition & 0 deletions packages/starttls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"STARTTLS"
Expand Down
1 change: 1 addition & 0 deletions packages/stream-features/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"stream",
Expand Down
1 change: 1 addition & 0 deletions packages/stream-management/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"stream",
Expand Down
1 change: 1 addition & 0 deletions packages/tcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"dependencies": {
"@xmpp/connection-tcp": "^0.13.2"
},
Expand Down
1 change: 1 addition & 0 deletions packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"test"
Expand Down
1 change: 1 addition & 0 deletions packages/time/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"time",
Expand Down
1 change: 1 addition & 0 deletions packages/tls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"dependencies": {
"@xmpp/connection": "^0.13.2",
"@xmpp/connection-tcp": "^0.13.2"
Expand Down
1 change: 1 addition & 0 deletions packages/uri/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"URI"
Expand Down
1 change: 1 addition & 0 deletions packages/websocket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"dependencies": {
"@xmpp/connection": "^0.13.2",
"@xmpp/events": "^0.13.2",
Expand Down
1 change: 1 addition & 0 deletions packages/xml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "0.13.2",
"license": "ISC",
"type": "module",
"main": "index.js",
"keywords": [
"XMPP",
"stanza",
Expand Down

0 comments on commit 21bb7cb

Please sign in to comment.