├── test ├── kernel.log ├── Makefile ├── run.js ├── connection.json ├── get-kernel-info.js ├── config.json ├── tbind.js ├── Readme.md ├── heartbeat.js ├── sockets.js ├── kernel.js └── server.js ├── ext ├── babel-module-loader.js ├── test-clojurescript.js ├── test-babel.js ├── coffee.js ├── babel.js ├── clojurescript.js └── clojure.js ├── .gitattributes ├── .gitignore ├── config.js ├── lib ├── run.js ├── info.js ├── load-ext.js ├── sockets.js ├── complete.js ├── example.js ├── kernel.js └── context.js ├── install.js ├── Dockerfile ├── package.json ├── LICENSE ├── Readme.md └── yarn.lock /test/kernel.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ext/babel-module-loader.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | yarn.lock -diff 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /build 3 | /*.tgz 4 | -------------------------------------------------------------------------------- /test/Makefile: -------------------------------------------------------------------------------- 1 | 2 | run: 3 | babel-node ./run.js connection.json config.json 4 | 5 | kernel: 6 | babel-node ../lib/run.js connection.json 7 | -------------------------------------------------------------------------------- /ext/test-clojurescript.js: -------------------------------------------------------------------------------- 1 | 2 | import {translateCode} from './clojurescript' 3 | 4 | translateCode('http://localhost:4432', '(+ 2 3)', (err, code) => { 5 | console.log(err, code) 6 | }) 7 | 8 | -------------------------------------------------------------------------------- /test/run.js: -------------------------------------------------------------------------------- 1 | 2 | import testKernel from './kernel' 3 | import path from 'path' 4 | 5 | const connection = require(path.resolve(process.argv[2])) 6 | const config = require(path.resolve(process.argv[3])) 7 | 8 | testKernel(connection, config) 9 | 10 | -------------------------------------------------------------------------------- /ext/test-babel.js: -------------------------------------------------------------------------------- 1 | 2 | import ModuleFormatter from './babel-module-loader' 3 | import * as babel from 'babel' 4 | 5 | const opts = { 6 | modules: ModuleFormatter 7 | } 8 | 9 | 10 | let code = babel.transform('import fs from "fs"', opts) 11 | console.log(code.code) 12 | 13 | -------------------------------------------------------------------------------- /test/connection.json: -------------------------------------------------------------------------------- 1 | { 2 | "control_port": 50160, 3 | "shell_port": 57503, 4 | "transport": "tcp", 5 | "signature_scheme": "hmac-sha256", 6 | "stdin_port": 52597, 7 | "hb_port": 42540, 8 | "ip": "127.0.0.1", 9 | "iopub_port": 40885, 10 | "key": "a0436f6c-1916-498b-8eb9-e81ab9368e84" 11 | } 12 | 13 | -------------------------------------------------------------------------------- /config.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = { 3 | extensions: { 4 | // clojurescript: require('./ext/clojurescript'), 5 | clojure: require('./build/ext/clojure'), 6 | clojurescript: require('./build/ext/clojurescript'), 7 | coffee: require('./build/ext/coffee'), 8 | babel: require('./build/ext/babel') 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /lib/run.js: -------------------------------------------------------------------------------- 1 | 2 | import path from 'path' 3 | import Kernel from './kernel' 4 | 5 | if (process.argv.length != 3) { 6 | console.log('Need a JSON config object') 7 | process.exit() 8 | } 9 | 10 | const config = require(path.resolve(process.argv[2])) 11 | 12 | const kernel = new Kernel(config) 13 | 14 | kernel.init(err => { 15 | if (err) { 16 | console.error("Failed to init") 17 | console.log(err) 18 | process.exit() 19 | } 20 | }) 21 | 22 | 23 | -------------------------------------------------------------------------------- /test/get-kernel-info.js: -------------------------------------------------------------------------------- 1 | 2 | export default function getKernelInfo(server, next) { 3 | server.ping({ 4 | sock: 'shell', 5 | send: 'kernel_info_request', 6 | expect: 'kernel_info_reply', 7 | }, (err, payload) => { 8 | next(null, { 9 | type: 'kernel_info_request', 10 | passed: !err && payload.content && payload.content.language, 11 | info: !err && payload.content, 12 | time: Date.now() 13 | }) 14 | }) 15 | } 16 | 17 | -------------------------------------------------------------------------------- /test/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "execute": { 3 | "Adding": { 4 | "content": {"code": "2+2"}, 5 | "events": [{ 6 | "type": "execute_result", 7 | "content": {"data": {"text/plain": "4"}} 8 | }, { 9 | "type": "status", 10 | "content": {"execution_state": "busy"} 11 | }, { 12 | "type": "status", 13 | "content": {"execution_state": "idle"} 14 | }] 15 | } 16 | }, 17 | "complete": { 18 | "pr": ["process"], 19 | "/": ["/etc", "/home"] 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /test/tbind.js: -------------------------------------------------------------------------------- 1 | 2 | import zmq from 'zmq' 3 | 4 | const r = zmq.socket('dealer') 5 | const p = zmq.socket('router') 6 | 7 | const uri = 'tcp://127.0.0.1:55432' 8 | 9 | p.bind('tcp://*:55432', err => { 10 | console.log('FaILE', err) 11 | if (err) { 12 | process.exit() 13 | } 14 | r.connect(uri) 15 | p.on('message', function () { 16 | console.log([].map.call(arguments, a => a.toString())) 17 | }) 18 | r.send(['hi', 'ho', 'cherry']) 19 | setTimeout(() => { 20 | process.exit() 21 | }, 200) 22 | 23 | }) 24 | 25 | -------------------------------------------------------------------------------- /lib/info.js: -------------------------------------------------------------------------------- 1 | export default { 2 | 'protocol_version': '5.0', 3 | 'implementation': 'nodejs', 4 | 5 | 'implementation_version': '1.0', 6 | 'language': 'javascript', 7 | 8 | 'language_info': { 9 | 'name': 'nodejs', 10 | 'version': '0.10', 11 | 'mimetype': 'text/javascript', 12 | 'file_extension': '.js', 13 | 'pygments_lexer': 'javascript', 14 | 'codemirror_mode': 'javascript', 15 | }, 16 | 'banner' : 'NodeJS For your Jupyter experience!', 17 | 'help_links': [ 18 | // {'text': str, 'url': str} 19 | ], 20 | } 21 | -------------------------------------------------------------------------------- /install.js: -------------------------------------------------------------------------------- 1 | 2 | var fs = require('fs') 3 | var path = require('path') 4 | var mkdirp = require('mkdirp') 5 | 6 | var installPath = path.join(process.env.HOME, '.ipython/kernels/nodejs') 7 | if (process.argv.length >= 3) { 8 | installPath = process.argv[2] 9 | } 10 | 11 | console.log('install', installPath) 12 | var fullPath = path.resolve(installPath) 13 | 14 | mkdirp(fullPath, function() { 15 | fs.writeFileSync(path.join(fullPath, 'kernel.json'), JSON.stringify({ 16 | argv: ['node', path.join(path.resolve(__dirname), 'build', 'run.js'), '{connection_file}'], 17 | display_name: 'NodeJS', 18 | language: 'javascript', 19 | }, null, 2)) 20 | }); 21 | -------------------------------------------------------------------------------- /ext/coffee.js: -------------------------------------------------------------------------------- 1 | 2 | export default function (ctx, args, done) { 3 | let coffee = require('coffee-script') 4 | done(null, { 5 | block: { 6 | coffee: { 7 | transform(ctx, args, code, out, done) { 8 | const opts = { bare: args.indexOf('bare') !== -1 } 9 | try { 10 | code = coffee.compile(code, opts) 11 | } catch (err) { 12 | return done(err) 13 | } 14 | if (args.indexOf('no-prompt') === -1) { 15 | console.log('coffee->\n', code) 16 | } else { 17 | console.log(code) 18 | } 19 | done(null, code) 20 | } 21 | }, 22 | }, 23 | }) 24 | } 25 | -------------------------------------------------------------------------------- /test/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # Testing an IPython Client 3 | 4 | connection.json should be the standard ipython kernel connection file format 5 | 6 | ``` 7 | { 8 | "control_port": 50160, 9 | "shell_port": 57503, 10 | "transport": "tcp", 11 | "signature_scheme": "hmac-sha256", 12 | "stdin_port": 52597, 13 | "hb_port": 42540, 14 | "ip": "127.0.0.1", 15 | "iopub_port": 40885, 16 | "key": "a0436f6c-1916-498b-8eb9-e81ab9368e84" 17 | } 18 | ``` 19 | 20 | `config.json` should contain: 21 | 22 | ``` 23 | { 24 | "execute": { 25 | "{test name}": { 26 | "payload": execute_request payload, 27 | "output": what will be sent to display_data 28 | OR 29 | "error": {ename, evalue} expected 30 | }, 31 | }, 32 | "complete": { 33 | "{code}": [] // list of completions (order invariant) 34 | } 35 | } 36 | ``` 37 | 38 | -------------------------------------------------------------------------------- /test/heartbeat.js: -------------------------------------------------------------------------------- 1 | 2 | export default function testHeartbeat(sock, errors) { 3 | let sent = null 4 | const m = data => { 5 | data = data.toString() 6 | if (data !== sent) { 7 | errors.push({ 8 | type: 'bad heartbeat', 9 | passed: data === sent, 10 | sent: sent, 11 | got: data, 12 | time: Date.now() 13 | }) 14 | } 15 | sent = null 16 | } 17 | sock.on('message', m) 18 | const hb = setInterval(() => { 19 | if (sent !== null) { 20 | errors.push({ 21 | type: 'missed heartbeat', 22 | passed: false, 23 | sent: sent, 24 | got: 'no response', 25 | time: Date.now() 26 | }) 27 | } 28 | sock.send(sent = Math.random().toString(0xf).slice(10, 40)) 29 | }, 200) 30 | return () => { 31 | sock.removeListener('message', m) 32 | clearInterval(hb) 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /ext/babel.js: -------------------------------------------------------------------------------- 1 | 2 | export default function (ctx, args, done) { 3 | let babel 4 | try { 5 | babel = require('babel') 6 | } catch (err) { 7 | return done(new Error('The package `babel` was not found. Please install')) 8 | } 9 | done(null, { 10 | block: { 11 | babel: { 12 | transform(ctx, args, code, out, done) { 13 | const opts = { optional: ["runtime"] } 14 | if (args && args.indexOf('experimental') !== -1) { 15 | opts.stage = 0 16 | } 17 | try { 18 | code = babel.transform(code, opts).code 19 | } catch (err) { 20 | return done(err) 21 | } 22 | // slice off the "use strict" 23 | code = code.split('\n').slice(1).join('\n') 24 | console.log('Babel->', code) 25 | done(null, code) 26 | } 27 | }, 28 | }, 29 | }) 30 | } 31 | 32 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM jupyter/base-notebook 2 | 3 | USER root 4 | RUN wget -O - https://deb.nodesource.com/setup_5.x | bash 5 | RUN apt-get install -y nodejs g++ make software-properties-common libzmq3-dev 6 | 7 | RUN mkdir -p $HOME/jupyter-nodejs 8 | COPY . $HOME/jupyter-nodejs 9 | RUN chown -R $NB_USER $HOME/jupyter-nodejs 10 | WORKDIR $HOME/jupyter-nodejs 11 | RUN touch /etc/ld.so.conf 12 | RUN echo "/opt/conda/lib" >> /etc/ld.so.conf 13 | 14 | # RUN add-apt-repository ppa:chris-lea/zeromq -y 15 | # RUN add-apt-repository ppa:chris-lea/libpgm -y 16 | # RUN apt-get update 17 | RUN conda install -y jupyter_console 18 | 19 | USER $NB_USER 20 | RUN mkdir -p $HOME/.ipython/kernels/nodejs/ 21 | RUN npm install 22 | RUN node install.js 23 | RUN npm run build 24 | RUN npm run build-ext 25 | WORKDIR $HOME/jupyter-nodejs/node_modules/zmq/ 26 | RUN npm run install 27 | 28 | USER root 29 | WORKDIR $HOME/jupyter-nodejs 30 | RUN ldconfig 31 | 32 | EXPOSE 8888 33 | -------------------------------------------------------------------------------- /lib/load-ext.js: -------------------------------------------------------------------------------- 1 | 2 | import config from '../config' 3 | 4 | export default function loadExt(ctx, out, args, done) { 5 | const name = args.shift() 6 | if (!config.extensions) { 7 | throw new Error(`No extensions configured (trying to load ${name}`) 8 | } 9 | if (!name) { 10 | throw new Error("No extension specified to load") 11 | } 12 | if (!config.extensions[name]) { 13 | throw new Error(`Extension ${name} not available`) 14 | } 15 | var d = require('domain').create() 16 | d.on('error', err => { 17 | console.log('async error', err) 18 | done(err) 19 | }) 20 | d.run(() => { 21 | config.extensions[name](ctx, args, (err, magics) => { 22 | if (err || !magics) return done(err) 23 | for (let name in magics.block) { 24 | ctx.magics.block[name] = magics.block[name] 25 | } 26 | for (let name in magics.line) { 27 | ctx.magics.line[name] = magics.line[name] 28 | } 29 | done() 30 | }) 31 | }) 32 | } 33 | 34 | -------------------------------------------------------------------------------- /lib/sockets.js: -------------------------------------------------------------------------------- 1 | 2 | import async from 'async' 3 | import zmq from 'zmq' 4 | 5 | export default function setupSockets(config, done) { 6 | const sockets = { 7 | control: { 8 | port: config.control_port, 9 | type: 'xrep', 10 | }, 11 | shell: { 12 | port: config.shell_port, 13 | type: 'xrep', 14 | }, 15 | stdin: { 16 | port: config.stdin_port, 17 | type: 'router', 18 | }, 19 | iopub: { 20 | port: config.iopub_port, 21 | type: 'pub', 22 | }, 23 | heartbeat: { 24 | port: config.hb_port, 25 | type: 'rep', 26 | } 27 | } 28 | const tasks = {} 29 | for (let name in sockets) { 30 | tasks[name] = setupSocket.bind(null, sockets[name], config) 31 | } 32 | async.parallel(tasks, done) 33 | } 34 | 35 | function setupSocket(config, general, done) { 36 | const sock = zmq.socket(config.type); 37 | const addr = general.transport + '://' + general.ip + ':' + config.port 38 | sock.bind(addr, err => { 39 | // console.log('sock', addr, err) 40 | done(err, sock) 41 | }) 42 | } 43 | 44 | -------------------------------------------------------------------------------- /test/sockets.js: -------------------------------------------------------------------------------- 1 | 2 | import async from 'async' 3 | import zmq from 'zmq' 4 | 5 | export default function setupSockets(config, done) { 6 | const sockets = { 7 | control: { 8 | port: config.control_port, 9 | type: 'dealer', 10 | }, 11 | shell: { 12 | port: config.shell_port, 13 | type: 'dealer', 14 | }, 15 | stdin: { 16 | port: config.stdin_port, 17 | type: 'dealer', 18 | }, 19 | iopub: { 20 | port: config.iopub_port, 21 | type: 'sub', 22 | }, 23 | heartbeat: { 24 | port: config.hb_port, 25 | type: 'req', 26 | } 27 | } 28 | const tasks = {} 29 | for (let name in sockets) { 30 | tasks[name] = setupSocket.bind(null, sockets[name], config) 31 | } 32 | async.parallel(tasks, done) 33 | } 34 | 35 | function setupSocket(config, general, done) { 36 | const sock = zmq.socket(config.type); 37 | const addr = general.transport + '://' + general.ip + ':' + config.port 38 | sock.connect(addr) 39 | if (config.type === 'sub') { 40 | sock.subscribe('') 41 | } 42 | done(null, sock) 43 | } 44 | 45 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jupyter-nodejs", 3 | "version": "2.1.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "build": "babel lib -d build", 8 | "build-ext": "babel ext -d build/ext", 9 | "test": "echo \"Error: no test specified\" && exit 1" 10 | }, 11 | "author": "Jared Forsyth", 12 | "repository": { 13 | "type": "git", 14 | "url": "http://github.com:notablemind/jupyter-nodejs.git" 15 | }, 16 | "homepage": "https://github.com/notablemind/jupyter-nodejs", 17 | "bugs": { 18 | "url": "https://github.com/notablemind/jupyter-nodejs/issues" 19 | }, 20 | "files": [ 21 | "build", 22 | "lib", 23 | "install.js", 24 | "config.js" 25 | ], 26 | "prepublish": "make", 27 | "license": "ISC", 28 | "dependencies": { 29 | "async": "^0.9.0", 30 | "babel": "^5.1.11", 31 | "babel-runtime": "^6.23.0", 32 | "bencode": "^0.7.0", 33 | "coffee-script": "^1.9.2", 34 | "mkdirp": "^0.5.1", 35 | "superagent": "^1.2.0", 36 | "zmq": "^2.15.3" 37 | }, 38 | "devDependencies": { 39 | "mkdirp": "^0.5.0" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Jared Forsyth 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # Jupyter NodeJS 2 | This is a kernel for [Jupyter](http://github.com/ipython/ipython) 3 | 4 | Get it while it's hot! or view the [example notebook](http://nbviewer.ipython.org/gist/jaredly/404a36306fdee6a1737a) 5 | 6 | ## Prereqs 7 | - IPython 3.x 8 | - node 9 | - ZeroMQ 10 | - pkg-config 11 | 12 | ## Installation 13 | ```bash 14 | git clone https://github.com/notablemind/jupyter-nodejs.git 15 | cd jupyter-nodejs 16 | mkdir -p ~/.ipython/kernels/nodejs/ 17 | npm install && node install.js 18 | npm run build 19 | npm run build-ext 20 | jupyter console --kernel nodejs 21 | ``` 22 | 23 | And viola! 24 | 25 | ![image](https://cloud.githubusercontent.com/assets/112170/7268122/a33b186c-e882-11e4-8463-be00a6c90163.png) 26 | 27 | 28 | Also, in the iPython notebook: 29 | 30 | ![image](https://cloud.githubusercontent.com/assets/112170/7268108/70cade4e-e882-11e4-95e7-8a7375b3b888.png) 31 | 32 | 33 | 34 | ## Supported features: 35 | 36 | - tab-completion (both for variables and **paths**) 37 | - error reporting 38 | - magics! The available extensions can be configured via `package/config.js` 39 | 40 | ## Installation 41 | `node install.js [install-dir]` will install the `kernel.json` file that ipython looks for. The default is for linux machines, `~/.ipython/kernels/nodejs/`. You will have to specify an install dir for Mac and Windows (see [the docs](https://ipython.org/ipython-doc/dev/development/kernels.html#kernel-specs) for info about what that should be) 42 | 43 | ## BabelJS Magic for es6+ goodness 44 | `%load_ext babel` and then 45 | 46 | ```javascript 47 | %%babel 48 | class Awesome { 49 | constructor() { 50 | console.log('yeah!') 51 | } 52 | } 53 | ``` 54 | 55 | **Hovever:** `import ...` syntax *doesn't work* because of [live bindings](https://github.com/ModuleLoader/es6-module-loader/wiki/Circular-References-&-Bindings#es6-circular-references--bindings) foo, so just use `require()` normally and all will be well. 56 | 57 | ## Clojurescript compilation via a [himera](https://github.com/fogus/himera) server 58 | 59 | `%load_ext clojurescript http://himera-emh.herokuapp.com` and then 60 | 61 | ```clojure 62 | %%clojurescript 63 | (clojurey goodness) 64 | ``` 65 | -------------------------------------------------------------------------------- /ext/clojurescript.js: -------------------------------------------------------------------------------- 1 | 2 | import http from 'http' 3 | import superagent from 'superagent' 4 | 5 | function get(url, done) { 6 | let failed = false 7 | http.get(url, res => { 8 | let data = '' 9 | res.on('data', chunk => data += chunk.toString()) 10 | res.on('end', () => { 11 | if (failed) return 12 | done(null, data) 13 | }) 14 | }).on('error', err => { 15 | failed = true 16 | console.log('err!', err) 17 | done(err) 18 | }) 19 | } 20 | 21 | function post(url, data, done) { 22 | superagent.post(url) 23 | .send(data) 24 | .set('content-type', 'application/clojure') 25 | .buffer() 26 | .end((err, res) => { 27 | done(err, eval(res.text.slice('{:js '.length, -1))) 28 | }) 29 | } 30 | 31 | function setupGlobal(url, ctx, done) { 32 | if (!url) return done(new Error( 33 | 'Clojurescript magic requires a hosted compiler')) 34 | get(url + '/js/repl.js', (err, data) => { 35 | if (err) return done(err) 36 | 37 | let g = ctx.getGlobal() 38 | g.document = { 39 | createElement: function () { 40 | return { 41 | firstChild: { 42 | nodeType: 3 43 | }, 44 | getElementsByTagName: function () { 45 | return [] 46 | }, 47 | } 48 | } 49 | } 50 | 51 | try { 52 | ctx.rawRun(data) 53 | } catch (e) { 54 | console.log('Clojurescript init fail!') 55 | console.log(e.message) 56 | console.log(e.stack) 57 | return done(e) 58 | } 59 | 60 | g.goog.require('cljs.core'); 61 | g.goog.provide('cljs.user'); 62 | g.cljs.core.set_print_fn_BANG_( 63 | val => g.display(val, 'stdout')) 64 | 65 | done() 66 | }) 67 | } 68 | 69 | function translateCode(host, code, done) { 70 | post(host + '/compile', '{:expr ' + code + '}', 71 | (err, data) => { 72 | return done(null, data) 73 | }) 74 | } 75 | 76 | export default function extension(ctx, args, done) { 77 | let host = args && args[0] 78 | setupGlobal(host, ctx, () => { 79 | done(null, {block: {clojurescript: { 80 | transform(ctx, args, code, out, done) { 81 | translateCode(host, code, done) 82 | }, 83 | rawOutput(ctx, args, value, out, done) { 84 | ctx.ctx.display(ctx.ctx.cljs.core.pr_str(value), 'text/plain') 85 | done() 86 | }, 87 | }}}) 88 | }) 89 | } 90 | 91 | -------------------------------------------------------------------------------- /lib/complete.js: -------------------------------------------------------------------------------- 1 | 2 | import fs from 'fs' 3 | import path from 'path' 4 | 5 | export default function complete(magics, glob, code, pos, done) { 6 | const options = [ 7 | completeFiles, 8 | completeScope 9 | ] 10 | function next() { 11 | if (!options.length) return done(null, {status: 'err'}) 12 | options.shift()(magics, glob, code, pos, (err, res) => { 13 | if (err) return done(err) 14 | if (res === false) return next() 15 | done(null, res) 16 | }) 17 | } 18 | next() 19 | } 20 | 21 | function completeScope(magics, glob, code, pos, done) { 22 | code = code.slice(0, pos) 23 | const chunks = code.split(/[^\w\.]/) 24 | const lastChunk = chunks[chunks.length - 1] 25 | const parts = lastChunk.split('.') 26 | const last = parts.pop().toLowerCase() 27 | const val = parts.reduce((obj, attr) => { 28 | if (!obj) return null 29 | return obj[attr] 30 | }, glob) 31 | if (!val) { 32 | return { 33 | matches: [], 34 | cursor_start: pos, 35 | cursor_end: pos, 36 | status: 'ok', 37 | } 38 | } 39 | let names = Object.getOwnPropertyNames(val) 40 | for (let name in val) { 41 | if (names.indexOf(name) === -1) 42 | names.push(name) 43 | } 44 | done(null, { 45 | matches: names.filter(name => name.toLowerCase().indexOf(last) === 0), 46 | cursor_start: pos - last.length, 47 | cursor_end: pos, 48 | status: 'ok', 49 | }) 50 | } 51 | 52 | function completeFiles(magics, glob, code, pos, done) { 53 | const line = code.slice(0, pos).split('\n').slice(-1)[0] 54 | let lastPart = line.split(' ').slice(-1)[0] 55 | if (!lastPart.match(/\.?\/[^\s]*$/)) { 56 | return done(null, false) 57 | } 58 | let ix = lastPart.indexOf('./') 59 | let abs = false 60 | if (ix === -1) { 61 | ix = lastPart.indexOf('/') 62 | abs = true 63 | } 64 | lastPart = lastPart.slice(ix) 65 | const chunks = lastPart.split('/') 66 | const lastChunk = chunks.pop() 67 | let basePath = chunks.join('/') 68 | if (abs && basePath[0] !== '/') { 69 | basePath = '/' + basePath 70 | } 71 | fs.readdir(path.resolve(basePath), (err, files) => { 72 | done(null, { 73 | matches: files ? files.filter(name => name.toLowerCase().indexOf(lastChunk) === 0).map(name => path.join(basePath, name)) : [], 74 | cursor_start: pos - lastPart.length + (abs ? 0 : 2), 75 | cursor_end: pos, 76 | status: 'ok' 77 | }) 78 | }) 79 | } 80 | 81 | -------------------------------------------------------------------------------- /lib/example.js: -------------------------------------------------------------------------------- 1 | zmq = require("zmq") 2 | fs = require("fs") 3 | 4 | var config = JSON.parse(fs.readFileSync(process.argv[2])) 5 | 6 | var connexion = "tcp://"+config.ip+":" 7 | var shell_conn = connexion+config.shell_port 8 | var pub_conn = connexion+config.iopub_port 9 | var hb_conn = connexion+config.hb_port 10 | 11 | 12 | 13 | var util = require('util'), 14 | vm = require('vm'), 15 | initSandbox = {}, 16 | context = vm.createContext(initSandbox); 17 | 18 | 19 | var hb_socket = zmq.createSocket('rep'); 20 | hb_socket.bind(hb_conn) 21 | 22 | hb_socket.on('message', 23 | function(data){ 24 | console.log("wtf ?"); 25 | hb_socket.send(data); 26 | }); 27 | 28 | var pub_socket = zmq.createSocket('pub'); 29 | pub_socket.bind(pub_conn); 30 | 31 | 32 | var reply_socket = zmq.createSocket('xrep') 33 | reply_socket.bind(shell_conn) 34 | 35 | reply_socket.on('message', 36 | function(data){ 37 | for(i in arguments){ 38 | console.log("["+i+"]: "+arguments[i].toString()) 39 | } 40 | 41 | var parent_header = JSON.parse(arguments[3].toString()); 42 | 43 | var unparsed_content = arguments[6]; 44 | if(unparsed_content != undefined ) { 45 | var content = JSON.parse(unparsed_content.toString()); 46 | } 47 | 48 | var code = content?content.code:undefined; 49 | var result 50 | if(code != undefined){ 51 | result = vm.runInContext(code , context, ''); 52 | } else { 53 | result = 'undefined' 54 | } 55 | 56 | var header_reply ={ 57 | msg_id:1, 58 | session:parent_header.session, 59 | msg_type:"execute_reply", 60 | } 61 | 62 | 63 | var ident = ""; 64 | var delim = "" 65 | var signature = "" 66 | var metadata = {} 67 | 68 | var content = JSON.stringify({ 69 | execution_count:1, 70 | data:{ 71 | "text/plain":result?result.toString():"undefined" 72 | } 73 | }) 74 | 75 | 76 | 77 | var header_pub ={ 78 | msg_id:1, 79 | session:parent_header.session, 80 | msg_type:"pyout", 81 | } 82 | 83 | pub_socket.send([ 84 | ident, 85 | delim, 86 | signature, 87 | JSON.stringify(header_pub), 88 | JSON.stringify(parent_header), 89 | JSON.stringify(metadata), 90 | content]) 91 | 92 | reply_socket.send([ 93 | ident, 94 | delim, 95 | signature, 96 | JSON.stringify(header_reply), 97 | JSON.stringify(parent_header), 98 | JSON.stringify(metadata), 99 | content 100 | ]); 101 | 102 | }) 103 | 104 | 105 | reply_socket.on('error', 106 | function(data){ 107 | console.log('error',data) 108 | }) 109 | 110 | -------------------------------------------------------------------------------- /test/kernel.js: -------------------------------------------------------------------------------- 1 | 2 | import setupSockets from './sockets' 3 | import crypto from 'crypto' 4 | 5 | import Server from './server' 6 | import getKernelInfo from './get-kernel-info' 7 | import testHeartbeat from './heartbeat' 8 | import async from 'async' 9 | 10 | function isSubset(one, larger) { 11 | if (one === larger) return true 12 | if (!one || !larger) return false 13 | if (typeof one !== typeof larger) return false 14 | if ('object' !== typeof one) return false 15 | if (one.constructor.name !== larger.constructor.name) return false 16 | if (Array.isArray(one)) { 17 | return !one.some(n => !larger.some(l => isSubset(n, l))) 18 | } 19 | for (let name in one) { 20 | if (!isSubset(one[name], larger[name])) return false 21 | } 22 | return true 23 | } 24 | 25 | export default function (connection, config) { 26 | let errors = [] 27 | setupSockets(connection, (err, sockets) => { 28 | console.log('Sockets connected: testing') 29 | const stopHeartbeat = testHeartbeat(sockets.heartbeat, errors) 30 | 31 | const server = new Server(connection, config, sockets) 32 | 33 | server.on('error', err => errors.push(err)) 34 | 35 | let tasks = [] 36 | 37 | // setTimeout is so the heartbeats can go 38 | tasks.push(next => setTimeout(() => getKernelInfo(server, next), 500)) 39 | tasks.push(next => server.ping({ 40 | sock: 'shell', 41 | send: 'history_request', 42 | expect: 'history_reply', 43 | }, (err, payload) => { 44 | next(null, { 45 | type: 'history_request', 46 | passed: !err && payload && payload.content && payload.content.history && Array.isArray(payload.content.history) 47 | }) 48 | })) 49 | 50 | tasks = tasks.concat(Object.keys(config.execute).map( 51 | name => next => server.ping({ 52 | sock: 'shell', 53 | send: 'execute_request', 54 | ios: ['display_data', 'execute_result', 'execute_input', 'error', 'status'], 55 | content: config.execute[name].content, 56 | expect: 'execute_reply', 57 | }, (err, payload, events) => { 58 | const execute = config.execute[name] 59 | let missing = [] 60 | if (!events) missing = execute.events 61 | else { 62 | execute.events.forEach(ev => { 63 | const failed = !events.some(ev2 => 64 | ev2.header.msg_type === ev.type && 65 | isSubset(ev.content, ev2.content) 66 | ) 67 | if (failed) missing.push(ev) 68 | }) 69 | } 70 | next(null, { 71 | type: 'execute', 72 | passed: !missing.length, 73 | events, 74 | missing, 75 | }) 76 | }) 77 | )) 78 | 79 | tasks = tasks.concat(Object.keys(config.complete).map( 80 | code => next => server.ping({ 81 | sock:'shell', 82 | send: 'complete_request', 83 | expect: 'complete_reply', 84 | content: {code: code, cursor_pos: code.length} 85 | }, (err, payload) => { 86 | let missing = config.complete[code].filter(name => payload.content.matches.indexOf(name) === -1) 87 | next(null, { 88 | type: 'complete', 89 | passed: !missing.length, 90 | matches: payload.content.matches, 91 | missing, 92 | }) 93 | }) 94 | )) 95 | 96 | async.series(tasks, (err, tests) => { 97 | if (err) console.log('Error from async', err) 98 | stopHeartbeat() 99 | console.log(JSON.stringify(tests.filter(t => !t.passed), null, 2)) 100 | const failed = tests.filter(t => !t.passed) 101 | console.log() 102 | console.log() 103 | if (!failed.length) { 104 | console.log(`>>>>>>> ALL ${tests.length} PASSED <<<<<<<<`) 105 | } else { 106 | console.log('!!!!!!!!!', failed.length + '/' + tests.length + ' failures !!!!!!!') 107 | } 108 | console.log(errors.length, 'errors', errors) 109 | console.log() 110 | process.exit() 111 | }) 112 | }) 113 | } 114 | 115 | -------------------------------------------------------------------------------- /test/server.js: -------------------------------------------------------------------------------- 1 | 2 | import {EventEmitter} from 'events' 3 | import crypto from 'crypto' 4 | 5 | function fixUnicode(val) { 6 | return val.replace('\ufdd0', '\\ufdd0') 7 | } 8 | 9 | const DELIM = '' 10 | 11 | function json(data) { 12 | return fixUnicode(JSON.stringify(data) || '{}') 13 | } 14 | 15 | function get_uuid() { 16 | return Math.random().toString(0x0f).slice(10, 100) 17 | } 18 | 19 | const knownSigs = { 20 | 'hmac-sha256': 'sha256' 21 | } 22 | 23 | export default class Server extends EventEmitter { 24 | constructor(connection, config, sockets) { 25 | super() 26 | this.sockets = sockets 27 | this.key = connection.key 28 | this.sig = knownSigs[connection.signature_scheme] 29 | if (!this.sig) { 30 | throw new Error(`Using a signatute scheme I don't know about: ${connection.signature_scheme}`) 31 | } 32 | for (let name in sockets) { 33 | if (name === 'heartbeat') continue 34 | sockets[name].on('message', this.recv.bind(this, name)) 35 | } 36 | } 37 | 38 | ping(config, done) { 39 | const key = config.sock + ':' + config.expect 40 | let tout = setTimeout(() => { 41 | console.log('TIMEOUT waiting for', config.expect) 42 | tout = null 43 | done(new Error('Timeout')) 44 | }, config.timeout || 1000) 45 | 46 | const header = this.send(config.sock, '', config.send, config.content, {}, {}) 47 | 48 | const events = [] 49 | config.ios && config.ios.forEach(ev => this.on('iopub:' + ev, event)) 50 | function event(payload) { 51 | if (payload.parent_header.msg_id !== header.msg_id) { 52 | return // not answering me 53 | } 54 | events.push(payload) 55 | } 56 | 57 | this.on(key, got) 58 | function got(payload) { 59 | if (!tout) return console.log('Received after timeout', config.expect) 60 | // console.log(payload, header) 61 | if (payload.parent_header.msg_id !== header.msg_id) { 62 | return // not answering me 63 | } 64 | clearTimeout(tout) 65 | this.off(key, got) 66 | setTimeout(() => { 67 | config.ios && config.ios.forEach(ev => this.off('iopub:' + ev, event)) 68 | done(null, payload, events) 69 | }, 100) 70 | } 71 | 72 | } 73 | 74 | off(evt, hl) { 75 | return this.removeListener(evt, hl) 76 | } 77 | 78 | // sock, delim, hmac, header, parent_header, metadata, content 79 | recv(sock) { 80 | const args = [].map.call(arguments, m => m.toString()).slice(1) 81 | if (sock === 'iopub') { 82 | args.shift() 83 | } 84 | const [delim, hmac, header, parent_header, metadata, content] = args 85 | const toHash = [header, parent_header, metadata, content].join('') 86 | const payload = {header, parent_header, metadata, content} 87 | for (let name in payload) { 88 | const val = payload[name] 89 | let parsed 90 | try { 91 | parsed = JSON.parse(val) 92 | } catch (err) { 93 | this.emit('error', { 94 | type: 'format', 95 | message: `${name} is supposed to be JSON, but was ${val}`, 96 | }) 97 | continue 98 | } 99 | payload[name] = parsed 100 | if (!parsed || 'object' !== typeof parsed || Array.isArray(parsed)) { 101 | this.emit('error', { 102 | type: 'format', 103 | message: `${name} is supposed to be a JSON serialized dictionary, but was ${val}` 104 | }) 105 | } 106 | } 107 | payload.delim = delim 108 | payload.hmac = hmac 109 | const hash = this.hash(toHash) 110 | if (hash !== hmac.toString()) { 111 | this.emit('error', { 112 | type: 'security', 113 | message: "Hashes didn't match", 114 | data: [hash, hmac.toString()], 115 | }) 116 | } 117 | // console.log(sock, header, payload.header.msg_type) 118 | this.emit(sock, payload) 119 | this.emit(sock + ':' + payload.header.msg_type, payload) 120 | } 121 | 122 | send(sock, id, msg_type, content, parent, metadata) { 123 | const repid = get_uuid() 124 | const header = { 125 | msg_id: repid, 126 | username: parent.username, 127 | msg_type: msg_type, 128 | session: parent.session, 129 | version: '5.0', 130 | } 131 | this._send(sock, id, header, parent, metadata, content) 132 | return header 133 | } 134 | 135 | hash(string) { 136 | const hmac = crypto.createHmac(this.sig, this.key) 137 | hmac.update(string) 138 | return hmac.digest('hex') 139 | } 140 | 141 | _send(sock, id, header, parent, metadata, content) { 142 | const toHash = [ 143 | json(header), 144 | json(parent), 145 | json(metadata || {}), 146 | json(content)] 147 | const hmac = this.hash(toHash.join('')) 148 | const data = [DELIM, hmac].concat(toHash) 149 | this.sockets[sock].send(data) 150 | } 151 | } 152 | 153 | -------------------------------------------------------------------------------- /ext/clojure.js: -------------------------------------------------------------------------------- 1 | 2 | const net = require('net') 3 | const fs = require('fs') 4 | const path = require('path') 5 | const bencode = require('bencode') 6 | const {EventEmitter} = require('events') 7 | 8 | function bocket(sock) { 9 | const em = new EventEmitter() 10 | let buffer = new Buffer('') 11 | sock.on('connect', () => em.emit('connect')) 12 | sock.on('data', data => { 13 | buffer = Buffer.concat([buffer, data]) 14 | while (buffer.length) { 15 | let res 16 | try { 17 | res = bencode.decode(buffer, 'utf8') 18 | } catch (err) { 19 | return 20 | } 21 | let used = bencode.encode(res, 'utf8').length 22 | buffer = buffer.slice(used) 23 | em.emit('data', res) 24 | } 25 | }) 26 | sock.on('error', err => em.emit('error', err)) 27 | return { 28 | on(val, fn) { 29 | return em.on(val, fn) 30 | }, 31 | off(val, fn) { 32 | return em.removeListener(val, fn) 33 | }, 34 | close() { 35 | sock.close() 36 | }, 37 | send(val) { 38 | return sock.write(bencode.encode(val)) 39 | }, 40 | _sock: sock 41 | } 42 | } 43 | 44 | class Session extends EventEmitter { 45 | constructor(port, session) { 46 | super() 47 | this.bock = bocket(net.connect({port})) 48 | this.waiting = [] 49 | this.queue = [] 50 | this.session = session || null 51 | this.bock.on('data', this.onData.bind(this)) 52 | this.bock.on('connect', () => { 53 | if (!this.session) { 54 | this.send({op: 'clone'}, data => { 55 | this.session = data[0]['new-session'] 56 | console.log(data) 57 | this.emit('connect') 58 | }) 59 | } else { 60 | this.emit('connect') 61 | } 62 | }) 63 | } 64 | 65 | send(data, done) { 66 | if (this.session) { 67 | data.session = this.session 68 | } 69 | this.waiting.push(done) 70 | this.bock.send(data) 71 | } 72 | 73 | eval(val, done) { 74 | this.send({op: 'eval', code: val}, done) 75 | } 76 | 77 | op(name, args, done) { 78 | if (arguments.length === 2) { 79 | done = args 80 | args = {} 81 | } 82 | args = args || {} 83 | args.op = name 84 | this.send(args, done) 85 | } 86 | 87 | onData(data) { 88 | if (!this.waiting.length) { 89 | return console.error('Data, came, but no one waited...', data) 90 | } 91 | if (this.waiting[0].partial) { 92 | this.waiting[0].partial(data) 93 | } 94 | this.queue.push(data) 95 | if (data.status && data.status[0] === 'done'){ 96 | if (this.waiting[0].final) { 97 | this.waiting.shift().final(this.queue) 98 | } else { 99 | this.waiting.shift()(this.queue) 100 | } 101 | this.queue = [] 102 | } 103 | } 104 | 105 | e(val) { 106 | this.eval(val, data => data.map(d => console.log(JSON.stringify(d, null, 2)))) 107 | } 108 | } 109 | 110 | export default function extension(ctx, args, done) { 111 | let port = args && parseInt(args[0]) 112 | if (!port) { 113 | return done(new Error("Port is required")) 114 | } 115 | let s 116 | try { 117 | s = new Session(port) 118 | } catch (e) { 119 | return done(e) 120 | } 121 | s.on('connect', () => { 122 | s.eval(`(do (use 'clj-info) (use 'clojure.repl) (use 'complete.core))`, data => { 123 | done(null, {block:{clojure:{ 124 | execute(ctx, args, code, out, done) { 125 | s.eval(`(do ${code})`, { 126 | partial: data => { 127 | if (data.out) { 128 | out.stream('stdout', data.out) 129 | } else if (data.value) { 130 | out.output({'text/plain': data.value}) 131 | } else if (data.err) { 132 | // out.error('Runtime error', 'err', data.err) 133 | } 134 | }, 135 | final: data => { 136 | if (data[0].status && data[0].status[0] === 'eval-error') { 137 | return done(new Error("Eval failed: " + data[1].err)) 138 | } 139 | done(null) 140 | } 141 | }) 142 | }, 143 | complete(ctx, code, pos, done) { 144 | const line = code.slice(0, pos).split('\n').pop() 145 | const chunks = line.split(/[\s()\[{}\]]/g) 146 | const last = chunks[chunks.length - 1] 147 | // console.log('Completing:', JSON.stringify([code, pos], null, 2), last, last.length) 148 | s.eval(`(map symbol (completions "${last}"))`, data => { 149 | if (data[0].value) { 150 | const res = { 151 | matches: data[0].value.slice(1, -1).split(' '), 152 | status: 'ok', 153 | cursor_start: pos - last.length, 154 | cursor_end: pos, 155 | } 156 | done(null, res) 157 | } else { 158 | console.log('Matches failed!') 159 | data.forEach(d => console.log(JSON.stringify(d, null, 2))) 160 | done(null, { 161 | status: 'err' 162 | }) 163 | } 164 | }) 165 | } 166 | }}}) 167 | }) 168 | }) 169 | } 170 | 171 | 172 | -------------------------------------------------------------------------------- /lib/kernel.js: -------------------------------------------------------------------------------- 1 | 2 | import setupSockets from './sockets' 3 | import info from './info' 4 | import crypto from 'crypto' 5 | import Context from './context' 6 | import vm from 'vm' 7 | 8 | function get_uuid() { 9 | return Math.random().toString(0x0f).slice(10, 100) 10 | } 11 | 12 | const DELIM = '' 13 | 14 | const knownSigs = { 15 | 'hmac-sha256': 'sha256' 16 | } 17 | 18 | 19 | export default class Kernel { 20 | constructor(config) { 21 | this.config = config 22 | this.ctx = new Context() 23 | this.count = 0 24 | this.key = config.key 25 | this.sig = knownSigs[config.signature_scheme] 26 | if (!this.sig) { 27 | throw new Error(`Using a signatute scheme I don't know about: ${connection.signature_scheme}`) 28 | } 29 | } 30 | 31 | init(done) { 32 | setupSockets(this.config, (err, sockets) => { 33 | if (err) return done(err) 34 | this.sockets = sockets 35 | this.bindSockets() 36 | done() 37 | }) 38 | } 39 | 40 | bindSockets() { 41 | const hb = this.sockets.heartbeat 42 | hb.on('message', data => hb.send(data)) 43 | this.sockets.shell.on('message', this.onShell.bind(this)) 44 | this.sockets.control.on('message', this.onControl.bind(this)) 45 | } 46 | 47 | onControl() { 48 | console.log('CONTROL') 49 | for(let i in arguments){ 50 | console.log("["+i+"]: "+arguments[i].toString()) 51 | } 52 | } 53 | 54 | // uuids, delim, hmac, header, parent_header, metadata, content 55 | onShell() { 56 | const strs = [].map.call(arguments, a => a.toString()) 57 | let i 58 | for (i=0; i { 128 | if (error) { 129 | console.log(error) 130 | return this.send('shell', uuids, 'complete_reply', { 131 | status: 'err' 132 | }, header) 133 | } 134 | this.send('shell', uuids, 'complete_reply', completions, header) 135 | }) 136 | } 137 | 138 | sendStream(header, stream, text) { 139 | this.ioPub('stream', { 140 | name: stream, 141 | text: text, 142 | }, header) 143 | } 144 | 145 | sendOutput(header, data, metadata) { 146 | this.ioPub('display_data', { 147 | source: 'nodejs', 148 | data: data, 149 | metadata: metadata || {} 150 | }, header) 151 | } 152 | 153 | sendError(header, name, message, stack) { 154 | this.ioPub('error', { 155 | ename: name, 156 | evalue: message, 157 | trackeback: [stack], 158 | }, header) 159 | } 160 | 161 | executeRequest(uuids, header, metadata, content) { 162 | this.ioPub('status', {execution_state: 'busy'}, header) 163 | this.count += 1 164 | this.ioPub('execute_input', { 165 | code: content.code, 166 | execution_count: this.count, 167 | }, header) 168 | this.ctx.execute(content.code, { 169 | stream: this.sendStream.bind(this, header), 170 | output: this.sendOutput.bind(this, header), 171 | error: this.sendError.bind(this, header), 172 | }, (error, result) => { 173 | if (error) { 174 | this.ioPub('error', { 175 | ename: 'Javascript Error', 176 | evalue: error.message, 177 | traceback: [error.stack], 178 | }, header) 179 | this.send('shell', uuids, 'execute_reply', { 180 | status: 'error', 181 | ename: 'Runtime error', 182 | evalue: error.message, 183 | traceback: [error.stack], 184 | execution_count: this.count, 185 | user_expressions: {}, 186 | payload: [] 187 | }, header, { 188 | status: 'error', 189 | }) 190 | } else { 191 | if (result) { 192 | this.ioPub('execute_result', { 193 | execution_count: this.count, 194 | data: result, 195 | }, header) 196 | } 197 | this.send('shell', uuids, 'execute_reply', { 198 | status: 'ok', 199 | execution_count: this.count, 200 | user_expressions: {}, 201 | payload: [] 202 | }, header, { 203 | status: 'ok', 204 | }) 205 | } 206 | this.ioPub('status', {execution_state: 'idle'}, header) 207 | }) 208 | } 209 | 210 | send(sock, id, msg_type, content, parent, metadata) { 211 | const repid = get_uuid() 212 | this._send(sock, id, { 213 | msg_id: repid, 214 | username: parent.username, 215 | msg_type: msg_type, 216 | session: parent.session, 217 | version: '5.0', 218 | }, parent, metadata, content) 219 | } 220 | 221 | hash(string) { 222 | const hmac = crypto.createHmac(this.sig, this.key) 223 | hmac.update(string) 224 | const res = hmac.digest('hex') 225 | return res 226 | } 227 | 228 | _send(sock, ids, header, parent, metadata, content) { 229 | const toHash = [ 230 | json(header), 231 | json(parent), 232 | json(metadata || {}), 233 | json(content)] 234 | const hmac = this.hash(toHash.join('')) 235 | const data = ids.concat([DELIM, hmac]).concat(toHash) 236 | this.sockets[sock].send(data) 237 | } 238 | } 239 | 240 | function fixUnicode(val) { 241 | return val.replace('\ufdd0', '\\ufdd0') 242 | } 243 | 244 | function json(data) { 245 | return fixUnicode(JSON.stringify(data)) 246 | } 247 | -------------------------------------------------------------------------------- /lib/context.js: -------------------------------------------------------------------------------- 1 | 2 | // import Contextify from 'contextify' 3 | 4 | import config from '../config' 5 | import getCompletions from './complete' 6 | import loadExt from './load-ext' 7 | import async from 'async' 8 | import {spawn} from 'child_process' 9 | import fs from 'fs' 10 | import path from 'path' 11 | import vm from 'vm' 12 | 13 | export default class Context { 14 | constructor(wired) { 15 | this.wired = wired 16 | this.ctx = { 17 | require(name) { 18 | const full = path.resolve(path.join('node_modules', name)) 19 | if (fs.existsSync(full)) { 20 | return require(full) 21 | } 22 | 23 | const start = name.substring(0, 2) 24 | 25 | if (start === './' || start === '..') { 26 | name = path.resolve(name) 27 | } 28 | 29 | return require(name) 30 | }, 31 | itreed: this, 32 | setTimeout, 33 | setInterval, 34 | process, 35 | Buffer, 36 | String, 37 | Number, 38 | } 39 | vm.createContext(this.ctx) 40 | this.magics = { 41 | block: {}, 42 | line: { 43 | load_ext: loadExt, 44 | lsmagic: (ctx, out, args, done) => { 45 | console.log('Available line magics:') 46 | console.log() 47 | Object.keys(this.magics.line).forEach(key => { 48 | console.log('%' + key) 49 | }) 50 | done() 51 | }, 52 | die: function () { 53 | fail 54 | } 55 | }, 56 | } 57 | this.dead = false 58 | } 59 | 60 | shutdown() { 61 | delete this.ctx 62 | // this.ctx.dispose() 63 | this.dead = true 64 | } 65 | 66 | lineMagic(line, out, done) { 67 | const parts = line.trim().split(/\s+/g) 68 | if (!this.magics.line[parts[0]]) { 69 | return done(new Error(`Unknown line magic: ${parts[0]}`)) 70 | } 71 | this.magics.line[parts[0]](this, out, parts.slice(1), done) 72 | } 73 | 74 | magicComplete(line, code, pos, done) { 75 | const parts = line.trim().split(/\s+/g) 76 | if (!this.magics.block[parts[0]]) { 77 | return false 78 | } 79 | const magic = this.magics.block[parts[0]] 80 | const args = parts.slice(1) 81 | if (!magic.complete) return false 82 | var d = require('domain').create() 83 | d.on('error', err => { 84 | console.log('async error', err) 85 | console.log('async error', err.stack) 86 | done(err) 87 | }) 88 | d.run(() => { 89 | magic.complete(this, code, pos, done) 90 | }) 91 | return true 92 | } 93 | 94 | blockMagic(line, block, out, done) { 95 | const parts = line.trim().split(/\s+/g) 96 | if (!this.magics.block[parts[0]]) { 97 | return done(new Error(`Unknown magic: ${parts[0]}`)) 98 | } 99 | const magic = this.magics.block[parts[0]] 100 | const args = parts.slice(1) 101 | if ('function' === typeof magic) { 102 | return magic(this, args, block, out, done) 103 | } else if (magic.execute) { 104 | return magic.execute(this, args, block, out, done) 105 | } else if (magic.transform) { 106 | return magic.transform(this, args, block, out, (err, code) => { 107 | if (err) return done(err) 108 | if (magic.rawOutput) { 109 | let result 110 | try { 111 | result = this.rawRun(code) 112 | } catch (e) { 113 | return done(e) 114 | } 115 | return magic.rawOutput(this, args, result, out, done) 116 | } 117 | return this.rawEvaluate(code, out, done) 118 | }) 119 | } 120 | 121 | done(new Error(`Unknown magic format for ${parts[0]}`)) 122 | } 123 | 124 | rawRun(code) { 125 | return vm.runInContext(code, this.ctx) 126 | } 127 | 128 | getGlobal() { 129 | return this.ctx 130 | } 131 | 132 | rawEvaluate(code, out, done) { 133 | let result 134 | var d = require('domain').create() 135 | d.on('error', err => { 136 | console.log('async error', err) 137 | out.error('Async Error', err.message, err.stack) 138 | }) 139 | d.run(() => { 140 | try { 141 | result = this.rawRun(code) 142 | } catch (error) { 143 | return done(error) 144 | } 145 | // TODO allow custom formatters 146 | return done(null, result !== undefined ? format(result) : null) 147 | }) 148 | } 149 | 150 | complete(code, pos, variant, done) { 151 | let off = 0 152 | if (code.match(/^%%/)) { 153 | const lines = code.split('\n') 154 | const first = lines.shift() 155 | variant = first.slice(2) 156 | code = lines.join('\n') 157 | off = first.length + 1 158 | } 159 | if (variant) { 160 | if (this.magicComplete(variant, code, pos - off, (err, res) => { 161 | if (res) { 162 | res.cursor_start += off 163 | res.cursor_end += off 164 | } 165 | done(err, res) 166 | })) { 167 | return 168 | } 169 | } 170 | // TODO allow extension to the completion logic? e.g. for clojurescript 171 | try { 172 | return getCompletions(this.magics, this.getGlobal(), code, pos, done) 173 | } catch (error) { 174 | done(error) 175 | } 176 | } 177 | 178 | outToContext(out) { 179 | this.ctx.console = { 180 | log(...vals) { 181 | out.stream('stdout', toLogString(vals)) 182 | }, 183 | error(...vals) { 184 | out.stream('stderr', toLogString(vals)) 185 | }, 186 | warn(...vals) { 187 | out.stream('stderr', toLogString(vals)) 188 | }, 189 | } 190 | 191 | this.ctx.display = function (val, mime, meta) { 192 | if (mime === 'stdout' || mime === 'stderr') { 193 | return out.stream(mime, val) 194 | } 195 | if (mime) return out.output({[mime]: val}, meta) 196 | out.output(format(val)) 197 | } 198 | } 199 | 200 | shell(code, out, done) { 201 | const proc = spawn('sh', ['-x', '-c', code]) 202 | proc.stdout.on('data', data => out.stream('stdout', data.toString())) 203 | proc.stderr.on('data', data => out.stream('stderr', data.toString())) 204 | proc.on('close', code => { 205 | done(code !== 0 ? new Error(`Exit code: ${code}`) : null) 206 | }) 207 | } 208 | 209 | cd(code, out, done) { 210 | code = code.replace(/~/g, process.env.HOME) 211 | try { 212 | process.chdir(code) 213 | } catch (e) { 214 | return done(new Error(`No such dir: ${code}`)) 215 | } 216 | out.stream('stdout', 'cd to ' + code) 217 | done() 218 | } 219 | 220 | checkSpecial(code, out, done) { 221 | if (code.match(/^%%/)) { 222 | code = code.split('\n').slice(1).join('\n') 223 | } 224 | 225 | code = code.trim() 226 | 227 | if (code.match(/!cd /)) { // !cd really should be cd so we persist the changes 228 | code = code.slice(1) 229 | } 230 | 231 | if (code[0] === '!' && code.indexOf('\n') === -1) { 232 | this.shell(code.slice(1), out, done) 233 | return true 234 | } 235 | 236 | if (code.indexOf('cd ') === 0 && code.indexOf('\n') === -1) { 237 | this.cd(code.slice('cd '.length), out, done) 238 | return true 239 | } 240 | } 241 | 242 | execute(code, out, done) { 243 | if (this.dead) throw new Error('Kernel has been shutdown. Cannot execute') 244 | this.outToContext(out) 245 | 246 | if (this.checkSpecial(code, out, done)) return 247 | 248 | if (code.match(/^%%/)) { 249 | const lines = code.split('\n') 250 | const first = lines.shift() 251 | try { 252 | return this.blockMagic(first.slice(2), lines.join('\n'), out, done) 253 | } catch (error) { 254 | return done(error) 255 | } 256 | } 257 | 258 | const lineMagics = [] 259 | code = code.replace(/^%[^\n]+/m, res => { 260 | console.log('>', res) 261 | lineMagics.push(res) 262 | return '' 263 | }) 264 | 265 | if (!lineMagics.length) { 266 | return this.rawEvaluate(code, out, done) 267 | } 268 | 269 | const lineTasks = lineMagics.map(line => next => 270 | this.lineMagic(line.slice(1), out, next)) 271 | 272 | // console.log('series', lineTasks.length) 273 | async.series(lineTasks, err => { 274 | if (err) return done(err) 275 | // console.log('done', err) 276 | return this.rawEvaluate(code, out, done) 277 | }) 278 | } 279 | } 280 | 281 | function toLogString(vals) { 282 | return vals.map(val => { 283 | if ('string' === typeof val) return val 284 | return toSafeString(val) 285 | }).join(' ') + '\n' 286 | } 287 | 288 | function toSafeString(val) { 289 | let pre = '' 290 | if ('object' === typeof val && val && val.constructor && val.constructor.name !== 'Object') { 291 | pre = '[' + val.constructor.name + '] ' 292 | } 293 | if ('function' === typeof val) { 294 | return val + '' 295 | } 296 | try { 297 | return pre + JSON.stringify(val) 298 | } catch (e) {} 299 | try { 300 | return pre + '' + val 301 | } catch (e) {} 302 | return pre + '[value cannot be rendered]' 303 | } 304 | 305 | function format(val) { 306 | return { 307 | 'text/plain': toSafeString(val) 308 | } 309 | } 310 | -------------------------------------------------------------------------------- /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.0.9" 7 | resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135" 8 | 9 | acorn@^3.1.0: 10 | version "3.3.0" 11 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" 12 | 13 | align-text@^0.1.1, align-text@^0.1.3: 14 | version "0.1.4" 15 | resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" 16 | dependencies: 17 | kind-of "^3.0.2" 18 | longest "^1.0.1" 19 | repeat-string "^1.5.2" 20 | 21 | alter@~0.2.0: 22 | version "0.2.0" 23 | resolved "https://registry.yarnpkg.com/alter/-/alter-0.2.0.tgz#c7588808617572034aae62480af26b1d4d1cb3cd" 24 | dependencies: 25 | stable "~0.1.3" 26 | 27 | amdefine@>=0.0.4: 28 | version "1.0.1" 29 | resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" 30 | 31 | ansi-regex@^2.0.0: 32 | version "2.1.1" 33 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 34 | 35 | ansi-styles@^2.2.1: 36 | version "2.2.1" 37 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" 38 | 39 | anymatch@^1.3.0: 40 | version "1.3.0" 41 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507" 42 | dependencies: 43 | arrify "^1.0.0" 44 | micromatch "^2.1.5" 45 | 46 | aproba@^1.0.3: 47 | version "1.0.4" 48 | resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.0.4.tgz#2713680775e7614c8ba186c065d4e2e52d1072c0" 49 | 50 | are-we-there-yet@~1.1.2: 51 | version "1.1.2" 52 | resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.2.tgz#80e470e95a084794fe1899262c5667c6e88de1b3" 53 | dependencies: 54 | delegates "^1.0.0" 55 | readable-stream "^2.0.0 || ^1.1.13" 56 | 57 | arr-diff@^2.0.0: 58 | version "2.0.0" 59 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" 60 | dependencies: 61 | arr-flatten "^1.0.1" 62 | 63 | arr-flatten@^1.0.1: 64 | version "1.0.1" 65 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.0.1.tgz#e5ffe54d45e19f32f216e91eb99c8ce892bb604b" 66 | 67 | array-unique@^0.2.1: 68 | version "0.2.1" 69 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" 70 | 71 | arrify@^1.0.0: 72 | version "1.0.1" 73 | resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" 74 | 75 | asn1@~0.2.3: 76 | version "0.2.3" 77 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" 78 | 79 | assert-plus@^0.2.0: 80 | version "0.2.0" 81 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" 82 | 83 | assert-plus@^1.0.0: 84 | version "1.0.0" 85 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 86 | 87 | ast-traverse@~0.1.1: 88 | version "0.1.1" 89 | resolved "https://registry.yarnpkg.com/ast-traverse/-/ast-traverse-0.1.1.tgz#69cf2b8386f19dcda1bb1e05d68fe359d8897de6" 90 | 91 | ast-types@0.8.12: 92 | version "0.8.12" 93 | resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.8.12.tgz#a0d90e4351bb887716c83fd637ebf818af4adfcc" 94 | 95 | ast-types@0.9.4: 96 | version "0.9.4" 97 | resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.9.4.tgz#410d1f81890aeb8e0a38621558ba5869ae53c91b" 98 | 99 | async-each@^1.0.0: 100 | version "1.0.1" 101 | resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" 102 | 103 | async@^0.9.0: 104 | version "0.9.2" 105 | resolved "https://registry.yarnpkg.com/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d" 106 | 107 | async@^1.4.0: 108 | version "1.5.2" 109 | resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" 110 | 111 | asynckit@^0.4.0: 112 | version "0.4.0" 113 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 114 | 115 | aws-sign2@~0.6.0: 116 | version "0.6.0" 117 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" 118 | 119 | aws4@^1.2.1: 120 | version "1.5.0" 121 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.5.0.tgz#0a29ffb79c31c9e712eeb087e8e7a64b4a56d755" 122 | 123 | babel-core@^5.6.21: 124 | version "5.8.38" 125 | resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-5.8.38.tgz#1fcaee79d7e61b750b00b8e54f6dfc9d0af86558" 126 | dependencies: 127 | babel-plugin-constant-folding "^1.0.1" 128 | babel-plugin-dead-code-elimination "^1.0.2" 129 | babel-plugin-eval "^1.0.1" 130 | babel-plugin-inline-environment-variables "^1.0.1" 131 | babel-plugin-jscript "^1.0.4" 132 | babel-plugin-member-expression-literals "^1.0.1" 133 | babel-plugin-property-literals "^1.0.1" 134 | babel-plugin-proto-to-assign "^1.0.3" 135 | babel-plugin-react-constant-elements "^1.0.3" 136 | babel-plugin-react-display-name "^1.0.3" 137 | babel-plugin-remove-console "^1.0.1" 138 | babel-plugin-remove-debugger "^1.0.1" 139 | babel-plugin-runtime "^1.0.7" 140 | babel-plugin-undeclared-variables-check "^1.0.2" 141 | babel-plugin-undefined-to-void "^1.1.6" 142 | babylon "^5.8.38" 143 | bluebird "^2.9.33" 144 | chalk "^1.0.0" 145 | convert-source-map "^1.1.0" 146 | core-js "^1.0.0" 147 | debug "^2.1.1" 148 | detect-indent "^3.0.0" 149 | esutils "^2.0.0" 150 | fs-readdir-recursive "^0.1.0" 151 | globals "^6.4.0" 152 | home-or-tmp "^1.0.0" 153 | is-integer "^1.0.4" 154 | js-tokens "1.0.1" 155 | json5 "^0.4.0" 156 | lodash "^3.10.0" 157 | minimatch "^2.0.3" 158 | output-file-sync "^1.1.0" 159 | path-exists "^1.0.0" 160 | path-is-absolute "^1.0.0" 161 | private "^0.1.6" 162 | regenerator "0.8.40" 163 | regexpu "^1.3.0" 164 | repeating "^1.1.2" 165 | resolve "^1.1.6" 166 | shebang-regex "^1.0.0" 167 | slash "^1.0.0" 168 | source-map "^0.5.0" 169 | source-map-support "^0.2.10" 170 | to-fast-properties "^1.0.0" 171 | trim-right "^1.0.0" 172 | try-resolve "^1.0.0" 173 | 174 | babel-plugin-constant-folding@^1.0.1: 175 | version "1.0.1" 176 | resolved "https://registry.yarnpkg.com/babel-plugin-constant-folding/-/babel-plugin-constant-folding-1.0.1.tgz#8361d364c98e449c3692bdba51eff0844290aa8e" 177 | 178 | babel-plugin-dead-code-elimination@^1.0.2: 179 | version "1.0.2" 180 | resolved "https://registry.yarnpkg.com/babel-plugin-dead-code-elimination/-/babel-plugin-dead-code-elimination-1.0.2.tgz#5f7c451274dcd7cccdbfbb3e0b85dd28121f0f65" 181 | 182 | babel-plugin-eval@^1.0.1: 183 | version "1.0.1" 184 | resolved "https://registry.yarnpkg.com/babel-plugin-eval/-/babel-plugin-eval-1.0.1.tgz#a2faed25ce6be69ade4bfec263f70169195950da" 185 | 186 | babel-plugin-inline-environment-variables@^1.0.1: 187 | version "1.0.1" 188 | resolved "https://registry.yarnpkg.com/babel-plugin-inline-environment-variables/-/babel-plugin-inline-environment-variables-1.0.1.tgz#1f58ce91207ad6a826a8bf645fafe68ff5fe3ffe" 189 | 190 | babel-plugin-jscript@^1.0.4: 191 | version "1.0.4" 192 | resolved "https://registry.yarnpkg.com/babel-plugin-jscript/-/babel-plugin-jscript-1.0.4.tgz#8f342c38276e87a47d5fa0a8bd3d5eb6ccad8fcc" 193 | 194 | babel-plugin-member-expression-literals@^1.0.1: 195 | version "1.0.1" 196 | resolved "https://registry.yarnpkg.com/babel-plugin-member-expression-literals/-/babel-plugin-member-expression-literals-1.0.1.tgz#cc5edb0faa8dc927170e74d6d1c02440021624d3" 197 | 198 | babel-plugin-property-literals@^1.0.1: 199 | version "1.0.1" 200 | resolved "https://registry.yarnpkg.com/babel-plugin-property-literals/-/babel-plugin-property-literals-1.0.1.tgz#0252301900192980b1c118efea48ce93aab83336" 201 | 202 | babel-plugin-proto-to-assign@^1.0.3: 203 | version "1.0.4" 204 | resolved "https://registry.yarnpkg.com/babel-plugin-proto-to-assign/-/babel-plugin-proto-to-assign-1.0.4.tgz#c49e7afd02f577bc4da05ea2df002250cf7cd123" 205 | dependencies: 206 | lodash "^3.9.3" 207 | 208 | babel-plugin-react-constant-elements@^1.0.3: 209 | version "1.0.3" 210 | resolved "https://registry.yarnpkg.com/babel-plugin-react-constant-elements/-/babel-plugin-react-constant-elements-1.0.3.tgz#946736e8378429cbc349dcff62f51c143b34e35a" 211 | 212 | babel-plugin-react-display-name@^1.0.3: 213 | version "1.0.3" 214 | resolved "https://registry.yarnpkg.com/babel-plugin-react-display-name/-/babel-plugin-react-display-name-1.0.3.tgz#754fe38926e8424a4e7b15ab6ea6139dee0514fc" 215 | 216 | babel-plugin-remove-console@^1.0.1: 217 | version "1.0.1" 218 | resolved "https://registry.yarnpkg.com/babel-plugin-remove-console/-/babel-plugin-remove-console-1.0.1.tgz#d8f24556c3a05005d42aaaafd27787f53ff013a7" 219 | 220 | babel-plugin-remove-debugger@^1.0.1: 221 | version "1.0.1" 222 | resolved "https://registry.yarnpkg.com/babel-plugin-remove-debugger/-/babel-plugin-remove-debugger-1.0.1.tgz#fd2ea3cd61a428ad1f3b9c89882ff4293e8c14c7" 223 | 224 | babel-plugin-runtime@^1.0.7: 225 | version "1.0.7" 226 | resolved "https://registry.yarnpkg.com/babel-plugin-runtime/-/babel-plugin-runtime-1.0.7.tgz#bf7c7d966dd56ecd5c17fa1cb253c9acb7e54aaf" 227 | 228 | babel-plugin-undeclared-variables-check@^1.0.2: 229 | version "1.0.2" 230 | resolved "https://registry.yarnpkg.com/babel-plugin-undeclared-variables-check/-/babel-plugin-undeclared-variables-check-1.0.2.tgz#5cf1aa539d813ff64e99641290af620965f65dee" 231 | dependencies: 232 | leven "^1.0.2" 233 | 234 | babel-plugin-undefined-to-void@^1.1.6: 235 | version "1.1.6" 236 | resolved "https://registry.yarnpkg.com/babel-plugin-undefined-to-void/-/babel-plugin-undefined-to-void-1.1.6.tgz#7f578ef8b78dfae6003385d8417a61eda06e2f81" 237 | 238 | babel-runtime@^6.23.0: 239 | version "6.23.0" 240 | resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.23.0.tgz#0a9489f144de70efb3ce4300accdb329e2fc543b" 241 | dependencies: 242 | core-js "^2.4.0" 243 | regenerator-runtime "^0.10.0" 244 | 245 | babel@^5.1.11: 246 | version "5.8.38" 247 | resolved "https://registry.yarnpkg.com/babel/-/babel-5.8.38.tgz#dfb087c22894917c576fb67ce9cf328d458629fb" 248 | dependencies: 249 | babel-core "^5.6.21" 250 | chokidar "^1.0.0" 251 | commander "^2.6.0" 252 | convert-source-map "^1.1.0" 253 | fs-readdir-recursive "^0.1.0" 254 | glob "^5.0.5" 255 | lodash "^3.2.0" 256 | output-file-sync "^1.1.0" 257 | path-exists "^1.0.0" 258 | path-is-absolute "^1.0.0" 259 | slash "^1.0.0" 260 | source-map "^0.5.0" 261 | 262 | babylon@^5.8.38: 263 | version "5.8.38" 264 | resolved "https://registry.yarnpkg.com/babylon/-/babylon-5.8.38.tgz#ec9b120b11bf6ccd4173a18bf217e60b79859ffd" 265 | 266 | balanced-match@^0.4.1: 267 | version "0.4.2" 268 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" 269 | 270 | bcrypt-pbkdf@^1.0.0: 271 | version "1.0.0" 272 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.0.tgz#3ca76b85241c7170bf7d9703e7b9aa74630040d4" 273 | dependencies: 274 | tweetnacl "^0.14.3" 275 | 276 | bencode@^0.7.0: 277 | version "0.7.0" 278 | resolved "https://registry.yarnpkg.com/bencode/-/bencode-0.7.0.tgz#811ed647c0118945e41bb4bbbdea9a2c78a17083" 279 | 280 | binary-extensions@^1.0.0: 281 | version "1.8.0" 282 | resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.8.0.tgz#48ec8d16df4377eae5fa5884682480af4d95c774" 283 | 284 | bindings@~1.2.1: 285 | version "1.2.1" 286 | resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.2.1.tgz#14ad6113812d2d37d72e67b4cacb4bb726505f11" 287 | 288 | block-stream@*: 289 | version "0.0.9" 290 | resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" 291 | dependencies: 292 | inherits "~2.0.0" 293 | 294 | bluebird@^2.9.33: 295 | version "2.11.0" 296 | resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-2.11.0.tgz#534b9033c022c9579c56ba3b3e5a5caafbb650e1" 297 | 298 | boom@2.x.x: 299 | version "2.10.1" 300 | resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" 301 | dependencies: 302 | hoek "2.x.x" 303 | 304 | brace-expansion@^1.0.0: 305 | version "1.1.6" 306 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9" 307 | dependencies: 308 | balanced-match "^0.4.1" 309 | concat-map "0.0.1" 310 | 311 | braces@^1.8.2: 312 | version "1.8.5" 313 | resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" 314 | dependencies: 315 | expand-range "^1.8.1" 316 | preserve "^0.2.0" 317 | repeat-element "^1.1.2" 318 | 319 | breakable@~1.0.0: 320 | version "1.0.0" 321 | resolved "https://registry.yarnpkg.com/breakable/-/breakable-1.0.0.tgz#784a797915a38ead27bad456b5572cb4bbaa78c1" 322 | 323 | buffer-shims@^1.0.0: 324 | version "1.0.0" 325 | resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" 326 | 327 | camelcase@^1.2.1: 328 | version "1.2.1" 329 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" 330 | 331 | caseless@~0.11.0: 332 | version "0.11.0" 333 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" 334 | 335 | center-align@^0.1.1: 336 | version "0.1.3" 337 | resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" 338 | dependencies: 339 | align-text "^0.1.3" 340 | lazy-cache "^1.0.3" 341 | 342 | chalk@^1.0.0, chalk@^1.1.1: 343 | version "1.1.3" 344 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" 345 | dependencies: 346 | ansi-styles "^2.2.1" 347 | escape-string-regexp "^1.0.2" 348 | has-ansi "^2.0.0" 349 | strip-ansi "^3.0.0" 350 | supports-color "^2.0.0" 351 | 352 | chokidar@^1.0.0: 353 | version "1.6.1" 354 | resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.6.1.tgz#2f4447ab5e96e50fb3d789fd90d4c72e0e4c70c2" 355 | dependencies: 356 | anymatch "^1.3.0" 357 | async-each "^1.0.0" 358 | glob-parent "^2.0.0" 359 | inherits "^2.0.1" 360 | is-binary-path "^1.0.0" 361 | is-glob "^2.0.0" 362 | path-is-absolute "^1.0.0" 363 | readdirp "^2.0.0" 364 | optionalDependencies: 365 | fsevents "^1.0.0" 366 | 367 | cliui@^2.1.0: 368 | version "2.1.0" 369 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" 370 | dependencies: 371 | center-align "^0.1.1" 372 | right-align "^0.1.1" 373 | wordwrap "0.0.2" 374 | 375 | code-point-at@^1.0.0: 376 | version "1.1.0" 377 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 378 | 379 | coffee-script@^1.9.2: 380 | version "1.12.3" 381 | resolved "https://registry.yarnpkg.com/coffee-script/-/coffee-script-1.12.3.tgz#de5f4b1b934a4e9f915c57acd7ad323f68f715db" 382 | 383 | combined-stream@^1.0.5, combined-stream@~1.0.5: 384 | version "1.0.5" 385 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" 386 | dependencies: 387 | delayed-stream "~1.0.0" 388 | 389 | commander@^2.5.0, commander@^2.6.0, commander@^2.9.0: 390 | version "2.9.0" 391 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" 392 | dependencies: 393 | graceful-readlink ">= 1.0.0" 394 | 395 | commoner@~0.10.3: 396 | version "0.10.8" 397 | resolved "https://registry.yarnpkg.com/commoner/-/commoner-0.10.8.tgz#34fc3672cd24393e8bb47e70caa0293811f4f2c5" 398 | dependencies: 399 | commander "^2.5.0" 400 | detective "^4.3.1" 401 | glob "^5.0.15" 402 | graceful-fs "^4.1.2" 403 | iconv-lite "^0.4.5" 404 | mkdirp "^0.5.0" 405 | private "^0.1.6" 406 | q "^1.1.2" 407 | recast "^0.11.17" 408 | 409 | component-emitter@~1.2.0: 410 | version "1.2.1" 411 | resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" 412 | 413 | concat-map@0.0.1: 414 | version "0.0.1" 415 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 416 | 417 | console-control-strings@^1.0.0, console-control-strings@~1.1.0: 418 | version "1.1.0" 419 | resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" 420 | 421 | convert-source-map@^1.1.0: 422 | version "1.3.0" 423 | resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.3.0.tgz#e9f3e9c6e2728efc2676696a70eb382f73106a67" 424 | 425 | cookiejar@2.0.6: 426 | version "2.0.6" 427 | resolved "https://registry.yarnpkg.com/cookiejar/-/cookiejar-2.0.6.tgz#0abf356ad00d1c5a219d88d44518046dd026acfe" 428 | 429 | core-js@^1.0.0: 430 | version "1.2.7" 431 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" 432 | 433 | core-js@^2.4.0: 434 | version "2.4.1" 435 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.4.1.tgz#4de911e667b0eae9124e34254b53aea6fc618d3e" 436 | 437 | core-util-is@~1.0.0: 438 | version "1.0.2" 439 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 440 | 441 | cryptiles@2.x.x: 442 | version "2.0.5" 443 | resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" 444 | dependencies: 445 | boom "2.x.x" 446 | 447 | dashdash@^1.12.0: 448 | version "1.14.1" 449 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 450 | dependencies: 451 | assert-plus "^1.0.0" 452 | 453 | debug@2, debug@^2.1.1: 454 | version "2.6.0" 455 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.0.tgz#bc596bcabe7617f11d9fa15361eded5608b8499b" 456 | dependencies: 457 | ms "0.7.2" 458 | 459 | debug@~2.2.0: 460 | version "2.2.0" 461 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da" 462 | dependencies: 463 | ms "0.7.1" 464 | 465 | decamelize@^1.0.0: 466 | version "1.2.0" 467 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" 468 | 469 | deep-extend@~0.4.0: 470 | version "0.4.1" 471 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.1.tgz#efe4113d08085f4e6f9687759810f807469e2253" 472 | 473 | defined@^1.0.0: 474 | version "1.0.0" 475 | resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" 476 | 477 | defs@~1.1.0: 478 | version "1.1.1" 479 | resolved "https://registry.yarnpkg.com/defs/-/defs-1.1.1.tgz#b22609f2c7a11ba7a3db116805c139b1caffa9d2" 480 | dependencies: 481 | alter "~0.2.0" 482 | ast-traverse "~0.1.1" 483 | breakable "~1.0.0" 484 | esprima-fb "~15001.1001.0-dev-harmony-fb" 485 | simple-fmt "~0.1.0" 486 | simple-is "~0.2.0" 487 | stringmap "~0.2.2" 488 | stringset "~0.2.1" 489 | tryor "~0.1.2" 490 | yargs "~3.27.0" 491 | 492 | delayed-stream@~1.0.0: 493 | version "1.0.0" 494 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 495 | 496 | delegates@^1.0.0: 497 | version "1.0.0" 498 | resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" 499 | 500 | detect-indent@^3.0.0: 501 | version "3.0.1" 502 | resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-3.0.1.tgz#9dc5e5ddbceef8325764b9451b02bc6d54084f75" 503 | dependencies: 504 | get-stdin "^4.0.1" 505 | minimist "^1.1.0" 506 | repeating "^1.1.0" 507 | 508 | detective@^4.3.1: 509 | version "4.3.2" 510 | resolved "https://registry.yarnpkg.com/detective/-/detective-4.3.2.tgz#77697e2e7947ac3fe7c8e26a6d6f115235afa91c" 511 | dependencies: 512 | acorn "^3.1.0" 513 | defined "^1.0.0" 514 | 515 | ecc-jsbn@~0.1.1: 516 | version "0.1.1" 517 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" 518 | dependencies: 519 | jsbn "~0.1.0" 520 | 521 | escape-string-regexp@^1.0.2: 522 | version "1.0.5" 523 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 524 | 525 | esprima-fb@~15001.1001.0-dev-harmony-fb: 526 | version "15001.1001.0-dev-harmony-fb" 527 | resolved "https://registry.yarnpkg.com/esprima-fb/-/esprima-fb-15001.1001.0-dev-harmony-fb.tgz#43beb57ec26e8cf237d3dd8b33e42533577f2659" 528 | 529 | esprima@^2.6.0: 530 | version "2.7.3" 531 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" 532 | 533 | esprima@~3.1.0: 534 | version "3.1.3" 535 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" 536 | 537 | esutils@^2.0.0: 538 | version "2.0.2" 539 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 540 | 541 | expand-brackets@^0.1.4: 542 | version "0.1.5" 543 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" 544 | dependencies: 545 | is-posix-bracket "^0.1.0" 546 | 547 | expand-range@^1.8.1: 548 | version "1.8.2" 549 | resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" 550 | dependencies: 551 | fill-range "^2.1.0" 552 | 553 | extend@3.0.0, extend@~3.0.0: 554 | version "3.0.0" 555 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4" 556 | 557 | extglob@^0.3.1: 558 | version "0.3.2" 559 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" 560 | dependencies: 561 | is-extglob "^1.0.0" 562 | 563 | extsprintf@1.0.2: 564 | version "1.0.2" 565 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550" 566 | 567 | filename-regex@^2.0.0: 568 | version "2.0.0" 569 | resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.0.tgz#996e3e80479b98b9897f15a8a58b3d084e926775" 570 | 571 | fill-range@^2.1.0: 572 | version "2.2.3" 573 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" 574 | dependencies: 575 | is-number "^2.1.0" 576 | isobject "^2.0.0" 577 | randomatic "^1.1.3" 578 | repeat-element "^1.1.2" 579 | repeat-string "^1.5.2" 580 | 581 | for-in@^0.1.5: 582 | version "0.1.6" 583 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.6.tgz#c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8" 584 | 585 | for-own@^0.1.4: 586 | version "0.1.4" 587 | resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.4.tgz#0149b41a39088c7515f51ebe1c1386d45f935072" 588 | dependencies: 589 | for-in "^0.1.5" 590 | 591 | forever-agent@~0.6.1: 592 | version "0.6.1" 593 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 594 | 595 | form-data@1.0.0-rc3: 596 | version "1.0.0-rc3" 597 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-1.0.0-rc3.tgz#d35bc62e7fbc2937ae78f948aaa0d38d90607577" 598 | dependencies: 599 | async "^1.4.0" 600 | combined-stream "^1.0.5" 601 | mime-types "^2.1.3" 602 | 603 | form-data@~2.1.1: 604 | version "2.1.2" 605 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.2.tgz#89c3534008b97eada4cbb157d58f6f5df025eae4" 606 | dependencies: 607 | asynckit "^0.4.0" 608 | combined-stream "^1.0.5" 609 | mime-types "^2.1.12" 610 | 611 | formidable@~1.0.14: 612 | version "1.0.17" 613 | resolved "https://registry.yarnpkg.com/formidable/-/formidable-1.0.17.tgz#ef5491490f9433b705faa77249c99029ae348559" 614 | 615 | fs-readdir-recursive@^0.1.0: 616 | version "0.1.2" 617 | resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-0.1.2.tgz#315b4fb8c1ca5b8c47defef319d073dad3568059" 618 | 619 | fs.realpath@^1.0.0: 620 | version "1.0.0" 621 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 622 | 623 | fsevents@^1.0.0: 624 | version "1.0.17" 625 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.0.17.tgz#8537f3f12272678765b4fd6528c0f1f66f8f4558" 626 | dependencies: 627 | nan "^2.3.0" 628 | node-pre-gyp "^0.6.29" 629 | 630 | fstream-ignore@~1.0.5: 631 | version "1.0.5" 632 | resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" 633 | dependencies: 634 | fstream "^1.0.0" 635 | inherits "2" 636 | minimatch "^3.0.0" 637 | 638 | fstream@^1.0.0, fstream@^1.0.2, fstream@~1.0.10: 639 | version "1.0.10" 640 | resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.10.tgz#604e8a92fe26ffd9f6fae30399d4984e1ab22822" 641 | dependencies: 642 | graceful-fs "^4.1.2" 643 | inherits "~2.0.0" 644 | mkdirp ">=0.5 0" 645 | rimraf "2" 646 | 647 | gauge@~2.7.1: 648 | version "2.7.2" 649 | resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.2.tgz#15cecc31b02d05345a5d6b0e171cdb3ad2307774" 650 | dependencies: 651 | aproba "^1.0.3" 652 | console-control-strings "^1.0.0" 653 | has-unicode "^2.0.0" 654 | object-assign "^4.1.0" 655 | signal-exit "^3.0.0" 656 | string-width "^1.0.1" 657 | strip-ansi "^3.0.1" 658 | supports-color "^0.2.0" 659 | wide-align "^1.1.0" 660 | 661 | generate-function@^2.0.0: 662 | version "2.0.0" 663 | resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" 664 | 665 | generate-object-property@^1.1.0: 666 | version "1.2.0" 667 | resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" 668 | dependencies: 669 | is-property "^1.0.0" 670 | 671 | get-stdin@^4.0.1: 672 | version "4.0.1" 673 | resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" 674 | 675 | getpass@^0.1.1: 676 | version "0.1.6" 677 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.6.tgz#283ffd9fc1256840875311c1b60e8c40187110e6" 678 | dependencies: 679 | assert-plus "^1.0.0" 680 | 681 | glob-base@^0.3.0: 682 | version "0.3.0" 683 | resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" 684 | dependencies: 685 | glob-parent "^2.0.0" 686 | is-glob "^2.0.0" 687 | 688 | glob-parent@^2.0.0: 689 | version "2.0.0" 690 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" 691 | dependencies: 692 | is-glob "^2.0.0" 693 | 694 | glob@^5.0.15, glob@^5.0.5: 695 | version "5.0.15" 696 | resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" 697 | dependencies: 698 | inflight "^1.0.4" 699 | inherits "2" 700 | minimatch "2 || 3" 701 | once "^1.3.0" 702 | path-is-absolute "^1.0.0" 703 | 704 | glob@^7.0.5: 705 | version "7.1.1" 706 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" 707 | dependencies: 708 | fs.realpath "^1.0.0" 709 | inflight "^1.0.4" 710 | inherits "2" 711 | minimatch "^3.0.2" 712 | once "^1.3.0" 713 | path-is-absolute "^1.0.0" 714 | 715 | globals@^6.4.0: 716 | version "6.4.1" 717 | resolved "https://registry.yarnpkg.com/globals/-/globals-6.4.1.tgz#8498032b3b6d1cc81eebc5f79690d8fe29fabf4f" 718 | 719 | graceful-fs@^4.1.2, graceful-fs@^4.1.4: 720 | version "4.1.11" 721 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" 722 | 723 | "graceful-readlink@>= 1.0.0": 724 | version "1.0.1" 725 | resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" 726 | 727 | har-validator@~2.0.6: 728 | version "2.0.6" 729 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" 730 | dependencies: 731 | chalk "^1.1.1" 732 | commander "^2.9.0" 733 | is-my-json-valid "^2.12.4" 734 | pinkie-promise "^2.0.0" 735 | 736 | has-ansi@^2.0.0: 737 | version "2.0.0" 738 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" 739 | dependencies: 740 | ansi-regex "^2.0.0" 741 | 742 | has-unicode@^2.0.0: 743 | version "2.0.1" 744 | resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" 745 | 746 | hawk@~3.1.3: 747 | version "3.1.3" 748 | resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" 749 | dependencies: 750 | boom "2.x.x" 751 | cryptiles "2.x.x" 752 | hoek "2.x.x" 753 | sntp "1.x.x" 754 | 755 | hoek@2.x.x: 756 | version "2.16.3" 757 | resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" 758 | 759 | home-or-tmp@^1.0.0: 760 | version "1.0.0" 761 | resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-1.0.0.tgz#4b9f1e40800c3e50c6c27f781676afcce71f3985" 762 | dependencies: 763 | os-tmpdir "^1.0.1" 764 | user-home "^1.1.1" 765 | 766 | http-signature@~1.1.0: 767 | version "1.1.1" 768 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" 769 | dependencies: 770 | assert-plus "^0.2.0" 771 | jsprim "^1.2.2" 772 | sshpk "^1.7.0" 773 | 774 | iconv-lite@^0.4.5: 775 | version "0.4.15" 776 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.15.tgz#fe265a218ac6a57cfe854927e9d04c19825eddeb" 777 | 778 | inflight@^1.0.4: 779 | version "1.0.6" 780 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 781 | dependencies: 782 | once "^1.3.0" 783 | wrappy "1" 784 | 785 | inherits@2, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.1: 786 | version "2.0.3" 787 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 788 | 789 | ini@~1.3.0: 790 | version "1.3.4" 791 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" 792 | 793 | invert-kv@^1.0.0: 794 | version "1.0.0" 795 | resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" 796 | 797 | is-binary-path@^1.0.0: 798 | version "1.0.1" 799 | resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" 800 | dependencies: 801 | binary-extensions "^1.0.0" 802 | 803 | is-buffer@^1.0.2: 804 | version "1.1.4" 805 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.4.tgz#cfc86ccd5dc5a52fa80489111c6920c457e2d98b" 806 | 807 | is-dotfile@^1.0.0: 808 | version "1.0.2" 809 | resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.2.tgz#2c132383f39199f8edc268ca01b9b007d205cc4d" 810 | 811 | is-equal-shallow@^0.1.3: 812 | version "0.1.3" 813 | resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" 814 | dependencies: 815 | is-primitive "^2.0.0" 816 | 817 | is-extendable@^0.1.1: 818 | version "0.1.1" 819 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" 820 | 821 | is-extglob@^1.0.0: 822 | version "1.0.0" 823 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" 824 | 825 | is-finite@^1.0.0: 826 | version "1.0.2" 827 | resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" 828 | dependencies: 829 | number-is-nan "^1.0.0" 830 | 831 | is-fullwidth-code-point@^1.0.0: 832 | version "1.0.0" 833 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 834 | dependencies: 835 | number-is-nan "^1.0.0" 836 | 837 | is-glob@^2.0.0, is-glob@^2.0.1: 838 | version "2.0.1" 839 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" 840 | dependencies: 841 | is-extglob "^1.0.0" 842 | 843 | is-integer@^1.0.4: 844 | version "1.0.6" 845 | resolved "https://registry.yarnpkg.com/is-integer/-/is-integer-1.0.6.tgz#5273819fada880d123e1ac00a938e7172dd8d95e" 846 | dependencies: 847 | is-finite "^1.0.0" 848 | 849 | is-my-json-valid@^2.12.4: 850 | version "2.15.0" 851 | resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.15.0.tgz#936edda3ca3c211fd98f3b2d3e08da43f7b2915b" 852 | dependencies: 853 | generate-function "^2.0.0" 854 | generate-object-property "^1.1.0" 855 | jsonpointer "^4.0.0" 856 | xtend "^4.0.0" 857 | 858 | is-number@^2.0.2, is-number@^2.1.0: 859 | version "2.1.0" 860 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" 861 | dependencies: 862 | kind-of "^3.0.2" 863 | 864 | is-posix-bracket@^0.1.0: 865 | version "0.1.1" 866 | resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" 867 | 868 | is-primitive@^2.0.0: 869 | version "2.0.0" 870 | resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" 871 | 872 | is-property@^1.0.0: 873 | version "1.0.2" 874 | resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" 875 | 876 | is-typedarray@~1.0.0: 877 | version "1.0.0" 878 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 879 | 880 | isarray@0.0.1: 881 | version "0.0.1" 882 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" 883 | 884 | isarray@1.0.0, isarray@~1.0.0: 885 | version "1.0.0" 886 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 887 | 888 | isobject@^2.0.0: 889 | version "2.1.0" 890 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" 891 | dependencies: 892 | isarray "1.0.0" 893 | 894 | isstream@~0.1.2: 895 | version "0.1.2" 896 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 897 | 898 | jodid25519@^1.0.0: 899 | version "1.0.2" 900 | resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967" 901 | dependencies: 902 | jsbn "~0.1.0" 903 | 904 | js-tokens@1.0.1: 905 | version "1.0.1" 906 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-1.0.1.tgz#cc435a5c8b94ad15acb7983140fc80182c89aeae" 907 | 908 | jsbn@~0.1.0: 909 | version "0.1.0" 910 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.0.tgz#650987da0dd74f4ebf5a11377a2aa2d273e97dfd" 911 | 912 | jsesc@~0.5.0: 913 | version "0.5.0" 914 | resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" 915 | 916 | json-schema@0.2.3: 917 | version "0.2.3" 918 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 919 | 920 | json-stringify-safe@~5.0.1: 921 | version "5.0.1" 922 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 923 | 924 | json5@^0.4.0: 925 | version "0.4.0" 926 | resolved "https://registry.yarnpkg.com/json5/-/json5-0.4.0.tgz#054352e4c4c80c86c0923877d449de176a732c8d" 927 | 928 | jsonpointer@^4.0.0: 929 | version "4.0.1" 930 | resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" 931 | 932 | jsprim@^1.2.2: 933 | version "1.3.1" 934 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.3.1.tgz#2a7256f70412a29ee3670aaca625994c4dcff252" 935 | dependencies: 936 | extsprintf "1.0.2" 937 | json-schema "0.2.3" 938 | verror "1.3.6" 939 | 940 | kind-of@^3.0.2: 941 | version "3.1.0" 942 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.1.0.tgz#475d698a5e49ff5e53d14e3e732429dc8bf4cf47" 943 | dependencies: 944 | is-buffer "^1.0.2" 945 | 946 | lazy-cache@^1.0.3: 947 | version "1.0.4" 948 | resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" 949 | 950 | lcid@^1.0.0: 951 | version "1.0.0" 952 | resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" 953 | dependencies: 954 | invert-kv "^1.0.0" 955 | 956 | leven@^1.0.2: 957 | version "1.0.2" 958 | resolved "https://registry.yarnpkg.com/leven/-/leven-1.0.2.tgz#9144b6eebca5f1d0680169f1a6770dcea60b75c3" 959 | 960 | lodash@^3.10.0, lodash@^3.2.0, lodash@^3.9.3: 961 | version "3.10.1" 962 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6" 963 | 964 | longest@^1.0.1: 965 | version "1.0.1" 966 | resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" 967 | 968 | methods@~1.1.1: 969 | version "1.1.2" 970 | resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" 971 | 972 | micromatch@^2.1.5: 973 | version "2.3.11" 974 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" 975 | dependencies: 976 | arr-diff "^2.0.0" 977 | array-unique "^0.2.1" 978 | braces "^1.8.2" 979 | expand-brackets "^0.1.4" 980 | extglob "^0.3.1" 981 | filename-regex "^2.0.0" 982 | is-extglob "^1.0.0" 983 | is-glob "^2.0.1" 984 | kind-of "^3.0.2" 985 | normalize-path "^2.0.1" 986 | object.omit "^2.0.0" 987 | parse-glob "^3.0.4" 988 | regex-cache "^0.4.2" 989 | 990 | mime-db@~1.26.0: 991 | version "1.26.0" 992 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.26.0.tgz#eaffcd0e4fc6935cf8134da246e2e6c35305adff" 993 | 994 | mime-types@^2.1.12, mime-types@^2.1.3, mime-types@~2.1.7: 995 | version "2.1.14" 996 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.14.tgz#f7ef7d97583fcaf3b7d282b6f8b5679dab1e94ee" 997 | dependencies: 998 | mime-db "~1.26.0" 999 | 1000 | mime@1.3.4: 1001 | version "1.3.4" 1002 | resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53" 1003 | 1004 | "minimatch@2 || 3", minimatch@^2.0.3: 1005 | version "2.0.10" 1006 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-2.0.10.tgz#8d087c39c6b38c001b97fca7ce6d0e1e80afbac7" 1007 | dependencies: 1008 | brace-expansion "^1.0.0" 1009 | 1010 | minimatch@^3.0.0, minimatch@^3.0.2: 1011 | version "3.0.3" 1012 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" 1013 | dependencies: 1014 | brace-expansion "^1.0.0" 1015 | 1016 | minimist@0.0.8: 1017 | version "0.0.8" 1018 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 1019 | 1020 | minimist@^1.1.0, minimist@^1.2.0: 1021 | version "1.2.0" 1022 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" 1023 | 1024 | "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1: 1025 | version "0.5.1" 1026 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 1027 | dependencies: 1028 | minimist "0.0.8" 1029 | 1030 | ms@0.7.1: 1031 | version "0.7.1" 1032 | resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098" 1033 | 1034 | ms@0.7.2: 1035 | version "0.7.2" 1036 | resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" 1037 | 1038 | nan@^2.3.0, nan@~2.3.0: 1039 | version "2.3.5" 1040 | resolved "https://registry.yarnpkg.com/nan/-/nan-2.3.5.tgz#822a0dc266290ce4cd3a12282ca3e7e364668a08" 1041 | 1042 | node-pre-gyp@^0.6.29: 1043 | version "0.6.32" 1044 | resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.32.tgz#fc452b376e7319b3d255f5f34853ef6fd8fe1fd5" 1045 | dependencies: 1046 | mkdirp "~0.5.1" 1047 | nopt "~3.0.6" 1048 | npmlog "^4.0.1" 1049 | rc "~1.1.6" 1050 | request "^2.79.0" 1051 | rimraf "~2.5.4" 1052 | semver "~5.3.0" 1053 | tar "~2.2.1" 1054 | tar-pack "~3.3.0" 1055 | 1056 | nopt@~3.0.6: 1057 | version "3.0.6" 1058 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" 1059 | dependencies: 1060 | abbrev "1" 1061 | 1062 | normalize-path@^2.0.1: 1063 | version "2.0.1" 1064 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.0.1.tgz#47886ac1662760d4261b7d979d241709d3ce3f7a" 1065 | 1066 | npmlog@^4.0.1: 1067 | version "4.0.2" 1068 | resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.0.2.tgz#d03950e0e78ce1527ba26d2a7592e9348ac3e75f" 1069 | dependencies: 1070 | are-we-there-yet "~1.1.2" 1071 | console-control-strings "~1.1.0" 1072 | gauge "~2.7.1" 1073 | set-blocking "~2.0.0" 1074 | 1075 | number-is-nan@^1.0.0: 1076 | version "1.0.1" 1077 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 1078 | 1079 | oauth-sign@~0.8.1: 1080 | version "0.8.2" 1081 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" 1082 | 1083 | object-assign@^4.1.0: 1084 | version "4.1.1" 1085 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 1086 | 1087 | object.omit@^2.0.0: 1088 | version "2.0.1" 1089 | resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" 1090 | dependencies: 1091 | for-own "^0.1.4" 1092 | is-extendable "^0.1.1" 1093 | 1094 | once@^1.3.0: 1095 | version "1.4.0" 1096 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1097 | dependencies: 1098 | wrappy "1" 1099 | 1100 | once@~1.3.3: 1101 | version "1.3.3" 1102 | resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20" 1103 | dependencies: 1104 | wrappy "1" 1105 | 1106 | os-locale@^1.4.0: 1107 | version "1.4.0" 1108 | resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" 1109 | dependencies: 1110 | lcid "^1.0.0" 1111 | 1112 | os-tmpdir@^1.0.1: 1113 | version "1.0.2" 1114 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 1115 | 1116 | output-file-sync@^1.1.0: 1117 | version "1.1.2" 1118 | resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-1.1.2.tgz#d0a33eefe61a205facb90092e826598d5245ce76" 1119 | dependencies: 1120 | graceful-fs "^4.1.4" 1121 | mkdirp "^0.5.1" 1122 | object-assign "^4.1.0" 1123 | 1124 | parse-glob@^3.0.4: 1125 | version "3.0.4" 1126 | resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" 1127 | dependencies: 1128 | glob-base "^0.3.0" 1129 | is-dotfile "^1.0.0" 1130 | is-extglob "^1.0.0" 1131 | is-glob "^2.0.0" 1132 | 1133 | path-exists@^1.0.0: 1134 | version "1.0.0" 1135 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-1.0.0.tgz#d5a8998eb71ef37a74c34eb0d9eba6e878eea081" 1136 | 1137 | path-is-absolute@^1.0.0: 1138 | version "1.0.1" 1139 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 1140 | 1141 | pinkie-promise@^2.0.0: 1142 | version "2.0.1" 1143 | resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" 1144 | dependencies: 1145 | pinkie "^2.0.0" 1146 | 1147 | pinkie@^2.0.0: 1148 | version "2.0.4" 1149 | resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" 1150 | 1151 | preserve@^0.2.0: 1152 | version "0.2.0" 1153 | resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" 1154 | 1155 | private@^0.1.6, private@~0.1.5: 1156 | version "0.1.6" 1157 | resolved "https://registry.yarnpkg.com/private/-/private-0.1.6.tgz#55c6a976d0f9bafb9924851350fe47b9b5fbb7c1" 1158 | 1159 | process-nextick-args@~1.0.6: 1160 | version "1.0.7" 1161 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" 1162 | 1163 | punycode@^1.4.1: 1164 | version "1.4.1" 1165 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 1166 | 1167 | q@^1.1.2: 1168 | version "1.4.1" 1169 | resolved "https://registry.yarnpkg.com/q/-/q-1.4.1.tgz#55705bcd93c5f3673530c2c2cbc0c2b3addc286e" 1170 | 1171 | qs@2.3.3: 1172 | version "2.3.3" 1173 | resolved "https://registry.yarnpkg.com/qs/-/qs-2.3.3.tgz#e9e85adbe75da0bbe4c8e0476a086290f863b404" 1174 | 1175 | qs@~6.3.0: 1176 | version "6.3.0" 1177 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.0.tgz#f403b264f23bc01228c74131b407f18d5ea5d442" 1178 | 1179 | randomatic@^1.1.3: 1180 | version "1.1.6" 1181 | resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb" 1182 | dependencies: 1183 | is-number "^2.0.2" 1184 | kind-of "^3.0.2" 1185 | 1186 | rc@~1.1.6: 1187 | version "1.1.6" 1188 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.1.6.tgz#43651b76b6ae53b5c802f1151fa3fc3b059969c9" 1189 | dependencies: 1190 | deep-extend "~0.4.0" 1191 | ini "~1.3.0" 1192 | minimist "^1.2.0" 1193 | strip-json-comments "~1.0.4" 1194 | 1195 | readable-stream@1.0.27-1: 1196 | version "1.0.27-1" 1197 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.27-1.tgz#6b67983c20357cefd07f0165001a16d710d91078" 1198 | dependencies: 1199 | core-util-is "~1.0.0" 1200 | inherits "~2.0.1" 1201 | isarray "0.0.1" 1202 | string_decoder "~0.10.x" 1203 | 1204 | "readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.2: 1205 | version "2.2.2" 1206 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.2.tgz#a9e6fec3c7dda85f8bb1b3ba7028604556fc825e" 1207 | dependencies: 1208 | buffer-shims "^1.0.0" 1209 | core-util-is "~1.0.0" 1210 | inherits "~2.0.1" 1211 | isarray "~1.0.0" 1212 | process-nextick-args "~1.0.6" 1213 | string_decoder "~0.10.x" 1214 | util-deprecate "~1.0.1" 1215 | 1216 | readable-stream@~2.1.4: 1217 | version "2.1.5" 1218 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.1.5.tgz#66fa8b720e1438b364681f2ad1a63c618448c9d0" 1219 | dependencies: 1220 | buffer-shims "^1.0.0" 1221 | core-util-is "~1.0.0" 1222 | inherits "~2.0.1" 1223 | isarray "~1.0.0" 1224 | process-nextick-args "~1.0.6" 1225 | string_decoder "~0.10.x" 1226 | util-deprecate "~1.0.1" 1227 | 1228 | readdirp@^2.0.0: 1229 | version "2.1.0" 1230 | resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" 1231 | dependencies: 1232 | graceful-fs "^4.1.2" 1233 | minimatch "^3.0.2" 1234 | readable-stream "^2.0.2" 1235 | set-immediate-shim "^1.0.1" 1236 | 1237 | recast@0.10.33, recast@^0.10.10: 1238 | version "0.10.33" 1239 | resolved "https://registry.yarnpkg.com/recast/-/recast-0.10.33.tgz#942808f7aa016f1fa7142c461d7e5704aaa8d697" 1240 | dependencies: 1241 | ast-types "0.8.12" 1242 | esprima-fb "~15001.1001.0-dev-harmony-fb" 1243 | private "~0.1.5" 1244 | source-map "~0.5.0" 1245 | 1246 | recast@^0.11.17: 1247 | version "0.11.20" 1248 | resolved "https://registry.yarnpkg.com/recast/-/recast-0.11.20.tgz#2cb9bec269c03b36d0598118a936cd0a293ca3f3" 1249 | dependencies: 1250 | ast-types "0.9.4" 1251 | esprima "~3.1.0" 1252 | private "~0.1.5" 1253 | source-map "~0.5.0" 1254 | 1255 | reduce-component@1.0.1: 1256 | version "1.0.1" 1257 | resolved "https://registry.yarnpkg.com/reduce-component/-/reduce-component-1.0.1.tgz#e0c93542c574521bea13df0f9488ed82ab77c5da" 1258 | 1259 | regenerate@^1.2.1: 1260 | version "1.3.2" 1261 | resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.2.tgz#d1941c67bad437e1be76433add5b385f95b19260" 1262 | 1263 | regenerator-runtime@^0.10.0: 1264 | version "0.10.3" 1265 | resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.3.tgz#8c4367a904b51ea62a908ac310bf99ff90a82a3e" 1266 | 1267 | regenerator@0.8.40: 1268 | version "0.8.40" 1269 | resolved "https://registry.yarnpkg.com/regenerator/-/regenerator-0.8.40.tgz#a0e457c58ebdbae575c9f8cd75127e93756435d8" 1270 | dependencies: 1271 | commoner "~0.10.3" 1272 | defs "~1.1.0" 1273 | esprima-fb "~15001.1001.0-dev-harmony-fb" 1274 | private "~0.1.5" 1275 | recast "0.10.33" 1276 | through "~2.3.8" 1277 | 1278 | regex-cache@^0.4.2: 1279 | version "0.4.3" 1280 | resolved "http://registry.npmjs.org/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145" 1281 | dependencies: 1282 | is-equal-shallow "^0.1.3" 1283 | is-primitive "^2.0.0" 1284 | 1285 | regexpu@^1.3.0: 1286 | version "1.3.0" 1287 | resolved "https://registry.yarnpkg.com/regexpu/-/regexpu-1.3.0.tgz#e534dc991a9e5846050c98de6d7dd4a55c9ea16d" 1288 | dependencies: 1289 | esprima "^2.6.0" 1290 | recast "^0.10.10" 1291 | regenerate "^1.2.1" 1292 | regjsgen "^0.2.0" 1293 | regjsparser "^0.1.4" 1294 | 1295 | regjsgen@^0.2.0: 1296 | version "0.2.0" 1297 | resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" 1298 | 1299 | regjsparser@^0.1.4: 1300 | version "0.1.5" 1301 | resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" 1302 | dependencies: 1303 | jsesc "~0.5.0" 1304 | 1305 | repeat-element@^1.1.2: 1306 | version "1.1.2" 1307 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" 1308 | 1309 | repeat-string@^1.5.2: 1310 | version "1.6.1" 1311 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" 1312 | 1313 | repeating@^1.1.0, repeating@^1.1.2: 1314 | version "1.1.3" 1315 | resolved "https://registry.yarnpkg.com/repeating/-/repeating-1.1.3.tgz#3d4114218877537494f97f77f9785fab810fa4ac" 1316 | dependencies: 1317 | is-finite "^1.0.0" 1318 | 1319 | request@^2.79.0: 1320 | version "2.79.0" 1321 | resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de" 1322 | dependencies: 1323 | aws-sign2 "~0.6.0" 1324 | aws4 "^1.2.1" 1325 | caseless "~0.11.0" 1326 | combined-stream "~1.0.5" 1327 | extend "~3.0.0" 1328 | forever-agent "~0.6.1" 1329 | form-data "~2.1.1" 1330 | har-validator "~2.0.6" 1331 | hawk "~3.1.3" 1332 | http-signature "~1.1.0" 1333 | is-typedarray "~1.0.0" 1334 | isstream "~0.1.2" 1335 | json-stringify-safe "~5.0.1" 1336 | mime-types "~2.1.7" 1337 | oauth-sign "~0.8.1" 1338 | qs "~6.3.0" 1339 | stringstream "~0.0.4" 1340 | tough-cookie "~2.3.0" 1341 | tunnel-agent "~0.4.1" 1342 | uuid "^3.0.0" 1343 | 1344 | resolve@^1.1.6: 1345 | version "1.2.0" 1346 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.2.0.tgz#9589c3f2f6149d1417a40becc1663db6ec6bc26c" 1347 | 1348 | right-align@^0.1.1: 1349 | version "0.1.3" 1350 | resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" 1351 | dependencies: 1352 | align-text "^0.1.1" 1353 | 1354 | rimraf@2, rimraf@~2.5.1, rimraf@~2.5.4: 1355 | version "2.5.4" 1356 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.5.4.tgz#96800093cbf1a0c86bd95b4625467535c29dfa04" 1357 | dependencies: 1358 | glob "^7.0.5" 1359 | 1360 | semver@~5.3.0: 1361 | version "5.3.0" 1362 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" 1363 | 1364 | set-blocking@~2.0.0: 1365 | version "2.0.0" 1366 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 1367 | 1368 | set-immediate-shim@^1.0.1: 1369 | version "1.0.1" 1370 | resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" 1371 | 1372 | shebang-regex@^1.0.0: 1373 | version "1.0.0" 1374 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" 1375 | 1376 | signal-exit@^3.0.0: 1377 | version "3.0.2" 1378 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 1379 | 1380 | simple-fmt@~0.1.0: 1381 | version "0.1.0" 1382 | resolved "https://registry.yarnpkg.com/simple-fmt/-/simple-fmt-0.1.0.tgz#191bf566a59e6530482cb25ab53b4a8dc85c3a6b" 1383 | 1384 | simple-is@~0.2.0: 1385 | version "0.2.0" 1386 | resolved "https://registry.yarnpkg.com/simple-is/-/simple-is-0.2.0.tgz#2abb75aade39deb5cc815ce10e6191164850baf0" 1387 | 1388 | slash@^1.0.0: 1389 | version "1.0.0" 1390 | resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" 1391 | 1392 | sntp@1.x.x: 1393 | version "1.0.9" 1394 | resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" 1395 | dependencies: 1396 | hoek "2.x.x" 1397 | 1398 | source-map-support@^0.2.10: 1399 | version "0.2.10" 1400 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.2.10.tgz#ea5a3900a1c1cb25096a0ae8cc5c2b4b10ded3dc" 1401 | dependencies: 1402 | source-map "0.1.32" 1403 | 1404 | source-map@0.1.32: 1405 | version "0.1.32" 1406 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.32.tgz#c8b6c167797ba4740a8ea33252162ff08591b266" 1407 | dependencies: 1408 | amdefine ">=0.0.4" 1409 | 1410 | source-map@^0.5.0, source-map@~0.5.0: 1411 | version "0.5.6" 1412 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" 1413 | 1414 | sshpk@^1.7.0: 1415 | version "1.10.2" 1416 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.10.2.tgz#d5a804ce22695515638e798dbe23273de070a5fa" 1417 | dependencies: 1418 | asn1 "~0.2.3" 1419 | assert-plus "^1.0.0" 1420 | dashdash "^1.12.0" 1421 | getpass "^0.1.1" 1422 | optionalDependencies: 1423 | bcrypt-pbkdf "^1.0.0" 1424 | ecc-jsbn "~0.1.1" 1425 | jodid25519 "^1.0.0" 1426 | jsbn "~0.1.0" 1427 | tweetnacl "~0.14.0" 1428 | 1429 | stable@~0.1.3: 1430 | version "0.1.5" 1431 | resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.5.tgz#08232f60c732e9890784b5bed0734f8b32a887b9" 1432 | 1433 | string-width@^1.0.1: 1434 | version "1.0.2" 1435 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 1436 | dependencies: 1437 | code-point-at "^1.0.0" 1438 | is-fullwidth-code-point "^1.0.0" 1439 | strip-ansi "^3.0.0" 1440 | 1441 | string_decoder@~0.10.x: 1442 | version "0.10.31" 1443 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" 1444 | 1445 | stringmap@~0.2.2: 1446 | version "0.2.2" 1447 | resolved "https://registry.yarnpkg.com/stringmap/-/stringmap-0.2.2.tgz#556c137b258f942b8776f5b2ef582aa069d7d1b1" 1448 | 1449 | stringset@~0.2.1: 1450 | version "0.2.1" 1451 | resolved "https://registry.yarnpkg.com/stringset/-/stringset-0.2.1.tgz#ef259c4e349344377fcd1c913dd2e848c9c042b5" 1452 | 1453 | stringstream@~0.0.4: 1454 | version "0.0.5" 1455 | resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" 1456 | 1457 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 1458 | version "3.0.1" 1459 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 1460 | dependencies: 1461 | ansi-regex "^2.0.0" 1462 | 1463 | strip-json-comments@~1.0.4: 1464 | version "1.0.4" 1465 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-1.0.4.tgz#1e15fbcac97d3ee99bf2d73b4c656b082bbafb91" 1466 | 1467 | superagent@^1.2.0: 1468 | version "1.8.5" 1469 | resolved "https://registry.yarnpkg.com/superagent/-/superagent-1.8.5.tgz#1c0ddc3af30e80eb84ebc05cb2122da8fe940b55" 1470 | dependencies: 1471 | component-emitter "~1.2.0" 1472 | cookiejar "2.0.6" 1473 | debug "2" 1474 | extend "3.0.0" 1475 | form-data "1.0.0-rc3" 1476 | formidable "~1.0.14" 1477 | methods "~1.1.1" 1478 | mime "1.3.4" 1479 | qs "2.3.3" 1480 | readable-stream "1.0.27-1" 1481 | reduce-component "1.0.1" 1482 | 1483 | supports-color@^0.2.0: 1484 | version "0.2.0" 1485 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a" 1486 | 1487 | supports-color@^2.0.0: 1488 | version "2.0.0" 1489 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" 1490 | 1491 | tar-pack@~3.3.0: 1492 | version "3.3.0" 1493 | resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.3.0.tgz#30931816418f55afc4d21775afdd6720cee45dae" 1494 | dependencies: 1495 | debug "~2.2.0" 1496 | fstream "~1.0.10" 1497 | fstream-ignore "~1.0.5" 1498 | once "~1.3.3" 1499 | readable-stream "~2.1.4" 1500 | rimraf "~2.5.1" 1501 | tar "~2.2.1" 1502 | uid-number "~0.0.6" 1503 | 1504 | tar@~2.2.1: 1505 | version "2.2.1" 1506 | resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" 1507 | dependencies: 1508 | block-stream "*" 1509 | fstream "^1.0.2" 1510 | inherits "2" 1511 | 1512 | through@~2.3.8: 1513 | version "2.3.8" 1514 | resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" 1515 | 1516 | to-fast-properties@^1.0.0: 1517 | version "1.0.2" 1518 | resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.2.tgz#f3f5c0c3ba7299a7ef99427e44633257ade43320" 1519 | 1520 | tough-cookie@~2.3.0: 1521 | version "2.3.2" 1522 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" 1523 | dependencies: 1524 | punycode "^1.4.1" 1525 | 1526 | trim-right@^1.0.0: 1527 | version "1.0.1" 1528 | resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" 1529 | 1530 | try-resolve@^1.0.0: 1531 | version "1.0.1" 1532 | resolved "https://registry.yarnpkg.com/try-resolve/-/try-resolve-1.0.1.tgz#cfde6fabd72d63e5797cfaab873abbe8e700e912" 1533 | 1534 | tryor@~0.1.2: 1535 | version "0.1.2" 1536 | resolved "https://registry.yarnpkg.com/tryor/-/tryor-0.1.2.tgz#8145e4ca7caff40acde3ccf946e8b8bb75b4172b" 1537 | 1538 | tunnel-agent@~0.4.1: 1539 | version "0.4.3" 1540 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" 1541 | 1542 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 1543 | version "0.14.5" 1544 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 1545 | 1546 | uid-number@~0.0.6: 1547 | version "0.0.6" 1548 | resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" 1549 | 1550 | user-home@^1.1.1: 1551 | version "1.1.1" 1552 | resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" 1553 | 1554 | util-deprecate@~1.0.1: 1555 | version "1.0.2" 1556 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" 1557 | 1558 | uuid@^3.0.0: 1559 | version "3.0.1" 1560 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" 1561 | 1562 | verror@1.3.6: 1563 | version "1.3.6" 1564 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c" 1565 | dependencies: 1566 | extsprintf "1.0.2" 1567 | 1568 | wide-align@^1.1.0: 1569 | version "1.1.0" 1570 | resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.0.tgz#40edde802a71fea1f070da3e62dcda2e7add96ad" 1571 | dependencies: 1572 | string-width "^1.0.1" 1573 | 1574 | window-size@^0.1.2: 1575 | version "0.1.4" 1576 | resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.4.tgz#f8e1aa1ee5a53ec5bf151ffa09742a6ad7697876" 1577 | 1578 | wordwrap@0.0.2: 1579 | version "0.0.2" 1580 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" 1581 | 1582 | wrappy@1: 1583 | version "1.0.2" 1584 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 1585 | 1586 | xtend@^4.0.0: 1587 | version "4.0.1" 1588 | resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" 1589 | 1590 | y18n@^3.2.0: 1591 | version "3.2.1" 1592 | resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" 1593 | 1594 | yargs@~3.27.0: 1595 | version "3.27.0" 1596 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.27.0.tgz#21205469316e939131d59f2da0c6d7f98221ea40" 1597 | dependencies: 1598 | camelcase "^1.2.1" 1599 | cliui "^2.1.0" 1600 | decamelize "^1.0.0" 1601 | os-locale "^1.4.0" 1602 | window-size "^0.1.2" 1603 | y18n "^3.2.0" 1604 | 1605 | zmq@^2.15.3: 1606 | version "2.15.3" 1607 | resolved "https://registry.yarnpkg.com/zmq/-/zmq-2.15.3.tgz#66c6de82cc36b09734b820703776490a6fbbe624" 1608 | dependencies: 1609 | bindings "~1.2.1" 1610 | nan "~2.3.0" 1611 | --------------------------------------------------------------------------------