quiq-chat
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -84,2 +84,4 @@ 'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
// | ||
@@ -98,2 +100,4 @@ var parseResponse = function parseResponse(response) { | ||
var quiqLine = { 'X-Quiq-Line': '1' }; | ||
var joinChat$1 = function joinChat() { | ||
@@ -104,6 +108,6 @@ fetch(getUrlForContactPoint() + '/join', { | ||
method: 'POST', | ||
headers: { | ||
headers: _extends({ | ||
Accept: 'application/json', | ||
'Content-Type': 'application/json' | ||
} | ||
}, quiqLine) | ||
}); | ||
@@ -117,6 +121,6 @@ }; | ||
method: 'POST', | ||
headers: { | ||
headers: _extends({ | ||
Accept: 'application/json', | ||
'Content-Type': 'application/json' | ||
} | ||
}, quiqLine) | ||
}); | ||
@@ -130,6 +134,6 @@ }; | ||
method: 'POST', | ||
headers: { | ||
headers: _extends({ | ||
Accept: 'application/json', | ||
'Content-Type': 'application/json' | ||
}, | ||
}, quiqLine), | ||
body: JSON.stringify({ text: text }) | ||
@@ -142,3 +146,4 @@ }); | ||
mode: 'cors', | ||
credentials: 'include' | ||
credentials: 'include', | ||
headers: quiqLine | ||
}).then(parseResponse); | ||
@@ -155,3 +160,4 @@ }; | ||
mode: 'cors', | ||
credentials: 'include' | ||
credentials: 'include', | ||
headers: quiqLine | ||
}).then(parseResponse); | ||
@@ -165,6 +171,6 @@ }; | ||
method: 'POST', | ||
headers: { | ||
headers: _extends({ | ||
Accept: 'application/json', | ||
'Content-Type': 'application/json' | ||
}, | ||
}, quiqLine), | ||
body: JSON.stringify({ text: text, typing: typing }) | ||
@@ -180,10 +186,10 @@ }); | ||
mode: 'cors', | ||
headers: { | ||
headers: _extends({ | ||
Accept: 'application/json', | ||
'Content-Type': 'application/json' | ||
} | ||
}, quiqLine) | ||
}).then(parseResponse); | ||
}; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
@@ -206,2 +212,3 @@ // | ||
enableXDR: true, | ||
headers: { 'X-Quiq-Line': '1' }, | ||
withCredentials: true, | ||
@@ -213,3 +220,3 @@ contentType: 'application/json', | ||
trackMessageLength: true, | ||
maxReconnectOnClose: Number.MAX_SAFE_INTEGER, | ||
maxReconnectOnClose: 100, | ||
// Keep reconnectInterval at 10 seconds. Otherwise if API-GW drops the atmosphere connection, | ||
@@ -242,3 +249,3 @@ // we will hammer them with onReconnect requests. See SER-2620 | ||
connection = _extends({}, atmosphere.subscribe(buildRequest(socketUrl))); | ||
connection = _extends$1({}, atmosphere.subscribe(buildRequest(socketUrl))); | ||
}; | ||
@@ -245,0 +252,0 @@ |
@@ -1,6 +0,6 @@ | ||
{"/Users/norberg/quiq/quiq-chat/src/apiCalls.js": {"path":"/Users/norberg/quiq/quiq-chat/src/apiCalls.js","statementMap":{"0":{"start":{"line":7,"column":22},"end":{"line":13,"column":1}},"1":{"start":{"line":8,"column":2},"end":{"line":10,"column":3}},"2":{"start":{"line":9,"column":4},"end":{"line":9,"column":94}},"3":{"start":{"line":9,"column":39},"end":{"line":9,"column":58}},"4":{"start":{"line":9,"column":73},"end":{"line":9,"column":92}},"5":{"start":{"line":12,"column":2},"end":{"line":12,"column":25}},"6":{"start":{"line":15,"column":24},"end":{"line":25,"column":1}},"7":{"start":{"line":16,"column":2},"end":{"line":24,"column":5}},"8":{"start":{"line":27,"column":25},"end":{"line":37,"column":1}},"9":{"start":{"line":28,"column":2},"end":{"line":36,"column":5}},"10":{"start":{"line":39,"column":26},"end":{"line":50,"column":1}},"11":{"start":{"line":40,"column":2},"end":{"line":49,"column":5}},"12":{"start":{"line":52,"column":34},"end":{"line":56,"column":24}},"13":{"start":{"line":53,"column":2},"end":{"line":56,"column":24}},"14":{"start":{"line":59,"column":20},"end":{"line":59,"column":46}},"15":{"start":{"line":59,"column":26},"end":{"line":59,"column":46}},"16":{"start":{"line":61,"column":33},"end":{"line":65,"column":24}},"17":{"start":{"line":62,"column":2},"end":{"line":65,"column":24}},"18":{"start":{"line":67,"column":36},"end":{"line":78,"column":1}},"19":{"start":{"line":68,"column":2},"end":{"line":77,"column":5}},"20":{"start":{"line":80,"column":30},"end":{"line":93,"column":23}},"21":{"start":{"line":81,"column":2},"end":{"line":93,"column":23}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":7,"column":22},"end":{"line":7,"column":23}},"loc":{"start":{"line":7,"column":58},"end":{"line":13,"column":1}},"line":7},"1":{"name":"(anonymous_1)","decl":{"start":{"line":9,"column":32},"end":{"line":9,"column":33}},"loc":{"start":{"line":9,"column":39},"end":{"line":9,"column":58}},"line":9},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":66},"end":{"line":9,"column":67}},"loc":{"start":{"line":9,"column":73},"end":{"line":9,"column":92}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":15,"column":24},"end":{"line":15,"column":25}},"loc":{"start":{"line":15,"column":30},"end":{"line":25,"column":1}},"line":15},"4":{"name":"(anonymous_4)","decl":{"start":{"line":27,"column":25},"end":{"line":27,"column":26}},"loc":{"start":{"line":27,"column":31},"end":{"line":37,"column":1}},"line":27},"5":{"name":"(anonymous_5)","decl":{"start":{"line":39,"column":26},"end":{"line":39,"column":27}},"loc":{"start":{"line":39,"column":44},"end":{"line":50,"column":1}},"line":39},"6":{"name":"(anonymous_6)","decl":{"start":{"line":52,"column":34},"end":{"line":52,"column":35}},"loc":{"start":{"line":53,"column":2},"end":{"line":56,"column":24}},"line":53},"7":{"name":"(anonymous_7)","decl":{"start":{"line":59,"column":20},"end":{"line":59,"column":21}},"loc":{"start":{"line":59,"column":26},"end":{"line":59,"column":46}},"line":59},"8":{"name":"(anonymous_8)","decl":{"start":{"line":61,"column":33},"end":{"line":61,"column":34}},"loc":{"start":{"line":62,"column":2},"end":{"line":65,"column":24}},"line":62},"9":{"name":"(anonymous_9)","decl":{"start":{"line":67,"column":36},"end":{"line":67,"column":37}},"loc":{"start":{"line":67,"column":71},"end":{"line":78,"column":1}},"line":67},"10":{"name":"(anonymous_10)","decl":{"start":{"line":80,"column":30},"end":{"line":80,"column":31}},"loc":{"start":{"line":81,"column":2},"end":{"line":93,"column":23}},"line":81}},"branchMap":{"0":{"loc":{"start":{"line":8,"column":2},"end":{"line":10,"column":3}},"type":"if","locations":[{"start":{"line":8,"column":2},"end":{"line":10,"column":3}},{"start":{"line":8,"column":2},"end":{"line":10,"column":3}}],"line":8},"1":{"loc":{"start":{"line":8,"column":6},"end":{"line":8,"column":47}},"type":"binary-expr","locations":[{"start":{"line":8,"column":6},"end":{"line":8,"column":21}},{"start":{"line":8,"column":25},"end":{"line":8,"column":47}}],"line":8}},"s":{"0":2,"1":0,"2":0,"3":0,"4":0,"5":0,"6":2,"7":0,"8":2,"9":0,"10":2,"11":0,"12":2,"13":0,"14":2,"15":0,"16":2,"17":0,"18":2,"19":0,"20":2,"21":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"b":{"0":[0,0],"1":[0,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"992de58994ec57ef34699163fd5b1e46dccc8c83"} | ||
{"/Users/norberg/quiq/quiq-chat/src/apiCalls.js": {"path":"/Users/norberg/quiq/quiq-chat/src/apiCalls.js","statementMap":{"0":{"start":{"line":7,"column":22},"end":{"line":13,"column":1}},"1":{"start":{"line":8,"column":2},"end":{"line":10,"column":3}},"2":{"start":{"line":9,"column":4},"end":{"line":9,"column":94}},"3":{"start":{"line":9,"column":39},"end":{"line":9,"column":58}},"4":{"start":{"line":9,"column":73},"end":{"line":9,"column":92}},"5":{"start":{"line":12,"column":2},"end":{"line":12,"column":25}},"6":{"start":{"line":15,"column":17},"end":{"line":15,"column":37}},"7":{"start":{"line":17,"column":24},"end":{"line":28,"column":1}},"8":{"start":{"line":18,"column":2},"end":{"line":27,"column":5}},"9":{"start":{"line":30,"column":25},"end":{"line":41,"column":1}},"10":{"start":{"line":31,"column":2},"end":{"line":40,"column":5}},"11":{"start":{"line":43,"column":26},"end":{"line":55,"column":1}},"12":{"start":{"line":44,"column":2},"end":{"line":54,"column":5}},"13":{"start":{"line":57,"column":34},"end":{"line":62,"column":24}},"14":{"start":{"line":58,"column":2},"end":{"line":62,"column":24}},"15":{"start":{"line":65,"column":20},"end":{"line":65,"column":46}},"16":{"start":{"line":65,"column":26},"end":{"line":65,"column":46}},"17":{"start":{"line":67,"column":33},"end":{"line":72,"column":24}},"18":{"start":{"line":68,"column":2},"end":{"line":72,"column":24}},"19":{"start":{"line":74,"column":36},"end":{"line":86,"column":1}},"20":{"start":{"line":75,"column":2},"end":{"line":85,"column":5}},"21":{"start":{"line":88,"column":30},"end":{"line":102,"column":23}},"22":{"start":{"line":89,"column":2},"end":{"line":102,"column":23}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":7,"column":22},"end":{"line":7,"column":23}},"loc":{"start":{"line":7,"column":58},"end":{"line":13,"column":1}},"line":7},"1":{"name":"(anonymous_1)","decl":{"start":{"line":9,"column":32},"end":{"line":9,"column":33}},"loc":{"start":{"line":9,"column":39},"end":{"line":9,"column":58}},"line":9},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":66},"end":{"line":9,"column":67}},"loc":{"start":{"line":9,"column":73},"end":{"line":9,"column":92}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":17,"column":24},"end":{"line":17,"column":25}},"loc":{"start":{"line":17,"column":30},"end":{"line":28,"column":1}},"line":17},"4":{"name":"(anonymous_4)","decl":{"start":{"line":30,"column":25},"end":{"line":30,"column":26}},"loc":{"start":{"line":30,"column":31},"end":{"line":41,"column":1}},"line":30},"5":{"name":"(anonymous_5)","decl":{"start":{"line":43,"column":26},"end":{"line":43,"column":27}},"loc":{"start":{"line":43,"column":44},"end":{"line":55,"column":1}},"line":43},"6":{"name":"(anonymous_6)","decl":{"start":{"line":57,"column":34},"end":{"line":57,"column":35}},"loc":{"start":{"line":58,"column":2},"end":{"line":62,"column":24}},"line":58},"7":{"name":"(anonymous_7)","decl":{"start":{"line":65,"column":20},"end":{"line":65,"column":21}},"loc":{"start":{"line":65,"column":26},"end":{"line":65,"column":46}},"line":65},"8":{"name":"(anonymous_8)","decl":{"start":{"line":67,"column":33},"end":{"line":67,"column":34}},"loc":{"start":{"line":68,"column":2},"end":{"line":72,"column":24}},"line":68},"9":{"name":"(anonymous_9)","decl":{"start":{"line":74,"column":36},"end":{"line":74,"column":37}},"loc":{"start":{"line":74,"column":71},"end":{"line":86,"column":1}},"line":74},"10":{"name":"(anonymous_10)","decl":{"start":{"line":88,"column":30},"end":{"line":88,"column":31}},"loc":{"start":{"line":89,"column":2},"end":{"line":102,"column":23}},"line":89}},"branchMap":{"0":{"loc":{"start":{"line":8,"column":2},"end":{"line":10,"column":3}},"type":"if","locations":[{"start":{"line":8,"column":2},"end":{"line":10,"column":3}},{"start":{"line":8,"column":2},"end":{"line":10,"column":3}}],"line":8},"1":{"loc":{"start":{"line":8,"column":6},"end":{"line":8,"column":47}},"type":"binary-expr","locations":[{"start":{"line":8,"column":6},"end":{"line":8,"column":21}},{"start":{"line":8,"column":25},"end":{"line":8,"column":47}}],"line":8}},"s":{"0":2,"1":0,"2":0,"3":0,"4":0,"5":0,"6":2,"7":2,"8":0,"9":2,"10":0,"11":2,"12":0,"13":2,"14":0,"15":2,"16":0,"17":2,"18":0,"19":2,"20":0,"21":2,"22":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"b":{"0":[0,0],"1":[0,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"1a7fd0c1819f83eec736dc87823f8e8e399f1c83"} | ||
,"/Users/norberg/quiq/quiq-chat/src/globals.js": {"path":"/Users/norberg/quiq/quiq-chat/src/globals.js","statementMap":{"0":{"start":{"line":6,"column":26},"end":{"line":8,"column":1}},"1":{"start":{"line":7,"column":2},"end":{"line":7,"column":29}},"2":{"start":{"line":10,"column":37},"end":{"line":19,"column":1}},"3":{"start":{"line":11,"column":2},"end":{"line":18,"column":3}},"4":{"start":{"line":12,"column":4},"end":{"line":17,"column":6}},"5":{"start":{"line":21,"column":23},"end":{"line":21,"column":50}},"6":{"start":{"line":21,"column":29},"end":{"line":21,"column":50}},"7":{"start":{"line":23,"column":31},"end":{"line":23,"column":67}},"8":{"start":{"line":23,"column":37},"end":{"line":23,"column":67}},"9":{"start":{"line":25,"column":31},"end":{"line":25,"column":80}},"10":{"start":{"line":25,"column":37},"end":{"line":25,"column":80}},"11":{"start":{"line":27,"column":37},"end":{"line":28,"column":84}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":84}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":26},"end":{"line":6,"column":27}},"loc":{"start":{"line":6,"column":57},"end":{"line":8,"column":1}},"line":6},"1":{"name":"(anonymous_1)","decl":{"start":{"line":10,"column":37},"end":{"line":10,"column":38}},"loc":{"start":{"line":10,"column":43},"end":{"line":19,"column":1}},"line":10},"2":{"name":"(anonymous_2)","decl":{"start":{"line":21,"column":23},"end":{"line":21,"column":24}},"loc":{"start":{"line":21,"column":29},"end":{"line":21,"column":50}},"line":21},"3":{"name":"(anonymous_3)","decl":{"start":{"line":23,"column":31},"end":{"line":23,"column":32}},"loc":{"start":{"line":23,"column":37},"end":{"line":23,"column":67}},"line":23},"4":{"name":"(anonymous_4)","decl":{"start":{"line":25,"column":31},"end":{"line":25,"column":32}},"loc":{"start":{"line":25,"column":37},"end":{"line":25,"column":80}},"line":25},"5":{"name":"(anonymous_5)","decl":{"start":{"line":27,"column":37},"end":{"line":27,"column":38}},"loc":{"start":{"line":28,"column":2},"end":{"line":28,"column":84}},"line":28}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":2},"end":{"line":18,"column":3}},"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":18,"column":3}},{"start":{"line":11,"column":2},"end":{"line":18,"column":3}}],"line":11},"1":{"loc":{"start":{"line":11,"column":6},"end":{"line":11,"column":84}},"type":"binary-expr","locations":[{"start":{"line":11,"column":6},"end":{"line":11,"column":23}},{"start":{"line":11,"column":27},"end":{"line":11,"column":49}},{"start":{"line":11,"column":53},"end":{"line":11,"column":84}}],"line":11}},"s":{"0":3,"1":1,"2":3,"3":2,"4":1,"5":3,"6":1,"7":3,"8":1,"9":3,"10":1,"11":3,"12":1},"f":{"0":1,"1":2,"2":1,"3":1,"4":1,"5":1},"b":{"0":[1,1],"1":[2,1,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"27b78d07eb7b08f43178cad044d5dd4024e3bf43"} | ||
,"/Users/norberg/quiq/quiq-chat/src/index.js": {"path":"/Users/norberg/quiq/quiq-chat/src/index.js","statementMap":{"0":{"start":{"line":7,"column":20},"end":{"line":15,"column":1}},"1":{"start":{"line":8,"column":19},"end":{"line":10,"column":3}},"2":{"start":{"line":12,"column":18},"end":{"line":12,"column":55}},"3":{"start":{"line":14,"column":2},"end":{"line":14,"column":22}},"4":{"start":{"line":17,"column":25},"end":{"line":21,"column":1}},"5":{"start":{"line":18,"column":2},"end":{"line":18,"column":26}},"6":{"start":{"line":19,"column":32},"end":{"line":19,"column":62}},"7":{"start":{"line":20,"column":2},"end":{"line":20,"column":52}},"8":{"start":{"line":23,"column":27},"end":{"line":26,"column":1}},"9":{"start":{"line":24,"column":2},"end":{"line":24,"column":26}},"10":{"start":{"line":25,"column":2},"end":{"line":25,"column":21}},"11":{"start":{"line":28,"column":24},"end":{"line":31,"column":1}},"12":{"start":{"line":29,"column":2},"end":{"line":29,"column":26}},"13":{"start":{"line":30,"column":2},"end":{"line":30,"column":24}},"14":{"start":{"line":33,"column":25},"end":{"line":36,"column":1}},"15":{"start":{"line":34,"column":2},"end":{"line":34,"column":26}},"16":{"start":{"line":35,"column":2},"end":{"line":35,"column":25}},"17":{"start":{"line":38,"column":26},"end":{"line":41,"column":1}},"18":{"start":{"line":39,"column":2},"end":{"line":39,"column":26}},"19":{"start":{"line":40,"column":2},"end":{"line":40,"column":30}},"20":{"start":{"line":43,"column":33},"end":{"line":46,"column":1}},"21":{"start":{"line":44,"column":2},"end":{"line":44,"column":26}},"22":{"start":{"line":45,"column":2},"end":{"line":45,"column":33}},"23":{"start":{"line":48,"column":36},"end":{"line":51,"column":1}},"24":{"start":{"line":49,"column":2},"end":{"line":49,"column":26}},"25":{"start":{"line":50,"column":2},"end":{"line":50,"column":48}},"26":{"start":{"line":53,"column":30},"end":{"line":56,"column":1}},"27":{"start":{"line":54,"column":2},"end":{"line":54,"column":26}},"28":{"start":{"line":55,"column":2},"end":{"line":55,"column":30}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":7,"column":20},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":74},"end":{"line":15,"column":1}},"line":7},"1":{"name":"(anonymous_1)","decl":{"start":{"line":17,"column":25},"end":{"line":17,"column":26}},"loc":{"start":{"line":17,"column":66},"end":{"line":21,"column":1}},"line":17},"2":{"name":"(anonymous_2)","decl":{"start":{"line":23,"column":27},"end":{"line":23,"column":28}},"loc":{"start":{"line":23,"column":33},"end":{"line":26,"column":1}},"line":23},"3":{"name":"(anonymous_3)","decl":{"start":{"line":28,"column":24},"end":{"line":28,"column":25}},"loc":{"start":{"line":28,"column":30},"end":{"line":31,"column":1}},"line":28},"4":{"name":"(anonymous_4)","decl":{"start":{"line":33,"column":25},"end":{"line":33,"column":26}},"loc":{"start":{"line":33,"column":31},"end":{"line":36,"column":1}},"line":33},"5":{"name":"(anonymous_5)","decl":{"start":{"line":38,"column":26},"end":{"line":38,"column":27}},"loc":{"start":{"line":38,"column":44},"end":{"line":41,"column":1}},"line":38},"6":{"name":"(anonymous_6)","decl":{"start":{"line":43,"column":33},"end":{"line":43,"column":34}},"loc":{"start":{"line":43,"column":39},"end":{"line":46,"column":1}},"line":43},"7":{"name":"(anonymous_7)","decl":{"start":{"line":48,"column":36},"end":{"line":48,"column":37}},"loc":{"start":{"line":48,"column":71},"end":{"line":51,"column":1}},"line":48},"8":{"name":"(anonymous_8)","decl":{"start":{"line":53,"column":30},"end":{"line":53,"column":31}},"loc":{"start":{"line":53,"column":36},"end":{"line":56,"column":1}},"line":53}},"branchMap":{},"s":{"0":1,"1":2,"2":2,"3":2,"4":1,"5":1,"6":1,"7":1,"8":1,"9":0,"10":0,"11":1,"12":0,"13":0,"14":1,"15":0,"16":0,"17":1,"18":0,"19":0,"20":1,"21":0,"22":0,"23":1,"24":0,"25":0,"26":1,"27":0,"28":0},"f":{"0":2,"1":1,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"cbf06c119487157223d23ce30186de1292eb66c9"} | ||
,"/Users/norberg/quiq/quiq-chat/src/utils.js": {"path":"/Users/norberg/quiq/quiq-chat/src/utils.js","statementMap":{"0":{"start":{"line":8,"column":33},"end":{"line":31,"column":1}},"1":{"start":{"line":9,"column":23},"end":{"line":9,"column":25}},"2":{"start":{"line":11,"column":2},"end":{"line":13,"column":3}},"3":{"start":{"line":12,"column":4},"end":{"line":12,"column":15}},"4":{"start":{"line":15,"column":2},"end":{"line":24,"column":5}},"5":{"start":{"line":16,"column":18},"end":{"line":16,"column":29}},"6":{"start":{"line":19,"column":4},"end":{"line":23,"column":5}},"7":{"start":{"line":20,"column":6},"end":{"line":20,"column":58}},"8":{"start":{"line":20,"column":42},"end":{"line":20,"column":55}},"9":{"start":{"line":21,"column":11},"end":{"line":23,"column":5}},"10":{"start":{"line":22,"column":6},"end":{"line":22,"column":43}},"11":{"start":{"line":26,"column":2},"end":{"line":28,"column":3}},"12":{"start":{"line":27,"column":4},"end":{"line":27,"column":15}},"13":{"start":{"line":30,"column":2},"end":{"line":30,"column":44}},"14":{"start":{"line":33,"column":15},"end":{"line":33,"column":29}},"15":{"start":{"line":34,"column":23},"end":{"line":34,"column":74}},"16":{"start":{"line":34,"column":43},"end":{"line":34,"column":74}},"17":{"start":{"line":35,"column":17},"end":{"line":35,"column":77}},"18":{"start":{"line":35,"column":31},"end":{"line":35,"column":77}},"19":{"start":{"line":37,"column":21},"end":{"line":37,"column":71}},"20":{"start":{"line":37,"column":27},"end":{"line":37,"column":71}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":33},"end":{"line":8,"column":34}},"loc":{"start":{"line":8,"column":74},"end":{"line":31,"column":1}},"line":8},"1":{"name":"(anonymous_1)","decl":{"start":{"line":15,"column":30},"end":{"line":15,"column":31}},"loc":{"start":{"line":15,"column":44},"end":{"line":24,"column":3}},"line":15},"2":{"name":"(anonymous_2)","decl":{"start":{"line":20,"column":37},"end":{"line":20,"column":38}},"loc":{"start":{"line":20,"column":42},"end":{"line":20,"column":55}},"line":20},"3":{"name":"(anonymous_3)","decl":{"start":{"line":34,"column":23},"end":{"line":34,"column":24}},"loc":{"start":{"line":34,"column":43},"end":{"line":34,"column":74}},"line":34},"4":{"name":"(anonymous_4)","decl":{"start":{"line":35,"column":17},"end":{"line":35,"column":18}},"loc":{"start":{"line":35,"column":31},"end":{"line":35,"column":77}},"line":35},"5":{"name":"(anonymous_5)","decl":{"start":{"line":37,"column":21},"end":{"line":37,"column":22}},"loc":{"start":{"line":37,"column":27},"end":{"line":37,"column":71}},"line":37}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":2},"end":{"line":13,"column":3}},"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":13,"column":3}},{"start":{"line":11,"column":2},"end":{"line":13,"column":3}}],"line":11},"1":{"loc":{"start":{"line":19,"column":4},"end":{"line":23,"column":5}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":23,"column":5}},{"start":{"line":19,"column":4},"end":{"line":23,"column":5}}],"line":19},"2":{"loc":{"start":{"line":21,"column":11},"end":{"line":23,"column":5}},"type":"if","locations":[{"start":{"line":21,"column":11},"end":{"line":23,"column":5}},{"start":{"line":21,"column":11},"end":{"line":23,"column":5}}],"line":21},"3":{"loc":{"start":{"line":26,"column":2},"end":{"line":28,"column":3}},"type":"if","locations":[{"start":{"line":26,"column":2},"end":{"line":28,"column":3}},{"start":{"line":26,"column":2},"end":{"line":28,"column":3}}],"line":26},"4":{"loc":{"start":{"line":37,"column":27},"end":{"line":37,"column":71}},"type":"binary-expr","locations":[{"start":{"line":37,"column":27},"end":{"line":37,"column":52}},{"start":{"line":37,"column":56},"end":{"line":37,"column":71}}],"line":37}},"s":{"0":4,"1":2,"2":2,"3":0,"4":2,"5":4,"6":4,"7":1,"8":2,"9":3,"10":3,"11":2,"12":0,"13":2,"14":4,"15":4,"16":16,"17":4,"18":0,"19":4,"20":16},"f":{"0":2,"1":4,"2":2,"3":16,"4":0,"5":16},"b":{"0":[0,2],"1":[1,3],"2":[3,0],"3":[0,2],"4":[16,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"04e92848ca6246b5927d999761565a22bff0578d"} | ||
,"/Users/norberg/quiq/quiq-chat/src/websockets.js": {"path":"/Users/norberg/quiq/quiq-chat/src/websockets.js","statementMap":{"0":{"start":{"line":17,"column":21},"end":{"line":48,"column":1}},"1":{"start":{"line":19,"column":18},"end":{"line":19,"column":29}},"2":{"start":{"line":20,"column":2},"end":{"line":22,"column":3}},"3":{"start":{"line":21,"column":4},"end":{"line":21,"column":24}},"4":{"start":{"line":25,"column":2},"end":{"line":46,"column":4}},"5":{"start":{"line":50,"column":29},"end":{"line":61,"column":1}},"6":{"start":{"line":51,"column":53},"end":{"line":51,"column":60}},"7":{"start":{"line":53,"column":2},"end":{"line":53,"column":33}},"8":{"start":{"line":55,"column":2},"end":{"line":58,"column":3}},"9":{"start":{"line":57,"column":4},"end":{"line":57,"column":38}},"10":{"start":{"line":60,"column":2},"end":{"line":60,"column":66}},"11":{"start":{"line":63,"column":32},"end":{"line":65,"column":1}},"12":{"start":{"line":64,"column":2},"end":{"line":64,"column":27}},"13":{"start":{"line":68,"column":15},"end":{"line":72,"column":1}},"14":{"start":{"line":70,"column":2},"end":{"line":70,"column":50}},"15":{"start":{"line":71,"column":2},"end":{"line":71,"column":71}},"16":{"start":{"line":74,"column":17},"end":{"line":76,"column":1}},"17":{"start":{"line":75,"column":2},"end":{"line":75,"column":71}},"18":{"start":{"line":78,"column":20},"end":{"line":87,"column":1}},"19":{"start":{"line":81,"column":2},"end":{"line":81,"column":39}},"20":{"start":{"line":82,"column":2},"end":{"line":86,"column":3}},"21":{"start":{"line":83,"column":4},"end":{"line":85,"column":52}},"22":{"start":{"line":84,"column":6},"end":{"line":84,"column":13}},"23":{"start":{"line":89,"column":18},"end":{"line":98,"column":1}},"24":{"start":{"line":91,"column":2},"end":{"line":97,"column":3}},"25":{"start":{"line":92,"column":4},"end":{"line":92,"column":58}},"26":{"start":{"line":93,"column":4},"end":{"line":93,"column":56}},"27":{"start":{"line":95,"column":4},"end":{"line":95,"column":58}},"28":{"start":{"line":96,"column":4},"end":{"line":96,"column":11}},"29":{"start":{"line":100,"column":27},"end":{"line":102,"column":1}},"30":{"start":{"line":101,"column":2},"end":{"line":101,"column":78}},"31":{"start":{"line":104,"column":16},"end":{"line":106,"column":1}},"32":{"start":{"line":105,"column":2},"end":{"line":105,"column":61}},"33":{"start":{"line":108,"column":24},"end":{"line":110,"column":1}},"34":{"start":{"line":109,"column":2},"end":{"line":109,"column":61}},"35":{"start":{"line":112,"column":16},"end":{"line":114,"column":1}},"36":{"start":{"line":113,"column":2},"end":{"line":113,"column":43}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":17,"column":21},"end":{"line":17,"column":22}},"loc":{"start":{"line":17,"column":44},"end":{"line":48,"column":1}},"line":17},"1":{"name":"(anonymous_1)","decl":{"start":{"line":50,"column":29},"end":{"line":50,"column":30}},"loc":{"start":{"line":50,"column":71},"end":{"line":61,"column":1}},"line":50},"2":{"name":"(anonymous_2)","decl":{"start":{"line":63,"column":32},"end":{"line":63,"column":33}},"loc":{"start":{"line":63,"column":38},"end":{"line":65,"column":1}},"line":63},"3":{"name":"(anonymous_3)","decl":{"start":{"line":68,"column":15},"end":{"line":68,"column":16}},"loc":{"start":{"line":68,"column":27},"end":{"line":72,"column":1}},"line":68},"4":{"name":"(anonymous_4)","decl":{"start":{"line":74,"column":17},"end":{"line":74,"column":18}},"loc":{"start":{"line":74,"column":23},"end":{"line":76,"column":1}},"line":74},"5":{"name":"(anonymous_5)","decl":{"start":{"line":78,"column":20},"end":{"line":78,"column":21}},"loc":{"start":{"line":78,"column":48},"end":{"line":87,"column":1}},"line":78},"6":{"name":"(anonymous_6)","decl":{"start":{"line":83,"column":40},"end":{"line":83,"column":41}},"loc":{"start":{"line":83,"column":46},"end":{"line":85,"column":5}},"line":83},"7":{"name":"(anonymous_7)","decl":{"start":{"line":89,"column":18},"end":{"line":89,"column":19}},"loc":{"start":{"line":89,"column":25},"end":{"line":98,"column":1}},"line":89},"8":{"name":"(anonymous_8)","decl":{"start":{"line":100,"column":27},"end":{"line":100,"column":28}},"loc":{"start":{"line":100,"column":73},"end":{"line":102,"column":1}},"line":100},"9":{"name":"(anonymous_9)","decl":{"start":{"line":104,"column":16},"end":{"line":104,"column":17}},"loc":{"start":{"line":104,"column":22},"end":{"line":106,"column":1}},"line":104},"10":{"name":"(anonymous_10)","decl":{"start":{"line":108,"column":24},"end":{"line":108,"column":25}},"loc":{"start":{"line":108,"column":30},"end":{"line":110,"column":1}},"line":108},"11":{"name":"(anonymous_11)","decl":{"start":{"line":112,"column":16},"end":{"line":112,"column":17}},"loc":{"start":{"line":112,"column":22},"end":{"line":114,"column":1}},"line":112}},"branchMap":{"0":{"loc":{"start":{"line":20,"column":2},"end":{"line":22,"column":3}},"type":"if","locations":[{"start":{"line":20,"column":2},"end":{"line":22,"column":3}},{"start":{"line":20,"column":2},"end":{"line":22,"column":3}}],"line":20},"1":{"loc":{"start":{"line":55,"column":2},"end":{"line":58,"column":3}},"type":"if","locations":[{"start":{"line":55,"column":2},"end":{"line":58,"column":3}},{"start":{"line":55,"column":2},"end":{"line":58,"column":3}}],"line":55},"2":{"loc":{"start":{"line":55,"column":6},"end":{"line":55,"column":25}},"type":"binary-expr","locations":[{"start":{"line":55,"column":6},"end":{"line":55,"column":13}},{"start":{"line":55,"column":17},"end":{"line":55,"column":25}}],"line":55},"3":{"loc":{"start":{"line":71,"column":2},"end":{"line":71,"column":70}},"type":"binary-expr","locations":[{"start":{"line":71,"column":2},"end":{"line":71,"column":33}},{"start":{"line":71,"column":37},"end":{"line":71,"column":70}}],"line":71},"4":{"loc":{"start":{"line":75,"column":2},"end":{"line":75,"column":70}},"type":"binary-expr","locations":[{"start":{"line":75,"column":2},"end":{"line":75,"column":33}},{"start":{"line":75,"column":37},"end":{"line":75,"column":70}}],"line":75},"5":{"loc":{"start":{"line":82,"column":2},"end":{"line":86,"column":3}},"type":"if","locations":[{"start":{"line":82,"column":2},"end":{"line":86,"column":3}},{"start":{"line":82,"column":2},"end":{"line":86,"column":3}}],"line":82},"6":{"loc":{"start":{"line":93,"column":4},"end":{"line":93,"column":55}},"type":"binary-expr","locations":[{"start":{"line":93,"column":4},"end":{"line":93,"column":23}},{"start":{"line":93,"column":27},"end":{"line":93,"column":55}}],"line":93},"7":{"loc":{"start":{"line":101,"column":2},"end":{"line":101,"column":77}},"type":"binary-expr","locations":[{"start":{"line":101,"column":2},"end":{"line":101,"column":30}},{"start":{"line":101,"column":34},"end":{"line":101,"column":77}}],"line":101},"8":{"loc":{"start":{"line":105,"column":2},"end":{"line":105,"column":60}},"type":"binary-expr","locations":[{"start":{"line":105,"column":2},"end":{"line":105,"column":28}},{"start":{"line":105,"column":32},"end":{"line":105,"column":60}}],"line":105},"9":{"loc":{"start":{"line":109,"column":2},"end":{"line":109,"column":60}},"type":"binary-expr","locations":[{"start":{"line":109,"column":2},"end":{"line":109,"column":28}},{"start":{"line":109,"column":32},"end":{"line":109,"column":60}}],"line":109},"10":{"loc":{"start":{"line":113,"column":2},"end":{"line":113,"column":42}},"type":"binary-expr","locations":[{"start":{"line":113,"column":2},"end":{"line":113,"column":19}},{"start":{"line":113,"column":23},"end":{"line":113,"column":42}}],"line":113}},"s":{"0":2,"1":8,"2":8,"3":0,"4":8,"5":2,"6":8,"7":8,"8":8,"9":0,"10":8,"11":2,"12":0,"13":2,"14":1,"15":1,"16":2,"17":1,"18":2,"19":0,"20":0,"21":0,"22":0,"23":2,"24":1,"25":1,"26":1,"27":0,"28":0,"29":2,"30":1,"31":2,"32":1,"33":2,"34":1,"35":2,"36":1},"f":{"0":8,"1":8,"2":0,"3":1,"4":1,"5":0,"6":0,"7":1,"8":1,"9":1,"10":1,"11":1},"b":{"0":[0,8],"1":[0,8],"2":[8,0],"3":[1,1],"4":[1,1],"5":[0,0],"6":[1,1],"7":[1,1],"8":[1,1],"9":[1,1],"10":[1,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"b3fc12b45ea74febd18732b9fec1a36202f9441f"} | ||
,"/Users/norberg/quiq/quiq-chat/src/websockets.js": {"path":"/Users/norberg/quiq/quiq-chat/src/websockets.js","statementMap":{"0":{"start":{"line":17,"column":21},"end":{"line":49,"column":1}},"1":{"start":{"line":19,"column":18},"end":{"line":19,"column":29}},"2":{"start":{"line":20,"column":2},"end":{"line":22,"column":3}},"3":{"start":{"line":21,"column":4},"end":{"line":21,"column":24}},"4":{"start":{"line":25,"column":2},"end":{"line":47,"column":4}},"5":{"start":{"line":51,"column":29},"end":{"line":62,"column":1}},"6":{"start":{"line":52,"column":53},"end":{"line":52,"column":60}},"7":{"start":{"line":54,"column":2},"end":{"line":54,"column":33}},"8":{"start":{"line":56,"column":2},"end":{"line":59,"column":3}},"9":{"start":{"line":58,"column":4},"end":{"line":58,"column":38}},"10":{"start":{"line":61,"column":2},"end":{"line":61,"column":66}},"11":{"start":{"line":64,"column":32},"end":{"line":66,"column":1}},"12":{"start":{"line":65,"column":2},"end":{"line":65,"column":27}},"13":{"start":{"line":69,"column":15},"end":{"line":73,"column":1}},"14":{"start":{"line":71,"column":2},"end":{"line":71,"column":50}},"15":{"start":{"line":72,"column":2},"end":{"line":72,"column":71}},"16":{"start":{"line":75,"column":17},"end":{"line":77,"column":1}},"17":{"start":{"line":76,"column":2},"end":{"line":76,"column":71}},"18":{"start":{"line":79,"column":20},"end":{"line":88,"column":1}},"19":{"start":{"line":82,"column":2},"end":{"line":82,"column":39}},"20":{"start":{"line":83,"column":2},"end":{"line":87,"column":3}},"21":{"start":{"line":84,"column":4},"end":{"line":86,"column":52}},"22":{"start":{"line":85,"column":6},"end":{"line":85,"column":13}},"23":{"start":{"line":90,"column":18},"end":{"line":99,"column":1}},"24":{"start":{"line":92,"column":2},"end":{"line":98,"column":3}},"25":{"start":{"line":93,"column":4},"end":{"line":93,"column":58}},"26":{"start":{"line":94,"column":4},"end":{"line":94,"column":56}},"27":{"start":{"line":96,"column":4},"end":{"line":96,"column":58}},"28":{"start":{"line":97,"column":4},"end":{"line":97,"column":11}},"29":{"start":{"line":101,"column":27},"end":{"line":103,"column":1}},"30":{"start":{"line":102,"column":2},"end":{"line":102,"column":78}},"31":{"start":{"line":105,"column":16},"end":{"line":107,"column":1}},"32":{"start":{"line":106,"column":2},"end":{"line":106,"column":61}},"33":{"start":{"line":109,"column":24},"end":{"line":111,"column":1}},"34":{"start":{"line":110,"column":2},"end":{"line":110,"column":61}},"35":{"start":{"line":113,"column":16},"end":{"line":115,"column":1}},"36":{"start":{"line":114,"column":2},"end":{"line":114,"column":43}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":17,"column":21},"end":{"line":17,"column":22}},"loc":{"start":{"line":17,"column":44},"end":{"line":49,"column":1}},"line":17},"1":{"name":"(anonymous_1)","decl":{"start":{"line":51,"column":29},"end":{"line":51,"column":30}},"loc":{"start":{"line":51,"column":71},"end":{"line":62,"column":1}},"line":51},"2":{"name":"(anonymous_2)","decl":{"start":{"line":64,"column":32},"end":{"line":64,"column":33}},"loc":{"start":{"line":64,"column":38},"end":{"line":66,"column":1}},"line":64},"3":{"name":"(anonymous_3)","decl":{"start":{"line":69,"column":15},"end":{"line":69,"column":16}},"loc":{"start":{"line":69,"column":27},"end":{"line":73,"column":1}},"line":69},"4":{"name":"(anonymous_4)","decl":{"start":{"line":75,"column":17},"end":{"line":75,"column":18}},"loc":{"start":{"line":75,"column":23},"end":{"line":77,"column":1}},"line":75},"5":{"name":"(anonymous_5)","decl":{"start":{"line":79,"column":20},"end":{"line":79,"column":21}},"loc":{"start":{"line":79,"column":48},"end":{"line":88,"column":1}},"line":79},"6":{"name":"(anonymous_6)","decl":{"start":{"line":84,"column":40},"end":{"line":84,"column":41}},"loc":{"start":{"line":84,"column":46},"end":{"line":86,"column":5}},"line":84},"7":{"name":"(anonymous_7)","decl":{"start":{"line":90,"column":18},"end":{"line":90,"column":19}},"loc":{"start":{"line":90,"column":25},"end":{"line":99,"column":1}},"line":90},"8":{"name":"(anonymous_8)","decl":{"start":{"line":101,"column":27},"end":{"line":101,"column":28}},"loc":{"start":{"line":101,"column":73},"end":{"line":103,"column":1}},"line":101},"9":{"name":"(anonymous_9)","decl":{"start":{"line":105,"column":16},"end":{"line":105,"column":17}},"loc":{"start":{"line":105,"column":22},"end":{"line":107,"column":1}},"line":105},"10":{"name":"(anonymous_10)","decl":{"start":{"line":109,"column":24},"end":{"line":109,"column":25}},"loc":{"start":{"line":109,"column":30},"end":{"line":111,"column":1}},"line":109},"11":{"name":"(anonymous_11)","decl":{"start":{"line":113,"column":16},"end":{"line":113,"column":17}},"loc":{"start":{"line":113,"column":22},"end":{"line":115,"column":1}},"line":113}},"branchMap":{"0":{"loc":{"start":{"line":20,"column":2},"end":{"line":22,"column":3}},"type":"if","locations":[{"start":{"line":20,"column":2},"end":{"line":22,"column":3}},{"start":{"line":20,"column":2},"end":{"line":22,"column":3}}],"line":20},"1":{"loc":{"start":{"line":56,"column":2},"end":{"line":59,"column":3}},"type":"if","locations":[{"start":{"line":56,"column":2},"end":{"line":59,"column":3}},{"start":{"line":56,"column":2},"end":{"line":59,"column":3}}],"line":56},"2":{"loc":{"start":{"line":56,"column":6},"end":{"line":56,"column":25}},"type":"binary-expr","locations":[{"start":{"line":56,"column":6},"end":{"line":56,"column":13}},{"start":{"line":56,"column":17},"end":{"line":56,"column":25}}],"line":56},"3":{"loc":{"start":{"line":72,"column":2},"end":{"line":72,"column":70}},"type":"binary-expr","locations":[{"start":{"line":72,"column":2},"end":{"line":72,"column":33}},{"start":{"line":72,"column":37},"end":{"line":72,"column":70}}],"line":72},"4":{"loc":{"start":{"line":76,"column":2},"end":{"line":76,"column":70}},"type":"binary-expr","locations":[{"start":{"line":76,"column":2},"end":{"line":76,"column":33}},{"start":{"line":76,"column":37},"end":{"line":76,"column":70}}],"line":76},"5":{"loc":{"start":{"line":83,"column":2},"end":{"line":87,"column":3}},"type":"if","locations":[{"start":{"line":83,"column":2},"end":{"line":87,"column":3}},{"start":{"line":83,"column":2},"end":{"line":87,"column":3}}],"line":83},"6":{"loc":{"start":{"line":94,"column":4},"end":{"line":94,"column":55}},"type":"binary-expr","locations":[{"start":{"line":94,"column":4},"end":{"line":94,"column":23}},{"start":{"line":94,"column":27},"end":{"line":94,"column":55}}],"line":94},"7":{"loc":{"start":{"line":102,"column":2},"end":{"line":102,"column":77}},"type":"binary-expr","locations":[{"start":{"line":102,"column":2},"end":{"line":102,"column":30}},{"start":{"line":102,"column":34},"end":{"line":102,"column":77}}],"line":102},"8":{"loc":{"start":{"line":106,"column":2},"end":{"line":106,"column":60}},"type":"binary-expr","locations":[{"start":{"line":106,"column":2},"end":{"line":106,"column":28}},{"start":{"line":106,"column":32},"end":{"line":106,"column":60}}],"line":106},"9":{"loc":{"start":{"line":110,"column":2},"end":{"line":110,"column":60}},"type":"binary-expr","locations":[{"start":{"line":110,"column":2},"end":{"line":110,"column":28}},{"start":{"line":110,"column":32},"end":{"line":110,"column":60}}],"line":110},"10":{"loc":{"start":{"line":114,"column":2},"end":{"line":114,"column":42}},"type":"binary-expr","locations":[{"start":{"line":114,"column":2},"end":{"line":114,"column":19}},{"start":{"line":114,"column":23},"end":{"line":114,"column":42}}],"line":114}},"s":{"0":2,"1":8,"2":8,"3":0,"4":8,"5":2,"6":8,"7":8,"8":8,"9":0,"10":8,"11":2,"12":0,"13":2,"14":1,"15":1,"16":2,"17":1,"18":2,"19":0,"20":0,"21":0,"22":0,"23":2,"24":1,"25":1,"26":1,"27":0,"28":0,"29":2,"30":1,"31":2,"32":1,"33":2,"34":1,"35":2,"36":1},"f":{"0":8,"1":8,"2":0,"3":1,"4":1,"5":0,"6":0,"7":1,"8":1,"9":1,"10":1,"11":1},"b":{"0":[0,8],"1":[0,8],"2":[8,0],"3":[1,1],"4":[1,1],"5":[0,0],"6":[1,1],"7":[1,1],"8":[1,1],"9":[1,1],"10":[1,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"eb30f90f2bcfdebd4eca27c23173873febc9a3f2"} | ||
} |
{ | ||
"name": "quiq-chat", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Library to help with network requests to create a webchat client for Quiq Messaging", | ||
@@ -5,0 +5,0 @@ "main": "build/quiq-chat.js", |
@@ -76,2 +76,5 @@ # quiq-chat [![Build Status](https://travis-ci.org/Quiq/quiq-chat.svg?branch=master)](https://travis-ci.org/Quiq/quiq-chat) [![npm version](https://badge.fury.io/js/quiq-chat.svg)](https://badge.fury.io/js/quiq-chat) | ||
### unsubscribe() => void | ||
Unsubscribes from the current websocket connection | ||
### fetchConversation() => Promise\<Conversation\> | ||
@@ -78,0 +81,0 @@ Fetches the current conversation object from Quiq |
@@ -15,2 +15,4 @@ // @flow | ||
const quiqLine = {'X-Quiq-Line': '1'}; | ||
export const joinChat = () => { | ||
@@ -24,2 +26,3 @@ fetch(`${getUrlForContactPoint()}/join`, { | ||
'Content-Type': 'application/json', | ||
...quiqLine, | ||
}, | ||
@@ -37,2 +40,3 @@ }); | ||
'Content-Type': 'application/json', | ||
...quiqLine, | ||
}, | ||
@@ -50,2 +54,3 @@ }); | ||
'Content-Type': 'application/json', | ||
...quiqLine, | ||
}, | ||
@@ -60,2 +65,3 @@ body: JSON.stringify({text}), | ||
credentials: 'include', | ||
headers: quiqLine, | ||
}).then(parseResponse); | ||
@@ -70,2 +76,3 @@ | ||
credentials: 'include', | ||
headers: quiqLine, | ||
}).then(parseResponse); | ||
@@ -81,2 +88,3 @@ | ||
'Content-Type': 'application/json', | ||
...quiqLine, | ||
}, | ||
@@ -98,4 +106,5 @@ body: JSON.stringify({text, typing}), | ||
'Content-Type': 'application/json', | ||
...quiqLine, | ||
}, | ||
}, | ||
).then(parseResponse); |
@@ -28,2 +28,3 @@ // @flow | ||
enableXDR: true, | ||
headers: {'X-Quiq-Line': '1'}, | ||
withCredentials: true, | ||
@@ -35,3 +36,3 @@ contentType: 'application/json', | ||
trackMessageLength: true, | ||
maxReconnectOnClose: Number.MAX_SAFE_INTEGER, | ||
maxReconnectOnClose: 100, | ||
// Keep reconnectInterval at 10 seconds. Otherwise if API-GW drops the atmosphere connection, | ||
@@ -38,0 +39,0 @@ // we will hammer them with onReconnect requests. See SER-2620 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149588
1536
117