ios-haptics 0.1.3 → 0.1.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.
- package/dist/index.js +2 -2
- package/package.json +1 -3
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ios-haptics v0.1.
|
|
2
|
+
* ios-haptics v0.1.4
|
|
3
3
|
* tijn.dev
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
6
|
//#region src/index.ts
|
|
7
|
-
const supportsHaptics = window.matchMedia("(pointer: coarse)").matches;
|
|
7
|
+
const supportsHaptics = typeof window === "undefined" ? false : window.matchMedia("(pointer: coarse)").matches;
|
|
8
8
|
function _haptic() {
|
|
9
9
|
try {
|
|
10
10
|
if (navigator.vibrate) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ios-haptics",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"description": "haptic feedback for ios safari",
|
|
6
6
|
"author": "tijnjh",
|
|
7
7
|
"license": "MIT",
|
|
@@ -32,8 +32,6 @@
|
|
|
32
32
|
"dev": "tsdown --watch"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@antfu/eslint-config": "^5.3.0",
|
|
36
|
-
"eslint": "^9.35.0",
|
|
37
35
|
"tsdown": "latest"
|
|
38
36
|
}
|
|
39
37
|
}
|