@cendarsoss/pusher-js 8.4.12 → 8.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node/pusher.js +8 -1
- package/dist/node/pusher.js.map +1 -1
- package/dist/web/pusher.mjs +8 -1
- package/dist/web/pusher.mjs.map +1 -1
- package/examples/test-trident.html +263 -0
- package/package.json +1 -1
- package/src/core/delta/manager.ts +11 -1
package/dist/node/pusher.js
CHANGED
|
@@ -3970,10 +3970,17 @@ class DeltaCompressionManager {
|
|
|
3970
3970
|
});
|
|
3971
3971
|
try {
|
|
3972
3972
|
const parsedMessage = JSON.parse(reconstructedMessage);
|
|
3973
|
+
let data = parsedMessage.data || parsedMessage;
|
|
3974
|
+
if (typeof data === "string") {
|
|
3975
|
+
try {
|
|
3976
|
+
data = JSON.parse(data);
|
|
3977
|
+
} catch (e) {
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3973
3980
|
return {
|
|
3974
3981
|
event,
|
|
3975
3982
|
channel,
|
|
3976
|
-
data
|
|
3983
|
+
data
|
|
3977
3984
|
};
|
|
3978
3985
|
} catch (e) {
|
|
3979
3986
|
return {
|