browser-extension-utils 0.1.8 → 0.1.9

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/lib/index.d.ts CHANGED
@@ -152,6 +152,8 @@ export const cache: Cache
152
152
 
153
153
  export function isVisible(element: HTMLElement): boolean
154
154
 
155
+ export function isTouchScreen(): boolean
156
+
155
157
  export function parseInt10(
156
158
  number: string | undefined,
157
159
  defaultValue?: number
package/lib/index.js CHANGED
@@ -369,3 +369,5 @@ export const isVisible = (element) => {
369
369
 
370
370
  return element.offsetParent !== null
371
371
  }
372
+
373
+ export const isTouchScreen = () => "ontouchstart" in win
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-extension-utils",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Utilities for developing browser extensions and userscripts",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",