├── .babelrc ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── example ├── devTools.js ├── index.html ├── index.js ├── package.json ├── server.js ├── styles.css ├── webpack.config.js └── yarn.lock ├── index.d.ts ├── karma.conf.js ├── package.json ├── src ├── __tests__ │ ├── index.js │ ├── router-actions.test.js │ ├── router-listener.test.js │ ├── router-state-reducer.test.js │ ├── state-activation-actions.test.js │ ├── state-change-actions.test.js │ ├── state-change-error.test.js │ ├── state-change-finish.test.js │ ├── state-change-start.test.js │ ├── state-change-success.test.js │ ├── state-go.test.js │ ├── state-middleware.test.js │ ├── state-reload.test.js │ └── state-transition-to.test.js ├── action-types.js ├── index.js ├── router-listener.js ├── router-middleware.js ├── router-state-reducer.js ├── state-activation-actions.js ├── state-change-actions.js ├── state-change-error.js ├── state-change-finish.js ├── state-change-start.js ├── state-change-success.js ├── state-go.js ├── state-reload.js └── state-transition-to.js ├── webpack.config.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015", "stage-0"] 3 | } 4 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | indent_style = space 7 | indent_size = 2 8 | trim_trailing_whitespace = true 9 | charset = utf-8 10 | max_line_length = 80 11 | indent_brace_style = 1TBS 12 | spaces_around_operators = true 13 | quote_type = auto 14 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | src/__tests__/** 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint", // https://github.com/babel/babel-eslint 3 | "env": { // http://eslint.org/docs/user-guide/configuring.html#specifying-environments 4 | "browser": true, // browser global variables 5 | "node": true // Node.js global variables and Node.js-specific rules 6 | }, 7 | "ecmaFeatures": { 8 | "arrowFunctions": true, 9 | "blockBindings": true, 10 | "classes": true, 11 | "defaultParams": true, 12 | "destructuring": true, 13 | "forOf": true, 14 | "generators": false, 15 | "modules": true, 16 | "objectLiteralComputedProperties": true, 17 | "objectLiteralDuplicateProperties": false, 18 | "objectLiteralShorthandMethods": true, 19 | "objectLiteralShorthandProperties": true, 20 | "spread": true, 21 | "superInFunctions": true, 22 | "templateStrings": true 23 | }, 24 | "rules": { 25 | "no-undef": 0, 26 | /** 27 | * Strict mode 28 | */ 29 | "strict": [2, "never"], // http://eslint.org/docs/rules/strict 30 | 31 | /** 32 | * ES6 33 | */ 34 | "no-var": 2, // http://eslint.org/docs/rules/no-var 35 | "prefer-const": 2, // http://eslint.org/docs/rules/prefer-const 36 | 37 | /** 38 | * Variables 39 | */ 40 | "no-shadow": 2, // http://eslint.org/docs/rules/no-shadow 41 | "no-shadow-restricted-names": 2, // http://eslint.org/docs/rules/no-shadow-restricted-names 42 | "no-unused-vars": [2, { // http://eslint.org/docs/rules/no-unused-vars 43 | "vars": "local", 44 | "args": "after-used" 45 | }], 46 | "no-use-before-define": 0, // http://eslint.org/docs/rules/no-use-before-define 47 | 48 | /** 49 | * Possible errors 50 | */ 51 | "comma-dangle": [2, "always-multiline"], // http://eslint.org/docs/rules/comma-dangle 52 | "no-cond-assign": [2, "always"], // http://eslint.org/docs/rules/no-cond-assign 53 | "no-console": 1, // http://eslint.org/docs/rules/no-console 54 | "no-debugger": 1, // http://eslint.org/docs/rules/no-debugger 55 | "no-alert": 1, // http://eslint.org/docs/rules/no-alert 56 | "no-constant-condition": 1, // http://eslint.org/docs/rules/no-constant-condition 57 | "no-dupe-keys": 2, // http://eslint.org/docs/rules/no-dupe-keys 58 | "no-duplicate-case": 2, // http://eslint.org/docs/rules/no-duplicate-case 59 | "no-empty": 2, // http://eslint.org/docs/rules/no-empty 60 | "no-ex-assign": 2, // http://eslint.org/docs/rules/no-ex-assign 61 | "no-extra-boolean-cast": 0, // http://eslint.org/docs/rules/no-extra-boolean-cast 62 | "no-extra-semi": 2, // http://eslint.org/docs/rules/no-extra-semi 63 | "no-func-assign": 2, // http://eslint.org/docs/rules/no-func-assign 64 | "no-inner-declarations": 2, // http://eslint.org/docs/rules/no-inner-declarations 65 | "no-invalid-regexp": 2, // http://eslint.org/docs/rules/no-invalid-regexp 66 | "no-irregular-whitespace": 2, // http://eslint.org/docs/rules/no-irregular-whitespace 67 | "no-obj-calls": 2, // http://eslint.org/docs/rules/no-obj-calls 68 | "no-sparse-arrays": 2, // http://eslint.org/docs/rules/no-sparse-arrays 69 | "no-unreachable": 2, // http://eslint.org/docs/rules/no-unreachable 70 | "use-isnan": 2, // http://eslint.org/docs/rules/use-isnan 71 | "block-scoped-var": 0, // http://eslint.org/docs/rules/block-scoped-var 72 | 73 | /** 74 | * Best practices 75 | */ 76 | "consistent-return": 2, // http://eslint.org/docs/rules/consistent-return 77 | "curly": [2, "multi-line"], // http://eslint.org/docs/rules/curly 78 | "default-case": 2, // http://eslint.org/docs/rules/default-case 79 | "dot-notation": [2, { // http://eslint.org/docs/rules/dot-notation 80 | "allowKeywords": true 81 | }], 82 | "eqeqeq": 2, // http://eslint.org/docs/rules/eqeqeq 83 | "guard-for-in": 0, // http://eslint.org/docs/rules/guard-for-in 84 | "no-caller": 2, // http://eslint.org/docs/rules/no-caller 85 | "no-else-return": 2, // http://eslint.org/docs/rules/no-else-return 86 | "no-eq-null": 2, // http://eslint.org/docs/rules/no-eq-null 87 | "no-eval": 2, // http://eslint.org/docs/rules/no-eval 88 | "no-extend-native": 2, // http://eslint.org/docs/rules/no-extend-native 89 | "no-extra-bind": 2, // http://eslint.org/docs/rules/no-extra-bind 90 | "no-fallthrough": 2, // http://eslint.org/docs/rules/no-fallthrough 91 | "no-floating-decimal": 2, // http://eslint.org/docs/rules/no-floating-decimal 92 | "no-implied-eval": 2, // http://eslint.org/docs/rules/no-implied-eval 93 | "no-lone-blocks": 2, // http://eslint.org/docs/rules/no-lone-blocks 94 | "no-loop-func": 2, // http://eslint.org/docs/rules/no-loop-func 95 | "no-multi-str": 2, // http://eslint.org/docs/rules/no-multi-str 96 | "no-native-reassign": 2, // http://eslint.org/docs/rules/no-native-reassign 97 | "no-new": 2, // http://eslint.org/docs/rules/no-new 98 | "no-new-func": 2, // http://eslint.org/docs/rules/no-new-func 99 | "no-new-wrappers": 2, // http://eslint.org/docs/rules/no-new-wrappers 100 | "no-octal": 2, // http://eslint.org/docs/rules/no-octal 101 | "no-octal-escape": 2, // http://eslint.org/docs/rules/no-octal-escape 102 | "no-param-reassign": 2, // http://eslint.org/docs/rules/no-param-reassign 103 | "no-proto": 2, // http://eslint.org/docs/rules/no-proto 104 | "no-redeclare": 2, // http://eslint.org/docs/rules/no-redeclare 105 | "no-return-assign": 2, // http://eslint.org/docs/rules/no-return-assign 106 | "no-script-url": 2, // http://eslint.org/docs/rules/no-script-url 107 | "no-self-compare": 2, // http://eslint.org/docs/rules/no-self-compare 108 | "no-sequences": 2, // http://eslint.org/docs/rules/no-sequences 109 | "no-throw-literal": 2, // http://eslint.org/docs/rules/no-throw-literal 110 | "no-with": 2, // http://eslint.org/docs/rules/no-with 111 | "radix": 2, // http://eslint.org/docs/rules/radix 112 | "vars-on-top": 2, // http://eslint.org/docs/rules/vars-on-top 113 | "wrap-iife": [2, "any"], // http://eslint.org/docs/rules/wrap-iife 114 | "yoda": 2, // http://eslint.org/docs/rules/yoda 115 | 116 | /** 117 | * Style 118 | */ 119 | "indent": [2, 2], // http://eslint.org/docs/rules/indent 120 | "brace-style": [2, // http://eslint.org/docs/rules/brace-style 121 | "1tbs", { 122 | "allowSingleLine": true 123 | }], 124 | "quotes": [ 125 | 2, "single", "avoid-escape" // http://eslint.org/docs/rules/quotes 126 | ], 127 | "camelcase": [2, { // http://eslint.org/docs/rules/camelcase 128 | "properties": "never" 129 | }], 130 | "comma-spacing": [2, { // http://eslint.org/docs/rules/comma-spacing 131 | "before": false, 132 | "after": true 133 | }], 134 | "comma-style": [2, "last"], // http://eslint.org/docs/rules/comma-style 135 | "eol-last": 2, // http://eslint.org/docs/rules/eol-last 136 | "func-names": 1, // http://eslint.org/docs/rules/func-names 137 | "key-spacing": [2, { // http://eslint.org/docs/rules/key-spacing 138 | "beforeColon": false, 139 | "afterColon": true 140 | }], 141 | "new-cap": [2, { // http://eslint.org/docs/rules/new-cap 142 | "newIsCap": true, 143 | "capIsNew": false 144 | }], 145 | "no-multiple-empty-lines": [2, { // http://eslint.org/docs/rules/no-multiple-empty-lines 146 | "max": 2 147 | }], 148 | "no-nested-ternary": 2, // http://eslint.org/docs/rules/no-nested-ternary 149 | "no-new-object": 2, // http://eslint.org/docs/rules/no-new-object 150 | "no-spaced-func": 2, // http://eslint.org/docs/rules/no-spaced-func 151 | "no-trailing-spaces": 2, // http://eslint.org/docs/rules/no-trailing-spaces 152 | "no-extra-parens": [2, "functions"], // http://eslint.org/docs/rules/no-extra-parens 153 | "no-underscore-dangle": 0, // http://eslint.org/docs/rules/no-underscore-dangle 154 | "one-var": [2, "never"], // http://eslint.org/docs/rules/one-var 155 | "padded-blocks": [2, "never"], // http://eslint.org/docs/rules/padded-blocks 156 | "semi": [2, "always"], // http://eslint.org/docs/rules/semi 157 | "semi-spacing": [2, { // http://eslint.org/docs/rules/semi-spacing 158 | "before": false, 159 | "after": true 160 | }], 161 | "keyword-spacing": 2, // http://eslint.org/docs/rules/space-after-keywords 162 | "space-before-blocks": 2, // http://eslint.org/docs/rules/space-before-blocks 163 | "space-before-function-paren": [2, "never"], // http://eslint.org/docs/rules/space-before-function-paren 164 | "space-infix-ops": 2, // http://eslint.org/docs/rules/space-infix-ops 165 | "spaced-comment": 2 // http://eslint.org/docs/rules/spaced-comment 166 | } 167 | } 168 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | *.log 3 | 4 | .lock-wscript 5 | .idea/ 6 | *~ 7 | \#*# 8 | .#* 9 | *.keystore 10 | *.sw* 11 | .DS_Store 12 | ._* 13 | Thumbs.db 14 | .cache 15 | *.sublime-project 16 | *.sublime-workspace 17 | *swp 18 | *swo 19 | *swn 20 | package 21 | build 22 | temp 23 | .tmp 24 | node_modules 25 | bower_components 26 | jspm_packages 27 | .test 28 | www 29 | lib/ 30 | dist 31 | lib 32 | coverage 33 | *.tgz 34 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Neil Fenton 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # redux-ui-router 2 | 3 | > ngRedux bindings for Angular UI Router - Keep your router state inside your ngRedux store. 4 | 5 | - Maintains router state inside your store 6 | - Use actions to transition your UI instead of `$state` 7 | - Use your store state to access route params instead of `$stateParams` 8 | 9 | ## Getting Started 10 | 11 | ### Installation 12 | ```bash 13 | $ npm install redux-ui-router 14 | ```` 15 | 16 | ## Table of Contents 17 | 18 | - [Reducer](#reducer) 19 | - [Actions](#actions) 20 | - [Middleware](#middleware) 21 | - [Listener](#listener) 22 | - [Example](#example) 23 | 24 | ## Reducer 25 | 26 | ngRedux UI Router includes a reducer which is responsible for managing the current route parameters inside your store. 27 | 28 | ### Usage: 29 | 30 | Include this reducer by importing it from `redux-ui-router`: 31 | 32 | ``` 33 | import {combineReducers} from 'redux'; 34 | import {router} from 'redux-ui-router'; 35 | import myReducer from './myReducer'; 36 | 37 | const rootReducer = combineReducers({ 38 | myReducer, 39 | router 40 | }); 41 | 42 | export default rootReducer; 43 | ``` 44 | 45 | This will provide you the ability to tap into the current route parameters from `state.router`. Typically route parameters would come from `$stateParams`, instead you will now use `state.router` to grab these parameters. This makes it easier when you derive new data from your store, or when you perform an action that requires a state parameter. 46 | 47 | **Note:** This pattern will require you to enforce it yourself, there is nothing preventing you from using `$stateParams`. 48 | 49 | In a controller or selector, we can now access the state of the router: 50 | 51 | ``` 52 | class SomeController { 53 | constructor($ngRedux,$scope) { 54 | let disconnect = $ngRedux.connect(state => ({router: state.router}))(this); 55 | ... 56 | } 57 | } 58 | ``` 59 | 60 | **Note:** As of v0.4.0, Immutable.js is no longer used. To access router properties, use `router.currentParams[myParam]` instead of `router.getIn(['currentParams', 'myParam'])`. 61 | 62 | ## Actions 63 | 64 | ngRedux UI Router includes several actions which mimic functionality that Angular UI Router provides. These actions should be used instead of interacting directly with `$state`. These actions can be imported directly from `redux-ui-router`. 65 | 66 | ### Usage: 67 | 68 | #### stateGo(to, params, options) 69 | 70 | This action create will trigger a $state.go in the UiRouter Middleware. Accepts a payload which matches the UI Router $state.go function. 71 | 72 | [Documentation Reference](https://github.com/angular-ui/ui-router/wiki/Quick-Reference#stategoto--toparams--options) 73 | 74 | #### stateReload(to, params, options) 75 | 76 | This action create will trigger a $state.reload in the UiRouter Middleware. Accepts a payload which matches the UI Router $state.reload function. 77 | 78 | [Documentation Reference](https://github.com/angular-ui/ui-router/wiki/Quick-Reference#statereload) 79 | 80 | #### stateTransitionTo(to, params, options) 81 | 82 | This action create will trigger a $state.transitionTo in the UiRouter Middleware. Accepts a payload which matches the UI Router $state.transitionTo function. 83 | 84 | [Documentation Reference](https://github.com/angular-ui/ui-router/wiki/Quick-Reference#statetransitiontoto-toparams--options) 85 | 86 | ## Middleware 87 | 88 | ngRedux UI Router includes a middleware for performing `$state` interactions based on the above actions being fired. Whenever one of the above actions is fired, the corresponding `$state` function is called. For example, firing the `stateGo` action will cause the middleware to perform a `$state.go` function under the hood, and then inform the system that upon resolving the transition, that the action was fired. 89 | 90 | ### Usage: 91 | 92 | The middleware should be used when creating your ngRedux store, this should be done as follows: 93 | 94 | ``` 95 | $ngReduxProvider.createStoreWith(reducers, [ 96 | 'myOtherMiddleware', 97 | 'ngUiRouterMiddleware', 98 | thunk, 99 | logger 100 | ]); 101 | ``` 102 | 103 | For additional information, refer to the [ngRedux documentation](https://github.com/wbuchwalter/ng-redux#api). 104 | 105 | ## Listener 106 | 107 | ngReudx UI Router provides a listener which taps into Angular UI Router's `$stateChangeStart`, `$locationChangeSuccess`, `$stateChangeError`, and `$stateNotFound` events. The listener is responsible for firing actions whenever one of these events occur. This allows us to track the state of the router whenever it is interacted with. 108 | 109 | ### Usage: 110 | 111 | This listener is in the run block of the ngReduxUiRouter module. Including it in your app module will automatically set this up to begin listening to UI Router events. 112 | 113 | ``` 114 | // Import Angular 115 | import angular from 'angular'; 116 | import ngRedux from 'ng-redux'; 117 | import ngReduxUiRouter from 'redux-ui-router'; 118 | 119 | // Import Angular Components 120 | import components from './components'; 121 | 122 | // Import Configuration 123 | import configNgReduxProvider from './config/ng-redux'; 124 | 125 | export default angular 126 | .module('myApp', [ 127 | ngRedux, 128 | ngReduxUiRouter, 129 | components 130 | ]) 131 | .config(configNgReduxProvider) 132 | .name; 133 | 134 | ``` 135 | 136 | ## Example 137 | 138 | For a more complete example, take a look at [the example here](https://github.com/neilff/redux-ui-router/tree/master/example). 139 | 140 | To run the example: 141 | 142 | ``` 143 | git clone https://github.com/neilff/redux-ui-router/ 144 | npm install 145 | cd example 146 | npm install 147 | npm run start 148 | ``` 149 | -------------------------------------------------------------------------------- /example/devTools.js: -------------------------------------------------------------------------------- 1 | import { createDevTools} from 'redux-devtools'; 2 | import { render } from 'react-dom'; 3 | import LogMonitor from 'redux-devtools-log-monitor'; 4 | import DockMonitor from 'redux-devtools-dock-monitor'; 5 | import SliderMonitor from 'redux-slider-monitor'; 6 | import React from 'react' 7 | import { Provider } from 'react-redux'; 8 | 9 | const DevTools = createDevTools( 10 | 13 | 14 | 15 | 16 | ); 17 | 18 | export function runDevTools($ngRedux, $rootScope) { 19 | render( 20 | 21 |
22 | 23 |
24 |
, 25 | document.getElementById('devTools') 26 | ); 27 | 28 | //Hack to reflect state changes when disabling/enabling actions via the monitor 29 | $ngRedux.subscribe(_ => { 30 | setTimeout($rootScope.$apply.bind($rootScope), 100); 31 | }); 32 | } 33 | 34 | export default DevTools; 35 | 36 | -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ng-redux-ui-router 6 | 7 | 8 |
9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- 1 | import angular from 'angular'; 2 | import uiRouter from '@uirouter/angularjs'; 3 | 4 | import ngRedux from 'ng-redux'; 5 | import { combineReducers } from 'redux'; 6 | import thunk from 'redux-thunk'; 7 | import createLogger from 'redux-logger'; 8 | import { default as DevTools, runDevTools } from './devTools'; 9 | 10 | import ngReduxRouter from '../src'; 11 | 12 | import { router, stateGo, stateReload, stateTransitionTo } from '../src'; 13 | 14 | const routerActions = { 15 | stateGo, 16 | stateReload, 17 | stateTransitionTo, 18 | }; 19 | 20 | export default angular 21 | .module('demoApp', [uiRouter, ngRedux, ngReduxRouter]) 22 | .config(($urlRouterProvider, $stateProvider) => { 23 | $urlRouterProvider.otherwise('/app'); 24 | 25 | $stateProvider 26 | .state('app', { 27 | url: '/app', 28 | views: { 29 | main: { 30 | template: ` 31 |
{{ globalState | json }}
32 |
33 |

Main View

34 | 35 | 46 |
47 |
48 | `, 49 | controller: ($scope, $ngRedux) => { 50 | $scope.globalState = {}; 51 | 52 | $ngRedux.connect(state => { 53 | return { 54 | globalState: state, 55 | }; 56 | })($scope); 57 | }, 58 | }, 59 | }, 60 | }) 61 | .state('app.child1', { 62 | url: '/child1?hello?optional', 63 | views: { 64 | child: { 65 | controller: ($scope, $ngRedux) => { 66 | const disconnect = $ngRedux.connect( 67 | state => state, 68 | routerActions 69 | )($scope); 70 | 71 | $scope.$on('$destroy', disconnect); 72 | }, 73 | template: ` 74 |
75 |

Child View 1

76 | 77 | 78 | 79 |
80 | `, 81 | }, 82 | }, 83 | }) 84 | .state('app.child2', { 85 | url: '/child2', 86 | views: { 87 | child: { 88 | controller: ($scope, $ngRedux) => { 89 | const disconnect = $ngRedux.connect( 90 | state => state, 91 | routerActions 92 | )($scope); 93 | 94 | $scope.$on('$destroy', disconnect); 95 | }, 96 | template: ` 97 |
98 |

Child View 2

99 | 100 | 101 | 102 |
103 | `, 104 | }, 105 | }, 106 | }) 107 | .state('app.child3', { 108 | url: '/child3?id', 109 | params: { 110 | hello: 'world', 111 | }, 112 | reloadOnSearch: false, 113 | views: { 114 | child: { 115 | controller: ($scope, $ngRedux) => { 116 | const disconnect = $ngRedux.connect( 117 | state => state, 118 | routerActions 119 | )($scope); 120 | 121 | $scope.$on('$destroy', disconnect); 122 | }, 123 | template: ` 124 |
125 |

Child View 3

126 |

ID: {{router.currentParams.id}}

127 | 128 | 129 | 130 |
131 | `, 132 | }, 133 | }, 134 | }) 135 | .state('app.child4', { 136 | url: '/child4', 137 | prohibited: true, 138 | views: { 139 | child: { 140 | template: ` 141 |
142 |

Child View 4

143 |
This state is prohibited. You should've been redirected to the root.
144 |
145 | `, 146 | }, 147 | }, 148 | }); 149 | }) 150 | .config($ngReduxProvider => { 151 | const logger = createLogger({ 152 | level: 'info', 153 | collapsed: true, 154 | }); 155 | 156 | const reducers = combineReducers({ 157 | router, 158 | }); 159 | 160 | const middlewares = ['ngUiRouterMiddleware', thunk, logger]; 161 | const enhancers = [DevTools.instrument()]; 162 | 163 | $ngReduxProvider.createStoreWith(reducers, middlewares, enhancers); 164 | }) 165 | .run(runDevTools) 166 | .run(($transitions, $state, $ngRedux) => { 167 | // If save something to the store, dispatch will force state change update 168 | console.log('will do dispatch'); 169 | $ngRedux.dispatch({ type: 'SOME_ACTION' }); 170 | console.log('did dispatch'); 171 | 172 | const matchCriteria = { to: state => state.prohibited }; 173 | 174 | $transitions.onBefore(matchCriteria, $transition$ => { 175 | if ($transition$.to().prohibited) { 176 | console.log('prohibited state change cancelled'); 177 | return $state.target('app', { location: 'replace' }); 178 | } 179 | }); 180 | 181 | console.log('$transitions.onBefore callback is ready'); 182 | }).name; 183 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-ui-router-redux", 3 | "version": "0.1.0", 4 | "main": "index.js", 5 | "scripts": { 6 | "start": "npm install; node server.js", 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "devDependencies": { 10 | "babel-core": "6.13.1", 11 | "babel-loader": "6.2.4", 12 | "react": "^15.3.0", 13 | "react-dom": "^15.3.0", 14 | "redux-batched-updates": "0.1.0", 15 | "redux-devtools-dock-monitor": "^1.1.1", 16 | "redux-devtools-log-monitor": "^1.0.11", 17 | "redux-slider-monitor": "^1.0.7", 18 | "webpack": "1.13.1", 19 | "webpack-dev-server": "1.14.1" 20 | }, 21 | "license": "MIT", 22 | "dependencies": { 23 | "@uirouter/angularjs": "^1.0.3", 24 | "angular": "^1.5.1", 25 | "ng-redux": "^3.3.3", 26 | "react-redux": "^4.4.5", 27 | "redux": "^3.5.2", 28 | "redux-devtools": "^3.3.1", 29 | "redux-logger": "2.6.1", 30 | "redux-thunk": "2.1.0" 31 | }, 32 | "engines": { 33 | "node": ">=6.0.0" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /example/server.js: -------------------------------------------------------------------------------- 1 | var webpack = require('webpack'); 2 | var WebpackDevServer = require('webpack-dev-server'); 3 | var config = require('./webpack.config'); 4 | 5 | new WebpackDevServer(webpack(config), { 6 | publicPath: config.output.publicPath, 7 | hot: true, 8 | stats: { 9 | colors: true 10 | } 11 | }) 12 | .listen(3000, 'localhost', function (err) { 13 | if (err) { 14 | console.log(err); 15 | } 16 | 17 | console.log('http://localhost:3000'); 18 | }); 19 | -------------------------------------------------------------------------------- /example/styles.css: -------------------------------------------------------------------------------- 1 | html, 2 | body { 3 | padding: 0; 4 | margin: 0; 5 | } 6 | 7 | main { 8 | background-color: lightgray; 9 | } 10 | 11 | pre { 12 | position: fixed; 13 | top: 0; 14 | left: 0; 15 | width: 300px; 16 | bottom: 0; 17 | background-color: black; 18 | color: white; 19 | } 20 | 21 | .mainView { 22 | margin-left: 400px; 23 | min-height: 100vh; 24 | } 25 | 26 | .child-view { 27 | background-color: white; 28 | padding: 15px; 29 | margin: 15px; 30 | } 31 | -------------------------------------------------------------------------------- /example/webpack.config.js: -------------------------------------------------------------------------------- 1 | var path = require('path'); 2 | var webpack = require('webpack'); 3 | 4 | module.exports = { 5 | devtool: 'eval', 6 | entry: [ 7 | 'webpack-dev-server/client?http://localhost:3000', 8 | 'webpack/hot/dev-server', 9 | './index', 10 | //Remove the following line to remove devTools 11 | './devTools.js' 12 | ], 13 | output: { 14 | path: path.join(__dirname, 'dist'), 15 | filename: 'bundle.js', 16 | publicPath: '/static/' 17 | }, 18 | plugins: [ 19 | new webpack.HotModuleReplacementPlugin(), 20 | new webpack.NoErrorsPlugin() 21 | ], 22 | module: { 23 | loaders: [{ 24 | test: /\.js$/, 25 | loader: 'babel', 26 | exclude: /node_modules/, 27 | query: { 28 | presets: ['es2015', 'stage-0', 'react'] 29 | } 30 | }, { 31 | test: /\.css?$/, 32 | loaders: ['style', 'raw'], 33 | exclude: /node_modules/ 34 | }] 35 | } 36 | }; 37 | -------------------------------------------------------------------------------- /example/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@uirouter/angularjs@^1.0.3": 6 | version "1.0.3" 7 | resolved "https://registry.yarnpkg.com/@uirouter/angularjs/-/angularjs-1.0.3.tgz#518b875542b4d86dd1aaf5f4262ccee416f2c166" 8 | dependencies: 9 | "@uirouter/core" "5.0.3" 10 | 11 | "@uirouter/core@5.0.3": 12 | version "5.0.3" 13 | resolved "https://registry.yarnpkg.com/@uirouter/core/-/core-5.0.3.tgz#e2b5b1e45190e20c67ba4e15c013de5d4e0ccab3" 14 | 15 | Base64@~0.2.0: 16 | version "0.2.1" 17 | resolved "https://registry.yarnpkg.com/Base64/-/Base64-0.2.1.tgz#ba3a4230708e186705065e66babdd4c35cf60028" 18 | 19 | abbrev@1: 20 | version "1.1.0" 21 | resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f" 22 | 23 | accepts@~1.3.3: 24 | version "1.3.3" 25 | resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.3.tgz#c3ca7434938648c3e0d9c1e328dd68b622c284ca" 26 | dependencies: 27 | mime-types "~2.1.11" 28 | negotiator "0.6.1" 29 | 30 | acorn@^3.0.0: 31 | version "3.3.0" 32 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" 33 | 34 | ajv@^4.9.1: 35 | version "4.11.8" 36 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" 37 | dependencies: 38 | co "^4.6.0" 39 | json-stable-stringify "^1.0.1" 40 | 41 | align-text@^0.1.1, align-text@^0.1.3: 42 | version "0.1.4" 43 | resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" 44 | dependencies: 45 | kind-of "^3.0.2" 46 | longest "^1.0.1" 47 | repeat-string "^1.5.2" 48 | 49 | amdefine@>=0.0.4: 50 | version "1.0.1" 51 | resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" 52 | 53 | angular@^1.5.1: 54 | version "1.6.4" 55 | resolved "https://registry.yarnpkg.com/angular/-/angular-1.6.4.tgz#03b7b15c01a0802d7e2cf593240e604054dc77fb" 56 | 57 | ansi-regex@^2.0.0: 58 | version "2.1.1" 59 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 60 | 61 | ansi-styles@^2.2.1: 62 | version "2.2.1" 63 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" 64 | 65 | anymatch@^1.3.0: 66 | version "1.3.0" 67 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507" 68 | dependencies: 69 | arrify "^1.0.0" 70 | micromatch "^2.1.5" 71 | 72 | aproba@^1.0.3: 73 | version "1.1.1" 74 | resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.1.1.tgz#95d3600f07710aa0e9298c726ad5ecf2eacbabab" 75 | 76 | are-we-there-yet@~1.1.2: 77 | version "1.1.4" 78 | resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" 79 | dependencies: 80 | delegates "^1.0.0" 81 | readable-stream "^2.0.6" 82 | 83 | arr-diff@^2.0.0: 84 | version "2.0.0" 85 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" 86 | dependencies: 87 | arr-flatten "^1.0.1" 88 | 89 | arr-flatten@^1.0.1: 90 | version "1.0.3" 91 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.0.3.tgz#a274ed85ac08849b6bd7847c4580745dc51adfb1" 92 | 93 | array-flatten@1.1.1: 94 | version "1.1.1" 95 | resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" 96 | 97 | array-unique@^0.2.1: 98 | version "0.2.1" 99 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" 100 | 101 | arrify@^1.0.0: 102 | version "1.0.1" 103 | resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" 104 | 105 | asap@~2.0.3: 106 | version "2.0.5" 107 | resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.5.tgz#522765b50c3510490e52d7dcfe085ef9ba96958f" 108 | 109 | asn1@~0.2.3: 110 | version "0.2.3" 111 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" 112 | 113 | assert-plus@1.0.0, assert-plus@^1.0.0: 114 | version "1.0.0" 115 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 116 | 117 | assert-plus@^0.2.0: 118 | version "0.2.0" 119 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" 120 | 121 | assert@^1.1.1: 122 | version "1.4.1" 123 | resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" 124 | dependencies: 125 | util "0.10.3" 126 | 127 | async-each@^1.0.0: 128 | version "1.0.1" 129 | resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" 130 | 131 | async@^0.9.0: 132 | version "0.9.2" 133 | resolved "https://registry.yarnpkg.com/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d" 134 | 135 | async@^1.3.0: 136 | version "1.5.2" 137 | resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" 138 | 139 | async@~0.2.6: 140 | version "0.2.10" 141 | resolved "https://registry.yarnpkg.com/async/-/async-0.2.10.tgz#b6bbe0b0674b9d719708ca38de8c237cb526c3d1" 142 | 143 | asynckit@^0.4.0: 144 | version "0.4.0" 145 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 146 | 147 | aws-sign2@~0.6.0: 148 | version "0.6.0" 149 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" 150 | 151 | aws4@^1.2.1: 152 | version "1.6.0" 153 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" 154 | 155 | babel-code-frame@^6.22.0, babel-code-frame@^6.8.0: 156 | version "6.22.0" 157 | resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4" 158 | dependencies: 159 | chalk "^1.1.0" 160 | esutils "^2.0.2" 161 | js-tokens "^3.0.0" 162 | 163 | babel-core@6.13.1: 164 | version "6.13.1" 165 | resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.13.1.tgz#da58cd8d12fed19e3882c247148cce4e20a3737c" 166 | dependencies: 167 | babel-code-frame "^6.8.0" 168 | babel-generator "^6.11.4" 169 | babel-helpers "^6.8.0" 170 | babel-messages "^6.8.0" 171 | babel-register "^6.9.0" 172 | babel-runtime "^6.9.1" 173 | babel-template "^6.9.0" 174 | babel-traverse "^6.13.0" 175 | babel-types "^6.13.0" 176 | babylon "^6.7.0" 177 | convert-source-map "^1.1.0" 178 | debug "^2.1.1" 179 | json5 "^0.4.0" 180 | lodash "^4.2.0" 181 | minimatch "^3.0.2" 182 | path-exists "^1.0.0" 183 | path-is-absolute "^1.0.0" 184 | private "^0.1.6" 185 | shebang-regex "^1.0.0" 186 | slash "^1.0.0" 187 | source-map "^0.5.0" 188 | 189 | babel-core@^6.24.1: 190 | version "6.24.1" 191 | resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.24.1.tgz#8c428564dce1e1f41fb337ec34f4c3b022b5ad83" 192 | dependencies: 193 | babel-code-frame "^6.22.0" 194 | babel-generator "^6.24.1" 195 | babel-helpers "^6.24.1" 196 | babel-messages "^6.23.0" 197 | babel-register "^6.24.1" 198 | babel-runtime "^6.22.0" 199 | babel-template "^6.24.1" 200 | babel-traverse "^6.24.1" 201 | babel-types "^6.24.1" 202 | babylon "^6.11.0" 203 | convert-source-map "^1.1.0" 204 | debug "^2.1.1" 205 | json5 "^0.5.0" 206 | lodash "^4.2.0" 207 | minimatch "^3.0.2" 208 | path-is-absolute "^1.0.0" 209 | private "^0.1.6" 210 | slash "^1.0.0" 211 | source-map "^0.5.0" 212 | 213 | babel-generator@^6.11.4, babel-generator@^6.24.1: 214 | version "6.24.1" 215 | resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.24.1.tgz#e715f486c58ded25649d888944d52aa07c5d9497" 216 | dependencies: 217 | babel-messages "^6.23.0" 218 | babel-runtime "^6.22.0" 219 | babel-types "^6.24.1" 220 | detect-indent "^4.0.0" 221 | jsesc "^1.3.0" 222 | lodash "^4.2.0" 223 | source-map "^0.5.0" 224 | trim-right "^1.0.1" 225 | 226 | babel-helpers@^6.24.1, babel-helpers@^6.8.0: 227 | version "6.24.1" 228 | resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" 229 | dependencies: 230 | babel-runtime "^6.22.0" 231 | babel-template "^6.24.1" 232 | 233 | babel-loader@6.2.4: 234 | version "6.2.4" 235 | resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-6.2.4.tgz#aa70aff8ddc223a5952e839a43a6c3a4c8bfa1e9" 236 | dependencies: 237 | loader-utils "^0.2.11" 238 | mkdirp "^0.5.1" 239 | object-assign "^4.0.1" 240 | 241 | babel-messages@^6.23.0, babel-messages@^6.8.0: 242 | version "6.23.0" 243 | resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" 244 | dependencies: 245 | babel-runtime "^6.22.0" 246 | 247 | babel-register@^6.24.1, babel-register@^6.9.0: 248 | version "6.24.1" 249 | resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.24.1.tgz#7e10e13a2f71065bdfad5a1787ba45bca6ded75f" 250 | dependencies: 251 | babel-core "^6.24.1" 252 | babel-runtime "^6.22.0" 253 | core-js "^2.4.0" 254 | home-or-tmp "^2.0.0" 255 | lodash "^4.2.0" 256 | mkdirp "^0.5.1" 257 | source-map-support "^0.4.2" 258 | 259 | babel-runtime@^6.2.0, babel-runtime@^6.22.0, babel-runtime@^6.6.1, babel-runtime@^6.9.1: 260 | version "6.23.0" 261 | resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.23.0.tgz#0a9489f144de70efb3ce4300accdb329e2fc543b" 262 | dependencies: 263 | core-js "^2.4.0" 264 | regenerator-runtime "^0.10.0" 265 | 266 | babel-template@^6.24.1, babel-template@^6.9.0: 267 | version "6.24.1" 268 | resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.24.1.tgz#04ae514f1f93b3a2537f2a0f60a5a45fb8308333" 269 | dependencies: 270 | babel-runtime "^6.22.0" 271 | babel-traverse "^6.24.1" 272 | babel-types "^6.24.1" 273 | babylon "^6.11.0" 274 | lodash "^4.2.0" 275 | 276 | babel-traverse@^6.13.0, babel-traverse@^6.24.1: 277 | version "6.24.1" 278 | resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.24.1.tgz#ab36673fd356f9a0948659e7b338d5feadb31695" 279 | dependencies: 280 | babel-code-frame "^6.22.0" 281 | babel-messages "^6.23.0" 282 | babel-runtime "^6.22.0" 283 | babel-types "^6.24.1" 284 | babylon "^6.15.0" 285 | debug "^2.2.0" 286 | globals "^9.0.0" 287 | invariant "^2.2.0" 288 | lodash "^4.2.0" 289 | 290 | babel-types@^6.13.0, babel-types@^6.24.1: 291 | version "6.24.1" 292 | resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.24.1.tgz#a136879dc15b3606bda0d90c1fc74304c2ff0975" 293 | dependencies: 294 | babel-runtime "^6.22.0" 295 | esutils "^2.0.2" 296 | lodash "^4.2.0" 297 | to-fast-properties "^1.0.1" 298 | 299 | babylon@^6.11.0, babylon@^6.15.0, babylon@^6.7.0: 300 | version "6.17.0" 301 | resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.17.0.tgz#37da948878488b9c4e3c4038893fa3314b3fc932" 302 | 303 | balanced-match@^0.4.1: 304 | version "0.4.2" 305 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" 306 | 307 | base16@^1.0.0: 308 | version "1.0.0" 309 | resolved "https://registry.yarnpkg.com/base16/-/base16-1.0.0.tgz#e297f60d7ec1014a7a971a39ebc8a98c0b681e70" 310 | 311 | base64-js@^1.0.2: 312 | version "1.2.0" 313 | resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.0.tgz#a39992d723584811982be5e290bb6a53d86700f1" 314 | 315 | batch@0.5.3: 316 | version "0.5.3" 317 | resolved "https://registry.yarnpkg.com/batch/-/batch-0.5.3.tgz#3f3414f380321743bfc1042f9a83ff1d5824d464" 318 | 319 | bcrypt-pbkdf@^1.0.0: 320 | version "1.0.1" 321 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" 322 | dependencies: 323 | tweetnacl "^0.14.3" 324 | 325 | big.js@^3.1.3: 326 | version "3.1.3" 327 | resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.1.3.tgz#4cada2193652eb3ca9ec8e55c9015669c9806978" 328 | 329 | binary-extensions@^1.0.0: 330 | version "1.8.0" 331 | resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.8.0.tgz#48ec8d16df4377eae5fa5884682480af4d95c774" 332 | 333 | block-stream@*: 334 | version "0.0.9" 335 | resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" 336 | dependencies: 337 | inherits "~2.0.0" 338 | 339 | boom@2.x.x: 340 | version "2.10.1" 341 | resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" 342 | dependencies: 343 | hoek "2.x.x" 344 | 345 | brace-expansion@^1.0.0: 346 | version "1.1.7" 347 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.7.tgz#3effc3c50e000531fb720eaff80f0ae8ef23cf59" 348 | dependencies: 349 | balanced-match "^0.4.1" 350 | concat-map "0.0.1" 351 | 352 | braces@^1.8.2: 353 | version "1.8.5" 354 | resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" 355 | dependencies: 356 | expand-range "^1.8.1" 357 | preserve "^0.2.0" 358 | repeat-element "^1.1.2" 359 | 360 | browserify-zlib@~0.1.4: 361 | version "0.1.4" 362 | resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.1.4.tgz#bb35f8a519f600e0fa6b8485241c979d0141fb2d" 363 | dependencies: 364 | pako "~0.2.0" 365 | 366 | buffer-shims@~1.0.0: 367 | version "1.0.0" 368 | resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" 369 | 370 | buffer@^4.9.0: 371 | version "4.9.1" 372 | resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" 373 | dependencies: 374 | base64-js "^1.0.2" 375 | ieee754 "^1.1.4" 376 | isarray "^1.0.0" 377 | 378 | bytes@2.3.0: 379 | version "2.3.0" 380 | resolved "https://registry.yarnpkg.com/bytes/-/bytes-2.3.0.tgz#d5b680a165b6201739acb611542aabc2d8ceb070" 381 | 382 | camelcase@^1.0.2: 383 | version "1.2.1" 384 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" 385 | 386 | caseless@~0.12.0: 387 | version "0.12.0" 388 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" 389 | 390 | center-align@^0.1.1: 391 | version "0.1.3" 392 | resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" 393 | dependencies: 394 | align-text "^0.1.3" 395 | lazy-cache "^1.0.3" 396 | 397 | chalk@^1.1.0: 398 | version "1.1.3" 399 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" 400 | dependencies: 401 | ansi-styles "^2.2.1" 402 | escape-string-regexp "^1.0.2" 403 | has-ansi "^2.0.0" 404 | strip-ansi "^3.0.0" 405 | supports-color "^2.0.0" 406 | 407 | chokidar@^1.0.0: 408 | version "1.6.1" 409 | resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.6.1.tgz#2f4447ab5e96e50fb3d789fd90d4c72e0e4c70c2" 410 | dependencies: 411 | anymatch "^1.3.0" 412 | async-each "^1.0.0" 413 | glob-parent "^2.0.0" 414 | inherits "^2.0.1" 415 | is-binary-path "^1.0.0" 416 | is-glob "^2.0.0" 417 | path-is-absolute "^1.0.0" 418 | readdirp "^2.0.0" 419 | optionalDependencies: 420 | fsevents "^1.0.0" 421 | 422 | cliui@^2.1.0: 423 | version "2.1.0" 424 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" 425 | dependencies: 426 | center-align "^0.1.1" 427 | right-align "^0.1.1" 428 | wordwrap "0.0.2" 429 | 430 | clone@^1.0.2: 431 | version "1.0.2" 432 | resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.2.tgz#260b7a99ebb1edfe247538175f783243cb19d149" 433 | 434 | co@^4.6.0: 435 | version "4.6.0" 436 | resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" 437 | 438 | code-point-at@^1.0.0: 439 | version "1.1.0" 440 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 441 | 442 | combined-stream@^1.0.5, combined-stream@~1.0.5: 443 | version "1.0.5" 444 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" 445 | dependencies: 446 | delayed-stream "~1.0.0" 447 | 448 | compressible@~2.0.8: 449 | version "2.0.10" 450 | resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.10.tgz#feda1c7f7617912732b29bf8cf26252a20b9eecd" 451 | dependencies: 452 | mime-db ">= 1.27.0 < 2" 453 | 454 | compression@^1.5.2: 455 | version "1.6.2" 456 | resolved "https://registry.yarnpkg.com/compression/-/compression-1.6.2.tgz#cceb121ecc9d09c52d7ad0c3350ea93ddd402bc3" 457 | dependencies: 458 | accepts "~1.3.3" 459 | bytes "2.3.0" 460 | compressible "~2.0.8" 461 | debug "~2.2.0" 462 | on-headers "~1.0.1" 463 | vary "~1.1.0" 464 | 465 | concat-map@0.0.1: 466 | version "0.0.1" 467 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 468 | 469 | connect-history-api-fallback@1.1.0: 470 | version "1.1.0" 471 | resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.1.0.tgz#5a6dee82d9a648cb29131d3f9dd400ffa4593742" 472 | 473 | console-browserify@^1.1.0: 474 | version "1.1.0" 475 | resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" 476 | dependencies: 477 | date-now "^0.1.4" 478 | 479 | console-control-strings@^1.0.0, console-control-strings@~1.1.0: 480 | version "1.1.0" 481 | resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" 482 | 483 | constants-browserify@0.0.1: 484 | version "0.0.1" 485 | resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-0.0.1.tgz#92577db527ba6c4cf0a4568d84bc031f441e21f2" 486 | 487 | content-disposition@0.5.2: 488 | version "0.5.2" 489 | resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4" 490 | 491 | content-type@~1.0.2: 492 | version "1.0.2" 493 | resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.2.tgz#b7d113aee7a8dd27bd21133c4dc2529df1721eed" 494 | 495 | convert-source-map@^1.1.0: 496 | version "1.5.0" 497 | resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.0.tgz#9acd70851c6d5dfdd93d9282e5edf94a03ff46b5" 498 | 499 | cookie-signature@1.0.6: 500 | version "1.0.6" 501 | resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" 502 | 503 | cookie@0.3.1: 504 | version "0.3.1" 505 | resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb" 506 | 507 | core-js@^1.0.0: 508 | version "1.2.7" 509 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" 510 | 511 | core-js@^2.4.0: 512 | version "2.4.1" 513 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.4.1.tgz#4de911e667b0eae9124e34254b53aea6fc618d3e" 514 | 515 | core-util-is@~1.0.0: 516 | version "1.0.2" 517 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 518 | 519 | create-react-class@^15.5.1: 520 | version "15.5.2" 521 | resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.5.2.tgz#6a8758348df660b88326a0e764d569f274aad681" 522 | dependencies: 523 | fbjs "^0.8.9" 524 | object-assign "^4.1.1" 525 | 526 | cryptiles@2.x.x: 527 | version "2.0.5" 528 | resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" 529 | dependencies: 530 | boom "2.x.x" 531 | 532 | crypto-browserify@~3.2.6: 533 | version "3.2.8" 534 | resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.2.8.tgz#b9b11dbe6d9651dd882a01e6cc467df718ecf189" 535 | dependencies: 536 | pbkdf2-compat "2.0.1" 537 | ripemd160 "0.2.0" 538 | sha.js "2.2.6" 539 | 540 | css-element-queries@^0.3.2: 541 | version "0.3.2" 542 | resolved "https://registry.yarnpkg.com/css-element-queries/-/css-element-queries-0.3.2.tgz#535d80891b3af21395d005f19905fe5154b5ccff" 543 | 544 | dashdash@^1.12.0: 545 | version "1.14.1" 546 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 547 | dependencies: 548 | assert-plus "^1.0.0" 549 | 550 | date-now@^0.1.4: 551 | version "0.1.4" 552 | resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" 553 | 554 | debug@2.6.1: 555 | version "2.6.1" 556 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.1.tgz#79855090ba2c4e3115cc7d8769491d58f0491351" 557 | dependencies: 558 | ms "0.7.2" 559 | 560 | debug@2.6.4: 561 | version "2.6.4" 562 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.4.tgz#7586a9b3c39741c0282ae33445c4e8ac74734fe0" 563 | dependencies: 564 | ms "0.7.3" 565 | 566 | debug@^2.1.1, debug@^2.2.0: 567 | version "2.6.6" 568 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.6.tgz#a9fa6fbe9ca43cf1e79f73b75c0189cbb7d6db5a" 569 | dependencies: 570 | ms "0.7.3" 571 | 572 | debug@~2.2.0: 573 | version "2.2.0" 574 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da" 575 | dependencies: 576 | ms "0.7.1" 577 | 578 | decamelize@^1.0.0: 579 | version "1.2.0" 580 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" 581 | 582 | deep-extend@~0.4.0: 583 | version "0.4.1" 584 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.1.tgz#efe4113d08085f4e6f9687759810f807469e2253" 585 | 586 | delayed-stream@~1.0.0: 587 | version "1.0.0" 588 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 589 | 590 | delegates@^1.0.0: 591 | version "1.0.0" 592 | resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" 593 | 594 | depd@1.1.0, depd@~1.1.0: 595 | version "1.1.0" 596 | resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.0.tgz#e1bd82c6aab6ced965b97b88b17ed3e528ca18c3" 597 | 598 | destroy@~1.0.4: 599 | version "1.0.4" 600 | resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" 601 | 602 | detect-indent@^4.0.0: 603 | version "4.0.0" 604 | resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" 605 | dependencies: 606 | repeating "^2.0.0" 607 | 608 | domain-browser@^1.1.1: 609 | version "1.1.7" 610 | resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.1.7.tgz#867aa4b093faa05f1de08c06f4d7b21fdf8698bc" 611 | 612 | ecc-jsbn@~0.1.1: 613 | version "0.1.1" 614 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" 615 | dependencies: 616 | jsbn "~0.1.0" 617 | 618 | ee-first@1.1.1: 619 | version "1.1.1" 620 | resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" 621 | 622 | emojis-list@^2.0.0: 623 | version "2.1.0" 624 | resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" 625 | 626 | encodeurl@~1.0.1: 627 | version "1.0.1" 628 | resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.1.tgz#79e3d58655346909fe6f0f45a5de68103b294d20" 629 | 630 | encoding@^0.1.11: 631 | version "0.1.12" 632 | resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" 633 | dependencies: 634 | iconv-lite "~0.4.13" 635 | 636 | enhanced-resolve@~0.9.0: 637 | version "0.9.1" 638 | resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz#4d6e689b3725f86090927ccc86cd9f1635b89e2e" 639 | dependencies: 640 | graceful-fs "^4.1.2" 641 | memory-fs "^0.2.0" 642 | tapable "^0.1.8" 643 | 644 | errno@^0.1.3: 645 | version "0.1.4" 646 | resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d" 647 | dependencies: 648 | prr "~0.0.0" 649 | 650 | escape-html@~1.0.3: 651 | version "1.0.3" 652 | resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" 653 | 654 | escape-string-regexp@^1.0.2: 655 | version "1.0.5" 656 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 657 | 658 | esutils@^2.0.2: 659 | version "2.0.2" 660 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 661 | 662 | etag@~1.8.0: 663 | version "1.8.0" 664 | resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.0.tgz#6f631aef336d6c46362b51764044ce216be3c051" 665 | 666 | eventemitter3@1.x.x: 667 | version "1.2.0" 668 | resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-1.2.0.tgz#1c86991d816ad1e504750e73874224ecf3bec508" 669 | 670 | events@^1.0.0: 671 | version "1.1.1" 672 | resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" 673 | 674 | eventsource@0.1.6: 675 | version "0.1.6" 676 | resolved "https://registry.yarnpkg.com/eventsource/-/eventsource-0.1.6.tgz#0acede849ed7dd1ccc32c811bb11b944d4f29232" 677 | dependencies: 678 | original ">=0.0.5" 679 | 680 | expand-brackets@^0.1.4: 681 | version "0.1.5" 682 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" 683 | dependencies: 684 | is-posix-bracket "^0.1.0" 685 | 686 | expand-range@^1.8.1: 687 | version "1.8.2" 688 | resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" 689 | dependencies: 690 | fill-range "^2.1.0" 691 | 692 | express@^4.13.3: 693 | version "4.15.2" 694 | resolved "https://registry.yarnpkg.com/express/-/express-4.15.2.tgz#af107fc148504457f2dca9a6f2571d7129b97b35" 695 | dependencies: 696 | accepts "~1.3.3" 697 | array-flatten "1.1.1" 698 | content-disposition "0.5.2" 699 | content-type "~1.0.2" 700 | cookie "0.3.1" 701 | cookie-signature "1.0.6" 702 | debug "2.6.1" 703 | depd "~1.1.0" 704 | encodeurl "~1.0.1" 705 | escape-html "~1.0.3" 706 | etag "~1.8.0" 707 | finalhandler "~1.0.0" 708 | fresh "0.5.0" 709 | merge-descriptors "1.0.1" 710 | methods "~1.1.2" 711 | on-finished "~2.3.0" 712 | parseurl "~1.3.1" 713 | path-to-regexp "0.1.7" 714 | proxy-addr "~1.1.3" 715 | qs "6.4.0" 716 | range-parser "~1.2.0" 717 | send "0.15.1" 718 | serve-static "1.12.1" 719 | setprototypeof "1.0.3" 720 | statuses "~1.3.1" 721 | type-is "~1.6.14" 722 | utils-merge "1.0.0" 723 | vary "~1.1.0" 724 | 725 | extend@~3.0.0: 726 | version "3.0.1" 727 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" 728 | 729 | extglob@^0.3.1: 730 | version "0.3.2" 731 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" 732 | dependencies: 733 | is-extglob "^1.0.0" 734 | 735 | extsprintf@1.0.2: 736 | version "1.0.2" 737 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550" 738 | 739 | faye-websocket@^0.10.0: 740 | version "0.10.0" 741 | resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.10.0.tgz#4e492f8d04dfb6f89003507f6edbf2d501e7c6f4" 742 | dependencies: 743 | websocket-driver ">=0.5.1" 744 | 745 | faye-websocket@~0.11.0: 746 | version "0.11.1" 747 | resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.1.tgz#f0efe18c4f56e4f40afc7e06c719fd5ee6188f38" 748 | dependencies: 749 | websocket-driver ">=0.5.1" 750 | 751 | fbjs@^0.8.9: 752 | version "0.8.12" 753 | resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04" 754 | dependencies: 755 | core-js "^1.0.0" 756 | isomorphic-fetch "^2.1.1" 757 | loose-envify "^1.0.0" 758 | object-assign "^4.1.0" 759 | promise "^7.1.1" 760 | setimmediate "^1.0.5" 761 | ua-parser-js "^0.7.9" 762 | 763 | filename-regex@^2.0.0: 764 | version "2.0.1" 765 | resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" 766 | 767 | fill-range@^2.1.0: 768 | version "2.2.3" 769 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" 770 | dependencies: 771 | is-number "^2.1.0" 772 | isobject "^2.0.0" 773 | randomatic "^1.1.3" 774 | repeat-element "^1.1.2" 775 | repeat-string "^1.5.2" 776 | 777 | finalhandler@~1.0.0: 778 | version "1.0.2" 779 | resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.0.2.tgz#d0e36f9dbc557f2de14423df6261889e9d60c93a" 780 | dependencies: 781 | debug "2.6.4" 782 | encodeurl "~1.0.1" 783 | escape-html "~1.0.3" 784 | on-finished "~2.3.0" 785 | parseurl "~1.3.1" 786 | statuses "~1.3.1" 787 | unpipe "~1.0.0" 788 | 789 | for-in@^1.0.1: 790 | version "1.0.2" 791 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" 792 | 793 | for-own@^0.1.4: 794 | version "0.1.5" 795 | resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" 796 | dependencies: 797 | for-in "^1.0.1" 798 | 799 | forever-agent@~0.6.1: 800 | version "0.6.1" 801 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 802 | 803 | form-data@~2.1.1: 804 | version "2.1.4" 805 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" 806 | dependencies: 807 | asynckit "^0.4.0" 808 | combined-stream "^1.0.5" 809 | mime-types "^2.1.12" 810 | 811 | forwarded@~0.1.0: 812 | version "0.1.0" 813 | resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.0.tgz#19ef9874c4ae1c297bcf078fde63a09b66a84363" 814 | 815 | fresh@0.5.0: 816 | version "0.5.0" 817 | resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.0.tgz#f474ca5e6a9246d6fd8e0953cfa9b9c805afa78e" 818 | 819 | fs.realpath@^1.0.0: 820 | version "1.0.0" 821 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 822 | 823 | fsevents@^1.0.0: 824 | version "1.1.1" 825 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.1.tgz#f19fd28f43eeaf761680e519a203c4d0b3d31aff" 826 | dependencies: 827 | nan "^2.3.0" 828 | node-pre-gyp "^0.6.29" 829 | 830 | fstream-ignore@^1.0.5: 831 | version "1.0.5" 832 | resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" 833 | dependencies: 834 | fstream "^1.0.0" 835 | inherits "2" 836 | minimatch "^3.0.0" 837 | 838 | fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: 839 | version "1.0.11" 840 | resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" 841 | dependencies: 842 | graceful-fs "^4.1.2" 843 | inherits "~2.0.0" 844 | mkdirp ">=0.5 0" 845 | rimraf "2" 846 | 847 | gauge@~2.7.1: 848 | version "2.7.4" 849 | resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" 850 | dependencies: 851 | aproba "^1.0.3" 852 | console-control-strings "^1.0.0" 853 | has-unicode "^2.0.0" 854 | object-assign "^4.1.0" 855 | signal-exit "^3.0.0" 856 | string-width "^1.0.1" 857 | strip-ansi "^3.0.1" 858 | wide-align "^1.1.0" 859 | 860 | getpass@^0.1.1: 861 | version "0.1.7" 862 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" 863 | dependencies: 864 | assert-plus "^1.0.0" 865 | 866 | glob-base@^0.3.0: 867 | version "0.3.0" 868 | resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" 869 | dependencies: 870 | glob-parent "^2.0.0" 871 | is-glob "^2.0.0" 872 | 873 | glob-parent@^2.0.0: 874 | version "2.0.0" 875 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" 876 | dependencies: 877 | is-glob "^2.0.0" 878 | 879 | glob@^7.0.5: 880 | version "7.1.1" 881 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" 882 | dependencies: 883 | fs.realpath "^1.0.0" 884 | inflight "^1.0.4" 885 | inherits "2" 886 | minimatch "^3.0.2" 887 | once "^1.3.0" 888 | path-is-absolute "^1.0.0" 889 | 890 | globals@^9.0.0: 891 | version "9.17.0" 892 | resolved "https://registry.yarnpkg.com/globals/-/globals-9.17.0.tgz#0c0ca696d9b9bb694d2e5470bd37777caad50286" 893 | 894 | graceful-fs@^4.1.2: 895 | version "4.1.11" 896 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" 897 | 898 | har-schema@^1.0.5: 899 | version "1.0.5" 900 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" 901 | 902 | har-validator@~4.2.1: 903 | version "4.2.1" 904 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" 905 | dependencies: 906 | ajv "^4.9.1" 907 | har-schema "^1.0.5" 908 | 909 | has-ansi@^2.0.0: 910 | version "2.0.0" 911 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" 912 | dependencies: 913 | ansi-regex "^2.0.0" 914 | 915 | has-flag@^1.0.0: 916 | version "1.0.0" 917 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" 918 | 919 | has-unicode@^2.0.0: 920 | version "2.0.1" 921 | resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" 922 | 923 | hawk@~3.1.3: 924 | version "3.1.3" 925 | resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" 926 | dependencies: 927 | boom "2.x.x" 928 | cryptiles "2.x.x" 929 | hoek "2.x.x" 930 | sntp "1.x.x" 931 | 932 | hoek@2.x.x: 933 | version "2.16.3" 934 | resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" 935 | 936 | hoist-non-react-statics@^1.0.3: 937 | version "1.2.0" 938 | resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-1.2.0.tgz#aa448cf0986d55cc40773b17174b7dd066cb7cfb" 939 | 940 | home-or-tmp@^2.0.0: 941 | version "2.0.0" 942 | resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" 943 | dependencies: 944 | os-homedir "^1.0.0" 945 | os-tmpdir "^1.0.1" 946 | 947 | http-browserify@^1.3.2: 948 | version "1.7.0" 949 | resolved "https://registry.yarnpkg.com/http-browserify/-/http-browserify-1.7.0.tgz#33795ade72df88acfbfd36773cefeda764735b20" 950 | dependencies: 951 | Base64 "~0.2.0" 952 | inherits "~2.0.1" 953 | 954 | http-errors@~1.5.0: 955 | version "1.5.1" 956 | resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.5.1.tgz#788c0d2c1de2c81b9e6e8c01843b6b97eb920750" 957 | dependencies: 958 | inherits "2.0.3" 959 | setprototypeof "1.0.2" 960 | statuses ">= 1.3.1 < 2" 961 | 962 | http-errors@~1.6.1: 963 | version "1.6.1" 964 | resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.1.tgz#5f8b8ed98aca545656bf572997387f904a722257" 965 | dependencies: 966 | depd "1.1.0" 967 | inherits "2.0.3" 968 | setprototypeof "1.0.3" 969 | statuses ">= 1.3.1 < 2" 970 | 971 | http-proxy@^1.11.2: 972 | version "1.16.2" 973 | resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.16.2.tgz#06dff292952bf64dbe8471fa9df73066d4f37742" 974 | dependencies: 975 | eventemitter3 "1.x.x" 976 | requires-port "1.x.x" 977 | 978 | http-signature@~1.1.0: 979 | version "1.1.1" 980 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" 981 | dependencies: 982 | assert-plus "^0.2.0" 983 | jsprim "^1.2.2" 984 | sshpk "^1.7.0" 985 | 986 | https-browserify@0.0.0: 987 | version "0.0.0" 988 | resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.0.tgz#b3ffdfe734b2a3d4a9efd58e8654c91fce86eafd" 989 | 990 | iconv-lite@~0.4.13: 991 | version "0.4.16" 992 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.16.tgz#65de3beeb39e2960d67f049f1634ffcbcde9014b" 993 | 994 | ieee754@^1.1.4: 995 | version "1.1.8" 996 | resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4" 997 | 998 | indexof@0.0.1: 999 | version "0.0.1" 1000 | resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" 1001 | 1002 | inflight@^1.0.4: 1003 | version "1.0.6" 1004 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 1005 | dependencies: 1006 | once "^1.3.0" 1007 | wrappy "1" 1008 | 1009 | inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.1: 1010 | version "2.0.3" 1011 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 1012 | 1013 | inherits@2.0.1: 1014 | version "2.0.1" 1015 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" 1016 | 1017 | ini@~1.3.0: 1018 | version "1.3.4" 1019 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" 1020 | 1021 | interpret@^0.6.4: 1022 | version "0.6.6" 1023 | resolved "https://registry.yarnpkg.com/interpret/-/interpret-0.6.6.tgz#fecd7a18e7ce5ca6abfb953e1f86213a49f1625b" 1024 | 1025 | invariant@^2.0.0, invariant@^2.1.0, invariant@^2.2.0: 1026 | version "2.2.2" 1027 | resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" 1028 | dependencies: 1029 | loose-envify "^1.0.0" 1030 | 1031 | ipaddr.js@1.3.0: 1032 | version "1.3.0" 1033 | resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.3.0.tgz#1e03a52fdad83a8bbb2b25cbf4998b4cffcd3dec" 1034 | 1035 | is-binary-path@^1.0.0: 1036 | version "1.0.1" 1037 | resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" 1038 | dependencies: 1039 | binary-extensions "^1.0.0" 1040 | 1041 | is-buffer@^1.1.5: 1042 | version "1.1.5" 1043 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc" 1044 | 1045 | is-dotfile@^1.0.0: 1046 | version "1.0.2" 1047 | resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.2.tgz#2c132383f39199f8edc268ca01b9b007d205cc4d" 1048 | 1049 | is-equal-shallow@^0.1.3: 1050 | version "0.1.3" 1051 | resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" 1052 | dependencies: 1053 | is-primitive "^2.0.0" 1054 | 1055 | is-extendable@^0.1.1: 1056 | version "0.1.1" 1057 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" 1058 | 1059 | is-extglob@^1.0.0: 1060 | version "1.0.0" 1061 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" 1062 | 1063 | is-finite@^1.0.0: 1064 | version "1.0.2" 1065 | resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" 1066 | dependencies: 1067 | number-is-nan "^1.0.0" 1068 | 1069 | is-fullwidth-code-point@^1.0.0: 1070 | version "1.0.0" 1071 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 1072 | dependencies: 1073 | number-is-nan "^1.0.0" 1074 | 1075 | is-glob@^2.0.0, is-glob@^2.0.1: 1076 | version "2.0.1" 1077 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" 1078 | dependencies: 1079 | is-extglob "^1.0.0" 1080 | 1081 | is-number@^2.0.2, is-number@^2.1.0: 1082 | version "2.1.0" 1083 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" 1084 | dependencies: 1085 | kind-of "^3.0.2" 1086 | 1087 | is-posix-bracket@^0.1.0: 1088 | version "0.1.1" 1089 | resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" 1090 | 1091 | is-primitive@^2.0.0: 1092 | version "2.0.0" 1093 | resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" 1094 | 1095 | is-stream@^1.0.1: 1096 | version "1.1.0" 1097 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 1098 | 1099 | is-typedarray@~1.0.0: 1100 | version "1.0.0" 1101 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 1102 | 1103 | isarray@0.0.1: 1104 | version "0.0.1" 1105 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" 1106 | 1107 | isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: 1108 | version "1.0.0" 1109 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 1110 | 1111 | isobject@^2.0.0: 1112 | version "2.1.0" 1113 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" 1114 | dependencies: 1115 | isarray "1.0.0" 1116 | 1117 | isomorphic-fetch@^2.1.1: 1118 | version "2.2.1" 1119 | resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" 1120 | dependencies: 1121 | node-fetch "^1.0.1" 1122 | whatwg-fetch ">=0.10.0" 1123 | 1124 | isstream@~0.1.2: 1125 | version "0.1.2" 1126 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 1127 | 1128 | jodid25519@^1.0.0: 1129 | version "1.0.2" 1130 | resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967" 1131 | dependencies: 1132 | jsbn "~0.1.0" 1133 | 1134 | js-tokens@^3.0.0: 1135 | version "3.0.1" 1136 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7" 1137 | 1138 | jsbn@~0.1.0: 1139 | version "0.1.1" 1140 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" 1141 | 1142 | jsesc@^1.3.0: 1143 | version "1.3.0" 1144 | resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" 1145 | 1146 | json-schema@0.2.3: 1147 | version "0.2.3" 1148 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 1149 | 1150 | json-stable-stringify@^1.0.1: 1151 | version "1.0.1" 1152 | resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" 1153 | dependencies: 1154 | jsonify "~0.0.0" 1155 | 1156 | json-stringify-safe@~5.0.1: 1157 | version "5.0.1" 1158 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 1159 | 1160 | json3@^3.3.2: 1161 | version "3.3.2" 1162 | resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1" 1163 | 1164 | json5@^0.4.0: 1165 | version "0.4.0" 1166 | resolved "https://registry.yarnpkg.com/json5/-/json5-0.4.0.tgz#054352e4c4c80c86c0923877d449de176a732c8d" 1167 | 1168 | json5@^0.5.0: 1169 | version "0.5.1" 1170 | resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" 1171 | 1172 | jsonify@~0.0.0: 1173 | version "0.0.0" 1174 | resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" 1175 | 1176 | jsprim@^1.2.2: 1177 | version "1.4.0" 1178 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.0.tgz#a3b87e40298d8c380552d8cc7628a0bb95a22918" 1179 | dependencies: 1180 | assert-plus "1.0.0" 1181 | extsprintf "1.0.2" 1182 | json-schema "0.2.3" 1183 | verror "1.3.6" 1184 | 1185 | kind-of@^3.0.2: 1186 | version "3.2.0" 1187 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.0.tgz#b58abe4d5c044ad33726a8c1525b48cf891bff07" 1188 | dependencies: 1189 | is-buffer "^1.1.5" 1190 | 1191 | lazy-cache@^1.0.3: 1192 | version "1.0.4" 1193 | resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" 1194 | 1195 | loader-utils@^0.2.11: 1196 | version "0.2.17" 1197 | resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.17.tgz#f86e6374d43205a6e6c60e9196f17c0299bfb348" 1198 | dependencies: 1199 | big.js "^3.1.3" 1200 | emojis-list "^2.0.0" 1201 | json5 "^0.5.0" 1202 | object-assign "^4.0.1" 1203 | 1204 | lodash-es@^4.2.1: 1205 | version "4.17.4" 1206 | resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.4.tgz#dcc1d7552e150a0640073ba9cb31d70f032950e7" 1207 | 1208 | lodash._baseassign@^3.0.0: 1209 | version "3.2.0" 1210 | resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e" 1211 | dependencies: 1212 | lodash._basecopy "^3.0.0" 1213 | lodash.keys "^3.0.0" 1214 | 1215 | lodash._basecopy@^3.0.0: 1216 | version "3.0.1" 1217 | resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" 1218 | 1219 | lodash._basefor@^3.0.0: 1220 | version "3.0.3" 1221 | resolved "https://registry.yarnpkg.com/lodash._basefor/-/lodash._basefor-3.0.3.tgz#7550b4e9218ef09fad24343b612021c79b4c20c2" 1222 | 1223 | lodash._bindcallback@^3.0.0: 1224 | version "3.0.1" 1225 | resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e" 1226 | 1227 | lodash._createassigner@^3.0.0: 1228 | version "3.1.1" 1229 | resolved "https://registry.yarnpkg.com/lodash._createassigner/-/lodash._createassigner-3.1.1.tgz#838a5bae2fdaca63ac22dee8e19fa4e6d6970b11" 1230 | dependencies: 1231 | lodash._bindcallback "^3.0.0" 1232 | lodash._isiterateecall "^3.0.0" 1233 | lodash.restparam "^3.0.0" 1234 | 1235 | lodash._getnative@^3.0.0: 1236 | version "3.9.1" 1237 | resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" 1238 | 1239 | lodash._isiterateecall@^3.0.0: 1240 | version "3.0.9" 1241 | resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c" 1242 | 1243 | lodash.assign@^3.2.0: 1244 | version "3.2.0" 1245 | resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-3.2.0.tgz#3ce9f0234b4b2223e296b8fa0ac1fee8ebca64fa" 1246 | dependencies: 1247 | lodash._baseassign "^3.0.0" 1248 | lodash._createassigner "^3.0.0" 1249 | lodash.keys "^3.0.0" 1250 | 1251 | lodash.curry@^4.0.1: 1252 | version "4.1.1" 1253 | resolved "https://registry.yarnpkg.com/lodash.curry/-/lodash.curry-4.1.1.tgz#248e36072ede906501d75966200a86dab8b23170" 1254 | 1255 | lodash.debounce@^3.1.1: 1256 | version "3.1.1" 1257 | resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-3.1.1.tgz#812211c378a94cc29d5aa4e3346cf0bfce3a7df5" 1258 | dependencies: 1259 | lodash._getnative "^3.0.0" 1260 | 1261 | lodash.debounce@^4.0.4: 1262 | version "4.0.8" 1263 | resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" 1264 | 1265 | lodash.flow@^3.3.0: 1266 | version "3.5.0" 1267 | resolved "https://registry.yarnpkg.com/lodash.flow/-/lodash.flow-3.5.0.tgz#87bf40292b8cf83e4e8ce1a3ae4209e20071675a" 1268 | 1269 | lodash.isarguments@^3.0.0: 1270 | version "3.1.0" 1271 | resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" 1272 | 1273 | lodash.isarray@^3.0.0, lodash.isarray@^3.0.4: 1274 | version "3.0.4" 1275 | resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" 1276 | 1277 | lodash.isfunction@^3.0.6: 1278 | version "3.0.8" 1279 | resolved "https://registry.yarnpkg.com/lodash.isfunction/-/lodash.isfunction-3.0.8.tgz#4db709fc81bc4a8fd7127a458a5346c5cdce2c6b" 1280 | 1281 | lodash.isobject@^3.0.2: 1282 | version "3.0.2" 1283 | resolved "https://registry.yarnpkg.com/lodash.isobject/-/lodash.isobject-3.0.2.tgz#3c8fb8d5b5bf4bf90ae06e14f2a530a4ed935e1d" 1284 | 1285 | lodash.isplainobject@^3.2.0: 1286 | version "3.2.0" 1287 | resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-3.2.0.tgz#9a8238ae16b200432960cd7346512d0123fbf4c5" 1288 | dependencies: 1289 | lodash._basefor "^3.0.0" 1290 | lodash.isarguments "^3.0.0" 1291 | lodash.keysin "^3.0.0" 1292 | 1293 | lodash.keys@^3.0.0: 1294 | version "3.1.2" 1295 | resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" 1296 | dependencies: 1297 | lodash._getnative "^3.0.0" 1298 | lodash.isarguments "^3.0.0" 1299 | lodash.isarray "^3.0.0" 1300 | 1301 | lodash.keysin@^3.0.0: 1302 | version "3.0.8" 1303 | resolved "https://registry.yarnpkg.com/lodash.keysin/-/lodash.keysin-3.0.8.tgz#22c4493ebbedb1427962a54b445b2c8a767fb47f" 1304 | dependencies: 1305 | lodash.isarguments "^3.0.0" 1306 | lodash.isarray "^3.0.0" 1307 | 1308 | lodash.restparam@^3.0.0: 1309 | version "3.6.1" 1310 | resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805" 1311 | 1312 | lodash@^4.2.0, lodash@^4.2.1: 1313 | version "4.17.4" 1314 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" 1315 | 1316 | longest@^1.0.1: 1317 | version "1.0.1" 1318 | resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" 1319 | 1320 | loose-envify@^1.0.0, loose-envify@^1.1.0: 1321 | version "1.3.1" 1322 | resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" 1323 | dependencies: 1324 | js-tokens "^3.0.0" 1325 | 1326 | media-typer@0.3.0: 1327 | version "0.3.0" 1328 | resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" 1329 | 1330 | memory-fs@^0.2.0: 1331 | version "0.2.0" 1332 | resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.2.0.tgz#f2bb25368bc121e391c2520de92969caee0a0290" 1333 | 1334 | memory-fs@~0.3.0: 1335 | version "0.3.0" 1336 | resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.3.0.tgz#7bcc6b629e3a43e871d7e29aca6ae8a7f15cbb20" 1337 | dependencies: 1338 | errno "^0.1.3" 1339 | readable-stream "^2.0.1" 1340 | 1341 | memory-fs@~0.4.1: 1342 | version "0.4.1" 1343 | resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" 1344 | dependencies: 1345 | errno "^0.1.3" 1346 | readable-stream "^2.0.1" 1347 | 1348 | merge-descriptors@1.0.1: 1349 | version "1.0.1" 1350 | resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" 1351 | 1352 | methods@~1.1.2: 1353 | version "1.1.2" 1354 | resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" 1355 | 1356 | micromatch@^2.1.5: 1357 | version "2.3.11" 1358 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" 1359 | dependencies: 1360 | arr-diff "^2.0.0" 1361 | array-unique "^0.2.1" 1362 | braces "^1.8.2" 1363 | expand-brackets "^0.1.4" 1364 | extglob "^0.3.1" 1365 | filename-regex "^2.0.0" 1366 | is-extglob "^1.0.0" 1367 | is-glob "^2.0.1" 1368 | kind-of "^3.0.2" 1369 | normalize-path "^2.0.1" 1370 | object.omit "^2.0.0" 1371 | parse-glob "^3.0.4" 1372 | regex-cache "^0.4.2" 1373 | 1374 | "mime-db@>= 1.27.0 < 2", mime-db@~1.27.0: 1375 | version "1.27.0" 1376 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.27.0.tgz#820f572296bbd20ec25ed55e5b5de869e5436eb1" 1377 | 1378 | mime-types@^2.1.12, mime-types@~2.1.11, mime-types@~2.1.15, mime-types@~2.1.7: 1379 | version "2.1.15" 1380 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.15.tgz#a4ebf5064094569237b8cf70046776d09fc92aed" 1381 | dependencies: 1382 | mime-db "~1.27.0" 1383 | 1384 | mime@1.3.4, mime@^1.3.4: 1385 | version "1.3.4" 1386 | resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53" 1387 | 1388 | minimatch@^3.0.0, minimatch@^3.0.2: 1389 | version "3.0.3" 1390 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" 1391 | dependencies: 1392 | brace-expansion "^1.0.0" 1393 | 1394 | minimist@0.0.8, minimist@~0.0.1: 1395 | version "0.0.8" 1396 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 1397 | 1398 | minimist@^1.2.0: 1399 | version "1.2.0" 1400 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" 1401 | 1402 | "mkdirp@>=0.5 0", mkdirp@^0.5.1, mkdirp@~0.5.0: 1403 | version "0.5.1" 1404 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 1405 | dependencies: 1406 | minimist "0.0.8" 1407 | 1408 | ms@0.7.1: 1409 | version "0.7.1" 1410 | resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098" 1411 | 1412 | ms@0.7.2: 1413 | version "0.7.2" 1414 | resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" 1415 | 1416 | ms@0.7.3: 1417 | version "0.7.3" 1418 | resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.3.tgz#708155a5e44e33f5fd0fc53e81d0d40a91be1fff" 1419 | 1420 | nan@^2.3.0: 1421 | version "2.6.2" 1422 | resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45" 1423 | 1424 | negotiator@0.6.1: 1425 | version "0.6.1" 1426 | resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9" 1427 | 1428 | ng-redux@^3.3.3: 1429 | version "3.3.3" 1430 | resolved "https://registry.yarnpkg.com/ng-redux/-/ng-redux-3.3.3.tgz#76fbcc889b860eabbfe04159f483d2cb283c4982" 1431 | dependencies: 1432 | invariant "^2.1.0" 1433 | lodash.assign "^3.2.0" 1434 | lodash.isarray "^3.0.4" 1435 | lodash.isfunction "^3.0.6" 1436 | lodash.isobject "^3.0.2" 1437 | lodash.isplainobject "^3.2.0" 1438 | redux "^3.0.0" 1439 | 1440 | node-fetch@^1.0.1: 1441 | version "1.6.3" 1442 | resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.6.3.tgz#dc234edd6489982d58e8f0db4f695029abcd8c04" 1443 | dependencies: 1444 | encoding "^0.1.11" 1445 | is-stream "^1.0.1" 1446 | 1447 | "node-libs-browser@>= 0.4.0 <=0.6.0": 1448 | version "0.6.0" 1449 | resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-0.6.0.tgz#244806d44d319e048bc8607b5cc4eaf9a29d2e3c" 1450 | dependencies: 1451 | assert "^1.1.1" 1452 | browserify-zlib "~0.1.4" 1453 | buffer "^4.9.0" 1454 | console-browserify "^1.1.0" 1455 | constants-browserify "0.0.1" 1456 | crypto-browserify "~3.2.6" 1457 | domain-browser "^1.1.1" 1458 | events "^1.0.0" 1459 | http-browserify "^1.3.2" 1460 | https-browserify "0.0.0" 1461 | os-browserify "~0.1.2" 1462 | path-browserify "0.0.0" 1463 | process "^0.11.0" 1464 | punycode "^1.2.4" 1465 | querystring-es3 "~0.2.0" 1466 | readable-stream "^1.1.13" 1467 | stream-browserify "^1.0.0" 1468 | string_decoder "~0.10.25" 1469 | timers-browserify "^1.0.1" 1470 | tty-browserify "0.0.0" 1471 | url "~0.10.1" 1472 | util "~0.10.3" 1473 | vm-browserify "0.0.4" 1474 | 1475 | node-pre-gyp@^0.6.29: 1476 | version "0.6.34" 1477 | resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.34.tgz#94ad1c798a11d7fc67381b50d47f8cc18d9799f7" 1478 | dependencies: 1479 | mkdirp "^0.5.1" 1480 | nopt "^4.0.1" 1481 | npmlog "^4.0.2" 1482 | rc "^1.1.7" 1483 | request "^2.81.0" 1484 | rimraf "^2.6.1" 1485 | semver "^5.3.0" 1486 | tar "^2.2.1" 1487 | tar-pack "^3.4.0" 1488 | 1489 | nopt@^4.0.1: 1490 | version "4.0.1" 1491 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" 1492 | dependencies: 1493 | abbrev "1" 1494 | osenv "^0.1.4" 1495 | 1496 | normalize-path@^2.0.1: 1497 | version "2.1.1" 1498 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" 1499 | dependencies: 1500 | remove-trailing-separator "^1.0.1" 1501 | 1502 | npmlog@^4.0.2: 1503 | version "4.0.2" 1504 | resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.0.2.tgz#d03950e0e78ce1527ba26d2a7592e9348ac3e75f" 1505 | dependencies: 1506 | are-we-there-yet "~1.1.2" 1507 | console-control-strings "~1.1.0" 1508 | gauge "~2.7.1" 1509 | set-blocking "~2.0.0" 1510 | 1511 | number-is-nan@^1.0.0: 1512 | version "1.0.1" 1513 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 1514 | 1515 | oauth-sign@~0.8.1: 1516 | version "0.8.2" 1517 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" 1518 | 1519 | object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: 1520 | version "4.1.1" 1521 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 1522 | 1523 | object.omit@^2.0.0: 1524 | version "2.0.1" 1525 | resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" 1526 | dependencies: 1527 | for-own "^0.1.4" 1528 | is-extendable "^0.1.1" 1529 | 1530 | on-finished@~2.3.0: 1531 | version "2.3.0" 1532 | resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" 1533 | dependencies: 1534 | ee-first "1.1.1" 1535 | 1536 | on-headers@~1.0.1: 1537 | version "1.0.1" 1538 | resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7" 1539 | 1540 | once@^1.3.0, once@^1.3.3: 1541 | version "1.4.0" 1542 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1543 | dependencies: 1544 | wrappy "1" 1545 | 1546 | optimist@~0.6.0: 1547 | version "0.6.1" 1548 | resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" 1549 | dependencies: 1550 | minimist "~0.0.1" 1551 | wordwrap "~0.0.2" 1552 | 1553 | original@>=0.0.5: 1554 | version "1.0.0" 1555 | resolved "https://registry.yarnpkg.com/original/-/original-1.0.0.tgz#9147f93fa1696d04be61e01bd50baeaca656bd3b" 1556 | dependencies: 1557 | url-parse "1.0.x" 1558 | 1559 | os-browserify@~0.1.2: 1560 | version "0.1.2" 1561 | resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.1.2.tgz#49ca0293e0b19590a5f5de10c7f265a617d8fe54" 1562 | 1563 | os-homedir@^1.0.0: 1564 | version "1.0.2" 1565 | resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" 1566 | 1567 | os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: 1568 | version "1.0.2" 1569 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 1570 | 1571 | osenv@^0.1.4: 1572 | version "0.1.4" 1573 | resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.4.tgz#42fe6d5953df06c8064be6f176c3d05aaaa34644" 1574 | dependencies: 1575 | os-homedir "^1.0.0" 1576 | os-tmpdir "^1.0.0" 1577 | 1578 | pako@~0.2.0: 1579 | version "0.2.9" 1580 | resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75" 1581 | 1582 | parse-glob@^3.0.4: 1583 | version "3.0.4" 1584 | resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" 1585 | dependencies: 1586 | glob-base "^0.3.0" 1587 | is-dotfile "^1.0.0" 1588 | is-extglob "^1.0.0" 1589 | is-glob "^2.0.0" 1590 | 1591 | parse-key@^0.2.1: 1592 | version "0.2.1" 1593 | resolved "https://registry.yarnpkg.com/parse-key/-/parse-key-0.2.1.tgz#7bcf76595536e36075664be4d687e4bdd910208f" 1594 | 1595 | parseurl@~1.3.1: 1596 | version "1.3.1" 1597 | resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.1.tgz#c8ab8c9223ba34888aa64a297b28853bec18da56" 1598 | 1599 | path-browserify@0.0.0: 1600 | version "0.0.0" 1601 | resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" 1602 | 1603 | path-exists@^1.0.0: 1604 | version "1.0.0" 1605 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-1.0.0.tgz#d5a8998eb71ef37a74c34eb0d9eba6e878eea081" 1606 | 1607 | path-is-absolute@^1.0.0: 1608 | version "1.0.1" 1609 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 1610 | 1611 | path-to-regexp@0.1.7: 1612 | version "0.1.7" 1613 | resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" 1614 | 1615 | pbkdf2-compat@2.0.1: 1616 | version "2.0.1" 1617 | resolved "https://registry.yarnpkg.com/pbkdf2-compat/-/pbkdf2-compat-2.0.1.tgz#b6e0c8fa99494d94e0511575802a59a5c142f288" 1618 | 1619 | performance-now@^0.2.0: 1620 | version "0.2.0" 1621 | resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" 1622 | 1623 | preserve@^0.2.0: 1624 | version "0.2.0" 1625 | resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" 1626 | 1627 | private@^0.1.6: 1628 | version "0.1.7" 1629 | resolved "https://registry.yarnpkg.com/private/-/private-0.1.7.tgz#68ce5e8a1ef0a23bb570cc28537b5332aba63ef1" 1630 | 1631 | process-nextick-args@~1.0.6: 1632 | version "1.0.7" 1633 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" 1634 | 1635 | process@^0.11.0, process@~0.11.0: 1636 | version "0.11.10" 1637 | resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" 1638 | 1639 | promise@^7.1.1: 1640 | version "7.1.1" 1641 | resolved "https://registry.yarnpkg.com/promise/-/promise-7.1.1.tgz#489654c692616b8aa55b0724fa809bb7db49c5bf" 1642 | dependencies: 1643 | asap "~2.0.3" 1644 | 1645 | prop-types@^15.0.0, prop-types@^15.5.4, prop-types@^15.5.7, prop-types@^15.5.8, prop-types@~15.5.7: 1646 | version "15.5.8" 1647 | resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.8.tgz#6b7b2e141083be38c8595aa51fc55775c7199394" 1648 | dependencies: 1649 | fbjs "^0.8.9" 1650 | 1651 | proxy-addr@~1.1.3: 1652 | version "1.1.4" 1653 | resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.4.tgz#27e545f6960a44a627d9b44467e35c1b6b4ce2f3" 1654 | dependencies: 1655 | forwarded "~0.1.0" 1656 | ipaddr.js "1.3.0" 1657 | 1658 | prr@~0.0.0: 1659 | version "0.0.0" 1660 | resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a" 1661 | 1662 | punycode@1.3.2: 1663 | version "1.3.2" 1664 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" 1665 | 1666 | punycode@^1.2.4, punycode@^1.4.1: 1667 | version "1.4.1" 1668 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 1669 | 1670 | pure-color@^1.2.0: 1671 | version "1.2.0" 1672 | resolved "https://registry.yarnpkg.com/pure-color/-/pure-color-1.2.0.tgz#702d2f2819dd545b1fde5116fca5f0c2dad2d18d" 1673 | 1674 | qs@6.4.0, qs@~6.4.0: 1675 | version "6.4.0" 1676 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" 1677 | 1678 | querystring-es3@~0.2.0: 1679 | version "0.2.1" 1680 | resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" 1681 | 1682 | querystring@0.2.0: 1683 | version "0.2.0" 1684 | resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" 1685 | 1686 | querystringify@0.0.x: 1687 | version "0.0.4" 1688 | resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-0.0.4.tgz#0cf7f84f9463ff0ae51c4c4b142d95be37724d9c" 1689 | 1690 | randomatic@^1.1.3: 1691 | version "1.1.6" 1692 | resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb" 1693 | dependencies: 1694 | is-number "^2.0.2" 1695 | kind-of "^3.0.2" 1696 | 1697 | range-parser@^1.0.3, range-parser@~1.2.0: 1698 | version "1.2.0" 1699 | resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" 1700 | 1701 | rc@^1.1.7: 1702 | version "1.2.1" 1703 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.1.tgz#2e03e8e42ee450b8cb3dce65be1bf8974e1dfd95" 1704 | dependencies: 1705 | deep-extend "~0.4.0" 1706 | ini "~1.3.0" 1707 | minimist "^1.2.0" 1708 | strip-json-comments "~2.0.1" 1709 | 1710 | react-base16-styling@^0.5.1: 1711 | version "0.5.3" 1712 | resolved "https://registry.yarnpkg.com/react-base16-styling/-/react-base16-styling-0.5.3.tgz#3858f24e9c4dd8cbd3f702f3f74d581ca2917269" 1713 | dependencies: 1714 | base16 "^1.0.0" 1715 | lodash.curry "^4.0.1" 1716 | lodash.flow "^3.3.0" 1717 | pure-color "^1.2.0" 1718 | 1719 | react-dock@^0.2.4: 1720 | version "0.2.4" 1721 | resolved "https://registry.yarnpkg.com/react-dock/-/react-dock-0.2.4.tgz#e727dc7550b3b73116635dcb9c0e04d0b7afe17c" 1722 | dependencies: 1723 | lodash.debounce "^3.1.1" 1724 | prop-types "^15.5.8" 1725 | 1726 | react-dom@^15.3.0: 1727 | version "15.5.4" 1728 | resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.5.4.tgz#ba0c28786fd52ed7e4f2135fe0288d462aef93da" 1729 | dependencies: 1730 | fbjs "^0.8.9" 1731 | loose-envify "^1.1.0" 1732 | object-assign "^4.1.0" 1733 | prop-types "~15.5.7" 1734 | 1735 | react-json-tree@^0.10.8: 1736 | version "0.10.9" 1737 | resolved "https://registry.yarnpkg.com/react-json-tree/-/react-json-tree-0.10.9.tgz#7263173a2cc8bf05eac63b0419c3ce75b232e284" 1738 | dependencies: 1739 | babel-runtime "^6.6.1" 1740 | prop-types "^15.5.8" 1741 | react-base16-styling "^0.5.1" 1742 | 1743 | react-pure-render@^1.0.2: 1744 | version "1.0.2" 1745 | resolved "https://registry.yarnpkg.com/react-pure-render/-/react-pure-render-1.0.2.tgz#9d8a928c7f2c37513c2d064e57b3e3c356e9fabb" 1746 | 1747 | react-redux@^4.4.5: 1748 | version "4.4.8" 1749 | resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-4.4.8.tgz#e7bc1dd100e8b64e96ac8212db113239b9e2e08f" 1750 | dependencies: 1751 | create-react-class "^15.5.1" 1752 | hoist-non-react-statics "^1.0.3" 1753 | invariant "^2.0.0" 1754 | lodash "^4.2.0" 1755 | loose-envify "^1.1.0" 1756 | prop-types "^15.5.4" 1757 | 1758 | react@^15.3.0: 1759 | version "15.5.4" 1760 | resolved "https://registry.yarnpkg.com/react/-/react-15.5.4.tgz#fa83eb01506ab237cdc1c8c3b1cea8de012bf047" 1761 | dependencies: 1762 | fbjs "^0.8.9" 1763 | loose-envify "^1.1.0" 1764 | object-assign "^4.1.0" 1765 | prop-types "^15.5.7" 1766 | 1767 | readable-stream@^1.0.27-1, readable-stream@^1.1.13: 1768 | version "1.1.14" 1769 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.14.tgz#7cf4c54ef648e3813084c636dd2079e166c081d9" 1770 | dependencies: 1771 | core-util-is "~1.0.0" 1772 | inherits "~2.0.1" 1773 | isarray "0.0.1" 1774 | string_decoder "~0.10.x" 1775 | 1776 | readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.4: 1777 | version "2.2.9" 1778 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.9.tgz#cf78ec6f4a6d1eb43d26488cac97f042e74b7fc8" 1779 | dependencies: 1780 | buffer-shims "~1.0.0" 1781 | core-util-is "~1.0.0" 1782 | inherits "~2.0.1" 1783 | isarray "~1.0.0" 1784 | process-nextick-args "~1.0.6" 1785 | string_decoder "~1.0.0" 1786 | util-deprecate "~1.0.1" 1787 | 1788 | readdirp@^2.0.0: 1789 | version "2.1.0" 1790 | resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" 1791 | dependencies: 1792 | graceful-fs "^4.1.2" 1793 | minimatch "^3.0.2" 1794 | readable-stream "^2.0.2" 1795 | set-immediate-shim "^1.0.1" 1796 | 1797 | redux-batched-updates@0.1.0: 1798 | version "0.1.0" 1799 | resolved "https://registry.yarnpkg.com/redux-batched-updates/-/redux-batched-updates-0.1.0.tgz#24fb2f71458b19cd576bb90ae440afdbda275151" 1800 | 1801 | redux-devtools-dock-monitor@^1.1.1: 1802 | version "1.1.2" 1803 | resolved "https://registry.yarnpkg.com/redux-devtools-dock-monitor/-/redux-devtools-dock-monitor-1.1.2.tgz#eb213a021f8c25b892f6c98bdb87368615e3d201" 1804 | dependencies: 1805 | babel-runtime "^6.2.0" 1806 | parse-key "^0.2.1" 1807 | prop-types "^15.5.8" 1808 | react-dock "^0.2.4" 1809 | react-pure-render "^1.0.2" 1810 | 1811 | redux-devtools-instrument@^1.0.1: 1812 | version "1.8.0" 1813 | resolved "https://registry.yarnpkg.com/redux-devtools-instrument/-/redux-devtools-instrument-1.8.0.tgz#db1840ed3d8152af6792913698e3424c119de9aa" 1814 | dependencies: 1815 | lodash "^4.2.0" 1816 | symbol-observable "^1.0.2" 1817 | 1818 | redux-devtools-log-monitor@^1.0.11: 1819 | version "1.3.0" 1820 | resolved "https://registry.yarnpkg.com/redux-devtools-log-monitor/-/redux-devtools-log-monitor-1.3.0.tgz#2de0ca1d708da208bca649ec74103023036cce39" 1821 | dependencies: 1822 | lodash.debounce "^4.0.4" 1823 | prop-types "^15.0.0" 1824 | react-json-tree "^0.10.8" 1825 | react-pure-render "^1.0.2" 1826 | redux-devtools-themes "^1.0.0" 1827 | 1828 | redux-devtools-themes@^1.0.0: 1829 | version "1.0.0" 1830 | resolved "https://registry.yarnpkg.com/redux-devtools-themes/-/redux-devtools-themes-1.0.0.tgz#c482dce3c5373976045f40134907d9dcb3ae3d5d" 1831 | dependencies: 1832 | base16 "^1.0.0" 1833 | 1834 | redux-devtools@^3.3.1: 1835 | version "3.4.0" 1836 | resolved "https://registry.yarnpkg.com/redux-devtools/-/redux-devtools-3.4.0.tgz#9bf8415154301f56906f26a36f5bc1f5ca913bb5" 1837 | dependencies: 1838 | lodash "^4.2.0" 1839 | prop-types "^15.5.7" 1840 | redux-devtools-instrument "^1.0.1" 1841 | 1842 | redux-logger@2.6.1: 1843 | version "2.6.1" 1844 | resolved "https://registry.yarnpkg.com/redux-logger/-/redux-logger-2.6.1.tgz#f558a40e3abd03feaf4e69ace4d71fec09803c74" 1845 | 1846 | redux-slider-monitor@^1.0.7: 1847 | version "1.0.7" 1848 | resolved "https://registry.yarnpkg.com/redux-slider-monitor/-/redux-slider-monitor-1.0.7.tgz#6ad06af012381d58edfd1cc0361c7e2c258b3940" 1849 | dependencies: 1850 | css-element-queries "^0.3.2" 1851 | redux-devtools-themes "^1.0.0" 1852 | 1853 | redux-thunk@2.1.0: 1854 | version "2.1.0" 1855 | resolved "https://registry.yarnpkg.com/redux-thunk/-/redux-thunk-2.1.0.tgz#c724bfee75dbe352da2e3ba9bc14302badd89a98" 1856 | 1857 | redux@^3.0.0, redux@^3.5.2: 1858 | version "3.6.0" 1859 | resolved "https://registry.yarnpkg.com/redux/-/redux-3.6.0.tgz#887c2b3d0b9bd86eca2be70571c27654c19e188d" 1860 | dependencies: 1861 | lodash "^4.2.1" 1862 | lodash-es "^4.2.1" 1863 | loose-envify "^1.1.0" 1864 | symbol-observable "^1.0.2" 1865 | 1866 | regenerator-runtime@^0.10.0: 1867 | version "0.10.5" 1868 | resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" 1869 | 1870 | regex-cache@^0.4.2: 1871 | version "0.4.3" 1872 | resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145" 1873 | dependencies: 1874 | is-equal-shallow "^0.1.3" 1875 | is-primitive "^2.0.0" 1876 | 1877 | remove-trailing-separator@^1.0.1: 1878 | version "1.0.1" 1879 | resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.0.1.tgz#615ebb96af559552d4bf4057c8436d486ab63cc4" 1880 | 1881 | repeat-element@^1.1.2: 1882 | version "1.1.2" 1883 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" 1884 | 1885 | repeat-string@^1.5.2: 1886 | version "1.6.1" 1887 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" 1888 | 1889 | repeating@^2.0.0: 1890 | version "2.0.1" 1891 | resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" 1892 | dependencies: 1893 | is-finite "^1.0.0" 1894 | 1895 | request@^2.81.0: 1896 | version "2.81.0" 1897 | resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" 1898 | dependencies: 1899 | aws-sign2 "~0.6.0" 1900 | aws4 "^1.2.1" 1901 | caseless "~0.12.0" 1902 | combined-stream "~1.0.5" 1903 | extend "~3.0.0" 1904 | forever-agent "~0.6.1" 1905 | form-data "~2.1.1" 1906 | har-validator "~4.2.1" 1907 | hawk "~3.1.3" 1908 | http-signature "~1.1.0" 1909 | is-typedarray "~1.0.0" 1910 | isstream "~0.1.2" 1911 | json-stringify-safe "~5.0.1" 1912 | mime-types "~2.1.7" 1913 | oauth-sign "~0.8.1" 1914 | performance-now "^0.2.0" 1915 | qs "~6.4.0" 1916 | safe-buffer "^5.0.1" 1917 | stringstream "~0.0.4" 1918 | tough-cookie "~2.3.0" 1919 | tunnel-agent "^0.6.0" 1920 | uuid "^3.0.0" 1921 | 1922 | requires-port@1.0.x, requires-port@1.x.x: 1923 | version "1.0.0" 1924 | resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" 1925 | 1926 | right-align@^0.1.1: 1927 | version "0.1.3" 1928 | resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" 1929 | dependencies: 1930 | align-text "^0.1.1" 1931 | 1932 | rimraf@2, rimraf@^2.5.1, rimraf@^2.6.1: 1933 | version "2.6.1" 1934 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.1.tgz#c2338ec643df7a1b7fe5c54fa86f57428a55f33d" 1935 | dependencies: 1936 | glob "^7.0.5" 1937 | 1938 | ripemd160@0.2.0: 1939 | version "0.2.0" 1940 | resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-0.2.0.tgz#2bf198bde167cacfa51c0a928e84b68bbe171fce" 1941 | 1942 | safe-buffer@^5.0.1: 1943 | version "5.0.1" 1944 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7" 1945 | 1946 | semver@^5.3.0: 1947 | version "5.3.0" 1948 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" 1949 | 1950 | send@0.15.1: 1951 | version "0.15.1" 1952 | resolved "https://registry.yarnpkg.com/send/-/send-0.15.1.tgz#8a02354c26e6f5cca700065f5f0cdeba90ec7b5f" 1953 | dependencies: 1954 | debug "2.6.1" 1955 | depd "~1.1.0" 1956 | destroy "~1.0.4" 1957 | encodeurl "~1.0.1" 1958 | escape-html "~1.0.3" 1959 | etag "~1.8.0" 1960 | fresh "0.5.0" 1961 | http-errors "~1.6.1" 1962 | mime "1.3.4" 1963 | ms "0.7.2" 1964 | on-finished "~2.3.0" 1965 | range-parser "~1.2.0" 1966 | statuses "~1.3.1" 1967 | 1968 | serve-index@^1.7.2: 1969 | version "1.8.0" 1970 | resolved "https://registry.yarnpkg.com/serve-index/-/serve-index-1.8.0.tgz#7c5d96c13fb131101f93c1c5774f8516a1e78d3b" 1971 | dependencies: 1972 | accepts "~1.3.3" 1973 | batch "0.5.3" 1974 | debug "~2.2.0" 1975 | escape-html "~1.0.3" 1976 | http-errors "~1.5.0" 1977 | mime-types "~2.1.11" 1978 | parseurl "~1.3.1" 1979 | 1980 | serve-static@1.12.1: 1981 | version "1.12.1" 1982 | resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.12.1.tgz#7443a965e3ced647aceb5639fa06bf4d1bbe0039" 1983 | dependencies: 1984 | encodeurl "~1.0.1" 1985 | escape-html "~1.0.3" 1986 | parseurl "~1.3.1" 1987 | send "0.15.1" 1988 | 1989 | set-blocking@~2.0.0: 1990 | version "2.0.0" 1991 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 1992 | 1993 | set-immediate-shim@^1.0.1: 1994 | version "1.0.1" 1995 | resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" 1996 | 1997 | setimmediate@^1.0.5: 1998 | version "1.0.5" 1999 | resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" 2000 | 2001 | setprototypeof@1.0.2: 2002 | version "1.0.2" 2003 | resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.2.tgz#81a552141ec104b88e89ce383103ad5c66564d08" 2004 | 2005 | setprototypeof@1.0.3: 2006 | version "1.0.3" 2007 | resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.3.tgz#66567e37043eeb4f04d91bd658c0cbefb55b8e04" 2008 | 2009 | sha.js@2.2.6: 2010 | version "2.2.6" 2011 | resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.2.6.tgz#17ddeddc5f722fb66501658895461977867315ba" 2012 | 2013 | shebang-regex@^1.0.0: 2014 | version "1.0.0" 2015 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" 2016 | 2017 | signal-exit@^3.0.0: 2018 | version "3.0.2" 2019 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 2020 | 2021 | slash@^1.0.0: 2022 | version "1.0.0" 2023 | resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" 2024 | 2025 | sntp@1.x.x: 2026 | version "1.0.9" 2027 | resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" 2028 | dependencies: 2029 | hoek "2.x.x" 2030 | 2031 | sockjs-client@^1.0.3: 2032 | version "1.1.2" 2033 | resolved "https://registry.yarnpkg.com/sockjs-client/-/sockjs-client-1.1.2.tgz#f0212a8550e4c9468c8cceaeefd2e3493c033ad5" 2034 | dependencies: 2035 | debug "^2.2.0" 2036 | eventsource "0.1.6" 2037 | faye-websocket "~0.11.0" 2038 | inherits "^2.0.1" 2039 | json3 "^3.3.2" 2040 | url-parse "^1.1.1" 2041 | 2042 | sockjs@^0.3.15: 2043 | version "0.3.18" 2044 | resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.18.tgz#d9b289316ca7df77595ef299e075f0f937eb4207" 2045 | dependencies: 2046 | faye-websocket "^0.10.0" 2047 | uuid "^2.0.2" 2048 | 2049 | source-list-map@~0.1.7: 2050 | version "0.1.8" 2051 | resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-0.1.8.tgz#c550b2ab5427f6b3f21f5afead88c4f5587b2106" 2052 | 2053 | source-map-support@^0.4.2: 2054 | version "0.4.15" 2055 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.15.tgz#03202df65c06d2bd8c7ec2362a193056fef8d3b1" 2056 | dependencies: 2057 | source-map "^0.5.6" 2058 | 2059 | source-map@^0.5.0, source-map@^0.5.6, source-map@~0.5.1: 2060 | version "0.5.6" 2061 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" 2062 | 2063 | source-map@~0.4.1: 2064 | version "0.4.4" 2065 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" 2066 | dependencies: 2067 | amdefine ">=0.0.4" 2068 | 2069 | sshpk@^1.7.0: 2070 | version "1.13.0" 2071 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.0.tgz#ff2a3e4fd04497555fed97b39a0fd82fafb3a33c" 2072 | dependencies: 2073 | asn1 "~0.2.3" 2074 | assert-plus "^1.0.0" 2075 | dashdash "^1.12.0" 2076 | getpass "^0.1.1" 2077 | optionalDependencies: 2078 | bcrypt-pbkdf "^1.0.0" 2079 | ecc-jsbn "~0.1.1" 2080 | jodid25519 "^1.0.0" 2081 | jsbn "~0.1.0" 2082 | tweetnacl "~0.14.0" 2083 | 2084 | "statuses@>= 1.3.1 < 2", statuses@~1.3.1: 2085 | version "1.3.1" 2086 | resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" 2087 | 2088 | stream-browserify@^1.0.0: 2089 | version "1.0.0" 2090 | resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-1.0.0.tgz#bf9b4abfb42b274d751479e44e0ff2656b6f1193" 2091 | dependencies: 2092 | inherits "~2.0.1" 2093 | readable-stream "^1.0.27-1" 2094 | 2095 | stream-cache@~0.0.1: 2096 | version "0.0.2" 2097 | resolved "https://registry.yarnpkg.com/stream-cache/-/stream-cache-0.0.2.tgz#1ac5ad6832428ca55667dbdee395dad4e6db118f" 2098 | 2099 | string-width@^1.0.1: 2100 | version "1.0.2" 2101 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 2102 | dependencies: 2103 | code-point-at "^1.0.0" 2104 | is-fullwidth-code-point "^1.0.0" 2105 | strip-ansi "^3.0.0" 2106 | 2107 | string_decoder@~0.10.25, string_decoder@~0.10.x: 2108 | version "0.10.31" 2109 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" 2110 | 2111 | string_decoder@~1.0.0: 2112 | version "1.0.0" 2113 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.0.tgz#f06f41157b664d86069f84bdbdc9b0d8ab281667" 2114 | dependencies: 2115 | buffer-shims "~1.0.0" 2116 | 2117 | stringstream@~0.0.4: 2118 | version "0.0.5" 2119 | resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" 2120 | 2121 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 2122 | version "3.0.1" 2123 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 2124 | dependencies: 2125 | ansi-regex "^2.0.0" 2126 | 2127 | strip-json-comments@~2.0.1: 2128 | version "2.0.1" 2129 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" 2130 | 2131 | supports-color@^2.0.0: 2132 | version "2.0.0" 2133 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" 2134 | 2135 | supports-color@^3.1.0, supports-color@^3.1.1: 2136 | version "3.2.3" 2137 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" 2138 | dependencies: 2139 | has-flag "^1.0.0" 2140 | 2141 | symbol-observable@^1.0.2: 2142 | version "1.0.4" 2143 | resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.4.tgz#29bf615d4aa7121bdd898b22d4b3f9bc4e2aa03d" 2144 | 2145 | tapable@^0.1.8, tapable@~0.1.8: 2146 | version "0.1.10" 2147 | resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.1.10.tgz#29c35707c2b70e50d07482b5d202e8ed446dafd4" 2148 | 2149 | tar-pack@^3.4.0: 2150 | version "3.4.0" 2151 | resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.0.tgz#23be2d7f671a8339376cbdb0b8fe3fdebf317984" 2152 | dependencies: 2153 | debug "^2.2.0" 2154 | fstream "^1.0.10" 2155 | fstream-ignore "^1.0.5" 2156 | once "^1.3.3" 2157 | readable-stream "^2.1.4" 2158 | rimraf "^2.5.1" 2159 | tar "^2.2.1" 2160 | uid-number "^0.0.6" 2161 | 2162 | tar@^2.2.1: 2163 | version "2.2.1" 2164 | resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" 2165 | dependencies: 2166 | block-stream "*" 2167 | fstream "^1.0.2" 2168 | inherits "2" 2169 | 2170 | timers-browserify@^1.0.1: 2171 | version "1.4.2" 2172 | resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-1.4.2.tgz#c9c58b575be8407375cb5e2462dacee74359f41d" 2173 | dependencies: 2174 | process "~0.11.0" 2175 | 2176 | to-fast-properties@^1.0.1: 2177 | version "1.0.2" 2178 | resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.2.tgz#f3f5c0c3ba7299a7ef99427e44633257ade43320" 2179 | 2180 | tough-cookie@~2.3.0: 2181 | version "2.3.2" 2182 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" 2183 | dependencies: 2184 | punycode "^1.4.1" 2185 | 2186 | trim-right@^1.0.1: 2187 | version "1.0.1" 2188 | resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" 2189 | 2190 | tty-browserify@0.0.0: 2191 | version "0.0.0" 2192 | resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" 2193 | 2194 | tunnel-agent@^0.6.0: 2195 | version "0.6.0" 2196 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" 2197 | dependencies: 2198 | safe-buffer "^5.0.1" 2199 | 2200 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 2201 | version "0.14.5" 2202 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 2203 | 2204 | type-is@~1.6.14: 2205 | version "1.6.15" 2206 | resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.15.tgz#cab10fb4909e441c82842eafe1ad646c81804410" 2207 | dependencies: 2208 | media-typer "0.3.0" 2209 | mime-types "~2.1.15" 2210 | 2211 | ua-parser-js@^0.7.9: 2212 | version "0.7.12" 2213 | resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.12.tgz#04c81a99bdd5dc52263ea29d24c6bf8d4818a4bb" 2214 | 2215 | uglify-js@~2.6.0: 2216 | version "2.6.4" 2217 | resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.6.4.tgz#65ea2fb3059c9394692f15fed87c2b36c16b9adf" 2218 | dependencies: 2219 | async "~0.2.6" 2220 | source-map "~0.5.1" 2221 | uglify-to-browserify "~1.0.0" 2222 | yargs "~3.10.0" 2223 | 2224 | uglify-to-browserify@~1.0.0: 2225 | version "1.0.2" 2226 | resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" 2227 | 2228 | uid-number@^0.0.6: 2229 | version "0.0.6" 2230 | resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" 2231 | 2232 | unpipe@~1.0.0: 2233 | version "1.0.0" 2234 | resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" 2235 | 2236 | url-parse@1.0.x: 2237 | version "1.0.5" 2238 | resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.0.5.tgz#0854860422afdcfefeb6c965c662d4800169927b" 2239 | dependencies: 2240 | querystringify "0.0.x" 2241 | requires-port "1.0.x" 2242 | 2243 | url-parse@^1.1.1: 2244 | version "1.1.8" 2245 | resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.1.8.tgz#7a65b3a8d57a1e86af6b4e2276e34774167c0156" 2246 | dependencies: 2247 | querystringify "0.0.x" 2248 | requires-port "1.0.x" 2249 | 2250 | url@~0.10.1: 2251 | version "0.10.3" 2252 | resolved "https://registry.yarnpkg.com/url/-/url-0.10.3.tgz#021e4d9c7705f21bbf37d03ceb58767402774c64" 2253 | dependencies: 2254 | punycode "1.3.2" 2255 | querystring "0.2.0" 2256 | 2257 | util-deprecate@~1.0.1: 2258 | version "1.0.2" 2259 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" 2260 | 2261 | util@0.10.3, util@~0.10.3: 2262 | version "0.10.3" 2263 | resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" 2264 | dependencies: 2265 | inherits "2.0.1" 2266 | 2267 | utils-merge@1.0.0: 2268 | version "1.0.0" 2269 | resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.0.tgz#0294fb922bb9375153541c4f7096231f287c8af8" 2270 | 2271 | uuid@^2.0.2: 2272 | version "2.0.3" 2273 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a" 2274 | 2275 | uuid@^3.0.0: 2276 | version "3.0.1" 2277 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" 2278 | 2279 | vary@~1.1.0: 2280 | version "1.1.1" 2281 | resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.1.tgz#67535ebb694c1d52257457984665323f587e8d37" 2282 | 2283 | verror@1.3.6: 2284 | version "1.3.6" 2285 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c" 2286 | dependencies: 2287 | extsprintf "1.0.2" 2288 | 2289 | vm-browserify@0.0.4: 2290 | version "0.0.4" 2291 | resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73" 2292 | dependencies: 2293 | indexof "0.0.1" 2294 | 2295 | watchpack@^0.2.1: 2296 | version "0.2.9" 2297 | resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-0.2.9.tgz#62eaa4ab5e5ba35fdfc018275626e3c0f5e3fb0b" 2298 | dependencies: 2299 | async "^0.9.0" 2300 | chokidar "^1.0.0" 2301 | graceful-fs "^4.1.2" 2302 | 2303 | webpack-core@~0.6.0: 2304 | version "0.6.9" 2305 | resolved "https://registry.yarnpkg.com/webpack-core/-/webpack-core-0.6.9.tgz#fc571588c8558da77be9efb6debdc5a3b172bdc2" 2306 | dependencies: 2307 | source-list-map "~0.1.7" 2308 | source-map "~0.4.1" 2309 | 2310 | webpack-dev-middleware@^1.4.0: 2311 | version "1.10.2" 2312 | resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-1.10.2.tgz#2e252ce1dfb020dbda1ccb37df26f30ab014dbd1" 2313 | dependencies: 2314 | memory-fs "~0.4.1" 2315 | mime "^1.3.4" 2316 | path-is-absolute "^1.0.0" 2317 | range-parser "^1.0.3" 2318 | 2319 | webpack-dev-server@1.14.1: 2320 | version "1.14.1" 2321 | resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-1.14.1.tgz#e51de228071258b0db6d55e0f5fee55eec6755de" 2322 | dependencies: 2323 | compression "^1.5.2" 2324 | connect-history-api-fallback "1.1.0" 2325 | express "^4.13.3" 2326 | http-proxy "^1.11.2" 2327 | optimist "~0.6.0" 2328 | serve-index "^1.7.2" 2329 | sockjs "^0.3.15" 2330 | sockjs-client "^1.0.3" 2331 | stream-cache "~0.0.1" 2332 | strip-ansi "^3.0.0" 2333 | supports-color "^3.1.1" 2334 | webpack-dev-middleware "^1.4.0" 2335 | 2336 | webpack@1.13.1: 2337 | version "1.13.1" 2338 | resolved "https://registry.yarnpkg.com/webpack/-/webpack-1.13.1.tgz#0a69e88e5bdc593939352d5d77de0f9ac9d0871e" 2339 | dependencies: 2340 | acorn "^3.0.0" 2341 | async "^1.3.0" 2342 | clone "^1.0.2" 2343 | enhanced-resolve "~0.9.0" 2344 | interpret "^0.6.4" 2345 | loader-utils "^0.2.11" 2346 | memory-fs "~0.3.0" 2347 | mkdirp "~0.5.0" 2348 | node-libs-browser ">= 0.4.0 <=0.6.0" 2349 | optimist "~0.6.0" 2350 | supports-color "^3.1.0" 2351 | tapable "~0.1.8" 2352 | uglify-js "~2.6.0" 2353 | watchpack "^0.2.1" 2354 | webpack-core "~0.6.0" 2355 | 2356 | websocket-driver@>=0.5.1: 2357 | version "0.6.5" 2358 | resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.6.5.tgz#5cb2556ceb85f4373c6d8238aa691c8454e13a36" 2359 | dependencies: 2360 | websocket-extensions ">=0.1.1" 2361 | 2362 | websocket-extensions@>=0.1.1: 2363 | version "0.1.1" 2364 | resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.1.tgz#76899499c184b6ef754377c2dbb0cd6cb55d29e7" 2365 | 2366 | whatwg-fetch@>=0.10.0: 2367 | version "2.0.3" 2368 | resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84" 2369 | 2370 | wide-align@^1.1.0: 2371 | version "1.1.0" 2372 | resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.0.tgz#40edde802a71fea1f070da3e62dcda2e7add96ad" 2373 | dependencies: 2374 | string-width "^1.0.1" 2375 | 2376 | window-size@0.1.0: 2377 | version "0.1.0" 2378 | resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" 2379 | 2380 | wordwrap@0.0.2: 2381 | version "0.0.2" 2382 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" 2383 | 2384 | wordwrap@~0.0.2: 2385 | version "0.0.3" 2386 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" 2387 | 2388 | wrappy@1: 2389 | version "1.0.2" 2390 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 2391 | 2392 | yargs@~3.10.0: 2393 | version "3.10.0" 2394 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" 2395 | dependencies: 2396 | camelcase "^1.0.2" 2397 | cliui "^2.1.0" 2398 | decamelize "^1.0.0" 2399 | window-size "0.1.0" 2400 | -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The specific action format used within redux-ui-router 3 | */ 4 | export interface ReduxUIRouterAction { 5 | type: string; 6 | payload: any; 7 | } 8 | 9 | /** 10 | * The type of a redux-ui-router route 11 | */ 12 | export interface ReduxUIRoute { 13 | name: string; 14 | params: any; 15 | url: string; 16 | } 17 | 18 | /** 19 | * The shape of the state tree used to manage the state of redux-ui-router 20 | */ 21 | export interface ReduxUIRouterState { 22 | currentState: ReduxUIRoute; 23 | currentParams: any; 24 | prevState: ReduxUIRoute; 25 | prevParams: any; 26 | } 27 | 28 | /** 29 | * The middleware function to provide to Redux's combineReducers() 30 | * function. 31 | */ 32 | export function router(state: ReduxUIRouterState, action: ReduxUIRouterAction): ReduxUIRouterState; 33 | 34 | /** 35 | * The name of the provided angular module that can be injected into 36 | * the application's top-level module. 37 | */ 38 | export var ngReduxUiRouter: string; 39 | 40 | /** 41 | * This action create will trigger a $state.go in the UiRouter Middleware. 42 | * Accepts a payload which matches the UI Router $state.go function. 43 | * 44 | * http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state 45 | * 46 | * @param {String} to - State name 47 | * @param {Object} params - (optional) Parameters to send with state 48 | * @param {Object} options - (optional) Options object 49 | * @return {Object} Action object 50 | */ 51 | export function stateGo(to: string, params?: any, options?: any): ReduxUIRouterAction; 52 | 53 | /** 54 | * This action create will trigger a $state.reload in the UiRouter Middleware. 55 | * Accepts a payload which matches the UI Router $state.reload function. 56 | * 57 | * http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state 58 | * 59 | * @param {String} state - (optional) Root of the resolves to be re-resolved 60 | * @return {Object} Action object 61 | */ 62 | export function stateReload(state: any): ReduxUIRouterAction; 63 | 64 | /** 65 | * This action create will trigger a $state.transitionTo in the UiRouter Middleware. 66 | * Accepts a payload which matches the UI Router $state.transitionTo function. 67 | * 68 | * http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state 69 | * 70 | * @param {String} to - State name 71 | * @param {Object} toParams - (optional) Parameters to send with state 72 | * @param {Object} options - (optional) Options object 73 | * @return {Object} Action object 74 | */ 75 | export function stateTransitionTo(to: string, params?: any, options?: any): ReduxUIRouterAction; 76 | 77 | /** 78 | * The default export is the name of the provided angular module 79 | */ 80 | export default ngReduxUiRouter; 81 | 82 | -------------------------------------------------------------------------------- /karma.conf.js: -------------------------------------------------------------------------------- 1 | // Karma configuration 2 | // Generated on Sat Aug 22 2015 14:55:12 GMT-0400 (EDT) 3 | 4 | module.exports = function(config) { 5 | config.set({ 6 | basePath: './', 7 | frameworks: ['mocha'], 8 | files: [ 9 | 'src/**/*.js' 10 | ], 11 | exclude: [ 12 | ], 13 | plugins: [ 14 | 'karma-babel-preprocessor', 15 | 'karma-mocha', 16 | 'karma-phantomjs-launcher' 17 | ], 18 | preprocessors: { 19 | 'src/**/*.js': ['babel'] 20 | }, 21 | babelPreprocessor: { 22 | options: { 23 | sourceMap: 'inline' 24 | }, 25 | filename: function (file) { 26 | return file.originalPath.replace(/\.js$/, '.es5.js'); 27 | }, 28 | sourceFileName: function (file) { 29 | return file.originalPath; 30 | } 31 | }, 32 | reporters: ['progress'], 33 | port: 9876, 34 | colors: true, 35 | logLevel: config.LOG_INFO, 36 | autoWatch: true, 37 | browsers: ['PhantomJS'], 38 | singleRun: false 39 | }); 40 | }; 41 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "redux-ui-router", 3 | "version": "0.7.3", 4 | "description": "Redux middleware for use with Angular UI Router", 5 | "main": "./lib/index.js", 6 | "scripts": { 7 | "lint": "node node_modules/.bin/eslint src", 8 | "clean": "rm -rf lib && rm -rf dist", 9 | "test": "npm run lint; NODE_ENV=test node node_modules/.bin/mocha --compilers js:babel-register --recursive --require src/__tests__/index.js src/**/*.test.js", 10 | "test:live": "npm run lint; NODE_ENV=test node node_modules/.bin/mocha --compilers js:babel-register --recursive --require src/__tests__/index.js -w src/**/*.test.js", 11 | "build": "npm run clean; npm run test; node node_modules/.bin/babel src --out-dir lib", 12 | "bundle:dev": "webpack lib/index.js dist/redux-ui-router.js", 13 | "bundle:prod": "webpack -p lib/index.js dist/redux-ui-router.min.js", 14 | "prepublish": "npm run build && npm run bundle:dev && npm run bundle:prod" 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "https://github.com/neilff/redux-ui-router" 19 | }, 20 | "author": "Neil Fenton (neilff)", 21 | "license": "MIT", 22 | "dependencies": { 23 | "redux": "^3.5.2" 24 | }, 25 | "devDependencies": { 26 | "@uirouter/angularjs": "^1.0.3", 27 | "angular": "^1.4.x < 2.0.0", 28 | "babel-cli": "^6.11.4", 29 | "babel-core": "6.13.1", 30 | "babel-eslint": "6.1.2", 31 | "babel-loader": "6.2.4", 32 | "babel-preset-es2015": "^6.13.1", 33 | "babel-preset-react": "^6.11.1", 34 | "babel-preset-stage-0": "^6.5.0", 35 | "babel-register": "^6.9.0", 36 | "chai": "^3.5.0", 37 | "eslint": "3.1.1", 38 | "mocha": "2.5.3", 39 | "ng-redux": "^3.3.3", 40 | "node-libs-browser": "^1.0.0", 41 | "sinon": "1.17.4", 42 | "sinon-as-promised": "^3.0.1", 43 | "webpack": "^2.4.1" 44 | }, 45 | "peerDependencies": { 46 | "@uirouter/angularjs": "^1.0.3", 47 | "angular": "^1.4.x < 2.0.0" 48 | }, 49 | "engines": { 50 | "node": ">=6.0.0" 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/__tests__/index.js: -------------------------------------------------------------------------------- 1 | import chai from 'chai'; 2 | global.expect = chai.expect; 3 | -------------------------------------------------------------------------------- /src/__tests__/router-actions.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | 3 | import stateGo from '../state-go'; 4 | import stateReload from '../state-reload'; 5 | import stateTransitionTo from '../state-transition-to'; 6 | 7 | describe('routerActions', () => { 8 | it('export the action creators', () => { 9 | expect(stateGo).to.be.a('function'); 10 | expect(stateReload).to.be.a('function'); 11 | expect(stateTransitionTo).to.be.a('function'); 12 | }); 13 | }); 14 | -------------------------------------------------------------------------------- /src/__tests__/router-listener.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | import sinon from 'sinon'; 3 | 4 | import RouterListener from '../router-listener'; 5 | 6 | describe('routerListener', () => { 7 | let routerListener; 8 | let $transitions = { 9 | onStart: sinon.stub(), 10 | onError: sinon.stub(), 11 | onFinish: sinon.stub(), 12 | onSuccess: sinon.stub() 13 | }; 14 | let ngUiStateChangeActions = { 15 | onStateChangeStart: sinon.stub(), 16 | onStateChangeError: sinon.stub(), 17 | onStateChangeFinish: sinon.stub(), 18 | onStateChangeSuccess: sinon.stub() 19 | }; 20 | 21 | beforeEach(() => { 22 | routerListener = RouterListener($transitions, ngUiStateChangeActions); 23 | }); 24 | 25 | describe('Bootstrap time', () => { 26 | it('must subscribe listeners', () => { 27 | expect($transitions.onStart.calledWith({}, sinon.match.func)).to.equal(true); 28 | expect($transitions.onError.calledWith({}, sinon.match.func)).to.equal(true); 29 | expect($transitions.onFinish.calledWith({}, sinon.match.func)).to.equal(true); 30 | expect($transitions.onSuccess.calledWith({}, sinon.match.func)).to.equal(true); 31 | }); 32 | }); 33 | 34 | describe('listeners', () => { 35 | let $transition$; 36 | before(() => { 37 | let paramsStub = sinon.stub(); 38 | paramsStub.withArgs('to').returns('toParams'); 39 | paramsStub.withArgs('from').returns('fromParams'); 40 | $transition$ = { 41 | to: sinon.stub().returns('to'), 42 | params: paramsStub, 43 | from: sinon.stub().returns('from'), 44 | options: sinon.stub().returns('options') 45 | }; 46 | }); 47 | 48 | describe('onStart', () => { 49 | it('must call onStateChangeStart with the transition parameters', () => { 50 | $transitions.onStart.yield($transition$); 51 | expect(ngUiStateChangeActions.onStateChangeStart.calledWith('to', 'toParams', 'from', 'fromParams', 'options')).to.equal(true); 52 | }); 53 | }); 54 | 55 | describe('onError', () => { 56 | it('must call onStateChangeError with the transition parameters and the transition Error', () => { 57 | $transition$.error = sinon.stub().returns('transitionError'); 58 | $transitions.onError.yield($transition$); 59 | expect(ngUiStateChangeActions.onStateChangeError.calledWith('to', 'toParams', 'from', 'fromParams', 'options', 'transitionError')).to.equal(true); 60 | }); 61 | }); 62 | 63 | describe('onFinish', () => { 64 | it('must call onStateChangeFinish', () => { 65 | $transitions.onFinish.yield($transition$); 66 | expect(ngUiStateChangeActions.onStateChangeFinish.called).to.equal(true); 67 | }); 68 | }); 69 | 70 | describe('onSuccess', () => { 71 | it('must call onStateChangeSuccess', () => { 72 | $transitions.onSuccess.yield($transition$); 73 | expect(ngUiStateChangeActions.onStateChangeSuccess.called).to.equal(true); 74 | }); 75 | }); 76 | }); 77 | }); 78 | -------------------------------------------------------------------------------- /src/__tests__/router-state-reducer.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | import routerStateReducer from '../router-state-reducer'; 3 | 4 | describe('routerStateReducer', () => { 5 | it('should return the initial state', () => { 6 | let action = { 7 | type: 'null', 8 | payload: {} 9 | }; 10 | 11 | let state = routerStateReducer(undefined, action); 12 | expect(state.currentState).to.deep.equal({}); 13 | expect(state.currentParams).to.deep.equal({}); 14 | expect(state.prevState).to.deep.equal({}); 15 | expect(state.prevParams).to.deep.equal({}); 16 | }); 17 | 18 | it('should set the provided state if the $stateChangeFinish type is used', () => { 19 | let action = { 20 | type: '@@reduxUiRouter/onFinish', 21 | payload: { 22 | currentState: 'currentState', 23 | currentParams: 'currentParams', 24 | prevState: 'prevState', 25 | prevParams: 'prevParams' 26 | } 27 | }; 28 | 29 | let state = routerStateReducer(undefined, action); 30 | expect(state.currentState).to.equal('currentState'); 31 | expect(state.currentParams).to.equal('currentParams'); 32 | expect(state.prevState).to.equal('prevState'); 33 | expect(state.prevParams).to.equal('prevParams'); 34 | }); 35 | }); 36 | -------------------------------------------------------------------------------- /src/__tests__/state-activation-actions.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | import stateActivationActions from '../state-activation-actions'; 3 | 4 | describe('routerActivationActions', () => { 5 | it('should bind the action creators', () => { 6 | let $ngReduxMock = { 7 | dispatch: () => {} 8 | }; 9 | 10 | let actions = stateActivationActions($ngReduxMock); 11 | 12 | expect(actions.stateGo).to.be.a('function'); 13 | expect(actions.stateReload).to.be.a('function'); 14 | expect(actions.stateTransitionTo).to.be.a('function'); 15 | 16 | }); 17 | }); 18 | -------------------------------------------------------------------------------- /src/__tests__/state-change-actions.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | import stateChangeActions from '../state-change-actions'; 3 | 4 | describe('routerActions', () => { 5 | it('should bind the action creators', () => { 6 | let $ngReduxMock = { 7 | dispatch: () => {} 8 | }; 9 | 10 | let actions = new stateChangeActions().$get($ngReduxMock); 11 | 12 | expect(actions.onStateChangeStart).to.be.a('function'); 13 | expect(actions.onStateChangeSuccess).to.be.a('function'); 14 | expect(actions.onStateChangeFinish).to.be.a('function'); 15 | expect(actions.onStateChangeError).to.be.a('function'); 16 | 17 | }); 18 | }); 19 | -------------------------------------------------------------------------------- /src/__tests__/state-change-error.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | import stateChangeError from '../state-change-error'; 3 | 4 | describe('stateChangeError', () => { 5 | it('should create an action with the provided params', () => { 6 | let action = stateChangeError('toState', 'toParams', 'fromState', 'fromParams', 'err'); 7 | 8 | expect(action.payload.toState).to.equal('toState'); 9 | expect(action.payload.toParams).to.equal('toParams'); 10 | expect(action.payload.fromState).to.equal('fromState'); 11 | expect(action.payload.fromParams).to.equal('fromParams'); 12 | expect(action.payload.err).to.equal('err'); 13 | expect(action.type).to.equal('@@reduxUiRouter/onError'); 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /src/__tests__/state-change-finish.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | import stateChangeFinish from '../state-change-finish'; 3 | 4 | describe('stateChangeFinish', () => { 5 | it('should create an action with the provided params', () => { 6 | let action = stateChangeFinish('toState', 'toParams', 'fromState', 'fromParams'); 7 | expect(action.payload.toState).to.equal('toState'); 8 | expect(action.payload.toParams).to.equal('toParams'); 9 | expect(action.payload.fromState).to.equal('fromState'); 10 | expect(action.payload.fromParams).to.equal('fromParams'); 11 | expect(action.type).to.equal('@@reduxUiRouter/onFinish'); 12 | }); 13 | }); 14 | -------------------------------------------------------------------------------- /src/__tests__/state-change-start.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | import stateChangeStart from '../state-change-start'; 3 | 4 | describe('stateChangeStart', () => { 5 | it('should create an action with the provided params', () => { 6 | let action = stateChangeStart('toState', 'toParams', 'fromState', 'fromParams', 'options'); 7 | 8 | expect(action.payload.toState).to.equal('toState'); 9 | expect(action.payload.toParams).to.equal('toParams'); 10 | expect(action.payload.fromState).to.equal('fromState'); 11 | expect(action.payload.fromParams).to.equal('fromParams'); 12 | expect(action.payload.options).to.equal('options'); 13 | expect(action.type).to.equal('@@reduxUiRouter/onStart'); 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /src/__tests__/state-change-success.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | import stateChangeSuccess from '../state-change-success'; 3 | 4 | describe('stateChangeSuccess', () => { 5 | it('should create an action with the provided params', () => { 6 | let action = stateChangeSuccess('toState', 'toParams', 'fromState', 'fromParams'); 7 | expect(action.payload.toState).to.equal('toState'); 8 | expect(action.payload.toParams).to.equal('toParams'); 9 | expect(action.payload.fromState).to.equal('fromState'); 10 | expect(action.payload.fromParams).to.equal('fromParams'); 11 | expect(action.type).to.equal('@@reduxUiRouter/onSuccess'); 12 | }); 13 | }); 14 | -------------------------------------------------------------------------------- /src/__tests__/state-go.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | import stateGo from '../state-go'; 3 | 4 | describe('stateGo', () => { 5 | it('should create an action containing the state to go to', () => { 6 | let action = stateGo('example', { test: 'hello' }, { option: 'world' }); 7 | expect(action.payload.to).to.equal('example'); 8 | expect(action.payload.params.test).to.equal('hello'); 9 | expect(action.payload.options.option).to.equal('world'); 10 | expect(action.type).to.equal('@@reduxUiRouter/stateGo'); 11 | }); 12 | 13 | it('should create an action when to params are undefined', () => { 14 | let action = stateGo('example', undefined, undefined); 15 | expect(action.payload.to).to.equal('example'); 16 | expect(action.payload.params).to.equal(undefined); 17 | expect(action.payload.options).to.equal(undefined); 18 | expect(action.type).to.equal('@@reduxUiRouter/stateGo'); 19 | }); 20 | }); 21 | -------------------------------------------------------------------------------- /src/__tests__/state-middleware.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | import sinon from 'sinon'; 3 | import 'sinon-as-promised'; 4 | import routerMiddleware from '../router-middleware'; 5 | 6 | import { 7 | STATE_GO, 8 | STATE_RELOAD, 9 | STATE_TRANSITION_TO 10 | } from '../action-types'; 11 | 12 | let $state; 13 | let nextSpy; 14 | 15 | describe('routerMiddleware', () => { 16 | beforeEach(() => { 17 | $state = { 18 | go: () => {}, 19 | reload: () => {}, 20 | transitionTo: () => {} 21 | }; 22 | 23 | $state.go = sinon.stub().resolves('foo'); 24 | $state.reload = sinon.stub().resolves('foo'); 25 | $state.transitionTo = sinon.stub().resolves('foo'); 26 | 27 | nextSpy = sinon.stub().returns('foo'); 28 | }); 29 | 30 | it('should call the next action if the router middleware doesn\'t care about it', () => { 31 | let middleware = routerMiddleware($state)({})(nextSpy); 32 | 33 | let returnValue = middleware({ 34 | payload: {} 35 | }); 36 | 37 | expect(nextSpy.called).to.equal(true); 38 | expect(returnValue).to.equal('foo'); 39 | expect($state.go.called).to.equal(false); 40 | expect($state.reload.called).to.equal(false); 41 | expect($state.transitionTo.called).to.equal(false); 42 | }); 43 | 44 | it('should call $state.go if the STATE_GO action is sent', () => { 45 | let store = { 46 | dispatch: () => {}, 47 | getState: () => {} 48 | }; 49 | 50 | let middleware = routerMiddleware($state)(store)(nextSpy); 51 | 52 | let result = middleware({ 53 | type: STATE_GO, 54 | payload: {} 55 | }); 56 | 57 | result.then(() => { 58 | expect(nextSpy.called).to.equal(true); 59 | expect($state.go.called).to.equal(true); 60 | expect($state.reload.called).to.equal(false); 61 | expect($state.transitionTo.called).to.equal(false); 62 | }); 63 | }); 64 | 65 | it('should call $state.reload if the STATE_GO action is sent', () => { 66 | let middleware = routerMiddleware($state)({})(nextSpy); 67 | 68 | middleware({ 69 | type: STATE_RELOAD, 70 | payload: {} 71 | }); 72 | 73 | expect(nextSpy.called).to.equal(true); 74 | expect($state.reload.called).to.equal(true); 75 | expect($state.go.called).to.equal(false); 76 | expect($state.transitionTo.called).to.equal(false); 77 | }); 78 | 79 | it('should call $state.transitionTo if the STATE_GO action is sent', () => { 80 | let middleware = routerMiddleware($state)({})(nextSpy); 81 | 82 | middleware({ 83 | type: STATE_TRANSITION_TO, 84 | payload: {} 85 | }); 86 | 87 | expect(nextSpy.called).to.equal(true); 88 | expect($state.transitionTo.called).to.equal(true); 89 | expect($state.go.called).to.equal(false); 90 | expect($state.reload.called).to.equal(false); 91 | }); 92 | }); 93 | -------------------------------------------------------------------------------- /src/__tests__/state-reload.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | import stateReload from '../state-reload'; 3 | 4 | describe('stateReload', () => { 5 | it('should create an action containing the state to reload', () => { 6 | let action = stateReload('example'); 7 | expect(action.payload).to.equal('example'); 8 | expect(action.type).to.equal('@@reduxUiRouter/stateReload'); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /src/__tests__/state-transition-to.test.js: -------------------------------------------------------------------------------- 1 | import 'chai'; 2 | import stateTransitionTo from '../state-transition-to'; 3 | 4 | describe('stateTransitionTo', () => { 5 | it('should create an action containing the state to transition to', () => { 6 | let action = stateTransitionTo('example', { test: 'hello' }, { option: 'world' }); 7 | expect(action.payload.to).to.equal('example'); 8 | expect(action.payload.params.test).to.equal('hello'); 9 | expect(action.payload.options.option).to.equal('world'); 10 | expect(action.type).to.equal('@@reduxUiRouter/transitionTo'); 11 | }); 12 | 13 | it('should create an action when to params are undefined', () => { 14 | let action = stateTransitionTo('example', undefined, undefined); 15 | expect(action.payload.to).to.equal('example'); 16 | expect(action.payload.params).to.equal(undefined); 17 | expect(action.payload.options).to.equal(undefined); 18 | expect(action.type).to.equal('@@reduxUiRouter/transitionTo'); 19 | }); 20 | }); 21 | -------------------------------------------------------------------------------- /src/action-types.js: -------------------------------------------------------------------------------- 1 | // Exports the constants used for triggering transitions using Angular UI Router 2 | // 3 | // STATE_GO: Action for triggering a $state.go 4 | // STATE_RELOAD: Action for triggering a $state.reload 5 | // STATE_TRANSITION_TO: Action for triggering a $state.transitionTo 6 | // 7 | export const STATE_GO = '@@reduxUiRouter/stateGo'; 8 | export const STATE_RELOAD = '@@reduxUiRouter/stateReload'; 9 | export const STATE_TRANSITION_TO = '@@reduxUiRouter/transitionTo'; 10 | 11 | // UI Router Events 12 | export const STATE_CHANGE_START = '@@reduxUiRouter/onStart'; 13 | export const STATE_CHANGE_SUCCESS = '@@reduxUiRouter/onSuccess'; 14 | export const STATE_CHANGE_FINISH = '@@reduxUiRouter/onFinish'; 15 | export const STATE_CHANGE_ERROR = '@@reduxUiRouter/onError'; 16 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import angular from 'angular'; 2 | import uiRouter from '@uirouter/angularjs'; 3 | import routerState from './router-state-reducer'; 4 | import stateGo from './state-go'; 5 | import stateReload from './state-reload'; 6 | import stateTransitionTo from './state-transition-to'; 7 | 8 | import routerMiddleware from './router-middleware'; 9 | import uiRouterListener from './router-listener'; 10 | import stateChangeActions from './state-change-actions'; 11 | import stateActivationActions from './state-activation-actions'; 12 | 13 | export default angular 14 | .module('ng-ui-router-middleware', [uiRouter]) 15 | .provider('ngUiStateChangeActions', stateChangeActions) 16 | .factory('ngUiRouterMiddleware', routerMiddleware) 17 | .factory('ngUiStateActivationActions', stateActivationActions) 18 | .run(uiRouterListener).name; 19 | 20 | export const router = routerState; 21 | 22 | export { stateGo, stateReload, stateTransitionTo }; 23 | -------------------------------------------------------------------------------- /src/router-listener.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Listens for events emitted from Angular UI Router and fires redux events 3 | * 4 | * @param {object} $transitions Dependency 5 | * @param {object} ngUiStateChangeActions Dependency 6 | * @return {undefined} undefined 7 | */ 8 | export default function RouterListener($transitions, ngUiStateChangeActions) { 9 | const prevNext = t => [t.to(), t.params('to'), t.from(), t.params('from'), t.options()]; 10 | 11 | const prevNextReduxState = t => ([getStateObject(t.to()), 12 | t.params('to'), 13 | getStateObject(t.from()), 14 | t.params('from')]); 15 | 16 | $transitions.onStart({}, $transition$ => ngUiStateChangeActions.onStateChangeStart(...prevNext($transition$))); 17 | $transitions.onError({}, $transition$ => ngUiStateChangeActions.onStateChangeError(...prevNext($transition$), $transition$.error())); 18 | $transitions.onFinish({}, $transition$ => ngUiStateChangeActions.onStateChangeFinish(...prevNextReduxState($transition$))); 19 | $transitions.onSuccess({}, $transition$ => ngUiStateChangeActions.onStateChangeSuccess(...prevNext($transition$))); 20 | } 21 | 22 | function getStateObject(state) { 23 | if (!state) { 24 | return {}; 25 | } 26 | const { name, params, url } = state; 27 | return { 28 | name, 29 | params, 30 | url, 31 | }; 32 | } 33 | 34 | RouterListener.$inject = [ 35 | '$transitions', 36 | 'ngUiStateChangeActions', 37 | ]; 38 | -------------------------------------------------------------------------------- /src/router-middleware.js: -------------------------------------------------------------------------------- 1 | import { 2 | STATE_GO, 3 | STATE_RELOAD, 4 | STATE_TRANSITION_TO, 5 | STATE_CHANGE_FINISH, 6 | } from './action-types'; 7 | 8 | export default function routerMiddleware($state) { 9 | return () => next => action => { 10 | const { payload } = action; 11 | 12 | switch (action.type) { 13 | case STATE_GO: 14 | return $state.go(payload.to, payload.params, payload.options) 15 | .then(next(action)); 16 | 17 | case STATE_RELOAD: 18 | return $state.reload(payload) 19 | .then(next(action)); 20 | 21 | case STATE_TRANSITION_TO: 22 | return $state.transitionTo(payload.to, payload.params, payload.options) 23 | .then(next(action)); 24 | 25 | case STATE_CHANGE_FINISH: 26 | return next({ 27 | type: STATE_CHANGE_FINISH, 28 | payload: { 29 | currentState: action.payload.toState, 30 | currentParams: action.payload.toParams, 31 | href: $state.href, 32 | prevState: action.payload.fromState, 33 | prevParams: action.payload.fromParams, 34 | }, 35 | }); 36 | 37 | default: 38 | return next(action); 39 | } 40 | }; 41 | } 42 | 43 | routerMiddleware.$inject = ['$state']; 44 | -------------------------------------------------------------------------------- /src/router-state-reducer.js: -------------------------------------------------------------------------------- 1 | import { STATE_CHANGE_FINISH } from './action-types'; 2 | 3 | const INITIAL_STATE = { 4 | currentState: {}, 5 | currentParams: {}, 6 | prevState: {}, 7 | prevParams: {}, 8 | }; 9 | 10 | /** 11 | * Reducer of STATE_CHANGE_SUCCESS actions. Returns a state object 12 | * with { currentState, currentParams, prevState, prevParams } 13 | * 14 | * @param {Object} state - Previous state 15 | * @param {Object} action - Action 16 | * @return {Object} New state 17 | */ 18 | export default function routerStateReducer(state = INITIAL_STATE, action) { 19 | if (action.type !== STATE_CHANGE_FINISH) { 20 | return state; 21 | } 22 | return action.payload; 23 | } 24 | -------------------------------------------------------------------------------- /src/state-activation-actions.js: -------------------------------------------------------------------------------- 1 | // Transition Actions 2 | import stateGo from './state-go'; 3 | import stateReload from './state-reload'; 4 | import stateTransitionTo from './state-transition-to'; 5 | 6 | import { bindActionCreators } from 'redux'; 7 | 8 | export default function stateActivationActions($ngRedux) { 9 | const actionCreator = { 10 | stateGo, 11 | stateReload, 12 | stateTransitionTo, 13 | }; 14 | 15 | return bindActionCreators(actionCreator, $ngRedux.dispatch); 16 | } 17 | 18 | stateActivationActions.$inject = ['$ngRedux']; 19 | -------------------------------------------------------------------------------- /src/state-change-actions.js: -------------------------------------------------------------------------------- 1 | // Event Actions 2 | import onStateChangeStart from './state-change-start'; 3 | import onStateChangeSuccess from './state-change-success'; 4 | import onStateChangeFinish from './state-change-finish'; 5 | import onStateChangeError from './state-change-error'; 6 | 7 | import { bindActionCreators } from 'redux'; 8 | 9 | export default function stateChangeActions() { 10 | this.$get = ($ngRedux) => { 11 | const actionCreator = { 12 | onStateChangeStart, 13 | onStateChangeSuccess, 14 | onStateChangeFinish, 15 | onStateChangeError, 16 | }; 17 | 18 | return bindActionCreators(actionCreator, $ngRedux.dispatch); 19 | }; 20 | 21 | this.$get.$inject = ['$ngRedux']; 22 | } 23 | -------------------------------------------------------------------------------- /src/state-change-error.js: -------------------------------------------------------------------------------- 1 | import { STATE_CHANGE_ERROR } from './action-types'; 2 | 3 | /** 4 | * This action is triggered when a $transitions.onError event is occours. 5 | * Accepts a payload which matches the UI Router $transition$. 6 | * 7 | * http://angular-ui.github.io/ui-router/1.0.0-alpha.3/classes/transition.transition-1.html#onerror 8 | * 9 | * @param {Object} toState To state definition 10 | * @param {Object} toParams To params object 11 | * @param {Object} fromState From state definition 12 | * @param {Object} fromParams From params object 13 | * @param {Object} err Error resolve object 14 | * @return {Object} Action object 15 | */ 16 | export default function onStateChangeError(toState, toParams, fromState, fromParams, err) { 17 | return { 18 | type: STATE_CHANGE_ERROR, 19 | payload: { 20 | toState, 21 | toParams, 22 | fromState, 23 | fromParams, 24 | err, 25 | }, 26 | }; 27 | } 28 | -------------------------------------------------------------------------------- /src/state-change-finish.js: -------------------------------------------------------------------------------- 1 | import { STATE_CHANGE_FINISH } from './action-types'; 2 | 3 | /** 4 | * This action is triggered when a $stateChangeFinish event is broadcast. 5 | * Accepts a payload which matches the UI Router $stateChangeFinish event. 6 | * 7 | * http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state 8 | * 9 | * @param {Object} toState To state definition 10 | * @param {Object} toParams To params object 11 | * @param {Object} fromState From state definition 12 | * @param {Object} fromParams From params object 13 | * @param {Object} options Options object 14 | * @return {Object} Action object 15 | */ 16 | export default function onStateChangeFinish(toState, toParams, fromState, fromParams, options) { 17 | return { 18 | type: STATE_CHANGE_FINISH, 19 | payload: { 20 | toState, 21 | toParams, 22 | fromState, 23 | fromParams, 24 | options, 25 | }, 26 | }; 27 | } 28 | -------------------------------------------------------------------------------- /src/state-change-start.js: -------------------------------------------------------------------------------- 1 | import { STATE_CHANGE_START } from './action-types'; 2 | 3 | /** 4 | * This action is triggered when a $stateChangeStart event is broadcast. 5 | * Accepts a payload which matches the UI Router $stateChangeStart event. 6 | * 7 | * http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state 8 | * 9 | * @param {Object} toState To state definition 10 | * @param {Object} toParams To params object 11 | * @param {Object} fromState From state definition 12 | * @param {Object} fromParams From params object 13 | * @param {Object} options Options object 14 | * @return {Object} Action object 15 | */ 16 | export default function onStateChangeStart(toState, toParams, fromState, fromParams, options) { 17 | return { 18 | type: STATE_CHANGE_START, 19 | payload: { 20 | toState, 21 | toParams, 22 | fromState, 23 | fromParams, 24 | options, 25 | }, 26 | }; 27 | } 28 | -------------------------------------------------------------------------------- /src/state-change-success.js: -------------------------------------------------------------------------------- 1 | import { STATE_CHANGE_SUCCESS } from './action-types'; 2 | 3 | /** 4 | * This action is triggered when a $stateChangeSuccess event is broadcast. 5 | * Accepts a payload which matches the UI Router $stateChangeSuccess event. 6 | * 7 | * http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state 8 | * 9 | * @param {Object} toState To state definition 10 | * @param {Object} toParams To params object 11 | * @param {Object} fromState From state definition 12 | * @param {Object} fromParams From params object 13 | * @return {Object} Action object 14 | */ 15 | export default function onStateChangeSuccess(toState, toParams, fromState, fromParams) { 16 | return { 17 | type: STATE_CHANGE_SUCCESS, 18 | payload: { 19 | toState, 20 | toParams, 21 | fromState, 22 | fromParams, 23 | }, 24 | }; 25 | } 26 | -------------------------------------------------------------------------------- /src/state-go.js: -------------------------------------------------------------------------------- 1 | import { STATE_GO } from './action-types'; 2 | 3 | /** 4 | * This action create will trigger a $state.go in the UiRouter Middleware. 5 | * Accepts a payload which matches the UI Router $state.go function. 6 | * 7 | * http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state 8 | * 9 | * @param {String} to - State name 10 | * @param {Object} params - (optional) Parameters to send with state 11 | * @param {Object} options - (optional) Options object 12 | * @return {Object} Action object 13 | */ 14 | export default function stateGo(to, params, options) { 15 | return { 16 | type: STATE_GO, 17 | payload: { 18 | to, 19 | params, 20 | options, 21 | }, 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /src/state-reload.js: -------------------------------------------------------------------------------- 1 | import { STATE_RELOAD } from './action-types'; 2 | 3 | /** 4 | * This action create will trigger a $state.reload in the UiRouter Middleware. 5 | * Accepts a payload which matches the UI Router $state.reload function. 6 | * 7 | * http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state 8 | * 9 | * @param {String} state - (optional) Root of the resolves to be re-resolved 10 | * @return {Object} Action object 11 | */ 12 | export default function stateReload(state) { 13 | return { 14 | type: STATE_RELOAD, 15 | payload: state, 16 | }; 17 | } 18 | -------------------------------------------------------------------------------- /src/state-transition-to.js: -------------------------------------------------------------------------------- 1 | import { STATE_TRANSITION_TO } from './action-types'; 2 | 3 | /** 4 | * This action create will trigger a $state.transitionTo in the UiRouter Middleware. 5 | * Accepts a payload which matches the UI Router $state.transitionTo function. 6 | * 7 | * http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state 8 | * 9 | * @param {String} to - State name 10 | * @param {Object} params - (optional) Parameters to send with state 11 | * @param {Object} options - (optional) Options object 12 | * @return {Object} Action object 13 | */ 14 | export default function stateTransitionTo(to, params, options) { 15 | return { 16 | type: STATE_TRANSITION_TO, 17 | payload: { 18 | to, 19 | params, 20 | options, 21 | }, 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | output: { 3 | library: 'ngReduxUiRouter', 4 | libraryTarget: 'umd' 5 | }, 6 | externals: ['angular', '@uirouter/angularjs'] 7 | }; 8 | --------------------------------------------------------------------------------