├── .eslintrc.json ├── .gitignore ├── README.md ├── code ├── Guardfile ├── copy-syntax.sh └── src │ ├── composition │ ├── compose.js │ ├── map.js │ ├── multiply.js │ ├── pluck.js │ ├── usage-before-example.js │ ├── usage-before.js │ ├── usage-example.js │ ├── usage-old.js │ ├── usage-words-rewritten.js │ ├── usage-words.js │ └── usage.js │ ├── currying │ ├── cart-items.js │ ├── curry-add.js │ ├── curry-request.js │ ├── curry.js │ ├── discounted.js │ ├── piece-together.js │ ├── prices.js │ ├── taxed.js │ └── usage.js │ ├── es6 │ ├── arrow.js │ ├── class-es5.js │ ├── class.js │ ├── default-param.js │ ├── destructuring.js │ ├── restParams.js │ └── variables.js │ ├── first-class │ ├── arguments.js │ ├── closure-adder.js │ ├── closure-animal.js │ ├── closure-request.js │ ├── closures-old.js │ ├── closures.js │ ├── first-class.js │ ├── request.js │ └── values.js │ ├── immutable │ ├── immutable-hobbies.js │ ├── immutable-hobbyist.js │ ├── immutable-point.js │ ├── mutable-hobbies.js │ ├── mutable-hobbyist.js │ ├── mutable-map.js │ ├── mutable-point.js │ └── point.js │ ├── imperative-vs-declarative │ ├── declarative.js │ └── imperative.js │ ├── iteration │ ├── flatten.js │ ├── forEach-es5.js │ ├── forEach-usage.js │ ├── forEach.js │ ├── map-es5.js │ ├── map-reduce.js │ ├── map-tco-es5.js │ ├── map-tco.js │ ├── map-usage.js │ ├── map.js │ ├── reduce-es5.js │ ├── reduce-usage.js │ ├── reduce.js │ └── reduceRight.js │ ├── list │ ├── list.js │ └── usage.js │ ├── object-assign │ ├── override.js │ └── usage.js │ ├── partial │ ├── before.js │ ├── partial.js │ ├── usage-add.js │ └── usage-request.js │ ├── point │ └── point.js │ ├── purity │ ├── impure-name-testing.js │ ├── impure-name.js │ ├── pure-name.js │ └── pure.js │ └── recursion │ ├── factorial-imperative.js │ ├── factorial-tco.js │ ├── factorial-usage-2.js │ ├── factorial-usage-3.js │ ├── factorial-usage-4.js │ ├── factorial-usage.js │ ├── factorial.js │ ├── fibonacci-naive-timing.js │ ├── fibonacci-tco-naive-timing.js │ ├── fibonacci-tco.js │ ├── fibonacci-timing.js │ ├── fibonacci-usage-1.js │ ├── fibonacci-usage-2.js │ ├── fibonacci.js │ └── filter.js ├── demo ├── functional-lodash.js ├── functional-minimal.js ├── functional.js ├── index.test.js └── oop.js ├── package.json └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "airbnb-base", 3 | "env": { 4 | "node": true, 5 | "jest": true 6 | }, 7 | "plugins": [ 8 | "import" 9 | ], 10 | "rules": { 11 | "class-methods-use-this": 0, 12 | "comma-dangle": ["error", { 13 | "arrays": "always-multiline", 14 | "objects": "always-multiline", 15 | "imports": "always-multiline", 16 | "exports": "always-multiline", 17 | "functions": "never" 18 | }], 19 | "no-console": 0, 20 | "no-plusplus": 0, 21 | "no-underscore-dangle": 0 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | presentation/*.aux 2 | presentation/*.log 3 | presentation/*.pdf 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Functional Programming Basics in ES6 2 | 3 | This repo contains code samples for the "Functional Programming Basics in ES6" 4 | talk. 5 | -------------------------------------------------------------------------------- /code/Guardfile: -------------------------------------------------------------------------------- 1 | guard :shell do 2 | watch(/(.*).js$/) {|m| `copy-syntax #{m[0]}` } 3 | watch(/(.*).html$/) {|m| `copy-syntax -S html #{m[0]}` } 4 | end 5 | -------------------------------------------------------------------------------- /code/copy-syntax.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #FONT_SIZE=30 4 | FONT_SIZE=80 5 | FONT_FAMILY=Monaco 6 | STYLE=seashell 7 | #STYLE=fine_blue 8 | SYNTAX=js 9 | OUTPUT=rtf 10 | FILTER=false 11 | 12 | while getopts ":S:s:f" OPT; do 13 | case $OPT in 14 | S) 15 | SYNTAX="$OPTARG" 16 | shift 2 17 | ;; 18 | s) 19 | STYLE="$OPTARG" 20 | shift 2 21 | ;; 22 | f) 23 | FILTER=true 24 | shift 25 | ;; 26 | \?) 27 | exit 1 28 | ;; 29 | esac 30 | done 31 | 32 | FILENAME="$1" 33 | 34 | if [[ -z "$FILENAME" ]]; then 35 | >&2 echo 'Please supply filename' 36 | exit 1 37 | fi 38 | 39 | if [[ "$FILTER" == true ]]; then 40 | CONTENTS=$(cat "$FILENAME" | grep -Ev "^(?:import|export)") 41 | else 42 | CONTENTS=$(cat "$FILENAME") 43 | fi 44 | 45 | echo "$CONTENTS" | highlight -s "$STYLE" -O "$OUTPUT" -S "$SYNTAX" -K "$FONT_SIZE" -k "$FONT_FAMILY" | pbcopy 46 | -------------------------------------------------------------------------------- /code/src/composition/compose.js: -------------------------------------------------------------------------------- 1 | const compose = (...fns) => (...args) => { 2 | if (fns.length === 0) { 3 | return args[0]; 4 | } 5 | 6 | const last = fns[fns.length - 1]; 7 | const rest = fns.slice(0, -1); 8 | 9 | return rest.reduceRight((memo, fn) => { 10 | return fn(memo); 11 | }, last(...args)); 12 | }; 13 | 14 | export default compose; 15 | -------------------------------------------------------------------------------- /code/src/composition/map.js: -------------------------------------------------------------------------------- 1 | export default fn => array => array.map(fn); 2 | -------------------------------------------------------------------------------- /code/src/composition/multiply.js: -------------------------------------------------------------------------------- 1 | export default x => y => x * y; 2 | -------------------------------------------------------------------------------- /code/src/composition/pluck.js: -------------------------------------------------------------------------------- 1 | export default key => object => object[key]; 2 | -------------------------------------------------------------------------------- /code/src/composition/usage-before-example.js: -------------------------------------------------------------------------------- 1 | import map from './map'; 2 | 3 | const pluck = key => object => (console.log('pluck:', key), object[key]); 4 | const multiply = x => name => y => (console.log(name), x * y); 5 | 6 | const discount = multiply(0.98)('discount'); 7 | const tax = multiply(1.0925)('tax'); 8 | 9 | const customRequest = () => new Promise(resolve => resolve([ 10 | { price: 5 }, 11 | { price: 10 }, 12 | { price: 3 } 13 | ])); 14 | 15 | customRequest({ url: '/cart/items' }) 16 | .then(map(pluck('price'))) 17 | .then(map(discount)) 18 | .then(map(tax)); 19 | -------------------------------------------------------------------------------- /code/src/composition/usage-before.js: -------------------------------------------------------------------------------- 1 | customRequest({ url: '/cart/items' }) 2 | .then(map(pluck('price'))) 3 | .then(map(discount)) 4 | .then(map(tax)); 5 | -------------------------------------------------------------------------------- /code/src/composition/usage-example.js: -------------------------------------------------------------------------------- 1 | import map from './map'; 2 | import compose from './compose'; 3 | 4 | const pluck = key => object => (console.log('pluck:', key), object[key]); 5 | const multiply = x => name => y => (console.log(name), x * y); 6 | 7 | const discount = multiply(0.98)('discount'); 8 | const tax = multiply(1.0925)('tax'); 9 | 10 | const customRequest = () => new Promise(resolve => resolve([ 11 | { price: 5 }, 12 | { price: 10 }, 13 | { price: 3 } 14 | ])); 15 | 16 | customRequest({ url: '/cart/items' }) 17 | .then(map( 18 | compose( 19 | tax, 20 | discount, 21 | pluck('price') 22 | ) 23 | )); 24 | -------------------------------------------------------------------------------- /code/src/composition/usage-old.js: -------------------------------------------------------------------------------- 1 | const logger = (name, fn) => (...args) => (console.log(name), fn(...args)); 2 | 3 | const map = fn => array => array.map(fn); 4 | const multiply = x => y => x * y; 5 | const pluck = key => object => object[key]; 6 | const each = fn => array => array.forEach(fn); 7 | const identity = x => x; 8 | const log = console.log.bind(console); 9 | const compose = (...fns) => (...args) => { 10 | if (fns.length === 0) { 11 | return args[0]; 12 | } 13 | 14 | const last = fns[fns.length - 1]; 15 | const rest = fns.slice(0, -1); 16 | 17 | return rest.reduceRight((memo, fn) => { 18 | return fn(memo); 19 | }, last(...args)); 20 | }; 21 | 22 | //const log = compose( 23 | // console.log.bind(console), 24 | // identity 25 | //); 26 | 27 | //const names = ['Jeremy', 'Alice', 'Bob']; 28 | 29 | const toUpperCase = s => s.toUpperCase(); 30 | //const toUpperCase = logger('toUpperCase', s => s.toUpperCase()); 31 | const reverse = s => s.split('').reverse().join(''); 32 | const hyphenate = s => { 33 | const middle = Math.floor(s.length / 2); 34 | return s.slice(0, middle) + '-' + s.slice(middle); 35 | }; 36 | //const reverse = logger('reverse', s => s.split('').reverse().join('')); 37 | const secondArg = (_, x) => x; 38 | 39 | //const fileContents = fs.createReadStream('my/file.txt', 'utf-8'); 40 | 41 | import readline from 'readline'; 42 | import fs from 'fs'; 43 | import Rx from 'rx'; 44 | 45 | const filename = '/usr/share/dict/words'; 46 | 47 | const lineReader = readline.createInterface({ 48 | input: fs.createReadStream(filename, 'utf-8') 49 | }); 50 | 51 | Rx.Observable.fromEvent(lineReader, 'line') 52 | .filter(s => s.length > 3) 53 | //.map(compose( 54 | // hyphenate, 55 | // reverse, 56 | // toUpperCase 57 | //)) 58 | .map(toUpperCase) 59 | .map(reverse) 60 | .map(hyphenate) 61 | .take(5) 62 | .subscribe(compose(log, identity)); 63 | 64 | 65 | 66 | //fs.readFile('words', 'utf-8', (err, data) => { 67 | //}); 68 | 69 | //compose( 70 | 71 | // map(createUser) 72 | //)(names); 73 | 74 | 75 | //const log = console.log.bind(console); 76 | 77 | //customRequest('/cart/items') 78 | // .then(map(pluck('price'))) 79 | // .then(map(tax)) 80 | // .then(each(log)); 81 | -------------------------------------------------------------------------------- /code/src/composition/usage-words-rewritten.js: -------------------------------------------------------------------------------- 1 | const processWord = 2 | compose(hyphenate, reverse, toUpperCase); 3 | 4 | 5 | 6 | const processWordExplicit = (word) => { 7 | return hyphenate(reverse(toUpperCase(word))); 8 | }; 9 | -------------------------------------------------------------------------------- /code/src/composition/usage-words.js: -------------------------------------------------------------------------------- 1 | const toUpperCase = s => s.toUpperCase(); 2 | const reverse = s => s.split('').reverse().join(''); 3 | 4 | const hyphenate = s => { 5 | if (s.length < 2) { 6 | return s; 7 | } 8 | 9 | const middle = Math.floor(s.length / 2); 10 | return s.slice(0, middle) + '-' + s.slice(middle); 11 | }; 12 | 13 | const processWord = 14 | compose(hyphenate, reverse, toUpperCase); 15 | 16 | const words = [ 17 | 'hello', 'functional', 'programming' 18 | ]; 19 | 20 | const newWords = words.map(processWord); 21 | 22 | console.log(newWords); 23 | // ['OL-LEH, 'LANOI-TCNUF', 'GNIMM-ARGORP'] 24 | -------------------------------------------------------------------------------- /code/src/composition/usage.js: -------------------------------------------------------------------------------- 1 | customRequest({ url: '/cart/items' }) 2 | .then(map( 3 | compose( 4 | tax, 5 | discount, 6 | pluck('price') 7 | ) 8 | )); 9 | -------------------------------------------------------------------------------- /code/src/currying/cart-items.js: -------------------------------------------------------------------------------- 1 | [ 2 | { price: 5 }, 3 | { price: 10 }, 4 | { price: 3 } 5 | ] 6 | -------------------------------------------------------------------------------- /code/src/currying/curry-add.js: -------------------------------------------------------------------------------- 1 | const add = x => y => x + y; 2 | 3 | function add(x) { 4 | return function(y) { 5 | return x + y; 6 | }; 7 | } 8 | -------------------------------------------------------------------------------- /code/src/currying/curry-request.js: -------------------------------------------------------------------------------- 1 | const request = defaults => options => { 2 | options = Object.assign( 3 | {}, defaults, options 4 | ); 5 | 6 | return fetch(options.url, options) 7 | .then(resp => resp.json()); 8 | }; 9 | -------------------------------------------------------------------------------- /code/src/currying/curry.js: -------------------------------------------------------------------------------- 1 | const partial = (fn, ...args) => (...otherArgs) => fn(...args, ...otherArgs); 2 | 3 | const curry = (fn, len = fn.length) => { 4 | return (...args) => { 5 | if (args.length >= len) { 6 | return fn(...args); 7 | } 8 | 9 | return curry( 10 | partial(fn, ...args), 11 | len - args.length 12 | ); 13 | }; 14 | }; 15 | 16 | export default curry; 17 | -------------------------------------------------------------------------------- /code/src/currying/discounted.js: -------------------------------------------------------------------------------- 1 | [ 2 | 4.9, 3 | 9.8, 4 | 2.94 5 | ] 6 | -------------------------------------------------------------------------------- /code/src/currying/piece-together.js: -------------------------------------------------------------------------------- 1 | const map = fn => array => array.map(fn); 2 | const multiply = x => y => x * y; 3 | const pluck = key => object => object[key]; 4 | 5 | const discount = multiply(0.98); 6 | const tax = multiply(1.0925); 7 | 8 | const customRequest = request({ 9 | headers: { 'X-Custom': 'mykey' } 10 | }); 11 | 12 | customRequest({ url: '/cart/items' }) 13 | .then(map(pluck('price'))) 14 | .then(map(discount)) 15 | .then(map(tax)); 16 | -------------------------------------------------------------------------------- /code/src/currying/prices.js: -------------------------------------------------------------------------------- 1 | [ 2 | 5, 3 | 10, 4 | 3 5 | ] 6 | -------------------------------------------------------------------------------- /code/src/currying/taxed.js: -------------------------------------------------------------------------------- 1 | [ 2 | 5.35, 3 | 10.71, 4 | 3.21 5 | ] 6 | -------------------------------------------------------------------------------- /code/src/currying/usage.js: -------------------------------------------------------------------------------- 1 | const add3 = add(3); 2 | 3 | add3(2) === 5; 4 | 5 | const customRequest = request({ 6 | headers: { 'X-Custom': 'mykey' } 7 | }); 8 | 9 | const usersPromise = customRequest({ url: '/users' }); 10 | const tasksPromise = customRequest({ url: '/tasks' }); 11 | -------------------------------------------------------------------------------- /code/src/es6/arrow.js: -------------------------------------------------------------------------------- 1 | const add = (x, y) => { 2 | return x + y; 3 | }; 4 | 5 | const identity = (x) => x; 6 | -------------------------------------------------------------------------------- /code/src/es6/class-es5.js: -------------------------------------------------------------------------------- 1 | function Point(x, y) { 2 | this.x = x; 3 | this.y = y; 4 | } 5 | 6 | Point.prototype.moveBy = 7 | function(dx, dy) { 8 | this.x += dx; 9 | this.y += dy; 10 | }; 11 | -------------------------------------------------------------------------------- /code/src/es6/class.js: -------------------------------------------------------------------------------- 1 | class Point { 2 | constructor(x, y) { 3 | this.x = x; 4 | this.y = y; 5 | } 6 | 7 | moveBy(dx, dy) { 8 | this.x += dx; 9 | this.y += dy; 10 | } 11 | } 12 | 13 | const point = new Point(1, 1); 14 | point.moveBy(2, 3); 15 | 16 | console.log([point.x, point.y]); 17 | // [3, 4] 18 | -------------------------------------------------------------------------------- /code/src/es6/default-param.js: -------------------------------------------------------------------------------- 1 | const greet = (name, greeting = 'Hi') => { 2 | console.log(greeting, name); 3 | }; 4 | 5 | greet('Scenic City Summit', 'Hello'); 6 | // Hello Scenic City Summit 7 | 8 | greet('Chattanooga'); 9 | // Hi Chattanooga 10 | -------------------------------------------------------------------------------- /code/src/es6/destructuring.js: -------------------------------------------------------------------------------- 1 | const langs = ['JavaScript', 'Ruby', 'Haskell']; 2 | const [js, ...rest] = langs; 3 | 4 | js === 'JavaScript'; 5 | rest[0] === 'Ruby'; 6 | rest[1] === 'Haskell'; 7 | 8 | const head = ([x]) => x; 9 | 10 | head([1, 2, 3]) === 1; 11 | -------------------------------------------------------------------------------- /code/src/es6/restParams.js: -------------------------------------------------------------------------------- 1 | const array = (...elements) => { 2 | return elements; 3 | }; 4 | 5 | array(1, 2, 3); // [1, 2, 3] 6 | 7 | const log = (...args) => { 8 | console.log(...args); 9 | }; 10 | 11 | log('hello', 'scenic city summit'); 12 | // hello scenic city summit 13 | -------------------------------------------------------------------------------- /code/src/es6/variables.js: -------------------------------------------------------------------------------- 1 | let age = 28; 2 | age = 29; 3 | 4 | const name = 'Jeremy'; 5 | name = 'Jet'; 6 | -------------------------------------------------------------------------------- /code/src/first-class/arguments.js: -------------------------------------------------------------------------------- 1 | // Passing in anonymous functions 2 | myEventLib.on('update', (data) => console.log(data)); 3 | 4 | function doubleNumber(n) { 5 | return n * 2; 6 | } 7 | 8 | // Earlier example, passing in named function 9 | function doubleNumbers(numbers) { 10 | return numbers.map(doubleNumber); 11 | } 12 | -------------------------------------------------------------------------------- /code/src/first-class/closure-adder.js: -------------------------------------------------------------------------------- 1 | const createAdder = (x) => { 2 | return (y) => x + y; 3 | }; 4 | 5 | const add3 = createAdder(3); 6 | 7 | add3(2) === 5; 8 | add3(3) === 6; 9 | -------------------------------------------------------------------------------- /code/src/first-class/closure-animal.js: -------------------------------------------------------------------------------- 1 | const request = (url, options) => { 2 | return fetch(url, options).then(resp => resp.json()); 3 | }; 4 | 5 | const usersPromise = request('/users', { 6 | headers: { 7 | 'X-Custom': 'mykey' 8 | } 9 | }); 10 | 11 | const tasksPromise = request('/tasks', { 12 | headers: { 13 | 'X-Custom': 'mykey' 14 | } 15 | }); 16 | -------------------------------------------------------------------------------- /code/src/first-class/closure-request.js: -------------------------------------------------------------------------------- 1 | const createRequester = (options) => { 2 | return (otherOptions) => { 3 | return request(Object.assign( 4 | {}, options, otherOptions 5 | )); 6 | }; 7 | }; 8 | 9 | const customRequest = createRequester({ 10 | headers: { 'X-Custom': 'mykey' } 11 | }); 12 | 13 | const usersPromise = customRequest({ url: '/users' }); 14 | const tasksPromise = customRequest({ url: '/tasks' }); 15 | -------------------------------------------------------------------------------- /code/src/first-class/closures-old.js: -------------------------------------------------------------------------------- 1 | let myValue = 'foo'; 2 | 3 | function closure() { 4 | console.log(myValue); 5 | } 6 | 7 | function trickyClosure() { 8 | let myValue = 'bar'; 9 | console.log(myValue); 10 | } 11 | 12 | function anotherTrickyClosure() { 13 | myValue = 'hello world'; 14 | console.log(myValue); 15 | } 16 | 17 | closure(); // 'foo' 18 | trickyClosure(); // 'bar' 19 | closure(); // 'foo' 20 | anotherTrickyClosure(); // 'hello world' 21 | closure(); // 'hello world' 22 | trickyClosure(); // 'bar' 23 | -------------------------------------------------------------------------------- /code/src/first-class/closures.js: -------------------------------------------------------------------------------- 1 | const createAdder = (x) => { 2 | return (y) => x + y; 3 | }; 4 | 5 | const add3 = createAdder(3); 6 | 7 | add3(2) === 5; 8 | add3(3) === 6; 9 | -------------------------------------------------------------------------------- /code/src/first-class/first-class.js: -------------------------------------------------------------------------------- 1 | const multiply = (x, y) => x * y; 2 | 3 | function add(x, y) { 4 | return x + y; 5 | } 6 | 7 | const addAlias = add; 8 | 9 | const evens = [1, 2, 3].map(n => n * 2); 10 | -------------------------------------------------------------------------------- /code/src/first-class/request.js: -------------------------------------------------------------------------------- 1 | const request = (options) => { 2 | return fetch(options.url, options) 3 | .then(resp => resp.json()); 4 | }; 5 | 6 | const usersPromise = request({ 7 | url: '/users', 8 | headers: { 'X-Custom': 'mykey' } 9 | }); 10 | 11 | const tasksPromise = request({ 12 | url: '/tasks', 13 | headers: { 'X-Custom': 'mykey' } 14 | }); 15 | -------------------------------------------------------------------------------- /code/src/first-class/values.js: -------------------------------------------------------------------------------- 1 | // Function declaration 2 | function add(x, y) { 3 | return x + y; 4 | } 5 | 6 | // Assign to a variable 7 | const addAlias = add; 8 | 9 | // Assign an anonymous function expression 10 | const multiply = (x, y) => x * y; 11 | 12 | // Functions have properties 13 | console.log(add.name); // 'add' 14 | console.log(addAlias.name); // 'add' 15 | console.log(multiply.name); // '' 16 | -------------------------------------------------------------------------------- /code/src/immutable/immutable-hobbies.js: -------------------------------------------------------------------------------- 1 | const hobbies = Object.freeze([ 2 | 'programming', 3 | 'reading', 4 | 'music' 5 | ]); 6 | 7 | const firstTwo = hobbies.splice(0, 2); 8 | // TypeError 9 | -------------------------------------------------------------------------------- /code/src/immutable/immutable-hobbyist.js: -------------------------------------------------------------------------------- 1 | class Hobbyist { 2 | constructor(hobbies) { 3 | this.hobbies = Object.freeze( 4 | hobbies.slice(0) 5 | ); 6 | } 7 | 8 | addHobby(hobby) { 9 | return new Hobbyist( 10 | this.hobbies.concat(hobby) 11 | ); 12 | } 13 | 14 | getHobbies() { 15 | return this.hobbies; 16 | } 17 | } 18 | 19 | const hobbies = ['programming']; 20 | let me = new Hobbyist(hobbies); 21 | me = me.addHobby('reading'); 22 | me = me.addHobby('music'); 23 | 24 | console.log(me.getHobbies()); 25 | // ['programming', 'reading', 'music'] 26 | 27 | const firstTwo = hobbies.splice(0, 2); 28 | console.log(me.getHobbies()); 29 | // ['programming', 'reading', 'music'] 30 | -------------------------------------------------------------------------------- /code/src/immutable/immutable-point.js: -------------------------------------------------------------------------------- 1 | const createPoint = (x, y) => Object.freeze([x, y]); 2 | 3 | const movePointBy = ([x, y], dx, dy) => { 4 | return Object.freeze([x + dx, y + dy]); 5 | }; 6 | 7 | let point = createPoint(0, 0); 8 | 9 | point = movePointBy(point, 5, 5); 10 | point = movePointBy(point, -2, 2); 11 | 12 | console.log(point); 13 | // [3, 7] 14 | -------------------------------------------------------------------------------- /code/src/immutable/mutable-hobbies.js: -------------------------------------------------------------------------------- 1 | const hobbies = [ 2 | 'programming', 3 | 'reading', 4 | 'music' 5 | ]; 6 | 7 | const firstTwo = hobbies.splice(0, 2); 8 | 9 | console.log(firstTwo); 10 | // ['programming', 'reading'] 11 | 12 | console.log(hobbies); 13 | // ['music'] 14 | -------------------------------------------------------------------------------- /code/src/immutable/mutable-hobbyist.js: -------------------------------------------------------------------------------- 1 | class Hobbyist { 2 | constructor(hobbies) { 3 | this.hobbies = hobbies; 4 | } 5 | 6 | addHobby(hobby) { 7 | this.hobbies.push(hobby); 8 | } 9 | 10 | getHobbies() { 11 | return this.hobbies; 12 | } 13 | } 14 | 15 | const hobbies = ['programming']; 16 | const me = new Hobbyist(hobbies); 17 | 18 | me.addHobby('reading'); 19 | me.addHobby('music'); 20 | 21 | console.log(me.getHobbies()); 22 | // ['programming', 'reading', 'music'] 23 | 24 | const firstTwo = hobbies.splice(0, 2); 25 | console.log(me.getHobbies()); 26 | // ['reading'] 27 | -------------------------------------------------------------------------------- /code/src/immutable/mutable-map.js: -------------------------------------------------------------------------------- 1 | class Person { 2 | constructor(hobbies) { 3 | this.hobbies = []; 4 | } 5 | 6 | addHobby(hobby) { 7 | this.hobbies.push(hobby); 8 | } 9 | 10 | getHobbies() { 11 | return this.hobbies; 12 | } 13 | } 14 | 15 | const me = new Person(); 16 | me.addHobby('programming'); 17 | me.addHobby('reading'); 18 | 19 | const hobbies = me.getHobbies(); 20 | hobbies.splice(0, 1); 21 | 22 | console.log(me.getHobbies()); // ['reading'] 23 | 24 | //function map(fn, array) { 25 | // for (let i = 0; i < array.length; i++) { 26 | // array[i] = fn(array[i]); 27 | // } 28 | 29 | // return array; 30 | //} 31 | 32 | //const array = [1, 2, 3]; 33 | //const newArray = map(n => n * 2, array); 34 | 35 | //console.log(newArray); // [2, 4, 6] 36 | //console.log(array); // [2, 4, 6] 37 | -------------------------------------------------------------------------------- /code/src/immutable/mutable-point.js: -------------------------------------------------------------------------------- 1 | class Point { 2 | constructor(x, y) { 3 | this.x = x; 4 | this.y = y; 5 | } 6 | moveBy(dx, dy) { 7 | this.x += dx; 8 | this.y += dy; 9 | } 10 | } 11 | 12 | const point = new Point(0, 0); 13 | 14 | point.moveBy(5, 5); 15 | point.moveBy(-2, 2); 16 | 17 | console.log([point.x, point.y]); 18 | // [3, 7] 19 | -------------------------------------------------------------------------------- /code/src/immutable/point.js: -------------------------------------------------------------------------------- 1 | const createPoint = (x, y) => Object.freeze([x, y]); 2 | 3 | const movePointBy = ([x, y], dx, dy) => { 4 | return Object.freeze([x + dx, y + dy]); 5 | }; 6 | 7 | let point = createPoint(0, 0); 8 | 9 | point = movePointBy(point, 5, 5); 10 | point = movePointBy(point, -2, 2); 11 | 12 | console.log(point); 13 | // [3, 7] 14 | -------------------------------------------------------------------------------- /code/src/imperative-vs-declarative/declarative.js: -------------------------------------------------------------------------------- 1 | function doubleNumbers(numbers) { 2 | return numbers.map(n => n * 2); 3 | } 4 | 5 | doubleNumbers([1, 2, 3]); 6 | // [2, 4, 6] 7 | -------------------------------------------------------------------------------- /code/src/imperative-vs-declarative/imperative.js: -------------------------------------------------------------------------------- 1 | function doubleNumbers(numbers) { 2 | const doubled = []; 3 | const l = numbers.length; 4 | 5 | for (let i = 0; i < l; i++) { 6 | doubled.push(numbers[i] * 2); 7 | } 8 | 9 | return doubled; 10 | } 11 | 12 | doubleNumbers([1, 2, 3]); 13 | // [2, 4, 6] 14 | -------------------------------------------------------------------------------- /code/src/iteration/flatten.js: -------------------------------------------------------------------------------- 1 | function flatten(array) { 2 | if (array.length === 0) { 3 | return array; 4 | } 5 | 6 | const [head, ...tail] = array; 7 | 8 | if (!Array.isArray(head)) { 9 | return [head, ...flatten(tail)]; 10 | } 11 | 12 | return [...flatten(head), ...flatten(tail)]; 13 | } 14 | 15 | export default flatten; 16 | -------------------------------------------------------------------------------- /code/src/iteration/forEach-es5.js: -------------------------------------------------------------------------------- 1 | function forEach(fn, array) { 2 | if (array.length === 0) { 3 | return array; 4 | } 5 | 6 | var head = array[0]; 7 | var tail = array.slice(1); 8 | 9 | fn(head); 10 | forEach(fn, tail); 11 | } 12 | export default forEach; 13 | -------------------------------------------------------------------------------- /code/src/iteration/forEach-usage.js: -------------------------------------------------------------------------------- 1 | import forEach from './forEach'; 2 | const languages = [ 3 | 'JavaScript', 'Ruby', 'C', 'C#', 'Haskell' 4 | ]; 5 | 6 | forEach((language) => console.log(language), languages); 7 | 8 | // JavaScript 9 | // Ruby 10 | // C 11 | // C# 12 | // Haskell 13 | -------------------------------------------------------------------------------- /code/src/iteration/forEach.js: -------------------------------------------------------------------------------- 1 | function forEach(fn, array) { 2 | if (array.length === 0) { 3 | return array; 4 | } 5 | 6 | const [head, ...tail] = array; 7 | 8 | fn(head); 9 | forEach(fn, tail); 10 | } 11 | export default forEach; 12 | -------------------------------------------------------------------------------- /code/src/iteration/map-es5.js: -------------------------------------------------------------------------------- 1 | function map(array, fn) { 2 | if (array.length === 0) { 3 | return array; 4 | } 5 | 6 | var head = [fn(array[0])]; 7 | var tail = array.slice(1); 8 | 9 | return head.concat(map(tail, fn)); 10 | } 11 | 12 | export default map; 13 | -------------------------------------------------------------------------------- /code/src/iteration/map-reduce.js: -------------------------------------------------------------------------------- 1 | import reduce from './reduce'; 2 | 3 | function map(array, fn) { 4 | return reduce(array, (newArray, item) => { 5 | const newItem = fn(item); 6 | return newArray.concat([newItem]); 7 | }, []); 8 | } 9 | 10 | export default map; 11 | -------------------------------------------------------------------------------- /code/src/iteration/map-tco-es5.js: -------------------------------------------------------------------------------- 1 | function map(initialArray, fn) { 2 | function helper(array, accum) { 3 | if (array.length === 0) { 4 | return accum; 5 | } 6 | 7 | var head = [fn(array[0])]; 8 | var tail = array.slice(1); 9 | var newAccum = accum.concat(head); 10 | 11 | return helper(tail, newAccum); 12 | } 13 | 14 | return helper(initialArray, []); 15 | } 16 | 17 | export default map; 18 | -------------------------------------------------------------------------------- /code/src/iteration/map-tco.js: -------------------------------------------------------------------------------- 1 | function map(fn, array, accum = []) { 2 | if (array.length === 0) { 3 | return accum; 4 | } 5 | 6 | const [head, ...tail] = array; 7 | const newAccum = [...accum, fn(head)]; 8 | 9 | return map(fn, tail, newAccum); 10 | } 11 | 12 | export default map; 13 | -------------------------------------------------------------------------------- /code/src/iteration/map-usage.js: -------------------------------------------------------------------------------- 1 | import map from './map'; 2 | function square(n) { 3 | return n * n; 4 | } 5 | 6 | let numbers = [1, 2, 3]; 7 | let squaredNumbers = map(square, numbers); 8 | // [1, 4, 9]; 9 | -------------------------------------------------------------------------------- /code/src/iteration/map.js: -------------------------------------------------------------------------------- 1 | function map(fn, array) { 2 | if (array.length === 0) { 3 | return array; 4 | } 5 | 6 | const [head, ...tail] = array; 7 | 8 | return [fn(head), ...map(fn, tail)]; 9 | } 10 | export default map; 11 | -------------------------------------------------------------------------------- /code/src/iteration/reduce-es5.js: -------------------------------------------------------------------------------- 1 | function reduce(array, fn, memo) { 2 | if (array.length === 0) { 3 | return memo; 4 | } 5 | 6 | var head = array[0]; 7 | var tail = array.slice(1); 8 | var newMemo = memo == null ? head : fn(memo, head); 9 | 10 | return reduce(tail, fn, newMemo); 11 | } 12 | 13 | export default reduce; 14 | -------------------------------------------------------------------------------- /code/src/iteration/reduce-usage.js: -------------------------------------------------------------------------------- 1 | import { reduce, reduce2 } from './reduce'; 2 | function add(x, y) { 3 | return x + y; 4 | } 5 | 6 | function concat(string1, string2) { 7 | return string1 + ':' + string2; 8 | } 9 | 10 | let numbers = [1, 2, 3]; 11 | let sum1 = reduce(add, 0, numbers); // 6 12 | let sum2 = reduce2(add, numbers); // 6 13 | 14 | let pets = ['dog', 'cat', 'hamster']; 15 | let joinedPets = reduce2(concat, pets); 16 | // 'dog:cat:hamster' 17 | -------------------------------------------------------------------------------- /code/src/iteration/reduce.js: -------------------------------------------------------------------------------- 1 | function reduce(fn, memo, array) { 2 | if (array.length === 0) { 3 | return memo; 4 | } 5 | 6 | const [head, ...tail] = array; 7 | 8 | return reduce(fn, fn(memo, head), tail); 9 | } 10 | 11 | function reduce2(fn, array) { 12 | const [head, ...tail] = array; 13 | return reduce(fn, head, tail); 14 | } 15 | 16 | export { reduce, reduce2 }; 17 | -------------------------------------------------------------------------------- /code/src/iteration/reduceRight.js: -------------------------------------------------------------------------------- 1 | function reduceRight(array, fn, memo) { 2 | if (array.length === 1 && memo == null) { 3 | return array[0]; 4 | } else if (array.length === 0) { 5 | return memo; 6 | } 7 | 8 | const [head, ...tail] = array; 9 | 10 | return fn(reduceRight(tail, fn, memo), head); 11 | } 12 | 13 | export default reduceRight; 14 | -------------------------------------------------------------------------------- /code/src/list/list.js: -------------------------------------------------------------------------------- 1 | const Nil = { 2 | each() { 3 | return this; 4 | }, 5 | 6 | map() { 7 | return this; 8 | }, 9 | 10 | reduce(fn, memo) { 11 | return memo; 12 | }, 13 | 14 | reduceRight(fn, memo) { 15 | return memo; 16 | }, 17 | 18 | concat() { 19 | return this; 20 | }, 21 | 22 | toString() { 23 | return 'Nil'; 24 | }, 25 | 26 | *[Symbol.iterator]() {} 27 | }; 28 | 29 | const List = { 30 | each(fn) { 31 | fn(this.head); 32 | return this.tail.each(fn); 33 | }, 34 | 35 | map(fn) { 36 | //return cons(fn(this.head), this.tail.map(fn)); 37 | return this.reduceRight((list, item) => cons(fn(item), list), Nil); 38 | }, 39 | 40 | reduce(fn, memo) { 41 | const newMemo = memo == null ? this.head : fn(memo, this.head); 42 | return this.tail.reduce(fn, newMemo); 43 | }, 44 | 45 | reduceRight(fn, memo) { 46 | const newMemo = this.tail.reduceRight(fn, memo); 47 | 48 | if (newMemo == null) { 49 | return this.head; 50 | } 51 | 52 | return fn(newMemo, this.head); 53 | }, 54 | 55 | concat(otherList) { 56 | return this.reduceRight((list, item) => cons(item, list), otherList); 57 | }, 58 | 59 | toString() { 60 | const items = this.reduce((last, current) => `${last}, ${current}`); 61 | return `List(${items})`; 62 | }, 63 | 64 | toArray() { 65 | return [...this]; 66 | }, 67 | 68 | *[Symbol.iterator]() { 69 | //yield *this.eachGen(); 70 | yield this.head; 71 | yield *this.tail[Symbol.iterator](); 72 | } 73 | }; 74 | 75 | function makeList(...values) { 76 | if (values.length === 0) { 77 | return Nil; 78 | } 79 | 80 | const [head, ...tail] = values; 81 | return cons(head, makeList(...tail)); 82 | } 83 | 84 | function cons(head, tail) { 85 | const list = Object.create(List); 86 | list.head = head; 87 | list.tail = tail; 88 | return list; 89 | } 90 | 91 | export { Nil, cons, makeList as List }; 92 | -------------------------------------------------------------------------------- /code/src/list/usage.js: -------------------------------------------------------------------------------- 1 | import { Nil, List } from './list'; 2 | 3 | let list1 = List(1, 2, 3); 4 | let list2 = List(42, 13, 20); 5 | let list3 = list1.concat(list2); 6 | let list4 = List(...list1, ...list2); 7 | let list5 = list1.concat(Nil); 8 | let array1 = Array.from(list3); 9 | let [...array2] = list4; 10 | let array3 = list3.toArray(); 11 | 12 | console.log(list1.toString()); 13 | console.log(list2.toString()); 14 | console.log(list3.toString()); 15 | console.log(list4.toString()); 16 | console.log(list5.toString()); 17 | console.log(array1); 18 | console.log(array2); 19 | console.log(array3); 20 | 21 | for (let item of list3) { 22 | console.log('item =', item); 23 | } 24 | -------------------------------------------------------------------------------- /code/src/object-assign/override.js: -------------------------------------------------------------------------------- 1 | Object.assign( 2 | {}, 3 | { hello: 'Chattanooga' }, 4 | { hello: 'Scenic City Summit' } 5 | ); 6 | 7 | // { 8 | // hello: 'Scenic City Summi' 9 | // } 10 | -------------------------------------------------------------------------------- /code/src/object-assign/usage.js: -------------------------------------------------------------------------------- 1 | Object.assign( 2 | {}, 3 | { hello: 'Chattanooga' }, 4 | { hi: 'Scenic City Summit' } 5 | ); 6 | 7 | // { 8 | // hello: 'Chattanooga', 9 | // hi: 'Scenic City Summit' 10 | // } 11 | -------------------------------------------------------------------------------- /code/src/partial/before.js: -------------------------------------------------------------------------------- 1 | const createAdder = (x) => { 2 | return (y) => x + y; 3 | }; 4 | 5 | const createRequester = (options) => { 6 | return (otherOptions) => { 7 | return request(Object.assign( 8 | {}, options, otherOptions 9 | )); 10 | }; 11 | }; 12 | -------------------------------------------------------------------------------- /code/src/partial/partial.js: -------------------------------------------------------------------------------- 1 | const partialFromBind = (fn, ...args) => { 2 | return fn.bind(null, ...args); 3 | }; 4 | 5 | const partial = (fn, ...args) => { 6 | return (...otherArgs) => { 7 | return fn(...args, ...otherArgs) 8 | }; 9 | }; 10 | -------------------------------------------------------------------------------- /code/src/partial/usage-add.js: -------------------------------------------------------------------------------- 1 | const add = (x, y) => x + y; 2 | 3 | const add3 = partial(add, 3); 4 | 5 | add3(2) === 5; 6 | -------------------------------------------------------------------------------- /code/src/partial/usage-request.js: -------------------------------------------------------------------------------- 1 | const request = (defaults, options) => { 2 | options = Object.assign({}, defaults, options); 3 | 4 | return fetch(options.url, options) 5 | .then(resp => resp.json()); 6 | }; 7 | 8 | const customRequest = partial(request, { 9 | headers: { 'X-Custom': 'mykey' } 10 | }); 11 | 12 | const usersPromise = customRequest({ url: '/users' }); 13 | const tasksPromise = customRequest({ url: '/tasks' }); 14 | -------------------------------------------------------------------------------- /code/src/point/point.js: -------------------------------------------------------------------------------- 1 | /* eslint new-cap: 0 */ 2 | function Point(x, y) { 3 | return { x, y }; 4 | } 5 | 6 | function move(point, x, y) { 7 | return Point(point.x + x, point.y + y); 8 | } 9 | 10 | function distance(point1, point2) { 11 | return Math.sqrt( 12 | Math.pow(point2.x - point1.x) + 13 | Math.pow(point2.y - point2.y) 14 | ); 15 | } 16 | 17 | export { Point, move, distance }; 18 | -------------------------------------------------------------------------------- /code/src/purity/impure-name-testing.js: -------------------------------------------------------------------------------- 1 | describe('api', () => { 2 | beforeEach(() => mockConsoleLog()); 3 | afterEach(() => restoreConsoleLog()); 4 | 5 | it('sets and prints the name', () => { 6 | printUpperName(); 7 | 8 | expect(console.log).calledWith('JEREMY'); 9 | 10 | n.setName('Jet'); 11 | printUpperName(); 12 | 13 | expect(console.log).calledWith('JET'); 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /code/src/purity/impure-name.js: -------------------------------------------------------------------------------- 1 | let name = 'Jeremy'; 2 | 3 | const getName = () => name; 4 | 5 | const setName = (newName) => { 6 | name = newName; 7 | }; 8 | 9 | const printUpperName = () => { 10 | console.log(name.toUpperCase()); 11 | }; 12 | -------------------------------------------------------------------------------- /code/src/purity/pure-name.js: -------------------------------------------------------------------------------- 1 | const upperName = (name) => name.toUpperCase(); 2 | 3 | describe('api', () => { 4 | it('returns an uppercase name', () => { 5 | expect(upperName('Jeremy')).to.equal('JEREMY'); 6 | expect(upperName('Jet')).to.equal('JET'); 7 | }); 8 | }); 9 | -------------------------------------------------------------------------------- /code/src/purity/pure.js: -------------------------------------------------------------------------------- 1 | const add = (x, y) => x + y; 2 | 3 | add(2, 3) === 5; 4 | add(2, 3) === 5; 5 | add(2, 3) === 5; 6 | -------------------------------------------------------------------------------- /code/src/recursion/factorial-imperative.js: -------------------------------------------------------------------------------- 1 | const factorial = (n) => { 2 | let result = 1; 3 | 4 | while (n > 1) { 5 | result *= n; 6 | n--; 7 | } 8 | 9 | return result; 10 | }; 11 | 12 | export default factorial; 13 | -------------------------------------------------------------------------------- /code/src/recursion/factorial-tco.js: -------------------------------------------------------------------------------- 1 | const factorial = (n, accum = 1) => { 2 | if (n < 2) { 3 | return accum; 4 | } 5 | 6 | return factorial(n - 1, n * accum); 7 | }; 8 | 9 | export default factorial; 10 | -------------------------------------------------------------------------------- /code/src/recursion/factorial-usage-2.js: -------------------------------------------------------------------------------- 1 | import factorial from './factorial'; 2 | const value = factorial(100000); 3 | console.log(value); // ??? 4 | -------------------------------------------------------------------------------- /code/src/recursion/factorial-usage-3.js: -------------------------------------------------------------------------------- 1 | import factorial from './factorial'; 2 | const value = factorial(100000); 3 | console.log(value); 4 | // Infinity 5 | -------------------------------------------------------------------------------- /code/src/recursion/factorial-usage-4.js: -------------------------------------------------------------------------------- 1 | factorial(4 /*, 1 */); 2 | factorial(3, 4); 3 | factorial(2, 12); 4 | factorial(1, 24); 5 | 24; 6 | -------------------------------------------------------------------------------- /code/src/recursion/factorial-usage.js: -------------------------------------------------------------------------------- 1 | factorial(4); 2 | 4 * factorial(3); 3 | 4 * 3 * factorial(2); 4 | 4 * 3 * 2 * factorial(1); 5 | 4 * 3 * 2 * 1; 6 | 4 * 3 * 2; 7 | 4 * 6; 8 | 24; 9 | -------------------------------------------------------------------------------- /code/src/recursion/factorial.js: -------------------------------------------------------------------------------- 1 | const factorial = (n) => { 2 | if (n < 2) { 3 | return 1; 4 | } 5 | 6 | return n * factorial(n - 1); 7 | }; 8 | 9 | export default factorial; 10 | -------------------------------------------------------------------------------- /code/src/recursion/fibonacci-naive-timing.js: -------------------------------------------------------------------------------- 1 | fibonacci(1); // 0 ms 2 | fibonacci(5); // 0 ms 3 | fibonacci(20); // 0 ms 4 | fibonacci(30); // 13 ms 5 | fibonacci(35); // 131 ms 6 | fibonacci(40); // 1516 ms 7 | fibonacci(45); // 16.6 seconds! 8 | fibonacci(100); // Who knows how long 9 | -------------------------------------------------------------------------------- /code/src/recursion/fibonacci-tco-naive-timing.js: -------------------------------------------------------------------------------- 1 | fibonacci(1); // 0 ms 2 | fibonacci(5); // 0 ms 3 | fibonacci(20); // 0 ms 4 | fibonacci(30); // 0 ms 5 | fibonacci(35); // 0 ms 6 | fibonacci(40); // 0 ms 7 | fibonacci(45); // 0 ms 8 | fibonacci(100); // 0 ms 9 | -------------------------------------------------------------------------------- /code/src/recursion/fibonacci-tco.js: -------------------------------------------------------------------------------- 1 | function fibonacci(n, current = 0, next = 1) { 2 | if (n === 0) { 3 | return current; 4 | } 5 | 6 | return fibonacci(n - 1, next, current + next); 7 | } 8 | 9 | export default fibonacci; 10 | -------------------------------------------------------------------------------- /code/src/recursion/fibonacci-timing.js: -------------------------------------------------------------------------------- 1 | //import fibonacci from './fibonacci'; 2 | import fibonacci from './fibonacci-tco'; 3 | 4 | const N = 1000; 5 | 6 | function times(n, fn) { 7 | while (n--) fn(); 8 | } 9 | 10 | function time(name, fn) { 11 | console.time(name); 12 | //times(N, fn); 13 | fn(); 14 | console.timeEnd(name); 15 | } 16 | 17 | time('fibonacci(1)', () => fibonacci(1)); 18 | time('fibonacci(5)', () => fibonacci(5)); 19 | time('fibonacci(20)', () => fibonacci(20)); 20 | time('fibonacci(30)', () => fibonacci(30)); 21 | time('fibonacci(35)', () => fibonacci(35)); 22 | time('fibonacci(40)', () => fibonacci(40)); 23 | time('fibonacci(45)', () => fibonacci(45)); 24 | time('fibonacci(100)', () => fibonacci(100)); 25 | -------------------------------------------------------------------------------- /code/src/recursion/fibonacci-usage-1.js: -------------------------------------------------------------------------------- 1 | fibonacci(6 /*, 0, 1 */); 2 | fibonacci(5, 1, 1); 3 | fibonacci(4, 1, 2); 4 | fibonacci(3, 2, 3); 5 | fibonacci(2, 3, 5); 6 | fibonacci(1, 5, 8); 7 | fibonacci(0, 8, 13); 8 | 8; 9 | -------------------------------------------------------------------------------- /code/src/recursion/fibonacci-usage-2.js: -------------------------------------------------------------------------------- 1 | fib(0); // 0 2 | fib(1); // 1 3 | fib(2); // 1 4 | fib(3); // 2 5 | fib(4); // 3 6 | fib(5); // 5 7 | -------------------------------------------------------------------------------- /code/src/recursion/fibonacci.js: -------------------------------------------------------------------------------- 1 | function fibonacci(n) { 2 | if (n < 2) { 3 | return n; 4 | } 5 | 6 | return fibonacci(n - 1) + fibonacci(n - 2); 7 | } 8 | 9 | export default fibonacci; 10 | -------------------------------------------------------------------------------- /code/src/recursion/filter.js: -------------------------------------------------------------------------------- 1 | function filter(array, fn) { 2 | if (array.length === 0) { 3 | return array; 4 | } 5 | 6 | const keep = fn(array[0]); 7 | const tail = array.slice(1); 8 | 9 | if (keep) { 10 | const head = [array[0]]; 11 | return head.concat(filter(tail, fn)); 12 | } 13 | 14 | return filter(tail, fn); 15 | } 16 | 17 | //import reduce from './reduce'; 18 | 19 | //function filter(array, fn) { 20 | // return reduce(array, (newArray, item) => { 21 | // if (fn(item)) { 22 | // return newArray.concat([item]); 23 | // } 24 | 25 | // return newArray; 26 | // }, []); 27 | //} 28 | 29 | export default filter; 30 | -------------------------------------------------------------------------------- /demo/functional-lodash.js: -------------------------------------------------------------------------------- 1 | const { 2 | filter, 3 | flow, 4 | meanBy, 5 | } = require('lodash/fp'); 6 | 7 | const calcAvgCost = (items, filterFn = () => true) => ( 8 | flow( 9 | filter(filterFn), 10 | meanBy('price') 11 | )(items) 12 | ); 13 | 14 | it('passes tests', () => { 15 | const items = [ 16 | { name: 'Motherboard', manufacturer: 'A', price: 65 }, 17 | { name: 'CPU', manufacturer: 'A', price: 240 }, 18 | { name: 'DRAM', manufacturer: 'B', price: 100 }, 19 | { name: 'CPU', manufacturer: 'B', price: 150 }, 20 | ]; 21 | 22 | const avgCost = calcAvgCost(items); 23 | 24 | const avgCostCPU = calcAvgCost(items, item => ( 25 | item.name === 'CPU' 26 | )); 27 | 28 | const avgCostB = calcAvgCost(items, item => ( 29 | item.manufacturer === 'B' 30 | )); 31 | 32 | const avgCostCPUFromA = calcAvgCost(items, item => ( 33 | item.name === 'CPU' && item.manufacturer === 'A' 34 | )); 35 | 36 | expect(avgCost).toBe(138.75); 37 | expect(avgCostCPU).toBe(195); 38 | expect(avgCostB).toBe(125); 39 | expect(avgCostCPUFromA).toBe(240); 40 | 41 | console.log('Average Cost = %d', avgCost); 42 | console.log('Average Cost CPU = %d', avgCostCPU); 43 | console.log('Average Cost B = %d', avgCostB); 44 | console.log('Average Cost CPU from A = %d', avgCostCPUFromA); 45 | }); 46 | -------------------------------------------------------------------------------- /demo/functional-minimal.js: -------------------------------------------------------------------------------- 1 | const calcAvgCost = (items, filters = []) => { 2 | const filteredItems = items.filter( 3 | item => filters.every(filter => filter(item)) 4 | ); 5 | 6 | if (filteredItems.length === 0) { 7 | return 0; 8 | } 9 | 10 | const total = filteredItems.reduce((x, item) => x + item.price, 0); 11 | 12 | return total / filteredItems.length; 13 | }; 14 | 15 | const items = [ 16 | { name: 'Motherboard', manufacturer: 'A', price: 65 }, 17 | { name: 'CPU', manufacturer: 'A', price: 240 }, 18 | { name: 'DRAM', manufacturer: 'B', price: 100 }, 19 | { name: 'CPU', manufacturer: 'B', price: 150 }, 20 | ]; 21 | 22 | const avgCost = calcAvgCost(items); 23 | 24 | const avgCostCPU = calcAvgCost(items, [ 25 | ({ name }) => name === 'CPU', 26 | ]); 27 | 28 | const avgCostB = calcAvgCost(items, [ 29 | ({ manufacturer }) => manufacturer === 'B', 30 | ]); 31 | 32 | const avgCostCPUFromA = calcAvgCost(items, [ 33 | ({ name }) => name === 'CPU', 34 | ({ manufacturer }) => manufacturer === 'A', 35 | ]); 36 | 37 | console.log('Average Cost = %d', avgCost); 38 | console.log('Average Cost CPU = %d', avgCostCPU); 39 | console.log('Average Cost B = %d', avgCostB); 40 | console.log('Average Cost CPU from A = %d', avgCostCPUFromA); 41 | -------------------------------------------------------------------------------- /demo/functional.js: -------------------------------------------------------------------------------- 1 | const map = fn => array => array.map(fn); 2 | const prop = key => object => object[key]; 3 | const reduce = (fn, initial) => array => array.reduce(fn, initial); 4 | const add = (x, y) => x + y; 5 | const sum = reduce(add, 0); 6 | const filter = fn => array => array.filter(fn); 7 | 8 | const average = items => ( 9 | items.length === 0 10 | ? 0 11 | : sum(items) / items.length 12 | ); 13 | 14 | const flow = (...fns) => x => ( 15 | fns.reduce((result, fn) => fn(result), x) 16 | ); 17 | 18 | const calcAvgCost = (items, filterFn = () => true) => ( 19 | flow( 20 | filter(filterFn), 21 | map(prop('price')), 22 | average 23 | )(items) 24 | ); 25 | 26 | it('passes tests', () => { 27 | const items = [ 28 | { name: 'Motherboard', manufacturer: 'A', price: 65 }, 29 | { name: 'CPU', manufacturer: 'A', price: 240 }, 30 | { name: 'DRAM', manufacturer: 'B', price: 100 }, 31 | { name: 'CPU', manufacturer: 'B', price: 150 }, 32 | ]; 33 | 34 | const avgCost = calcAvgCost(items); 35 | 36 | const avgCostCPU = calcAvgCost(items, item => ( 37 | item.name === 'CPU' 38 | )); 39 | 40 | const avgCostB = calcAvgCost(items, item => ( 41 | item.manufacturer === 'B' 42 | )); 43 | 44 | const avgCostCPUFromA = calcAvgCost(items, item => ( 45 | item.name === 'CPU' && item.manufacturer === 'A' 46 | )); 47 | 48 | expect(avgCost).toBe(138.75); 49 | expect(avgCostCPU).toBe(195); 50 | expect(avgCostB).toBe(125); 51 | expect(avgCostCPUFromA).toBe(240); 52 | 53 | console.log('Average Cost = %d', avgCost); 54 | console.log('Average Cost CPU = %d', avgCostCPU); 55 | console.log('Average Cost B = %d', avgCostB); 56 | console.log('Average Cost CPU from A = %d', avgCostCPUFromA); 57 | }); 58 | -------------------------------------------------------------------------------- /demo/index.test.js: -------------------------------------------------------------------------------- 1 | class Item { 2 | constructor(name, manufacturer, price) { 3 | this.name = name; 4 | this.manufacturer = manufacturer; 5 | this.price = price; 6 | } 7 | } 8 | 9 | class Requisition { 10 | constructor(items) { 11 | this.items = items; 12 | } 13 | 14 | getAverageCost(average) { 15 | return average.getAverageCost(this); 16 | } 17 | } 18 | 19 | class Average { 20 | getAverageCost(requisition) { 21 | let total = 0; 22 | let count = 0; 23 | 24 | for (let i = 0, l = requisition.items.length; i < l; i++) { 25 | const item = requisition.items[i]; 26 | 27 | if (this.filter(item)) { 28 | total += item.price; 29 | count += 1; 30 | } 31 | } 32 | 33 | if (count === 0) { 34 | return 0; 35 | } 36 | 37 | return total / count; 38 | } 39 | 40 | filter() { 41 | return true; 42 | } 43 | } 44 | 45 | class AverageByName extends Average { 46 | constructor(name) { 47 | super(); 48 | this.name = name; 49 | } 50 | 51 | filter(item) { 52 | return item.name === this.name; 53 | } 54 | } 55 | 56 | class AverageByManufacturer extends Average { 57 | constructor(manufacturer) { 58 | super(); 59 | this.manufacturer = manufacturer; 60 | } 61 | 62 | filter(item) { 63 | return item.manufacturer === this.manufacturer; 64 | } 65 | } 66 | 67 | class AverageByChildren extends Average { 68 | constructor(children) { 69 | super(); 70 | this.children = children; 71 | } 72 | 73 | filter(item) { 74 | for (let i = 0, l = this.children.length; i < l; i++) { 75 | const child = this.children[i]; 76 | 77 | if (!child.filter(item)) { 78 | return false; 79 | } 80 | } 81 | 82 | return true; 83 | } 84 | } 85 | 86 | it('passes tests', () => { 87 | const items = [ 88 | new Item('Motherboard', 'A', 65), 89 | new Item('CPU', 'A', 240), 90 | new Item('DRAM', 'B', 100), 91 | new Item('CPU', 'B', 150), 92 | ]; 93 | 94 | const req = new Requisition(items); 95 | 96 | const avgCost = req.getAverageCost(new Average()); 97 | const avgCostCPU = req.getAverageCost(new AverageByName('CPU')); 98 | 99 | const avgCostB = req.getAverageCost(new AverageByManufacturer('B')); 100 | 101 | const avgCostCPUFromA = req.getAverageCost(new AverageByChildren([ 102 | new AverageByName('CPU'), 103 | new AverageByManufacturer('A'), 104 | ])); 105 | 106 | expect(avgCost).toBe(138.75); 107 | expect(avgCostCPU).toBe(195); 108 | expect(avgCostB).toBe(125); 109 | expect(avgCostCPUFromA).toBe(240); 110 | 111 | console.log('Average Cost = %d', avgCost); 112 | console.log('Average Cost CPU = %d', avgCostCPU); 113 | console.log('Average Cost B = %d', avgCostB); 114 | console.log('Average Cost CPU from A = %d', avgCostCPUFromA); 115 | }); 116 | -------------------------------------------------------------------------------- /demo/oop.js: -------------------------------------------------------------------------------- 1 | class Item { 2 | constructor(name, manufacturer, price) { 3 | this.name = name; 4 | this.manufacturer = manufacturer; 5 | this.price = price; 6 | } 7 | } 8 | 9 | class Requisition { 10 | constructor(items) { 11 | this.items = items; 12 | } 13 | 14 | getAverageCost(average) { 15 | return average.getAverageCost(this); 16 | } 17 | } 18 | 19 | class Average { 20 | getAverageCost(requisition) { 21 | let total = 0; 22 | let count = 0; 23 | 24 | for (let i = 0, l = requisition.items.length; i < l; i++) { 25 | const item = requisition.items[i]; 26 | 27 | if (this.filter(item)) { 28 | total += item.price; 29 | count += 1; 30 | } 31 | } 32 | 33 | if (count === 0) { 34 | return 0; 35 | } 36 | 37 | return total / count; 38 | } 39 | 40 | filter() { 41 | return true; 42 | } 43 | } 44 | 45 | class AverageByName extends Average { 46 | constructor(name) { 47 | super(); 48 | this.name = name; 49 | } 50 | 51 | filter(item) { 52 | return item.name === this.name; 53 | } 54 | } 55 | 56 | class AverageByManufacturer extends Average { 57 | constructor(manufacturer) { 58 | super(); 59 | this.manufacturer = manufacturer; 60 | } 61 | 62 | filter(item) { 63 | return item.manufacturer === this.manufacturer; 64 | } 65 | } 66 | 67 | class AverageByChildren extends Average { 68 | constructor(children) { 69 | super(); 70 | this.children = children; 71 | } 72 | 73 | filter(item) { 74 | for (let i = 0, l = this.children.length; i < l; i++) { 75 | const child = this.children[i]; 76 | 77 | if (!child.filter(item)) { 78 | return false; 79 | } 80 | } 81 | 82 | return true; 83 | } 84 | } 85 | 86 | it('passes tests', () => { 87 | const items = [ 88 | new Item('Motherboard', 'A', 65), 89 | new Item('CPU', 'A', 240), 90 | new Item('DRAM', 'B', 100), 91 | new Item('CPU', 'B', 150), 92 | ]; 93 | 94 | const req = new Requisition(items); 95 | 96 | const avgCost = req.getAverageCost(new Average()); 97 | const avgCostCPU = req.getAverageCost(new AverageByName('CPU')); 98 | 99 | const avgCostB = req.getAverageCost(new AverageByManufacturer('B')); 100 | 101 | const avgCostCPUFromA = req.getAverageCost(new AverageByChildren([ 102 | new AverageByName('CPU'), 103 | new AverageByManufacturer('A'), 104 | ])); 105 | 106 | expect(avgCost).toBe(138.75); 107 | expect(avgCostCPU).toBe(195); 108 | expect(avgCostB).toBe(125); 109 | expect(avgCostCPUFromA).toBe(240); 110 | 111 | console.log('Average Cost = %d', avgCost); 112 | console.log('Average Cost CPU = %d', avgCostCPU); 113 | console.log('Average Cost B = %d', avgCostB); 114 | console.log('Average Cost CPU from A = %d', avgCostCPUFromA); 115 | }); 116 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "functional-javascript", 3 | "version": "1.0.0", 4 | "description": "This repo contains code samples for the \"Functional Programming Basics in ES6\" talk.", 5 | "main": "index.js", 6 | "scripts": { 7 | "demo": "nodemon --exec 'clear; node demo' -w demo" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/jfairbank/fp-basics-in-es6.git" 12 | }, 13 | "author": "Jeremy Fairbank (http://jeremyfairbank.com)", 14 | "license": "MIT", 15 | "bugs": { 16 | "url": "https://github.com/jfairbank/fp-basics-in-es6/issues" 17 | }, 18 | "homepage": "https://github.com/jfairbank/fp-basics-in-es6#readme", 19 | "devDependencies": { 20 | "eslint": "^3.16.0", 21 | "eslint-config-airbnb-base": "^11.1.0", 22 | "eslint-plugin-import": "^2.2.0" 23 | }, 24 | "dependencies": { 25 | "lodash": "^4.17.4", 26 | "nodemon": "^1.11.0" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | abbrev@1: 6 | version "1.1.0" 7 | resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f" 8 | 9 | acorn-jsx@^3.0.0: 10 | version "3.0.1" 11 | resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" 12 | dependencies: 13 | acorn "^3.0.4" 14 | 15 | acorn@4.0.4: 16 | version "4.0.4" 17 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.4.tgz#17a8d6a7a6c4ef538b814ec9abac2779293bf30a" 18 | 19 | acorn@^3.0.4: 20 | version "3.3.0" 21 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" 22 | 23 | ajv-keywords@^1.0.0: 24 | version "1.5.1" 25 | resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c" 26 | 27 | ajv@^4.7.0: 28 | version "4.11.3" 29 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.3.tgz#ce30bdb90d1254f762c75af915fb3a63e7183d22" 30 | dependencies: 31 | co "^4.6.0" 32 | json-stable-stringify "^1.0.1" 33 | 34 | ansi-escapes@^1.1.0: 35 | version "1.4.0" 36 | resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" 37 | 38 | ansi-regex@^2.0.0: 39 | version "2.1.1" 40 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 41 | 42 | ansi-styles@^2.2.1: 43 | version "2.2.1" 44 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" 45 | 46 | anymatch@^1.3.0: 47 | version "1.3.0" 48 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507" 49 | dependencies: 50 | arrify "^1.0.0" 51 | micromatch "^2.1.5" 52 | 53 | aproba@^1.0.3: 54 | version "1.1.1" 55 | resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.1.1.tgz#95d3600f07710aa0e9298c726ad5ecf2eacbabab" 56 | 57 | are-we-there-yet@~1.1.2: 58 | version "1.1.2" 59 | resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.2.tgz#80e470e95a084794fe1899262c5667c6e88de1b3" 60 | dependencies: 61 | delegates "^1.0.0" 62 | readable-stream "^2.0.0 || ^1.1.13" 63 | 64 | argparse@^1.0.7: 65 | version "1.0.9" 66 | resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" 67 | dependencies: 68 | sprintf-js "~1.0.2" 69 | 70 | arr-diff@^2.0.0: 71 | version "2.0.0" 72 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" 73 | dependencies: 74 | arr-flatten "^1.0.1" 75 | 76 | arr-flatten@^1.0.1: 77 | version "1.0.1" 78 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.0.1.tgz#e5ffe54d45e19f32f216e91eb99c8ce892bb604b" 79 | 80 | array-union@^1.0.1: 81 | version "1.0.2" 82 | resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" 83 | dependencies: 84 | array-uniq "^1.0.1" 85 | 86 | array-uniq@^1.0.1: 87 | version "1.0.3" 88 | resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" 89 | 90 | array-unique@^0.2.1: 91 | version "0.2.1" 92 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" 93 | 94 | arrify@^1.0.0: 95 | version "1.0.1" 96 | resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" 97 | 98 | asn1@~0.2.3: 99 | version "0.2.3" 100 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" 101 | 102 | assert-plus@^0.2.0: 103 | version "0.2.0" 104 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" 105 | 106 | assert-plus@^1.0.0: 107 | version "1.0.0" 108 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 109 | 110 | async-each@^1.0.0: 111 | version "1.0.1" 112 | resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" 113 | 114 | asynckit@^0.4.0: 115 | version "0.4.0" 116 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 117 | 118 | aws-sign2@~0.6.0: 119 | version "0.6.0" 120 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" 121 | 122 | aws4@^1.2.1: 123 | version "1.6.0" 124 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" 125 | 126 | babel-code-frame@^6.16.0: 127 | version "6.22.0" 128 | resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4" 129 | dependencies: 130 | chalk "^1.1.0" 131 | esutils "^2.0.2" 132 | js-tokens "^3.0.0" 133 | 134 | balanced-match@^0.4.1: 135 | version "0.4.2" 136 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" 137 | 138 | bcrypt-pbkdf@^1.0.0: 139 | version "1.0.1" 140 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" 141 | dependencies: 142 | tweetnacl "^0.14.3" 143 | 144 | binary-extensions@^1.0.0: 145 | version "1.8.0" 146 | resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.8.0.tgz#48ec8d16df4377eae5fa5884682480af4d95c774" 147 | 148 | block-stream@*: 149 | version "0.0.9" 150 | resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" 151 | dependencies: 152 | inherits "~2.0.0" 153 | 154 | boom@2.x.x: 155 | version "2.10.1" 156 | resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" 157 | dependencies: 158 | hoek "2.x.x" 159 | 160 | brace-expansion@^1.0.0: 161 | version "1.1.6" 162 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9" 163 | dependencies: 164 | balanced-match "^0.4.1" 165 | concat-map "0.0.1" 166 | 167 | braces@^1.8.2: 168 | version "1.8.5" 169 | resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" 170 | dependencies: 171 | expand-range "^1.8.1" 172 | preserve "^0.2.0" 173 | repeat-element "^1.1.2" 174 | 175 | buffer-shims@^1.0.0: 176 | version "1.0.0" 177 | resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" 178 | 179 | builtin-modules@^1.1.1: 180 | version "1.1.1" 181 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 182 | 183 | caller-path@^0.1.0: 184 | version "0.1.0" 185 | resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f" 186 | dependencies: 187 | callsites "^0.2.0" 188 | 189 | callsites@^0.2.0: 190 | version "0.2.0" 191 | resolved "https://registry.yarnpkg.com/callsites/-/callsites-0.2.0.tgz#afab96262910a7f33c19a5775825c69f34e350ca" 192 | 193 | caseless@~0.11.0: 194 | version "0.11.0" 195 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" 196 | 197 | chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3: 198 | version "1.1.3" 199 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" 200 | dependencies: 201 | ansi-styles "^2.2.1" 202 | escape-string-regexp "^1.0.2" 203 | has-ansi "^2.0.0" 204 | strip-ansi "^3.0.0" 205 | supports-color "^2.0.0" 206 | 207 | chokidar@^1.4.3: 208 | version "1.6.1" 209 | resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.6.1.tgz#2f4447ab5e96e50fb3d789fd90d4c72e0e4c70c2" 210 | dependencies: 211 | anymatch "^1.3.0" 212 | async-each "^1.0.0" 213 | glob-parent "^2.0.0" 214 | inherits "^2.0.1" 215 | is-binary-path "^1.0.0" 216 | is-glob "^2.0.0" 217 | path-is-absolute "^1.0.0" 218 | readdirp "^2.0.0" 219 | optionalDependencies: 220 | fsevents "^1.0.0" 221 | 222 | circular-json@^0.3.1: 223 | version "0.3.1" 224 | resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.1.tgz#be8b36aefccde8b3ca7aa2d6afc07a37242c0d2d" 225 | 226 | cli-cursor@^1.0.1: 227 | version "1.0.2" 228 | resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987" 229 | dependencies: 230 | restore-cursor "^1.0.1" 231 | 232 | cli-width@^2.0.0: 233 | version "2.1.0" 234 | resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.1.0.tgz#b234ca209b29ef66fc518d9b98d5847b00edf00a" 235 | 236 | co@^4.6.0: 237 | version "4.6.0" 238 | resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" 239 | 240 | code-point-at@^1.0.0: 241 | version "1.1.0" 242 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 243 | 244 | combined-stream@^1.0.5, combined-stream@~1.0.5: 245 | version "1.0.5" 246 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" 247 | dependencies: 248 | delayed-stream "~1.0.0" 249 | 250 | commander@^2.9.0: 251 | version "2.9.0" 252 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" 253 | dependencies: 254 | graceful-readlink ">= 1.0.0" 255 | 256 | concat-map@0.0.1: 257 | version "0.0.1" 258 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 259 | 260 | concat-stream@^1.4.6: 261 | version "1.6.0" 262 | resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7" 263 | dependencies: 264 | inherits "^2.0.3" 265 | readable-stream "^2.2.2" 266 | typedarray "^0.0.6" 267 | 268 | configstore@^1.0.0: 269 | version "1.4.0" 270 | resolved "https://registry.yarnpkg.com/configstore/-/configstore-1.4.0.tgz#c35781d0501d268c25c54b8b17f6240e8a4fb021" 271 | dependencies: 272 | graceful-fs "^4.1.2" 273 | mkdirp "^0.5.0" 274 | object-assign "^4.0.1" 275 | os-tmpdir "^1.0.0" 276 | osenv "^0.1.0" 277 | uuid "^2.0.1" 278 | write-file-atomic "^1.1.2" 279 | xdg-basedir "^2.0.0" 280 | 281 | console-control-strings@^1.0.0, console-control-strings@~1.1.0: 282 | version "1.1.0" 283 | resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" 284 | 285 | contains-path@^0.1.0: 286 | version "0.1.0" 287 | resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" 288 | 289 | core-util-is@~1.0.0: 290 | version "1.0.2" 291 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 292 | 293 | cryptiles@2.x.x: 294 | version "2.0.5" 295 | resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" 296 | dependencies: 297 | boom "2.x.x" 298 | 299 | d@^0.1.1, d@~0.1.1: 300 | version "0.1.1" 301 | resolved "https://registry.yarnpkg.com/d/-/d-0.1.1.tgz#da184c535d18d8ee7ba2aa229b914009fae11309" 302 | dependencies: 303 | es5-ext "~0.10.2" 304 | 305 | dashdash@^1.12.0: 306 | version "1.14.1" 307 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 308 | dependencies: 309 | assert-plus "^1.0.0" 310 | 311 | debug@2.2.0, debug@~2.2.0: 312 | version "2.2.0" 313 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da" 314 | dependencies: 315 | ms "0.7.1" 316 | 317 | debug@^2.1.1, debug@^2.2.0: 318 | version "2.6.1" 319 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.1.tgz#79855090ba2c4e3115cc7d8769491d58f0491351" 320 | dependencies: 321 | ms "0.7.2" 322 | 323 | deep-extend@~0.4.0: 324 | version "0.4.1" 325 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.1.tgz#efe4113d08085f4e6f9687759810f807469e2253" 326 | 327 | deep-is@~0.1.3: 328 | version "0.1.3" 329 | resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" 330 | 331 | del@^2.0.2: 332 | version "2.2.2" 333 | resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" 334 | dependencies: 335 | globby "^5.0.0" 336 | is-path-cwd "^1.0.0" 337 | is-path-in-cwd "^1.0.0" 338 | object-assign "^4.0.1" 339 | pify "^2.0.0" 340 | pinkie-promise "^2.0.0" 341 | rimraf "^2.2.8" 342 | 343 | delayed-stream@~1.0.0: 344 | version "1.0.0" 345 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 346 | 347 | delegates@^1.0.0: 348 | version "1.0.0" 349 | resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" 350 | 351 | doctrine@1.5.0, doctrine@^1.2.2: 352 | version "1.5.0" 353 | resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" 354 | dependencies: 355 | esutils "^2.0.2" 356 | isarray "^1.0.0" 357 | 358 | duplexer@~0.1.1: 359 | version "0.1.1" 360 | resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" 361 | 362 | duplexify@^3.2.0: 363 | version "3.5.0" 364 | resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.5.0.tgz#1aa773002e1578457e9d9d4a50b0ccaaebcbd604" 365 | dependencies: 366 | end-of-stream "1.0.0" 367 | inherits "^2.0.1" 368 | readable-stream "^2.0.0" 369 | stream-shift "^1.0.0" 370 | 371 | ecc-jsbn@~0.1.1: 372 | version "0.1.1" 373 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" 374 | dependencies: 375 | jsbn "~0.1.0" 376 | 377 | end-of-stream@1.0.0: 378 | version "1.0.0" 379 | resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.0.0.tgz#d4596e702734a93e40e9af864319eabd99ff2f0e" 380 | dependencies: 381 | once "~1.3.0" 382 | 383 | es5-ext@^0.10.7, es5-ext@^0.10.8, es5-ext@~0.10.11, es5-ext@~0.10.2, es5-ext@~0.10.7: 384 | version "0.10.12" 385 | resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.12.tgz#aa84641d4db76b62abba5e45fd805ecbab140047" 386 | dependencies: 387 | es6-iterator "2" 388 | es6-symbol "~3.1" 389 | 390 | es6-iterator@2: 391 | version "2.0.0" 392 | resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.0.tgz#bd968567d61635e33c0b80727613c9cb4b096bac" 393 | dependencies: 394 | d "^0.1.1" 395 | es5-ext "^0.10.7" 396 | es6-symbol "3" 397 | 398 | es6-map@^0.1.3: 399 | version "0.1.4" 400 | resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.4.tgz#a34b147be224773a4d7da8072794cefa3632b897" 401 | dependencies: 402 | d "~0.1.1" 403 | es5-ext "~0.10.11" 404 | es6-iterator "2" 405 | es6-set "~0.1.3" 406 | es6-symbol "~3.1.0" 407 | event-emitter "~0.3.4" 408 | 409 | es6-promise@^3.0.2: 410 | version "3.3.1" 411 | resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613" 412 | 413 | es6-set@~0.1.3: 414 | version "0.1.4" 415 | resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.4.tgz#9516b6761c2964b92ff479456233a247dc707ce8" 416 | dependencies: 417 | d "~0.1.1" 418 | es5-ext "~0.10.11" 419 | es6-iterator "2" 420 | es6-symbol "3" 421 | event-emitter "~0.3.4" 422 | 423 | es6-symbol@3, es6-symbol@~3.1, es6-symbol@~3.1.0: 424 | version "3.1.0" 425 | resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.0.tgz#94481c655e7a7cad82eba832d97d5433496d7ffa" 426 | dependencies: 427 | d "~0.1.1" 428 | es5-ext "~0.10.11" 429 | 430 | es6-weak-map@^2.0.1: 431 | version "2.0.1" 432 | resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.1.tgz#0d2bbd8827eb5fb4ba8f97fbfea50d43db21ea81" 433 | dependencies: 434 | d "^0.1.1" 435 | es5-ext "^0.10.8" 436 | es6-iterator "2" 437 | es6-symbol "3" 438 | 439 | escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: 440 | version "1.0.5" 441 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 442 | 443 | escope@^3.6.0: 444 | version "3.6.0" 445 | resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3" 446 | dependencies: 447 | es6-map "^0.1.3" 448 | es6-weak-map "^2.0.1" 449 | esrecurse "^4.1.0" 450 | estraverse "^4.1.1" 451 | 452 | eslint-config-airbnb-base@^11.1.0: 453 | version "11.1.0" 454 | resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-11.1.0.tgz#dc9b3ec70b8c74dcbe6d6257c9da3992c39ca2ca" 455 | 456 | eslint-import-resolver-node@^0.2.0: 457 | version "0.2.3" 458 | resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.2.3.tgz#5add8106e8c928db2cba232bcd9efa846e3da16c" 459 | dependencies: 460 | debug "^2.2.0" 461 | object-assign "^4.0.1" 462 | resolve "^1.1.6" 463 | 464 | eslint-module-utils@^2.0.0: 465 | version "2.0.0" 466 | resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.0.0.tgz#a6f8c21d901358759cdc35dbac1982ae1ee58bce" 467 | dependencies: 468 | debug "2.2.0" 469 | pkg-dir "^1.0.0" 470 | 471 | eslint-plugin-import@^2.2.0: 472 | version "2.2.0" 473 | resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.2.0.tgz#72ba306fad305d67c4816348a4699a4229ac8b4e" 474 | dependencies: 475 | builtin-modules "^1.1.1" 476 | contains-path "^0.1.0" 477 | debug "^2.2.0" 478 | doctrine "1.5.0" 479 | eslint-import-resolver-node "^0.2.0" 480 | eslint-module-utils "^2.0.0" 481 | has "^1.0.1" 482 | lodash.cond "^4.3.0" 483 | minimatch "^3.0.3" 484 | pkg-up "^1.0.0" 485 | 486 | eslint@^3.16.0: 487 | version "3.16.0" 488 | resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.16.0.tgz#4a468ab93618a9eb6e3f1499038b38851f828630" 489 | dependencies: 490 | babel-code-frame "^6.16.0" 491 | chalk "^1.1.3" 492 | concat-stream "^1.4.6" 493 | debug "^2.1.1" 494 | doctrine "^1.2.2" 495 | escope "^3.6.0" 496 | espree "^3.4.0" 497 | estraverse "^4.2.0" 498 | esutils "^2.0.2" 499 | file-entry-cache "^2.0.0" 500 | glob "^7.0.3" 501 | globals "^9.14.0" 502 | ignore "^3.2.0" 503 | imurmurhash "^0.1.4" 504 | inquirer "^0.12.0" 505 | is-my-json-valid "^2.10.0" 506 | is-resolvable "^1.0.0" 507 | js-yaml "^3.5.1" 508 | json-stable-stringify "^1.0.0" 509 | levn "^0.3.0" 510 | lodash "^4.0.0" 511 | mkdirp "^0.5.0" 512 | natural-compare "^1.4.0" 513 | optionator "^0.8.2" 514 | path-is-inside "^1.0.1" 515 | pluralize "^1.2.1" 516 | progress "^1.1.8" 517 | require-uncached "^1.0.2" 518 | shelljs "^0.7.5" 519 | strip-bom "^3.0.0" 520 | strip-json-comments "~2.0.1" 521 | table "^3.7.8" 522 | text-table "~0.2.0" 523 | user-home "^2.0.0" 524 | 525 | espree@^3.4.0: 526 | version "3.4.0" 527 | resolved "https://registry.yarnpkg.com/espree/-/espree-3.4.0.tgz#41656fa5628e042878025ef467e78f125cb86e1d" 528 | dependencies: 529 | acorn "4.0.4" 530 | acorn-jsx "^3.0.0" 531 | 532 | esprima@^3.1.1: 533 | version "3.1.3" 534 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" 535 | 536 | esrecurse@^4.1.0: 537 | version "4.1.0" 538 | resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.1.0.tgz#4713b6536adf7f2ac4f327d559e7756bff648220" 539 | dependencies: 540 | estraverse "~4.1.0" 541 | object-assign "^4.0.1" 542 | 543 | estraverse@^4.1.1, estraverse@^4.2.0: 544 | version "4.2.0" 545 | resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" 546 | 547 | estraverse@~4.1.0: 548 | version "4.1.1" 549 | resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.1.1.tgz#f6caca728933a850ef90661d0e17982ba47111a2" 550 | 551 | esutils@^2.0.2: 552 | version "2.0.2" 553 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 554 | 555 | event-emitter@~0.3.4: 556 | version "0.3.4" 557 | resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.4.tgz#8d63ddfb4cfe1fae3b32ca265c4c720222080bb5" 558 | dependencies: 559 | d "~0.1.1" 560 | es5-ext "~0.10.7" 561 | 562 | event-stream@~3.3.0: 563 | version "3.3.4" 564 | resolved "https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.4.tgz#4ab4c9a0f5a54db9338b4c34d86bfce8f4b35571" 565 | dependencies: 566 | duplexer "~0.1.1" 567 | from "~0" 568 | map-stream "~0.1.0" 569 | pause-stream "0.0.11" 570 | split "0.3" 571 | stream-combiner "~0.0.4" 572 | through "~2.3.1" 573 | 574 | exit-hook@^1.0.0: 575 | version "1.1.1" 576 | resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8" 577 | 578 | expand-brackets@^0.1.4: 579 | version "0.1.5" 580 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" 581 | dependencies: 582 | is-posix-bracket "^0.1.0" 583 | 584 | expand-range@^1.8.1: 585 | version "1.8.2" 586 | resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" 587 | dependencies: 588 | fill-range "^2.1.0" 589 | 590 | extend@~3.0.0: 591 | version "3.0.0" 592 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4" 593 | 594 | extglob@^0.3.1: 595 | version "0.3.2" 596 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" 597 | dependencies: 598 | is-extglob "^1.0.0" 599 | 600 | extsprintf@1.0.2: 601 | version "1.0.2" 602 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550" 603 | 604 | fast-levenshtein@~2.0.4: 605 | version "2.0.6" 606 | resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" 607 | 608 | figures@^1.3.5: 609 | version "1.7.0" 610 | resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e" 611 | dependencies: 612 | escape-string-regexp "^1.0.5" 613 | object-assign "^4.1.0" 614 | 615 | file-entry-cache@^2.0.0: 616 | version "2.0.0" 617 | resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361" 618 | dependencies: 619 | flat-cache "^1.2.1" 620 | object-assign "^4.0.1" 621 | 622 | filename-regex@^2.0.0: 623 | version "2.0.0" 624 | resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.0.tgz#996e3e80479b98b9897f15a8a58b3d084e926775" 625 | 626 | fill-range@^2.1.0: 627 | version "2.2.3" 628 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" 629 | dependencies: 630 | is-number "^2.1.0" 631 | isobject "^2.0.0" 632 | randomatic "^1.1.3" 633 | repeat-element "^1.1.2" 634 | repeat-string "^1.5.2" 635 | 636 | find-up@^1.0.0: 637 | version "1.1.2" 638 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" 639 | dependencies: 640 | path-exists "^2.0.0" 641 | pinkie-promise "^2.0.0" 642 | 643 | flat-cache@^1.2.1: 644 | version "1.2.2" 645 | resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.2.2.tgz#fa86714e72c21db88601761ecf2f555d1abc6b96" 646 | dependencies: 647 | circular-json "^0.3.1" 648 | del "^2.0.2" 649 | graceful-fs "^4.1.2" 650 | write "^0.2.1" 651 | 652 | for-in@^0.1.5: 653 | version "0.1.6" 654 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.6.tgz#c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8" 655 | 656 | for-own@^0.1.4: 657 | version "0.1.4" 658 | resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.4.tgz#0149b41a39088c7515f51ebe1c1386d45f935072" 659 | dependencies: 660 | for-in "^0.1.5" 661 | 662 | forever-agent@~0.6.1: 663 | version "0.6.1" 664 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 665 | 666 | form-data@~2.1.1: 667 | version "2.1.2" 668 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.2.tgz#89c3534008b97eada4cbb157d58f6f5df025eae4" 669 | dependencies: 670 | asynckit "^0.4.0" 671 | combined-stream "^1.0.5" 672 | mime-types "^2.1.12" 673 | 674 | from@~0: 675 | version "0.1.3" 676 | resolved "https://registry.yarnpkg.com/from/-/from-0.1.3.tgz#ef63ac2062ac32acf7862e0d40b44b896f22f3bc" 677 | 678 | fs.realpath@^1.0.0: 679 | version "1.0.0" 680 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 681 | 682 | fsevents@^1.0.0: 683 | version "1.1.1" 684 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.1.tgz#f19fd28f43eeaf761680e519a203c4d0b3d31aff" 685 | dependencies: 686 | nan "^2.3.0" 687 | node-pre-gyp "^0.6.29" 688 | 689 | fstream-ignore@~1.0.5: 690 | version "1.0.5" 691 | resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" 692 | dependencies: 693 | fstream "^1.0.0" 694 | inherits "2" 695 | minimatch "^3.0.0" 696 | 697 | fstream@^1.0.0, fstream@^1.0.2, fstream@~1.0.10: 698 | version "1.0.10" 699 | resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.10.tgz#604e8a92fe26ffd9f6fae30399d4984e1ab22822" 700 | dependencies: 701 | graceful-fs "^4.1.2" 702 | inherits "~2.0.0" 703 | mkdirp ">=0.5 0" 704 | rimraf "2" 705 | 706 | function-bind@^1.0.2: 707 | version "1.1.0" 708 | resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771" 709 | 710 | gauge@~2.7.1: 711 | version "2.7.3" 712 | resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.3.tgz#1c23855f962f17b3ad3d0dc7443f304542edfe09" 713 | dependencies: 714 | aproba "^1.0.3" 715 | console-control-strings "^1.0.0" 716 | has-unicode "^2.0.0" 717 | object-assign "^4.1.0" 718 | signal-exit "^3.0.0" 719 | string-width "^1.0.1" 720 | strip-ansi "^3.0.1" 721 | wide-align "^1.1.0" 722 | 723 | generate-function@^2.0.0: 724 | version "2.0.0" 725 | resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" 726 | 727 | generate-object-property@^1.1.0: 728 | version "1.2.0" 729 | resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" 730 | dependencies: 731 | is-property "^1.0.0" 732 | 733 | getpass@^0.1.1: 734 | version "0.1.6" 735 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.6.tgz#283ffd9fc1256840875311c1b60e8c40187110e6" 736 | dependencies: 737 | assert-plus "^1.0.0" 738 | 739 | glob-base@^0.3.0: 740 | version "0.3.0" 741 | resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" 742 | dependencies: 743 | glob-parent "^2.0.0" 744 | is-glob "^2.0.0" 745 | 746 | glob-parent@^2.0.0: 747 | version "2.0.0" 748 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" 749 | dependencies: 750 | is-glob "^2.0.0" 751 | 752 | glob@^7.0.0, glob@^7.0.3, glob@^7.0.5: 753 | version "7.1.1" 754 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" 755 | dependencies: 756 | fs.realpath "^1.0.0" 757 | inflight "^1.0.4" 758 | inherits "2" 759 | minimatch "^3.0.2" 760 | once "^1.3.0" 761 | path-is-absolute "^1.0.0" 762 | 763 | globals@^9.14.0: 764 | version "9.16.0" 765 | resolved "https://registry.yarnpkg.com/globals/-/globals-9.16.0.tgz#63e903658171ec2d9f51b1d31de5e2b8dc01fb80" 766 | 767 | globby@^5.0.0: 768 | version "5.0.0" 769 | resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d" 770 | dependencies: 771 | array-union "^1.0.1" 772 | arrify "^1.0.0" 773 | glob "^7.0.3" 774 | object-assign "^4.0.1" 775 | pify "^2.0.0" 776 | pinkie-promise "^2.0.0" 777 | 778 | got@^3.2.0: 779 | version "3.3.1" 780 | resolved "https://registry.yarnpkg.com/got/-/got-3.3.1.tgz#e5d0ed4af55fc3eef4d56007769d98192bcb2eca" 781 | dependencies: 782 | duplexify "^3.2.0" 783 | infinity-agent "^2.0.0" 784 | is-redirect "^1.0.0" 785 | is-stream "^1.0.0" 786 | lowercase-keys "^1.0.0" 787 | nested-error-stacks "^1.0.0" 788 | object-assign "^3.0.0" 789 | prepend-http "^1.0.0" 790 | read-all-stream "^3.0.0" 791 | timed-out "^2.0.0" 792 | 793 | graceful-fs@^4.1.11, graceful-fs@^4.1.2: 794 | version "4.1.11" 795 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" 796 | 797 | "graceful-readlink@>= 1.0.0": 798 | version "1.0.1" 799 | resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" 800 | 801 | har-validator@~2.0.6: 802 | version "2.0.6" 803 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" 804 | dependencies: 805 | chalk "^1.1.1" 806 | commander "^2.9.0" 807 | is-my-json-valid "^2.12.4" 808 | pinkie-promise "^2.0.0" 809 | 810 | has-ansi@^2.0.0: 811 | version "2.0.0" 812 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" 813 | dependencies: 814 | ansi-regex "^2.0.0" 815 | 816 | has-unicode@^2.0.0: 817 | version "2.0.1" 818 | resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" 819 | 820 | has@^1.0.1: 821 | version "1.0.1" 822 | resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" 823 | dependencies: 824 | function-bind "^1.0.2" 825 | 826 | hawk@~3.1.3: 827 | version "3.1.3" 828 | resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" 829 | dependencies: 830 | boom "2.x.x" 831 | cryptiles "2.x.x" 832 | hoek "2.x.x" 833 | sntp "1.x.x" 834 | 835 | hoek@2.x.x: 836 | version "2.16.3" 837 | resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" 838 | 839 | http-signature@~1.1.0: 840 | version "1.1.1" 841 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" 842 | dependencies: 843 | assert-plus "^0.2.0" 844 | jsprim "^1.2.2" 845 | sshpk "^1.7.0" 846 | 847 | ignore-by-default@^1.0.0: 848 | version "1.0.1" 849 | resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09" 850 | 851 | ignore@^3.2.0: 852 | version "3.2.4" 853 | resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.2.4.tgz#4055e03596729a8fabe45a43c100ad5ed815c4e8" 854 | 855 | imurmurhash@^0.1.4: 856 | version "0.1.4" 857 | resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" 858 | 859 | infinity-agent@^2.0.0: 860 | version "2.0.3" 861 | resolved "https://registry.yarnpkg.com/infinity-agent/-/infinity-agent-2.0.3.tgz#45e0e2ff7a9eb030b27d62b74b3744b7a7ac4216" 862 | 863 | inflight@^1.0.4: 864 | version "1.0.6" 865 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 866 | dependencies: 867 | once "^1.3.0" 868 | wrappy "1" 869 | 870 | inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1: 871 | version "2.0.3" 872 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 873 | 874 | ini@~1.3.0: 875 | version "1.3.4" 876 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" 877 | 878 | inquirer@^0.12.0: 879 | version "0.12.0" 880 | resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-0.12.0.tgz#1ef2bfd63504df0bc75785fff8c2c41df12f077e" 881 | dependencies: 882 | ansi-escapes "^1.1.0" 883 | ansi-regex "^2.0.0" 884 | chalk "^1.0.0" 885 | cli-cursor "^1.0.1" 886 | cli-width "^2.0.0" 887 | figures "^1.3.5" 888 | lodash "^4.3.0" 889 | readline2 "^1.0.1" 890 | run-async "^0.1.0" 891 | rx-lite "^3.1.2" 892 | string-width "^1.0.1" 893 | strip-ansi "^3.0.0" 894 | through "^2.3.6" 895 | 896 | interpret@^1.0.0: 897 | version "1.0.1" 898 | resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.1.tgz#d579fb7f693b858004947af39fa0db49f795602c" 899 | 900 | is-binary-path@^1.0.0: 901 | version "1.0.1" 902 | resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" 903 | dependencies: 904 | binary-extensions "^1.0.0" 905 | 906 | is-buffer@^1.0.2: 907 | version "1.1.4" 908 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.4.tgz#cfc86ccd5dc5a52fa80489111c6920c457e2d98b" 909 | 910 | is-dotfile@^1.0.0: 911 | version "1.0.2" 912 | resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.2.tgz#2c132383f39199f8edc268ca01b9b007d205cc4d" 913 | 914 | is-equal-shallow@^0.1.3: 915 | version "0.1.3" 916 | resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" 917 | dependencies: 918 | is-primitive "^2.0.0" 919 | 920 | is-extendable@^0.1.1: 921 | version "0.1.1" 922 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" 923 | 924 | is-extglob@^1.0.0: 925 | version "1.0.0" 926 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" 927 | 928 | is-finite@^1.0.0: 929 | version "1.0.2" 930 | resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" 931 | dependencies: 932 | number-is-nan "^1.0.0" 933 | 934 | is-fullwidth-code-point@^1.0.0: 935 | version "1.0.0" 936 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 937 | dependencies: 938 | number-is-nan "^1.0.0" 939 | 940 | is-fullwidth-code-point@^2.0.0: 941 | version "2.0.0" 942 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" 943 | 944 | is-glob@^2.0.0, is-glob@^2.0.1: 945 | version "2.0.1" 946 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" 947 | dependencies: 948 | is-extglob "^1.0.0" 949 | 950 | is-my-json-valid@^2.10.0, is-my-json-valid@^2.12.4: 951 | version "2.15.0" 952 | resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.15.0.tgz#936edda3ca3c211fd98f3b2d3e08da43f7b2915b" 953 | dependencies: 954 | generate-function "^2.0.0" 955 | generate-object-property "^1.1.0" 956 | jsonpointer "^4.0.0" 957 | xtend "^4.0.0" 958 | 959 | is-npm@^1.0.0: 960 | version "1.0.0" 961 | resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4" 962 | 963 | is-number@^2.0.2, is-number@^2.1.0: 964 | version "2.1.0" 965 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" 966 | dependencies: 967 | kind-of "^3.0.2" 968 | 969 | is-path-cwd@^1.0.0: 970 | version "1.0.0" 971 | resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" 972 | 973 | is-path-in-cwd@^1.0.0: 974 | version "1.0.0" 975 | resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz#6477582b8214d602346094567003be8a9eac04dc" 976 | dependencies: 977 | is-path-inside "^1.0.0" 978 | 979 | is-path-inside@^1.0.0: 980 | version "1.0.0" 981 | resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.0.tgz#fc06e5a1683fbda13de667aff717bbc10a48f37f" 982 | dependencies: 983 | path-is-inside "^1.0.1" 984 | 985 | is-posix-bracket@^0.1.0: 986 | version "0.1.1" 987 | resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" 988 | 989 | is-primitive@^2.0.0: 990 | version "2.0.0" 991 | resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" 992 | 993 | is-property@^1.0.0: 994 | version "1.0.2" 995 | resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" 996 | 997 | is-redirect@^1.0.0: 998 | version "1.0.0" 999 | resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" 1000 | 1001 | is-resolvable@^1.0.0: 1002 | version "1.0.0" 1003 | resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.0.0.tgz#8df57c61ea2e3c501408d100fb013cf8d6e0cc62" 1004 | dependencies: 1005 | tryit "^1.0.1" 1006 | 1007 | is-stream@^1.0.0: 1008 | version "1.1.0" 1009 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 1010 | 1011 | is-typedarray@~1.0.0: 1012 | version "1.0.0" 1013 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 1014 | 1015 | isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: 1016 | version "1.0.0" 1017 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 1018 | 1019 | isobject@^2.0.0: 1020 | version "2.1.0" 1021 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" 1022 | dependencies: 1023 | isarray "1.0.0" 1024 | 1025 | isstream@~0.1.2: 1026 | version "0.1.2" 1027 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 1028 | 1029 | jodid25519@^1.0.0: 1030 | version "1.0.2" 1031 | resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967" 1032 | dependencies: 1033 | jsbn "~0.1.0" 1034 | 1035 | js-tokens@^3.0.0: 1036 | version "3.0.1" 1037 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7" 1038 | 1039 | js-yaml@^3.5.1: 1040 | version "3.8.1" 1041 | resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.1.tgz#782ba50200be7b9e5a8537001b7804db3ad02628" 1042 | dependencies: 1043 | argparse "^1.0.7" 1044 | esprima "^3.1.1" 1045 | 1046 | jsbn@~0.1.0: 1047 | version "0.1.1" 1048 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" 1049 | 1050 | json-schema@0.2.3: 1051 | version "0.2.3" 1052 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 1053 | 1054 | json-stable-stringify@^1.0.0, json-stable-stringify@^1.0.1: 1055 | version "1.0.1" 1056 | resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" 1057 | dependencies: 1058 | jsonify "~0.0.0" 1059 | 1060 | json-stringify-safe@~5.0.1: 1061 | version "5.0.1" 1062 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 1063 | 1064 | jsonify@~0.0.0: 1065 | version "0.0.0" 1066 | resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" 1067 | 1068 | jsonpointer@^4.0.0: 1069 | version "4.0.1" 1070 | resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" 1071 | 1072 | jsprim@^1.2.2: 1073 | version "1.3.1" 1074 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.3.1.tgz#2a7256f70412a29ee3670aaca625994c4dcff252" 1075 | dependencies: 1076 | extsprintf "1.0.2" 1077 | json-schema "0.2.3" 1078 | verror "1.3.6" 1079 | 1080 | kind-of@^3.0.2: 1081 | version "3.1.0" 1082 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.1.0.tgz#475d698a5e49ff5e53d14e3e732429dc8bf4cf47" 1083 | dependencies: 1084 | is-buffer "^1.0.2" 1085 | 1086 | latest-version@^1.0.0: 1087 | version "1.0.1" 1088 | resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-1.0.1.tgz#72cfc46e3e8d1be651e1ebb54ea9f6ea96f374bb" 1089 | dependencies: 1090 | package-json "^1.0.0" 1091 | 1092 | levn@^0.3.0, levn@~0.3.0: 1093 | version "0.3.0" 1094 | resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" 1095 | dependencies: 1096 | prelude-ls "~1.1.2" 1097 | type-check "~0.3.2" 1098 | 1099 | lodash._baseassign@^3.0.0: 1100 | version "3.2.0" 1101 | resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e" 1102 | dependencies: 1103 | lodash._basecopy "^3.0.0" 1104 | lodash.keys "^3.0.0" 1105 | 1106 | lodash._basecopy@^3.0.0: 1107 | version "3.0.1" 1108 | resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" 1109 | 1110 | lodash._bindcallback@^3.0.0: 1111 | version "3.0.1" 1112 | resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e" 1113 | 1114 | lodash._createassigner@^3.0.0: 1115 | version "3.1.1" 1116 | resolved "https://registry.yarnpkg.com/lodash._createassigner/-/lodash._createassigner-3.1.1.tgz#838a5bae2fdaca63ac22dee8e19fa4e6d6970b11" 1117 | dependencies: 1118 | lodash._bindcallback "^3.0.0" 1119 | lodash._isiterateecall "^3.0.0" 1120 | lodash.restparam "^3.0.0" 1121 | 1122 | lodash._getnative@^3.0.0: 1123 | version "3.9.1" 1124 | resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" 1125 | 1126 | lodash._isiterateecall@^3.0.0: 1127 | version "3.0.9" 1128 | resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c" 1129 | 1130 | lodash.assign@^3.0.0: 1131 | version "3.2.0" 1132 | resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-3.2.0.tgz#3ce9f0234b4b2223e296b8fa0ac1fee8ebca64fa" 1133 | dependencies: 1134 | lodash._baseassign "^3.0.0" 1135 | lodash._createassigner "^3.0.0" 1136 | lodash.keys "^3.0.0" 1137 | 1138 | lodash.cond@^4.3.0: 1139 | version "4.5.2" 1140 | resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5" 1141 | 1142 | lodash.defaults@^3.1.2: 1143 | version "3.1.2" 1144 | resolved "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-3.1.2.tgz#c7308b18dbf8bc9372d701a73493c61192bd2e2c" 1145 | dependencies: 1146 | lodash.assign "^3.0.0" 1147 | lodash.restparam "^3.0.0" 1148 | 1149 | lodash.isarguments@^3.0.0: 1150 | version "3.1.0" 1151 | resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" 1152 | 1153 | lodash.isarray@^3.0.0: 1154 | version "3.0.4" 1155 | resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" 1156 | 1157 | lodash.keys@^3.0.0: 1158 | version "3.1.2" 1159 | resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" 1160 | dependencies: 1161 | lodash._getnative "^3.0.0" 1162 | lodash.isarguments "^3.0.0" 1163 | lodash.isarray "^3.0.0" 1164 | 1165 | lodash.restparam@^3.0.0: 1166 | version "3.6.1" 1167 | resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805" 1168 | 1169 | lodash@^4.0.0, lodash@^4.17.4, lodash@^4.3.0: 1170 | version "4.17.4" 1171 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" 1172 | 1173 | lowercase-keys@^1.0.0: 1174 | version "1.0.0" 1175 | resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306" 1176 | 1177 | map-stream@~0.1.0: 1178 | version "0.1.0" 1179 | resolved "https://registry.yarnpkg.com/map-stream/-/map-stream-0.1.0.tgz#e56aa94c4c8055a16404a0674b78f215f7c8e194" 1180 | 1181 | micromatch@^2.1.5: 1182 | version "2.3.11" 1183 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" 1184 | dependencies: 1185 | arr-diff "^2.0.0" 1186 | array-unique "^0.2.1" 1187 | braces "^1.8.2" 1188 | expand-brackets "^0.1.4" 1189 | extglob "^0.3.1" 1190 | filename-regex "^2.0.0" 1191 | is-extglob "^1.0.0" 1192 | is-glob "^2.0.1" 1193 | kind-of "^3.0.2" 1194 | normalize-path "^2.0.1" 1195 | object.omit "^2.0.0" 1196 | parse-glob "^3.0.4" 1197 | regex-cache "^0.4.2" 1198 | 1199 | mime-db@~1.26.0: 1200 | version "1.26.0" 1201 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.26.0.tgz#eaffcd0e4fc6935cf8134da246e2e6c35305adff" 1202 | 1203 | mime-types@^2.1.12, mime-types@~2.1.7: 1204 | version "2.1.14" 1205 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.14.tgz#f7ef7d97583fcaf3b7d282b6f8b5679dab1e94ee" 1206 | dependencies: 1207 | mime-db "~1.26.0" 1208 | 1209 | minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3: 1210 | version "3.0.3" 1211 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" 1212 | dependencies: 1213 | brace-expansion "^1.0.0" 1214 | 1215 | minimist@0.0.8: 1216 | version "0.0.8" 1217 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 1218 | 1219 | minimist@^1.2.0: 1220 | version "1.2.0" 1221 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" 1222 | 1223 | "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1: 1224 | version "0.5.1" 1225 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 1226 | dependencies: 1227 | minimist "0.0.8" 1228 | 1229 | ms@0.7.1: 1230 | version "0.7.1" 1231 | resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098" 1232 | 1233 | ms@0.7.2: 1234 | version "0.7.2" 1235 | resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" 1236 | 1237 | mute-stream@0.0.5: 1238 | version "0.0.5" 1239 | resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0" 1240 | 1241 | nan@^2.3.0: 1242 | version "2.5.1" 1243 | resolved "https://registry.yarnpkg.com/nan/-/nan-2.5.1.tgz#d5b01691253326a97a2bbee9e61c55d8d60351e2" 1244 | 1245 | natural-compare@^1.4.0: 1246 | version "1.4.0" 1247 | resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" 1248 | 1249 | nested-error-stacks@^1.0.0: 1250 | version "1.0.2" 1251 | resolved "https://registry.yarnpkg.com/nested-error-stacks/-/nested-error-stacks-1.0.2.tgz#19f619591519f096769a5ba9a86e6eeec823c3cf" 1252 | dependencies: 1253 | inherits "~2.0.1" 1254 | 1255 | node-pre-gyp@^0.6.29: 1256 | version "0.6.33" 1257 | resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.33.tgz#640ac55198f6a925972e0c16c4ac26a034d5ecc9" 1258 | dependencies: 1259 | mkdirp "~0.5.1" 1260 | nopt "~3.0.6" 1261 | npmlog "^4.0.1" 1262 | rc "~1.1.6" 1263 | request "^2.79.0" 1264 | rimraf "~2.5.4" 1265 | semver "~5.3.0" 1266 | tar "~2.2.1" 1267 | tar-pack "~3.3.0" 1268 | 1269 | nodemon@^1.11.0: 1270 | version "1.11.0" 1271 | resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-1.11.0.tgz#226c562bd2a7b13d3d7518b49ad4828a3623d06c" 1272 | dependencies: 1273 | chokidar "^1.4.3" 1274 | debug "^2.2.0" 1275 | es6-promise "^3.0.2" 1276 | ignore-by-default "^1.0.0" 1277 | lodash.defaults "^3.1.2" 1278 | minimatch "^3.0.0" 1279 | ps-tree "^1.0.1" 1280 | touch "1.0.0" 1281 | undefsafe "0.0.3" 1282 | update-notifier "0.5.0" 1283 | 1284 | nopt@~1.0.10: 1285 | version "1.0.10" 1286 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee" 1287 | dependencies: 1288 | abbrev "1" 1289 | 1290 | nopt@~3.0.6: 1291 | version "3.0.6" 1292 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" 1293 | dependencies: 1294 | abbrev "1" 1295 | 1296 | normalize-path@^2.0.1: 1297 | version "2.0.1" 1298 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.0.1.tgz#47886ac1662760d4261b7d979d241709d3ce3f7a" 1299 | 1300 | npmlog@^4.0.1: 1301 | version "4.0.2" 1302 | resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.0.2.tgz#d03950e0e78ce1527ba26d2a7592e9348ac3e75f" 1303 | dependencies: 1304 | are-we-there-yet "~1.1.2" 1305 | console-control-strings "~1.1.0" 1306 | gauge "~2.7.1" 1307 | set-blocking "~2.0.0" 1308 | 1309 | number-is-nan@^1.0.0: 1310 | version "1.0.1" 1311 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 1312 | 1313 | oauth-sign@~0.8.1: 1314 | version "0.8.2" 1315 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" 1316 | 1317 | object-assign@^3.0.0: 1318 | version "3.0.0" 1319 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-3.0.0.tgz#9bedd5ca0897949bca47e7ff408062d549f587f2" 1320 | 1321 | object-assign@^4.0.1, object-assign@^4.1.0: 1322 | version "4.1.1" 1323 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 1324 | 1325 | object.omit@^2.0.0: 1326 | version "2.0.1" 1327 | resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" 1328 | dependencies: 1329 | for-own "^0.1.4" 1330 | is-extendable "^0.1.1" 1331 | 1332 | once@^1.3.0: 1333 | version "1.4.0" 1334 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1335 | dependencies: 1336 | wrappy "1" 1337 | 1338 | once@~1.3.0, once@~1.3.3: 1339 | version "1.3.3" 1340 | resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20" 1341 | dependencies: 1342 | wrappy "1" 1343 | 1344 | onetime@^1.0.0: 1345 | version "1.1.0" 1346 | resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" 1347 | 1348 | optionator@^0.8.2: 1349 | version "0.8.2" 1350 | resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" 1351 | dependencies: 1352 | deep-is "~0.1.3" 1353 | fast-levenshtein "~2.0.4" 1354 | levn "~0.3.0" 1355 | prelude-ls "~1.1.2" 1356 | type-check "~0.3.2" 1357 | wordwrap "~1.0.0" 1358 | 1359 | os-homedir@^1.0.0: 1360 | version "1.0.2" 1361 | resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" 1362 | 1363 | os-tmpdir@^1.0.0: 1364 | version "1.0.2" 1365 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 1366 | 1367 | osenv@^0.1.0: 1368 | version "0.1.4" 1369 | resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.4.tgz#42fe6d5953df06c8064be6f176c3d05aaaa34644" 1370 | dependencies: 1371 | os-homedir "^1.0.0" 1372 | os-tmpdir "^1.0.0" 1373 | 1374 | package-json@^1.0.0: 1375 | version "1.2.0" 1376 | resolved "https://registry.yarnpkg.com/package-json/-/package-json-1.2.0.tgz#c8ecac094227cdf76a316874ed05e27cc939a0e0" 1377 | dependencies: 1378 | got "^3.2.0" 1379 | registry-url "^3.0.0" 1380 | 1381 | parse-glob@^3.0.4: 1382 | version "3.0.4" 1383 | resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" 1384 | dependencies: 1385 | glob-base "^0.3.0" 1386 | is-dotfile "^1.0.0" 1387 | is-extglob "^1.0.0" 1388 | is-glob "^2.0.0" 1389 | 1390 | path-exists@^2.0.0: 1391 | version "2.1.0" 1392 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" 1393 | dependencies: 1394 | pinkie-promise "^2.0.0" 1395 | 1396 | path-is-absolute@^1.0.0: 1397 | version "1.0.1" 1398 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 1399 | 1400 | path-is-inside@^1.0.1: 1401 | version "1.0.2" 1402 | resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" 1403 | 1404 | pause-stream@0.0.11: 1405 | version "0.0.11" 1406 | resolved "https://registry.yarnpkg.com/pause-stream/-/pause-stream-0.0.11.tgz#fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445" 1407 | dependencies: 1408 | through "~2.3" 1409 | 1410 | pify@^2.0.0: 1411 | version "2.3.0" 1412 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 1413 | 1414 | pinkie-promise@^2.0.0: 1415 | version "2.0.1" 1416 | resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" 1417 | dependencies: 1418 | pinkie "^2.0.0" 1419 | 1420 | pinkie@^2.0.0: 1421 | version "2.0.4" 1422 | resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" 1423 | 1424 | pkg-dir@^1.0.0: 1425 | version "1.0.0" 1426 | resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4" 1427 | dependencies: 1428 | find-up "^1.0.0" 1429 | 1430 | pkg-up@^1.0.0: 1431 | version "1.0.0" 1432 | resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26" 1433 | dependencies: 1434 | find-up "^1.0.0" 1435 | 1436 | pluralize@^1.2.1: 1437 | version "1.2.1" 1438 | resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45" 1439 | 1440 | prelude-ls@~1.1.2: 1441 | version "1.1.2" 1442 | resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" 1443 | 1444 | prepend-http@^1.0.0: 1445 | version "1.0.4" 1446 | resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" 1447 | 1448 | preserve@^0.2.0: 1449 | version "0.2.0" 1450 | resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" 1451 | 1452 | process-nextick-args@~1.0.6: 1453 | version "1.0.7" 1454 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" 1455 | 1456 | progress@^1.1.8: 1457 | version "1.1.8" 1458 | resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be" 1459 | 1460 | ps-tree@^1.0.1: 1461 | version "1.1.0" 1462 | resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.1.0.tgz#b421b24140d6203f1ed3c76996b4427b08e8c014" 1463 | dependencies: 1464 | event-stream "~3.3.0" 1465 | 1466 | punycode@^1.4.1: 1467 | version "1.4.1" 1468 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 1469 | 1470 | qs@~6.3.0: 1471 | version "6.3.1" 1472 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.1.tgz#918c0b3bcd36679772baf135b1acb4c1651ed79d" 1473 | 1474 | randomatic@^1.1.3: 1475 | version "1.1.6" 1476 | resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb" 1477 | dependencies: 1478 | is-number "^2.0.2" 1479 | kind-of "^3.0.2" 1480 | 1481 | rc@^1.0.1, rc@~1.1.6: 1482 | version "1.1.7" 1483 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.1.7.tgz#c5ea564bb07aff9fd3a5b32e906c1d3a65940fea" 1484 | dependencies: 1485 | deep-extend "~0.4.0" 1486 | ini "~1.3.0" 1487 | minimist "^1.2.0" 1488 | strip-json-comments "~2.0.1" 1489 | 1490 | read-all-stream@^3.0.0: 1491 | version "3.1.0" 1492 | resolved "https://registry.yarnpkg.com/read-all-stream/-/read-all-stream-3.1.0.tgz#35c3e177f2078ef789ee4bfafa4373074eaef4fa" 1493 | dependencies: 1494 | pinkie-promise "^2.0.0" 1495 | readable-stream "^2.0.0" 1496 | 1497 | readable-stream@^2.0.0, "readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.2, readable-stream@^2.2.2: 1498 | version "2.2.2" 1499 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.2.tgz#a9e6fec3c7dda85f8bb1b3ba7028604556fc825e" 1500 | dependencies: 1501 | buffer-shims "^1.0.0" 1502 | core-util-is "~1.0.0" 1503 | inherits "~2.0.1" 1504 | isarray "~1.0.0" 1505 | process-nextick-args "~1.0.6" 1506 | string_decoder "~0.10.x" 1507 | util-deprecate "~1.0.1" 1508 | 1509 | readable-stream@~2.1.4: 1510 | version "2.1.5" 1511 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.1.5.tgz#66fa8b720e1438b364681f2ad1a63c618448c9d0" 1512 | dependencies: 1513 | buffer-shims "^1.0.0" 1514 | core-util-is "~1.0.0" 1515 | inherits "~2.0.1" 1516 | isarray "~1.0.0" 1517 | process-nextick-args "~1.0.6" 1518 | string_decoder "~0.10.x" 1519 | util-deprecate "~1.0.1" 1520 | 1521 | readdirp@^2.0.0: 1522 | version "2.1.0" 1523 | resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" 1524 | dependencies: 1525 | graceful-fs "^4.1.2" 1526 | minimatch "^3.0.2" 1527 | readable-stream "^2.0.2" 1528 | set-immediate-shim "^1.0.1" 1529 | 1530 | readline2@^1.0.1: 1531 | version "1.0.1" 1532 | resolved "https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35" 1533 | dependencies: 1534 | code-point-at "^1.0.0" 1535 | is-fullwidth-code-point "^1.0.0" 1536 | mute-stream "0.0.5" 1537 | 1538 | rechoir@^0.6.2: 1539 | version "0.6.2" 1540 | resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" 1541 | dependencies: 1542 | resolve "^1.1.6" 1543 | 1544 | regex-cache@^0.4.2: 1545 | version "0.4.3" 1546 | resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145" 1547 | dependencies: 1548 | is-equal-shallow "^0.1.3" 1549 | is-primitive "^2.0.0" 1550 | 1551 | registry-url@^3.0.0: 1552 | version "3.1.0" 1553 | resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942" 1554 | dependencies: 1555 | rc "^1.0.1" 1556 | 1557 | repeat-element@^1.1.2: 1558 | version "1.1.2" 1559 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" 1560 | 1561 | repeat-string@^1.5.2: 1562 | version "1.6.1" 1563 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" 1564 | 1565 | repeating@^1.1.2: 1566 | version "1.1.3" 1567 | resolved "https://registry.yarnpkg.com/repeating/-/repeating-1.1.3.tgz#3d4114218877537494f97f77f9785fab810fa4ac" 1568 | dependencies: 1569 | is-finite "^1.0.0" 1570 | 1571 | request@^2.79.0: 1572 | version "2.79.0" 1573 | resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de" 1574 | dependencies: 1575 | aws-sign2 "~0.6.0" 1576 | aws4 "^1.2.1" 1577 | caseless "~0.11.0" 1578 | combined-stream "~1.0.5" 1579 | extend "~3.0.0" 1580 | forever-agent "~0.6.1" 1581 | form-data "~2.1.1" 1582 | har-validator "~2.0.6" 1583 | hawk "~3.1.3" 1584 | http-signature "~1.1.0" 1585 | is-typedarray "~1.0.0" 1586 | isstream "~0.1.2" 1587 | json-stringify-safe "~5.0.1" 1588 | mime-types "~2.1.7" 1589 | oauth-sign "~0.8.1" 1590 | qs "~6.3.0" 1591 | stringstream "~0.0.4" 1592 | tough-cookie "~2.3.0" 1593 | tunnel-agent "~0.4.1" 1594 | uuid "^3.0.0" 1595 | 1596 | require-uncached@^1.0.2: 1597 | version "1.0.3" 1598 | resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3" 1599 | dependencies: 1600 | caller-path "^0.1.0" 1601 | resolve-from "^1.0.0" 1602 | 1603 | resolve-from@^1.0.0: 1604 | version "1.0.1" 1605 | resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" 1606 | 1607 | resolve@^1.1.6: 1608 | version "1.2.0" 1609 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.2.0.tgz#9589c3f2f6149d1417a40becc1663db6ec6bc26c" 1610 | 1611 | restore-cursor@^1.0.1: 1612 | version "1.0.1" 1613 | resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541" 1614 | dependencies: 1615 | exit-hook "^1.0.0" 1616 | onetime "^1.0.0" 1617 | 1618 | rimraf@2, rimraf@^2.2.8, rimraf@~2.5.1, rimraf@~2.5.4: 1619 | version "2.5.4" 1620 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.5.4.tgz#96800093cbf1a0c86bd95b4625467535c29dfa04" 1621 | dependencies: 1622 | glob "^7.0.5" 1623 | 1624 | run-async@^0.1.0: 1625 | version "0.1.0" 1626 | resolved "https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389" 1627 | dependencies: 1628 | once "^1.3.0" 1629 | 1630 | rx-lite@^3.1.2: 1631 | version "3.1.2" 1632 | resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102" 1633 | 1634 | semver-diff@^2.0.0: 1635 | version "2.1.0" 1636 | resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36" 1637 | dependencies: 1638 | semver "^5.0.3" 1639 | 1640 | semver@^5.0.3, semver@~5.3.0: 1641 | version "5.3.0" 1642 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" 1643 | 1644 | set-blocking@~2.0.0: 1645 | version "2.0.0" 1646 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 1647 | 1648 | set-immediate-shim@^1.0.1: 1649 | version "1.0.1" 1650 | resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" 1651 | 1652 | shelljs@^0.7.5: 1653 | version "0.7.6" 1654 | resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad" 1655 | dependencies: 1656 | glob "^7.0.0" 1657 | interpret "^1.0.0" 1658 | rechoir "^0.6.2" 1659 | 1660 | signal-exit@^3.0.0: 1661 | version "3.0.2" 1662 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 1663 | 1664 | slice-ansi@0.0.4: 1665 | version "0.0.4" 1666 | resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35" 1667 | 1668 | slide@^1.1.5: 1669 | version "1.1.6" 1670 | resolved "https://registry.yarnpkg.com/slide/-/slide-1.1.6.tgz#56eb027d65b4d2dce6cb2e2d32c4d4afc9e1d707" 1671 | 1672 | sntp@1.x.x: 1673 | version "1.0.9" 1674 | resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" 1675 | dependencies: 1676 | hoek "2.x.x" 1677 | 1678 | split@0.3: 1679 | version "0.3.3" 1680 | resolved "https://registry.yarnpkg.com/split/-/split-0.3.3.tgz#cd0eea5e63a211dfff7eb0f091c4133e2d0dd28f" 1681 | dependencies: 1682 | through "2" 1683 | 1684 | sprintf-js@~1.0.2: 1685 | version "1.0.3" 1686 | resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 1687 | 1688 | sshpk@^1.7.0: 1689 | version "1.10.2" 1690 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.10.2.tgz#d5a804ce22695515638e798dbe23273de070a5fa" 1691 | dependencies: 1692 | asn1 "~0.2.3" 1693 | assert-plus "^1.0.0" 1694 | dashdash "^1.12.0" 1695 | getpass "^0.1.1" 1696 | optionalDependencies: 1697 | bcrypt-pbkdf "^1.0.0" 1698 | ecc-jsbn "~0.1.1" 1699 | jodid25519 "^1.0.0" 1700 | jsbn "~0.1.0" 1701 | tweetnacl "~0.14.0" 1702 | 1703 | stream-combiner@~0.0.4: 1704 | version "0.0.4" 1705 | resolved "https://registry.yarnpkg.com/stream-combiner/-/stream-combiner-0.0.4.tgz#4d5e433c185261dde623ca3f44c586bcf5c4ad14" 1706 | dependencies: 1707 | duplexer "~0.1.1" 1708 | 1709 | stream-shift@^1.0.0: 1710 | version "1.0.0" 1711 | resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.0.tgz#d5c752825e5367e786f78e18e445ea223a155952" 1712 | 1713 | string-length@^1.0.0: 1714 | version "1.0.1" 1715 | resolved "https://registry.yarnpkg.com/string-length/-/string-length-1.0.1.tgz#56970fb1c38558e9e70b728bf3de269ac45adfac" 1716 | dependencies: 1717 | strip-ansi "^3.0.0" 1718 | 1719 | string-width@^1.0.1: 1720 | version "1.0.2" 1721 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 1722 | dependencies: 1723 | code-point-at "^1.0.0" 1724 | is-fullwidth-code-point "^1.0.0" 1725 | strip-ansi "^3.0.0" 1726 | 1727 | string-width@^2.0.0: 1728 | version "2.0.0" 1729 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.0.0.tgz#635c5436cc72a6e0c387ceca278d4e2eec52687e" 1730 | dependencies: 1731 | is-fullwidth-code-point "^2.0.0" 1732 | strip-ansi "^3.0.0" 1733 | 1734 | string_decoder@~0.10.x: 1735 | version "0.10.31" 1736 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" 1737 | 1738 | stringstream@~0.0.4: 1739 | version "0.0.5" 1740 | resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" 1741 | 1742 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 1743 | version "3.0.1" 1744 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 1745 | dependencies: 1746 | ansi-regex "^2.0.0" 1747 | 1748 | strip-bom@^3.0.0: 1749 | version "3.0.0" 1750 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" 1751 | 1752 | strip-json-comments@~2.0.1: 1753 | version "2.0.1" 1754 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" 1755 | 1756 | supports-color@^2.0.0: 1757 | version "2.0.0" 1758 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" 1759 | 1760 | table@^3.7.8: 1761 | version "3.8.3" 1762 | resolved "https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f" 1763 | dependencies: 1764 | ajv "^4.7.0" 1765 | ajv-keywords "^1.0.0" 1766 | chalk "^1.1.1" 1767 | lodash "^4.0.0" 1768 | slice-ansi "0.0.4" 1769 | string-width "^2.0.0" 1770 | 1771 | tar-pack@~3.3.0: 1772 | version "3.3.0" 1773 | resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.3.0.tgz#30931816418f55afc4d21775afdd6720cee45dae" 1774 | dependencies: 1775 | debug "~2.2.0" 1776 | fstream "~1.0.10" 1777 | fstream-ignore "~1.0.5" 1778 | once "~1.3.3" 1779 | readable-stream "~2.1.4" 1780 | rimraf "~2.5.1" 1781 | tar "~2.2.1" 1782 | uid-number "~0.0.6" 1783 | 1784 | tar@~2.2.1: 1785 | version "2.2.1" 1786 | resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" 1787 | dependencies: 1788 | block-stream "*" 1789 | fstream "^1.0.2" 1790 | inherits "2" 1791 | 1792 | text-table@~0.2.0: 1793 | version "0.2.0" 1794 | resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" 1795 | 1796 | through@2, through@^2.3.6, through@~2.3, through@~2.3.1: 1797 | version "2.3.8" 1798 | resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" 1799 | 1800 | timed-out@^2.0.0: 1801 | version "2.0.0" 1802 | resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-2.0.0.tgz#f38b0ae81d3747d628001f41dafc652ace671c0a" 1803 | 1804 | touch@1.0.0: 1805 | version "1.0.0" 1806 | resolved "https://registry.yarnpkg.com/touch/-/touch-1.0.0.tgz#449cbe2dbae5a8c8038e30d71fa0ff464947c4de" 1807 | dependencies: 1808 | nopt "~1.0.10" 1809 | 1810 | tough-cookie@~2.3.0: 1811 | version "2.3.2" 1812 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" 1813 | dependencies: 1814 | punycode "^1.4.1" 1815 | 1816 | tryit@^1.0.1: 1817 | version "1.0.3" 1818 | resolved "https://registry.yarnpkg.com/tryit/-/tryit-1.0.3.tgz#393be730a9446fd1ead6da59a014308f36c289cb" 1819 | 1820 | tunnel-agent@~0.4.1: 1821 | version "0.4.3" 1822 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" 1823 | 1824 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 1825 | version "0.14.5" 1826 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 1827 | 1828 | type-check@~0.3.2: 1829 | version "0.3.2" 1830 | resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" 1831 | dependencies: 1832 | prelude-ls "~1.1.2" 1833 | 1834 | typedarray@^0.0.6: 1835 | version "0.0.6" 1836 | resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" 1837 | 1838 | uid-number@~0.0.6: 1839 | version "0.0.6" 1840 | resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" 1841 | 1842 | undefsafe@0.0.3: 1843 | version "0.0.3" 1844 | resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-0.0.3.tgz#ecca3a03e56b9af17385baac812ac83b994a962f" 1845 | 1846 | update-notifier@0.5.0: 1847 | version "0.5.0" 1848 | resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-0.5.0.tgz#07b5dc2066b3627ab3b4f530130f7eddda07a4cc" 1849 | dependencies: 1850 | chalk "^1.0.0" 1851 | configstore "^1.0.0" 1852 | is-npm "^1.0.0" 1853 | latest-version "^1.0.0" 1854 | repeating "^1.1.2" 1855 | semver-diff "^2.0.0" 1856 | string-length "^1.0.0" 1857 | 1858 | user-home@^2.0.0: 1859 | version "2.0.0" 1860 | resolved "https://registry.yarnpkg.com/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f" 1861 | dependencies: 1862 | os-homedir "^1.0.0" 1863 | 1864 | util-deprecate@~1.0.1: 1865 | version "1.0.2" 1866 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" 1867 | 1868 | uuid@^2.0.1: 1869 | version "2.0.3" 1870 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a" 1871 | 1872 | uuid@^3.0.0: 1873 | version "3.0.1" 1874 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" 1875 | 1876 | verror@1.3.6: 1877 | version "1.3.6" 1878 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c" 1879 | dependencies: 1880 | extsprintf "1.0.2" 1881 | 1882 | wide-align@^1.1.0: 1883 | version "1.1.0" 1884 | resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.0.tgz#40edde802a71fea1f070da3e62dcda2e7add96ad" 1885 | dependencies: 1886 | string-width "^1.0.1" 1887 | 1888 | wordwrap@~1.0.0: 1889 | version "1.0.0" 1890 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" 1891 | 1892 | wrappy@1: 1893 | version "1.0.2" 1894 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 1895 | 1896 | write-file-atomic@^1.1.2: 1897 | version "1.3.1" 1898 | resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-1.3.1.tgz#7d45ba32316328dd1ec7d90f60ebc0d845bb759a" 1899 | dependencies: 1900 | graceful-fs "^4.1.11" 1901 | imurmurhash "^0.1.4" 1902 | slide "^1.1.5" 1903 | 1904 | write@^0.2.1: 1905 | version "0.2.1" 1906 | resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757" 1907 | dependencies: 1908 | mkdirp "^0.5.1" 1909 | 1910 | xdg-basedir@^2.0.0: 1911 | version "2.0.0" 1912 | resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-2.0.0.tgz#edbc903cc385fc04523d966a335504b5504d1bd2" 1913 | dependencies: 1914 | os-homedir "^1.0.0" 1915 | 1916 | xtend@^4.0.0: 1917 | version "4.0.1" 1918 | resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" 1919 | --------------------------------------------------------------------------------