@openreplay/tracker 10.0.3 → 10.0.4

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.
Files changed (71) hide show
  1. package/cjs/app/index.js +1 -1
  2. package/cjs/index.js +1 -1
  3. package/cjs/modules/Network/fetchProxy.js +4 -2
  4. package/coverage/clover.xml +1331 -562
  5. package/coverage/coverage-final.json +13 -6
  6. package/coverage/lcov-report/index.html +49 -34
  7. package/coverage/lcov-report/main/app/canvas.ts.html +1 -1
  8. package/coverage/lcov-report/main/app/guards.ts.html +42 -42
  9. package/coverage/lcov-report/main/app/index.html +24 -24
  10. package/coverage/lcov-report/main/app/index.ts.html +1046 -56
  11. package/coverage/lcov-report/main/app/logger.ts.html +1 -1
  12. package/coverage/lcov-report/main/app/messages.gen.ts.html +1 -1
  13. package/coverage/lcov-report/main/app/nodes.ts.html +1 -1
  14. package/coverage/lcov-report/main/app/observer/iframe_observer.ts.html +1 -1
  15. package/coverage/lcov-report/main/app/observer/iframe_offsets.ts.html +1 -1
  16. package/coverage/lcov-report/main/app/observer/index.html +1 -1
  17. package/coverage/lcov-report/main/app/observer/shadow_root_observer.ts.html +1 -1
  18. package/coverage/lcov-report/main/app/observer/top_observer.ts.html +1 -1
  19. package/coverage/lcov-report/main/app/sanitizer.ts.html +1 -1
  20. package/coverage/lcov-report/main/app/session.ts.html +1 -1
  21. package/coverage/lcov-report/main/app/ticker.ts.html +1 -1
  22. package/coverage/lcov-report/main/index.html +11 -11
  23. package/coverage/lcov-report/main/index.ts.html +274 -100
  24. package/coverage/lcov-report/main/modules/Network/beaconProxy.ts.html +1 -1
  25. package/coverage/lcov-report/main/modules/Network/fetchProxy.ts.html +1 -1
  26. package/coverage/lcov-report/main/modules/Network/index.html +1 -1
  27. package/coverage/lcov-report/main/modules/Network/index.ts.html +1 -1
  28. package/coverage/lcov-report/main/modules/Network/networkMessage.ts.html +1 -1
  29. package/coverage/lcov-report/main/modules/Network/utils.ts.html +1 -1
  30. package/coverage/lcov-report/main/modules/Network/xhrProxy.ts.html +1 -1
  31. package/coverage/lcov-report/main/modules/attributeSender.ts.html +1 -1
  32. package/coverage/lcov-report/main/modules/axiosSpy.ts.html +1 -1
  33. package/coverage/lcov-report/main/modules/conditionsManager.ts.html +799 -0
  34. package/coverage/lcov-report/main/modules/connection.ts.html +1 -1
  35. package/coverage/lcov-report/main/modules/console.ts.html +1 -1
  36. package/coverage/lcov-report/main/modules/constructedStyleSheets.ts.html +1 -1
  37. package/coverage/lcov-report/main/modules/cssrules.ts.html +1 -1
  38. package/coverage/lcov-report/main/modules/exception.ts.html +1 -1
  39. package/coverage/lcov-report/main/modules/featureFlags.ts.html +10 -7
  40. package/coverage/lcov-report/main/modules/focus.ts.html +1 -1
  41. package/coverage/lcov-report/main/modules/fonts.ts.html +1 -1
  42. package/coverage/lcov-report/main/modules/img.ts.html +1 -1
  43. package/coverage/lcov-report/main/modules/index.html +27 -12
  44. package/coverage/lcov-report/main/modules/input.ts.html +1 -1
  45. package/coverage/lcov-report/main/modules/mouse.ts.html +1 -1
  46. package/coverage/lcov-report/main/modules/network.ts.html +1 -1
  47. package/coverage/lcov-report/main/modules/performance.ts.html +1 -1
  48. package/coverage/lcov-report/main/modules/scroll.ts.html +1 -1
  49. package/coverage/lcov-report/main/modules/selection.ts.html +1 -1
  50. package/coverage/lcov-report/main/modules/tabs.ts.html +1 -1
  51. package/coverage/lcov-report/main/modules/timing.ts.html +1 -1
  52. package/coverage/lcov-report/main/modules/userTesting/SignalManager.ts.html +370 -0
  53. package/coverage/lcov-report/main/modules/userTesting/dnd.ts.html +10 -22
  54. package/coverage/lcov-report/main/modules/userTesting/index.html +57 -27
  55. package/coverage/lcov-report/main/modules/userTesting/index.ts.html +814 -115
  56. package/coverage/lcov-report/main/modules/userTesting/recorder.ts.html +136 -67
  57. package/coverage/lcov-report/main/modules/userTesting/styles.ts.html +111 -39
  58. package/coverage/lcov-report/main/modules/userTesting/utils.ts.html +364 -0
  59. package/coverage/lcov-report/main/modules/viewport.ts.html +1 -1
  60. package/coverage/lcov-report/main/utils.ts.html +48 -6
  61. package/coverage/lcov-report/webworker/BatchWriter.ts.html +1 -1
  62. package/coverage/lcov-report/webworker/MessageEncoder.gen.ts.html +1 -1
  63. package/coverage/lcov-report/webworker/PrimitiveEncoder.ts.html +1 -1
  64. package/coverage/lcov-report/webworker/QueueSender.ts.html +1 -1
  65. package/coverage/lcov-report/webworker/index.html +5 -5
  66. package/coverage/lcov-report/webworker/index.ts.html +15 -9
  67. package/coverage/lcov.info +2306 -900
  68. package/lib/app/index.js +1 -1
  69. package/lib/index.js +1 -1
  70. package/lib/modules/Network/fetchProxy.js +4 -2
  71. package/package.json +1 -1
package/lib/app/index.js CHANGED
@@ -36,7 +36,7 @@ export default class App {
36
36
  this.stopCallbacks = [];
37
37
  this.commitCallbacks = [];
38
38
  this.activityState = ActivityState.NotActive;
39
- this.version = '10.0.3'; // TODO: version compatability check inside each plugin.
39
+ this.version = '10.0.4'; // TODO: version compatability check inside each plugin.
40
40
  this.compressionThreshold = 24 * 1000;
41
41
  this.restartAttempts = 0;
42
42
  this.bc = null;
package/lib/index.js CHANGED
@@ -157,7 +157,7 @@ export default class API {
157
157
  // no-cors issue only with text/plain or not-set Content-Type
158
158
  // req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
159
159
  req.send(JSON.stringify({
160
- trackerVersion: '10.0.3',
160
+ trackerVersion: '10.0.4',
161
161
  projectKey: options.projectKey,
162
162
  doNotTrack,
163
163
  // TODO: add precise reason (an exact API missing)
@@ -113,9 +113,11 @@ export class FetchProxyHandler {
113
113
  apply(target, _, argsList) {
114
114
  const input = argsList[0];
115
115
  const init = argsList[1];
116
- // @ts-ignore
117
- if (!(input === null || input === void 0 ? void 0 : input.url) && !input)
116
+ if (!input ||
117
+ // @ts-ignore
118
+ (typeof input !== 'string' && !(input === null || input === void 0 ? void 0 : input.url))) {
118
119
  return target.apply(window, argsList);
120
+ }
119
121
  const isORUrl = input instanceof URL || typeof input === 'string'
120
122
  ? this.isServiceUrl(String(input))
121
123
  : this.isServiceUrl(String(input.url));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openreplay/tracker",
3
3
  "description": "The OpenReplay tracker main package",
4
- "version": "10.0.3",
4
+ "version": "10.0.4",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"