From 8cc89c4d5b869a4a5a65f01bab38321203dfd0bb Mon Sep 17 00:00:00 2001 From: Dragos Horodnic Date: Mon, 26 Mar 2018 10:27:40 +0300 Subject: [PATCH 1/2] Fixed IE 11 issue and created package.json --- package.json | 19 +++++++++++++++++++ strophe.stream-management.js | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..422243b --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "strophejs-plugin-stream-management", + "version": "1.0.0", + "description": "Strophe.stream-management.js is a plugin that implements stream management on XMPP. ( XEP-0198 )", + "main": "strophe.stream-management.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/horodnicdragos/strophejs-plugin-stream-management.git" + }, + "author": "Strophe plugin developers", + "license": "MIT", + "bugs": { + "url": "https://github.com/horodnicdragos/strophejs-plugin-stream-management/issues" + }, + "homepage": "https://github.com/horodnicdragos/strophejs-plugin-stream-management#readme" +} diff --git a/strophe.stream-management.js b/strophe.stream-management.js index 73d933e..14dd24f 100644 --- a/strophe.stream-management.js +++ b/strophe.stream-management.js @@ -113,7 +113,7 @@ Strophe.addConnectionPlugin('streamManagement', { */ _acknowledgedStanzaListeners: [], - addAcknowledgedStanzaListener(listener) { + addAcknowledgedStanzaListener: function (listener) { this._acknowledgedStanzaListeners.push(listener); }, @@ -275,7 +275,7 @@ Strophe.addConnectionPlugin('streamManagement', { } }, - _throwError(msg) { + _throwError: function(msg) { console.error(msg); throw new Error(msg); } From dfc214640ad3221a5e3e4cf0a52be0224cbffda0 Mon Sep 17 00:00:00 2001 From: Dragos Horodnic Date: Sun, 27 Jan 2019 19:32:06 +0200 Subject: [PATCH 2/2] Revert to main repo URL --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 422243b..b739bd6 100644 --- a/package.json +++ b/package.json @@ -8,12 +8,12 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/horodnicdragos/strophejs-plugin-stream-management.git" + "url": "git+https://github.com/strophe/strophejs-plugin-stream-management.git" }, "author": "Strophe plugin developers", "license": "MIT", "bugs": { - "url": "https://github.com/horodnicdragos/strophejs-plugin-stream-management/issues" + "url": "https://github.com/strophe/strophejs-plugin-stream-management/issues" }, - "homepage": "https://github.com/horodnicdragos/strophejs-plugin-stream-management#readme" + "homepage": "https://github.com/strophe/strophejs-plugin-stream-management#readme" }