Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

abstract-state-router

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-state-router - npm Package Compare versions

Comparing version 5.12.1 to 5.12.2

default-router-options.js

4

changelog.md

@@ -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 @@

2

index.js

@@ -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')

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc