abstract-state-router
Advanced tools
Comparing version 5.12.1 to 5.12.2
@@ -0,1 +1,5 @@ | ||
# [5.12.2](https://github.com/TehShrike/abstract-state-router/releases/tag/v5.12.2) | ||
- bug fix: fixed Webpack build by changing a JSON file to CommonJS [#65](https://github.com/TehShrike/abstract-state-router/issues/65) | ||
# [5.12.1](https://github.com/TehShrike/abstract-state-router/releases/tag/v5.12.1) | ||
@@ -2,0 +6,0 @@ |
@@ -7,3 +7,3 @@ var StateState = require('./lib/state-state') | ||
var StateTransitionManager = require('./lib/state-transition-manager') | ||
var defaultRouterOptions = require('./default-router-options.json') | ||
var defaultRouterOptions = require('./default-router-options.js') | ||
@@ -10,0 +10,0 @@ var series = require('./lib/promise-map-series') |
{ | ||
"name": "abstract-state-router", | ||
"version": "5.12.1", | ||
"version": "5.12.2", | ||
"description": "The basics of a client-side state router ala the AngularJS ui-router, but without any DOM interactions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -161,6 +161,12 @@ [ui-router](https://github.com/angular-ui/ui-router/wiki) is fantastic, and I would use it in all of my projects if it wasn't tied to AngularJS. | ||
Returns true if the state name matches the current active state, and all the properties of the state parameters object match exactly the current state parameter values. | ||
Returns true if `stateName` is the current active state, or an ancestor of the current active state... | ||
...And all of the properties of `stateParameters` match the current state parameter values. | ||
```js | ||
stateRouter.stateIsActive('app.tab1', { fancy: 'yes' }) | ||
// Current state name: app.tab1 | ||
// Current parameters: { fancy: 'yes', thing: 'hello' } | ||
stateRouter.stateIsActive('app.tab1', { fancy: 'yes' }) // => true | ||
stateRouter.stateIsActive('app.tab1', { fancy: 'no' }) // => false | ||
stateRouter.stateIsActive('app') // => true | ||
``` | ||
@@ -167,0 +173,0 @@ |
var hashRouterFactory = require('hash-brown-router') | ||
var hashLocationMockFactory = require('hash-brown-router/hash-location-mock') | ||
var stateRouterFactory = require('../../') | ||
var defaultRouterOptions = require('../../default-router-options.json') | ||
var defaultRouterOptions = require('../../default-router-options.js') | ||
var mockRenderFn = require('./renderer-mock') | ||
@@ -6,0 +6,0 @@ var extend = require('xtend') |
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
123555
302