Socket
Socket
Sign inDemoInstall

riot-route

Package Overview
Dependencies
1
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.14 to 2.3.15

13

doc/README.md

@@ -112,3 +112,3 @@ # Router API

### route(to[, title])
### route(to[, title, shouldReplace])

@@ -126,2 +126,13 @@ Changes the browser URL and notifies all the listeners assigned with `route(callback)`. For example:

With the third argument, you can replace the current history. It's useful when the app needs redirect to another page.
```javascript
route('not-found', 'Not found', true)
```
Internally...
- without `shouldReplace`, `history.pushState()` will be used.
- with `shouldReplace`, `history.replaceState()` will be used.
### route.start()

@@ -128,0 +139,0 @@

4

package.json
{
"name": "riot-route",
"version": "2.3.14",
"version": "2.3.15",
"description": "Simple isomorphic router",
"main": "lib/index.js",
"jsnext:main": "lib/es6.route.js",
"jsnext:main": "dist/es6.route.js",
"directories": {

@@ -8,0 +8,0 @@ "lib": "lib",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc