├── .babelrc ├── .eslintrc ├── .gitignore ├── .release-it.json ├── LICENSE ├── README.md ├── build ├── build.js └── utils │ ├── index.js │ ├── log.js │ └── write.js ├── examples ├── TodoApp │ ├── index.html │ └── modules.html └── index.html ├── package.json ├── src ├── index.js ├── mutations.js ├── types.js └── utils.js ├── test ├── bind-array.spec.js ├── bind-object.spec.js ├── errors.spec.js ├── firebase.spec.js ├── helpers │ └── firebase.js ├── modules.spec.js └── store.spec.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "targets": { 5 | "browsers": ["last 2 Chrome versions"] 6 | } 7 | }] 8 | ], 9 | "sourceMaps": "inline" 10 | } 11 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "posva", 4 | ], 5 | "env": { 6 | "amd": true 7 | }, 8 | "rules": { 9 | "no-new": 0 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | npm-debug.log 4 | yarn-error.log 5 | .nyc_output 6 | coverage.lcov 7 | dist 8 | package-lock.json 9 | .DS_Store 10 | -------------------------------------------------------------------------------- /.release-it.json: -------------------------------------------------------------------------------- 1 | { 2 | "src": { 3 | "tagName": "v%s", 4 | "commitMessage": "🔖 %s" 5 | }, 6 | "github": { 7 | "release": true, 8 | "releaseName": "🚀 Release %s", 9 | "tokenRef": "GITHUB_TOKEN" 10 | }, 11 | "npm": { 12 | "publish": true 13 | }, 14 | "changelogCommand": "git log --pretty=format:'* %s (%h)' [REV_RANGE]" 15 | } 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017 Eduardo San Martin Morote 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # This package has been moved to [vuejs/vuefire](https://github.com/vuejs/vuefire/tree/master/packages/vuexfire) repository. 2 | 3 | --- 4 | 5 | # VuexFire [![Build Status](https://img.shields.io/circleci/project/posva/vuexfire/master.svg)](https://circleci.com/gh/posva/vuexfire) [![npm package](https://img.shields.io/npm/v/vuexfire.svg)](https://www.npmjs.com/package/vuexfire) [![coverage](https://img.shields.io/codecov/c/github/posva/vuexfire/master.svg)](https://codecov.io/github/posva/vuexfire) ![size](http://img.badgesize.io/posva/vuexfire/master/dist/vuexfire.min.js.svg?compression=gzip) 6 | 7 | > SSR ready Firebase binding for [Vuex](https://github.com/vuejs/vuex) 8 | 9 | Supports only Vue 2, Vuex 2 and Firebase JavaScript SDK 2/3/4/5. 10 | If you need an older version check the [`v1` branch](https://github.com/posva/vuexfire/tree/v1): `npm i -D vuexfire@v1` 11 | 12 | ## Installation 13 | 14 | 1. Using a CDN: 15 | 16 | ``` html 17 | 18 | ``` 19 | 20 | 2. In module environments, e.g CommonJS: 21 | 22 | ``` bash 23 | npm install vue firebase vuexfire@next --save 24 | ``` 25 | 26 | ## Usage 27 | 28 | Add the mutations to your root Store and make sure to define the property you 29 | want to bind in the state first: 30 | 31 | ``` js 32 | import { firebaseMutations } from 'vuexfire' 33 | const store = new Vuex.Store({ 34 | state: { 35 | todos: [], // Will be bound as an array 36 | user: null // Will be bound as an object 37 | }, 38 | mutations: { 39 | // your mutations 40 | ...firebaseMutations 41 | } 42 | }) 43 | ``` 44 | 45 | It works with modules as well, but **you don't need to add the mutations there**: 46 | ```js 47 | const store = new Vuex.Store({ 48 | modules: { 49 | todos: { 50 | state: { 51 | todos: [], // Will be bound as an array 52 | user: null // Will be bound as an object 53 | }, 54 | } 55 | } 56 | }) 57 | ``` 58 | 59 | In order to use VuexFire, you have to enhance actions. This action enhancer 60 | takes the actual action and enhances it with two additional parameters in the 61 | context, `bindFirebaseRef` and `unbindFirebaseRef`: 62 | 63 | ```js 64 | import { firebaseAction } from 'vuexfire' 65 | 66 | const setTodosRef = firebaseAction(({ bindFirebaseRef, unbindFirebaseRef }, { ref }) => { 67 | // this will unbind any previously bound ref to 'todos' 68 | bindFirebaseRef('todos', ref) 69 | // you can unbind any ref easily 70 | unbindFirebaseRef('user') 71 | }) 72 | ``` 73 | 74 | Access it as a usual piece of the state: 75 | 76 | ```js 77 | const Component = { 78 | template: '
{{ todos }}
', 79 | computed: Vuex.mapState(['todos']), 80 | created () { 81 | this.$store.dispatch('setTodosRef', db.collection('todos')) 82 | } 83 | } 84 | ``` 85 | 86 | ## Browser support 87 | 88 | VuexFire requires basic `WeakMap` support, which means that if you need to 89 | support any of these browsers: 90 | 91 | - IE < 11 92 | - Safari < 7.1 93 | - Android < 5.0 94 | 95 | You'll have to include a polyfill. You can 96 | use [Benvie/WeakMap](https://github.com/Benvie/WeakMap). 97 | 98 | You can find more information about `WeakMap` 99 | support [here](http://kangax.github.io/compat-table/es6/#test-WeakMap). 100 | 101 | ## How does it work? 102 | 103 | VuexFire uses multiple global mutations prefixed by `vuexfire/` to call the 104 | actual mutations to modify objects and arrays. It listens for updates to your 105 | firebase database and commits mutations to sync your state. Thanks to the action 106 | enhancer `firebaseAction`, it gets access to the local `state` and `commit` so 107 | it works with modules too :+1: 108 | 109 | ## Examples 110 | 111 | You can check out a complete example in the `/examples` directory. 112 | 113 | ## API 114 | 115 | ### firebaseMutations 116 | 117 | This object contains VuexFire internal mutations. They are all prefixed by 118 | `vuexfire/`. This object must be added in the root Store mutations object. 119 | 120 | ### bindFirebaseRef(key, ref) 121 | 122 | _Only available inside of an enhanced action_ 123 | 124 | Binds a firebase reference to a property in the state. If there was already 125 | another reference bound to the same property, it unbinds it first. 126 | 127 | ```js 128 | bindFirebaseRef('todos', ref) 129 | ``` 130 | 131 | Returns a promise which will resolve when the data is ready, or throw an error if something goes wrong: 132 | 133 | ```js 134 | bindFirebaseRef('todos', ref).then(() => { 135 | commit('setTodosLoaded', true) 136 | }).catch((err) => { 137 | console.log(err) 138 | }) 139 | ``` 140 | 141 | ### unbindFirebaseRef(key) 142 | 143 | _Only available inside of an enhanced action_ 144 | 145 | Unbinds a bound firebase reference to a given property in the state. 146 | 147 | ```js 148 | unbindFirebaseRef('todos') 149 | ``` 150 | 151 | ## License 152 | 153 | [MIT](http://opensource.org/licenses/MIT) 154 | 155 | ## Support on Beerpay 156 | Hey dude! Help me out for a couple of :beers:! 157 | 158 | [![Beerpay](https://beerpay.io/posva/vuexfire/badge.svg?style=beer-square)](https://beerpay.io/posva/vuexfire) [![Beerpay](https://beerpay.io/posva/vuexfire/make-wish.svg?style=flat-square)](https://beerpay.io/posva/vuexfire?focus=wish) 159 | -------------------------------------------------------------------------------- /build/build.js: -------------------------------------------------------------------------------- 1 | const rollup = require('rollup').rollup 2 | const buble = require('rollup-plugin-buble') 3 | const uglify = require('uglify-js') 4 | const packageData = require('../package.json') 5 | const mkdirp = require('mkdirp') 6 | const { version, author, name } = packageData 7 | // remove the email at the end 8 | const authorName = author.replace(/\s+<.*/, '') 9 | const moduleName = 'VuexFire' 10 | 11 | // Make sure dist dir exists 12 | mkdirp('dist') 13 | 14 | const { 15 | logError, 16 | write, 17 | } = require('./utils') 18 | 19 | const banner = 20 | '/*!\n' + 21 | ` * ${name} v${version}\n` + 22 | ` * (c) ${new Date().getFullYear()} ${authorName}\n` + 23 | ' * Released under the MIT License.\n' + 24 | ' */' 25 | 26 | const bundleOptions = { 27 | banner, 28 | exports: 'named', 29 | format: 'umd', 30 | name: moduleName, 31 | } 32 | 33 | function createBundle ({ name, format }) { 34 | rollup({ 35 | input: 'src/index.js', 36 | plugins: [ 37 | buble({ 38 | objectAssign: 'Object.assign', 39 | }), 40 | ], 41 | }).then(function (bundle) { 42 | const options = Object.assign({}, bundleOptions) 43 | if (format) options.format = format 44 | return bundle.generate(options).then(({ code }) => { 45 | if (/min$/.test(name)) { 46 | const minified = uglify.minify(code, { 47 | output: { 48 | preamble: banner, 49 | ascii_only: true, 50 | }, 51 | }).code 52 | return write(`dist/${name}.js`, minified) 53 | } else { 54 | return write(`dist/${name}.js`, code) 55 | } 56 | }) 57 | }).catch(logError) 58 | } 59 | 60 | // Browser bundle (can be used with script) 61 | createBundle({ 62 | name, 63 | }) 64 | 65 | // Commonjs bundle (preserves process.env.NODE_ENV) so 66 | // the user can replace it in dev and prod mode 67 | createBundle({ 68 | name: `${name}.esm`, 69 | format: 'es', 70 | }) 71 | 72 | createBundle({ 73 | name: `${name}.common`, 74 | format: 'cjs', 75 | }) 76 | 77 | // Minified version for browser 78 | createBundle({ 79 | name: `${name}.min`, 80 | }) 81 | -------------------------------------------------------------------------------- /build/utils/index.js: -------------------------------------------------------------------------------- 1 | const write = require('./write.js') 2 | const { logError } = require('./log.js') 3 | 4 | module.exports = { 5 | write, 6 | logError, 7 | } 8 | -------------------------------------------------------------------------------- /build/utils/log.js: -------------------------------------------------------------------------------- 1 | function logError (e) { 2 | console.log(e) 3 | } 4 | 5 | function blue (str) { 6 | return `\x1b[1m\x1b[34m${str}\x1b[39m\x1b[22m` 7 | } 8 | 9 | function green (str) { 10 | return `\x1b[1m\x1b[32m${str}\x1b[39m\x1b[22m` 11 | } 12 | 13 | function red (str) { 14 | return `\x1b[1m\x1b[31m${str}\x1b[39m\x1b[22m` 15 | } 16 | 17 | function yellow (str) { 18 | return `\x1b[1m\x1b[33m${str}\x1b[39m\x1b[22m` 19 | } 20 | 21 | module.exports = { 22 | blue, 23 | green, 24 | red, 25 | yellow, 26 | logError, 27 | } 28 | -------------------------------------------------------------------------------- /build/utils/write.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs') 2 | 3 | const { blue } = require('./log.js') 4 | 5 | function write (dest, code) { 6 | return new Promise(function (resolve, reject) { 7 | fs.writeFile(dest, code, function (err) { 8 | if (err) return reject(err) 9 | console.log(blue(dest) + ' ' + getSize(code)) 10 | resolve() 11 | }) 12 | }) 13 | } 14 | 15 | function getSize (code) { 16 | return (code.length / 1024).toFixed(2) + 'kb' 17 | } 18 | 19 | module.exports = write 20 | -------------------------------------------------------------------------------- /examples/TodoApp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | VuexFire Todo App Demo 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 20 | 21 |
22 | 28 |
29 | 30 | 31 |
32 | 33 |
34 |
35 | 36 | 37 |
38 | 39 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /examples/TodoApp/modules.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | VuexFire Todo App Demo 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 23 |
24 | 25 | 26 |
27 |
28 | 29 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /examples/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | VueFire Todo App Demo 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 29 | 30 |
31 | 32 |
33 | 34 | 40 | 41 |

collection with refs

42 | 43 | 46 | 47 |
Original data
48 | 49 | 52 | 53 |

config:

54 |
 55 |         {{ config }}
 56 |       
57 |
58 | 59 | 148 | 149 | 150 | 151 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vuexfire", 3 | "version": "3.0.0-alpha.5", 4 | "description": "Firestore binding for Vuex", 5 | "main": "dist/vuexfire.cjs.js", 6 | "module": "dist/vuexfire.es.js", 7 | "unpkg": "dist/vuexfire.js", 8 | "browser": "dist/vuexfire.es.js", 9 | "files": [ 10 | "src", 11 | "dist", 12 | "LICENSE", 13 | "README.md" 14 | ], 15 | "scripts": { 16 | "lint": "eslint --color --ext=js,html src test examples build", 17 | "test": "npm run lint && npm run build", 18 | "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", 19 | "dev": "npm-watch", 20 | "test:unit": "ava", 21 | "test:coverage": "nyc npm run test:unit", 22 | "dev:test": "npm run test:unit -- --watch", 23 | "prebuild": "rimraf dist", 24 | "prepublishOnly": "npm run build", 25 | "build": "rollit", 26 | "release": "release-it pre --preReleaseId=alpha --npm.tag=next --github.preRelease" 27 | }, 28 | "repository": { 29 | "type": "git", 30 | "url": "git+https://github.com/posva/vuexfire.git" 31 | }, 32 | "keywords": [ 33 | "vuex", 34 | "fire", 35 | "vue", 36 | "realtime", 37 | "database", 38 | "google", 39 | "firebase", 40 | "redux", 41 | "firestore", 42 | "store", 43 | "bind", 44 | "opinionated" 45 | ], 46 | "peerDependencies": { 47 | "firebase": ">= 4.0.0" 48 | }, 49 | "author": { 50 | "name": "Eduardo San Martin Morote", 51 | "email": "posva13@gmail.com" 52 | }, 53 | "license": "MIT", 54 | "bugs": { 55 | "url": "https://github.com/posva/vuexfire/issues" 56 | }, 57 | "homepage": "https://github.com/posva/vuexfire#readme", 58 | "devDependencies": { 59 | "babel-preset-env": "^1.6.1", 60 | "codecov": "^3.0.1", 61 | "eslint": "^4.19.1", 62 | "eslint-config-posva": "^1.3.3", 63 | "rimraf": "^2.6.2", 64 | "vue": "^2.5.16", 65 | "vuex": "^3.0.1" 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import { createSnapshot, extractRefs, callOnceWithArg, walkGet } from './utils' 2 | import mutations from './mutations' 3 | import { 4 | VUEXFIRE_SET_VALUE, 5 | VUEXFIRE_ARRAY_ADD, 6 | VUEXFIRE_ARRAY_REMOVE, 7 | } from './types' 8 | 9 | export const firebaseMutations = {} 10 | const commitOptions = { root: true } 11 | 12 | Object.keys(mutations).forEach(type => { 13 | // the { commit, state, type, ...payload } syntax is not supported by buble... 14 | firebaseMutations[type] = (_, context) => { 15 | mutations[type](context.state, context) 16 | } 17 | }) 18 | 19 | function unsubscribeAll (subs) { 20 | for (const sub in subs) { 21 | subs[sub].unsub() 22 | } 23 | } 24 | 25 | // NOTE not convinced by the naming of subscribeToRefs and subscribeToDocument 26 | // first one is calling the other on every ref and subscribeToDocument may call 27 | // updateDataFromDocumentSnapshot which may call subscribeToRefs as well 28 | function subscribeToRefs ({ 29 | subs, 30 | refs, 31 | target, 32 | path, 33 | data, 34 | depth, 35 | commit, 36 | resolve, 37 | }, options) { 38 | const refKeys = Object.keys(refs) 39 | const missingKeys = Object.keys(subs).filter(refKey => refKeys.indexOf(refKey) < 0) 40 | // unbind keys that are no longer there 41 | missingKeys.forEach(refKey => { 42 | subs[refKey].unsub() 43 | delete subs[refKey] 44 | }) 45 | if (!refKeys.length || ++depth > options.maxRefDepth) return resolve(path) 46 | 47 | let resolvedCount = 0 48 | const totalToResolve = refKeys.length 49 | const validResolves = Object.create(null) 50 | function deepResolve (key) { 51 | if (key in validResolves) { 52 | if (++resolvedCount >= totalToResolve) resolve(path) 53 | } 54 | } 55 | 56 | refKeys.forEach(refKey => { 57 | const sub = subs[refKey] 58 | const ref = refs[refKey] 59 | const docPath = `${path}.${refKey}` 60 | 61 | validResolves[docPath] = true 62 | 63 | // unsubscribe if bound to a different ref 64 | if (sub) { 65 | if (sub.path !== ref.path) sub.unsub() 66 | // if has already be bound and as we always walk the objects, it will work 67 | else return 68 | } 69 | 70 | subs[refKey] = { 71 | unsub: subscribeToDocument({ 72 | ref, 73 | target, 74 | path: docPath, 75 | depth, 76 | commit, 77 | resolve: deepResolve.bind(null, docPath), 78 | }, options), 79 | path: ref.path, 80 | } 81 | }) 82 | } 83 | 84 | function bindCollection ({ 85 | vm, 86 | key, 87 | collection, 88 | commit, 89 | resolve, 90 | reject, 91 | }, options) { 92 | commit(VUEXFIRE_SET_VALUE, { 93 | path: key, 94 | target: vm, 95 | data: [], 96 | }, commitOptions) 97 | const target = walkGet(vm, key) 98 | const originalResolve = resolve 99 | let isResolved 100 | 101 | // contain ref subscriptions of objects 102 | // arraySubs is a mirror of array 103 | const arraySubs = [] 104 | 105 | const change = { 106 | added: ({ newIndex, doc }) => { 107 | arraySubs.splice(newIndex, 0, Object.create(null)) 108 | const subs = arraySubs[newIndex] 109 | const snapshot = createSnapshot(doc) 110 | const [data, refs] = extractRefs(snapshot) 111 | commit(VUEXFIRE_ARRAY_ADD, { target, newIndex, data }, commitOptions) 112 | subscribeToRefs({ 113 | data, 114 | refs, 115 | subs, 116 | target, 117 | path: newIndex, 118 | depth: 0, 119 | commit, 120 | resolve: resolve.bind(null, doc), 121 | }, options) 122 | }, 123 | modified: ({ oldIndex, newIndex, doc }) => { 124 | const subs = arraySubs.splice(oldIndex, 1)[0] 125 | arraySubs.splice(newIndex, 0, subs) 126 | // const oldData = array.splice(oldIndex, 1)[0] 127 | const oldData = commit(VUEXFIRE_ARRAY_REMOVE, { target, oldIndex }, commitOptions) 128 | const snapshot = createSnapshot(doc) 129 | const [data, refs] = extractRefs(snapshot, oldData) 130 | // array.splice(newIndex, 0, data) 131 | commit(VUEXFIRE_ARRAY_ADD, { target, newIndex, data }, commitOptions) 132 | subscribeToRefs({ 133 | data, 134 | refs, 135 | subs, 136 | target, 137 | path: newIndex, 138 | depth: 0, 139 | commit, 140 | resolve, 141 | }, options) 142 | }, 143 | removed: ({ oldIndex }) => { 144 | // array.splice(oldIndex, 1) 145 | commit(VUEXFIRE_ARRAY_REMOVE, { target, oldIndex }, commitOptions) 146 | unsubscribeAll(arraySubs.splice(oldIndex, 1)[0]) 147 | }, 148 | } 149 | 150 | const unbind = collection.onSnapshot(ref => { 151 | // console.log('pending', metadata.hasPendingWrites) 152 | // docs.forEach(d => console.log('doc', d, '\n', 'data', d.data())) 153 | // NOTE this will only be triggered once and it will be with all the documents 154 | // from the query appearing as added 155 | // (https://firebase.google.com/docs/firestore/query-data/listen#view_changes_between_snapshots) 156 | const docChanges = typeof ref.docChanges === 'function' ? ref.docChanges() : ref.docChanges 157 | 158 | if (!isResolved && docChanges.length) { 159 | // isResolved is only meant to make sure we do the check only once 160 | isResolved = true 161 | let count = 0 162 | const expectedItems = docChanges.length 163 | const validDocs = docChanges.reduce((dict, { doc }) => { 164 | dict[doc.id] = false 165 | return dict 166 | }, Object.create(null)) 167 | resolve = ({ id }) => { 168 | if (id in validDocs) { 169 | if (++count >= expectedItems) { 170 | originalResolve(vm[key]) 171 | // reset resolve to noop 172 | resolve = _ => {} 173 | } 174 | } 175 | } 176 | } 177 | docChanges.forEach(c => { 178 | change[c.type](c) 179 | }) 180 | 181 | // resolves when array is empty 182 | if (!docChanges.length) resolve() 183 | }, reject) 184 | 185 | return () => { 186 | unbind() 187 | arraySubs.forEach(unsubscribeAll) 188 | } 189 | } 190 | 191 | function updateDataFromDocumentSnapshot ({ 192 | snapshot, 193 | target, 194 | path, 195 | subs, 196 | depth = 0, 197 | commit, 198 | resolve, 199 | }, options) { 200 | const [data, refs] = extractRefs(snapshot, walkGet(target, path)) 201 | commit(VUEXFIRE_SET_VALUE, { 202 | path, 203 | target, 204 | data, 205 | }, commitOptions) 206 | subscribeToRefs({ 207 | data, 208 | subs, 209 | refs, 210 | target, 211 | path, 212 | depth, 213 | commit, 214 | resolve, 215 | }, options) 216 | } 217 | 218 | function subscribeToDocument ({ 219 | ref, 220 | target, 221 | path, 222 | depth, 223 | commit, 224 | resolve, 225 | }, options) { 226 | const subs = Object.create(null) 227 | const unbind = ref.onSnapshot(doc => { 228 | if (doc.exists) { 229 | updateDataFromDocumentSnapshot({ 230 | snapshot: createSnapshot(doc), 231 | target, 232 | path, 233 | subs, 234 | depth, 235 | commit, 236 | resolve, 237 | }, options) 238 | } else { 239 | commit(VUEXFIRE_SET_VALUE, { 240 | target, 241 | path, 242 | data: null, 243 | }, commitOptions) 244 | resolve(path) 245 | } 246 | }) 247 | 248 | return () => { 249 | unbind() 250 | unsubscribeAll(subs) 251 | } 252 | } 253 | 254 | function bindDocument ({ 255 | vm, 256 | key, 257 | document, 258 | commit, 259 | resolve, 260 | reject, 261 | }, options) { 262 | // TODO warning check if key exists? 263 | // const boundRefs = Object.create(null) 264 | 265 | const subs = Object.create(null) 266 | // bind here the function so it can be resolved anywhere 267 | // this is specially useful for refs 268 | // TODO use walkGet? 269 | resolve = callOnceWithArg(resolve, () => vm[key]) 270 | const unbind = document.onSnapshot(doc => { 271 | if (doc.exists) { 272 | updateDataFromDocumentSnapshot({ 273 | snapshot: createSnapshot(doc), 274 | target: vm, 275 | path: key, 276 | subs, 277 | commit, 278 | resolve, 279 | }, options) 280 | } else { 281 | resolve() 282 | } 283 | }, reject) 284 | 285 | return () => { 286 | unbind() 287 | unsubscribeAll(subs) 288 | } 289 | } 290 | 291 | // Firebase binding 292 | const subscriptions = new WeakMap() 293 | 294 | function bind ({ 295 | state, 296 | commit, 297 | key, 298 | ref, 299 | }, options = { maxRefDepth: 2 }) { 300 | // TODO check ref is valid 301 | // TODO check defined in state 302 | let sub = subscriptions.get(commit) 303 | if (!sub) { 304 | sub = Object.create(null) 305 | subscriptions.set(commit, sub) 306 | } 307 | 308 | // unbind if ref is already bound 309 | if (key in sub) { 310 | unbind({ commit, key }) 311 | } 312 | 313 | return new Promise((resolve, reject) => { 314 | sub[key] = ref.where 315 | ? bindCollection({ 316 | vm: state, 317 | key, 318 | collection: ref, 319 | commit, 320 | resolve, 321 | reject, 322 | }, options) 323 | : bindDocument({ 324 | vm: state, 325 | key, 326 | document: ref, 327 | commit, 328 | resolve, 329 | reject, 330 | }, options) 331 | }) 332 | } 333 | 334 | function unbind ({ 335 | commit, 336 | key, 337 | }) { 338 | let sub = subscriptions.get(commit) 339 | if (!sub) return 340 | // TODO dev check before 341 | sub[key]() 342 | delete sub[key] 343 | } 344 | 345 | export function firebaseAction (action) { 346 | return function firebaseEnhancedActionFn (context, payload) { 347 | // get the local state and commit. These may be bound to a module 348 | const { state, commit } = context 349 | context.bindFirebaseRef = (key, ref, options = {}) => 350 | bind({ state, commit, key, ref }, options) 351 | context.unbindFirebaseRef = (key) => 352 | unbind({ commit, key }) 353 | return action(context, payload) 354 | } 355 | } 356 | -------------------------------------------------------------------------------- /src/mutations.js: -------------------------------------------------------------------------------- 1 | import { 2 | VUEXFIRE_SET_VALUE, 3 | VUEXFIRE_ARRAY_ADD, 4 | VUEXFIRE_ARRAY_REMOVE, 5 | } from './types' 6 | 7 | import { walkSet } from './utils' 8 | 9 | export default { 10 | [VUEXFIRE_SET_VALUE] (state, { path, target, data }) { 11 | walkSet(target, path, data) 12 | // state[key] = record 13 | }, 14 | 15 | [VUEXFIRE_ARRAY_ADD] (state, { newIndex, data, target }) { 16 | target.splice(newIndex, 0, data) 17 | }, 18 | 19 | [VUEXFIRE_ARRAY_REMOVE] (state, { oldIndex, target }) { 20 | return target.splice(oldIndex, 1)[0] 21 | }, 22 | } 23 | -------------------------------------------------------------------------------- /src/types.js: -------------------------------------------------------------------------------- 1 | export const VUEXFIRE_SET_VALUE = 'vuexfire/SET_VALUE' 2 | export const VUEXFIRE_ARRAY_ADD = 'vuexfire/ARRAY_ADD' 3 | export const VUEXFIRE_ARRAY_REMOVE = 'vuexfire/ARRAY_REMOVE' 4 | -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- 1 | export function createSnapshot (doc) { 2 | // defaults everything to false, so no need to set 3 | return Object.defineProperty(doc.data(), 'id', { 4 | value: doc.id, 5 | }) 6 | } 7 | 8 | const isObject = o => o && typeof o === 'object' 9 | const isTimestamp = o => o.toDate 10 | const isRef = o => o && o.onSnapshot 11 | 12 | export function extractRefs (doc, oldDoc, path = '', result = [{}, {}]) { 13 | // must be set here because walkGet can return null or undefined 14 | oldDoc = oldDoc || {} 15 | const idDescriptor = Object.getOwnPropertyDescriptor(doc, 'id') 16 | if (idDescriptor && !idDescriptor.enumerable) { 17 | Object.defineProperty(result[0], 'id', idDescriptor) 18 | } 19 | return Object.keys(doc).reduce((tot, key) => { 20 | const ref = doc[key] 21 | // if it's a ref 22 | if (isRef(ref)) { 23 | tot[0][key] = oldDoc[key] || ref.path 24 | tot[1][path + key] = ref 25 | } else if (Array.isArray(ref)) { 26 | tot[0][key] = Array(ref.length).fill(null) 27 | extractRefs(ref, oldDoc[key], path + key + '.', [tot[0][key], tot[1]]) 28 | } else if ( 29 | ref == null || 30 | // Firestore < 4.13 31 | ref instanceof Date || 32 | isTimestamp(ref) || 33 | (ref.longitude && ref.latitude) // GeoPoint 34 | ) { 35 | tot[0][key] = ref 36 | } else if (isObject(ref)) { 37 | tot[0][key] = {} 38 | extractRefs(ref, oldDoc[key], path + key + '.', [tot[0][key], tot[1]]) 39 | } else { 40 | tot[0][key] = ref 41 | } 42 | return tot 43 | }, result) 44 | } 45 | 46 | export function callOnceWithArg (fn, argFn) { 47 | let called 48 | return () => { 49 | if (!called) { 50 | called = true 51 | return fn(argFn()) 52 | } 53 | } 54 | } 55 | 56 | export function walkGet (obj, path) { 57 | return path.split('.').reduce((target, key) => target[key], obj) 58 | } 59 | 60 | export function walkSet (obj, path, value) { 61 | // path can be a number 62 | const keys = ('' + path).split('.') 63 | const key = keys.pop() 64 | const target = keys.reduce((target, key) => target[key], obj) 65 | // global isFinite is different from Number.isFinite 66 | // it converts values to numbers 67 | if (isFinite(key)) target.splice(key, 1, value) 68 | else target[key] = value 69 | } 70 | -------------------------------------------------------------------------------- /test/bind-array.spec.js: -------------------------------------------------------------------------------- 1 | import test from 'ava' 2 | import Vue from 'vue' 3 | import Vuex from 'vuex' 4 | import { MockFirebase } from 'firebase-mock' 5 | 6 | import { 7 | firebaseMutations, 8 | firebaseAction, 9 | } from '../src' 10 | 11 | const root = new MockFirebase() 12 | 13 | test.before(t => { 14 | Vue.use(Vuex) 15 | }) 16 | 17 | test.beforeEach(t => { 18 | t.context.store = new Vuex.Store({ 19 | state: { 20 | items: [], 21 | }, 22 | actions: { 23 | bindItemsRef: firebaseAction(({ bindFirebaseRef }, { ref, wait }) => { 24 | bindFirebaseRef('items', ref, { wait }) 25 | }), 26 | setItemsRef: firebaseAction(({ bindFirebaseRef }, ref) => { 27 | bindFirebaseRef('items', ref) 28 | }), 29 | unbindItemsRef: firebaseAction(({ unbindFirebaseRef }) => { 30 | unbindFirebaseRef('items') 31 | }), 32 | }, 33 | mutations: firebaseMutations, 34 | }) 35 | 36 | // Create a fresh ref for the test 37 | const ref = root.push({}) 38 | root.flush() 39 | t.context.ref = ref 40 | }) 41 | 42 | test('binds an array of objects', t => { 43 | t.context.store.dispatch('setItemsRef', t.context.ref) 44 | t.context.ref.set({ 45 | first: { index: 0 }, 46 | second: { index: 1 }, 47 | third: { index: 2 }, 48 | }) 49 | t.context.ref.flush() 50 | 51 | t.deepEqual(t.context.store.state.items, [ 52 | { '.key': 'first', index: 0 }, 53 | { '.key': 'second', index: 1 }, 54 | { '.key': 'third', index: 2 }, 55 | ]) 56 | t.context.ref.child('first').child('index').set(3) 57 | t.context.ref.flush() 58 | t.deepEqual(t.context.store.state.items[0].index, 3) 59 | }) 60 | 61 | test('binds an array of primitives', t => { 62 | t.context.store.dispatch('setItemsRef', t.context.ref) 63 | t.context.ref.set([0, 1, 2]) 64 | t.context.ref.flush() 65 | 66 | t.deepEqual(t.context.store.state.items, [ 67 | { '.key': '0', '.value': 0 }, 68 | { '.key': '1', '.value': 1 }, 69 | { '.key': '2', '.value': 2 }, 70 | ]) 71 | }) 72 | 73 | test('binds a mixed array', t => { 74 | t.context.store.dispatch('setItemsRef', t.context.ref) 75 | t.context.ref.set({ 76 | 0: 'first', 77 | 1: 'second', 78 | third: { index: 2 }, 79 | }) 80 | t.context.ref.flush() 81 | 82 | t.deepEqual(t.context.store.state.items, [ 83 | { '.key': '0', '.value': 'first' }, 84 | { '.key': '1', '.value': 'second' }, 85 | { '.key': 'third', index: 2 }, 86 | ]) 87 | }) 88 | 89 | test('binds to a reference array with no data', t => { 90 | t.context.store.dispatch('setItemsRef', t.context.ref.child('foo')) 91 | t.context.ref.flush() 92 | 93 | t.deepEqual(t.context.store.state.items, []) 94 | }) 95 | 96 | test('add records to the array', t => { 97 | t.context.store.dispatch('setItemsRef', t.context.ref) 98 | t.context.ref.set({ 99 | first: { index: 0 }, 100 | second: { index: 1 }, 101 | third: { index: 2 }, 102 | }) 103 | t.context.ref.flush() 104 | t.context.ref.child('fourth').set({ index: 3 }) 105 | t.context.ref.flush() 106 | 107 | // MockFirebase doesn't keep order :( 108 | const sorted = [...t.context.store.state.items].sort((a, b) => a.index - b.index) 109 | t.deepEqual(sorted, [ 110 | { '.key': 'first', index: 0 }, 111 | { '.key': 'second', index: 1 }, 112 | { '.key': 'third', index: 2 }, 113 | { '.key': 'fourth', index: 3 }, 114 | ]) 115 | }) 116 | 117 | test('removes records from array with wait; false', t => { 118 | t.context.store.dispatch('bindItemsRef', { 119 | ref: t.context.ref, 120 | wait: false, 121 | }) 122 | t.context.ref.set({ 123 | first: { index: 0 }, 124 | second: { index: 1 }, 125 | third: { index: 2 }, 126 | }) 127 | t.context.ref.flush() 128 | t.context.ref.child('second').remove() 129 | t.context.ref.flush() 130 | 131 | // MockFirebase doesn't keep order :( 132 | const sorted = [...t.context.store.state.items].sort((a, b) => a.index - b.index) 133 | t.deepEqual(sorted, [ 134 | { '.key': 'first', index: 0 }, 135 | { '.key': 'third', index: 2 }, 136 | ]) 137 | }) 138 | 139 | test('removes records from array', t => { 140 | t.context.store.dispatch('setItemsRef', t.context.ref) 141 | t.context.ref.set({ 142 | first: { index: 0 }, 143 | second: { index: 1 }, 144 | third: { index: 2 }, 145 | }) 146 | t.context.ref.flush() 147 | t.context.ref.child('second').remove() 148 | t.context.ref.flush() 149 | 150 | // MockFirebase doesn't keep order :( 151 | const sorted = [...t.context.store.state.items].sort((a, b) => a.index - b.index) 152 | t.deepEqual(sorted, [ 153 | { '.key': 'first', index: 0 }, 154 | { '.key': 'third', index: 2 }, 155 | ]) 156 | }) 157 | 158 | // // limit is not yet fully implemented in firebase mock 159 | // test('binds to a subset of records when using limit queries', t => { 160 | // t.context.store.dispatch('setItemsRef', t.context.ref.limit(2)) 161 | // t.context.ref.set({ a: 0, b: 1, c: 2 }) 162 | // t.context.ref.flush() 163 | // t.deepEqual(t.context.store.state.items, [{ '.key': 'c', '.value': 2 }]) 164 | // }) 165 | 166 | test('unbinds an array reference', t => { 167 | const foo = t.context.ref.child('foo') 168 | t.context.store.dispatch('setItemsRef', foo) 169 | 170 | foo.child('foo').set('foo') 171 | t.context.ref.flush() 172 | t.deepEqual(t.context.store.state.items, [{'.key': 'foo', '.value': 'foo'}]) 173 | 174 | t.context.store.dispatch('unbindItemsRef') 175 | foo.child('foo').set('foo 2') 176 | t.context.ref.flush() 177 | t.deepEqual(t.context.store.state.items, [{'.key': 'foo', '.value': 'foo'}]) 178 | }) 179 | 180 | test('unbinds old array reference when binding a new one', t => { 181 | const foo = t.context.ref.child('foo') 182 | const bar = t.context.ref.child('bar') 183 | t.context.store.dispatch('setItemsRef', foo) 184 | 185 | foo.child('foo').set('foo') 186 | t.context.ref.flush() 187 | t.deepEqual(t.context.store.state.items, [{'.key': 'foo', '.value': 'foo'}]) 188 | 189 | t.context.store.dispatch('setItemsRef', bar) 190 | bar.child('bar').set('bar') 191 | t.context.ref.flush() 192 | t.deepEqual(t.context.store.state.items, [{'.key': 'bar', '.value': 'bar'}]) 193 | 194 | foo.child('foo').set('foo 2') 195 | t.context.ref.flush() 196 | t.deepEqual(t.context.store.state.items, [{'.key': 'bar', '.value': 'bar'}]) 197 | }) 198 | 199 | test('works with wait: true', t => { 200 | const ref = t.context.ref.child('wait') 201 | t.context.store.dispatch('bindItemsRef', { 202 | ref, 203 | wait: true, 204 | }) 205 | ref.child('foo').set('foo') 206 | ref.flush() 207 | 208 | t.deepEqual(t.context.store.state.items, [{'.key': 'foo', '.value': 'foo'}]) 209 | 210 | ref.child('bar').set('bar') 211 | ref.flush() 212 | t.deepEqual(t.context.store.state.items, [ 213 | {'.key': 'bar', '.value': 'bar'}, 214 | {'.key': 'foo', '.value': 'foo'}, 215 | ]) 216 | 217 | ref.child('bar').set('bar 2') 218 | ref.flush() 219 | t.deepEqual(t.context.store.state.items, [ 220 | {'.key': 'bar', '.value': 'bar 2'}, 221 | {'.key': 'foo', '.value': 'foo'}, 222 | ]) 223 | 224 | ref.child('bar').remove() 225 | ref.flush() 226 | t.deepEqual(t.context.store.state.items, [{'.key': 'foo', '.value': 'foo'}]) 227 | }) 228 | -------------------------------------------------------------------------------- /test/bind-object.spec.js: -------------------------------------------------------------------------------- 1 | import test from 'ava' 2 | import Vue from 'vue' 3 | import Vuex from 'vuex' 4 | import { MockFirebase } from 'firebase-mock' 5 | 6 | import { 7 | firebaseMutations, 8 | firebaseAction, 9 | } from '../src' 10 | 11 | const root = new MockFirebase() 12 | 13 | test.before(t => { 14 | Vue.use(Vuex) 15 | }) 16 | 17 | test.beforeEach(t => { 18 | t.context.store = new Vuex.Store({ 19 | state: { 20 | options: null, 21 | primitive: null, 22 | }, 23 | actions: { 24 | setPrimitiveRef: firebaseAction(({ bindFirebaseRef }, ref) => { 25 | bindFirebaseRef('primitive', ref) 26 | }), 27 | setOptionsRef: firebaseAction(({ bindFirebaseRef }, ref) => { 28 | bindFirebaseRef('options', ref) 29 | }), 30 | unbindOptionsRef: firebaseAction(({ unbindFirebaseRef }) => { 31 | unbindFirebaseRef('options') 32 | }), 33 | }, 34 | mutations: firebaseMutations, 35 | }) 36 | 37 | // Create a fresh ref for the test 38 | const ref = root.push({}) 39 | root.flush() 40 | t.context.ref = ref 41 | }) 42 | 43 | test('binds to an object', t => { 44 | const options = { 45 | foo: 1, 46 | bar: 2, 47 | '.key': t.context.ref.key, 48 | } 49 | t.context.store.dispatch('setOptionsRef', t.context.ref) 50 | t.context.ref.set(options) 51 | t.context.ref.flush() 52 | 53 | t.is(t.context.ref.getData().foo, 1) 54 | t.deepEqual(t.context.store.state.options, options) 55 | t.context.ref.child('foo').set(3) 56 | t.context.ref.flush() 57 | t.deepEqual(t.context.store.state.options.foo, 3) 58 | }) 59 | 60 | test('binds to a primitive', t => { 61 | const primitive = 2 62 | t.context.store.dispatch('setPrimitiveRef', t.context.ref) 63 | t.context.ref.set(primitive) 64 | t.context.ref.flush() 65 | 66 | t.is(t.context.store.state.primitive['.value'], 2) 67 | t.is(t.context.store.state.primitive['.key'], t.context.ref.key) 68 | t.context.ref.set('foo') 69 | t.context.ref.flush() 70 | t.is(t.context.store.state.primitive['.value'], 'foo') 71 | t.is(t.context.store.state.primitive['.key'], t.context.ref.key) 72 | }) 73 | 74 | test('binds to a reference with no data', t => { 75 | t.context.store.dispatch('setOptionsRef', t.context.ref.child('foo')) 76 | t.context.ref.flush() 77 | 78 | t.deepEqual(t.context.store.state.options, { '.key': 'foo', '.value': null }) 79 | }) 80 | 81 | test('sets the key as null when bound to the root', t => { 82 | t.context.store.dispatch('setOptionsRef', root) 83 | t.context.ref.flush() 84 | 85 | t.is(t.context.store.state.options['.key'], null) 86 | }) 87 | 88 | test('binds multiple references at the same time', t => { 89 | const foo = t.context.ref.child('foo') 90 | const bar = t.context.ref.child('bar') 91 | t.context.store.dispatch('setOptionsRef', foo) 92 | t.context.store.dispatch('setPrimitiveRef', bar) 93 | foo.set('foo') 94 | bar.set('bar') 95 | t.context.ref.flush() 96 | 97 | t.deepEqual(t.context.store.state.options, {'.key': 'foo', '.value': 'foo'}) 98 | t.deepEqual(t.context.store.state.primitive, {'.key': 'bar', '.value': 'bar'}) 99 | }) 100 | 101 | test('unbinds old reference when binding a new one', t => { 102 | const foo = t.context.ref.child('foo') 103 | const bar = t.context.ref.child('bar') 104 | t.context.store.dispatch('setOptionsRef', foo) 105 | 106 | foo.set('foo') 107 | t.context.ref.flush() 108 | t.deepEqual(t.context.store.state.options, {'.key': 'foo', '.value': 'foo'}) 109 | 110 | t.context.store.dispatch('setOptionsRef', bar) 111 | bar.set('bar') 112 | t.context.ref.flush() 113 | t.deepEqual(t.context.store.state.options, {'.key': 'bar', '.value': 'bar'}) 114 | 115 | foo.set('foo 2') 116 | t.context.ref.flush() 117 | t.deepEqual(t.context.store.state.options, {'.key': 'bar', '.value': 'bar'}) 118 | }) 119 | 120 | test('unbinds a reference', t => { 121 | const foo = t.context.ref.child('foo') 122 | t.context.store.dispatch('setOptionsRef', foo) 123 | 124 | foo.set('foo') 125 | t.context.ref.flush() 126 | t.deepEqual(t.context.store.state.options, {'.key': 'foo', '.value': 'foo'}) 127 | 128 | t.context.store.dispatch('unbindOptionsRef') 129 | foo.set('foo 2') 130 | t.context.ref.flush() 131 | t.deepEqual(t.context.store.state.options, {'.key': 'foo', '.value': 'foo'}) 132 | }) 133 | -------------------------------------------------------------------------------- /test/errors.spec.js: -------------------------------------------------------------------------------- 1 | import test from 'ava' 2 | import Vue from 'vue' 3 | import Vuex from 'vuex' 4 | import { MockFirebase } from 'firebase-mock' 5 | 6 | import { 7 | firebaseMutations, 8 | firebaseAction, 9 | } from '../src' 10 | 11 | const root = new MockFirebase() 12 | const invalidFirebaseRefs = [null, undefined, true, false, [], 0, 5, '', 'a', ['hi', 1]] 13 | 14 | test.before(t => { 15 | Vue.use(Vuex) 16 | }) 17 | 18 | test.beforeEach(t => { 19 | t.context.store = new Vuex.Store({ 20 | state: { 21 | options: null, 22 | }, 23 | actions: { 24 | setup: firebaseAction(({ bindFirebaseRef, unbindFirebaseRef }) => { 25 | t.context.bind = bindFirebaseRef 26 | t.context.unbind = unbindFirebaseRef 27 | }), 28 | }, 29 | mutations: firebaseMutations, 30 | }) 31 | t.context.store.dispatch('setup') 32 | 33 | // Create a fresh ref for the test 34 | const ref = root.push({}) 35 | root.flush() 36 | t.context.ref = ref 37 | }) 38 | 39 | test('invalid firebase refs', t => { 40 | invalidFirebaseRefs.forEach(ref => { 41 | const err = t.throws(() => t.context.bind('foo', ref)) 42 | t.is(err.message, 'VuexFire: invalid Firebase binding source.') 43 | }) 44 | }) 45 | 46 | test('bind non existing key', t => { 47 | const err = t.throws(() => t.context.bind('foo', t.context.ref)) 48 | t.is(err.message, `VuexFire: cannot bind undefined property 'foo'. Define it on the state first.`) 49 | }) 50 | 51 | test('unbind non existing key', t => { 52 | const err = t.throws(() => t.context.unbind('options')) 53 | t.is(err.message, `VuexFire: cannot unbind 'options' because it wasn't bound.`) 54 | }) 55 | 56 | test('unbind twice', t => { 57 | t.notThrows(() => { 58 | t.context.bind('options', t.context.ref) 59 | t.context.unbind('options') 60 | }) 61 | const err = t.throws(() => { 62 | t.context.unbind('options') 63 | }) 64 | t.is(err.message, `VuexFire: cannot unbind 'options' because it wasn't bound.`) 65 | }) 66 | -------------------------------------------------------------------------------- /test/firebase.spec.js: -------------------------------------------------------------------------------- 1 | import test from 'ava' 2 | import Vue from 'vue' 3 | import Vuex from 'vuex' 4 | import { 5 | createRef, 6 | createFirebaseApp, 7 | } from './helpers/firebase' 8 | 9 | import { 10 | firebaseMutations, 11 | firebaseAction, 12 | } from '../src' 13 | 14 | const firebaseApp = createFirebaseApp() 15 | 16 | test.before(t => { 17 | Vue.use(Vuex) 18 | }) 19 | 20 | test.beforeEach(async (t) => { 21 | t.context.store = new Vuex.Store({ 22 | state: { 23 | items: [], 24 | }, 25 | actions: { 26 | setItemsRef: firebaseAction(({ bindFirebaseRef }, ref) => { 27 | bindFirebaseRef('items', ref) 28 | }), 29 | unbindItemsRef: firebaseAction(({ unbindFirebaseRef }) => { 30 | unbindFirebaseRef('items') 31 | }), 32 | bindsWithCallback: firebaseAction( 33 | ({ bindFirebaseRef }, { ref, readyCallback, wait = false }) => { 34 | bindFirebaseRef('items', ref, { readyCallback, wait }) 35 | } 36 | ), 37 | }, 38 | mutations: firebaseMutations, 39 | }) 40 | 41 | // Create a fresh ref for the test 42 | const ref = await createRef(firebaseApp) 43 | t.context.ref = ref 44 | await ref.set({}) 45 | }) 46 | 47 | test('binds a subset of records when using limit queries', async (t) => { 48 | t.context.store.dispatch('setItemsRef', t.context.ref.limitToLast(2)) 49 | await t.context.ref.set({ 50 | a: 1, 51 | b: 2, 52 | c: 3, 53 | }) 54 | t.deepEqual(t.context.store.state.items, [ 55 | { '.key': 'b', '.value': 2 }, 56 | { '.key': 'c', '.value': 3 }, 57 | ]) 58 | }) 59 | 60 | test('removes records when outside of limit', async (t) => { 61 | t.context.store.dispatch('setItemsRef', t.context.ref.limitToLast(2)) 62 | await t.context.ref.set({ 63 | a: 1, 64 | b: 2, 65 | c: 3, 66 | }) 67 | await t.context.ref.child('d').set(4) 68 | t.deepEqual(t.context.store.state.items, [ 69 | { '.key': 'c', '.value': 3 }, 70 | { '.key': 'd', '.value': 4 }, 71 | ]) 72 | }) 73 | 74 | test('add existing record when another within the limit is removed', async (t) => { 75 | t.context.store.dispatch('setItemsRef', t.context.ref.limitToLast(2)) 76 | await t.context.ref.set({ 77 | a: 1, 78 | b: 2, 79 | c: 3, 80 | }) 81 | await t.context.ref.child('c').remove() 82 | t.deepEqual(t.context.store.state.items, [ 83 | { '.key': 'a', '.value': 1 }, 84 | { '.key': 'b', '.value': 2 }, 85 | ]) 86 | }) 87 | 88 | test('order records properly', async (t) => { 89 | t.context.store.dispatch('setItemsRef', t.context.ref.orderByValue()) 90 | await t.context.ref.set({ 91 | a: 2, 92 | b: 1, 93 | c: 3, 94 | }) 95 | t.deepEqual(t.context.store.state.items, [ 96 | { '.key': 'b', '.value': 1 }, 97 | { '.key': 'a', '.value': 2 }, 98 | { '.key': 'c', '.value': 3 }, 99 | ]) 100 | }) 101 | 102 | test('moves a record when the order changes with wait: false', async (t) => { 103 | t.context.store.dispatch('bindsWithCallback', { 104 | ref: t.context.ref.orderByValue(), 105 | }) 106 | await t.context.ref.set({ 107 | a: 1, 108 | b: 2, 109 | c: 3, 110 | }) 111 | await t.context.ref.child('a').set(4) 112 | t.deepEqual(t.context.store.state.items, [ 113 | { '.key': 'b', '.value': 2 }, 114 | { '.key': 'c', '.value': 3 }, 115 | { '.key': 'a', '.value': 4 }, 116 | ]) 117 | await t.context.ref.child('a').set(1) 118 | t.deepEqual(t.context.store.state.items, [ 119 | { '.key': 'a', '.value': 1 }, 120 | { '.key': 'b', '.value': 2 }, 121 | { '.key': 'c', '.value': 3 }, 122 | ]) 123 | await t.context.ref.child('a').set(2.5) 124 | t.deepEqual(t.context.store.state.items, [ 125 | { '.key': 'b', '.value': 2 }, 126 | { '.key': 'a', '.value': 2.5 }, 127 | { '.key': 'c', '.value': 3 }, 128 | ]) 129 | }) 130 | 131 | test('moves a record when the order changes', async (t) => { 132 | t.context.store.dispatch('setItemsRef', t.context.ref.orderByValue()) 133 | await t.context.ref.set({ 134 | a: 1, 135 | b: 2, 136 | c: 3, 137 | }) 138 | await t.context.ref.child('a').set(4) 139 | t.deepEqual(t.context.store.state.items, [ 140 | { '.key': 'b', '.value': 2 }, 141 | { '.key': 'c', '.value': 3 }, 142 | { '.key': 'a', '.value': 4 }, 143 | ]) 144 | await t.context.ref.child('a').set(1) 145 | t.deepEqual(t.context.store.state.items, [ 146 | { '.key': 'a', '.value': 1 }, 147 | { '.key': 'b', '.value': 2 }, 148 | { '.key': 'c', '.value': 3 }, 149 | ]) 150 | await t.context.ref.child('a').set(2.5) 151 | t.deepEqual(t.context.store.state.items, [ 152 | { '.key': 'b', '.value': 2 }, 153 | { '.key': 'a', '.value': 2.5 }, 154 | { '.key': 'c', '.value': 3 }, 155 | ]) 156 | }) 157 | 158 | test.cb('readyCallback', t => { 159 | const foo = t.context.ref.child('foo') 160 | t.plan(1) 161 | const readyCallback = res => { 162 | t.deepEqual(res.val(), { bar: 'bar' }) 163 | t.end() 164 | } 165 | t.context.store.dispatch('bindsWithCallback', { ref: foo, readyCallback }) 166 | foo.child('bar').set('bar') 167 | }) 168 | 169 | test.cb('waits for the whole array to be synced', (t) => { 170 | const first = t.context.ref.child('page_1') 171 | const second = t.context.ref.child('page_2') 172 | 173 | t.context.store.dispatch('setItemsRef', first) 174 | t.deepEqual(t.context.store.state.items, []) 175 | first.child('foo').set('item 1').then(() => { 176 | t.deepEqual(t.context.store.state.items, [{'.key': 'foo', '.value': 'item 1'}]) 177 | 178 | const readyCallback = () => { 179 | t.deepEqual(t.context.store.state.items, []) 180 | second.child('foo').set('item 2').then(() => { 181 | t.deepEqual(t.context.store.state.items, [{'.key': 'foo', '.value': 'item 2'}]) 182 | t.end() 183 | }) 184 | } 185 | 186 | t.context.store.dispatch('bindsWithCallback', { 187 | ref: second, 188 | readyCallback, 189 | wait: true, 190 | }) 191 | t.deepEqual(t.context.store.state.items, [{'.key': 'foo', '.value': 'item 1'}]) 192 | }) 193 | }) 194 | -------------------------------------------------------------------------------- /test/helpers/firebase.js: -------------------------------------------------------------------------------- 1 | var firebase = require('firebase') 2 | 3 | exports.invalidFirebaseRefs = [null, undefined, true, false, [], 0, 5, '', 'a', ['hi', 1]] 4 | 5 | /* Returns a random alphabetic string of variable length */ 6 | exports.generateRandomString = function generateRandomString () { 7 | const possibleCharacters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' 8 | const numPossibleCharacters = possibleCharacters.length 9 | 10 | var text = '' 11 | for (var i = 0; i < 10; i++) { 12 | text += possibleCharacters.charAt(Math.floor(Math.random() * numPossibleCharacters)) 13 | } 14 | 15 | return text 16 | } 17 | 18 | exports.createFirebaseApp = function createFirebaseApp () { 19 | return firebase.initializeApp({ 20 | apiKey: 'AIzaSyC3eBV8N95k_K67GTfPqf67Mk1P-IKcYng', 21 | authDomain: 'oss-test.firebaseapp.com', 22 | databaseURL: 'https://oss-test.firebaseio.com', 23 | storageBucket: 'oss-test.appspot.com', 24 | }) 25 | } 26 | 27 | exports.createRef = function createRef (firebaseApp) { 28 | const firebaseRef = firebaseApp.database().ref().child('vuexfire') 29 | return new Promise(function (resolve, reject) { 30 | firebaseRef.remove(function (error) { 31 | if (error) { 32 | reject(error) 33 | } else { 34 | resolve(firebaseRef.child(exports.generateRandomString())) 35 | } 36 | }) 37 | }) 38 | } 39 | -------------------------------------------------------------------------------- /test/modules.spec.js: -------------------------------------------------------------------------------- 1 | import test from 'ava' 2 | import Vue from 'vue' 3 | import Vuex from 'vuex' 4 | import { MockFirebase } from 'firebase-mock' 5 | 6 | import { 7 | firebaseMutations, 8 | firebaseAction, 9 | } from '../src' 10 | 11 | const root = new MockFirebase() 12 | 13 | test.before(t => { 14 | Vue.use(Vuex) 15 | }) 16 | 17 | const itemsActions = { 18 | setItemsRef: firebaseAction(({ bindFirebaseRef }, ref) => { 19 | bindFirebaseRef('items', ref) 20 | }), 21 | unbindItemsRef: firebaseAction(({ unbindFirebaseRef }) => { 22 | unbindFirebaseRef('items') 23 | }), 24 | } 25 | 26 | test.beforeEach(t => { 27 | t.context.store = new Vuex.Store({ 28 | mutations: firebaseMutations, 29 | modules: { 30 | named: { 31 | namespaced: true, 32 | state: { items: [] }, 33 | actions: itemsActions, 34 | }, 35 | todos: { 36 | state: { 37 | items: [], 38 | options: null, 39 | }, 40 | actions: Object.assign({ 41 | setOptionsRef: firebaseAction(({ bindFirebaseRef }, ref) => { 42 | bindFirebaseRef('options', ref) 43 | }), 44 | unbindOptionsRef: firebaseAction(({ unbindFirebaseRef }) => { 45 | unbindFirebaseRef('options') 46 | }), 47 | }, itemsActions), 48 | }, 49 | }, 50 | }) 51 | 52 | // Create a fresh ref for the test 53 | const ref = root.push({}) 54 | root.flush() 55 | t.context.ref = ref 56 | }) 57 | 58 | test('binds an array to a module', t => { 59 | t.context.store.dispatch('setItemsRef', t.context.ref) 60 | t.context.ref.set({ 61 | first: { index: 0 }, 62 | second: { index: 1 }, 63 | third: { index: 2 }, 64 | }) 65 | t.context.ref.flush() 66 | 67 | t.deepEqual(t.context.store.state.todos.items, [ 68 | { '.key': 'first', index: 0 }, 69 | { '.key': 'second', index: 1 }, 70 | { '.key': 'third', index: 2 }, 71 | ]) 72 | t.context.ref.child('first').child('index').set(3) 73 | t.context.ref.flush() 74 | t.deepEqual(t.context.store.state.todos.items[0].index, 3) 75 | }) 76 | 77 | test('works on namespaced modules', t => { 78 | t.context.store.dispatch('named/setItemsRef', t.context.ref) 79 | t.context.ref.set({ 80 | first: { index: 0 }, 81 | second: { index: 1 }, 82 | third: { index: 2 }, 83 | }) 84 | t.context.ref.flush() 85 | 86 | t.deepEqual(t.context.store.state.named.items, [ 87 | { '.key': 'first', index: 0 }, 88 | { '.key': 'second', index: 1 }, 89 | { '.key': 'third', index: 2 }, 90 | ]) 91 | t.context.ref.child('first').child('index').set(3) 92 | t.context.ref.flush() 93 | t.deepEqual(t.context.store.state.named.items[0].index, 3) 94 | }) 95 | -------------------------------------------------------------------------------- /test/store.spec.js: -------------------------------------------------------------------------------- 1 | import test from 'ava' 2 | import Vue from 'vue' 3 | import Vuex from 'vuex' 4 | 5 | import { 6 | firebaseMutations, 7 | firebaseAction, 8 | } from '../src' 9 | 10 | test.before(t => { 11 | Vue.use(Vuex) 12 | }) 13 | 14 | test.beforeEach(t => { 15 | t.context.store = new Vuex.Store({ 16 | state: { 17 | options: null, 18 | }, 19 | actions: { 20 | give: firebaseAction(() => true), 21 | }, 22 | mutations: firebaseMutations, 23 | }) 24 | }) 25 | 26 | test('propagates the returns', async (t) => { 27 | t.is(await t.context.store.dispatch('give'), true) 28 | }) 29 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | acorn-jsx@^3.0.0: 6 | version "3.0.1" 7 | resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" 8 | dependencies: 9 | acorn "^3.0.4" 10 | 11 | acorn@^3.0.4: 12 | version "3.3.0" 13 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" 14 | 15 | acorn@^5.1.1: 16 | version "5.1.1" 17 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.1.1.tgz#53fe161111f912ab999ee887a90a0bc52822fd75" 18 | 19 | ajv-keywords@^1.0.0: 20 | version "1.5.1" 21 | resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c" 22 | 23 | ajv@^4.7.0, ajv@^4.9.1: 24 | version "4.11.8" 25 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" 26 | dependencies: 27 | co "^4.6.0" 28 | json-stable-stringify "^1.0.1" 29 | 30 | ajv@^5.2.0: 31 | version "5.2.2" 32 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.2.2.tgz#47c68d69e86f5d953103b0074a9430dc63da5e39" 33 | dependencies: 34 | co "^4.6.0" 35 | fast-deep-equal "^1.0.0" 36 | json-schema-traverse "^0.3.0" 37 | json-stable-stringify "^1.0.1" 38 | 39 | ansi-escapes@^2.0.0: 40 | version "2.0.0" 41 | resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-2.0.0.tgz#5bae52be424878dd9783e8910e3fc2922e83c81b" 42 | 43 | ansi-regex@^2.0.0: 44 | version "2.1.1" 45 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 46 | 47 | ansi-regex@^3.0.0: 48 | version "3.0.0" 49 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" 50 | 51 | ansi-styles@^2.2.1: 52 | version "2.2.1" 53 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" 54 | 55 | ansi-styles@^3.1.0: 56 | version "3.2.0" 57 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88" 58 | dependencies: 59 | color-convert "^1.9.0" 60 | 61 | argparse@^1.0.7: 62 | version "1.0.9" 63 | resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" 64 | dependencies: 65 | sprintf-js "~1.0.2" 66 | 67 | argv@0.0.2: 68 | version "0.0.2" 69 | resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab" 70 | 71 | array-union@^1.0.1: 72 | version "1.0.2" 73 | resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" 74 | dependencies: 75 | array-uniq "^1.0.1" 76 | 77 | array-uniq@^1.0.1: 78 | version "1.0.3" 79 | resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" 80 | 81 | arrify@^1.0.0: 82 | version "1.0.1" 83 | resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" 84 | 85 | asn1@~0.2.3: 86 | version "0.2.3" 87 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" 88 | 89 | assert-plus@1.0.0, assert-plus@^1.0.0: 90 | version "1.0.0" 91 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 92 | 93 | assert-plus@^0.2.0: 94 | version "0.2.0" 95 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" 96 | 97 | asynckit@^0.4.0: 98 | version "0.4.0" 99 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 100 | 101 | aws-sign2@~0.6.0: 102 | version "0.6.0" 103 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" 104 | 105 | aws4@^1.2.1: 106 | version "1.6.0" 107 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" 108 | 109 | babel-code-frame@^6.22.0, babel-code-frame@^6.26.0: 110 | version "6.26.0" 111 | resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" 112 | dependencies: 113 | chalk "^1.1.3" 114 | esutils "^2.0.2" 115 | js-tokens "^3.0.2" 116 | 117 | babel-eslint@^7.2.3: 118 | version "7.2.3" 119 | resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-7.2.3.tgz#b2fe2d80126470f5c19442dc757253a897710827" 120 | dependencies: 121 | babel-code-frame "^6.22.0" 122 | babel-traverse "^6.23.1" 123 | babel-types "^6.23.0" 124 | babylon "^6.17.0" 125 | 126 | babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: 127 | version "6.24.1" 128 | resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" 129 | dependencies: 130 | babel-helper-explode-assignable-expression "^6.24.1" 131 | babel-runtime "^6.22.0" 132 | babel-types "^6.24.1" 133 | 134 | babel-helper-call-delegate@^6.24.1: 135 | version "6.24.1" 136 | resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" 137 | dependencies: 138 | babel-helper-hoist-variables "^6.24.1" 139 | babel-runtime "^6.22.0" 140 | babel-traverse "^6.24.1" 141 | babel-types "^6.24.1" 142 | 143 | babel-helper-define-map@^6.24.1: 144 | version "6.26.0" 145 | resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" 146 | dependencies: 147 | babel-helper-function-name "^6.24.1" 148 | babel-runtime "^6.26.0" 149 | babel-types "^6.26.0" 150 | lodash "^4.17.4" 151 | 152 | babel-helper-explode-assignable-expression@^6.24.1: 153 | version "6.24.1" 154 | resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" 155 | dependencies: 156 | babel-runtime "^6.22.0" 157 | babel-traverse "^6.24.1" 158 | babel-types "^6.24.1" 159 | 160 | babel-helper-function-name@^6.24.1: 161 | version "6.24.1" 162 | resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" 163 | dependencies: 164 | babel-helper-get-function-arity "^6.24.1" 165 | babel-runtime "^6.22.0" 166 | babel-template "^6.24.1" 167 | babel-traverse "^6.24.1" 168 | babel-types "^6.24.1" 169 | 170 | babel-helper-get-function-arity@^6.24.1: 171 | version "6.24.1" 172 | resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" 173 | dependencies: 174 | babel-runtime "^6.22.0" 175 | babel-types "^6.24.1" 176 | 177 | babel-helper-hoist-variables@^6.24.1: 178 | version "6.24.1" 179 | resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" 180 | dependencies: 181 | babel-runtime "^6.22.0" 182 | babel-types "^6.24.1" 183 | 184 | babel-helper-optimise-call-expression@^6.24.1: 185 | version "6.24.1" 186 | resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" 187 | dependencies: 188 | babel-runtime "^6.22.0" 189 | babel-types "^6.24.1" 190 | 191 | babel-helper-regex@^6.24.1: 192 | version "6.26.0" 193 | resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" 194 | dependencies: 195 | babel-runtime "^6.26.0" 196 | babel-types "^6.26.0" 197 | lodash "^4.17.4" 198 | 199 | babel-helper-remap-async-to-generator@^6.24.1: 200 | version "6.24.1" 201 | resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" 202 | dependencies: 203 | babel-helper-function-name "^6.24.1" 204 | babel-runtime "^6.22.0" 205 | babel-template "^6.24.1" 206 | babel-traverse "^6.24.1" 207 | babel-types "^6.24.1" 208 | 209 | babel-helper-replace-supers@^6.24.1: 210 | version "6.24.1" 211 | resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" 212 | dependencies: 213 | babel-helper-optimise-call-expression "^6.24.1" 214 | babel-messages "^6.23.0" 215 | babel-runtime "^6.22.0" 216 | babel-template "^6.24.1" 217 | babel-traverse "^6.24.1" 218 | babel-types "^6.24.1" 219 | 220 | babel-messages@^6.23.0: 221 | version "6.23.0" 222 | resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" 223 | dependencies: 224 | babel-runtime "^6.22.0" 225 | 226 | babel-plugin-check-es2015-constants@^6.22.0: 227 | version "6.22.0" 228 | resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" 229 | dependencies: 230 | babel-runtime "^6.22.0" 231 | 232 | babel-plugin-syntax-async-functions@^6.8.0: 233 | version "6.13.0" 234 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" 235 | 236 | babel-plugin-syntax-exponentiation-operator@^6.8.0: 237 | version "6.13.0" 238 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" 239 | 240 | babel-plugin-syntax-trailing-function-commas@^6.22.0: 241 | version "6.22.0" 242 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" 243 | 244 | babel-plugin-transform-async-to-generator@^6.22.0: 245 | version "6.24.1" 246 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" 247 | dependencies: 248 | babel-helper-remap-async-to-generator "^6.24.1" 249 | babel-plugin-syntax-async-functions "^6.8.0" 250 | babel-runtime "^6.22.0" 251 | 252 | babel-plugin-transform-es2015-arrow-functions@^6.22.0: 253 | version "6.22.0" 254 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" 255 | dependencies: 256 | babel-runtime "^6.22.0" 257 | 258 | babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: 259 | version "6.22.0" 260 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" 261 | dependencies: 262 | babel-runtime "^6.22.0" 263 | 264 | babel-plugin-transform-es2015-block-scoping@^6.23.0: 265 | version "6.26.0" 266 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" 267 | dependencies: 268 | babel-runtime "^6.26.0" 269 | babel-template "^6.26.0" 270 | babel-traverse "^6.26.0" 271 | babel-types "^6.26.0" 272 | lodash "^4.17.4" 273 | 274 | babel-plugin-transform-es2015-classes@^6.23.0: 275 | version "6.24.1" 276 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" 277 | dependencies: 278 | babel-helper-define-map "^6.24.1" 279 | babel-helper-function-name "^6.24.1" 280 | babel-helper-optimise-call-expression "^6.24.1" 281 | babel-helper-replace-supers "^6.24.1" 282 | babel-messages "^6.23.0" 283 | babel-runtime "^6.22.0" 284 | babel-template "^6.24.1" 285 | babel-traverse "^6.24.1" 286 | babel-types "^6.24.1" 287 | 288 | babel-plugin-transform-es2015-computed-properties@^6.22.0: 289 | version "6.24.1" 290 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" 291 | dependencies: 292 | babel-runtime "^6.22.0" 293 | babel-template "^6.24.1" 294 | 295 | babel-plugin-transform-es2015-destructuring@^6.23.0: 296 | version "6.23.0" 297 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" 298 | dependencies: 299 | babel-runtime "^6.22.0" 300 | 301 | babel-plugin-transform-es2015-duplicate-keys@^6.22.0: 302 | version "6.24.1" 303 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" 304 | dependencies: 305 | babel-runtime "^6.22.0" 306 | babel-types "^6.24.1" 307 | 308 | babel-plugin-transform-es2015-for-of@^6.23.0: 309 | version "6.23.0" 310 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" 311 | dependencies: 312 | babel-runtime "^6.22.0" 313 | 314 | babel-plugin-transform-es2015-function-name@^6.22.0: 315 | version "6.24.1" 316 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" 317 | dependencies: 318 | babel-helper-function-name "^6.24.1" 319 | babel-runtime "^6.22.0" 320 | babel-types "^6.24.1" 321 | 322 | babel-plugin-transform-es2015-literals@^6.22.0: 323 | version "6.22.0" 324 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" 325 | dependencies: 326 | babel-runtime "^6.22.0" 327 | 328 | babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1: 329 | version "6.24.1" 330 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" 331 | dependencies: 332 | babel-plugin-transform-es2015-modules-commonjs "^6.24.1" 333 | babel-runtime "^6.22.0" 334 | babel-template "^6.24.1" 335 | 336 | babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1: 337 | version "6.26.0" 338 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a" 339 | dependencies: 340 | babel-plugin-transform-strict-mode "^6.24.1" 341 | babel-runtime "^6.26.0" 342 | babel-template "^6.26.0" 343 | babel-types "^6.26.0" 344 | 345 | babel-plugin-transform-es2015-modules-systemjs@^6.23.0: 346 | version "6.24.1" 347 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" 348 | dependencies: 349 | babel-helper-hoist-variables "^6.24.1" 350 | babel-runtime "^6.22.0" 351 | babel-template "^6.24.1" 352 | 353 | babel-plugin-transform-es2015-modules-umd@^6.23.0: 354 | version "6.24.1" 355 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" 356 | dependencies: 357 | babel-plugin-transform-es2015-modules-amd "^6.24.1" 358 | babel-runtime "^6.22.0" 359 | babel-template "^6.24.1" 360 | 361 | babel-plugin-transform-es2015-object-super@^6.22.0: 362 | version "6.24.1" 363 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" 364 | dependencies: 365 | babel-helper-replace-supers "^6.24.1" 366 | babel-runtime "^6.22.0" 367 | 368 | babel-plugin-transform-es2015-parameters@^6.23.0: 369 | version "6.24.1" 370 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" 371 | dependencies: 372 | babel-helper-call-delegate "^6.24.1" 373 | babel-helper-get-function-arity "^6.24.1" 374 | babel-runtime "^6.22.0" 375 | babel-template "^6.24.1" 376 | babel-traverse "^6.24.1" 377 | babel-types "^6.24.1" 378 | 379 | babel-plugin-transform-es2015-shorthand-properties@^6.22.0: 380 | version "6.24.1" 381 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" 382 | dependencies: 383 | babel-runtime "^6.22.0" 384 | babel-types "^6.24.1" 385 | 386 | babel-plugin-transform-es2015-spread@^6.22.0: 387 | version "6.22.0" 388 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" 389 | dependencies: 390 | babel-runtime "^6.22.0" 391 | 392 | babel-plugin-transform-es2015-sticky-regex@^6.22.0: 393 | version "6.24.1" 394 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" 395 | dependencies: 396 | babel-helper-regex "^6.24.1" 397 | babel-runtime "^6.22.0" 398 | babel-types "^6.24.1" 399 | 400 | babel-plugin-transform-es2015-template-literals@^6.22.0: 401 | version "6.22.0" 402 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" 403 | dependencies: 404 | babel-runtime "^6.22.0" 405 | 406 | babel-plugin-transform-es2015-typeof-symbol@^6.23.0: 407 | version "6.23.0" 408 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" 409 | dependencies: 410 | babel-runtime "^6.22.0" 411 | 412 | babel-plugin-transform-es2015-unicode-regex@^6.22.0: 413 | version "6.24.1" 414 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" 415 | dependencies: 416 | babel-helper-regex "^6.24.1" 417 | babel-runtime "^6.22.0" 418 | regexpu-core "^2.0.0" 419 | 420 | babel-plugin-transform-exponentiation-operator@^6.22.0: 421 | version "6.24.1" 422 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" 423 | dependencies: 424 | babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" 425 | babel-plugin-syntax-exponentiation-operator "^6.8.0" 426 | babel-runtime "^6.22.0" 427 | 428 | babel-plugin-transform-regenerator@^6.22.0: 429 | version "6.26.0" 430 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" 431 | dependencies: 432 | regenerator-transform "^0.10.0" 433 | 434 | babel-plugin-transform-strict-mode@^6.24.1: 435 | version "6.24.1" 436 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" 437 | dependencies: 438 | babel-runtime "^6.22.0" 439 | babel-types "^6.24.1" 440 | 441 | babel-preset-env@^1.6.0: 442 | version "1.6.0" 443 | resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.0.tgz#2de1c782a780a0a5d605d199c957596da43c44e4" 444 | dependencies: 445 | babel-plugin-check-es2015-constants "^6.22.0" 446 | babel-plugin-syntax-trailing-function-commas "^6.22.0" 447 | babel-plugin-transform-async-to-generator "^6.22.0" 448 | babel-plugin-transform-es2015-arrow-functions "^6.22.0" 449 | babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" 450 | babel-plugin-transform-es2015-block-scoping "^6.23.0" 451 | babel-plugin-transform-es2015-classes "^6.23.0" 452 | babel-plugin-transform-es2015-computed-properties "^6.22.0" 453 | babel-plugin-transform-es2015-destructuring "^6.23.0" 454 | babel-plugin-transform-es2015-duplicate-keys "^6.22.0" 455 | babel-plugin-transform-es2015-for-of "^6.23.0" 456 | babel-plugin-transform-es2015-function-name "^6.22.0" 457 | babel-plugin-transform-es2015-literals "^6.22.0" 458 | babel-plugin-transform-es2015-modules-amd "^6.22.0" 459 | babel-plugin-transform-es2015-modules-commonjs "^6.23.0" 460 | babel-plugin-transform-es2015-modules-systemjs "^6.23.0" 461 | babel-plugin-transform-es2015-modules-umd "^6.23.0" 462 | babel-plugin-transform-es2015-object-super "^6.22.0" 463 | babel-plugin-transform-es2015-parameters "^6.23.0" 464 | babel-plugin-transform-es2015-shorthand-properties "^6.22.0" 465 | babel-plugin-transform-es2015-spread "^6.22.0" 466 | babel-plugin-transform-es2015-sticky-regex "^6.22.0" 467 | babel-plugin-transform-es2015-template-literals "^6.22.0" 468 | babel-plugin-transform-es2015-typeof-symbol "^6.23.0" 469 | babel-plugin-transform-es2015-unicode-regex "^6.22.0" 470 | babel-plugin-transform-exponentiation-operator "^6.22.0" 471 | babel-plugin-transform-regenerator "^6.22.0" 472 | browserslist "^2.1.2" 473 | invariant "^2.2.2" 474 | semver "^5.3.0" 475 | 476 | babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: 477 | version "6.26.0" 478 | resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" 479 | dependencies: 480 | core-js "^2.4.0" 481 | regenerator-runtime "^0.11.0" 482 | 483 | babel-template@^6.24.1, babel-template@^6.26.0: 484 | version "6.26.0" 485 | resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" 486 | dependencies: 487 | babel-runtime "^6.26.0" 488 | babel-traverse "^6.26.0" 489 | babel-types "^6.26.0" 490 | babylon "^6.18.0" 491 | lodash "^4.17.4" 492 | 493 | babel-traverse@^6.23.1, babel-traverse@^6.24.1, babel-traverse@^6.26.0: 494 | version "6.26.0" 495 | resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" 496 | dependencies: 497 | babel-code-frame "^6.26.0" 498 | babel-messages "^6.23.0" 499 | babel-runtime "^6.26.0" 500 | babel-types "^6.26.0" 501 | babylon "^6.18.0" 502 | debug "^2.6.8" 503 | globals "^9.18.0" 504 | invariant "^2.2.2" 505 | lodash "^4.17.4" 506 | 507 | babel-types@^6.19.0, babel-types@^6.23.0, babel-types@^6.24.1, babel-types@^6.26.0: 508 | version "6.26.0" 509 | resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" 510 | dependencies: 511 | babel-runtime "^6.26.0" 512 | esutils "^2.0.2" 513 | lodash "^4.17.4" 514 | to-fast-properties "^1.0.3" 515 | 516 | babylon@^6.17.0, babylon@^6.18.0: 517 | version "6.18.0" 518 | resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" 519 | 520 | balanced-match@^1.0.0: 521 | version "1.0.0" 522 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" 523 | 524 | bcrypt-pbkdf@^1.0.0: 525 | version "1.0.1" 526 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" 527 | dependencies: 528 | tweetnacl "^0.14.3" 529 | 530 | boom@2.x.x: 531 | version "2.10.1" 532 | resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" 533 | dependencies: 534 | hoek "2.x.x" 535 | 536 | brace-expansion@^1.1.7: 537 | version "1.1.8" 538 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" 539 | dependencies: 540 | balanced-match "^1.0.0" 541 | concat-map "0.0.1" 542 | 543 | browserslist@^2.1.2: 544 | version "2.4.0" 545 | resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.4.0.tgz#693ee93d01e66468a6348da5498e011f578f87f8" 546 | dependencies: 547 | caniuse-lite "^1.0.30000718" 548 | electron-to-chromium "^1.3.18" 549 | 550 | builtin-modules@^1.0.0, builtin-modules@^1.1.1: 551 | version "1.1.1" 552 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 553 | 554 | caller-path@^0.1.0: 555 | version "0.1.0" 556 | resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f" 557 | dependencies: 558 | callsites "^0.2.0" 559 | 560 | callsites@^0.2.0: 561 | version "0.2.0" 562 | resolved "https://registry.yarnpkg.com/callsites/-/callsites-0.2.0.tgz#afab96262910a7f33c19a5775825c69f34e350ca" 563 | 564 | caniuse-lite@^1.0.30000718: 565 | version "1.0.30000721" 566 | resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000721.tgz#931a21a7bd85016300328d21f126d84b73437d35" 567 | 568 | caseless@~0.12.0: 569 | version "0.12.0" 570 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" 571 | 572 | chalk@^1.1.1, chalk@^1.1.3: 573 | version "1.1.3" 574 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" 575 | dependencies: 576 | ansi-styles "^2.2.1" 577 | escape-string-regexp "^1.0.2" 578 | has-ansi "^2.0.0" 579 | strip-ansi "^3.0.0" 580 | supports-color "^2.0.0" 581 | 582 | chalk@^2.0.0, chalk@^2.1.0: 583 | version "2.1.0" 584 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e" 585 | dependencies: 586 | ansi-styles "^3.1.0" 587 | escape-string-regexp "^1.0.5" 588 | supports-color "^4.0.0" 589 | 590 | circular-json@^0.3.1: 591 | version "0.3.3" 592 | resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.3.tgz#815c99ea84f6809529d2f45791bdf82711352d66" 593 | 594 | cli-cursor@^2.1.0: 595 | version "2.1.0" 596 | resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" 597 | dependencies: 598 | restore-cursor "^2.0.0" 599 | 600 | cli-width@^2.0.0: 601 | version "2.2.0" 602 | resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" 603 | 604 | co@^4.6.0: 605 | version "4.6.0" 606 | resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" 607 | 608 | codecov@^3.0.0: 609 | version "3.0.0" 610 | resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.0.0.tgz#c273b8c4f12945723e8dc9d25803d89343e5f28e" 611 | dependencies: 612 | argv "0.0.2" 613 | request "2.81.0" 614 | urlgrey "0.4.4" 615 | 616 | color-convert@^1.9.0: 617 | version "1.9.0" 618 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.0.tgz#1accf97dd739b983bf994d56fec8f95853641b7a" 619 | dependencies: 620 | color-name "^1.1.1" 621 | 622 | color-name@^1.1.1: 623 | version "1.1.3" 624 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" 625 | 626 | combined-stream@^1.0.5, combined-stream@~1.0.5: 627 | version "1.0.5" 628 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" 629 | dependencies: 630 | delayed-stream "~1.0.0" 631 | 632 | concat-map@0.0.1: 633 | version "0.0.1" 634 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 635 | 636 | concat-stream@^1.6.0: 637 | version "1.6.0" 638 | resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7" 639 | dependencies: 640 | inherits "^2.0.3" 641 | readable-stream "^2.2.2" 642 | typedarray "^0.0.6" 643 | 644 | contains-path@^0.1.0: 645 | version "0.1.0" 646 | resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" 647 | 648 | core-js@^2.4.0: 649 | version "2.5.1" 650 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.1.tgz#ae6874dc66937789b80754ff5428df66819ca50b" 651 | 652 | core-util-is@1.0.2, core-util-is@~1.0.0: 653 | version "1.0.2" 654 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 655 | 656 | cross-spawn@^5.1.0: 657 | version "5.1.0" 658 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" 659 | dependencies: 660 | lru-cache "^4.0.1" 661 | shebang-command "^1.2.0" 662 | which "^1.2.9" 663 | 664 | cryptiles@2.x.x: 665 | version "2.0.5" 666 | resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" 667 | dependencies: 668 | boom "2.x.x" 669 | 670 | dashdash@^1.12.0: 671 | version "1.14.1" 672 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 673 | dependencies: 674 | assert-plus "^1.0.0" 675 | 676 | debug@^2.6.8: 677 | version "2.6.8" 678 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc" 679 | dependencies: 680 | ms "2.0.0" 681 | 682 | debug@^3.0.0: 683 | version "3.0.1" 684 | resolved "https://registry.yarnpkg.com/debug/-/debug-3.0.1.tgz#0564c612b521dc92d9f2988f0549e34f9c98db64" 685 | dependencies: 686 | ms "2.0.0" 687 | 688 | deep-is@~0.1.3: 689 | version "0.1.3" 690 | resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" 691 | 692 | del@^2.0.2: 693 | version "2.2.2" 694 | resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" 695 | dependencies: 696 | globby "^5.0.0" 697 | is-path-cwd "^1.0.0" 698 | is-path-in-cwd "^1.0.0" 699 | object-assign "^4.0.1" 700 | pify "^2.0.0" 701 | pinkie-promise "^2.0.0" 702 | rimraf "^2.2.8" 703 | 704 | delayed-stream@~1.0.0: 705 | version "1.0.0" 706 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 707 | 708 | doctrine@1.5.0: 709 | version "1.5.0" 710 | resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" 711 | dependencies: 712 | esutils "^2.0.2" 713 | isarray "^1.0.0" 714 | 715 | doctrine@^2.0.0: 716 | version "2.0.0" 717 | resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.0.0.tgz#c73d8d2909d22291e1a007a395804da8b665fe63" 718 | dependencies: 719 | esutils "^2.0.2" 720 | isarray "^1.0.0" 721 | 722 | ecc-jsbn@~0.1.1: 723 | version "0.1.1" 724 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" 725 | dependencies: 726 | jsbn "~0.1.0" 727 | 728 | electron-to-chromium@^1.3.18: 729 | version "1.3.20" 730 | resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.20.tgz#2eedd5ccbae7ddc557f68ad1fce9c172e915e4e5" 731 | 732 | error-ex@^1.2.0: 733 | version "1.3.1" 734 | resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" 735 | dependencies: 736 | is-arrayish "^0.2.1" 737 | 738 | escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: 739 | version "1.0.5" 740 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 741 | 742 | eslint-config-posva@^1.3.0: 743 | version "1.3.1" 744 | resolved "https://registry.yarnpkg.com/eslint-config-posva/-/eslint-config-posva-1.3.1.tgz#6a18e81947e6c9410ae35d2b22056f6205c9ff24" 745 | dependencies: 746 | babel-eslint "^7.2.3" 747 | eslint-config-standard "^10.2.1" 748 | eslint-plugin-import "^2.7.0" 749 | eslint-plugin-node "^5.1.1" 750 | eslint-plugin-promise "^3.5.0" 751 | eslint-plugin-standard "^3.0.1" 752 | eslint-plugin-vue "^3.13.0" 753 | 754 | eslint-config-standard@^10.2.1: 755 | version "10.2.1" 756 | resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-10.2.1.tgz#c061e4d066f379dc17cd562c64e819b4dd454591" 757 | 758 | eslint-import-resolver-node@^0.3.1: 759 | version "0.3.1" 760 | resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.1.tgz#4422574cde66a9a7b099938ee4d508a199e0e3cc" 761 | dependencies: 762 | debug "^2.6.8" 763 | resolve "^1.2.0" 764 | 765 | eslint-module-utils@^2.1.1: 766 | version "2.1.1" 767 | resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.1.1.tgz#abaec824177613b8a95b299639e1b6facf473449" 768 | dependencies: 769 | debug "^2.6.8" 770 | pkg-dir "^1.0.0" 771 | 772 | eslint-plugin-import@^2.7.0: 773 | version "2.7.0" 774 | resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.7.0.tgz#21de33380b9efb55f5ef6d2e210ec0e07e7fa69f" 775 | dependencies: 776 | builtin-modules "^1.1.1" 777 | contains-path "^0.1.0" 778 | debug "^2.6.8" 779 | doctrine "1.5.0" 780 | eslint-import-resolver-node "^0.3.1" 781 | eslint-module-utils "^2.1.1" 782 | has "^1.0.1" 783 | lodash.cond "^4.3.0" 784 | minimatch "^3.0.3" 785 | read-pkg-up "^2.0.0" 786 | 787 | eslint-plugin-node@^5.1.1: 788 | version "5.1.1" 789 | resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-5.1.1.tgz#a7ed956e780c22aef6afd1116005acd82f26eac6" 790 | dependencies: 791 | ignore "^3.3.3" 792 | minimatch "^3.0.4" 793 | resolve "^1.3.3" 794 | semver "5.3.0" 795 | 796 | eslint-plugin-promise@^3.5.0: 797 | version "3.5.0" 798 | resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.5.0.tgz#78fbb6ffe047201627569e85a6c5373af2a68fca" 799 | 800 | eslint-plugin-standard@^3.0.1: 801 | version "3.0.1" 802 | resolved "https://registry.yarnpkg.com/eslint-plugin-standard/-/eslint-plugin-standard-3.0.1.tgz#34d0c915b45edc6f010393c7eef3823b08565cf2" 803 | 804 | eslint-plugin-vue@^3.13.0: 805 | version "3.13.0" 806 | resolved "https://registry.yarnpkg.com/eslint-plugin-vue/-/eslint-plugin-vue-3.13.0.tgz#77dbe45c42ac56503cc0f2e2612911a439e96304" 807 | dependencies: 808 | requireindex "^1.1.0" 809 | vue-eslint-parser "^2.0.1-beta.0" 810 | 811 | eslint-scope@^3.7.1: 812 | version "3.7.1" 813 | resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8" 814 | dependencies: 815 | esrecurse "^4.1.0" 816 | estraverse "^4.1.1" 817 | 818 | eslint@^4.6.0: 819 | version "4.6.0" 820 | resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.6.0.tgz#98ced4a706a87abbe63207895d0023a38e250bbe" 821 | dependencies: 822 | ajv "^5.2.0" 823 | babel-code-frame "^6.22.0" 824 | chalk "^2.1.0" 825 | concat-stream "^1.6.0" 826 | cross-spawn "^5.1.0" 827 | debug "^2.6.8" 828 | doctrine "^2.0.0" 829 | eslint-scope "^3.7.1" 830 | espree "^3.5.0" 831 | esquery "^1.0.0" 832 | estraverse "^4.2.0" 833 | esutils "^2.0.2" 834 | file-entry-cache "^2.0.0" 835 | functional-red-black-tree "^1.0.1" 836 | glob "^7.1.2" 837 | globals "^9.17.0" 838 | ignore "^3.3.3" 839 | imurmurhash "^0.1.4" 840 | inquirer "^3.0.6" 841 | is-resolvable "^1.0.0" 842 | js-yaml "^3.9.1" 843 | json-stable-stringify "^1.0.1" 844 | levn "^0.3.0" 845 | lodash "^4.17.4" 846 | minimatch "^3.0.2" 847 | mkdirp "^0.5.1" 848 | natural-compare "^1.4.0" 849 | optionator "^0.8.2" 850 | path-is-inside "^1.0.2" 851 | pluralize "^4.0.0" 852 | progress "^2.0.0" 853 | require-uncached "^1.0.3" 854 | semver "^5.3.0" 855 | strip-ansi "^4.0.0" 856 | strip-json-comments "~2.0.1" 857 | table "^4.0.1" 858 | text-table "~0.2.0" 859 | 860 | espree@^3.3.2, espree@^3.5.0: 861 | version "3.5.0" 862 | resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.0.tgz#98358625bdd055861ea27e2867ea729faf463d8d" 863 | dependencies: 864 | acorn "^5.1.1" 865 | acorn-jsx "^3.0.0" 866 | 867 | esprima@^4.0.0: 868 | version "4.0.0" 869 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" 870 | 871 | esquery@^1.0.0: 872 | version "1.0.0" 873 | resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.0.tgz#cfba8b57d7fba93f17298a8a006a04cda13d80fa" 874 | dependencies: 875 | estraverse "^4.0.0" 876 | 877 | esrecurse@^4.1.0: 878 | version "4.2.0" 879 | resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.0.tgz#fa9568d98d3823f9a41d91e902dcab9ea6e5b163" 880 | dependencies: 881 | estraverse "^4.1.0" 882 | object-assign "^4.0.1" 883 | 884 | estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: 885 | version "4.2.0" 886 | resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" 887 | 888 | esutils@^2.0.2: 889 | version "2.0.2" 890 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 891 | 892 | extend@~3.0.0: 893 | version "3.0.1" 894 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" 895 | 896 | external-editor@^2.0.4: 897 | version "2.0.4" 898 | resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.0.4.tgz#1ed9199da9cbfe2ef2f7a31b2fde8b0d12368972" 899 | dependencies: 900 | iconv-lite "^0.4.17" 901 | jschardet "^1.4.2" 902 | tmp "^0.0.31" 903 | 904 | extsprintf@1.3.0, extsprintf@^1.2.0: 905 | version "1.3.0" 906 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" 907 | 908 | fast-deep-equal@^1.0.0: 909 | version "1.0.0" 910 | resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz#96256a3bc975595eb36d82e9929d060d893439ff" 911 | 912 | fast-levenshtein@~2.0.4: 913 | version "2.0.6" 914 | resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" 915 | 916 | figures@^2.0.0: 917 | version "2.0.0" 918 | resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" 919 | dependencies: 920 | escape-string-regexp "^1.0.5" 921 | 922 | file-entry-cache@^2.0.0: 923 | version "2.0.0" 924 | resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361" 925 | dependencies: 926 | flat-cache "^1.2.1" 927 | object-assign "^4.0.1" 928 | 929 | find-up@^1.0.0: 930 | version "1.1.2" 931 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" 932 | dependencies: 933 | path-exists "^2.0.0" 934 | pinkie-promise "^2.0.0" 935 | 936 | find-up@^2.0.0: 937 | version "2.1.0" 938 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" 939 | dependencies: 940 | locate-path "^2.0.0" 941 | 942 | flat-cache@^1.2.1: 943 | version "1.2.2" 944 | resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.2.2.tgz#fa86714e72c21db88601761ecf2f555d1abc6b96" 945 | dependencies: 946 | circular-json "^0.3.1" 947 | del "^2.0.2" 948 | graceful-fs "^4.1.2" 949 | write "^0.2.1" 950 | 951 | forever-agent@~0.6.1: 952 | version "0.6.1" 953 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 954 | 955 | form-data@~2.1.1: 956 | version "2.1.4" 957 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" 958 | dependencies: 959 | asynckit "^0.4.0" 960 | combined-stream "^1.0.5" 961 | mime-types "^2.1.12" 962 | 963 | fs.realpath@^1.0.0: 964 | version "1.0.0" 965 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 966 | 967 | function-bind@^1.0.2: 968 | version "1.1.1" 969 | resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" 970 | 971 | functional-red-black-tree@^1.0.1: 972 | version "1.0.1" 973 | resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" 974 | 975 | getpass@^0.1.1: 976 | version "0.1.7" 977 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" 978 | dependencies: 979 | assert-plus "^1.0.0" 980 | 981 | glob@^7.0.3, glob@^7.0.5, glob@^7.1.2: 982 | version "7.1.2" 983 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" 984 | dependencies: 985 | fs.realpath "^1.0.0" 986 | inflight "^1.0.4" 987 | inherits "2" 988 | minimatch "^3.0.4" 989 | once "^1.3.0" 990 | path-is-absolute "^1.0.0" 991 | 992 | globals@^9.17.0, globals@^9.18.0: 993 | version "9.18.0" 994 | resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" 995 | 996 | globby@^5.0.0: 997 | version "5.0.0" 998 | resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d" 999 | dependencies: 1000 | array-union "^1.0.1" 1001 | arrify "^1.0.0" 1002 | glob "^7.0.3" 1003 | object-assign "^4.0.1" 1004 | pify "^2.0.0" 1005 | pinkie-promise "^2.0.0" 1006 | 1007 | graceful-fs@^4.1.2: 1008 | version "4.1.11" 1009 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" 1010 | 1011 | har-schema@^1.0.5: 1012 | version "1.0.5" 1013 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" 1014 | 1015 | har-validator@~4.2.1: 1016 | version "4.2.1" 1017 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" 1018 | dependencies: 1019 | ajv "^4.9.1" 1020 | har-schema "^1.0.5" 1021 | 1022 | has-ansi@^2.0.0: 1023 | version "2.0.0" 1024 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" 1025 | dependencies: 1026 | ansi-regex "^2.0.0" 1027 | 1028 | has-flag@^2.0.0: 1029 | version "2.0.0" 1030 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" 1031 | 1032 | has@^1.0.1: 1033 | version "1.0.1" 1034 | resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" 1035 | dependencies: 1036 | function-bind "^1.0.2" 1037 | 1038 | hawk@~3.1.3: 1039 | version "3.1.3" 1040 | resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" 1041 | dependencies: 1042 | boom "2.x.x" 1043 | cryptiles "2.x.x" 1044 | hoek "2.x.x" 1045 | sntp "1.x.x" 1046 | 1047 | hoek@2.x.x: 1048 | version "2.16.3" 1049 | resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" 1050 | 1051 | hosted-git-info@^2.1.4: 1052 | version "2.5.0" 1053 | resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c" 1054 | 1055 | http-signature@~1.1.0: 1056 | version "1.1.1" 1057 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" 1058 | dependencies: 1059 | assert-plus "^0.2.0" 1060 | jsprim "^1.2.2" 1061 | sshpk "^1.7.0" 1062 | 1063 | iconv-lite@^0.4.17: 1064 | version "0.4.18" 1065 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.18.tgz#23d8656b16aae6742ac29732ea8f0336a4789cf2" 1066 | 1067 | ignore@^3.3.3: 1068 | version "3.3.5" 1069 | resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.5.tgz#c4e715455f6073a8d7e5dae72d2fc9d71663dba6" 1070 | 1071 | imurmurhash@^0.1.4: 1072 | version "0.1.4" 1073 | resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" 1074 | 1075 | inflight@^1.0.4: 1076 | version "1.0.6" 1077 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 1078 | dependencies: 1079 | once "^1.3.0" 1080 | wrappy "1" 1081 | 1082 | inherits@2, inherits@^2.0.3, inherits@~2.0.3: 1083 | version "2.0.3" 1084 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 1085 | 1086 | inquirer@^3.0.6: 1087 | version "3.2.3" 1088 | resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.2.3.tgz#1c7b1731cf77b934ec47d22c9ac5aa8fe7fbe095" 1089 | dependencies: 1090 | ansi-escapes "^2.0.0" 1091 | chalk "^2.0.0" 1092 | cli-cursor "^2.1.0" 1093 | cli-width "^2.0.0" 1094 | external-editor "^2.0.4" 1095 | figures "^2.0.0" 1096 | lodash "^4.3.0" 1097 | mute-stream "0.0.7" 1098 | run-async "^2.2.0" 1099 | rx-lite "^4.0.8" 1100 | rx-lite-aggregates "^4.0.8" 1101 | string-width "^2.1.0" 1102 | strip-ansi "^4.0.0" 1103 | through "^2.3.6" 1104 | 1105 | invariant@^2.2.2: 1106 | version "2.2.2" 1107 | resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" 1108 | dependencies: 1109 | loose-envify "^1.0.0" 1110 | 1111 | is-arrayish@^0.2.1: 1112 | version "0.2.1" 1113 | resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 1114 | 1115 | is-builtin-module@^1.0.0: 1116 | version "1.0.0" 1117 | resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" 1118 | dependencies: 1119 | builtin-modules "^1.0.0" 1120 | 1121 | is-fullwidth-code-point@^2.0.0: 1122 | version "2.0.0" 1123 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" 1124 | 1125 | is-path-cwd@^1.0.0: 1126 | version "1.0.0" 1127 | resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" 1128 | 1129 | is-path-in-cwd@^1.0.0: 1130 | version "1.0.0" 1131 | resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz#6477582b8214d602346094567003be8a9eac04dc" 1132 | dependencies: 1133 | is-path-inside "^1.0.0" 1134 | 1135 | is-path-inside@^1.0.0: 1136 | version "1.0.0" 1137 | resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.0.tgz#fc06e5a1683fbda13de667aff717bbc10a48f37f" 1138 | dependencies: 1139 | path-is-inside "^1.0.1" 1140 | 1141 | is-promise@^2.1.0: 1142 | version "2.1.0" 1143 | resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" 1144 | 1145 | is-resolvable@^1.0.0: 1146 | version "1.0.0" 1147 | resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.0.0.tgz#8df57c61ea2e3c501408d100fb013cf8d6e0cc62" 1148 | dependencies: 1149 | tryit "^1.0.1" 1150 | 1151 | is-typedarray@~1.0.0: 1152 | version "1.0.0" 1153 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 1154 | 1155 | isarray@^1.0.0, isarray@~1.0.0: 1156 | version "1.0.0" 1157 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 1158 | 1159 | isexe@^2.0.0: 1160 | version "2.0.0" 1161 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 1162 | 1163 | isstream@~0.1.2: 1164 | version "0.1.2" 1165 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 1166 | 1167 | js-tokens@^3.0.0, js-tokens@^3.0.2: 1168 | version "3.0.2" 1169 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" 1170 | 1171 | js-yaml@^3.9.1: 1172 | version "3.9.1" 1173 | resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.9.1.tgz#08775cebdfdd359209f0d2acd383c8f86a6904a0" 1174 | dependencies: 1175 | argparse "^1.0.7" 1176 | esprima "^4.0.0" 1177 | 1178 | jsbn@~0.1.0: 1179 | version "0.1.1" 1180 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" 1181 | 1182 | jschardet@^1.4.2: 1183 | version "1.5.1" 1184 | resolved "https://registry.yarnpkg.com/jschardet/-/jschardet-1.5.1.tgz#c519f629f86b3a5bedba58a88d311309eec097f9" 1185 | 1186 | jsesc@~0.5.0: 1187 | version "0.5.0" 1188 | resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" 1189 | 1190 | json-schema-traverse@^0.3.0: 1191 | version "0.3.1" 1192 | resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" 1193 | 1194 | json-schema@0.2.3: 1195 | version "0.2.3" 1196 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 1197 | 1198 | json-stable-stringify@^1.0.1: 1199 | version "1.0.1" 1200 | resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" 1201 | dependencies: 1202 | jsonify "~0.0.0" 1203 | 1204 | json-stringify-safe@~5.0.1: 1205 | version "5.0.1" 1206 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 1207 | 1208 | jsonify@~0.0.0: 1209 | version "0.0.0" 1210 | resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" 1211 | 1212 | jsprim@^1.2.2: 1213 | version "1.4.1" 1214 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" 1215 | dependencies: 1216 | assert-plus "1.0.0" 1217 | extsprintf "1.3.0" 1218 | json-schema "0.2.3" 1219 | verror "1.10.0" 1220 | 1221 | levn@^0.3.0, levn@~0.3.0: 1222 | version "0.3.0" 1223 | resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" 1224 | dependencies: 1225 | prelude-ls "~1.1.2" 1226 | type-check "~0.3.2" 1227 | 1228 | load-json-file@^2.0.0: 1229 | version "2.0.0" 1230 | resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" 1231 | dependencies: 1232 | graceful-fs "^4.1.2" 1233 | parse-json "^2.2.0" 1234 | pify "^2.0.0" 1235 | strip-bom "^3.0.0" 1236 | 1237 | locate-path@^2.0.0: 1238 | version "2.0.0" 1239 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" 1240 | dependencies: 1241 | p-locate "^2.0.0" 1242 | path-exists "^3.0.0" 1243 | 1244 | lodash.cond@^4.3.0: 1245 | version "4.5.2" 1246 | resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5" 1247 | 1248 | lodash@^4.0.0, lodash@^4.17.4, lodash@^4.3.0: 1249 | version "4.17.4" 1250 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" 1251 | 1252 | loose-envify@^1.0.0: 1253 | version "1.3.1" 1254 | resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" 1255 | dependencies: 1256 | js-tokens "^3.0.0" 1257 | 1258 | lru-cache@^4.0.1: 1259 | version "4.1.1" 1260 | resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55" 1261 | dependencies: 1262 | pseudomap "^1.0.2" 1263 | yallist "^2.1.2" 1264 | 1265 | mime-db@~1.30.0: 1266 | version "1.30.0" 1267 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.30.0.tgz#74c643da2dd9d6a45399963465b26d5ca7d71f01" 1268 | 1269 | mime-types@^2.1.12, mime-types@~2.1.7: 1270 | version "2.1.17" 1271 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.17.tgz#09d7a393f03e995a79f8af857b70a9e0ab16557a" 1272 | dependencies: 1273 | mime-db "~1.30.0" 1274 | 1275 | mimic-fn@^1.0.0: 1276 | version "1.1.0" 1277 | resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.1.0.tgz#e667783d92e89dbd342818b5230b9d62a672ad18" 1278 | 1279 | minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4: 1280 | version "3.0.4" 1281 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" 1282 | dependencies: 1283 | brace-expansion "^1.1.7" 1284 | 1285 | minimist@0.0.8: 1286 | version "0.0.8" 1287 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 1288 | 1289 | mkdirp@^0.5.1: 1290 | version "0.5.1" 1291 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 1292 | dependencies: 1293 | minimist "0.0.8" 1294 | 1295 | ms@2.0.0: 1296 | version "2.0.0" 1297 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" 1298 | 1299 | mute-stream@0.0.7: 1300 | version "0.0.7" 1301 | resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" 1302 | 1303 | natural-compare@^1.4.0: 1304 | version "1.4.0" 1305 | resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" 1306 | 1307 | normalize-package-data@^2.3.2: 1308 | version "2.4.0" 1309 | resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" 1310 | dependencies: 1311 | hosted-git-info "^2.1.4" 1312 | is-builtin-module "^1.0.0" 1313 | semver "2 || 3 || 4 || 5" 1314 | validate-npm-package-license "^3.0.1" 1315 | 1316 | oauth-sign@~0.8.1: 1317 | version "0.8.2" 1318 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" 1319 | 1320 | object-assign@^4.0.1: 1321 | version "4.1.1" 1322 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 1323 | 1324 | once@^1.3.0: 1325 | version "1.4.0" 1326 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1327 | dependencies: 1328 | wrappy "1" 1329 | 1330 | onetime@^2.0.0: 1331 | version "2.0.1" 1332 | resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" 1333 | dependencies: 1334 | mimic-fn "^1.0.0" 1335 | 1336 | optionator@^0.8.2: 1337 | version "0.8.2" 1338 | resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" 1339 | dependencies: 1340 | deep-is "~0.1.3" 1341 | fast-levenshtein "~2.0.4" 1342 | levn "~0.3.0" 1343 | prelude-ls "~1.1.2" 1344 | type-check "~0.3.2" 1345 | wordwrap "~1.0.0" 1346 | 1347 | os-tmpdir@~1.0.1: 1348 | version "1.0.2" 1349 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 1350 | 1351 | p-limit@^1.1.0: 1352 | version "1.1.0" 1353 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.1.0.tgz#b07ff2d9a5d88bec806035895a2bab66a27988bc" 1354 | 1355 | p-locate@^2.0.0: 1356 | version "2.0.0" 1357 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" 1358 | dependencies: 1359 | p-limit "^1.1.0" 1360 | 1361 | parse-json@^2.2.0: 1362 | version "2.2.0" 1363 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" 1364 | dependencies: 1365 | error-ex "^1.2.0" 1366 | 1367 | path-exists@^2.0.0: 1368 | version "2.1.0" 1369 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" 1370 | dependencies: 1371 | pinkie-promise "^2.0.0" 1372 | 1373 | path-exists@^3.0.0: 1374 | version "3.0.0" 1375 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" 1376 | 1377 | path-is-absolute@^1.0.0: 1378 | version "1.0.1" 1379 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 1380 | 1381 | path-is-inside@^1.0.1, path-is-inside@^1.0.2: 1382 | version "1.0.2" 1383 | resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" 1384 | 1385 | path-parse@^1.0.5: 1386 | version "1.0.5" 1387 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" 1388 | 1389 | path-type@^2.0.0: 1390 | version "2.0.0" 1391 | resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" 1392 | dependencies: 1393 | pify "^2.0.0" 1394 | 1395 | performance-now@^0.2.0: 1396 | version "0.2.0" 1397 | resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" 1398 | 1399 | pify@^2.0.0: 1400 | version "2.3.0" 1401 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 1402 | 1403 | pinkie-promise@^2.0.0: 1404 | version "2.0.1" 1405 | resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" 1406 | dependencies: 1407 | pinkie "^2.0.0" 1408 | 1409 | pinkie@^2.0.0: 1410 | version "2.0.4" 1411 | resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" 1412 | 1413 | pkg-dir@^1.0.0: 1414 | version "1.0.0" 1415 | resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4" 1416 | dependencies: 1417 | find-up "^1.0.0" 1418 | 1419 | pluralize@^4.0.0: 1420 | version "4.0.0" 1421 | resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-4.0.0.tgz#59b708c1c0190a2f692f1c7618c446b052fd1762" 1422 | 1423 | prelude-ls@~1.1.2: 1424 | version "1.1.2" 1425 | resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" 1426 | 1427 | private@^0.1.6: 1428 | version "0.1.7" 1429 | resolved "https://registry.yarnpkg.com/private/-/private-0.1.7.tgz#68ce5e8a1ef0a23bb570cc28537b5332aba63ef1" 1430 | 1431 | process-nextick-args@~1.0.6: 1432 | version "1.0.7" 1433 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" 1434 | 1435 | progress@^2.0.0: 1436 | version "2.0.0" 1437 | resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f" 1438 | 1439 | pseudomap@^1.0.2: 1440 | version "1.0.2" 1441 | resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" 1442 | 1443 | punycode@^1.4.1: 1444 | version "1.4.1" 1445 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 1446 | 1447 | qs@~6.4.0: 1448 | version "6.4.0" 1449 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" 1450 | 1451 | read-pkg-up@^2.0.0: 1452 | version "2.0.0" 1453 | resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" 1454 | dependencies: 1455 | find-up "^2.0.0" 1456 | read-pkg "^2.0.0" 1457 | 1458 | read-pkg@^2.0.0: 1459 | version "2.0.0" 1460 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" 1461 | dependencies: 1462 | load-json-file "^2.0.0" 1463 | normalize-package-data "^2.3.2" 1464 | path-type "^2.0.0" 1465 | 1466 | readable-stream@^2.2.2: 1467 | version "2.3.3" 1468 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c" 1469 | dependencies: 1470 | core-util-is "~1.0.0" 1471 | inherits "~2.0.3" 1472 | isarray "~1.0.0" 1473 | process-nextick-args "~1.0.6" 1474 | safe-buffer "~5.1.1" 1475 | string_decoder "~1.0.3" 1476 | util-deprecate "~1.0.1" 1477 | 1478 | regenerate@^1.2.1: 1479 | version "1.3.2" 1480 | resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.2.tgz#d1941c67bad437e1be76433add5b385f95b19260" 1481 | 1482 | regenerator-runtime@^0.11.0: 1483 | version "0.11.0" 1484 | resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz#7e54fe5b5ccd5d6624ea6255c3473be090b802e1" 1485 | 1486 | regenerator-transform@^0.10.0: 1487 | version "0.10.1" 1488 | resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" 1489 | dependencies: 1490 | babel-runtime "^6.18.0" 1491 | babel-types "^6.19.0" 1492 | private "^0.1.6" 1493 | 1494 | regexpu-core@^2.0.0: 1495 | version "2.0.0" 1496 | resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" 1497 | dependencies: 1498 | regenerate "^1.2.1" 1499 | regjsgen "^0.2.0" 1500 | regjsparser "^0.1.4" 1501 | 1502 | regjsgen@^0.2.0: 1503 | version "0.2.0" 1504 | resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" 1505 | 1506 | regjsparser@^0.1.4: 1507 | version "0.1.5" 1508 | resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" 1509 | dependencies: 1510 | jsesc "~0.5.0" 1511 | 1512 | request@2.81.0: 1513 | version "2.81.0" 1514 | resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" 1515 | dependencies: 1516 | aws-sign2 "~0.6.0" 1517 | aws4 "^1.2.1" 1518 | caseless "~0.12.0" 1519 | combined-stream "~1.0.5" 1520 | extend "~3.0.0" 1521 | forever-agent "~0.6.1" 1522 | form-data "~2.1.1" 1523 | har-validator "~4.2.1" 1524 | hawk "~3.1.3" 1525 | http-signature "~1.1.0" 1526 | is-typedarray "~1.0.0" 1527 | isstream "~0.1.2" 1528 | json-stringify-safe "~5.0.1" 1529 | mime-types "~2.1.7" 1530 | oauth-sign "~0.8.1" 1531 | performance-now "^0.2.0" 1532 | qs "~6.4.0" 1533 | safe-buffer "^5.0.1" 1534 | stringstream "~0.0.4" 1535 | tough-cookie "~2.3.0" 1536 | tunnel-agent "^0.6.0" 1537 | uuid "^3.0.0" 1538 | 1539 | require-uncached@^1.0.3: 1540 | version "1.0.3" 1541 | resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3" 1542 | dependencies: 1543 | caller-path "^0.1.0" 1544 | resolve-from "^1.0.0" 1545 | 1546 | requireindex@^1.1.0: 1547 | version "1.1.0" 1548 | resolved "https://registry.yarnpkg.com/requireindex/-/requireindex-1.1.0.tgz#e5404b81557ef75db6e49c5a72004893fe03e162" 1549 | 1550 | resolve-from@^1.0.0: 1551 | version "1.0.1" 1552 | resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" 1553 | 1554 | resolve@^1.2.0, resolve@^1.3.3: 1555 | version "1.4.0" 1556 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86" 1557 | dependencies: 1558 | path-parse "^1.0.5" 1559 | 1560 | restore-cursor@^2.0.0: 1561 | version "2.0.0" 1562 | resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" 1563 | dependencies: 1564 | onetime "^2.0.0" 1565 | signal-exit "^3.0.2" 1566 | 1567 | rimraf@^2.2.8: 1568 | version "2.6.1" 1569 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.1.tgz#c2338ec643df7a1b7fe5c54fa86f57428a55f33d" 1570 | dependencies: 1571 | glob "^7.0.5" 1572 | 1573 | rimraf@^2.6.2: 1574 | version "2.6.2" 1575 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" 1576 | dependencies: 1577 | glob "^7.0.5" 1578 | 1579 | run-async@^2.2.0: 1580 | version "2.3.0" 1581 | resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" 1582 | dependencies: 1583 | is-promise "^2.1.0" 1584 | 1585 | rx-lite-aggregates@^4.0.8: 1586 | version "4.0.8" 1587 | resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be" 1588 | dependencies: 1589 | rx-lite "*" 1590 | 1591 | rx-lite@*, rx-lite@^4.0.8: 1592 | version "4.0.8" 1593 | resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444" 1594 | 1595 | safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: 1596 | version "5.1.1" 1597 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" 1598 | 1599 | "semver@2 || 3 || 4 || 5", semver@^5.3.0: 1600 | version "5.4.1" 1601 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e" 1602 | 1603 | semver@5.3.0: 1604 | version "5.3.0" 1605 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" 1606 | 1607 | shebang-command@^1.2.0: 1608 | version "1.2.0" 1609 | resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" 1610 | dependencies: 1611 | shebang-regex "^1.0.0" 1612 | 1613 | shebang-regex@^1.0.0: 1614 | version "1.0.0" 1615 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" 1616 | 1617 | signal-exit@^3.0.2: 1618 | version "3.0.2" 1619 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 1620 | 1621 | slice-ansi@0.0.4: 1622 | version "0.0.4" 1623 | resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35" 1624 | 1625 | sntp@1.x.x: 1626 | version "1.0.9" 1627 | resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" 1628 | dependencies: 1629 | hoek "2.x.x" 1630 | 1631 | spdx-correct@~1.0.0: 1632 | version "1.0.2" 1633 | resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" 1634 | dependencies: 1635 | spdx-license-ids "^1.0.2" 1636 | 1637 | spdx-expression-parse@~1.0.0: 1638 | version "1.0.4" 1639 | resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" 1640 | 1641 | spdx-license-ids@^1.0.2: 1642 | version "1.2.2" 1643 | resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" 1644 | 1645 | sprintf-js@~1.0.2: 1646 | version "1.0.3" 1647 | resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 1648 | 1649 | sshpk@^1.7.0: 1650 | version "1.13.1" 1651 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3" 1652 | dependencies: 1653 | asn1 "~0.2.3" 1654 | assert-plus "^1.0.0" 1655 | dashdash "^1.12.0" 1656 | getpass "^0.1.1" 1657 | optionalDependencies: 1658 | bcrypt-pbkdf "^1.0.0" 1659 | ecc-jsbn "~0.1.1" 1660 | jsbn "~0.1.0" 1661 | tweetnacl "~0.14.0" 1662 | 1663 | string-width@^2.0.0, string-width@^2.1.0: 1664 | version "2.1.1" 1665 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" 1666 | dependencies: 1667 | is-fullwidth-code-point "^2.0.0" 1668 | strip-ansi "^4.0.0" 1669 | 1670 | string_decoder@~1.0.3: 1671 | version "1.0.3" 1672 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" 1673 | dependencies: 1674 | safe-buffer "~5.1.0" 1675 | 1676 | stringstream@~0.0.4: 1677 | version "0.0.5" 1678 | resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" 1679 | 1680 | strip-ansi@^3.0.0: 1681 | version "3.0.1" 1682 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 1683 | dependencies: 1684 | ansi-regex "^2.0.0" 1685 | 1686 | strip-ansi@^4.0.0: 1687 | version "4.0.0" 1688 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" 1689 | dependencies: 1690 | ansi-regex "^3.0.0" 1691 | 1692 | strip-bom@^3.0.0: 1693 | version "3.0.0" 1694 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" 1695 | 1696 | strip-json-comments@~2.0.1: 1697 | version "2.0.1" 1698 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" 1699 | 1700 | supports-color@^2.0.0: 1701 | version "2.0.0" 1702 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" 1703 | 1704 | supports-color@^4.0.0: 1705 | version "4.4.0" 1706 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.4.0.tgz#883f7ddabc165142b2a61427f3352ded195d1a3e" 1707 | dependencies: 1708 | has-flag "^2.0.0" 1709 | 1710 | table@^4.0.1: 1711 | version "4.0.1" 1712 | resolved "https://registry.yarnpkg.com/table/-/table-4.0.1.tgz#a8116c133fac2c61f4a420ab6cdf5c4d61f0e435" 1713 | dependencies: 1714 | ajv "^4.7.0" 1715 | ajv-keywords "^1.0.0" 1716 | chalk "^1.1.1" 1717 | lodash "^4.0.0" 1718 | slice-ansi "0.0.4" 1719 | string-width "^2.0.0" 1720 | 1721 | text-table@~0.2.0: 1722 | version "0.2.0" 1723 | resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" 1724 | 1725 | through@^2.3.6: 1726 | version "2.3.8" 1727 | resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" 1728 | 1729 | tmp@^0.0.31: 1730 | version "0.0.31" 1731 | resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.31.tgz#8f38ab9438e17315e5dbd8b3657e8bfb277ae4a7" 1732 | dependencies: 1733 | os-tmpdir "~1.0.1" 1734 | 1735 | to-fast-properties@^1.0.3: 1736 | version "1.0.3" 1737 | resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" 1738 | 1739 | tough-cookie@~2.3.0: 1740 | version "2.3.2" 1741 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" 1742 | dependencies: 1743 | punycode "^1.4.1" 1744 | 1745 | tryit@^1.0.1: 1746 | version "1.0.3" 1747 | resolved "https://registry.yarnpkg.com/tryit/-/tryit-1.0.3.tgz#393be730a9446fd1ead6da59a014308f36c289cb" 1748 | 1749 | tunnel-agent@^0.6.0: 1750 | version "0.6.0" 1751 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" 1752 | dependencies: 1753 | safe-buffer "^5.0.1" 1754 | 1755 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 1756 | version "0.14.5" 1757 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 1758 | 1759 | type-check@~0.3.2: 1760 | version "0.3.2" 1761 | resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" 1762 | dependencies: 1763 | prelude-ls "~1.1.2" 1764 | 1765 | typedarray@^0.0.6: 1766 | version "0.0.6" 1767 | resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" 1768 | 1769 | urlgrey@0.4.4: 1770 | version "0.4.4" 1771 | resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-0.4.4.tgz#892fe95960805e85519f1cd4389f2cb4cbb7652f" 1772 | 1773 | util-deprecate@~1.0.1: 1774 | version "1.0.2" 1775 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" 1776 | 1777 | uuid@^3.0.0: 1778 | version "3.1.0" 1779 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.1.0.tgz#3dd3d3e790abc24d7b0d3a034ffababe28ebbc04" 1780 | 1781 | validate-npm-package-license@^3.0.1: 1782 | version "3.0.1" 1783 | resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" 1784 | dependencies: 1785 | spdx-correct "~1.0.0" 1786 | spdx-expression-parse "~1.0.0" 1787 | 1788 | verror@1.10.0: 1789 | version "1.10.0" 1790 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" 1791 | dependencies: 1792 | assert-plus "^1.0.0" 1793 | core-util-is "1.0.2" 1794 | extsprintf "^1.2.0" 1795 | 1796 | vue-eslint-parser@^2.0.1-beta.0: 1797 | version "2.0.1-beta.0" 1798 | resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-2.0.1-beta.0.tgz#1ce5a7619bfb9ebaacd4f4ba9aeb591edd9132ce" 1799 | dependencies: 1800 | debug "^3.0.0" 1801 | eslint-scope "^3.7.1" 1802 | espree "^3.3.2" 1803 | esquery "^1.0.0" 1804 | lodash "^4.17.4" 1805 | 1806 | vue@^2.4.2: 1807 | version "2.4.2" 1808 | resolved "https://registry.yarnpkg.com/vue/-/vue-2.4.2.tgz#a9855261f191c978cc0dc1150531b8d08149b58c" 1809 | 1810 | vuex@^3.0.0: 1811 | version "3.0.1" 1812 | resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.0.1.tgz#e761352ebe0af537d4bb755a9b9dc4be3df7efd2" 1813 | 1814 | which@^1.2.9: 1815 | version "1.3.0" 1816 | resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" 1817 | dependencies: 1818 | isexe "^2.0.0" 1819 | 1820 | wordwrap@~1.0.0: 1821 | version "1.0.0" 1822 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" 1823 | 1824 | wrappy@1: 1825 | version "1.0.2" 1826 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 1827 | 1828 | write@^0.2.1: 1829 | version "0.2.1" 1830 | resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757" 1831 | dependencies: 1832 | mkdirp "^0.5.1" 1833 | 1834 | yallist@^2.1.2: 1835 | version "2.1.2" 1836 | resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" 1837 | --------------------------------------------------------------------------------