Commit c0fc3c38 authored by JC Brand's avatar JC Brand

Bump to strophe 1.4 and add sprintf

parent 543a29bc
...@@ -22857,8 +22857,8 @@ ...@@ -22857,8 +22857,8 @@
} }
}, },
"strophe.js": { "strophe.js": {
"version": "github:strophe/strophejs#ceb5640786dc60de4a13b18c9a263f2ef112874c", "version": "1.4.0",
"from": "github:strophe/strophejs#ceb5640786dc60de4a13b18c9a263f2ef112874c", "resolved": "github:strophe/strophejs#ceb5640786dc60de4a13b18c9a263f2ef112874c",
"requires": { "requires": {
"abab": "^2.0.3", "abab": "^2.0.3",
"ws": "^7.0.0", "ws": "^7.0.0",
......
...@@ -1600,21 +1600,41 @@ Object.assign(converse, { ...@@ -1600,21 +1600,41 @@ Object.assign(converse, {
}, },
/** /**
* Utility methods and globals from bundled 3rd party libraries. * Utility methods and globals from bundled 3rd party libraries.
* @memberOf converse * @typedef ConverseEnv
*
* @property {function} converse.env.$build - Creates a Strophe.Builder, for creating stanza objects. * @property {function} converse.env.$build - Creates a Strophe.Builder, for creating stanza objects.
* @property {function} converse.env.$iq - Creates a Strophe.Builder with an <iq/> element as the root. * @property {function} converse.env.$iq - Creates a Strophe.Builder with an <iq/> element as the root.
* @property {function} converse.env.$msg - Creates a Strophe.Builder with an <message/> element as the root. * @property {function} converse.env.$msg - Creates a Strophe.Builder with an <message/> element as the root.
* @property {function} converse.env.$pres - Creates a Strophe.Builder with an <presence/> element as the root. * @property {function} converse.env.$pres - Creates a Strophe.Builder with an <presence/> element as the root.
* @property {function} converse.env.Promise - The Promise implementation used by Converse. * @property {function} converse.env.Promise - The Promise implementation used by Converse.
* @property {function} converse.env.Strophe - The [Strophe](http://strophe.im/strophejs) XMPP library used by Converse. * @property {function} converse.env.Strophe - The [Strophe](http://strophe.im/strophejs) XMPP library used by Converse.
* @property {object} converse.env._ - The instance of [lodash-es](http://lodash.com) used by Converse.
* @property {function} converse.env.f - And instance of Lodash with its methods wrapped to produce immutable auto-curried iteratee-first data-last methods. * @property {function} converse.env.f - And instance of Lodash with its methods wrapped to produce immutable auto-curried iteratee-first data-last methods.
* @property {object} converse.env.dayjs - [DayJS](https://github.com/iamkun/dayjs) date manipulation library.
* @property {function} converse.env.sizzle - [Sizzle](https://sizzlejs.com) CSS selector engine. * @property {function} converse.env.sizzle - [Sizzle](https://sizzlejs.com) CSS selector engine.
* @property {function} converse.env.sprintf
* @property {object} converse.env._ - The instance of [lodash-es](http://lodash.com) used by Converse.
* @property {object} converse.env.dayjs - [DayJS](https://github.com/iamkun/dayjs) date manipulation library.
* @property {object} converse.env.utils - Module containing common utility methods used by Converse. * @property {object} converse.env.utils - Module containing common utility methods used by Converse.
* @memberOf converse
*/ */
'env': { $build, $iq, $msg, $pres, Model, Collection, CustomElement, Promise, Strophe, _, dayjs, log, sizzle, stanza_utils, u, 'utils': u, html } 'env': {
$build,
$iq,
$msg,
$pres,
'utils': u,
Collection,
CustomElement,
Model,
Promise,
Strophe,
_,
dayjs,
html,
log,
sizzle,
sprintf,
stanza_utils,
u,
}
}); });
/** /**
......
...@@ -42,6 +42,6 @@ ...@@ -42,6 +42,6 @@
"lodash-es": "^4.17.15", "lodash-es": "^4.17.15",
"pluggable.js": "2.0.1", "pluggable.js": "2.0.1",
"sprintf-js": "^1.1.2", "sprintf-js": "^1.1.2",
"strophe.js": "strophe/strophejs#ceb5640786dc60de4a13b18c9a263f2ef112874c" "strophe.js": "1.4.0"
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment