{"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"dist":{"shasum":"24a298ca244dc9d2eadedc677f67b2fadfafd424","tarball":"https://registry.npmjs.org/@uni/navigate/-/navigate-1.0.4-beta.tgz","fileCount":100,"integrity":"sha512-3Gnx1LmwuQwVsjzf0T9bV/MEUB3fOiWu7rU9+/ArZwFO01SqMZF9m/vbgoF+okkoriPXfyLgcbkstM0dbtf4Qw==","signatures":[{"sig":"MEUCIBBmcXmx4NNPGKt4p/mu6pZGZ50iX0pWsPJwH/20fCm0AiEA2pK5DU7O79v91lEF7n+NAHxAT8a43aUpqX5dvvA5Quo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":97877,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpMO1CRA9TVsSAnZWagAAUWYP/1BMhixiqCMgb2mbwEPP\nlIb2jxae5SBzAUbxQc8XazfjFjDNpghTqCMhjNbH8HBGLr1qc1kXMeWkJJFU\nE+mOeE5VHNySNaP0cKm1uBgYlzXMz7Mi528NrU0eT6SLiukJQfiYxnLeDNua\n4msR/Jd9/A5O21Algmiy8w2jWwR+Dl57wws84skSO5wFoa+yM1FWxp7biFTO\nstSnOnukTreoCeeddj9B48mVdZZK8urZnGiRjUa8iWUc9p8lEXMk337uYjRW\nQ0FI7kJKQqT7uEqWvWiyiMlLYxTuF6oLW6HOIAi84PEEOD8idup49QwoAXYT\nFJab1BvtxyT19hRavN6B8vQ3xBRKxAsX7TQBWjHUQxAu0mU3m8X8PxWeyehk\nkzFzSsriRyyJkTW9yF9AjACfLiOY2vSk5ScJu1O6ztpeAexzcVfCQKOazxdC\nDH3xhR5IJggSh2Wa77njNkB6VSXKA+Xb4ezsFZwWeScuTnEOV/BegjMxoVbj\n0I/CkAl4VpniIMLW1ptz4gZybZz4tWzI5JGtHBoMVS49I3lRhVY6fj4zAWWN\nw/EGyyWB81V0HvIFdCHTrJlWBlcBvvTKdgS5xHrxevSzbKppXOd481wrRRLu\nPgeTXhbGCI2Y7ROyLkz+N4bh6I333CE4EMyuF8RBCHy0tvnnchtWLz7Bk3Rl\nld8v\r\n=j6Xa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"@uni/navigate","unpkg":"dist/index.js","author":{"name":"rax"},"module":"es/index.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","exports":{".":{"web":"./es/web/index.js","default":"./es/index.js","miniapp":"./es/ali-miniapp/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js"},"./*":"./*"},"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":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"sideEffects":false,"_nodeVersion":"14.4.0","dependencies":{"@uni/env":"^1.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.en-US.md","_npmOperationalInternal":{"tmp":"tmp/navigate_1.0.4-beta_1621410741239_0.07350198648421657","host":"s3://npm-registry-packages"},"_id":"@uni/navigate@1.0.4-beta","version":"1.0.4-beta"}