diff --git a/package-lock.json b/package-lock.json index f0e67ea7..0ee1d65f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10863,8 +10863,9 @@ } }, "node_modules/ltx": { - "version": "3.0.0", - "license": "MIT", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/ltx/-/ltx-3.1.1.tgz", + "integrity": "sha512-1p19JqGI/OZEe4XoBM1i5/P2X/gO14RVqWgbPZJE5xOKrhbR7DznKi8hJhe1vTmgA6MSbE7Khg1uJMBxid4uCQ==", "engines": { "node": ">= 12.4.0" } @@ -15854,7 +15855,7 @@ "license": "ISC", "dependencies": { "@xmpp/xml": "^0.13.2", - "ltx": "3.0.0" + "ltx": "^3.1.1" }, "engines": { "node": ">= 14" @@ -16073,7 +16074,7 @@ "@xmpp/events": "^0.13.2", "@xmpp/jid": "^0.13.2", "@xmpp/xml": "^0.13.2", - "ltx": "3.0.0" + "ltx": "^3.1.1" }, "engines": { "node": ">= 14" @@ -16129,7 +16130,7 @@ "version": "0.13.2", "license": "ISC", "dependencies": { - "ltx": "3.0.0" + "ltx": "^3.1.1" }, "engines": { "node": ">= 14" diff --git a/packages/debug/index.js b/packages/debug/index.js index fdba9643..9e05a1db 100644 --- a/packages/debug/index.js +++ b/packages/debug/index.js @@ -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"; diff --git a/packages/debug/package.json b/packages/debug/package.json index bc5ad378..94bc2a2c 100644 --- a/packages/debug/package.json +++ b/packages/debug/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@xmpp/xml": "^0.13.2", - "ltx": "3.0.0" + "ltx": "^3.1.1" }, "publishConfig": { "access": "public" diff --git a/packages/test/context.js b/packages/test/context.js index a78f85da..facfe4f4 100644 --- a/packages/test/context.js +++ b/packages/test/context.js @@ -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); diff --git a/packages/test/package.json b/packages/test/package.json index 6cd98677..e43570e5 100644 --- a/packages/test/package.json +++ b/packages/test/package.json @@ -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" diff --git a/packages/xml/index.js b/packages/xml/index.js index 9ebeb727..b8ec232e 100644 --- a/packages/xml/index.js +++ b/packages/xml/index.js @@ -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); diff --git a/packages/xml/lib/Parser.js b/packages/xml/lib/Parser.js index 06b9ce1b..5e8c857f 100644 --- a/packages/xml/lib/Parser.js +++ b/packages/xml/lib/Parser.js @@ -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() { diff --git a/packages/xml/package.json b/packages/xml/package.json index 352458a9..475e9ced 100644 --- a/packages/xml/package.json +++ b/packages/xml/package.json @@ -14,7 +14,7 @@ "presence" ], "dependencies": { - "ltx": "3.0.0" + "ltx": "^3.1.1" }, "engines": { "node": ">= 14" diff --git a/packages/xml/test/xml.js b/packages/xml/test/xml.js index cc8d3153..9f4b8c90 100644 --- a/packages/xml/test/xml.js +++ b/packages/xml/test/xml.js @@ -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);