{"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"dist":{"shasum":"a1c32850683de8fda4c7e5fa8b01b7a407deecbb","tarball":"https://registry.npmjs.org/@uni/navigate/-/navigate-1.0.0-beta1.tgz","fileCount":25,"integrity":"sha512-xR92pN6476U2QMyxRTfJtCZ3Blimx33AQGehin9aUiZC/YZGEUJBICtwKZgTB01qquHloz2EzfOcSM59YJiCqA==","signatures":[{"sig":"MEUCICn5HbPGK1QeOmMMj57Jz5daKhQYCFoBlQBNS6TDdb7eAiEAr2Z4rA7uQSZmGZHY0GW+t1IeX4ve00cTr+H22apFqzY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":233392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOO/lCRA9TVsSAnZWagAAKeMP/jgqoO2GAqjIy4IYb1Gg\nFo2lT1l1hiXOB5QC3u+qvR+vLG3W2gwW9SYxmzeacgA/B/3kcV1OHmm9Ky3/\n2EWXRQaAUu6cOS9XOiHPl3KBfroWd1jEKg3ovDADLUvOPRHiJblvOuY9tqIY\n6GZT/EadCk5IpKYeYnep8uN74MG/0vFR8Tvbw6SvRKbRm1E52gbOer2WKmZT\nk7cQKRZNxNV15jBe5/m7FCGr0tUW3USiRQjKYDiRaYyqFEqNxR0RERE3xHD/\nthScYsVqjSiYJ5L6ImxfzsCQ7MglRfvIl2qy022Gyb+BH/Mg5zAe7ygDLySM\nHwgQSGij/7RkRnQ8UpWpbZ81nWzdmMENHqpe5Yra9imuk5vJ9WboCxaOLikZ\n1HwbpryAn1FQifun5cf1jVOKayXVy36R6FV/vM7T0JNkz5qL+lZFvPgUy2X4\nroi4Jtq9ylYiO3pAcCbXtUwPfKB/sMiBJSRvKMTDG8TAP8+GT0p7isVInuch\nNvJ40XPHRiMpRb/gf8lunvTANjRpT8wC7CzkDqLqsUmD1ftX0NBzBxxpO+Rj\nUuv2B+O+f76LZCEQMr3dgpOsN6kIZ0FRyO45KbDcTXvUmgjX5ah3MWrCR2Pt\nkrJauwVHxULJFekfTUxYjrtifljGp+Cd5BPJPgWVR8KzLPsNQc4XA+xl17rJ\nOHE6\r\n=dP6d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"@uni/navigate","unpkg":"index.umd.js","author":{"name":"rax"},"module":"index.es.js","readme":"# navigate \n[![npm](https://img.shields.io/npm/v/@uni/navigate.svg)](https://www.npmjs.com/package/@uni/navigate)\n\nRoute navigation capability implementation.\n\n## Support\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\">\n\n## Install\n\n```bash\n$ npm install @uni/navigate --save\n```\n\n## Usage\n\n```js\nimport navigate from '@uni/navigate';\n\n// How to use it in quickapp\n// import chooseImage from '@uni/navigate/lib/quickapp;\n\nnavigate.push({\n  url: 'https://www.taobao.com/'\n}).then(() => {\n});\n\nnavigate.back().then(() => {\n});\n\nnavigate.go({\n  step: -1\n}).then(() => {\n});\n\nnavigate.replace({\n  url: 'https://www.taobao.com/'\n}).then(() => {\n});\n\nnavigate.reLaunch({\n  url: 'https://www.taobao.com/'\n}).then(() => {\n});\n```\n\n## Methods\n\n### `push(options)`\n\n#### Arguments\n| Property         | Type      | Description                                                                        | required | Default |\n| ---------------- | --------- | ---------------------------------------------------------------------------------- | :------: | :-----: |\n| options          | `object`  | Push function arguments                                                            |   true   |    -    |\n| options.url      | `string`  | The page URL.                                                                      |   true   |    -    |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### `back(options)`\n\n#### Arguments\n| Property         | Type      | Description                                                                        | required | Default |\n| ---------------- | --------- | ---------------------------------------------------------------------------------- | :------: | :-----: |\n| options          | `object`  | Pop function arguments                                                             |  false   |    -    | \n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### `go(options)`\n\n#### Arguments\n| Property         | Type      | Description                                                                                                      | required | Default |\n| ---------------- | --------- | ---------------------------------------------------------------------------------------------------------------- | :------: | :-----: |\n| options          | `object`  | Go function arguments                                                                                            |   true   |    -    |\n| options.step     | `number`  | The number of forward steps is positive and only supports the web, and the number of backward steps is negative. |   true   |    -    |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### `replace(options)`\n\n#### Arguments\n| Property         | Type      | Description                                                                                                      | required | Default |\n| ---------------- | --------- | ---------------------------------------------------------------------------------------------------------------- | :------: | :-----: |\n| options          | `object`  | Go function arguments                                                                                            |   true   |    -    |\n| options.url     | `number`  | The page URL.                              |   true   |    -    |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### `reLaunch(options)`\n\n#### Arguments\n| Property         | Type      | Description                                                                                                      | required | Default |\n| ---------------- | --------- | ---------------------------------------------------------------------------------------------------------------- | :------: | :-----: |\n| options          | `object`  | Go function arguments                                                                                            |   true   |    -    |\n| options.url     | `number`  | The page URL.                              |   true   |    -    |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n","license":"BSD-3-Clause","typings":"types/index.d.ts","_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"homepage":"https://github.com/raxjs/universal-api#readme","repository":{"url":"git+ssh://git@github.com/raxjs/universal-api.git","type":"git"},"_npmVersion":"6.14.5","description":"[![npm](https://img.shields.io/npm/v/@uni/navigate.svg)](https://www.npmjs.com/package/@uni/navigate)","directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"}],"_nodeVersion":"14.4.0","dependencies":{"@babel/runtime-corejs3":"^7.11.0"},"_hasShrinkwrap":false,"readmeFilename":"README.en-US.md","peerDependencies":{"@uni/env":"^1.0.0-beta"},"_npmOperationalInternal":{"tmp":"tmp/navigate_1.0.0-beta1_1614344164824_0.3159737438871342","host":"s3://npm-registry-packages"},"_id":"@uni/navigate@1.0.0-beta1","version":"1.0.0-beta1"}