capacitor-jok-helper
Advanced tools
Comparing version 0.12.1 to 0.13.0
@@ -66,2 +66,5 @@ declare module '@capacitor/core' { | ||
}>; | ||
vibrate(duration?: number): Promise<{ | ||
value: boolean; | ||
}>; | ||
} | ||
@@ -68,0 +71,0 @@ export interface PlayAudioProps { |
@@ -64,4 +64,7 @@ import { WebPlugin } from '@capacitor/core'; | ||
}>; | ||
vibrate(pattern?: number | number[]): Promise<{ | ||
value: boolean; | ||
}>; | ||
} | ||
declare const JokHelper: JokHelperWeb; | ||
export { JokHelper }; |
@@ -112,2 +112,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
vibrate(pattern) { | ||
if (!navigator || !navigator.vibrate) { | ||
return Promise.resolve({ value: false }); | ||
} | ||
navigator.vibrate(pattern); | ||
return Promise.resolve({ value: true }); | ||
} | ||
} | ||
@@ -114,0 +121,0 @@ const JokHelper = new JokHelperWeb(); |
{ | ||
"name": "capacitor-jok-helper", | ||
"version": "0.12.1", | ||
"version": "0.13.0", | ||
"description": "Helper functions for jok projects", | ||
@@ -5,0 +5,0 @@ "main": "dist/esm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
157012
445