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 3.4.0 to 3.5.0

9

index.js

@@ -141,6 +141,7 @@ var StateState = require('./state-state')

}
return state
}).then(ifNotCancelled(function(state) {
stateProviderEmitter.emit('stateChangeStart', state, parameters)
})).then(function getStateChanges() {
}).then(ifNotCancelled(emit('stateChangeStart', newStateName, parameters)))
.then(function getStateChanges() {
var stateComparisonResults = StateComparison(prototypalStateHolder)(current.get().name, current.get().parameters, newStateName, parameters)

@@ -193,3 +194,3 @@ return stateChangeLogic(stateComparisonResults) // { destroy, change, create }

try {
stateProviderEmitter.emit('stateChangeEnd', newStateName, parameters)
stateProviderEmitter.emit('stateChangeEnd', prototypalStateHolder.get(newStateName), parameters)
} catch (e) {

@@ -196,0 +197,0 @@ handleError('error', e)

{
"name": "abstract-state-router",
"version": "3.4.0",
"version": "3.5.0",
"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",

@@ -103,4 +103,4 @@ var test = require('tape')

stateRouter.once('stateChangeStart', function(name, properties) {
t.equal(name, 'valid1.valid')
stateRouter.once('stateChangeStart', function(state, properties) {
t.equal(state.name, 'valid1.valid')
t.deepEqual(properties, firstProperties)

@@ -113,4 +113,4 @@ t.notOk(firstParentActivate)

stateRouter.once('stateChangeEnd', function(name, properties) {
t.equal(name, 'valid1.valid')
stateRouter.once('stateChangeEnd', function(state, properties) {
t.equal(state.name, 'valid1.valid')
t.deepEqual(properties, firstProperties)

@@ -122,4 +122,4 @@ t.ok(firstParentActivate)

stateRouter.once('stateChangeStart', function(name, properties) {
t.equal(name, 'valid2.valid')
stateRouter.once('stateChangeStart', function(state, properties) {
t.equal(state.name, 'valid2.valid')
t.deepEqual(properties, secondProperties)

@@ -132,4 +132,4 @@ t.ok(firstParentActivate)

stateRouter.once('stateChangeEnd', function(name, properties) {
t.equal(name, 'valid2.valid')
stateRouter.once('stateChangeEnd', function(state, properties) {
t.equal(state.name, 'valid2.valid')
t.deepEqual(properties, secondProperties)

@@ -136,0 +136,0 @@ t.ok(firstParentActivate)

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