{"_id":"@uni/vibrate","_rev":"4-b94824450dfe20f1cf76e7b506eb4635","name":"@uni/vibrate","dist-tags":{"latest":"1.0.1","beta":"1.0.2-beta"},"versions":{"1.0.0":{"name":"@uni/vibrate","version":"1.0.0","description":"","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/vibrate@1.0.0","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-UnzLup92Yy/iS6zM6L6CDVHY2mXcP6ppYMN2sV8z1XHEsiGamPJwLma5eH+4azokO0Q+pLEa7ibLkmY+u7YSTg==","shasum":"1cf4f91463696d1d9899cfc67b6cff78230272eb","tarball":"https://registry.npmjs.org/@uni/vibrate/-/vibrate-1.0.0.tgz","fileCount":90,"unpackedSize":93684,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0ziWyLaufRXh1FujuXrZG3n71FhWA3IudXhwSCYze9QIgYORGuDC88BTqc68z0iuL7oSpv/flxP1TYmAq8tyJW/w="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vibrate_1.0.0_1632378516454_0.763200104551687"},"_hasShrinkwrap":false},"1.0.1":{"name":"@uni/vibrate","version":"1.0.1","description":"","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/vibrate@1.0.1","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-IocrIbBaZYjBHzvRIGSyN3K2He9Y7BS/VMEri2On9QITU3U2kampDiGGPyA/lQxVSZNemyK6/xtxWoxTjNh91w==","shasum":"7c4699eec502b427d76f8db9207bfbaee3d33b3a","tarball":"https://registry.npmjs.org/@uni/vibrate/-/vibrate-1.0.1.tgz","fileCount":90,"unpackedSize":93192,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2flyCRA9TVsSAnZWagAAiNUP/A+K7D2A1J7T8NKc9iCr\nBbOc6/F+V70hK0NTeN98CHTIeumWcsOTbfxr/TJEgk+r6FVqtW8NQEvWCkse\nDyKHWwxh0O33XkscFzRHHEUI6oa3YlE3ybKO6woE6lTQwsYS2Mc6SJxS/txX\nWkRD6n+YV/pZlFZcuXVDxof4ZNNPft7ZNRok9BR8LN0/stlKNk5qyAtvDpXz\nPZ90gdjPF/os498gPTQS9iUC7ybqaTh9E/0i804TIfQDct5X6TI0aFzaWyIW\nuCfHkpeo8TrMI43IrUzQgMF/C3PKtIieQSc9OOnOAX7GgIN4JRop4/81WEWU\n9jzH/DMZgbtJvdjEPsfXIWhbtymUrX9tw42oQjkz3zpl0OETRTi6zOSY7swh\nZq619BFMTIcHihtbq0+/dec4fbtdi0qMIfgcYILtVq96J7Is21/HjBUHD6t6\nns6d9jIiSeQsU/MMmCpDml2t3RiYDTyWFiBrOqQvXYBkxEf/f/kYgd0vsZon\nmlTrlHXxUwEtziGBhczCkmbmpZ9Sbg7zgjT2YyspU0+Bs08l8W1qoFdiRL+D\niemQZeuPsnWqDN6jqI7p/Q9OC25qbPPurK6eeBovxBypLA1j5T+2pUZlZvdZ\nKajlxnSXxBWuWv11lT7spyJh3hjDzbhmLPgUT+pJFCqSHT7g6CdjXeFyzLdi\nAj4S\r\n=CV3J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7sEtYXNB77ruwiPJXjVth4s2D/KLsvdcEXEwB6GvoHAiB+IwNfFwGEAJYERrWz83t2OHUkHUVIE14qq3n7HsUviQ=="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vibrate_1.0.1_1634545442246_0.4364077752263873"},"_hasShrinkwrap":false},"1.0.2-beta":{"name":"@uni/vibrate","version":"1.0.2-beta","description":"","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# vibrate\n\n\n[![npm](https://img.shields.io/npm/v/@uni/vibrate.svg)](https://www.npmjs.com/package/@uni/vibrate)\n\nMake the phone vibrate\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" />\n\n## Install\n\n```bash\n$ npm install @uni/vibrate --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { vibrateShort } from '@uni/vibrate';\n\nvibrateLong({\n  success (){\n    console.log('success');\n  }\n});\n\n// promise\nvibrateLong().then(() => {\n  console.log('success');\n});\nvibrateShort({\n  success (){\n    console.log('success');\n  }\n});\n\n// promise\nvibrateShort().then(() => {\n  console.log('success');\n});\n\n```\n\nYou can also import from the big package：\n```js\nimport { vibrate } from '@uni/apis';\n\nvibrate.vibrateLong().then(() => {\n  console.log('success');\n});\nvibrate.vibrateShort().then(() => {\n  console.log('success');\n});\n```\n\n## 方法\n### vibrateShort\nAllows the phone to vibrate for a short period of time (15 ms). This only works on iPhone 7/7 Plus and Android models.\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n## Non-universal parameters (due to destroying the ability of one code and multiple terminals, it is not recommended to use)\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - | - |\n| options.type | `string`  | Vibration intensity type, valid values ​​are: heavy, medium, light | ✘ | - | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechat miniprogram\" /> |\n\n### vibrateLong\n\nAllows the phone to vibrate for a long period of time (400 ms).\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | ✔️ | - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/vibrate@1.0.2-beta","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-84gH1iE9WWbXS2+zhfKylpbza9ZcouVdWei82Y0UG7VJe1uKIoBpo/lrEB/IbOp2Ccg7EET8/QiYNnmIjXHcVA==","shasum":"3492cb04b33a410d7143f6e6f4498322ca1f8ad4","tarball":"https://registry.npmjs.org/@uni/vibrate/-/vibrate-1.0.2-beta.tgz","fileCount":90,"unpackedSize":93197,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCc0ExZauXEMLvRHvTaBH5yK6VYnG8hHEtLItrayI3BmgIgSqaa9AUIrOeHOWIr7tTlbVljpyFy7O5LgrYoYUjgXoA="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vibrate_1.0.2-beta_1635421500343_0.7687423257009305"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-23T06:28:36.387Z","1.0.0":"2021-09-23T06:28:36.685Z","modified":"2022-04-07T09:34:04.315Z","1.0.1":"2021-10-18T08:24:02.367Z","1.0.2-beta":"2021-10-28T11:45:00.464Z"},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"homepage":"https://github.com/raxjs/universal-api#readme","repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"license":"BSD-3-Clause","readme":"","readmeFilename":""}