browser-haptic 1.0.0 → 1.0.2
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/LICENSE +1 -1
- package/README.md +1 -13
- package/package.json +6 -2
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2026 Emirhan Kemal Kosem emirhankemalkosem@gmail.com
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -58,18 +58,6 @@ You can also use named imports if you prefer: `import { light, success, isSuppor
|
|
|
58
58
|
|
|
59
59
|
On iOS Safari 17.4+, `isSupported()` is `true` but `hasVibration()` is `false`; the library uses a hidden native switch toggle.
|
|
60
60
|
|
|
61
|
-
## Test
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
bun test
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
Coverage (enforces 80% lines and functions):
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
bun run coverage
|
|
71
|
-
```
|
|
72
|
-
|
|
73
61
|
## Contributing
|
|
74
62
|
|
|
75
63
|
Contributions are welcome. To get started:
|
|
@@ -83,4 +71,4 @@ For bugs or feature ideas, please open an issue first so we can discuss.
|
|
|
83
71
|
|
|
84
72
|
## License
|
|
85
73
|
|
|
86
|
-
MIT
|
|
74
|
+
MIT Copyright (c) 2025 Emirhan Kemal Kosem
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browser-haptic",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Lightweight haptic feedback for JS (Vibration API + iOS Safari switch fallback). No deps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,7 +21,11 @@
|
|
|
21
21
|
"coverage": "bun test --coverage",
|
|
22
22
|
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
23
23
|
"build": "bun run clean && tsc",
|
|
24
|
-
"prepublishOnly": "bun run build"
|
|
24
|
+
"prepublishOnly": "bun run build",
|
|
25
|
+
"version:patch": "bun scripts/bump.js patch",
|
|
26
|
+
"version:minor": "bun scripts/bump.js minor",
|
|
27
|
+
"version:major": "bun scripts/bump.js major",
|
|
28
|
+
"tag": "node -e \"const v=require('./package.json').version; require('child_process').execSync('git tag -a v'+v+' -m \\\"Release v'+v+'\\\"', {stdio:'inherit'})\""
|
|
25
29
|
},
|
|
26
30
|
"packageManager": "bun",
|
|
27
31
|
"keywords": [
|