@testing-library/user-event 14.6.5 → 14.6.6

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.
@@ -185,7 +185,7 @@ function initPointerEvent(event, { pointerId, width, height, pressure, tangentia
185
185
  tiltX: sanitizeNumber(tiltX),
186
186
  tiltY: sanitizeNumber(tiltY),
187
187
  twist: sanitizeNumber(twist),
188
- pointerType: String(pointerType),
188
+ pointerType: String(pointerType !== null && pointerType !== void 0 ? pointerType : ''),
189
189
  isPrimary: Boolean(isPrimary)
190
190
  });
191
191
  }
@@ -183,7 +183,7 @@ function initPointerEvent(event, { pointerId, width, height, pressure, tangentia
183
183
  tiltX: sanitizeNumber(tiltX),
184
184
  tiltY: sanitizeNumber(tiltY),
185
185
  twist: sanitizeNumber(twist),
186
- pointerType: String(pointerType),
186
+ pointerType: String(pointerType !== null && pointerType !== void 0 ? pointerType : ''),
187
187
  isPrimary: Boolean(isPrimary)
188
188
  });
189
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testing-library/user-event",
3
- "version": "14.6.5",
3
+ "version": "14.6.6",
4
4
  "description": "Fire events the same way the user does",
5
5
  "keywords": [
6
6
  "react-testing-library",