From 0715476862bed7f8b977a489f2a429d19bec5739 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 24 Oct 2018 23:25:19 +0200 Subject: [PATCH] Add package-log.json for headless build. Set to 4.0.4 This is probably fine as a patch release. Even tough files have been moved around, the API is still the same. --- CHANGES.md | 2 +- dist/converse.js | 6 +++++- package-lock.json | 10 +++------- package.json | 2 -- src/headless/package-lock.json | 32 ++++++++++++++++++++++++++++++++ src/headless/package.json | 2 +- 6 files changed, 42 insertions(+), 12 deletions(-) create mode 100644 src/headless/package-lock.json diff --git a/CHANGES.md b/CHANGES.md index 0a6f805d4..c28a9fbcd 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,6 @@ # Changelog -## 4.1.0 (Unreleased) +## 4.0.4 (Unreleased) - Use [Lerna](https://lernajs.io/) to create the @converse/headless package - Use ES2015 modules instead of UMD. diff --git a/dist/converse.js b/dist/converse.js index 484f7c2ff..f57d37aff 100644 --- a/dist/converse.js +++ b/dist/converse.js @@ -617,7 +617,7 @@ module.exports = Awesomplete; /** * Backbone localStorage and sessionStorage Adapter - * Version 0.0.3 + * Version 0.0.4 * * https://github.com/jcbrand/Backbone.browserStorage */ @@ -73249,6 +73249,8 @@ _converse.api = { */ 'send'(stanza) { _converse.connection.send(stanza); + + _converse.emit('send', stanza); }, /** @@ -73261,6 +73263,8 @@ _converse.api = { 'sendIQ'(stanza) { return new es6_promise_dist_es6_promise_auto__WEBPACK_IMPORTED_MODULE_2___default.a((resolve, reject) => { _converse.connection.sendIQ(stanza, resolve, reject, _converse.IQ_TIMEOUT); + + _converse.emit('send', stanza); }); } diff --git a/package-lock.json b/package-lock.json index 687fa115f..912084039 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3178,16 +3178,13 @@ "version": "1.3.3", "resolved": "https://registry.npmjs.org/backbone/-/backbone-1.3.3.tgz", "integrity": "sha1-TMgOp8sWMaxHSInOQPL4vGg7KZk=", - "dev": true, "requires": { "underscore": ">=1.8.3" } }, "backbone.browserStorage": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/backbone.browserStorage/-/backbone.browserStorage-0.0.4.tgz", - "integrity": "sha512-4LvDP2IkOu9Nt6kj6ft4moKmqKqm3c0WY3c/aie0Cf374wjFuO7vCh/afcKdu1YSuVsryM8yH90/J7yqWbaPHw==", - "dev": true, + "version": "github:jcbrand/Backbone.browserStorage#03bfa13f68b71f97be361840adc5a5064f57b47e", + "from": "github:jcbrand/Backbone.browserStorage#03bfa13f68b71f97be361840adc5a5064f57b47e", "requires": { "backbone": "~1.x.x", "underscore": ">=1.4.0" @@ -15220,8 +15217,7 @@ "underscore": { "version": "1.8.3", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", - "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=", - "dev": true + "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=" }, "underscore-contrib": { "version": "0.3.0", diff --git a/package.json b/package.json index d93a05624..49c616df3 100644 --- a/package.json +++ b/package.json @@ -39,8 +39,6 @@ "@fortawesome/fontawesome-free": "5.3.1", "awesomplete-avoid-xss": "^1.1.2", "babel-loader": "^8.0.0", - "backbone": "1.3.3", - "backbone.browserStorage": "jcbrand/Backbone.browserStorage#03bfa13f68b71f97be361840adc5a5064f57b47e", "backbone.nativeview": "^0.3.3", "backbone.overview": "^1.0.2", "backbone.vdomview": "^1.0.1", diff --git a/src/headless/package-lock.json b/src/headless/package-lock.json new file mode 100644 index 000000000..9cf207d30 --- /dev/null +++ b/src/headless/package-lock.json @@ -0,0 +1,32 @@ +{ + "name": "@converse/headless", + "version": "4.0.3", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "backbone.browserStorage": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/backbone.browserStorage/-/backbone.browserStorage-0.0.4.tgz", + "integrity": "sha512-4LvDP2IkOu9Nt6kj6ft4moKmqKqm3c0WY3c/aie0Cf374wjFuO7vCh/afcKdu1YSuVsryM8yH90/J7yqWbaPHw==", + "requires": { + "backbone": "~1.x.x", + "underscore": ">=1.4.0" + }, + "dependencies": { + "backbone": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/backbone/-/backbone-1.3.3.tgz", + "integrity": "sha1-TMgOp8sWMaxHSInOQPL4vGg7KZk=", + "requires": { + "underscore": ">=1.8.3" + } + }, + "underscore": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", + "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + } + } + } + } +} diff --git a/src/headless/package.json b/src/headless/package.json index 418accaab..6b55d1b2c 100644 --- a/src/headless/package.json +++ b/src/headless/package.json @@ -23,7 +23,7 @@ "gitHead": "9641dcdc820e029b05930479c242d2b707bbe8e2", "dependencies": { "backbone": "1.3.3", - "backbone.browserStorage": "0.0.4", + "backbone.browserStorage": "jcbrand/Backbone.browserStorage#03bfa13f68b71f97be361840adc5a5064f57b47e", "es6-promise": "^4.1.0", "filesize": "^3.6.1", "lodash": "^4.17.10",