Skip to content

Commit

Permalink
Update ltx (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp authored Dec 19, 2024
1 parent d5260a1 commit a8b2b4f
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 23 deletions.
11 changes: 6 additions & 5 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions packages/debug/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/* eslint no-console: 0 */

const stringify = require("ltx/lib/stringify");
const stringify = require("ltx/lib/stringify.js");
const xml = require("@xmpp/xml");
const clone = require("ltx/lib/clone");
const clone = require("ltx/lib/clone.js");

const NS_SASL = "urn:ietf:params:xml:ns:xmpp-sasl";
const NS_COMPONENT = "jabber:component:accept";
Expand Down
2 changes: 1 addition & 1 deletion packages/debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@xmpp/xml": "^0.13.2",
"ltx": "3.0.0"
"ltx": "^3.1.1"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/test/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const xml = require("@xmpp/xml");
const debug = require("@xmpp/debug");
const JID = require("@xmpp/jid");
const mockSocket = require("./mockSocket");
const clone = require("ltx/lib/clone");
const clone = require("ltx/lib/clone.js");

module.exports = function context(entity = client()) {
debug(entity);
Expand Down
2 changes: 1 addition & 1 deletion packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@xmpp/events": "^0.13.2",
"@xmpp/jid": "^0.13.2",
"@xmpp/xml": "^0.13.2",
"ltx": "3.0.0"
"ltx": "^3.1.1"
},
"publishConfig": {
"access": "public"
Expand Down
10 changes: 5 additions & 5 deletions packages/xml/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"use strict";

const Element = require("ltx/lib/Element");
const createElement = require("ltx/lib/createElement");
const Parser = require("./lib/Parser");
const Element = require("ltx/lib/Element.js");
const createElement = require("ltx/lib/createElement.js");
const Parser = require("./lib/Parser.js");
const {
escapeXML,
unescapeXML,
escapeXMLText,
unescapeXMLText,
} = require("ltx/lib/escape");
const XMLError = require("./lib/XMLError");
} = require("ltx/lib/escape.js");
const XMLError = require("./lib/XMLError.js");

function xml(...args) {
return createElement(...args);
Expand Down
6 changes: 3 additions & 3 deletions packages/xml/lib/Parser.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use strict";

const LtxParser = require("ltx/lib/parsers/ltx");
const Element = require("ltx/lib/Element");
const LtxParser = require("ltx/lib/parsers/ltx.js");
const Element = require("ltx/lib/Element.js");
const EventEmitter = require("events");
const XMLError = require("./XMLError");
const XMLError = require("./XMLError.js");

class Parser extends EventEmitter {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion packages/xml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"presence"
],
"dependencies": {
"ltx": "3.0.0"
"ltx": "^3.1.1"
},
"engines": {
"node": ">= 14"
Expand Down
8 changes: 4 additions & 4 deletions packages/xml/test/xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

const test = require("ava");
const xml = require("..");
const createElement = require("ltx/lib/createElement");
const Element = require("ltx/lib/Element");
const Parser = require("../lib/Parser");
const createElement = require("ltx/lib/createElement.js");
const Element = require("ltx/lib/Element.js");
const Parser = require("../lib/Parser.js");
const {
escapeXML,
unescapeXML,
escapeXMLText,
unescapeXMLText,
} = require("ltx/lib/escape");
} = require("ltx/lib/escape.js");

test("exports createElement", (t) => {
t.is(xml.createElement, createElement);
Expand Down

0 comments on commit a8b2b4f

Please sign in to comment.