├── .gitignore ├── src ├── regex.js ├── components │ ├── MobxRouter.js │ └── Link.js ├── utils.js ├── start-router.js ├── router-store.js └── route.js ├── .babelrc ├── tests ├── mocks │ ├── mocks.js │ └── routes.js ├── route.spec.js ├── hooks.spec.js ├── utils.spec.js └── query-params.spec.js ├── index.js ├── wallaby.js ├── package.json ├── README.md ├── dist ├── mobx-router.es2015.js ├── mobx-router.js └── mobx-router.umd.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .idea 3 | .DS_STORE 4 | npm-debug.log -------------------------------------------------------------------------------- /src/regex.js: -------------------------------------------------------------------------------- 1 | export const paramRegex = /\/(:([^\/?]*)\??)/g; 2 | export const optionalRegex = /(\/:[^\/]*\?)$/g; -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", {"modules": false}], 4 | "react", 5 | "stage-0" 6 | ], 7 | "plugins": ["transform-decorators-legacy"] 8 | } -------------------------------------------------------------------------------- /src/components/MobxRouter.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {observer} from 'mobx-react'; 3 | 4 | const MobxRouter = ({store:{router}}) =>
{router.currentView && router.currentView.component}
; 5 | export default observer(['store'], MobxRouter); -------------------------------------------------------------------------------- /tests/mocks/mocks.js: -------------------------------------------------------------------------------- 1 | const mocks = { 2 | enteringHome: jest.fn(), 3 | exitingHome: jest.fn(), 4 | enteringProfile: jest.fn(), 5 | exitingProfile: jest.fn(), 6 | changingParamsProfile: jest.fn(), 7 | changingParamsHome: jest.fn() 8 | }; 9 | 10 | export default mocks; 11 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import Route from './src/route'; 2 | import RouterStore from './src/router-store'; 3 | import startRouter from './src/start-router'; 4 | 5 | //components 6 | import MobxRouter from './src/components/MobxRouter'; 7 | import Link from './src/components/Link'; 8 | 9 | export {Route, MobxRouter, Link, RouterStore, startRouter}; -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- 1 | export const isObject = obj => obj && typeof obj === 'object' && !(Array.isArray(obj)); 2 | export const getObjectKeys = obj => isObject(obj) ? Object.keys(obj) : []; 3 | 4 | export const viewsForDirector = (views, store) => getObjectKeys(views).reduce((obj, viewKey) => { 5 | const view = views[viewKey]; 6 | obj[view.path] = (...paramsArr) => view.goTo(store, paramsArr); 7 | return obj; 8 | }, {}); 9 | 10 | export const getRegexMatches = (string, regexExpression, callback) => { 11 | let match; 12 | while (( match = regexExpression.exec(string) ) !== null) { 13 | callback(match); 14 | } 15 | }; -------------------------------------------------------------------------------- /tests/route.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import Route from '../src/route'; 3 | 4 | test('Route', () => { 5 | 6 | const route = new Route({ 7 | path: '/profile/:username/:tab', 8 | component:
, 9 | }); 10 | 11 | const replacedUrlParams = route.replaceUrlParams({username: 'kitze', tab: 'profile'}); 12 | const paramsObject = route.getParamsObject(['kitze', 'profile']); 13 | 14 | expect(route.path).toBe('/profile/:username/:tab'); 15 | expect(paramsObject).toEqual({ 16 | tab: 'profile', 17 | username: 'kitze' 18 | }); 19 | expect(replacedUrlParams).toBe('/profile/kitze/profile'); 20 | expect(route.rootPath).toBe('/profile'); 21 | }); -------------------------------------------------------------------------------- /wallaby.js: -------------------------------------------------------------------------------- 1 | module.exports = function (wallaby) { 2 | return { 3 | files: [ 4 | 'tests/mocks/*.js', 5 | 'src/**/*.js' 6 | ], 7 | tests: [ 8 | 'tests/**/*spec.js' 9 | ], 10 | env: { 11 | type: 'node', 12 | runner: 'node' 13 | }, 14 | testFramework: 'jest', 15 | bootstrap: function (wallaby) { 16 | wallaby.testFramework.configure({ 17 | "scriptPreprocessor": "/node_modules/babel-jest", 18 | "moduleDirectories": [ 19 | "node_modules", 20 | "src" 21 | ] 22 | }); 23 | }, 24 | compilers: { 25 | '**/*.js': wallaby.compilers.babel() 26 | } 27 | }; 28 | }; -------------------------------------------------------------------------------- /src/start-router.js: -------------------------------------------------------------------------------- 1 | import {Router} from 'director/build/director'; 2 | import {autorun} from 'mobx'; 3 | import {viewsForDirector} from './utils'; 4 | 5 | const createDirectorRouter = (views, store) => { 6 | new Router({ 7 | ...viewsForDirector(views, store) 8 | }).configure({ 9 | html5history: true 10 | }).init(); 11 | }; 12 | 13 | const startRouter = (views, store, withoutWindow) => { 14 | //create director configuration 15 | createDirectorRouter(views, store); 16 | 17 | if (withoutWindow) { 18 | return 19 | } 20 | //autorun and watch for path changes 21 | autorun(() => { 22 | const {currentPath} = store.router; 23 | if (currentPath !== window.location.pathname) { 24 | window.history.pushState(null, null, currentPath) 25 | } 26 | }); 27 | }; 28 | 29 | export default startRouter; 30 | -------------------------------------------------------------------------------- /tests/mocks/routes.js: -------------------------------------------------------------------------------- 1 | import Route from '../../src/route'; 2 | import mocks from './mocks'; 3 | import React from 'react'; 4 | 5 | const routes = { 6 | home: new Route({ 7 | path: '/', 8 | component:
, 9 | onEnter: () => { 10 | mocks.enteringHome(); 11 | }, 12 | onExit: () => { 13 | mocks.exitingHome(); 14 | }, 15 | onParamsChange: () => { 16 | mocks.changingParamsHome(); 17 | } 18 | }), 19 | profile: new Route({ 20 | path: '/profile/:username/:tab', 21 | component:
, 22 | onEnter: (route, params) => { 23 | mocks.enteringProfile(params); 24 | }, 25 | onExit: (route, params) => { 26 | mocks.exitingProfile(params); 27 | }, 28 | onParamsChange: (route, params, store, queryParams) => { 29 | mocks.changingParamsProfile(params, queryParams); 30 | } 31 | }) 32 | }; 33 | 34 | export default routes; -------------------------------------------------------------------------------- /src/components/Link.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {observer} from 'mobx-react'; 3 | 4 | const Link = ({view, className, params = {}, queryParams = {}, store = {}, refresh = false, style = {}, children, title = children, router = store.router}) => { 5 | if (!router) { 6 | return console.error('The router prop must be defined for a Link component to work!') 7 | } 8 | return ( { 12 | const middleClick = e.which == 2; 13 | const cmdOrCtrl = (e.metaKey || e.ctrlKey); 14 | const openinNewTab = middleClick || cmdOrCtrl; 15 | const shouldNavigateManually = refresh || openinNewTab || cmdOrCtrl; 16 | 17 | if (!shouldNavigateManually) { 18 | e.preventDefault(); 19 | router.goTo(view, params, store, queryParams); 20 | } 21 | }} 22 | href={view.replaceUrlParams(params, queryParams)}> 23 | {title} 24 | 25 | ) 26 | } 27 | 28 | export default observer(Link); -------------------------------------------------------------------------------- /tests/hooks.spec.js: -------------------------------------------------------------------------------- 1 | import RouterStore from '../src/router-store'; 2 | import routes from './mocks/routes'; 3 | import mocks from './mocks/mocks'; 4 | 5 | test('Router Scenario', () => { 6 | 7 | const router = new RouterStore(); 8 | router.currentView = routes.home; 9 | 10 | expect(router.currentPath).toBe('/'); 11 | 12 | router.goTo(routes.profile, {username: 'kitze'}); 13 | 14 | expect(mocks.exitingHome).toBeCalled(); 15 | expect(router.currentPath).toBe('/profile/kitze'); 16 | expect(mocks.changingParamsProfile).toHaveBeenCalledTimes(0); 17 | expect(mocks.enteringProfile).lastCalledWith({username: 'kitze'}); 18 | 19 | router.goTo(routes.profile, {username: 'kristijan'}); 20 | 21 | expect(router.currentPath).toBe('/profile/kristijan'); 22 | expect(mocks.enteringProfile).toHaveBeenCalledTimes(1); 23 | expect(mocks.changingParamsProfile).lastCalledWith({username: 'kristijan'}, undefined); 24 | expect(mocks.changingParamsProfile).toHaveBeenCalledTimes(1); 25 | 26 | router.goTo(routes.profile, {username: 'kristijan', tab: 'about'}); 27 | 28 | expect(router.currentPath).toBe('/profile/kristijan/about'); 29 | expect(mocks.enteringProfile).toHaveBeenCalledTimes(1); 30 | expect(mocks.changingParamsProfile).lastCalledWith({tab: 'about', username: 'kristijan'}, undefined); 31 | expect(mocks.changingParamsProfile).toHaveBeenCalledTimes(2); 32 | 33 | router.goTo(routes.home); 34 | 35 | expect(router.currentPath).toBe('/'); 36 | expect(mocks.exitingProfile).toBeCalled(); 37 | expect(mocks.exitingProfile).lastCalledWith({tab: 'about', username: 'kristijan'}); 38 | expect(mocks.enteringHome).toBeCalled(); 39 | expect(mocks.enteringHome).lastCalledWith(); 40 | expect(mocks.changingParamsHome).not.toBeCalled(); 41 | expect(mocks.changingParamsProfile).toHaveBeenCalledTimes(2); 42 | 43 | }); -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mobx-router", 3 | "version": "0.0.8", 4 | "description": "MobX router", 5 | "main": "dist/mobx-router.js", 6 | "jsnext:main":"dist/mobx-router.es2015.js", 7 | "scripts": { 8 | "test": "jest", 9 | "build": "./node_modules/rollup-babel-lib-bundler/bin/index.js index.js" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "git@github.com:Coding/mobx-router.git" 14 | }, 15 | "keywords": [ 16 | "mobx", 17 | "router", 18 | "react" 19 | ], 20 | "license": "ISC", 21 | "bugs": { 22 | "url": "https://github.com/kitze/mobx-router/issues" 23 | }, 24 | "dependencies": { 25 | "babel-runtime": "^6.25.0", 26 | "director": "1.2.8", 27 | "mobx": "2.5.1", 28 | "mobx-react": "3.5.6", 29 | "query-string": "^4.2.3", 30 | "react": "15.3.2" 31 | }, 32 | "peerDependencies": { 33 | "mobx": "^2.5.1", 34 | "mobx-react": "^3.5.6", 35 | "react": "15.x" 36 | }, 37 | "devDependencies": { 38 | "babel-jest": "^15.0.0", 39 | "babel-plugin-add-module-exports": "^0.2.1", 40 | "babel-plugin-transform-decorators-legacy": "1.3.4", 41 | "babel-plugin-transform-runtime": "^6.15.0", 42 | "babel-polyfill": "^6.13.0", 43 | "babel-preset-es2015": "^6.14.0", 44 | "babel-preset-es2015-rollup": "^1.2.0", 45 | "babel-preset-react": "6.11.1", 46 | "babel-preset-stage-0": "^6.5.0", 47 | "jest-cli": "^15.1.1", 48 | "rollup-babel-lib-bundler": "3.1.0" 49 | }, 50 | "rollupBabelLibBundler": { 51 | "moduleName": "mobxRouter", 52 | "dest": "dist", 53 | "babel": { 54 | "presets": [ 55 | "es2015-rollup", 56 | "react", 57 | "stage-0" 58 | ], 59 | "plugins": [ 60 | "transform-decorators-legacy" 61 | ] 62 | } 63 | }, 64 | "jest": { 65 | "scriptPreprocessor": "/node_modules/babel-jest", 66 | "moduleDirectories": [ 67 | "node_modules", 68 | "src" 69 | ] 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/router-store.js: -------------------------------------------------------------------------------- 1 | import {observable, computed, action, toJS} from 'mobx'; 2 | 3 | class RouterStore { 4 | 5 | @observable params = {}; 6 | @observable queryParams = {}; 7 | @observable currentView; 8 | 9 | constructor() { 10 | this.goTo = this.goTo.bind(this); 11 | } 12 | 13 | @action goTo(view, paramsObj, store, queryParamsObj) { 14 | 15 | const nextPath = view.replaceUrlParams(paramsObj, queryParamsObj); 16 | const pathChanged = nextPath !== this.currentPath; 17 | 18 | if (!pathChanged) { 19 | return; 20 | } 21 | 22 | const rootViewChanged = !this.currentView || (this.currentView.rootPath !== view.rootPath); 23 | const currentParams = toJS(this.params); 24 | const currentQueryParams = toJS(this.queryParams); 25 | 26 | const beforeExitResult = (rootViewChanged && this.currentView && this.currentView.beforeExit) ? this.currentView.beforeExit(this.currentView, currentParams, store, currentQueryParams) : true; 27 | if (beforeExitResult === false) { 28 | return; 29 | } 30 | 31 | const beforeEnterResult = (rootViewChanged && view.beforeEnter) ? view.beforeEnter(view, currentParams, store, currentQueryParams) : true 32 | if (beforeEnterResult === false) { 33 | return; 34 | } 35 | 36 | rootViewChanged && this.currentView && this.currentView.onExit && this.currentView.onExit(this.currentView, currentParams, store, currentQueryParams); 37 | 38 | this.currentView = view; 39 | this.params = toJS(paramsObj); 40 | this.queryParams = toJS(queryParamsObj); 41 | const nextParams = toJS(paramsObj); 42 | const nextQueryParams = toJS(queryParamsObj); 43 | 44 | rootViewChanged && view.onEnter && view.onEnter(view, nextParams, store, nextQueryParams); 45 | !rootViewChanged && this.currentView && this.currentView.onParamsChange && this.currentView.onParamsChange(this.currentView, nextParams, store, nextQueryParams); 46 | } 47 | 48 | @computed get currentPath() { 49 | return this.currentView ? this.currentView.replaceUrlParams(this.params, this.queryParams) : ''; 50 | } 51 | } 52 | 53 | export default RouterStore; -------------------------------------------------------------------------------- /tests/utils.spec.js: -------------------------------------------------------------------------------- 1 | import {viewsForDirector, isObject, getObjectKeys, getRegexMatches} from '../src/utils'; 2 | import {paramRegex} from '../src/regex'; 3 | 4 | import React from 'react'; 5 | import Route from '../src/route'; 6 | 7 | test('viewsForDirector', () => { 8 | const views = { 9 | home: new Route({ 10 | path: '/', 11 | component:
12 | }), 13 | userProfile: new Route({ 14 | path: '/profile/:username/:tab', 15 | component:
, 16 | }), 17 | gallery: new Route({ 18 | path: '/gallery', 19 | component:
20 | }), 21 | }; 22 | 23 | const result = viewsForDirector(views, {}); 24 | const keys = Object.keys(result); 25 | const values = keys.map(k => result[k]); 26 | 27 | expect(keys).toEqual(['/', '/profile/:username/:tab', '/gallery']); 28 | values.forEach(value => { 29 | expect(typeof value).toEqual('function'); 30 | }); 31 | 32 | }); 33 | 34 | test('isObject', () => { 35 | expect(isObject({})).toBe(true); 36 | expect(isObject([])).toBe(false); 37 | expect(isObject(1)).toBe(false); 38 | expect(isObject('string')).toBe(false); 39 | }); 40 | 41 | test('getObjectKeys', () => { 42 | expect(getObjectKeys({a: 1, b: 2})).toEqual(['a', 'b']); 43 | expect(getObjectKeys(null)).toEqual([]); 44 | expect(getObjectKeys(undefined)).toEqual([]); 45 | expect(getObjectKeys([])).toEqual([]); 46 | expect(getObjectKeys('str')).toEqual([]); 47 | expect(getObjectKeys(123)).toEqual([]); 48 | }); 49 | 50 | test('getRegexMatches', () => { 51 | const paramsArray = []; 52 | const path = '/profile/user/:username/:tab?'; 53 | 54 | getRegexMatches(path, paramRegex, match => { 55 | paramsArray.push(match[2]); 56 | }); 57 | 58 | const paramsArray2 = []; 59 | const path2 = '/profile'; 60 | 61 | getRegexMatches(path2, paramRegex, match => { 62 | paramsArray2.push(match[2]); 63 | }); 64 | 65 | const paramsArray3 = []; 66 | const path3 = '/profile/:username'; 67 | 68 | getRegexMatches(path3, paramRegex, ([,,third]) => { 69 | paramsArray3.push(third); 70 | }); 71 | 72 | const paramsArray4 = []; 73 | 74 | getRegexMatches(path, paramRegex, ([,second]) => { 75 | paramsArray4.push(second); 76 | }); 77 | 78 | expect(paramsArray).toEqual(['username', 'tab']); 79 | expect(paramsArray2).toEqual([]); 80 | expect(paramsArray3).toEqual(['username']); 81 | expect(paramsArray4).toEqual([':username', ':tab?']); 82 | }); -------------------------------------------------------------------------------- /tests/query-params.spec.js: -------------------------------------------------------------------------------- 1 | import RouterStore from '../src/router-store'; 2 | import routes from './mocks/routes'; 3 | import mocks from './mocks/mocks'; 4 | 5 | test('Router Scenario', () => { 6 | 7 | const router = new RouterStore(); 8 | router.currentView = routes.home; 9 | 10 | expect(router.currentPath).toBe('/'); 11 | 12 | router.goTo(routes.profile, {username: 'kitze'}, null, {id: 123}); 13 | 14 | expect(mocks.exitingHome).toBeCalled(); 15 | expect(router.currentPath).toBe('/profile/kitze?id=123'); 16 | expect(mocks.changingParamsProfile).toHaveBeenCalledTimes(0); 17 | expect(mocks.enteringProfile).lastCalledWith({username: 'kitze'}); 18 | 19 | router.goTo(routes.profile, {username: 'kristijan'}); 20 | 21 | expect(router.currentPath).toBe('/profile/kristijan'); 22 | expect(mocks.enteringProfile).toHaveBeenCalledTimes(1); 23 | expect(mocks.changingParamsProfile).lastCalledWith({username: 'kristijan'}, undefined); 24 | expect(mocks.changingParamsProfile).toHaveBeenCalledTimes(1); 25 | 26 | router.goTo(routes.profile, {username: 'kristijan', tab: 'about'}); 27 | 28 | expect(router.currentPath).toBe('/profile/kristijan/about'); 29 | expect(mocks.enteringProfile).toHaveBeenCalledTimes(1); 30 | expect(mocks.changingParamsProfile).lastCalledWith({tab: 'about', username: 'kristijan'}, undefined); 31 | expect(mocks.changingParamsProfile).toHaveBeenCalledTimes(2); 32 | 33 | router.goTo(routes.home); 34 | 35 | expect(router.currentPath).toBe('/'); 36 | expect(mocks.exitingProfile).toBeCalled(); 37 | expect(mocks.exitingProfile).lastCalledWith({tab: 'about', username: 'kristijan'}); 38 | expect(mocks.enteringHome).toBeCalled(); 39 | expect(mocks.enteringHome).lastCalledWith(); 40 | expect(mocks.changingParamsHome).not.toBeCalled(); 41 | expect(mocks.changingParamsProfile).toHaveBeenCalledTimes(2); 42 | 43 | router.goTo(routes.profile, {username: 'kristijan', tab: 'about'}); 44 | 45 | expect(router.currentPath).toBe('/profile/kristijan/about'); 46 | expect(mocks.changingParamsProfile).lastCalledWith({tab: 'about', username: 'kristijan'}, undefined); 47 | expect(mocks.changingParamsProfile).toHaveBeenCalledTimes(2); 48 | 49 | router.goTo(routes.profile, {username: 'kristijan', tab: 'about'}); 50 | 51 | expect(router.currentPath).toBe('/profile/kristijan/about'); 52 | expect(mocks.changingParamsProfile).lastCalledWith({tab: 'about', username: 'kristijan'}, undefined); 53 | expect(mocks.changingParamsProfile).toHaveBeenCalledTimes(2); 54 | 55 | router.goTo(routes.profile, {username: 'kristijan', tab: 'about'}, null, {id: 123}); 56 | 57 | expect(router.currentPath).toBe('/profile/kristijan/about?id=123'); 58 | expect(mocks.changingParamsProfile).lastCalledWith({tab: 'about', username: 'kristijan'}, {id: 123}); 59 | expect(mocks.changingParamsProfile).toHaveBeenCalledTimes(3); 60 | 61 | router.goTo(routes.profile, {username: 'kristijan', tab: 'about'}); 62 | 63 | expect(router.currentPath).toBe('/profile/kristijan/about'); 64 | expect(mocks.changingParamsProfile).lastCalledWith({tab: 'about', username: 'kristijan'}, undefined); 65 | expect(mocks.changingParamsProfile).toHaveBeenCalledTimes(4); 66 | 67 | }); -------------------------------------------------------------------------------- /src/route.js: -------------------------------------------------------------------------------- 1 | import {toJS} from 'mobx'; 2 | import {getObjectKeys} from './utils'; 3 | import {paramRegex, optionalRegex} from './regex'; 4 | import {getRegexMatches} from './utils'; 5 | import queryString from 'query-string'; 6 | 7 | class Route { 8 | 9 | //props 10 | component; 11 | path; 12 | rootPath; 13 | 14 | //lifecycle methods 15 | onEnter; 16 | onExit; 17 | beforeEnter; 18 | beforeExit; 19 | 20 | constructor(props) { 21 | getObjectKeys(props).forEach((propKey) => this[propKey] = props[propKey]); 22 | this.originalPath = this.path; 23 | 24 | //if there are optional parameters, replace the path with a regex expression 25 | this.path = this.path.indexOf('?') === -1 ? this.path : this.path.replace(optionalRegex, "/?([^/]*)?$"); 26 | this.rootPath = this.getRootPath(); 27 | 28 | //bind 29 | this.getRootPath = this.getRootPath.bind(this); 30 | this.replaceUrlParams = this.replaceUrlParams.bind(this); 31 | this.getParamsObject = this.getParamsObject.bind(this); 32 | this.goTo = this.goTo.bind(this); 33 | 34 | this.withoutWindow = props.withoutWindow 35 | } 36 | 37 | /* 38 | Sets the root path for the current path, so it's easier to determine if the route entered/exited or just some params changed 39 | Example: for '/' the root path is '/', for '/profile/:username/:tab' the root path is '/profile' 40 | */ 41 | getRootPath() { 42 | return `/${this.path.split('/')[1]}` 43 | }; 44 | 45 | /* 46 | replaces url params placeholders with params from an object 47 | Example: if url is /book/:id/page/:pageId and object is {id:100, pageId:200} it will return /book/100/page/200 48 | */ 49 | replaceUrlParams(params, queryParams = {}) { 50 | params = toJS(params); 51 | queryParams = toJS(queryParams); 52 | 53 | const queryParamsString = queryString.stringify(queryParams).toString(); 54 | const hasQueryParams = queryParamsString !== ''; 55 | let newPath = this.originalPath; 56 | 57 | getRegexMatches(this.originalPath, paramRegex, ([fullMatch, paramKey, paramKeyWithoutColon]) => { 58 | const value = params[paramKeyWithoutColon]; 59 | newPath = value ? newPath.replace(paramKey, value) : newPath.replace(`/${paramKey}`, ''); 60 | }); 61 | 62 | return `${newPath}${hasQueryParams ? `?${queryParamsString}` : ''}`.toString(); 63 | } 64 | 65 | /* 66 | converts an array of params [123, 100] to an object 67 | Example: if the current this.path is /book/:id/page/:pageId it will return {id:123, pageId:100} 68 | */ 69 | getParamsObject(paramsArray) { 70 | 71 | const params = []; 72 | getRegexMatches(this.originalPath, paramRegex, ([fullMatch, paramKey, paramKeyWithoutColon]) => { 73 | params.push(paramKeyWithoutColon); 74 | }); 75 | 76 | const result = paramsArray.reduce((obj, paramValue, index) => { 77 | obj[params[index]] = paramValue; 78 | return obj; 79 | }, {}); 80 | 81 | return result; 82 | } 83 | 84 | goTo(store, paramsArr) { 85 | const paramsObject = this.getParamsObject(paramsArr); 86 | const queryParamsObject = !this.withoutWindow ? queryString.parse(window.location.search) : {}; 87 | store.router.goTo(this, paramsObject, store, queryParamsObject); 88 | } 89 | } 90 | 91 | export default Route; -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 〽️ MobX Router 2 | v0.0.6 🎉 - by [@thekitze](http://kitze.io) 3 | 4 | ### Example usage 5 | * [Demo project](http://mobx-router-example.netlify.com/) 6 | * [Demo project repo](https://github.com/kitze/mobx-router-example) 7 | 8 | ## Inspiration 9 | [📖 How to decouple state and UI - a.k.a. you don’t need componentWillMount](https://medium.com/@mweststrate/how-to-decouple-state-and-ui-a-k-a-you-dont-need-componentwillmount-cc90b787aa37#.k9tvf5nga) 10 | 11 | ## Features 12 | - Decoupled state from UI 13 | - Central route configuration in one file 14 | - URL changes are triggering changes directly in the store, and vice-versa 15 | - No need to use component lifecycle methods like ```componentWillMount``` to fetch data or trigger a side effect in the store 16 | - Supported hooks for the routes are: ```beforeEnter```, ```onEnter```, ```beforeExit```, ```onExit```. All of the hooks receive ```route```, ```params```, ```store```, and ```queryParams``` as parameters. If the ```beforeExit``` or ```beforeEnter``` methods return ```false``` the navigation action will be prevented. 17 | - The current URL params and query params are accessible directly in the store ```store.router.params``` / ```store.router.queryParams``` so basically they're available everywhere without any additional wrapping or HOC. 18 | - Navigating to another view happens by calling the ```goTo``` method on the router store, and the changes in the url are reflected automatically. So for example you can call ```router.goTo(views.book, {id:5, page:3})``` and after the change is made in the store, the URL change will follow. You never directly manipulate the URL or the history object. 19 | - `````` component which also populates the href attribute and works with middle click or ```cmd/ctrl``` + click 20 | 21 | ### Implementation 22 | ```js 23 | import React from 'react'; 24 | import ReactDOM from 'react-dom'; 25 | import {Provider} from 'mobx-react'; 26 | 27 | import {MobxRouter, RouterStore, startRouter} from 'mobx-router'; 28 | import views from 'config/views'; 29 | 30 | //example mobx store 31 | const store = { 32 | app: { 33 | title: 'MobX Router Example App', 34 | user: null 35 | }, 36 | //here's how we can plug the routerStore into our store 37 | router: new RouterStore() 38 | }; 39 | 40 | startRouter(views, store); 41 | 42 | ReactDOM.render( 43 | 44 | 45 | , document.getElementById('root') 46 | ) 47 | ``` 48 | 49 | ### Example config 50 | 51 | /config/views.js 52 | 53 | ```js 54 | import React from 'react'; 55 | 56 | //models 57 | import {Route} from 'mobx-router'; 58 | 59 | //components 60 | import Home from 'components/Home'; 61 | import Document from 'components/Document'; 62 | import Gallery from 'components/Gallery'; 63 | import Book from 'components/Book'; 64 | import UserProfile from 'components/UserProfile'; 65 | 66 | const views = { 67 | home: new Route({ 68 | path: '/', 69 | component: 70 | }), 71 | userProfile: new Route({ 72 | path: '/profile/:username/:tab', 73 | component: , 74 | onEnter: () => { 75 | console.log('entering user profile!'); 76 | }, 77 | beforeExit: () => { 78 | console.log('exiting user profile!'); 79 | }, 80 | onParamsChange: (route, params, store) => { 81 | console.log('params changed to', params); 82 | } 83 | }), 84 | gallery: new Route({ 85 | path: '/gallery', 86 | component: , 87 | onEnter: (route, params, store, queryParams) => { 88 | store.gallery.fetchImages(); 89 | console.log('current query params are -> ', queryParams); 90 | }, 91 | beforeExit: () => { 92 | const result = confirm('Are you sure you want to leave the gallery?'); 93 | return result; 94 | } 95 | }), 96 | document: new Route({ 97 | path: '/document/:id', 98 | component: , 99 | beforeEnter: (route, params, store) => { 100 | const userIsLoggedIn = store.app.user; 101 | if (!userIsLoggedIn) { 102 | alert('Only logged in users can enter this route!'); 103 | return false; 104 | } 105 | }, 106 | onEnter: (route, params) => { 107 | console.log(`entering document with params`, params); 108 | } 109 | }), 110 | book: new Route({ 111 | path: '/book/:id/page/:page', 112 | component: , 113 | onEnter: (route, params, store) => { 114 | console.log(`entering book with params`, params); 115 | store.app.setTitle(route.title); 116 | } 117 | }) 118 | }; 119 | export default views; 120 | ``` 121 | 122 | ### ToDo 123 | - [ ] Add async support for the ```beforeEnter``` and ```beforeExit``` hooks 124 | - [ ] Add array support for the hooks so they can execute multiple methods. A sample usage of this would be having one ```isUserAuthenticated``` method that can be just plugged in as one of the callbacks triggered from the hook. 125 | -------------------------------------------------------------------------------- /dist/mobx-router.es2015.js: -------------------------------------------------------------------------------- 1 | import { action, autorun, computed, observable, toJS } from 'mobx'; 2 | import queryString from 'query-string'; 3 | import { Router } from 'director/build/director'; 4 | import React from 'react'; 5 | import { observer } from 'mobx-react'; 6 | 7 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { 8 | return typeof obj; 9 | } : function (obj) { 10 | return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 11 | }; 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | var classCallCheck = function (instance, Constructor) { 24 | if (!(instance instanceof Constructor)) { 25 | throw new TypeError("Cannot call a class as a function"); 26 | } 27 | }; 28 | 29 | var createClass = function () { 30 | function defineProperties(target, props) { 31 | for (var i = 0; i < props.length; i++) { 32 | var descriptor = props[i]; 33 | descriptor.enumerable = descriptor.enumerable || false; 34 | descriptor.configurable = true; 35 | if ("value" in descriptor) descriptor.writable = true; 36 | Object.defineProperty(target, descriptor.key, descriptor); 37 | } 38 | } 39 | 40 | return function (Constructor, protoProps, staticProps) { 41 | if (protoProps) defineProperties(Constructor.prototype, protoProps); 42 | if (staticProps) defineProperties(Constructor, staticProps); 43 | return Constructor; 44 | }; 45 | }(); 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | var _extends = Object.assign || function (target) { 54 | for (var i = 1; i < arguments.length; i++) { 55 | var source = arguments[i]; 56 | 57 | for (var key in source) { 58 | if (Object.prototype.hasOwnProperty.call(source, key)) { 59 | target[key] = source[key]; 60 | } 61 | } 62 | } 63 | 64 | return target; 65 | }; 66 | 67 | var get$1 = function get$1(object, property, receiver) { 68 | if (object === null) object = Function.prototype; 69 | var desc = Object.getOwnPropertyDescriptor(object, property); 70 | 71 | if (desc === undefined) { 72 | var parent = Object.getPrototypeOf(object); 73 | 74 | if (parent === null) { 75 | return undefined; 76 | } else { 77 | return get$1(parent, property, receiver); 78 | } 79 | } else if ("value" in desc) { 80 | return desc.value; 81 | } else { 82 | var getter = desc.get; 83 | 84 | if (getter === undefined) { 85 | return undefined; 86 | } 87 | 88 | return getter.call(receiver); 89 | } 90 | }; 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | var set = function set(object, property, value, receiver) { 109 | var desc = Object.getOwnPropertyDescriptor(object, property); 110 | 111 | if (desc === undefined) { 112 | var parent = Object.getPrototypeOf(object); 113 | 114 | if (parent !== null) { 115 | set(parent, property, value, receiver); 116 | } 117 | } else if ("value" in desc && desc.writable) { 118 | desc.value = value; 119 | } else { 120 | var setter = desc.set; 121 | 122 | if (setter !== undefined) { 123 | setter.call(receiver, value); 124 | } 125 | } 126 | 127 | return value; 128 | }; 129 | 130 | var slicedToArray = function () { 131 | function sliceIterator(arr, i) { 132 | var _arr = []; 133 | var _n = true; 134 | var _d = false; 135 | var _e = undefined; 136 | 137 | try { 138 | for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { 139 | _arr.push(_s.value); 140 | 141 | if (i && _arr.length === i) break; 142 | } 143 | } catch (err) { 144 | _d = true; 145 | _e = err; 146 | } finally { 147 | try { 148 | if (!_n && _i["return"]) _i["return"](); 149 | } finally { 150 | if (_d) throw _e; 151 | } 152 | } 153 | 154 | return _arr; 155 | } 156 | 157 | return function (arr, i) { 158 | if (Array.isArray(arr)) { 159 | return arr; 160 | } else if (Symbol.iterator in Object(arr)) { 161 | return sliceIterator(arr, i); 162 | } else { 163 | throw new TypeError("Invalid attempt to destructure non-iterable instance"); 164 | } 165 | }; 166 | }(); 167 | 168 | var isObject = function isObject(obj) { 169 | return obj && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj); 170 | }; 171 | var getObjectKeys = function getObjectKeys(obj) { 172 | return isObject(obj) ? Object.keys(obj) : []; 173 | }; 174 | 175 | var viewsForDirector = function viewsForDirector(views, store) { 176 | return getObjectKeys(views).reduce(function (obj, viewKey) { 177 | var view = views[viewKey]; 178 | obj[view.path] = function () { 179 | for (var _len = arguments.length, paramsArr = Array(_len), _key = 0; _key < _len; _key++) { 180 | paramsArr[_key] = arguments[_key]; 181 | } 182 | 183 | return view.goTo(store, paramsArr); 184 | }; 185 | return obj; 186 | }, {}); 187 | }; 188 | 189 | var getRegexMatches = function getRegexMatches(string, regexExpression, callback) { 190 | var match = void 0; 191 | while ((match = regexExpression.exec(string)) !== null) { 192 | callback(match); 193 | } 194 | }; 195 | 196 | var paramRegex = /\/(:([^\/?]*)\??)/g; 197 | var optionalRegex = /(\/:[^\/]*\?)$/g; 198 | 199 | var Route = function () { 200 | 201 | //lifecycle methods 202 | function Route(props) { 203 | var _this = this; 204 | 205 | classCallCheck(this, Route); 206 | 207 | getObjectKeys(props).forEach(function (propKey) { 208 | return _this[propKey] = props[propKey]; 209 | }); 210 | this.originalPath = this.path; 211 | 212 | //if there are optional parameters, replace the path with a regex expression 213 | this.path = this.path.indexOf('?') === -1 ? this.path : this.path.replace(optionalRegex, "/?([^/]*)?$"); 214 | this.rootPath = this.getRootPath(); 215 | 216 | //bind 217 | this.getRootPath = this.getRootPath.bind(this); 218 | this.replaceUrlParams = this.replaceUrlParams.bind(this); 219 | this.getParamsObject = this.getParamsObject.bind(this); 220 | this.goTo = this.goTo.bind(this); 221 | 222 | this.withoutWindow = props.withoutWindow; 223 | } 224 | 225 | /* 226 | Sets the root path for the current path, so it's easier to determine if the route entered/exited or just some params changed 227 | Example: for '/' the root path is '/', for '/profile/:username/:tab' the root path is '/profile' 228 | */ 229 | 230 | 231 | //props 232 | 233 | 234 | createClass(Route, [{ 235 | key: 'getRootPath', 236 | value: function getRootPath() { 237 | return '/' + this.path.split('/')[1]; 238 | } 239 | }, { 240 | key: 'replaceUrlParams', 241 | 242 | 243 | /* 244 | replaces url params placeholders with params from an object 245 | Example: if url is /book/:id/page/:pageId and object is {id:100, pageId:200} it will return /book/100/page/200 246 | */ 247 | value: function replaceUrlParams(params) { 248 | var queryParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 249 | 250 | params = toJS(params); 251 | queryParams = toJS(queryParams); 252 | 253 | var queryParamsString = queryString.stringify(queryParams).toString(); 254 | var hasQueryParams = queryParamsString !== ''; 255 | var newPath = this.originalPath; 256 | 257 | getRegexMatches(this.originalPath, paramRegex, function (_ref) { 258 | var _ref2 = slicedToArray(_ref, 3), 259 | fullMatch = _ref2[0], 260 | paramKey = _ref2[1], 261 | paramKeyWithoutColon = _ref2[2]; 262 | 263 | var value = params[paramKeyWithoutColon]; 264 | newPath = value ? newPath.replace(paramKey, value) : newPath.replace('/' + paramKey, ''); 265 | }); 266 | 267 | return ('' + newPath + (hasQueryParams ? '?' + queryParamsString : '')).toString(); 268 | } 269 | 270 | /* 271 | converts an array of params [123, 100] to an object 272 | Example: if the current this.path is /book/:id/page/:pageId it will return {id:123, pageId:100} 273 | */ 274 | 275 | }, { 276 | key: 'getParamsObject', 277 | value: function getParamsObject(paramsArray) { 278 | 279 | var params = []; 280 | getRegexMatches(this.originalPath, paramRegex, function (_ref3) { 281 | var _ref4 = slicedToArray(_ref3, 3), 282 | fullMatch = _ref4[0], 283 | paramKey = _ref4[1], 284 | paramKeyWithoutColon = _ref4[2]; 285 | 286 | params.push(paramKeyWithoutColon); 287 | }); 288 | 289 | var result = paramsArray.reduce(function (obj, paramValue, index) { 290 | obj[params[index]] = paramValue; 291 | return obj; 292 | }, {}); 293 | 294 | return result; 295 | } 296 | }, { 297 | key: 'goTo', 298 | value: function goTo(store, paramsArr) { 299 | var paramsObject = this.getParamsObject(paramsArr); 300 | var queryParamsObject = !this.withoutWindow ? queryString.parse(window.location.search) : {}; 301 | store.router.goTo(this, paramsObject, store, queryParamsObject); 302 | } 303 | }]); 304 | return Route; 305 | }(); 306 | 307 | var _class; 308 | var _descriptor; 309 | var _descriptor2; 310 | var _descriptor3; 311 | 312 | function _initDefineProp(target, property, descriptor, context) { 313 | if (!descriptor) return; 314 | Object.defineProperty(target, property, { 315 | enumerable: descriptor.enumerable, 316 | configurable: descriptor.configurable, 317 | writable: descriptor.writable, 318 | value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 319 | }); 320 | } 321 | 322 | function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { 323 | var desc = {}; 324 | Object['ke' + 'ys'](descriptor).forEach(function (key) { 325 | desc[key] = descriptor[key]; 326 | }); 327 | desc.enumerable = !!desc.enumerable; 328 | desc.configurable = !!desc.configurable; 329 | 330 | if ('value' in desc || desc.initializer) { 331 | desc.writable = true; 332 | } 333 | 334 | desc = decorators.slice().reverse().reduce(function (desc, decorator) { 335 | return decorator(target, property, desc) || desc; 336 | }, desc); 337 | 338 | if (context && desc.initializer !== void 0) { 339 | desc.value = desc.initializer ? desc.initializer.call(context) : void 0; 340 | desc.initializer = undefined; 341 | } 342 | 343 | if (desc.initializer === void 0) { 344 | Object['define' + 'Property'](target, property, desc); 345 | desc = null; 346 | } 347 | 348 | return desc; 349 | } 350 | 351 | var RouterStore = (_class = function () { 352 | function RouterStore() { 353 | classCallCheck(this, RouterStore); 354 | 355 | _initDefineProp(this, 'params', _descriptor, this); 356 | 357 | _initDefineProp(this, 'queryParams', _descriptor2, this); 358 | 359 | _initDefineProp(this, 'currentView', _descriptor3, this); 360 | 361 | this.goTo = this.goTo.bind(this); 362 | } 363 | 364 | createClass(RouterStore, [{ 365 | key: 'goTo', 366 | value: function goTo(view, paramsObj, store, queryParamsObj) { 367 | 368 | var nextPath = view.replaceUrlParams(paramsObj, queryParamsObj); 369 | var pathChanged = nextPath !== this.currentPath; 370 | 371 | if (!pathChanged) { 372 | return; 373 | } 374 | 375 | var rootViewChanged = !this.currentView || this.currentView.rootPath !== view.rootPath; 376 | var currentParams = toJS(this.params); 377 | var currentQueryParams = toJS(this.queryParams); 378 | 379 | var beforeExitResult = rootViewChanged && this.currentView && this.currentView.beforeExit ? this.currentView.beforeExit(this.currentView, currentParams, store, currentQueryParams) : true; 380 | if (beforeExitResult === false) { 381 | return; 382 | } 383 | 384 | var beforeEnterResult = rootViewChanged && view.beforeEnter ? view.beforeEnter(view, currentParams, store, currentQueryParams) : true; 385 | if (beforeEnterResult === false) { 386 | return; 387 | } 388 | 389 | rootViewChanged && this.currentView && this.currentView.onExit && this.currentView.onExit(this.currentView, currentParams, store, currentQueryParams); 390 | 391 | this.currentView = view; 392 | this.params = toJS(paramsObj); 393 | this.queryParams = toJS(queryParamsObj); 394 | var nextParams = toJS(paramsObj); 395 | var nextQueryParams = toJS(queryParamsObj); 396 | 397 | rootViewChanged && view.onEnter && view.onEnter(view, nextParams, store, nextQueryParams); 398 | !rootViewChanged && this.currentView && this.currentView.onParamsChange && this.currentView.onParamsChange(this.currentView, nextParams, store, nextQueryParams); 399 | } 400 | }, { 401 | key: 'currentPath', 402 | get: function get() { 403 | return this.currentView ? this.currentView.replaceUrlParams(this.params, this.queryParams) : ''; 404 | } 405 | }]); 406 | return RouterStore; 407 | }(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'params', [observable], { 408 | enumerable: true, 409 | initializer: function initializer() { 410 | return {}; 411 | } 412 | }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'queryParams', [observable], { 413 | enumerable: true, 414 | initializer: function initializer() { 415 | return {}; 416 | } 417 | }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'currentView', [observable], { 418 | enumerable: true, 419 | initializer: null 420 | }), _applyDecoratedDescriptor(_class.prototype, 'goTo', [action], Object.getOwnPropertyDescriptor(_class.prototype, 'goTo'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'currentPath', [computed], Object.getOwnPropertyDescriptor(_class.prototype, 'currentPath'), _class.prototype)), _class); 421 | 422 | var createDirectorRouter = function createDirectorRouter(views, store) { 423 | new Router(_extends({}, viewsForDirector(views, store))).configure({ 424 | html5history: true 425 | }).init(); 426 | }; 427 | 428 | var startRouter = function startRouter(views, store, withoutWindow) { 429 | //create director configuration 430 | createDirectorRouter(views, store); 431 | 432 | if (withoutWindow) { 433 | return; 434 | } 435 | //autorun and watch for path changes 436 | autorun(function () { 437 | var currentPath = store.router.currentPath; 438 | 439 | if (currentPath !== window.location.pathname) { 440 | window.history.pushState(null, null, currentPath); 441 | } 442 | }); 443 | }; 444 | 445 | var MobxRouter = function MobxRouter(_ref) { 446 | var router = _ref.store.router; 447 | return React.createElement( 448 | 'div', 449 | null, 450 | router.currentView && router.currentView.component 451 | ); 452 | }; 453 | var MobxRouter$1 = observer(['store'], MobxRouter); 454 | 455 | var Link = function Link(_ref) { 456 | var view = _ref.view, 457 | className = _ref.className, 458 | _ref$params = _ref.params, 459 | params = _ref$params === undefined ? {} : _ref$params, 460 | _ref$queryParams = _ref.queryParams, 461 | queryParams = _ref$queryParams === undefined ? {} : _ref$queryParams, 462 | _ref$store = _ref.store, 463 | store = _ref$store === undefined ? {} : _ref$store, 464 | _ref$refresh = _ref.refresh, 465 | refresh = _ref$refresh === undefined ? false : _ref$refresh, 466 | _ref$style = _ref.style, 467 | style = _ref$style === undefined ? {} : _ref$style, 468 | children = _ref.children, 469 | _ref$title = _ref.title, 470 | title = _ref$title === undefined ? children : _ref$title, 471 | _ref$router = _ref.router, 472 | router = _ref$router === undefined ? store.router : _ref$router; 473 | 474 | if (!router) { 475 | return console.error('The router prop must be defined for a Link component to work!'); 476 | } 477 | return React.createElement( 478 | 'a', 479 | { 480 | style: style, 481 | className: className, 482 | onClick: function onClick(e) { 483 | var middleClick = e.which == 2; 484 | var cmdOrCtrl = e.metaKey || e.ctrlKey; 485 | var openinNewTab = middleClick || cmdOrCtrl; 486 | var shouldNavigateManually = refresh || openinNewTab || cmdOrCtrl; 487 | 488 | if (!shouldNavigateManually) { 489 | e.preventDefault(); 490 | router.goTo(view, params, store, queryParams); 491 | } 492 | }, 493 | href: view.replaceUrlParams(params, queryParams) }, 494 | title 495 | ); 496 | }; 497 | 498 | var Link$1 = observer(Link); 499 | 500 | //components 501 | 502 | export { Route, MobxRouter$1 as MobxRouter, Link$1 as Link, RouterStore, startRouter }; 503 | -------------------------------------------------------------------------------- /dist/mobx-router.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } 6 | 7 | var mobx = require('mobx'); 8 | var queryString = _interopDefault(require('query-string')); 9 | var director_build_director = require('director/build/director'); 10 | var React = _interopDefault(require('react')); 11 | var mobxReact = require('mobx-react'); 12 | 13 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { 14 | return typeof obj; 15 | } : function (obj) { 16 | return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 17 | }; 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | var classCallCheck = function (instance, Constructor) { 30 | if (!(instance instanceof Constructor)) { 31 | throw new TypeError("Cannot call a class as a function"); 32 | } 33 | }; 34 | 35 | var createClass = function () { 36 | function defineProperties(target, props) { 37 | for (var i = 0; i < props.length; i++) { 38 | var descriptor = props[i]; 39 | descriptor.enumerable = descriptor.enumerable || false; 40 | descriptor.configurable = true; 41 | if ("value" in descriptor) descriptor.writable = true; 42 | Object.defineProperty(target, descriptor.key, descriptor); 43 | } 44 | } 45 | 46 | return function (Constructor, protoProps, staticProps) { 47 | if (protoProps) defineProperties(Constructor.prototype, protoProps); 48 | if (staticProps) defineProperties(Constructor, staticProps); 49 | return Constructor; 50 | }; 51 | }(); 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | var _extends = Object.assign || function (target) { 60 | for (var i = 1; i < arguments.length; i++) { 61 | var source = arguments[i]; 62 | 63 | for (var key in source) { 64 | if (Object.prototype.hasOwnProperty.call(source, key)) { 65 | target[key] = source[key]; 66 | } 67 | } 68 | } 69 | 70 | return target; 71 | }; 72 | 73 | var get$1 = function get$1(object, property, receiver) { 74 | if (object === null) object = Function.prototype; 75 | var desc = Object.getOwnPropertyDescriptor(object, property); 76 | 77 | if (desc === undefined) { 78 | var parent = Object.getPrototypeOf(object); 79 | 80 | if (parent === null) { 81 | return undefined; 82 | } else { 83 | return get$1(parent, property, receiver); 84 | } 85 | } else if ("value" in desc) { 86 | return desc.value; 87 | } else { 88 | var getter = desc.get; 89 | 90 | if (getter === undefined) { 91 | return undefined; 92 | } 93 | 94 | return getter.call(receiver); 95 | } 96 | }; 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | var set = function set(object, property, value, receiver) { 115 | var desc = Object.getOwnPropertyDescriptor(object, property); 116 | 117 | if (desc === undefined) { 118 | var parent = Object.getPrototypeOf(object); 119 | 120 | if (parent !== null) { 121 | set(parent, property, value, receiver); 122 | } 123 | } else if ("value" in desc && desc.writable) { 124 | desc.value = value; 125 | } else { 126 | var setter = desc.set; 127 | 128 | if (setter !== undefined) { 129 | setter.call(receiver, value); 130 | } 131 | } 132 | 133 | return value; 134 | }; 135 | 136 | var slicedToArray = function () { 137 | function sliceIterator(arr, i) { 138 | var _arr = []; 139 | var _n = true; 140 | var _d = false; 141 | var _e = undefined; 142 | 143 | try { 144 | for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { 145 | _arr.push(_s.value); 146 | 147 | if (i && _arr.length === i) break; 148 | } 149 | } catch (err) { 150 | _d = true; 151 | _e = err; 152 | } finally { 153 | try { 154 | if (!_n && _i["return"]) _i["return"](); 155 | } finally { 156 | if (_d) throw _e; 157 | } 158 | } 159 | 160 | return _arr; 161 | } 162 | 163 | return function (arr, i) { 164 | if (Array.isArray(arr)) { 165 | return arr; 166 | } else if (Symbol.iterator in Object(arr)) { 167 | return sliceIterator(arr, i); 168 | } else { 169 | throw new TypeError("Invalid attempt to destructure non-iterable instance"); 170 | } 171 | }; 172 | }(); 173 | 174 | var isObject = function isObject(obj) { 175 | return obj && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj); 176 | }; 177 | var getObjectKeys = function getObjectKeys(obj) { 178 | return isObject(obj) ? Object.keys(obj) : []; 179 | }; 180 | 181 | var viewsForDirector = function viewsForDirector(views, store) { 182 | return getObjectKeys(views).reduce(function (obj, viewKey) { 183 | var view = views[viewKey]; 184 | obj[view.path] = function () { 185 | for (var _len = arguments.length, paramsArr = Array(_len), _key = 0; _key < _len; _key++) { 186 | paramsArr[_key] = arguments[_key]; 187 | } 188 | 189 | return view.goTo(store, paramsArr); 190 | }; 191 | return obj; 192 | }, {}); 193 | }; 194 | 195 | var getRegexMatches = function getRegexMatches(string, regexExpression, callback) { 196 | var match = void 0; 197 | while ((match = regexExpression.exec(string)) !== null) { 198 | callback(match); 199 | } 200 | }; 201 | 202 | var paramRegex = /\/(:([^\/?]*)\??)/g; 203 | var optionalRegex = /(\/:[^\/]*\?)$/g; 204 | 205 | var Route = function () { 206 | 207 | //lifecycle methods 208 | function Route(props) { 209 | var _this = this; 210 | 211 | classCallCheck(this, Route); 212 | 213 | getObjectKeys(props).forEach(function (propKey) { 214 | return _this[propKey] = props[propKey]; 215 | }); 216 | this.originalPath = this.path; 217 | 218 | //if there are optional parameters, replace the path with a regex expression 219 | this.path = this.path.indexOf('?') === -1 ? this.path : this.path.replace(optionalRegex, "/?([^/]*)?$"); 220 | this.rootPath = this.getRootPath(); 221 | 222 | //bind 223 | this.getRootPath = this.getRootPath.bind(this); 224 | this.replaceUrlParams = this.replaceUrlParams.bind(this); 225 | this.getParamsObject = this.getParamsObject.bind(this); 226 | this.goTo = this.goTo.bind(this); 227 | 228 | this.withoutWindow = props.withoutWindow; 229 | } 230 | 231 | /* 232 | Sets the root path for the current path, so it's easier to determine if the route entered/exited or just some params changed 233 | Example: for '/' the root path is '/', for '/profile/:username/:tab' the root path is '/profile' 234 | */ 235 | 236 | 237 | //props 238 | 239 | 240 | createClass(Route, [{ 241 | key: 'getRootPath', 242 | value: function getRootPath() { 243 | return '/' + this.path.split('/')[1]; 244 | } 245 | }, { 246 | key: 'replaceUrlParams', 247 | 248 | 249 | /* 250 | replaces url params placeholders with params from an object 251 | Example: if url is /book/:id/page/:pageId and object is {id:100, pageId:200} it will return /book/100/page/200 252 | */ 253 | value: function replaceUrlParams(params) { 254 | var queryParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 255 | 256 | params = mobx.toJS(params); 257 | queryParams = mobx.toJS(queryParams); 258 | 259 | var queryParamsString = queryString.stringify(queryParams).toString(); 260 | var hasQueryParams = queryParamsString !== ''; 261 | var newPath = this.originalPath; 262 | 263 | getRegexMatches(this.originalPath, paramRegex, function (_ref) { 264 | var _ref2 = slicedToArray(_ref, 3), 265 | fullMatch = _ref2[0], 266 | paramKey = _ref2[1], 267 | paramKeyWithoutColon = _ref2[2]; 268 | 269 | var value = params[paramKeyWithoutColon]; 270 | newPath = value ? newPath.replace(paramKey, value) : newPath.replace('/' + paramKey, ''); 271 | }); 272 | 273 | return ('' + newPath + (hasQueryParams ? '?' + queryParamsString : '')).toString(); 274 | } 275 | 276 | /* 277 | converts an array of params [123, 100] to an object 278 | Example: if the current this.path is /book/:id/page/:pageId it will return {id:123, pageId:100} 279 | */ 280 | 281 | }, { 282 | key: 'getParamsObject', 283 | value: function getParamsObject(paramsArray) { 284 | 285 | var params = []; 286 | getRegexMatches(this.originalPath, paramRegex, function (_ref3) { 287 | var _ref4 = slicedToArray(_ref3, 3), 288 | fullMatch = _ref4[0], 289 | paramKey = _ref4[1], 290 | paramKeyWithoutColon = _ref4[2]; 291 | 292 | params.push(paramKeyWithoutColon); 293 | }); 294 | 295 | var result = paramsArray.reduce(function (obj, paramValue, index) { 296 | obj[params[index]] = paramValue; 297 | return obj; 298 | }, {}); 299 | 300 | return result; 301 | } 302 | }, { 303 | key: 'goTo', 304 | value: function goTo(store, paramsArr) { 305 | var paramsObject = this.getParamsObject(paramsArr); 306 | var queryParamsObject = !this.withoutWindow ? queryString.parse(window.location.search) : {}; 307 | store.router.goTo(this, paramsObject, store, queryParamsObject); 308 | } 309 | }]); 310 | return Route; 311 | }(); 312 | 313 | var _class; 314 | var _descriptor; 315 | var _descriptor2; 316 | var _descriptor3; 317 | 318 | function _initDefineProp(target, property, descriptor, context) { 319 | if (!descriptor) return; 320 | Object.defineProperty(target, property, { 321 | enumerable: descriptor.enumerable, 322 | configurable: descriptor.configurable, 323 | writable: descriptor.writable, 324 | value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 325 | }); 326 | } 327 | 328 | function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { 329 | var desc = {}; 330 | Object['ke' + 'ys'](descriptor).forEach(function (key) { 331 | desc[key] = descriptor[key]; 332 | }); 333 | desc.enumerable = !!desc.enumerable; 334 | desc.configurable = !!desc.configurable; 335 | 336 | if ('value' in desc || desc.initializer) { 337 | desc.writable = true; 338 | } 339 | 340 | desc = decorators.slice().reverse().reduce(function (desc, decorator) { 341 | return decorator(target, property, desc) || desc; 342 | }, desc); 343 | 344 | if (context && desc.initializer !== void 0) { 345 | desc.value = desc.initializer ? desc.initializer.call(context) : void 0; 346 | desc.initializer = undefined; 347 | } 348 | 349 | if (desc.initializer === void 0) { 350 | Object['define' + 'Property'](target, property, desc); 351 | desc = null; 352 | } 353 | 354 | return desc; 355 | } 356 | 357 | var RouterStore = (_class = function () { 358 | function RouterStore() { 359 | classCallCheck(this, RouterStore); 360 | 361 | _initDefineProp(this, 'params', _descriptor, this); 362 | 363 | _initDefineProp(this, 'queryParams', _descriptor2, this); 364 | 365 | _initDefineProp(this, 'currentView', _descriptor3, this); 366 | 367 | this.goTo = this.goTo.bind(this); 368 | } 369 | 370 | createClass(RouterStore, [{ 371 | key: 'goTo', 372 | value: function goTo(view, paramsObj, store, queryParamsObj) { 373 | 374 | var nextPath = view.replaceUrlParams(paramsObj, queryParamsObj); 375 | var pathChanged = nextPath !== this.currentPath; 376 | 377 | if (!pathChanged) { 378 | return; 379 | } 380 | 381 | var rootViewChanged = !this.currentView || this.currentView.rootPath !== view.rootPath; 382 | var currentParams = mobx.toJS(this.params); 383 | var currentQueryParams = mobx.toJS(this.queryParams); 384 | 385 | var beforeExitResult = rootViewChanged && this.currentView && this.currentView.beforeExit ? this.currentView.beforeExit(this.currentView, currentParams, store, currentQueryParams) : true; 386 | if (beforeExitResult === false) { 387 | return; 388 | } 389 | 390 | var beforeEnterResult = rootViewChanged && view.beforeEnter ? view.beforeEnter(view, currentParams, store, currentQueryParams) : true; 391 | if (beforeEnterResult === false) { 392 | return; 393 | } 394 | 395 | rootViewChanged && this.currentView && this.currentView.onExit && this.currentView.onExit(this.currentView, currentParams, store, currentQueryParams); 396 | 397 | this.currentView = view; 398 | this.params = mobx.toJS(paramsObj); 399 | this.queryParams = mobx.toJS(queryParamsObj); 400 | var nextParams = mobx.toJS(paramsObj); 401 | var nextQueryParams = mobx.toJS(queryParamsObj); 402 | 403 | rootViewChanged && view.onEnter && view.onEnter(view, nextParams, store, nextQueryParams); 404 | !rootViewChanged && this.currentView && this.currentView.onParamsChange && this.currentView.onParamsChange(this.currentView, nextParams, store, nextQueryParams); 405 | } 406 | }, { 407 | key: 'currentPath', 408 | get: function get() { 409 | return this.currentView ? this.currentView.replaceUrlParams(this.params, this.queryParams) : ''; 410 | } 411 | }]); 412 | return RouterStore; 413 | }(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'params', [mobx.observable], { 414 | enumerable: true, 415 | initializer: function initializer() { 416 | return {}; 417 | } 418 | }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'queryParams', [mobx.observable], { 419 | enumerable: true, 420 | initializer: function initializer() { 421 | return {}; 422 | } 423 | }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'currentView', [mobx.observable], { 424 | enumerable: true, 425 | initializer: null 426 | }), _applyDecoratedDescriptor(_class.prototype, 'goTo', [mobx.action], Object.getOwnPropertyDescriptor(_class.prototype, 'goTo'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'currentPath', [mobx.computed], Object.getOwnPropertyDescriptor(_class.prototype, 'currentPath'), _class.prototype)), _class); 427 | 428 | var createDirectorRouter = function createDirectorRouter(views, store) { 429 | new director_build_director.Router(_extends({}, viewsForDirector(views, store))).configure({ 430 | html5history: true 431 | }).init(); 432 | }; 433 | 434 | var startRouter = function startRouter(views, store, withoutWindow) { 435 | //create director configuration 436 | createDirectorRouter(views, store); 437 | 438 | if (withoutWindow) { 439 | return; 440 | } 441 | //autorun and watch for path changes 442 | mobx.autorun(function () { 443 | var currentPath = store.router.currentPath; 444 | 445 | if (currentPath !== window.location.pathname) { 446 | window.history.pushState(null, null, currentPath); 447 | } 448 | }); 449 | }; 450 | 451 | var MobxRouter = function MobxRouter(_ref) { 452 | var router = _ref.store.router; 453 | return React.createElement( 454 | 'div', 455 | null, 456 | router.currentView && router.currentView.component 457 | ); 458 | }; 459 | var MobxRouter$1 = mobxReact.observer(['store'], MobxRouter); 460 | 461 | var Link = function Link(_ref) { 462 | var view = _ref.view, 463 | className = _ref.className, 464 | _ref$params = _ref.params, 465 | params = _ref$params === undefined ? {} : _ref$params, 466 | _ref$queryParams = _ref.queryParams, 467 | queryParams = _ref$queryParams === undefined ? {} : _ref$queryParams, 468 | _ref$store = _ref.store, 469 | store = _ref$store === undefined ? {} : _ref$store, 470 | _ref$refresh = _ref.refresh, 471 | refresh = _ref$refresh === undefined ? false : _ref$refresh, 472 | _ref$style = _ref.style, 473 | style = _ref$style === undefined ? {} : _ref$style, 474 | children = _ref.children, 475 | _ref$title = _ref.title, 476 | title = _ref$title === undefined ? children : _ref$title, 477 | _ref$router = _ref.router, 478 | router = _ref$router === undefined ? store.router : _ref$router; 479 | 480 | if (!router) { 481 | return console.error('The router prop must be defined for a Link component to work!'); 482 | } 483 | return React.createElement( 484 | 'a', 485 | { 486 | style: style, 487 | className: className, 488 | onClick: function onClick(e) { 489 | var middleClick = e.which == 2; 490 | var cmdOrCtrl = e.metaKey || e.ctrlKey; 491 | var openinNewTab = middleClick || cmdOrCtrl; 492 | var shouldNavigateManually = refresh || openinNewTab || cmdOrCtrl; 493 | 494 | if (!shouldNavigateManually) { 495 | e.preventDefault(); 496 | router.goTo(view, params, store, queryParams); 497 | } 498 | }, 499 | href: view.replaceUrlParams(params, queryParams) }, 500 | title 501 | ); 502 | }; 503 | 504 | var Link$1 = mobxReact.observer(Link); 505 | 506 | //components 507 | 508 | exports.Route = Route; 509 | exports.MobxRouter = MobxRouter$1; 510 | exports.Link = Link$1; 511 | exports.RouterStore = RouterStore; 512 | exports.startRouter = startRouter; 513 | -------------------------------------------------------------------------------- /dist/mobx-router.umd.js: -------------------------------------------------------------------------------- 1 | (function (global, factory) { 2 | typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('mobx'), require('query-string'), require('director/build/director'), require('react'), require('mobx-react')) : 3 | typeof define === 'function' && define.amd ? define(['exports', 'mobx', 'query-string', 'director/build/director', 'react', 'mobx-react'], factory) : 4 | (factory((global.mobxRouter = global.mobxRouter || {}),global.mobx,global.queryString,global.director_build_director,global.React,global.mobxReact)); 5 | }(this, (function (exports,mobx,queryString,director_build_director,React,mobxReact) { 'use strict'; 6 | 7 | queryString = 'default' in queryString ? queryString['default'] : queryString; 8 | React = 'default' in React ? React['default'] : React; 9 | 10 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { 11 | return typeof obj; 12 | } : function (obj) { 13 | return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 14 | }; 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | var classCallCheck = function (instance, Constructor) { 27 | if (!(instance instanceof Constructor)) { 28 | throw new TypeError("Cannot call a class as a function"); 29 | } 30 | }; 31 | 32 | var createClass = function () { 33 | function defineProperties(target, props) { 34 | for (var i = 0; i < props.length; i++) { 35 | var descriptor = props[i]; 36 | descriptor.enumerable = descriptor.enumerable || false; 37 | descriptor.configurable = true; 38 | if ("value" in descriptor) descriptor.writable = true; 39 | Object.defineProperty(target, descriptor.key, descriptor); 40 | } 41 | } 42 | 43 | return function (Constructor, protoProps, staticProps) { 44 | if (protoProps) defineProperties(Constructor.prototype, protoProps); 45 | if (staticProps) defineProperties(Constructor, staticProps); 46 | return Constructor; 47 | }; 48 | }(); 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | var _extends = Object.assign || function (target) { 57 | for (var i = 1; i < arguments.length; i++) { 58 | var source = arguments[i]; 59 | 60 | for (var key in source) { 61 | if (Object.prototype.hasOwnProperty.call(source, key)) { 62 | target[key] = source[key]; 63 | } 64 | } 65 | } 66 | 67 | return target; 68 | }; 69 | 70 | var get$1 = function get$1(object, property, receiver) { 71 | if (object === null) object = Function.prototype; 72 | var desc = Object.getOwnPropertyDescriptor(object, property); 73 | 74 | if (desc === undefined) { 75 | var parent = Object.getPrototypeOf(object); 76 | 77 | if (parent === null) { 78 | return undefined; 79 | } else { 80 | return get$1(parent, property, receiver); 81 | } 82 | } else if ("value" in desc) { 83 | return desc.value; 84 | } else { 85 | var getter = desc.get; 86 | 87 | if (getter === undefined) { 88 | return undefined; 89 | } 90 | 91 | return getter.call(receiver); 92 | } 93 | }; 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | var set = function set(object, property, value, receiver) { 112 | var desc = Object.getOwnPropertyDescriptor(object, property); 113 | 114 | if (desc === undefined) { 115 | var parent = Object.getPrototypeOf(object); 116 | 117 | if (parent !== null) { 118 | set(parent, property, value, receiver); 119 | } 120 | } else if ("value" in desc && desc.writable) { 121 | desc.value = value; 122 | } else { 123 | var setter = desc.set; 124 | 125 | if (setter !== undefined) { 126 | setter.call(receiver, value); 127 | } 128 | } 129 | 130 | return value; 131 | }; 132 | 133 | var slicedToArray = function () { 134 | function sliceIterator(arr, i) { 135 | var _arr = []; 136 | var _n = true; 137 | var _d = false; 138 | var _e = undefined; 139 | 140 | try { 141 | for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { 142 | _arr.push(_s.value); 143 | 144 | if (i && _arr.length === i) break; 145 | } 146 | } catch (err) { 147 | _d = true; 148 | _e = err; 149 | } finally { 150 | try { 151 | if (!_n && _i["return"]) _i["return"](); 152 | } finally { 153 | if (_d) throw _e; 154 | } 155 | } 156 | 157 | return _arr; 158 | } 159 | 160 | return function (arr, i) { 161 | if (Array.isArray(arr)) { 162 | return arr; 163 | } else if (Symbol.iterator in Object(arr)) { 164 | return sliceIterator(arr, i); 165 | } else { 166 | throw new TypeError("Invalid attempt to destructure non-iterable instance"); 167 | } 168 | }; 169 | }(); 170 | 171 | var isObject = function isObject(obj) { 172 | return obj && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj); 173 | }; 174 | var getObjectKeys = function getObjectKeys(obj) { 175 | return isObject(obj) ? Object.keys(obj) : []; 176 | }; 177 | 178 | var viewsForDirector = function viewsForDirector(views, store) { 179 | return getObjectKeys(views).reduce(function (obj, viewKey) { 180 | var view = views[viewKey]; 181 | obj[view.path] = function () { 182 | for (var _len = arguments.length, paramsArr = Array(_len), _key = 0; _key < _len; _key++) { 183 | paramsArr[_key] = arguments[_key]; 184 | } 185 | 186 | return view.goTo(store, paramsArr); 187 | }; 188 | return obj; 189 | }, {}); 190 | }; 191 | 192 | var getRegexMatches = function getRegexMatches(string, regexExpression, callback) { 193 | var match = void 0; 194 | while ((match = regexExpression.exec(string)) !== null) { 195 | callback(match); 196 | } 197 | }; 198 | 199 | var paramRegex = /\/(:([^\/?]*)\??)/g; 200 | var optionalRegex = /(\/:[^\/]*\?)$/g; 201 | 202 | var Route = function () { 203 | 204 | //lifecycle methods 205 | function Route(props) { 206 | var _this = this; 207 | 208 | classCallCheck(this, Route); 209 | 210 | getObjectKeys(props).forEach(function (propKey) { 211 | return _this[propKey] = props[propKey]; 212 | }); 213 | this.originalPath = this.path; 214 | 215 | //if there are optional parameters, replace the path with a regex expression 216 | this.path = this.path.indexOf('?') === -1 ? this.path : this.path.replace(optionalRegex, "/?([^/]*)?$"); 217 | this.rootPath = this.getRootPath(); 218 | 219 | //bind 220 | this.getRootPath = this.getRootPath.bind(this); 221 | this.replaceUrlParams = this.replaceUrlParams.bind(this); 222 | this.getParamsObject = this.getParamsObject.bind(this); 223 | this.goTo = this.goTo.bind(this); 224 | 225 | this.withoutWindow = props.withoutWindow; 226 | } 227 | 228 | /* 229 | Sets the root path for the current path, so it's easier to determine if the route entered/exited or just some params changed 230 | Example: for '/' the root path is '/', for '/profile/:username/:tab' the root path is '/profile' 231 | */ 232 | 233 | 234 | //props 235 | 236 | 237 | createClass(Route, [{ 238 | key: 'getRootPath', 239 | value: function getRootPath() { 240 | return '/' + this.path.split('/')[1]; 241 | } 242 | }, { 243 | key: 'replaceUrlParams', 244 | 245 | 246 | /* 247 | replaces url params placeholders with params from an object 248 | Example: if url is /book/:id/page/:pageId and object is {id:100, pageId:200} it will return /book/100/page/200 249 | */ 250 | value: function replaceUrlParams(params) { 251 | var queryParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 252 | 253 | params = mobx.toJS(params); 254 | queryParams = mobx.toJS(queryParams); 255 | 256 | var queryParamsString = queryString.stringify(queryParams).toString(); 257 | var hasQueryParams = queryParamsString !== ''; 258 | var newPath = this.originalPath; 259 | 260 | getRegexMatches(this.originalPath, paramRegex, function (_ref) { 261 | var _ref2 = slicedToArray(_ref, 3), 262 | fullMatch = _ref2[0], 263 | paramKey = _ref2[1], 264 | paramKeyWithoutColon = _ref2[2]; 265 | 266 | var value = params[paramKeyWithoutColon]; 267 | newPath = value ? newPath.replace(paramKey, value) : newPath.replace('/' + paramKey, ''); 268 | }); 269 | 270 | return ('' + newPath + (hasQueryParams ? '?' + queryParamsString : '')).toString(); 271 | } 272 | 273 | /* 274 | converts an array of params [123, 100] to an object 275 | Example: if the current this.path is /book/:id/page/:pageId it will return {id:123, pageId:100} 276 | */ 277 | 278 | }, { 279 | key: 'getParamsObject', 280 | value: function getParamsObject(paramsArray) { 281 | 282 | var params = []; 283 | getRegexMatches(this.originalPath, paramRegex, function (_ref3) { 284 | var _ref4 = slicedToArray(_ref3, 3), 285 | fullMatch = _ref4[0], 286 | paramKey = _ref4[1], 287 | paramKeyWithoutColon = _ref4[2]; 288 | 289 | params.push(paramKeyWithoutColon); 290 | }); 291 | 292 | var result = paramsArray.reduce(function (obj, paramValue, index) { 293 | obj[params[index]] = paramValue; 294 | return obj; 295 | }, {}); 296 | 297 | return result; 298 | } 299 | }, { 300 | key: 'goTo', 301 | value: function goTo(store, paramsArr) { 302 | var paramsObject = this.getParamsObject(paramsArr); 303 | var queryParamsObject = !this.withoutWindow ? queryString.parse(window.location.search) : {}; 304 | store.router.goTo(this, paramsObject, store, queryParamsObject); 305 | } 306 | }]); 307 | return Route; 308 | }(); 309 | 310 | var _class; 311 | var _descriptor; 312 | var _descriptor2; 313 | var _descriptor3; 314 | 315 | function _initDefineProp(target, property, descriptor, context) { 316 | if (!descriptor) return; 317 | Object.defineProperty(target, property, { 318 | enumerable: descriptor.enumerable, 319 | configurable: descriptor.configurable, 320 | writable: descriptor.writable, 321 | value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 322 | }); 323 | } 324 | 325 | function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { 326 | var desc = {}; 327 | Object['ke' + 'ys'](descriptor).forEach(function (key) { 328 | desc[key] = descriptor[key]; 329 | }); 330 | desc.enumerable = !!desc.enumerable; 331 | desc.configurable = !!desc.configurable; 332 | 333 | if ('value' in desc || desc.initializer) { 334 | desc.writable = true; 335 | } 336 | 337 | desc = decorators.slice().reverse().reduce(function (desc, decorator) { 338 | return decorator(target, property, desc) || desc; 339 | }, desc); 340 | 341 | if (context && desc.initializer !== void 0) { 342 | desc.value = desc.initializer ? desc.initializer.call(context) : void 0; 343 | desc.initializer = undefined; 344 | } 345 | 346 | if (desc.initializer === void 0) { 347 | Object['define' + 'Property'](target, property, desc); 348 | desc = null; 349 | } 350 | 351 | return desc; 352 | } 353 | 354 | var RouterStore = (_class = function () { 355 | function RouterStore() { 356 | classCallCheck(this, RouterStore); 357 | 358 | _initDefineProp(this, 'params', _descriptor, this); 359 | 360 | _initDefineProp(this, 'queryParams', _descriptor2, this); 361 | 362 | _initDefineProp(this, 'currentView', _descriptor3, this); 363 | 364 | this.goTo = this.goTo.bind(this); 365 | } 366 | 367 | createClass(RouterStore, [{ 368 | key: 'goTo', 369 | value: function goTo(view, paramsObj, store, queryParamsObj) { 370 | 371 | var nextPath = view.replaceUrlParams(paramsObj, queryParamsObj); 372 | var pathChanged = nextPath !== this.currentPath; 373 | 374 | if (!pathChanged) { 375 | return; 376 | } 377 | 378 | var rootViewChanged = !this.currentView || this.currentView.rootPath !== view.rootPath; 379 | var currentParams = mobx.toJS(this.params); 380 | var currentQueryParams = mobx.toJS(this.queryParams); 381 | 382 | var beforeExitResult = rootViewChanged && this.currentView && this.currentView.beforeExit ? this.currentView.beforeExit(this.currentView, currentParams, store, currentQueryParams) : true; 383 | if (beforeExitResult === false) { 384 | return; 385 | } 386 | 387 | var beforeEnterResult = rootViewChanged && view.beforeEnter ? view.beforeEnter(view, currentParams, store, currentQueryParams) : true; 388 | if (beforeEnterResult === false) { 389 | return; 390 | } 391 | 392 | rootViewChanged && this.currentView && this.currentView.onExit && this.currentView.onExit(this.currentView, currentParams, store, currentQueryParams); 393 | 394 | this.currentView = view; 395 | this.params = mobx.toJS(paramsObj); 396 | this.queryParams = mobx.toJS(queryParamsObj); 397 | var nextParams = mobx.toJS(paramsObj); 398 | var nextQueryParams = mobx.toJS(queryParamsObj); 399 | 400 | rootViewChanged && view.onEnter && view.onEnter(view, nextParams, store, nextQueryParams); 401 | !rootViewChanged && this.currentView && this.currentView.onParamsChange && this.currentView.onParamsChange(this.currentView, nextParams, store, nextQueryParams); 402 | } 403 | }, { 404 | key: 'currentPath', 405 | get: function get() { 406 | return this.currentView ? this.currentView.replaceUrlParams(this.params, this.queryParams) : ''; 407 | } 408 | }]); 409 | return RouterStore; 410 | }(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'params', [mobx.observable], { 411 | enumerable: true, 412 | initializer: function initializer() { 413 | return {}; 414 | } 415 | }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'queryParams', [mobx.observable], { 416 | enumerable: true, 417 | initializer: function initializer() { 418 | return {}; 419 | } 420 | }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'currentView', [mobx.observable], { 421 | enumerable: true, 422 | initializer: null 423 | }), _applyDecoratedDescriptor(_class.prototype, 'goTo', [mobx.action], Object.getOwnPropertyDescriptor(_class.prototype, 'goTo'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'currentPath', [mobx.computed], Object.getOwnPropertyDescriptor(_class.prototype, 'currentPath'), _class.prototype)), _class); 424 | 425 | var createDirectorRouter = function createDirectorRouter(views, store) { 426 | new director_build_director.Router(_extends({}, viewsForDirector(views, store))).configure({ 427 | html5history: true 428 | }).init(); 429 | }; 430 | 431 | var startRouter = function startRouter(views, store, withoutWindow) { 432 | //create director configuration 433 | createDirectorRouter(views, store); 434 | 435 | if (withoutWindow) { 436 | return; 437 | } 438 | //autorun and watch for path changes 439 | mobx.autorun(function () { 440 | var currentPath = store.router.currentPath; 441 | 442 | if (currentPath !== window.location.pathname) { 443 | window.history.pushState(null, null, currentPath); 444 | } 445 | }); 446 | }; 447 | 448 | var MobxRouter = function MobxRouter(_ref) { 449 | var router = _ref.store.router; 450 | return React.createElement( 451 | 'div', 452 | null, 453 | router.currentView && router.currentView.component 454 | ); 455 | }; 456 | var MobxRouter$1 = mobxReact.observer(['store'], MobxRouter); 457 | 458 | var Link = function Link(_ref) { 459 | var view = _ref.view, 460 | className = _ref.className, 461 | _ref$params = _ref.params, 462 | params = _ref$params === undefined ? {} : _ref$params, 463 | _ref$queryParams = _ref.queryParams, 464 | queryParams = _ref$queryParams === undefined ? {} : _ref$queryParams, 465 | _ref$store = _ref.store, 466 | store = _ref$store === undefined ? {} : _ref$store, 467 | _ref$refresh = _ref.refresh, 468 | refresh = _ref$refresh === undefined ? false : _ref$refresh, 469 | _ref$style = _ref.style, 470 | style = _ref$style === undefined ? {} : _ref$style, 471 | children = _ref.children, 472 | _ref$title = _ref.title, 473 | title = _ref$title === undefined ? children : _ref$title, 474 | _ref$router = _ref.router, 475 | router = _ref$router === undefined ? store.router : _ref$router; 476 | 477 | if (!router) { 478 | return console.error('The router prop must be defined for a Link component to work!'); 479 | } 480 | return React.createElement( 481 | 'a', 482 | { 483 | style: style, 484 | className: className, 485 | onClick: function onClick(e) { 486 | var middleClick = e.which == 2; 487 | var cmdOrCtrl = e.metaKey || e.ctrlKey; 488 | var openinNewTab = middleClick || cmdOrCtrl; 489 | var shouldNavigateManually = refresh || openinNewTab || cmdOrCtrl; 490 | 491 | if (!shouldNavigateManually) { 492 | e.preventDefault(); 493 | router.goTo(view, params, store, queryParams); 494 | } 495 | }, 496 | href: view.replaceUrlParams(params, queryParams) }, 497 | title 498 | ); 499 | }; 500 | 501 | var Link$1 = mobxReact.observer(Link); 502 | 503 | //components 504 | 505 | exports.Route = Route; 506 | exports.MobxRouter = MobxRouter$1; 507 | exports.Link = Link$1; 508 | exports.RouterStore = RouterStore; 509 | exports.startRouter = startRouter; 510 | 511 | Object.defineProperty(exports, '__esModule', { value: true }); 512 | 513 | }))); 514 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | abab@^1.0.3: 6 | version "1.0.3" 7 | resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.3.tgz#b81de5f7274ec4e756d797cd834f303642724e5d" 8 | 9 | abbrev@1: 10 | version "1.1.0" 11 | resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f" 12 | 13 | abbrev@1.0.x: 14 | version "1.0.9" 15 | resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135" 16 | 17 | acorn-globals@^3.1.0: 18 | version "3.1.0" 19 | resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-3.1.0.tgz#fd8270f71fbb4996b004fa880ee5d46573a731bf" 20 | dependencies: 21 | acorn "^4.0.4" 22 | 23 | acorn@^4.0.1, acorn@^4.0.4: 24 | version "4.0.13" 25 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787" 26 | 27 | ajv@^4.9.1: 28 | version "4.11.8" 29 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" 30 | dependencies: 31 | co "^4.6.0" 32 | json-stable-stringify "^1.0.1" 33 | 34 | align-text@^0.1.1, align-text@^0.1.3: 35 | version "0.1.4" 36 | resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" 37 | dependencies: 38 | kind-of "^3.0.2" 39 | longest "^1.0.1" 40 | repeat-string "^1.5.2" 41 | 42 | amdefine@>=0.0.4: 43 | version "1.0.1" 44 | resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" 45 | 46 | ansi-escapes@^1.4.0: 47 | version "1.4.0" 48 | resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" 49 | 50 | ansi-regex@^2.0.0: 51 | version "2.1.1" 52 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 53 | 54 | ansi-styles@^2.2.1: 55 | version "2.2.1" 56 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" 57 | 58 | ansicolors@~0.2.1: 59 | version "0.2.1" 60 | resolved "https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.2.1.tgz#be089599097b74a5c9c4a84a0cdbcdb62bd87aef" 61 | 62 | append-transform@^0.4.0: 63 | version "0.4.0" 64 | resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-0.4.0.tgz#d76ebf8ca94d276e247a36bad44a4b74ab611991" 65 | dependencies: 66 | default-require-extensions "^1.0.0" 67 | 68 | argparse@^1.0.7: 69 | version "1.0.9" 70 | resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" 71 | dependencies: 72 | sprintf-js "~1.0.2" 73 | 74 | arr-diff@^2.0.0: 75 | version "2.0.0" 76 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" 77 | dependencies: 78 | arr-flatten "^1.0.1" 79 | 80 | arr-flatten@^1.0.1: 81 | version "1.1.0" 82 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" 83 | 84 | array-differ@^1.0.0: 85 | version "1.0.0" 86 | resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-1.0.0.tgz#eff52e3758249d33be402b8bb8e564bb2b5d4031" 87 | 88 | array-equal@^1.0.0: 89 | version "1.0.0" 90 | resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" 91 | 92 | array-union@^1.0.1: 93 | version "1.0.2" 94 | resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" 95 | dependencies: 96 | array-uniq "^1.0.1" 97 | 98 | array-uniq@^1.0.1: 99 | version "1.0.3" 100 | resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" 101 | 102 | array-unique@^0.2.1: 103 | version "0.2.1" 104 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" 105 | 106 | arrify@^1.0.0, arrify@^1.0.1: 107 | version "1.0.1" 108 | resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" 109 | 110 | asap@~2.0.3: 111 | version "2.0.6" 112 | resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" 113 | 114 | asn1@~0.2.3: 115 | version "0.2.3" 116 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" 117 | 118 | assert-plus@1.0.0, assert-plus@^1.0.0: 119 | version "1.0.0" 120 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 121 | 122 | assert-plus@^0.2.0: 123 | version "0.2.0" 124 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" 125 | 126 | async@1.x, async@^1.4.0: 127 | version "1.5.2" 128 | resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" 129 | 130 | async@^2.1.4: 131 | version "2.5.0" 132 | resolved "https://registry.yarnpkg.com/async/-/async-2.5.0.tgz#843190fd6b7357a0b9e1c956edddd5ec8462b54d" 133 | dependencies: 134 | lodash "^4.14.0" 135 | 136 | asynckit@^0.4.0: 137 | version "0.4.0" 138 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 139 | 140 | aws-sign2@~0.6.0: 141 | version "0.6.0" 142 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" 143 | 144 | aws4@^1.2.1: 145 | version "1.6.0" 146 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" 147 | 148 | babel-code-frame@^6.22.0: 149 | version "6.22.0" 150 | resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4" 151 | dependencies: 152 | chalk "^1.1.0" 153 | esutils "^2.0.2" 154 | js-tokens "^3.0.0" 155 | 156 | babel-core@6, babel-core@^6.0.0, babel-core@^6.11.4, babel-core@^6.24.1: 157 | version "6.25.0" 158 | resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.25.0.tgz#7dd42b0463c742e9d5296deb3ec67a9322dad729" 159 | dependencies: 160 | babel-code-frame "^6.22.0" 161 | babel-generator "^6.25.0" 162 | babel-helpers "^6.24.1" 163 | babel-messages "^6.23.0" 164 | babel-register "^6.24.1" 165 | babel-runtime "^6.22.0" 166 | babel-template "^6.25.0" 167 | babel-traverse "^6.25.0" 168 | babel-types "^6.25.0" 169 | babylon "^6.17.2" 170 | convert-source-map "^1.1.0" 171 | debug "^2.1.1" 172 | json5 "^0.5.0" 173 | lodash "^4.2.0" 174 | minimatch "^3.0.2" 175 | path-is-absolute "^1.0.0" 176 | private "^0.1.6" 177 | slash "^1.0.0" 178 | source-map "^0.5.0" 179 | 180 | babel-generator@^6.18.0, babel-generator@^6.25.0: 181 | version "6.25.0" 182 | resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.25.0.tgz#33a1af70d5f2890aeb465a4a7793c1df6a9ea9fc" 183 | dependencies: 184 | babel-messages "^6.23.0" 185 | babel-runtime "^6.22.0" 186 | babel-types "^6.25.0" 187 | detect-indent "^4.0.0" 188 | jsesc "^1.3.0" 189 | lodash "^4.2.0" 190 | source-map "^0.5.0" 191 | trim-right "^1.0.1" 192 | 193 | babel-helper-bindify-decorators@^6.24.1: 194 | version "6.24.1" 195 | resolved "https://registry.yarnpkg.com/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz#14c19e5f142d7b47f19a52431e52b1ccbc40a330" 196 | dependencies: 197 | babel-runtime "^6.22.0" 198 | babel-traverse "^6.24.1" 199 | babel-types "^6.24.1" 200 | 201 | babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: 202 | version "6.24.1" 203 | resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" 204 | dependencies: 205 | babel-helper-explode-assignable-expression "^6.24.1" 206 | babel-runtime "^6.22.0" 207 | babel-types "^6.24.1" 208 | 209 | babel-helper-builder-react-jsx@^6.24.1: 210 | version "6.24.1" 211 | resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.24.1.tgz#0ad7917e33c8d751e646daca4e77cc19377d2cbc" 212 | dependencies: 213 | babel-runtime "^6.22.0" 214 | babel-types "^6.24.1" 215 | esutils "^2.0.0" 216 | 217 | babel-helper-call-delegate@^6.24.1: 218 | version "6.24.1" 219 | resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" 220 | dependencies: 221 | babel-helper-hoist-variables "^6.24.1" 222 | babel-runtime "^6.22.0" 223 | babel-traverse "^6.24.1" 224 | babel-types "^6.24.1" 225 | 226 | babel-helper-define-map@^6.24.1: 227 | version "6.24.1" 228 | resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.24.1.tgz#7a9747f258d8947d32d515f6aa1c7bd02204a080" 229 | dependencies: 230 | babel-helper-function-name "^6.24.1" 231 | babel-runtime "^6.22.0" 232 | babel-types "^6.24.1" 233 | lodash "^4.2.0" 234 | 235 | babel-helper-explode-assignable-expression@^6.24.1: 236 | version "6.24.1" 237 | resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" 238 | dependencies: 239 | babel-runtime "^6.22.0" 240 | babel-traverse "^6.24.1" 241 | babel-types "^6.24.1" 242 | 243 | babel-helper-explode-class@^6.24.1: 244 | version "6.24.1" 245 | resolved "https://registry.yarnpkg.com/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz#7dc2a3910dee007056e1e31d640ced3d54eaa9eb" 246 | dependencies: 247 | babel-helper-bindify-decorators "^6.24.1" 248 | babel-runtime "^6.22.0" 249 | babel-traverse "^6.24.1" 250 | babel-types "^6.24.1" 251 | 252 | babel-helper-function-name@^6.24.1: 253 | version "6.24.1" 254 | resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" 255 | dependencies: 256 | babel-helper-get-function-arity "^6.24.1" 257 | babel-runtime "^6.22.0" 258 | babel-template "^6.24.1" 259 | babel-traverse "^6.24.1" 260 | babel-types "^6.24.1" 261 | 262 | babel-helper-get-function-arity@^6.24.1: 263 | version "6.24.1" 264 | resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" 265 | dependencies: 266 | babel-runtime "^6.22.0" 267 | babel-types "^6.24.1" 268 | 269 | babel-helper-hoist-variables@^6.24.1: 270 | version "6.24.1" 271 | resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" 272 | dependencies: 273 | babel-runtime "^6.22.0" 274 | babel-types "^6.24.1" 275 | 276 | babel-helper-optimise-call-expression@^6.24.1: 277 | version "6.24.1" 278 | resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" 279 | dependencies: 280 | babel-runtime "^6.22.0" 281 | babel-types "^6.24.1" 282 | 283 | babel-helper-regex@^6.24.1: 284 | version "6.24.1" 285 | resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.24.1.tgz#d36e22fab1008d79d88648e32116868128456ce8" 286 | dependencies: 287 | babel-runtime "^6.22.0" 288 | babel-types "^6.24.1" 289 | lodash "^4.2.0" 290 | 291 | babel-helper-remap-async-to-generator@^6.24.1: 292 | version "6.24.1" 293 | resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" 294 | dependencies: 295 | babel-helper-function-name "^6.24.1" 296 | babel-runtime "^6.22.0" 297 | babel-template "^6.24.1" 298 | babel-traverse "^6.24.1" 299 | babel-types "^6.24.1" 300 | 301 | babel-helper-replace-supers@^6.24.1: 302 | version "6.24.1" 303 | resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" 304 | dependencies: 305 | babel-helper-optimise-call-expression "^6.24.1" 306 | babel-messages "^6.23.0" 307 | babel-runtime "^6.22.0" 308 | babel-template "^6.24.1" 309 | babel-traverse "^6.24.1" 310 | babel-types "^6.24.1" 311 | 312 | babel-helpers@^6.24.1: 313 | version "6.24.1" 314 | resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" 315 | dependencies: 316 | babel-runtime "^6.22.0" 317 | babel-template "^6.24.1" 318 | 319 | babel-jest@^15.0.0: 320 | version "15.0.0" 321 | resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-15.0.0.tgz#6a9e2e3999f241383db9ab1e2ef6704401d74242" 322 | dependencies: 323 | babel-core "^6.0.0" 324 | babel-plugin-istanbul "^2.0.0" 325 | babel-preset-jest "^15.0.0" 326 | 327 | babel-messages@^6.23.0: 328 | version "6.23.0" 329 | resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" 330 | dependencies: 331 | babel-runtime "^6.22.0" 332 | 333 | babel-plugin-add-module-exports@^0.2.1: 334 | version "0.2.1" 335 | resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz#9ae9a1f4a8dc67f0cdec4f4aeda1e43a5ff65e25" 336 | 337 | babel-plugin-check-es2015-constants@^6.22.0: 338 | version "6.22.0" 339 | resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" 340 | dependencies: 341 | babel-runtime "^6.22.0" 342 | 343 | babel-plugin-external-helpers@^6.4.0: 344 | version "6.22.0" 345 | resolved "https://registry.yarnpkg.com/babel-plugin-external-helpers/-/babel-plugin-external-helpers-6.22.0.tgz#2285f48b02bd5dede85175caf8c62e86adccefa1" 346 | dependencies: 347 | babel-runtime "^6.22.0" 348 | 349 | babel-plugin-istanbul@^2.0.0: 350 | version "2.0.3" 351 | resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-2.0.3.tgz#266b304b9109607d60748474394676982f660df4" 352 | dependencies: 353 | find-up "^1.1.2" 354 | istanbul-lib-instrument "^1.1.4" 355 | object-assign "^4.1.0" 356 | test-exclude "^2.1.1" 357 | 358 | babel-plugin-jest-hoist@^15.0.0: 359 | version "15.0.0" 360 | resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-15.0.0.tgz#7b2fdbd0cd12fc36a84d3f5ff001ec504262bb59" 361 | 362 | babel-plugin-syntax-async-functions@^6.8.0: 363 | version "6.13.0" 364 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" 365 | 366 | babel-plugin-syntax-async-generators@^6.5.0: 367 | version "6.13.0" 368 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a" 369 | 370 | babel-plugin-syntax-class-constructor-call@^6.18.0: 371 | version "6.18.0" 372 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz#9cb9d39fe43c8600bec8146456ddcbd4e1a76416" 373 | 374 | babel-plugin-syntax-class-properties@^6.8.0: 375 | version "6.13.0" 376 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" 377 | 378 | babel-plugin-syntax-decorators@^6.1.18, babel-plugin-syntax-decorators@^6.13.0: 379 | version "6.13.0" 380 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz#312563b4dbde3cc806cee3e416cceeaddd11ac0b" 381 | 382 | babel-plugin-syntax-do-expressions@^6.8.0: 383 | version "6.13.0" 384 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-do-expressions/-/babel-plugin-syntax-do-expressions-6.13.0.tgz#5747756139aa26d390d09410b03744ba07e4796d" 385 | 386 | babel-plugin-syntax-dynamic-import@^6.18.0: 387 | version "6.18.0" 388 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da" 389 | 390 | babel-plugin-syntax-exponentiation-operator@^6.8.0: 391 | version "6.13.0" 392 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" 393 | 394 | babel-plugin-syntax-export-extensions@^6.8.0: 395 | version "6.13.0" 396 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz#70a1484f0f9089a4e84ad44bac353c95b9b12721" 397 | 398 | babel-plugin-syntax-flow@^6.18.0, babel-plugin-syntax-flow@^6.3.13: 399 | version "6.18.0" 400 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d" 401 | 402 | babel-plugin-syntax-function-bind@^6.8.0: 403 | version "6.13.0" 404 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-function-bind/-/babel-plugin-syntax-function-bind-6.13.0.tgz#48c495f177bdf31a981e732f55adc0bdd2601f46" 405 | 406 | babel-plugin-syntax-jsx@^6.3.13, babel-plugin-syntax-jsx@^6.8.0: 407 | version "6.18.0" 408 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" 409 | 410 | babel-plugin-syntax-object-rest-spread@^6.8.0: 411 | version "6.13.0" 412 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" 413 | 414 | babel-plugin-syntax-trailing-function-commas@^6.22.0: 415 | version "6.22.0" 416 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" 417 | 418 | babel-plugin-transform-async-generator-functions@^6.24.1: 419 | version "6.24.1" 420 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db" 421 | dependencies: 422 | babel-helper-remap-async-to-generator "^6.24.1" 423 | babel-plugin-syntax-async-generators "^6.5.0" 424 | babel-runtime "^6.22.0" 425 | 426 | babel-plugin-transform-async-to-generator@^6.24.1: 427 | version "6.24.1" 428 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" 429 | dependencies: 430 | babel-helper-remap-async-to-generator "^6.24.1" 431 | babel-plugin-syntax-async-functions "^6.8.0" 432 | babel-runtime "^6.22.0" 433 | 434 | babel-plugin-transform-class-constructor-call@^6.24.1: 435 | version "6.24.1" 436 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz#80dc285505ac067dcb8d6c65e2f6f11ab7765ef9" 437 | dependencies: 438 | babel-plugin-syntax-class-constructor-call "^6.18.0" 439 | babel-runtime "^6.22.0" 440 | babel-template "^6.24.1" 441 | 442 | babel-plugin-transform-class-properties@^6.24.1: 443 | version "6.24.1" 444 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" 445 | dependencies: 446 | babel-helper-function-name "^6.24.1" 447 | babel-plugin-syntax-class-properties "^6.8.0" 448 | babel-runtime "^6.22.0" 449 | babel-template "^6.24.1" 450 | 451 | babel-plugin-transform-decorators-legacy@1.3.4: 452 | version "1.3.4" 453 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.3.4.tgz#741b58f6c5bce9e6027e0882d9c994f04f366925" 454 | dependencies: 455 | babel-plugin-syntax-decorators "^6.1.18" 456 | babel-runtime "^6.2.0" 457 | babel-template "^6.3.0" 458 | 459 | babel-plugin-transform-decorators@^6.24.1: 460 | version "6.24.1" 461 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz#788013d8f8c6b5222bdf7b344390dfd77569e24d" 462 | dependencies: 463 | babel-helper-explode-class "^6.24.1" 464 | babel-plugin-syntax-decorators "^6.13.0" 465 | babel-runtime "^6.22.0" 466 | babel-template "^6.24.1" 467 | babel-types "^6.24.1" 468 | 469 | babel-plugin-transform-do-expressions@^6.22.0: 470 | version "6.22.0" 471 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-do-expressions/-/babel-plugin-transform-do-expressions-6.22.0.tgz#28ccaf92812d949c2cd1281f690c8fdc468ae9bb" 472 | dependencies: 473 | babel-plugin-syntax-do-expressions "^6.8.0" 474 | babel-runtime "^6.22.0" 475 | 476 | babel-plugin-transform-es2015-arrow-functions@^6.22.0: 477 | version "6.22.0" 478 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" 479 | dependencies: 480 | babel-runtime "^6.22.0" 481 | 482 | babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: 483 | version "6.22.0" 484 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" 485 | dependencies: 486 | babel-runtime "^6.22.0" 487 | 488 | babel-plugin-transform-es2015-block-scoping@^6.24.1: 489 | version "6.24.1" 490 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.24.1.tgz#76c295dc3a4741b1665adfd3167215dcff32a576" 491 | dependencies: 492 | babel-runtime "^6.22.0" 493 | babel-template "^6.24.1" 494 | babel-traverse "^6.24.1" 495 | babel-types "^6.24.1" 496 | lodash "^4.2.0" 497 | 498 | babel-plugin-transform-es2015-classes@^6.24.1, babel-plugin-transform-es2015-classes@^6.9.0: 499 | version "6.24.1" 500 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" 501 | dependencies: 502 | babel-helper-define-map "^6.24.1" 503 | babel-helper-function-name "^6.24.1" 504 | babel-helper-optimise-call-expression "^6.24.1" 505 | babel-helper-replace-supers "^6.24.1" 506 | babel-messages "^6.23.0" 507 | babel-runtime "^6.22.0" 508 | babel-template "^6.24.1" 509 | babel-traverse "^6.24.1" 510 | babel-types "^6.24.1" 511 | 512 | babel-plugin-transform-es2015-computed-properties@^6.24.1: 513 | version "6.24.1" 514 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" 515 | dependencies: 516 | babel-runtime "^6.22.0" 517 | babel-template "^6.24.1" 518 | 519 | babel-plugin-transform-es2015-destructuring@^6.22.0: 520 | version "6.23.0" 521 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" 522 | dependencies: 523 | babel-runtime "^6.22.0" 524 | 525 | babel-plugin-transform-es2015-duplicate-keys@^6.24.1: 526 | version "6.24.1" 527 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" 528 | dependencies: 529 | babel-runtime "^6.22.0" 530 | babel-types "^6.24.1" 531 | 532 | babel-plugin-transform-es2015-for-of@^6.22.0: 533 | version "6.23.0" 534 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" 535 | dependencies: 536 | babel-runtime "^6.22.0" 537 | 538 | babel-plugin-transform-es2015-function-name@^6.24.1: 539 | version "6.24.1" 540 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" 541 | dependencies: 542 | babel-helper-function-name "^6.24.1" 543 | babel-runtime "^6.22.0" 544 | babel-types "^6.24.1" 545 | 546 | babel-plugin-transform-es2015-literals@^6.22.0: 547 | version "6.22.0" 548 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" 549 | dependencies: 550 | babel-runtime "^6.22.0" 551 | 552 | babel-plugin-transform-es2015-modules-amd@^6.24.1: 553 | version "6.24.1" 554 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" 555 | dependencies: 556 | babel-plugin-transform-es2015-modules-commonjs "^6.24.1" 557 | babel-runtime "^6.22.0" 558 | babel-template "^6.24.1" 559 | 560 | babel-plugin-transform-es2015-modules-commonjs@^6.24.1: 561 | version "6.24.1" 562 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.24.1.tgz#d3e310b40ef664a36622200097c6d440298f2bfe" 563 | dependencies: 564 | babel-plugin-transform-strict-mode "^6.24.1" 565 | babel-runtime "^6.22.0" 566 | babel-template "^6.24.1" 567 | babel-types "^6.24.1" 568 | 569 | babel-plugin-transform-es2015-modules-systemjs@^6.24.1: 570 | version "6.24.1" 571 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" 572 | dependencies: 573 | babel-helper-hoist-variables "^6.24.1" 574 | babel-runtime "^6.22.0" 575 | babel-template "^6.24.1" 576 | 577 | babel-plugin-transform-es2015-modules-umd@^6.24.1: 578 | version "6.24.1" 579 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" 580 | dependencies: 581 | babel-plugin-transform-es2015-modules-amd "^6.24.1" 582 | babel-runtime "^6.22.0" 583 | babel-template "^6.24.1" 584 | 585 | babel-plugin-transform-es2015-object-super@^6.24.1: 586 | version "6.24.1" 587 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" 588 | dependencies: 589 | babel-helper-replace-supers "^6.24.1" 590 | babel-runtime "^6.22.0" 591 | 592 | babel-plugin-transform-es2015-parameters@^6.24.1: 593 | version "6.24.1" 594 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" 595 | dependencies: 596 | babel-helper-call-delegate "^6.24.1" 597 | babel-helper-get-function-arity "^6.24.1" 598 | babel-runtime "^6.22.0" 599 | babel-template "^6.24.1" 600 | babel-traverse "^6.24.1" 601 | babel-types "^6.24.1" 602 | 603 | babel-plugin-transform-es2015-shorthand-properties@^6.24.1: 604 | version "6.24.1" 605 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" 606 | dependencies: 607 | babel-runtime "^6.22.0" 608 | babel-types "^6.24.1" 609 | 610 | babel-plugin-transform-es2015-spread@^6.22.0: 611 | version "6.22.0" 612 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" 613 | dependencies: 614 | babel-runtime "^6.22.0" 615 | 616 | babel-plugin-transform-es2015-sticky-regex@^6.24.1: 617 | version "6.24.1" 618 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" 619 | dependencies: 620 | babel-helper-regex "^6.24.1" 621 | babel-runtime "^6.22.0" 622 | babel-types "^6.24.1" 623 | 624 | babel-plugin-transform-es2015-template-literals@^6.22.0: 625 | version "6.22.0" 626 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" 627 | dependencies: 628 | babel-runtime "^6.22.0" 629 | 630 | babel-plugin-transform-es2015-typeof-symbol@^6.22.0: 631 | version "6.23.0" 632 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" 633 | dependencies: 634 | babel-runtime "^6.22.0" 635 | 636 | babel-plugin-transform-es2015-unicode-regex@^6.24.1: 637 | version "6.24.1" 638 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" 639 | dependencies: 640 | babel-helper-regex "^6.24.1" 641 | babel-runtime "^6.22.0" 642 | regexpu-core "^2.0.0" 643 | 644 | babel-plugin-transform-exponentiation-operator@^6.24.1: 645 | version "6.24.1" 646 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" 647 | dependencies: 648 | babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" 649 | babel-plugin-syntax-exponentiation-operator "^6.8.0" 650 | babel-runtime "^6.22.0" 651 | 652 | babel-plugin-transform-export-extensions@^6.22.0: 653 | version "6.22.0" 654 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-export-extensions/-/babel-plugin-transform-export-extensions-6.22.0.tgz#53738b47e75e8218589eea946cbbd39109bbe653" 655 | dependencies: 656 | babel-plugin-syntax-export-extensions "^6.8.0" 657 | babel-runtime "^6.22.0" 658 | 659 | babel-plugin-transform-flow-strip-types@^6.3.13: 660 | version "6.22.0" 661 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf" 662 | dependencies: 663 | babel-plugin-syntax-flow "^6.18.0" 664 | babel-runtime "^6.22.0" 665 | 666 | babel-plugin-transform-function-bind@^6.22.0: 667 | version "6.22.0" 668 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-function-bind/-/babel-plugin-transform-function-bind-6.22.0.tgz#c6fb8e96ac296a310b8cf8ea401462407ddf6a97" 669 | dependencies: 670 | babel-plugin-syntax-function-bind "^6.8.0" 671 | babel-runtime "^6.22.0" 672 | 673 | babel-plugin-transform-object-rest-spread@^6.22.0: 674 | version "6.23.0" 675 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.23.0.tgz#875d6bc9be761c58a2ae3feee5dc4895d8c7f921" 676 | dependencies: 677 | babel-plugin-syntax-object-rest-spread "^6.8.0" 678 | babel-runtime "^6.22.0" 679 | 680 | babel-plugin-transform-react-display-name@^6.3.13: 681 | version "6.25.0" 682 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-display-name/-/babel-plugin-transform-react-display-name-6.25.0.tgz#67e2bf1f1e9c93ab08db96792e05392bf2cc28d1" 683 | dependencies: 684 | babel-runtime "^6.22.0" 685 | 686 | babel-plugin-transform-react-jsx-self@^6.11.0: 687 | version "6.22.0" 688 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-self/-/babel-plugin-transform-react-jsx-self-6.22.0.tgz#df6d80a9da2612a121e6ddd7558bcbecf06e636e" 689 | dependencies: 690 | babel-plugin-syntax-jsx "^6.8.0" 691 | babel-runtime "^6.22.0" 692 | 693 | babel-plugin-transform-react-jsx-source@^6.3.13: 694 | version "6.22.0" 695 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-source/-/babel-plugin-transform-react-jsx-source-6.22.0.tgz#66ac12153f5cd2d17b3c19268f4bf0197f44ecd6" 696 | dependencies: 697 | babel-plugin-syntax-jsx "^6.8.0" 698 | babel-runtime "^6.22.0" 699 | 700 | babel-plugin-transform-react-jsx@^6.3.13: 701 | version "6.24.1" 702 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz#840a028e7df460dfc3a2d29f0c0d91f6376e66a3" 703 | dependencies: 704 | babel-helper-builder-react-jsx "^6.24.1" 705 | babel-plugin-syntax-jsx "^6.8.0" 706 | babel-runtime "^6.22.0" 707 | 708 | babel-plugin-transform-regenerator@^6.24.1: 709 | version "6.24.1" 710 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.24.1.tgz#b8da305ad43c3c99b4848e4fe4037b770d23c418" 711 | dependencies: 712 | regenerator-transform "0.9.11" 713 | 714 | babel-plugin-transform-runtime@^6.15.0: 715 | version "6.23.0" 716 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz#88490d446502ea9b8e7efb0fe09ec4d99479b1ee" 717 | dependencies: 718 | babel-runtime "^6.22.0" 719 | 720 | babel-plugin-transform-strict-mode@^6.24.1: 721 | version "6.24.1" 722 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" 723 | dependencies: 724 | babel-runtime "^6.22.0" 725 | babel-types "^6.24.1" 726 | 727 | babel-polyfill@^6.13.0: 728 | version "6.23.0" 729 | resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.23.0.tgz#8364ca62df8eafb830499f699177466c3b03499d" 730 | dependencies: 731 | babel-runtime "^6.22.0" 732 | core-js "^2.4.0" 733 | regenerator-runtime "^0.10.0" 734 | 735 | babel-preset-es2015-rollup@^1.2.0: 736 | version "1.2.0" 737 | resolved "https://registry.yarnpkg.com/babel-preset-es2015-rollup/-/babel-preset-es2015-rollup-1.2.0.tgz#feedf80346e01fa22d4de15e72cde1cefc59bf67" 738 | dependencies: 739 | babel-plugin-external-helpers "^6.4.0" 740 | babel-preset-es2015 "^6.3.13" 741 | modify-babel-preset "^2.1.1" 742 | 743 | babel-preset-es2015@^6.14.0, babel-preset-es2015@^6.3.13: 744 | version "6.24.1" 745 | resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939" 746 | dependencies: 747 | babel-plugin-check-es2015-constants "^6.22.0" 748 | babel-plugin-transform-es2015-arrow-functions "^6.22.0" 749 | babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" 750 | babel-plugin-transform-es2015-block-scoping "^6.24.1" 751 | babel-plugin-transform-es2015-classes "^6.24.1" 752 | babel-plugin-transform-es2015-computed-properties "^6.24.1" 753 | babel-plugin-transform-es2015-destructuring "^6.22.0" 754 | babel-plugin-transform-es2015-duplicate-keys "^6.24.1" 755 | babel-plugin-transform-es2015-for-of "^6.22.0" 756 | babel-plugin-transform-es2015-function-name "^6.24.1" 757 | babel-plugin-transform-es2015-literals "^6.22.0" 758 | babel-plugin-transform-es2015-modules-amd "^6.24.1" 759 | babel-plugin-transform-es2015-modules-commonjs "^6.24.1" 760 | babel-plugin-transform-es2015-modules-systemjs "^6.24.1" 761 | babel-plugin-transform-es2015-modules-umd "^6.24.1" 762 | babel-plugin-transform-es2015-object-super "^6.24.1" 763 | babel-plugin-transform-es2015-parameters "^6.24.1" 764 | babel-plugin-transform-es2015-shorthand-properties "^6.24.1" 765 | babel-plugin-transform-es2015-spread "^6.22.0" 766 | babel-plugin-transform-es2015-sticky-regex "^6.24.1" 767 | babel-plugin-transform-es2015-template-literals "^6.22.0" 768 | babel-plugin-transform-es2015-typeof-symbol "^6.22.0" 769 | babel-plugin-transform-es2015-unicode-regex "^6.24.1" 770 | babel-plugin-transform-regenerator "^6.24.1" 771 | 772 | babel-preset-jest@^15.0.0: 773 | version "15.0.0" 774 | resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-15.0.0.tgz#f23988f1f918673ff9b470fdfd60fcc19bc618f5" 775 | dependencies: 776 | babel-plugin-jest-hoist "^15.0.0" 777 | 778 | babel-preset-react@6.11.1: 779 | version "6.11.1" 780 | resolved "https://registry.yarnpkg.com/babel-preset-react/-/babel-preset-react-6.11.1.tgz#98ac2bd3c1b76f3062ae082580eade154a19b590" 781 | dependencies: 782 | babel-plugin-syntax-flow "^6.3.13" 783 | babel-plugin-syntax-jsx "^6.3.13" 784 | babel-plugin-transform-flow-strip-types "^6.3.13" 785 | babel-plugin-transform-react-display-name "^6.3.13" 786 | babel-plugin-transform-react-jsx "^6.3.13" 787 | babel-plugin-transform-react-jsx-self "^6.11.0" 788 | babel-plugin-transform-react-jsx-source "^6.3.13" 789 | 790 | babel-preset-stage-0@^6.5.0: 791 | version "6.24.1" 792 | resolved "https://registry.yarnpkg.com/babel-preset-stage-0/-/babel-preset-stage-0-6.24.1.tgz#5642d15042f91384d7e5af8bc88b1db95b039e6a" 793 | dependencies: 794 | babel-plugin-transform-do-expressions "^6.22.0" 795 | babel-plugin-transform-function-bind "^6.22.0" 796 | babel-preset-stage-1 "^6.24.1" 797 | 798 | babel-preset-stage-1@^6.24.1: 799 | version "6.24.1" 800 | resolved "https://registry.yarnpkg.com/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz#7692cd7dcd6849907e6ae4a0a85589cfb9e2bfb0" 801 | dependencies: 802 | babel-plugin-transform-class-constructor-call "^6.24.1" 803 | babel-plugin-transform-export-extensions "^6.22.0" 804 | babel-preset-stage-2 "^6.24.1" 805 | 806 | babel-preset-stage-2@^6.24.1: 807 | version "6.24.1" 808 | resolved "https://registry.yarnpkg.com/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz#d9e2960fb3d71187f0e64eec62bc07767219bdc1" 809 | dependencies: 810 | babel-plugin-syntax-dynamic-import "^6.18.0" 811 | babel-plugin-transform-class-properties "^6.24.1" 812 | babel-plugin-transform-decorators "^6.24.1" 813 | babel-preset-stage-3 "^6.24.1" 814 | 815 | babel-preset-stage-3@^6.24.1: 816 | version "6.24.1" 817 | resolved "https://registry.yarnpkg.com/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz#836ada0a9e7a7fa37cb138fb9326f87934a48395" 818 | dependencies: 819 | babel-plugin-syntax-trailing-function-commas "^6.22.0" 820 | babel-plugin-transform-async-generator-functions "^6.24.1" 821 | babel-plugin-transform-async-to-generator "^6.24.1" 822 | babel-plugin-transform-exponentiation-operator "^6.24.1" 823 | babel-plugin-transform-object-rest-spread "^6.22.0" 824 | 825 | babel-register@^6.24.1: 826 | version "6.24.1" 827 | resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.24.1.tgz#7e10e13a2f71065bdfad5a1787ba45bca6ded75f" 828 | dependencies: 829 | babel-core "^6.24.1" 830 | babel-runtime "^6.22.0" 831 | core-js "^2.4.0" 832 | home-or-tmp "^2.0.0" 833 | lodash "^4.2.0" 834 | mkdirp "^0.5.1" 835 | source-map-support "^0.4.2" 836 | 837 | babel-runtime@^6.18.0, babel-runtime@^6.2.0, babel-runtime@^6.22.0, babel-runtime@^6.25.0: 838 | version "6.25.0" 839 | resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.25.0.tgz#33b98eaa5d482bb01a8d1aa6b437ad2b01aec41c" 840 | dependencies: 841 | core-js "^2.4.0" 842 | regenerator-runtime "^0.10.0" 843 | 844 | babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.25.0, babel-template@^6.3.0: 845 | version "6.25.0" 846 | resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.25.0.tgz#665241166b7c2aa4c619d71e192969552b10c071" 847 | dependencies: 848 | babel-runtime "^6.22.0" 849 | babel-traverse "^6.25.0" 850 | babel-types "^6.25.0" 851 | babylon "^6.17.2" 852 | lodash "^4.2.0" 853 | 854 | babel-traverse@^6.18.0, babel-traverse@^6.24.1, babel-traverse@^6.25.0: 855 | version "6.25.0" 856 | resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.25.0.tgz#2257497e2fcd19b89edc13c4c91381f9512496f1" 857 | dependencies: 858 | babel-code-frame "^6.22.0" 859 | babel-messages "^6.23.0" 860 | babel-runtime "^6.22.0" 861 | babel-types "^6.25.0" 862 | babylon "^6.17.2" 863 | debug "^2.2.0" 864 | globals "^9.0.0" 865 | invariant "^2.2.0" 866 | lodash "^4.2.0" 867 | 868 | babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.25.0: 869 | version "6.25.0" 870 | resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.25.0.tgz#70afb248d5660e5d18f811d91c8303b54134a18e" 871 | dependencies: 872 | babel-runtime "^6.22.0" 873 | esutils "^2.0.2" 874 | lodash "^4.2.0" 875 | to-fast-properties "^1.0.1" 876 | 877 | babylon@^6.17.2, babylon@^6.17.4: 878 | version "6.17.4" 879 | resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.17.4.tgz#3e8b7402b88d22c3423e137a1577883b15ff869a" 880 | 881 | balanced-match@^1.0.0: 882 | version "1.0.0" 883 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" 884 | 885 | bcrypt-pbkdf@^1.0.0: 886 | version "1.0.1" 887 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" 888 | dependencies: 889 | tweetnacl "^0.14.3" 890 | 891 | boom@2.x.x: 892 | version "2.10.1" 893 | resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" 894 | dependencies: 895 | hoek "2.x.x" 896 | 897 | brace-expansion@^1.1.7: 898 | version "1.1.8" 899 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" 900 | dependencies: 901 | balanced-match "^1.0.0" 902 | concat-map "0.0.1" 903 | 904 | braces@^1.8.2: 905 | version "1.8.5" 906 | resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" 907 | dependencies: 908 | expand-range "^1.8.1" 909 | preserve "^0.2.0" 910 | repeat-element "^1.1.2" 911 | 912 | browser-resolve@^1.11.0, browser-resolve@^1.11.2: 913 | version "1.11.2" 914 | resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.2.tgz#8ff09b0a2c421718a1051c260b32e48f442938ce" 915 | dependencies: 916 | resolve "1.1.7" 917 | 918 | bser@1.0.2: 919 | version "1.0.2" 920 | resolved "https://registry.yarnpkg.com/bser/-/bser-1.0.2.tgz#381116970b2a6deea5646dd15dd7278444b56169" 921 | dependencies: 922 | node-int64 "^0.4.0" 923 | 924 | builtin-modules@^1.0.0, builtin-modules@^1.1.0: 925 | version "1.1.1" 926 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 927 | 928 | callsites@^2.0.0: 929 | version "2.0.0" 930 | resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" 931 | 932 | camel-case@^3.0.0: 933 | version "3.0.0" 934 | resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-3.0.0.tgz#ca3c3688a4e9cf3a4cda777dc4dcbc713249cf73" 935 | dependencies: 936 | no-case "^2.2.0" 937 | upper-case "^1.1.1" 938 | 939 | camelcase@^1.0.2: 940 | version "1.2.1" 941 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" 942 | 943 | camelcase@^3.0.0: 944 | version "3.0.0" 945 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" 946 | 947 | cardinal@^1.0.0: 948 | version "1.0.0" 949 | resolved "https://registry.yarnpkg.com/cardinal/-/cardinal-1.0.0.tgz#50e21c1b0aa37729f9377def196b5a9cec932ee9" 950 | dependencies: 951 | ansicolors "~0.2.1" 952 | redeyed "~1.0.0" 953 | 954 | caseless@~0.12.0: 955 | version "0.12.0" 956 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" 957 | 958 | center-align@^0.1.1: 959 | version "0.1.3" 960 | resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" 961 | dependencies: 962 | align-text "^0.1.3" 963 | lazy-cache "^1.0.3" 964 | 965 | chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3: 966 | version "1.1.3" 967 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" 968 | dependencies: 969 | ansi-styles "^2.2.1" 970 | escape-string-regexp "^1.0.2" 971 | has-ansi "^2.0.0" 972 | strip-ansi "^3.0.0" 973 | supports-color "^2.0.0" 974 | 975 | cli-table@^0.3.1: 976 | version "0.3.1" 977 | resolved "https://registry.yarnpkg.com/cli-table/-/cli-table-0.3.1.tgz#f53b05266a8b1a0b934b3d0821e6e2dc5914ae23" 978 | dependencies: 979 | colors "1.0.3" 980 | 981 | cli-usage@^0.1.1: 982 | version "0.1.4" 983 | resolved "https://registry.yarnpkg.com/cli-usage/-/cli-usage-0.1.4.tgz#7c01e0dc706c234b39c933838c8e20b2175776e2" 984 | dependencies: 985 | marked "^0.3.6" 986 | marked-terminal "^1.6.2" 987 | 988 | cliui@^2.1.0: 989 | version "2.1.0" 990 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" 991 | dependencies: 992 | center-align "^0.1.1" 993 | right-align "^0.1.1" 994 | wordwrap "0.0.2" 995 | 996 | cliui@^3.2.0: 997 | version "3.2.0" 998 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" 999 | dependencies: 1000 | string-width "^1.0.1" 1001 | strip-ansi "^3.0.1" 1002 | wrap-ansi "^2.0.0" 1003 | 1004 | co@^4.6.0: 1005 | version "4.6.0" 1006 | resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" 1007 | 1008 | code-point-at@^1.0.0: 1009 | version "1.1.0" 1010 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 1011 | 1012 | colors@1.0.3: 1013 | version "1.0.3" 1014 | resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" 1015 | 1016 | combined-stream@^1.0.5, combined-stream@~1.0.5: 1017 | version "1.0.5" 1018 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" 1019 | dependencies: 1020 | delayed-stream "~1.0.0" 1021 | 1022 | commander@^2.9.0: 1023 | version "2.11.0" 1024 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563" 1025 | 1026 | concat-map@0.0.1: 1027 | version "0.0.1" 1028 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 1029 | 1030 | content-type-parser@^1.0.1: 1031 | version "1.0.1" 1032 | resolved "https://registry.yarnpkg.com/content-type-parser/-/content-type-parser-1.0.1.tgz#c3e56988c53c65127fb46d4032a3a900246fdc94" 1033 | 1034 | convert-source-map@^1.1.0: 1035 | version "1.5.0" 1036 | resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.0.tgz#9acd70851c6d5dfdd93d9282e5edf94a03ff46b5" 1037 | 1038 | core-js@^1.0.0: 1039 | version "1.2.7" 1040 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" 1041 | 1042 | core-js@^2.4.0: 1043 | version "2.5.0" 1044 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.0.tgz#569c050918be6486b3837552028ae0466b717086" 1045 | 1046 | core-util-is@1.0.2: 1047 | version "1.0.2" 1048 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 1049 | 1050 | cryptiles@2.x.x: 1051 | version "2.0.5" 1052 | resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" 1053 | dependencies: 1054 | boom "2.x.x" 1055 | 1056 | cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": 1057 | version "0.3.2" 1058 | resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.2.tgz#b8036170c79f07a90ff2f16e22284027a243848b" 1059 | 1060 | "cssstyle@>= 0.2.37 < 0.3.0": 1061 | version "0.2.37" 1062 | resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-0.2.37.tgz#541097234cb2513c83ceed3acddc27ff27987d54" 1063 | dependencies: 1064 | cssom "0.3.x" 1065 | 1066 | dashdash@^1.12.0: 1067 | version "1.14.1" 1068 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 1069 | dependencies: 1070 | assert-plus "^1.0.0" 1071 | 1072 | debug@^2.1.1, debug@^2.2.0, debug@^2.6.3: 1073 | version "2.6.8" 1074 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc" 1075 | dependencies: 1076 | ms "2.0.0" 1077 | 1078 | decamelize@^1.0.0, decamelize@^1.1.1: 1079 | version "1.2.0" 1080 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" 1081 | 1082 | deep-is@~0.1.3: 1083 | version "0.1.3" 1084 | resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" 1085 | 1086 | default-require-extensions@^1.0.0: 1087 | version "1.0.0" 1088 | resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-1.0.0.tgz#f37ea15d3e13ffd9b437d33e1a75b5fb97874cb8" 1089 | dependencies: 1090 | strip-bom "^2.0.0" 1091 | 1092 | delayed-stream@~1.0.0: 1093 | version "1.0.0" 1094 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 1095 | 1096 | detect-indent@^4.0.0: 1097 | version "4.0.0" 1098 | resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" 1099 | dependencies: 1100 | repeating "^2.0.0" 1101 | 1102 | diff@^3.0.0: 1103 | version "3.3.0" 1104 | resolved "https://registry.yarnpkg.com/diff/-/diff-3.3.0.tgz#056695150d7aa93237ca7e378ac3b1682b7963b9" 1105 | 1106 | director@1.2.8: 1107 | version "1.2.8" 1108 | resolved "https://registry.yarnpkg.com/director/-/director-1.2.8.tgz#c6d9b4dd890e9aff5365183fe9cc8e73994cf2d5" 1109 | 1110 | ecc-jsbn@~0.1.1: 1111 | version "0.1.1" 1112 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" 1113 | dependencies: 1114 | jsbn "~0.1.0" 1115 | 1116 | encoding@^0.1.11: 1117 | version "0.1.12" 1118 | resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" 1119 | dependencies: 1120 | iconv-lite "~0.4.13" 1121 | 1122 | errno@^0.1.4: 1123 | version "0.1.4" 1124 | resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d" 1125 | dependencies: 1126 | prr "~0.0.0" 1127 | 1128 | error-ex@^1.2.0: 1129 | version "1.3.1" 1130 | resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" 1131 | dependencies: 1132 | is-arrayish "^0.2.1" 1133 | 1134 | escape-string-regexp@^1.0.2: 1135 | version "1.0.5" 1136 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 1137 | 1138 | escodegen@1.8.x, escodegen@^1.6.1: 1139 | version "1.8.1" 1140 | resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.8.1.tgz#5a5b53af4693110bebb0867aa3430dd3b70a1018" 1141 | dependencies: 1142 | esprima "^2.7.1" 1143 | estraverse "^1.9.1" 1144 | esutils "^2.0.2" 1145 | optionator "^0.8.1" 1146 | optionalDependencies: 1147 | source-map "~0.2.0" 1148 | 1149 | esprima@2.7.x, esprima@^2.7.1: 1150 | version "2.7.3" 1151 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" 1152 | 1153 | esprima@^4.0.0: 1154 | version "4.0.0" 1155 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" 1156 | 1157 | esprima@~3.0.0: 1158 | version "3.0.0" 1159 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.0.0.tgz#53cf247acda77313e551c3aa2e73342d3fb4f7d9" 1160 | 1161 | estraverse@^1.9.1: 1162 | version "1.9.3" 1163 | resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44" 1164 | 1165 | estree-walker@^0.2.1: 1166 | version "0.2.1" 1167 | resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.2.1.tgz#bdafe8095383d8414d5dc2ecf4c9173b6db9412e" 1168 | 1169 | estree-walker@^0.3.0: 1170 | version "0.3.1" 1171 | resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.3.1.tgz#e6b1a51cf7292524e7237c312e5fe6660c1ce1aa" 1172 | 1173 | esutils@^2.0.0, esutils@^2.0.2: 1174 | version "2.0.2" 1175 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 1176 | 1177 | exec-sh@^0.2.0: 1178 | version "0.2.0" 1179 | resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.0.tgz#14f75de3f20d286ef933099b2ce50a90359cef10" 1180 | dependencies: 1181 | merge "^1.1.3" 1182 | 1183 | expand-brackets@^0.1.4: 1184 | version "0.1.5" 1185 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" 1186 | dependencies: 1187 | is-posix-bracket "^0.1.0" 1188 | 1189 | expand-range@^1.8.1: 1190 | version "1.8.2" 1191 | resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" 1192 | dependencies: 1193 | fill-range "^2.1.0" 1194 | 1195 | extend@~3.0.0: 1196 | version "3.0.1" 1197 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" 1198 | 1199 | extglob@^0.3.1: 1200 | version "0.3.2" 1201 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" 1202 | dependencies: 1203 | is-extglob "^1.0.0" 1204 | 1205 | extsprintf@1.3.0, extsprintf@^1.2.0: 1206 | version "1.3.0" 1207 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" 1208 | 1209 | fast-levenshtein@~2.0.4: 1210 | version "2.0.6" 1211 | resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" 1212 | 1213 | fb-watchman@^1.8.0, fb-watchman@^1.9.0: 1214 | version "1.9.2" 1215 | resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-1.9.2.tgz#a24cf47827f82d38fb59a69ad70b76e3b6ae7383" 1216 | dependencies: 1217 | bser "1.0.2" 1218 | 1219 | fbjs@^0.8.4: 1220 | version "0.8.14" 1221 | resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.14.tgz#d1dbe2be254c35a91e09f31f9cd50a40b2a0ed1c" 1222 | dependencies: 1223 | core-js "^1.0.0" 1224 | isomorphic-fetch "^2.1.1" 1225 | loose-envify "^1.0.0" 1226 | object-assign "^4.1.0" 1227 | promise "^7.1.1" 1228 | setimmediate "^1.0.5" 1229 | ua-parser-js "^0.7.9" 1230 | 1231 | filename-regex@^2.0.0: 1232 | version "2.0.1" 1233 | resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" 1234 | 1235 | fileset@^2.0.2: 1236 | version "2.0.3" 1237 | resolved "https://registry.yarnpkg.com/fileset/-/fileset-2.0.3.tgz#8e7548a96d3cc2327ee5e674168723a333bba2a0" 1238 | dependencies: 1239 | glob "^7.0.3" 1240 | minimatch "^3.0.3" 1241 | 1242 | fill-range@^2.1.0: 1243 | version "2.2.3" 1244 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" 1245 | dependencies: 1246 | is-number "^2.1.0" 1247 | isobject "^2.0.0" 1248 | randomatic "^1.1.3" 1249 | repeat-element "^1.1.2" 1250 | repeat-string "^1.5.2" 1251 | 1252 | find-up@^1.0.0, find-up@^1.1.2: 1253 | version "1.1.2" 1254 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" 1255 | dependencies: 1256 | path-exists "^2.0.0" 1257 | pinkie-promise "^2.0.0" 1258 | 1259 | for-in@^1.0.1: 1260 | version "1.0.2" 1261 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" 1262 | 1263 | for-own@^0.1.4: 1264 | version "0.1.5" 1265 | resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" 1266 | dependencies: 1267 | for-in "^1.0.1" 1268 | 1269 | forever-agent@~0.6.1: 1270 | version "0.6.1" 1271 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 1272 | 1273 | form-data@~2.1.1: 1274 | version "2.1.4" 1275 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" 1276 | dependencies: 1277 | asynckit "^0.4.0" 1278 | combined-stream "^1.0.5" 1279 | mime-types "^2.1.12" 1280 | 1281 | fs.realpath@^1.0.0: 1282 | version "1.0.0" 1283 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 1284 | 1285 | get-caller-file@^1.0.1: 1286 | version "1.0.2" 1287 | resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" 1288 | 1289 | getpass@^0.1.1: 1290 | version "0.1.7" 1291 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" 1292 | dependencies: 1293 | assert-plus "^1.0.0" 1294 | 1295 | glob-base@^0.3.0: 1296 | version "0.3.0" 1297 | resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" 1298 | dependencies: 1299 | glob-parent "^2.0.0" 1300 | is-glob "^2.0.0" 1301 | 1302 | glob-parent@^2.0.0: 1303 | version "2.0.0" 1304 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" 1305 | dependencies: 1306 | is-glob "^2.0.0" 1307 | 1308 | glob@^5.0.15: 1309 | version "5.0.15" 1310 | resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" 1311 | dependencies: 1312 | inflight "^1.0.4" 1313 | inherits "2" 1314 | minimatch "2 || 3" 1315 | once "^1.3.0" 1316 | path-is-absolute "^1.0.0" 1317 | 1318 | glob@^7.0.3, glob@^7.0.5: 1319 | version "7.1.2" 1320 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" 1321 | dependencies: 1322 | fs.realpath "^1.0.0" 1323 | inflight "^1.0.4" 1324 | inherits "2" 1325 | minimatch "^3.0.4" 1326 | once "^1.3.0" 1327 | path-is-absolute "^1.0.0" 1328 | 1329 | globals@^9.0.0: 1330 | version "9.18.0" 1331 | resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" 1332 | 1333 | graceful-fs@^4.1.2, graceful-fs@^4.1.6: 1334 | version "4.1.11" 1335 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" 1336 | 1337 | growly@^1.2.0: 1338 | version "1.3.0" 1339 | resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" 1340 | 1341 | handlebars@^4.0.1, handlebars@^4.0.3: 1342 | version "4.0.10" 1343 | resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.10.tgz#3d30c718b09a3d96f23ea4cc1f403c4d3ba9ff4f" 1344 | dependencies: 1345 | async "^1.4.0" 1346 | optimist "^0.6.1" 1347 | source-map "^0.4.4" 1348 | optionalDependencies: 1349 | uglify-js "^2.6" 1350 | 1351 | har-schema@^1.0.5: 1352 | version "1.0.5" 1353 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" 1354 | 1355 | har-validator@~4.2.1: 1356 | version "4.2.1" 1357 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" 1358 | dependencies: 1359 | ajv "^4.9.1" 1360 | har-schema "^1.0.5" 1361 | 1362 | has-ansi@^2.0.0: 1363 | version "2.0.0" 1364 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" 1365 | dependencies: 1366 | ansi-regex "^2.0.0" 1367 | 1368 | has-flag@^1.0.0: 1369 | version "1.0.0" 1370 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" 1371 | 1372 | hawk@~3.1.3: 1373 | version "3.1.3" 1374 | resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" 1375 | dependencies: 1376 | boom "2.x.x" 1377 | cryptiles "2.x.x" 1378 | hoek "2.x.x" 1379 | sntp "1.x.x" 1380 | 1381 | hoek@2.x.x: 1382 | version "2.16.3" 1383 | resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" 1384 | 1385 | hoist-non-react-statics@^1.2.0: 1386 | version "1.2.0" 1387 | resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-1.2.0.tgz#aa448cf0986d55cc40773b17174b7dd066cb7cfb" 1388 | 1389 | home-or-tmp@^2.0.0: 1390 | version "2.0.0" 1391 | resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" 1392 | dependencies: 1393 | os-homedir "^1.0.0" 1394 | os-tmpdir "^1.0.1" 1395 | 1396 | hosted-git-info@^2.1.4: 1397 | version "2.5.0" 1398 | resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c" 1399 | 1400 | html-encoding-sniffer@^1.0.1: 1401 | version "1.0.1" 1402 | resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.1.tgz#79bf7a785ea495fe66165e734153f363ff5437da" 1403 | dependencies: 1404 | whatwg-encoding "^1.0.1" 1405 | 1406 | http-signature@~1.1.0: 1407 | version "1.1.1" 1408 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" 1409 | dependencies: 1410 | assert-plus "^0.2.0" 1411 | jsprim "^1.2.2" 1412 | sshpk "^1.7.0" 1413 | 1414 | iconv-lite@0.4.13: 1415 | version "0.4.13" 1416 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.13.tgz#1f88aba4ab0b1508e8312acc39345f36e992e2f2" 1417 | 1418 | iconv-lite@~0.4.13: 1419 | version "0.4.18" 1420 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.18.tgz#23d8656b16aae6742ac29732ea8f0336a4789cf2" 1421 | 1422 | inflight@^1.0.4: 1423 | version "1.0.6" 1424 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 1425 | dependencies: 1426 | once "^1.3.0" 1427 | wrappy "1" 1428 | 1429 | inherits@2: 1430 | version "2.0.3" 1431 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 1432 | 1433 | invariant@^2.2.0: 1434 | version "2.2.2" 1435 | resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" 1436 | dependencies: 1437 | loose-envify "^1.0.0" 1438 | 1439 | invert-kv@^1.0.0: 1440 | version "1.0.0" 1441 | resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" 1442 | 1443 | is-arrayish@^0.2.1: 1444 | version "0.2.1" 1445 | resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 1446 | 1447 | is-buffer@^1.1.5: 1448 | version "1.1.5" 1449 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc" 1450 | 1451 | is-builtin-module@^1.0.0: 1452 | version "1.0.0" 1453 | resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" 1454 | dependencies: 1455 | builtin-modules "^1.0.0" 1456 | 1457 | is-dotfile@^1.0.0: 1458 | version "1.0.3" 1459 | resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" 1460 | 1461 | is-equal-shallow@^0.1.3: 1462 | version "0.1.3" 1463 | resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" 1464 | dependencies: 1465 | is-primitive "^2.0.0" 1466 | 1467 | is-extendable@^0.1.1: 1468 | version "0.1.1" 1469 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" 1470 | 1471 | is-extglob@^1.0.0: 1472 | version "1.0.0" 1473 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" 1474 | 1475 | is-finite@^1.0.0: 1476 | version "1.0.2" 1477 | resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" 1478 | dependencies: 1479 | number-is-nan "^1.0.0" 1480 | 1481 | is-fullwidth-code-point@^1.0.0: 1482 | version "1.0.0" 1483 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 1484 | dependencies: 1485 | number-is-nan "^1.0.0" 1486 | 1487 | is-glob@^2.0.0, is-glob@^2.0.1: 1488 | version "2.0.1" 1489 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" 1490 | dependencies: 1491 | is-extglob "^1.0.0" 1492 | 1493 | is-number@^2.1.0: 1494 | version "2.1.0" 1495 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" 1496 | dependencies: 1497 | kind-of "^3.0.2" 1498 | 1499 | is-number@^3.0.0: 1500 | version "3.0.0" 1501 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" 1502 | dependencies: 1503 | kind-of "^3.0.2" 1504 | 1505 | is-posix-bracket@^0.1.0: 1506 | version "0.1.1" 1507 | resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" 1508 | 1509 | is-primitive@^2.0.0: 1510 | version "2.0.0" 1511 | resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" 1512 | 1513 | is-stream@^1.0.1: 1514 | version "1.1.0" 1515 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 1516 | 1517 | is-typedarray@~1.0.0: 1518 | version "1.0.0" 1519 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 1520 | 1521 | is-utf8@^0.2.0: 1522 | version "0.2.1" 1523 | resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" 1524 | 1525 | isarray@1.0.0: 1526 | version "1.0.0" 1527 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 1528 | 1529 | isexe@^2.0.0: 1530 | version "2.0.0" 1531 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 1532 | 1533 | isobject@^2.0.0: 1534 | version "2.1.0" 1535 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" 1536 | dependencies: 1537 | isarray "1.0.0" 1538 | 1539 | isomorphic-fetch@^2.1.1: 1540 | version "2.2.1" 1541 | resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" 1542 | dependencies: 1543 | node-fetch "^1.0.1" 1544 | whatwg-fetch ">=0.10.0" 1545 | 1546 | isstream@~0.1.2: 1547 | version "0.1.2" 1548 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 1549 | 1550 | istanbul-api@^1.0.0-aplha.10: 1551 | version "1.1.11" 1552 | resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.1.11.tgz#fcc0b461e2b3bda71e305155138238768257d9de" 1553 | dependencies: 1554 | async "^2.1.4" 1555 | fileset "^2.0.2" 1556 | istanbul-lib-coverage "^1.1.1" 1557 | istanbul-lib-hook "^1.0.7" 1558 | istanbul-lib-instrument "^1.7.4" 1559 | istanbul-lib-report "^1.1.1" 1560 | istanbul-lib-source-maps "^1.2.1" 1561 | istanbul-reports "^1.1.1" 1562 | js-yaml "^3.7.0" 1563 | mkdirp "^0.5.1" 1564 | once "^1.4.0" 1565 | 1566 | istanbul-lib-coverage@^1.0.0, istanbul-lib-coverage@^1.1.1: 1567 | version "1.1.1" 1568 | resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.1.1.tgz#73bfb998885299415c93d38a3e9adf784a77a9da" 1569 | 1570 | istanbul-lib-hook@^1.0.7: 1571 | version "1.0.7" 1572 | resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.0.7.tgz#dd6607f03076578fe7d6f2a630cf143b49bacddc" 1573 | dependencies: 1574 | append-transform "^0.4.0" 1575 | 1576 | istanbul-lib-instrument@^1.1.1, istanbul-lib-instrument@^1.1.4, istanbul-lib-instrument@^1.7.4: 1577 | version "1.7.4" 1578 | resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.7.4.tgz#e9fd920e4767f3d19edc765e2d6b3f5ccbd0eea8" 1579 | dependencies: 1580 | babel-generator "^6.18.0" 1581 | babel-template "^6.16.0" 1582 | babel-traverse "^6.18.0" 1583 | babel-types "^6.18.0" 1584 | babylon "^6.17.4" 1585 | istanbul-lib-coverage "^1.1.1" 1586 | semver "^5.3.0" 1587 | 1588 | istanbul-lib-report@^1.1.1: 1589 | version "1.1.1" 1590 | resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.1.1.tgz#f0e55f56655ffa34222080b7a0cd4760e1405fc9" 1591 | dependencies: 1592 | istanbul-lib-coverage "^1.1.1" 1593 | mkdirp "^0.5.1" 1594 | path-parse "^1.0.5" 1595 | supports-color "^3.1.2" 1596 | 1597 | istanbul-lib-source-maps@^1.2.1: 1598 | version "1.2.1" 1599 | resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.1.tgz#a6fe1acba8ce08eebc638e572e294d267008aa0c" 1600 | dependencies: 1601 | debug "^2.6.3" 1602 | istanbul-lib-coverage "^1.1.1" 1603 | mkdirp "^0.5.1" 1604 | rimraf "^2.6.1" 1605 | source-map "^0.5.3" 1606 | 1607 | istanbul-reports@^1.1.1: 1608 | version "1.1.1" 1609 | resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.1.1.tgz#042be5c89e175bc3f86523caab29c014e77fee4e" 1610 | dependencies: 1611 | handlebars "^4.0.3" 1612 | 1613 | istanbul@^0.4.5: 1614 | version "0.4.5" 1615 | resolved "https://registry.yarnpkg.com/istanbul/-/istanbul-0.4.5.tgz#65c7d73d4c4da84d4f3ac310b918fb0b8033733b" 1616 | dependencies: 1617 | abbrev "1.0.x" 1618 | async "1.x" 1619 | escodegen "1.8.x" 1620 | esprima "2.7.x" 1621 | glob "^5.0.15" 1622 | handlebars "^4.0.1" 1623 | js-yaml "3.x" 1624 | mkdirp "0.5.x" 1625 | nopt "3.x" 1626 | once "1.x" 1627 | resolve "1.1.x" 1628 | supports-color "^3.1.0" 1629 | which "^1.1.1" 1630 | wordwrap "^1.0.0" 1631 | 1632 | jasmine-check@^0.1.4: 1633 | version "0.1.5" 1634 | resolved "https://registry.yarnpkg.com/jasmine-check/-/jasmine-check-0.1.5.tgz#dbad7eec56261c4b3d175ada55fe59b09ac9e415" 1635 | dependencies: 1636 | testcheck "^0.1.0" 1637 | 1638 | jest-changed-files@^15.0.0: 1639 | version "15.0.0" 1640 | resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-15.0.0.tgz#3ac99d97dc4ac045ad4adae8d967cc1317382571" 1641 | 1642 | jest-cli@^15.1.1: 1643 | version "15.1.1" 1644 | resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-15.1.1.tgz#53f271281f90d3b4043eca9ce9af69dd04bbda3e" 1645 | dependencies: 1646 | ansi-escapes "^1.4.0" 1647 | callsites "^2.0.0" 1648 | chalk "^1.1.1" 1649 | graceful-fs "^4.1.6" 1650 | istanbul-api "^1.0.0-aplha.10" 1651 | istanbul-lib-coverage "^1.0.0" 1652 | istanbul-lib-instrument "^1.1.1" 1653 | jest-changed-files "^15.0.0" 1654 | jest-config "^15.1.1" 1655 | jest-environment-jsdom "^15.1.1" 1656 | jest-file-exists "^15.0.0" 1657 | jest-haste-map "^15.0.1" 1658 | jest-jasmine2 "^15.1.1" 1659 | jest-mock "^15.0.0" 1660 | jest-resolve "^15.0.1" 1661 | jest-resolve-dependencies "^15.0.1" 1662 | jest-runtime "^15.1.1" 1663 | jest-snapshot "^15.1.1" 1664 | jest-util "^15.1.1" 1665 | json-stable-stringify "^1.0.0" 1666 | node-notifier "^4.6.1" 1667 | sane "~1.4.1" 1668 | which "^1.1.1" 1669 | worker-farm "^1.3.1" 1670 | yargs "^5.0.0" 1671 | 1672 | jest-config@^15.1.1: 1673 | version "15.1.1" 1674 | resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-15.1.1.tgz#abdbe5b4a49a404d04754d42d7d88b94e58009f7" 1675 | dependencies: 1676 | chalk "^1.1.1" 1677 | istanbul "^0.4.5" 1678 | jest-environment-jsdom "^15.1.1" 1679 | jest-environment-node "^15.1.1" 1680 | jest-jasmine2 "^15.1.1" 1681 | jest-mock "^15.0.0" 1682 | jest-resolve "^15.0.1" 1683 | jest-util "^15.1.1" 1684 | json-stable-stringify "^1.0.0" 1685 | 1686 | jest-diff@^15.1.0: 1687 | version "15.1.0" 1688 | resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-15.1.0.tgz#bda40ad77c6beec1e6b8b5e46e3bbaed6e81c9f4" 1689 | dependencies: 1690 | chalk "^1.1.3" 1691 | diff "^3.0.0" 1692 | jest-matcher-utils "^15.1.0" 1693 | pretty-format "^3.7.0" 1694 | 1695 | jest-environment-jsdom@^15.1.1: 1696 | version "15.1.1" 1697 | resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-15.1.1.tgz#f0368c13e8e0b81adad123a051b94294338b97e0" 1698 | dependencies: 1699 | jest-util "^15.1.1" 1700 | jsdom "^9.4.0" 1701 | 1702 | jest-environment-node@^15.1.1: 1703 | version "15.1.1" 1704 | resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-15.1.1.tgz#7a8d4868e027e5d16026468e248dd5946fe43c04" 1705 | dependencies: 1706 | jest-util "^15.1.1" 1707 | 1708 | jest-file-exists@^15.0.0: 1709 | version "15.0.0" 1710 | resolved "https://registry.yarnpkg.com/jest-file-exists/-/jest-file-exists-15.0.0.tgz#b7fefdd3f4b227cb686bb156ecc7661ee6935a88" 1711 | 1712 | jest-haste-map@^15.0.1: 1713 | version "15.0.1" 1714 | resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-15.0.1.tgz#1d1c342fa6f6d62d9bc2af76428d2e20f74a44d3" 1715 | dependencies: 1716 | fb-watchman "^1.9.0" 1717 | graceful-fs "^4.1.6" 1718 | multimatch "^2.1.0" 1719 | worker-farm "^1.3.1" 1720 | 1721 | jest-jasmine2@^15.1.1: 1722 | version "15.1.1" 1723 | resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-15.1.1.tgz#cac8b016ab6ce16d95b291875773c2494a1b4672" 1724 | dependencies: 1725 | graceful-fs "^4.1.6" 1726 | jasmine-check "^0.1.4" 1727 | jest-matchers "^15.1.1" 1728 | jest-snapshot "^15.1.1" 1729 | jest-util "^15.1.1" 1730 | 1731 | jest-matcher-utils@^15.1.0: 1732 | version "15.1.0" 1733 | resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-15.1.0.tgz#2c506ab9f396d286afa74872f2a3afe3ff454986" 1734 | dependencies: 1735 | chalk "^1.1.3" 1736 | 1737 | jest-matchers@^15.1.1: 1738 | version "15.1.1" 1739 | resolved "https://registry.yarnpkg.com/jest-matchers/-/jest-matchers-15.1.1.tgz#faff50acbbf9743323ec2270a24743cb59d638f0" 1740 | dependencies: 1741 | jest-diff "^15.1.0" 1742 | jest-matcher-utils "^15.1.0" 1743 | jest-util "^15.1.1" 1744 | 1745 | jest-mock@^15.0.0: 1746 | version "15.0.0" 1747 | resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-15.0.0.tgz#b6639699eb0f021aa3648803432ebd950f75dc02" 1748 | 1749 | jest-resolve-dependencies@^15.0.1: 1750 | version "15.0.1" 1751 | resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-15.0.1.tgz#43ebc69b7d81d2cdc70474d4bf634304b06ea411" 1752 | dependencies: 1753 | jest-file-exists "^15.0.0" 1754 | jest-resolve "^15.0.1" 1755 | 1756 | jest-resolve@^15.0.1: 1757 | version "15.0.1" 1758 | resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-15.0.1.tgz#18a32d5ebfb7883c2eac16830917a37c5102ffa1" 1759 | dependencies: 1760 | browser-resolve "^1.11.2" 1761 | jest-file-exists "^15.0.0" 1762 | jest-haste-map "^15.0.1" 1763 | resolve "^1.1.6" 1764 | 1765 | jest-runtime@^15.1.1: 1766 | version "15.1.1" 1767 | resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-15.1.1.tgz#3907b8d46e5fe21b4395f3f884031fae22267191" 1768 | dependencies: 1769 | babel-core "^6.11.4" 1770 | babel-jest "^15.0.0" 1771 | babel-plugin-istanbul "^2.0.0" 1772 | chalk "^1.1.3" 1773 | graceful-fs "^4.1.6" 1774 | jest-config "^15.1.1" 1775 | jest-file-exists "^15.0.0" 1776 | jest-haste-map "^15.0.1" 1777 | jest-mock "^15.0.0" 1778 | jest-resolve "^15.0.1" 1779 | jest-snapshot "^15.1.1" 1780 | jest-util "^15.1.1" 1781 | json-stable-stringify "^1.0.0" 1782 | multimatch "^2.1.0" 1783 | yargs "^5.0.0" 1784 | 1785 | jest-snapshot@^15.1.1: 1786 | version "15.1.1" 1787 | resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-15.1.1.tgz#95d0d2729512d64d1a1a42724ca551c1d2079a71" 1788 | dependencies: 1789 | jest-diff "^15.1.0" 1790 | jest-file-exists "^15.0.0" 1791 | jest-util "^15.1.1" 1792 | pretty-format "^3.7.0" 1793 | 1794 | jest-util@^15.1.1: 1795 | version "15.1.1" 1796 | resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-15.1.1.tgz#5e19edab2c573f992c9d45ba118fa8d90f9d220e" 1797 | dependencies: 1798 | chalk "^1.1.1" 1799 | diff "^3.0.0" 1800 | graceful-fs "^4.1.6" 1801 | jest-file-exists "^15.0.0" 1802 | jest-mock "^15.0.0" 1803 | mkdirp "^0.5.1" 1804 | 1805 | js-tokens@^3.0.0: 1806 | version "3.0.2" 1807 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" 1808 | 1809 | js-yaml@3.x, js-yaml@^3.7.0: 1810 | version "3.9.1" 1811 | resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.9.1.tgz#08775cebdfdd359209f0d2acd383c8f86a6904a0" 1812 | dependencies: 1813 | argparse "^1.0.7" 1814 | esprima "^4.0.0" 1815 | 1816 | jsbn@~0.1.0: 1817 | version "0.1.1" 1818 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" 1819 | 1820 | jsdom@^9.4.0: 1821 | version "9.12.0" 1822 | resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-9.12.0.tgz#e8c546fffcb06c00d4833ca84410fed7f8a097d4" 1823 | dependencies: 1824 | abab "^1.0.3" 1825 | acorn "^4.0.4" 1826 | acorn-globals "^3.1.0" 1827 | array-equal "^1.0.0" 1828 | content-type-parser "^1.0.1" 1829 | cssom ">= 0.3.2 < 0.4.0" 1830 | cssstyle ">= 0.2.37 < 0.3.0" 1831 | escodegen "^1.6.1" 1832 | html-encoding-sniffer "^1.0.1" 1833 | nwmatcher ">= 1.3.9 < 2.0.0" 1834 | parse5 "^1.5.1" 1835 | request "^2.79.0" 1836 | sax "^1.2.1" 1837 | symbol-tree "^3.2.1" 1838 | tough-cookie "^2.3.2" 1839 | webidl-conversions "^4.0.0" 1840 | whatwg-encoding "^1.0.1" 1841 | whatwg-url "^4.3.0" 1842 | xml-name-validator "^2.0.1" 1843 | 1844 | jsesc@^1.3.0: 1845 | version "1.3.0" 1846 | resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" 1847 | 1848 | jsesc@~0.5.0: 1849 | version "0.5.0" 1850 | resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" 1851 | 1852 | json-schema@0.2.3: 1853 | version "0.2.3" 1854 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 1855 | 1856 | json-stable-stringify@^1.0.0, json-stable-stringify@^1.0.1: 1857 | version "1.0.1" 1858 | resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" 1859 | dependencies: 1860 | jsonify "~0.0.0" 1861 | 1862 | json-stringify-safe@~5.0.1: 1863 | version "5.0.1" 1864 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 1865 | 1866 | json5@^0.5.0: 1867 | version "0.5.1" 1868 | resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" 1869 | 1870 | jsonify@~0.0.0: 1871 | version "0.0.0" 1872 | resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" 1873 | 1874 | jsprim@^1.2.2: 1875 | version "1.4.1" 1876 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" 1877 | dependencies: 1878 | assert-plus "1.0.0" 1879 | extsprintf "1.3.0" 1880 | json-schema "0.2.3" 1881 | verror "1.10.0" 1882 | 1883 | kind-of@^3.0.2: 1884 | version "3.2.2" 1885 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" 1886 | dependencies: 1887 | is-buffer "^1.1.5" 1888 | 1889 | kind-of@^4.0.0: 1890 | version "4.0.0" 1891 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" 1892 | dependencies: 1893 | is-buffer "^1.1.5" 1894 | 1895 | lazy-cache@^1.0.3: 1896 | version "1.0.4" 1897 | resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" 1898 | 1899 | lcid@^1.0.0: 1900 | version "1.0.0" 1901 | resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" 1902 | dependencies: 1903 | invert-kv "^1.0.0" 1904 | 1905 | levn@~0.3.0: 1906 | version "0.3.0" 1907 | resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" 1908 | dependencies: 1909 | prelude-ls "~1.1.2" 1910 | type-check "~0.3.2" 1911 | 1912 | load-json-file@^1.0.0: 1913 | version "1.1.0" 1914 | resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" 1915 | dependencies: 1916 | graceful-fs "^4.1.2" 1917 | parse-json "^2.2.0" 1918 | pify "^2.0.0" 1919 | pinkie-promise "^2.0.0" 1920 | strip-bom "^2.0.0" 1921 | 1922 | lodash._arraycopy@^3.0.0: 1923 | version "3.0.0" 1924 | resolved "https://registry.yarnpkg.com/lodash._arraycopy/-/lodash._arraycopy-3.0.0.tgz#76e7b7c1f1fb92547374878a562ed06a3e50f6e1" 1925 | 1926 | lodash._arrayeach@^3.0.0: 1927 | version "3.0.0" 1928 | resolved "https://registry.yarnpkg.com/lodash._arrayeach/-/lodash._arrayeach-3.0.0.tgz#bab156b2a90d3f1bbd5c653403349e5e5933ef9e" 1929 | 1930 | lodash._baseassign@^3.0.0: 1931 | version "3.2.0" 1932 | resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e" 1933 | dependencies: 1934 | lodash._basecopy "^3.0.0" 1935 | lodash.keys "^3.0.0" 1936 | 1937 | lodash._baseclone@^3.0.0: 1938 | version "3.3.0" 1939 | resolved "https://registry.yarnpkg.com/lodash._baseclone/-/lodash._baseclone-3.3.0.tgz#303519bf6393fe7e42f34d8b630ef7794e3542b7" 1940 | dependencies: 1941 | lodash._arraycopy "^3.0.0" 1942 | lodash._arrayeach "^3.0.0" 1943 | lodash._baseassign "^3.0.0" 1944 | lodash._basefor "^3.0.0" 1945 | lodash.isarray "^3.0.0" 1946 | lodash.keys "^3.0.0" 1947 | 1948 | lodash._basecopy@^3.0.0: 1949 | version "3.0.1" 1950 | resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" 1951 | 1952 | lodash._basefor@^3.0.0: 1953 | version "3.0.3" 1954 | resolved "https://registry.yarnpkg.com/lodash._basefor/-/lodash._basefor-3.0.3.tgz#7550b4e9218ef09fad24343b612021c79b4c20c2" 1955 | 1956 | lodash._bindcallback@^3.0.0: 1957 | version "3.0.1" 1958 | resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e" 1959 | 1960 | lodash._getnative@^3.0.0: 1961 | version "3.9.1" 1962 | resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" 1963 | 1964 | lodash.assign@^4.1.0, lodash.assign@^4.2.0: 1965 | version "4.2.0" 1966 | resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7" 1967 | 1968 | lodash.clonedeep@^3.0.0: 1969 | version "3.0.2" 1970 | resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-3.0.2.tgz#a0a1e40d82a5ea89ff5b147b8444ed63d92827db" 1971 | dependencies: 1972 | lodash._baseclone "^3.0.0" 1973 | lodash._bindcallback "^3.0.0" 1974 | 1975 | lodash.isarguments@^3.0.0: 1976 | version "3.1.0" 1977 | resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" 1978 | 1979 | lodash.isarray@^3.0.0: 1980 | version "3.0.4" 1981 | resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" 1982 | 1983 | lodash.keys@^3.0.0: 1984 | version "3.1.2" 1985 | resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" 1986 | dependencies: 1987 | lodash._getnative "^3.0.0" 1988 | lodash.isarguments "^3.0.0" 1989 | lodash.isarray "^3.0.0" 1990 | 1991 | lodash.toarray@^4.4.0: 1992 | version "4.4.0" 1993 | resolved "https://registry.yarnpkg.com/lodash.toarray/-/lodash.toarray-4.4.0.tgz#24c4bfcd6b2fba38bfd0594db1179d8e9b656561" 1994 | 1995 | lodash@^4.14.0, lodash@^4.2.0: 1996 | version "4.17.4" 1997 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" 1998 | 1999 | longest@^1.0.1: 2000 | version "1.0.1" 2001 | resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" 2002 | 2003 | loose-envify@^1.0.0, loose-envify@^1.1.0: 2004 | version "1.3.1" 2005 | resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" 2006 | dependencies: 2007 | js-tokens "^3.0.0" 2008 | 2009 | lower-case@^1.1.1: 2010 | version "1.1.4" 2011 | resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac" 2012 | 2013 | magic-string@^0.16.0: 2014 | version "0.16.0" 2015 | resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.16.0.tgz#970ebb0da7193301285fb1aa650f39bdd81eb45a" 2016 | dependencies: 2017 | vlq "^0.2.1" 2018 | 2019 | makeerror@1.0.x: 2020 | version "1.0.11" 2021 | resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" 2022 | dependencies: 2023 | tmpl "1.0.x" 2024 | 2025 | marked-terminal@^1.6.2: 2026 | version "1.7.0" 2027 | resolved "https://registry.yarnpkg.com/marked-terminal/-/marked-terminal-1.7.0.tgz#c8c460881c772c7604b64367007ee5f77f125904" 2028 | dependencies: 2029 | cardinal "^1.0.0" 2030 | chalk "^1.1.3" 2031 | cli-table "^0.3.1" 2032 | lodash.assign "^4.2.0" 2033 | node-emoji "^1.4.1" 2034 | 2035 | marked@^0.3.6: 2036 | version "0.3.6" 2037 | resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7" 2038 | 2039 | merge@^1.1.3: 2040 | version "1.2.0" 2041 | resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" 2042 | 2043 | micromatch@^2.3.11: 2044 | version "2.3.11" 2045 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" 2046 | dependencies: 2047 | arr-diff "^2.0.0" 2048 | array-unique "^0.2.1" 2049 | braces "^1.8.2" 2050 | expand-brackets "^0.1.4" 2051 | extglob "^0.3.1" 2052 | filename-regex "^2.0.0" 2053 | is-extglob "^1.0.0" 2054 | is-glob "^2.0.1" 2055 | kind-of "^3.0.2" 2056 | normalize-path "^2.0.1" 2057 | object.omit "^2.0.0" 2058 | parse-glob "^3.0.4" 2059 | regex-cache "^0.4.2" 2060 | 2061 | mime-db@~1.29.0: 2062 | version "1.29.0" 2063 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.29.0.tgz#48d26d235589651704ac5916ca06001914266878" 2064 | 2065 | mime-types@^2.1.12, mime-types@~2.1.7: 2066 | version "2.1.16" 2067 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.16.tgz#2b858a52e5ecd516db897ac2be87487830698e23" 2068 | dependencies: 2069 | mime-db "~1.29.0" 2070 | 2071 | "minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4: 2072 | version "3.0.4" 2073 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" 2074 | dependencies: 2075 | brace-expansion "^1.1.7" 2076 | 2077 | minimist@0.0.8: 2078 | version "0.0.8" 2079 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 2080 | 2081 | minimist@^1.1.1: 2082 | version "1.2.0" 2083 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" 2084 | 2085 | minimist@~0.0.1: 2086 | version "0.0.10" 2087 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" 2088 | 2089 | mkdirp@0.5.x, mkdirp@^0.5.1: 2090 | version "0.5.1" 2091 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 2092 | dependencies: 2093 | minimist "0.0.8" 2094 | 2095 | mobx-react@3.5.6: 2096 | version "3.5.6" 2097 | resolved "https://registry.yarnpkg.com/mobx-react/-/mobx-react-3.5.6.tgz#b2e2069beacd3c1e0e5292a495c1290c6a0f6e7e" 2098 | dependencies: 2099 | hoist-non-react-statics "^1.2.0" 2100 | 2101 | mobx@2.5.1: 2102 | version "2.5.1" 2103 | resolved "https://registry.yarnpkg.com/mobx/-/mobx-2.5.1.tgz#19af156c551f0add1cc7d7ffd10aa4f41c0f5c0a" 2104 | 2105 | modify-babel-preset@^2.1.1: 2106 | version "2.1.1" 2107 | resolved "https://registry.yarnpkg.com/modify-babel-preset/-/modify-babel-preset-2.1.1.tgz#2d3190162ee62fb67aaa3325c242f026322ebbac" 2108 | dependencies: 2109 | require-relative "^0.8.7" 2110 | 2111 | ms@2.0.0: 2112 | version "2.0.0" 2113 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" 2114 | 2115 | multimatch@^2.1.0: 2116 | version "2.1.0" 2117 | resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-2.1.0.tgz#9c7906a22fb4c02919e2f5f75161b4cdbd4b2a2b" 2118 | dependencies: 2119 | array-differ "^1.0.0" 2120 | array-union "^1.0.1" 2121 | arrify "^1.0.0" 2122 | minimatch "^3.0.0" 2123 | 2124 | no-case@^2.2.0: 2125 | version "2.3.1" 2126 | resolved "https://registry.yarnpkg.com/no-case/-/no-case-2.3.1.tgz#7aeba1c73a52184265554b7dc03baf720df80081" 2127 | dependencies: 2128 | lower-case "^1.1.1" 2129 | 2130 | node-emoji@^1.4.1: 2131 | version "1.8.1" 2132 | resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.8.1.tgz#6eec6bfb07421e2148c75c6bba72421f8530a826" 2133 | dependencies: 2134 | lodash.toarray "^4.4.0" 2135 | 2136 | node-fetch@^1.0.1: 2137 | version "1.7.2" 2138 | resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.2.tgz#c54e9aac57e432875233525f3c891c4159ffefd7" 2139 | dependencies: 2140 | encoding "^0.1.11" 2141 | is-stream "^1.0.1" 2142 | 2143 | node-int64@^0.4.0: 2144 | version "0.4.0" 2145 | resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" 2146 | 2147 | node-notifier@^4.6.1: 2148 | version "4.6.1" 2149 | resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-4.6.1.tgz#056d14244f3dcc1ceadfe68af9cff0c5473a33f3" 2150 | dependencies: 2151 | cli-usage "^0.1.1" 2152 | growly "^1.2.0" 2153 | lodash.clonedeep "^3.0.0" 2154 | minimist "^1.1.1" 2155 | semver "^5.1.0" 2156 | shellwords "^0.1.0" 2157 | which "^1.0.5" 2158 | 2159 | nopt@3.x: 2160 | version "3.0.6" 2161 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" 2162 | dependencies: 2163 | abbrev "1" 2164 | 2165 | normalize-package-data@^2.3.2: 2166 | version "2.4.0" 2167 | resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" 2168 | dependencies: 2169 | hosted-git-info "^2.1.4" 2170 | is-builtin-module "^1.0.0" 2171 | semver "2 || 3 || 4 || 5" 2172 | validate-npm-package-license "^3.0.1" 2173 | 2174 | normalize-path@^2.0.1: 2175 | version "2.1.1" 2176 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" 2177 | dependencies: 2178 | remove-trailing-separator "^1.0.1" 2179 | 2180 | number-is-nan@^1.0.0: 2181 | version "1.0.1" 2182 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 2183 | 2184 | "nwmatcher@>= 1.3.9 < 2.0.0": 2185 | version "1.4.1" 2186 | resolved "https://registry.yarnpkg.com/nwmatcher/-/nwmatcher-1.4.1.tgz#7ae9b07b0ea804db7e25f05cb5fe4097d4e4949f" 2187 | 2188 | oauth-sign@~0.8.1: 2189 | version "0.8.2" 2190 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" 2191 | 2192 | object-assign@^4.1.0: 2193 | version "4.1.1" 2194 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 2195 | 2196 | object.omit@^2.0.0: 2197 | version "2.0.1" 2198 | resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" 2199 | dependencies: 2200 | for-own "^0.1.4" 2201 | is-extendable "^0.1.1" 2202 | 2203 | once@1.x, once@^1.3.0, once@^1.4.0: 2204 | version "1.4.0" 2205 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 2206 | dependencies: 2207 | wrappy "1" 2208 | 2209 | optimist@^0.6.1: 2210 | version "0.6.1" 2211 | resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" 2212 | dependencies: 2213 | minimist "~0.0.1" 2214 | wordwrap "~0.0.2" 2215 | 2216 | optionator@^0.8.1: 2217 | version "0.8.2" 2218 | resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" 2219 | dependencies: 2220 | deep-is "~0.1.3" 2221 | fast-levenshtein "~2.0.4" 2222 | levn "~0.3.0" 2223 | prelude-ls "~1.1.2" 2224 | type-check "~0.3.2" 2225 | wordwrap "~1.0.0" 2226 | 2227 | os-homedir@^1.0.0: 2228 | version "1.0.2" 2229 | resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" 2230 | 2231 | os-locale@^1.4.0: 2232 | version "1.4.0" 2233 | resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" 2234 | dependencies: 2235 | lcid "^1.0.0" 2236 | 2237 | os-tmpdir@^1.0.1: 2238 | version "1.0.2" 2239 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 2240 | 2241 | parse-glob@^3.0.4: 2242 | version "3.0.4" 2243 | resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" 2244 | dependencies: 2245 | glob-base "^0.3.0" 2246 | is-dotfile "^1.0.0" 2247 | is-extglob "^1.0.0" 2248 | is-glob "^2.0.0" 2249 | 2250 | parse-json@^2.2.0: 2251 | version "2.2.0" 2252 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" 2253 | dependencies: 2254 | error-ex "^1.2.0" 2255 | 2256 | parse5@^1.5.1: 2257 | version "1.5.1" 2258 | resolved "https://registry.yarnpkg.com/parse5/-/parse5-1.5.1.tgz#9b7f3b0de32be78dc2401b17573ccaf0f6f59d94" 2259 | 2260 | path-exists@^2.0.0: 2261 | version "2.1.0" 2262 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" 2263 | dependencies: 2264 | pinkie-promise "^2.0.0" 2265 | 2266 | path-is-absolute@^1.0.0: 2267 | version "1.0.1" 2268 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 2269 | 2270 | path-parse@^1.0.5: 2271 | version "1.0.5" 2272 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" 2273 | 2274 | path-type@^1.0.0: 2275 | version "1.1.0" 2276 | resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" 2277 | dependencies: 2278 | graceful-fs "^4.1.2" 2279 | pify "^2.0.0" 2280 | pinkie-promise "^2.0.0" 2281 | 2282 | performance-now@^0.2.0: 2283 | version "0.2.0" 2284 | resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" 2285 | 2286 | pify@^2.0.0: 2287 | version "2.3.0" 2288 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 2289 | 2290 | pinkie-promise@^2.0.0, pinkie-promise@^2.0.1: 2291 | version "2.0.1" 2292 | resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" 2293 | dependencies: 2294 | pinkie "^2.0.0" 2295 | 2296 | pinkie@^2.0.0: 2297 | version "2.0.4" 2298 | resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" 2299 | 2300 | prelude-ls@~1.1.2: 2301 | version "1.1.2" 2302 | resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" 2303 | 2304 | preserve@^0.2.0: 2305 | version "0.2.0" 2306 | resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" 2307 | 2308 | pretty-format@^3.7.0: 2309 | version "3.8.0" 2310 | resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-3.8.0.tgz#bfbed56d5e9a776645f4b1ff7aa1a3ac4fa3c385" 2311 | 2312 | private@^0.1.6: 2313 | version "0.1.7" 2314 | resolved "https://registry.yarnpkg.com/private/-/private-0.1.7.tgz#68ce5e8a1ef0a23bb570cc28537b5332aba63ef1" 2315 | 2316 | promise@^7.1.1: 2317 | version "7.3.1" 2318 | resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" 2319 | dependencies: 2320 | asap "~2.0.3" 2321 | 2322 | prr@~0.0.0: 2323 | version "0.0.0" 2324 | resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a" 2325 | 2326 | punycode@^1.4.1: 2327 | version "1.4.1" 2328 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 2329 | 2330 | qs@~6.4.0: 2331 | version "6.4.0" 2332 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" 2333 | 2334 | query-string@^4.2.3: 2335 | version "4.3.4" 2336 | resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb" 2337 | dependencies: 2338 | object-assign "^4.1.0" 2339 | strict-uri-encode "^1.0.0" 2340 | 2341 | randomatic@^1.1.3: 2342 | version "1.1.7" 2343 | resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c" 2344 | dependencies: 2345 | is-number "^3.0.0" 2346 | kind-of "^4.0.0" 2347 | 2348 | react@15.3.2: 2349 | version "15.3.2" 2350 | resolved "https://registry.yarnpkg.com/react/-/react-15.3.2.tgz#a7bccd2fee8af126b0317e222c28d1d54528d09e" 2351 | dependencies: 2352 | fbjs "^0.8.4" 2353 | loose-envify "^1.1.0" 2354 | object-assign "^4.1.0" 2355 | 2356 | read-pkg-up@^1.0.1: 2357 | version "1.0.1" 2358 | resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" 2359 | dependencies: 2360 | find-up "^1.0.0" 2361 | read-pkg "^1.0.0" 2362 | 2363 | read-pkg@^1.0.0: 2364 | version "1.1.0" 2365 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" 2366 | dependencies: 2367 | load-json-file "^1.0.0" 2368 | normalize-package-data "^2.3.2" 2369 | path-type "^1.0.0" 2370 | 2371 | redeyed@~1.0.0: 2372 | version "1.0.1" 2373 | resolved "https://registry.yarnpkg.com/redeyed/-/redeyed-1.0.1.tgz#e96c193b40c0816b00aec842698e61185e55498a" 2374 | dependencies: 2375 | esprima "~3.0.0" 2376 | 2377 | regenerate@^1.2.1: 2378 | version "1.3.2" 2379 | resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.2.tgz#d1941c67bad437e1be76433add5b385f95b19260" 2380 | 2381 | regenerator-runtime@^0.10.0: 2382 | version "0.10.5" 2383 | resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" 2384 | 2385 | regenerator-transform@0.9.11: 2386 | version "0.9.11" 2387 | resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.9.11.tgz#3a7d067520cb7b7176769eb5ff868691befe1283" 2388 | dependencies: 2389 | babel-runtime "^6.18.0" 2390 | babel-types "^6.19.0" 2391 | private "^0.1.6" 2392 | 2393 | regex-cache@^0.4.2: 2394 | version "0.4.3" 2395 | resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145" 2396 | dependencies: 2397 | is-equal-shallow "^0.1.3" 2398 | is-primitive "^2.0.0" 2399 | 2400 | regexpu-core@^2.0.0: 2401 | version "2.0.0" 2402 | resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" 2403 | dependencies: 2404 | regenerate "^1.2.1" 2405 | regjsgen "^0.2.0" 2406 | regjsparser "^0.1.4" 2407 | 2408 | regjsgen@^0.2.0: 2409 | version "0.2.0" 2410 | resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" 2411 | 2412 | regjsparser@^0.1.4: 2413 | version "0.1.5" 2414 | resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" 2415 | dependencies: 2416 | jsesc "~0.5.0" 2417 | 2418 | remove-trailing-separator@^1.0.1: 2419 | version "1.0.2" 2420 | resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.0.2.tgz#69b062d978727ad14dc6b56ba4ab772fd8d70511" 2421 | 2422 | repeat-element@^1.1.2: 2423 | version "1.1.2" 2424 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" 2425 | 2426 | repeat-string@^1.5.2: 2427 | version "1.6.1" 2428 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" 2429 | 2430 | repeating@^2.0.0: 2431 | version "2.0.1" 2432 | resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" 2433 | dependencies: 2434 | is-finite "^1.0.0" 2435 | 2436 | request@^2.79.0: 2437 | version "2.81.0" 2438 | resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" 2439 | dependencies: 2440 | aws-sign2 "~0.6.0" 2441 | aws4 "^1.2.1" 2442 | caseless "~0.12.0" 2443 | combined-stream "~1.0.5" 2444 | extend "~3.0.0" 2445 | forever-agent "~0.6.1" 2446 | form-data "~2.1.1" 2447 | har-validator "~4.2.1" 2448 | hawk "~3.1.3" 2449 | http-signature "~1.1.0" 2450 | is-typedarray "~1.0.0" 2451 | isstream "~0.1.2" 2452 | json-stringify-safe "~5.0.1" 2453 | mime-types "~2.1.7" 2454 | oauth-sign "~0.8.1" 2455 | performance-now "^0.2.0" 2456 | qs "~6.4.0" 2457 | safe-buffer "^5.0.1" 2458 | stringstream "~0.0.4" 2459 | tough-cookie "~2.3.0" 2460 | tunnel-agent "^0.6.0" 2461 | uuid "^3.0.0" 2462 | 2463 | require-directory@^2.1.1: 2464 | version "2.1.1" 2465 | resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" 2466 | 2467 | require-main-filename@^1.0.1: 2468 | version "1.0.1" 2469 | resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" 2470 | 2471 | require-relative@^0.8.7: 2472 | version "0.8.7" 2473 | resolved "https://registry.yarnpkg.com/require-relative/-/require-relative-0.8.7.tgz#7999539fc9e047a37928fa196f8e1563dabd36de" 2474 | 2475 | resolve@1.1.7, resolve@1.1.x: 2476 | version "1.1.7" 2477 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" 2478 | 2479 | resolve@^1.1.6, resolve@^1.1.7: 2480 | version "1.4.0" 2481 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86" 2482 | dependencies: 2483 | path-parse "^1.0.5" 2484 | 2485 | right-align@^0.1.1: 2486 | version "0.1.3" 2487 | resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" 2488 | dependencies: 2489 | align-text "^0.1.1" 2490 | 2491 | rimraf@^2.6.1: 2492 | version "2.6.1" 2493 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.1.tgz#c2338ec643df7a1b7fe5c54fa86f57428a55f33d" 2494 | dependencies: 2495 | glob "^7.0.5" 2496 | 2497 | rollup-babel-lib-bundler@3.1.0: 2498 | version "3.1.0" 2499 | resolved "https://registry.yarnpkg.com/rollup-babel-lib-bundler/-/rollup-babel-lib-bundler-3.1.0.tgz#620aeba5afa25092bf7b82c6763b01e742f0fd41" 2500 | dependencies: 2501 | camel-case "^3.0.0" 2502 | commander "^2.9.0" 2503 | object-assign "^4.1.0" 2504 | pinkie-promise "^2.0.1" 2505 | rollup "^0.36.0" 2506 | rollup-plugin-babel "^2.6.1" 2507 | rollup-plugin-commonjs "^5.0.4" 2508 | rollup-plugin-json "^2.0.2" 2509 | rollup-plugin-local-resolve "^1.0.3" 2510 | rollup-plugin-node-resolve "^2.0.0" 2511 | which "^1.2.11" 2512 | 2513 | rollup-plugin-babel@^2.6.1: 2514 | version "2.7.1" 2515 | resolved "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-2.7.1.tgz#16528197b0f938a1536f44683c7a93d573182f57" 2516 | dependencies: 2517 | babel-core "6" 2518 | babel-plugin-transform-es2015-classes "^6.9.0" 2519 | object-assign "^4.1.0" 2520 | rollup-pluginutils "^1.5.0" 2521 | 2522 | rollup-plugin-commonjs@^5.0.4: 2523 | version "5.0.5" 2524 | resolved "https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-5.0.5.tgz#14f93d92cb70e6c31142914b83cd3e904be30c1f" 2525 | dependencies: 2526 | acorn "^4.0.1" 2527 | estree-walker "^0.2.1" 2528 | magic-string "^0.16.0" 2529 | resolve "^1.1.7" 2530 | rollup-pluginutils "^1.5.1" 2531 | 2532 | rollup-plugin-json@^2.0.2: 2533 | version "2.3.0" 2534 | resolved "https://registry.yarnpkg.com/rollup-plugin-json/-/rollup-plugin-json-2.3.0.tgz#3c07a452c1b5391be28006fbfff3644056ce0add" 2535 | dependencies: 2536 | rollup-pluginutils "^2.0.1" 2537 | 2538 | rollup-plugin-local-resolve@^1.0.3: 2539 | version "1.0.7" 2540 | resolved "https://registry.yarnpkg.com/rollup-plugin-local-resolve/-/rollup-plugin-local-resolve-1.0.7.tgz#c486701716c15add2127565c2eaa101123320887" 2541 | 2542 | rollup-plugin-node-resolve@^2.0.0: 2543 | version "2.1.1" 2544 | resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-2.1.1.tgz#cbb783b0d15b02794d58915350b2f0d902b8ddc8" 2545 | dependencies: 2546 | browser-resolve "^1.11.0" 2547 | builtin-modules "^1.1.0" 2548 | resolve "^1.1.6" 2549 | 2550 | rollup-pluginutils@^1.5.0, rollup-pluginutils@^1.5.1: 2551 | version "1.5.2" 2552 | resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-1.5.2.tgz#1e156e778f94b7255bfa1b3d0178be8f5c552408" 2553 | dependencies: 2554 | estree-walker "^0.2.1" 2555 | minimatch "^3.0.2" 2556 | 2557 | rollup-pluginutils@^2.0.1: 2558 | version "2.0.1" 2559 | resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.0.1.tgz#7ec95b3573f6543a46a6461bd9a7c544525d0fc0" 2560 | dependencies: 2561 | estree-walker "^0.3.0" 2562 | micromatch "^2.3.11" 2563 | 2564 | rollup@^0.36.0: 2565 | version "0.36.4" 2566 | resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.36.4.tgz#a224494c5386c1d73d38f7bb86f69f5eb011a3d2" 2567 | dependencies: 2568 | source-map-support "^0.4.0" 2569 | 2570 | safe-buffer@^5.0.1: 2571 | version "5.1.1" 2572 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" 2573 | 2574 | sane@~1.4.1: 2575 | version "1.4.1" 2576 | resolved "https://registry.yarnpkg.com/sane/-/sane-1.4.1.tgz#88f763d74040f5f0c256b6163db399bf110ac715" 2577 | dependencies: 2578 | exec-sh "^0.2.0" 2579 | fb-watchman "^1.8.0" 2580 | minimatch "^3.0.2" 2581 | minimist "^1.1.1" 2582 | walker "~1.0.5" 2583 | watch "~0.10.0" 2584 | 2585 | sax@^1.2.1: 2586 | version "1.2.4" 2587 | resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" 2588 | 2589 | "semver@2 || 3 || 4 || 5", semver@^5.1.0, semver@^5.3.0: 2590 | version "5.4.1" 2591 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e" 2592 | 2593 | set-blocking@^2.0.0: 2594 | version "2.0.0" 2595 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 2596 | 2597 | setimmediate@^1.0.5: 2598 | version "1.0.5" 2599 | resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" 2600 | 2601 | shellwords@^0.1.0: 2602 | version "0.1.0" 2603 | resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.0.tgz#66afd47b6a12932d9071cbfd98a52e785cd0ba14" 2604 | 2605 | slash@^1.0.0: 2606 | version "1.0.0" 2607 | resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" 2608 | 2609 | sntp@1.x.x: 2610 | version "1.0.9" 2611 | resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" 2612 | dependencies: 2613 | hoek "2.x.x" 2614 | 2615 | source-map-support@^0.4.0, source-map-support@^0.4.2: 2616 | version "0.4.15" 2617 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.15.tgz#03202df65c06d2bd8c7ec2362a193056fef8d3b1" 2618 | dependencies: 2619 | source-map "^0.5.6" 2620 | 2621 | source-map@^0.4.4: 2622 | version "0.4.4" 2623 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" 2624 | dependencies: 2625 | amdefine ">=0.0.4" 2626 | 2627 | source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1: 2628 | version "0.5.6" 2629 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" 2630 | 2631 | source-map@~0.2.0: 2632 | version "0.2.0" 2633 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.2.0.tgz#dab73fbcfc2ba819b4de03bd6f6eaa48164b3f9d" 2634 | dependencies: 2635 | amdefine ">=0.0.4" 2636 | 2637 | spdx-correct@~1.0.0: 2638 | version "1.0.2" 2639 | resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" 2640 | dependencies: 2641 | spdx-license-ids "^1.0.2" 2642 | 2643 | spdx-expression-parse@~1.0.0: 2644 | version "1.0.4" 2645 | resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" 2646 | 2647 | spdx-license-ids@^1.0.2: 2648 | version "1.2.2" 2649 | resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" 2650 | 2651 | sprintf-js@~1.0.2: 2652 | version "1.0.3" 2653 | resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 2654 | 2655 | sshpk@^1.7.0: 2656 | version "1.13.1" 2657 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3" 2658 | dependencies: 2659 | asn1 "~0.2.3" 2660 | assert-plus "^1.0.0" 2661 | dashdash "^1.12.0" 2662 | getpass "^0.1.1" 2663 | optionalDependencies: 2664 | bcrypt-pbkdf "^1.0.0" 2665 | ecc-jsbn "~0.1.1" 2666 | jsbn "~0.1.0" 2667 | tweetnacl "~0.14.0" 2668 | 2669 | strict-uri-encode@^1.0.0: 2670 | version "1.1.0" 2671 | resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" 2672 | 2673 | string-width@^1.0.1, string-width@^1.0.2: 2674 | version "1.0.2" 2675 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 2676 | dependencies: 2677 | code-point-at "^1.0.0" 2678 | is-fullwidth-code-point "^1.0.0" 2679 | strip-ansi "^3.0.0" 2680 | 2681 | stringstream@~0.0.4: 2682 | version "0.0.5" 2683 | resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" 2684 | 2685 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 2686 | version "3.0.1" 2687 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 2688 | dependencies: 2689 | ansi-regex "^2.0.0" 2690 | 2691 | strip-bom@^2.0.0: 2692 | version "2.0.0" 2693 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" 2694 | dependencies: 2695 | is-utf8 "^0.2.0" 2696 | 2697 | supports-color@^2.0.0: 2698 | version "2.0.0" 2699 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" 2700 | 2701 | supports-color@^3.1.0, supports-color@^3.1.2: 2702 | version "3.2.3" 2703 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" 2704 | dependencies: 2705 | has-flag "^1.0.0" 2706 | 2707 | symbol-tree@^3.2.1: 2708 | version "3.2.2" 2709 | resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" 2710 | 2711 | test-exclude@^2.1.1: 2712 | version "2.1.3" 2713 | resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-2.1.3.tgz#a8d8968e1da83266f9864f2852c55e220f06434a" 2714 | dependencies: 2715 | arrify "^1.0.1" 2716 | micromatch "^2.3.11" 2717 | object-assign "^4.1.0" 2718 | read-pkg-up "^1.0.1" 2719 | require-main-filename "^1.0.1" 2720 | 2721 | testcheck@^0.1.0: 2722 | version "0.1.4" 2723 | resolved "https://registry.yarnpkg.com/testcheck/-/testcheck-0.1.4.tgz#90056edd48d11997702616ce6716f197d8190164" 2724 | 2725 | tmpl@1.0.x: 2726 | version "1.0.4" 2727 | resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" 2728 | 2729 | to-fast-properties@^1.0.1: 2730 | version "1.0.3" 2731 | resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" 2732 | 2733 | tough-cookie@^2.3.2, tough-cookie@~2.3.0: 2734 | version "2.3.2" 2735 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" 2736 | dependencies: 2737 | punycode "^1.4.1" 2738 | 2739 | tr46@~0.0.3: 2740 | version "0.0.3" 2741 | resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" 2742 | 2743 | trim-right@^1.0.1: 2744 | version "1.0.1" 2745 | resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" 2746 | 2747 | tunnel-agent@^0.6.0: 2748 | version "0.6.0" 2749 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" 2750 | dependencies: 2751 | safe-buffer "^5.0.1" 2752 | 2753 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 2754 | version "0.14.5" 2755 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 2756 | 2757 | type-check@~0.3.2: 2758 | version "0.3.2" 2759 | resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" 2760 | dependencies: 2761 | prelude-ls "~1.1.2" 2762 | 2763 | ua-parser-js@^0.7.9: 2764 | version "0.7.14" 2765 | resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.14.tgz#110d53fa4c3f326c121292bbeac904d2e03387ca" 2766 | 2767 | uglify-js@^2.6: 2768 | version "2.8.29" 2769 | resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" 2770 | dependencies: 2771 | source-map "~0.5.1" 2772 | yargs "~3.10.0" 2773 | optionalDependencies: 2774 | uglify-to-browserify "~1.0.0" 2775 | 2776 | uglify-to-browserify@~1.0.0: 2777 | version "1.0.2" 2778 | resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" 2779 | 2780 | upper-case@^1.1.1: 2781 | version "1.1.3" 2782 | resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" 2783 | 2784 | uuid@^3.0.0: 2785 | version "3.1.0" 2786 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.1.0.tgz#3dd3d3e790abc24d7b0d3a034ffababe28ebbc04" 2787 | 2788 | validate-npm-package-license@^3.0.1: 2789 | version "3.0.1" 2790 | resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" 2791 | dependencies: 2792 | spdx-correct "~1.0.0" 2793 | spdx-expression-parse "~1.0.0" 2794 | 2795 | verror@1.10.0: 2796 | version "1.10.0" 2797 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" 2798 | dependencies: 2799 | assert-plus "^1.0.0" 2800 | core-util-is "1.0.2" 2801 | extsprintf "^1.2.0" 2802 | 2803 | vlq@^0.2.1: 2804 | version "0.2.2" 2805 | resolved "https://registry.yarnpkg.com/vlq/-/vlq-0.2.2.tgz#e316d5257b40b86bb43cb8d5fea5d7f54d6b0ca1" 2806 | 2807 | walker@~1.0.5: 2808 | version "1.0.7" 2809 | resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" 2810 | dependencies: 2811 | makeerror "1.0.x" 2812 | 2813 | watch@~0.10.0: 2814 | version "0.10.0" 2815 | resolved "https://registry.yarnpkg.com/watch/-/watch-0.10.0.tgz#77798b2da0f9910d595f1ace5b0c2258521f21dc" 2816 | 2817 | webidl-conversions@^3.0.0: 2818 | version "3.0.1" 2819 | resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" 2820 | 2821 | webidl-conversions@^4.0.0: 2822 | version "4.0.2" 2823 | resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" 2824 | 2825 | whatwg-encoding@^1.0.1: 2826 | version "1.0.1" 2827 | resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.1.tgz#3c6c451a198ee7aec55b1ec61d0920c67801a5f4" 2828 | dependencies: 2829 | iconv-lite "0.4.13" 2830 | 2831 | whatwg-fetch@>=0.10.0: 2832 | version "2.0.3" 2833 | resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84" 2834 | 2835 | whatwg-url@^4.3.0: 2836 | version "4.8.0" 2837 | resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-4.8.0.tgz#d2981aa9148c1e00a41c5a6131166ab4683bbcc0" 2838 | dependencies: 2839 | tr46 "~0.0.3" 2840 | webidl-conversions "^3.0.0" 2841 | 2842 | which-module@^1.0.0: 2843 | version "1.0.0" 2844 | resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" 2845 | 2846 | which@^1.0.5, which@^1.1.1, which@^1.2.11: 2847 | version "1.3.0" 2848 | resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" 2849 | dependencies: 2850 | isexe "^2.0.0" 2851 | 2852 | window-size@0.1.0: 2853 | version "0.1.0" 2854 | resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" 2855 | 2856 | window-size@^0.2.0: 2857 | version "0.2.0" 2858 | resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.2.0.tgz#b4315bb4214a3d7058ebeee892e13fa24d98b075" 2859 | 2860 | wordwrap@0.0.2: 2861 | version "0.0.2" 2862 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" 2863 | 2864 | wordwrap@^1.0.0, wordwrap@~1.0.0: 2865 | version "1.0.0" 2866 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" 2867 | 2868 | wordwrap@~0.0.2: 2869 | version "0.0.3" 2870 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" 2871 | 2872 | worker-farm@^1.3.1: 2873 | version "1.4.1" 2874 | resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.4.1.tgz#a438bc993a7a7d133bcb6547c95eca7cff4897d8" 2875 | dependencies: 2876 | errno "^0.1.4" 2877 | xtend "^4.0.1" 2878 | 2879 | wrap-ansi@^2.0.0: 2880 | version "2.1.0" 2881 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" 2882 | dependencies: 2883 | string-width "^1.0.1" 2884 | strip-ansi "^3.0.1" 2885 | 2886 | wrappy@1: 2887 | version "1.0.2" 2888 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 2889 | 2890 | xml-name-validator@^2.0.1: 2891 | version "2.0.1" 2892 | resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-2.0.1.tgz#4d8b8f1eccd3419aa362061becef515e1e559635" 2893 | 2894 | xtend@^4.0.1: 2895 | version "4.0.1" 2896 | resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" 2897 | 2898 | y18n@^3.2.1: 2899 | version "3.2.1" 2900 | resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" 2901 | 2902 | yargs-parser@^3.2.0: 2903 | version "3.2.0" 2904 | resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-3.2.0.tgz#5081355d19d9d0c8c5d81ada908cb4e6d186664f" 2905 | dependencies: 2906 | camelcase "^3.0.0" 2907 | lodash.assign "^4.1.0" 2908 | 2909 | yargs@^5.0.0: 2910 | version "5.0.0" 2911 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-5.0.0.tgz#3355144977d05757dbb86d6e38ec056123b3a66e" 2912 | dependencies: 2913 | cliui "^3.2.0" 2914 | decamelize "^1.1.1" 2915 | get-caller-file "^1.0.1" 2916 | lodash.assign "^4.2.0" 2917 | os-locale "^1.4.0" 2918 | read-pkg-up "^1.0.1" 2919 | require-directory "^2.1.1" 2920 | require-main-filename "^1.0.1" 2921 | set-blocking "^2.0.0" 2922 | string-width "^1.0.2" 2923 | which-module "^1.0.0" 2924 | window-size "^0.2.0" 2925 | y18n "^3.2.1" 2926 | yargs-parser "^3.2.0" 2927 | 2928 | yargs@~3.10.0: 2929 | version "3.10.0" 2930 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" 2931 | dependencies: 2932 | camelcase "^1.0.2" 2933 | cliui "^2.1.0" 2934 | decamelize "^1.0.0" 2935 | window-size "0.1.0" 2936 | --------------------------------------------------------------------------------