Comparing version 4.0.0-next.1 to 4.0.0-next.2
{ | ||
"name": "detect-it", | ||
"version": "4.0.0-next.1", | ||
"version": "4.0.0-next.2", | ||
"description": "Detect if a device is mouse only, touch only, or hybrid", | ||
@@ -45,3 +45,3 @@ "main": "dist/detect-it.cjs.js", | ||
"pre-commit": "^1.2.2", | ||
"rollpkg": "^0.1.1", | ||
"rollpkg": "^0.2.0", | ||
"typescript": "^4.1.2" | ||
@@ -48,0 +48,0 @@ }, |
@@ -142,8 +142,8 @@ # Detect It | ||
<!-- in index.html --> | ||
<script src="https://unpkg.com/detect-it/dist/detect-it.umd.min.js"></script> | ||
<script src="https://unpkg.com/detect-it/dist/detect-it.umd.production.js"></script> | ||
``` | ||
```js | ||
// it will be available on the window as detectIt | ||
if (window.detectIt.primaryInput === 'touch') { | ||
// it will be available on the window as DetectIt | ||
if (window.DetectIt.primaryInput === 'touch') { | ||
// tailor UX for touch input | ||
@@ -150,0 +150,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
72235
0