Socket
Socket
Sign inDemoInstall

detect-pointer

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-pointer - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

5

lib/index.js

@@ -6,8 +6,5 @@ 'use strict';

});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var detectPointer = {
update: function update() {
if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && typeof window.matchMedia === 'function') {
if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') {
detectPointer.fine = window.matchMedia('(pointer: fine)').matches;

@@ -14,0 +11,0 @@ detectPointer.coarse = window.matchMedia('(pointer: coarse)').matches;

2

package.json
{
"name": "detect-pointer",
"version": "1.0.1",
"version": "1.0.2",
"description": "JavaScript wrapper for pointer and any-pointer media queries",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

const detectPointer = {
update() {
if (typeof window === 'object' && typeof window.matchMedia === 'function') {
if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') {
detectPointer.fine = window.matchMedia('(pointer: fine)').matches;

@@ -5,0 +5,0 @@ detectPointer.coarse = window.matchMedia('(pointer: coarse)').matches;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc