├── .babelrc ├── .editorconfig ├── .eslintrc ├── .gitignore ├── .npmignore ├── .travis.yml ├── .travis └── deploy_key.enc ├── LICENSE ├── README.md ├── index.js ├── lib ├── fixtures │ ├── facebook.js │ ├── google.js │ ├── tumblr.js │ ├── twitter.js │ └── untappd.js ├── login.js ├── platforms │ ├── react-native.js │ └── test.js ├── providers │ ├── facebook.js │ ├── facebook.test.js │ ├── google.js │ ├── google.test.js │ ├── tumblr.js │ ├── tumblr.test.js │ ├── twitter.js │ ├── twitter.test.js │ ├── untappd.js │ └── untappd.test.js └── utils │ ├── oauth1.js │ ├── oauth2.js │ ├── signature.js │ ├── signature.test.js │ └── uri.js ├── package.json ├── screencast-android.gif ├── screencast-ios.gif └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "transform-es2015-modules-commonjs", 4 | "ramda-patch", 5 | "transform-object-rest-spread" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # editorconfig.org 4 | 5 | root = true 6 | 7 | 8 | [*] 9 | 10 | # Change these settings to your own preference 11 | indent_style = space 12 | indent_size = 2 13 | 14 | # We recommend you to keep these unchanged 15 | end_of_line = lf 16 | charset = utf-8 17 | trim_trailing_whitespace = true 18 | insert_final_newline = true 19 | 20 | [*.md] 21 | trim_trailing_whitespace = false -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "airbnb", 3 | "env": { 4 | "browser": true, 5 | "node": true, 6 | "mocha": true 7 | }, 8 | "plugins": [ 9 | "import" 10 | ], 11 | "rules": { 12 | "max-len": [2, 80, 2], 13 | "import/extensions": [0] 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | npm-debug.log 4 | .idea 5 | .travis/deploy_key 6 | .travis/deploy_key.pem 7 | .travis/deploy_key.pub 8 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | screencast.gif 2 | ReactNativeSimpleAuth.xcodeproj 3 | ReactNativeSimpleAuth.xcworkspace 4 | ReactNativeSimpleAuthTests 5 | .travis 6 | Pods 7 | test 8 | .travis.yml 9 | secrets.js -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - '6' 5 | 6 | deploy: 7 | provider: npm 8 | email: adamjmcgrath@gmail.com 9 | api_key: 10 | secure: p2RtKFppPgLZME2ceK8SROmpXcreGoBeqpxJIee3Y5a2XXOa+ughWAN/tcvO8gTngVHYr2XEU+TlDpidC1KGRTZv/4cx1WH0XwnDw1gpcNB3v8G6znx0X0i9XgBCH/HlzLbW2+/zIVVqfzBW3Z2YMf9nen9aO/LhvlOeiu4B4FO2o54ODYcpQO6jdZLhSf7aC+ua29ixvTOG97Z31DUxRI+Idg83VxbCWNEfKmZuxDPrabZhKIDUZK/3LqsmF0HE11kAe/a4lHD0mjO+DAQpWXkauP6FeeKKDnDASs7Sc/XdWCEFTuP9JtN1d7XWTRKPBj/1D62+LCp6jHwzSFPxM6oO7i63iP6y7Fqgod9Okh6qvwkn3nKmXm7WmQJbLS7VGTNQ/G5O6HlQVgmnYRBh3iRptYUHF9wmBcdfXTVQ4bdL7QLVUuzaIBlOGv/9O5M0a19erkq+xQUrasZpnVRW+BcIjbNwNoLRFitDSK6BlRrItj2TT2OOokA9XqMorjMJl9IXReGmKDD1cGctPP1KfSOUEjnollP5JX7IgNf1O13ZRqjfkTuWvCgmXsGN52iD8+CP1KD9SMeu9vH99tMxXIl7JLgjkzZ8o4Z+LZda0Qf3kvCIYikz17G+5hDOalaaDktvDmjEzshFL0riR+SlbVWf9rs1Z3+bXVRmK7VM0go= 11 | on: 12 | tags: true 13 | repo: adamjmcgrath/react-native-simple-auth 14 | skip_cleanup: true 15 | 16 | after_deploy: 17 | - openssl aes-256-cbc -K $encrypted_ed11b53bbeb9_key -iv $encrypted_ed11b53bbeb9_iv -in .travis/deploy_key.enc -out .travis/deploy_key.pem -d 18 | - npm version --no-git-tag-version minor 19 | - git commit -am "Bump minor for next release [ci skip]" 20 | - chmod 600 .travis/deploy_key.pem 21 | - eval "$(ssh-agent -s)" 22 | - ssh-add .travis/deploy_key.pem 23 | - git remote add deploy git@github.com:adamjmcgrath/react-native-simple-auth.git 24 | - git push deploy 25 | -------------------------------------------------------------------------------- /.travis/deploy_key.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamjmcgrath/react-native-simple-auth/d187d74ac5abebef2b0407c27364c7f7a0b18377/.travis/deploy_key.enc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013-2014 Byliner, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-simple-auth [![Build Status](https://travis-ci.org/adamjmcgrath/react-native-simple-auth.svg?branch=chore%2Frelease-tasks)](https://travis-ci.org/adamjmcgrath/react-native-simple-auth) 2 | 3 | ## OAuth login for React Native 4 | 5 | * [Screencast](#screencast) 6 | * [Install](#install) 7 | * [Providers Setup](#providers-setup) 8 | * [Usage](#usage) 9 | * [License](#license) 10 | 11 | Screencast 12 | ========== 13 | 14 | iOS | Android 15 | :-------------------------:|:-------------------------: 16 | ![Screencast](https://raw.githubusercontent.com/adamjmcgrath/react-native-simple-auth/master/screencast-ios.gif) | ![Screencast](https://raw.githubusercontent.com/adamjmcgrath/react-native-simple-auth/master/screencast-android.gif) 17 | 18 | Source of example app: https://github.com/adamjmcgrath/ReactNativeSimpleAuthExample 19 | 20 | Install 21 | ======= 22 | - `yarn add react-native-simple-auth` 23 | - Set up deep linking for your Android and iOS application using the instructions on the [react-native website](https://facebook.github.io/react-native/docs/linking.html) (set the `launchMode` of `MainActivity` to `singleTask` in `AndroidManifest.xml`, create the deep link schemes in [Providers Setup](#providers-setup)) 24 | - Set up your OAuth Providers 25 | 26 | Providers Setup 27 | =============== 28 | 29 | ### Google 30 | - Go to the [developer console](https://console.cloud.google.com/apis/credentials/oauthclient/) and create credentials for an iOS application (you can also use these for your Android app). More [instructions](https://support.google.com/cloud/answer/6158849) on the Google support site. 31 | - The "Bundle ID" should contain a dot, eg `com.reactnativesimpleauth` 32 | - Your configuration object should contain the 'Client ID' as `appId` and 'Bundle ID' in the `callback` (note the single `/`, you can put anything as the path), eg 33 | ```js 34 | { 35 | appId: '123-123abc.apps.googleusercontent.com', 36 | callback: 'com.reactnativesimpleauthexample:/oauth2redirect' 37 | } 38 | ``` 39 | - Add the deep link scheme for the callback (Your Bundle ID, eg `com.reactnativesimpleauthexample`) to your `AndroidManifest.xml` eg https://github.com/adamjmcgrath/ReactNativeSimpleAuthExample/blob/master/android/app/src/main/AndroidManifest.xml#L28-L33 40 | - Add the deep link scheme for the callback to your iOS app, eg https://dev.twitter.com/cards/mobile/url-schemes 41 | 42 | ### Facebook 43 | - Create an app on the [Facebook developers](https://developers.facebook.com) website 44 | - In `Settings`, click `Add Platform` 45 | - Select iOS, and in the `Bundle ID` field, add `fb{your App ID}` eg `fb1234567890` (You can use the same configuration for Android) 46 | - Your configuration object should contain the 'Appid ID' as `appId` and 'Bundle ID' in the `callback` (you must put `://authorize`), eg 47 | ```js 48 | { 49 | appId: '1234567890', 50 | callback: 'fb1234567890://authorize', 51 | scope: 'user_friends', // you can override the default scope here 52 | fields: ['email', 'first_name', 'last_name'], // you can override the default fields here 53 | } 54 | ``` 55 | - Add the deep link scheme for the callback (Your Bundle ID, eg `fb1234567890`) to your `AndroidManifest.xml` eg https://github.com/adamjmcgrath/ReactNativeSimpleAuthExample/blob/master/android/app/src/main/AndroidManifest.xml#L28-L33 56 | - Add the deep link scheme for the callback to your iOS app, eg https://dev.twitter.com/cards/mobile/url-schemes (Due to A Facebook bug, this should always be the top one in the list) 57 | 58 | ### Twitter 59 | - Create an app on https://apps.twitter.com 60 | - You can put any valid URL as the callback url. 61 | - Your configuration object should contain the 'Consumer Key (API Key)' as `appId`, the 'Consumer Secret' as `appSecret` and the Twitter `App name` in the `callback`, eg 62 | ```js 63 | { 64 | appId: 'abc1234567890', 65 | appSecret: 'cba0987654321', 66 | callback: 'testapp://authorize', 67 | } 68 | ``` 69 | - Add the deep link scheme for the callback (Your App Name, eg `testapp`) to your `AndroidManifest.xml` eg https://github.com/adamjmcgrath/ReactNativeSimpleAuthExample/blob/master/android/app/src/main/AndroidManifest.xml#L28-L33 70 | - Add the deep link scheme for the callback to your iOS app, eg https://dev.twitter.com/cards/mobile/url-schemes (Due to A Facebook bug, this should always be the top one in the list) 71 | 72 | ### Tumblr 73 | - Create an app on https://www.tumblr.com/oauth/apps 74 | - You can put any valid URL as the callback url. 75 | - Your configuration object should contain the 'OAuth Consumer Key' as `appId`, the 'OAuth Consumer Secret' as `appSecret` and any `callback`, eg 76 | ```js 77 | { 78 | appId: '1234567890abc', 79 | appSecret: '1234567890abc', 80 | callback: 'testapp://authorize', 81 | } 82 | ``` 83 | - Add the deep link scheme for the callback (Your App Name, eg `testapp`) to your `AndroidManifest.xml` eg https://github.com/adamjmcgrath/ReactNativeSimpleAuthExample/blob/master/android/app/src/main/AndroidManifest.xml#L28-L33 84 | - Add the deep link scheme for the callback to your iOS app, eg https://dev.twitter.com/cards/mobile/url-schemes (Due to A Facebook bug, this should always be the top one in the list) 85 | 86 | ### Untappd 87 | - Create an app on https://untappd.com/api/register 88 | - Use a custom app prefix for the callback url. 89 | - Your configuration object should contain the app id and your callback url e.g. 90 | ```js 91 | { 92 | appId: '123456789', 93 | callback: 'testapp://authorize', 94 | } 95 | ``` 96 | - Register your deep link scheme with android and ios as described for other apps. 97 | 98 | Usage 99 | ===== 100 | 101 | Create a configuration object for each of the providers you want to authorize with (required keys are in parenthesis): 102 | 103 | - google (`appId`, `callback`) 104 | - facebook (`appId`, `callback`) 105 | - twitter (`appId`, `appSecret`, `callback`) 106 | - tumblr (`appId`, `appSecret`, `callback`) 107 | 108 | See [secrets.example.js](https://github.com/adamjmcgrath/ReactNativeSimpleAuthExample/blob/master/secrets.example.js). 109 | 110 | ```javascript 111 | import { google, facebook, twitter, tumblr } from 'react-native-simple-auth'; 112 | 113 | google({ 114 | appId: '123-123abc.apps.googleusercontent.com', 115 | callback: 'com.reactnativesimpleauthexample:/oauth2redirect', 116 | }).then((info) => { 117 | // info.user - user details from the provider 118 | // info.credentials - tokens from the provider 119 | }).catch((error) => { 120 | // error.code 121 | // error.description 122 | }); 123 | ``` 124 | 125 | License 126 | ======= 127 | 128 | react-native-simple-auth is released under the MIT license. 129 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Login with various social API's. 3 | * Including: Google, Twitter, Facebook, Instagram, Tumblr & LinkedIn. 4 | */ 5 | 6 | import { __ } from 'ramda'; 7 | import login from './lib/login'; 8 | import * as platform from './lib/platforms/react-native'; 9 | import * as _google from './lib/providers/google'; 10 | import * as _facebook from './lib/providers/facebook'; 11 | import * as _twitter from './lib/providers/twitter'; 12 | import * as _tumblr from './lib/providers/tumblr'; 13 | import * as _untappd from './lib/providers/untappd'; 14 | 15 | export const google = login(_google, platform); 16 | export const facebook = login(_facebook, platform); 17 | export const twitter = login(_twitter, platform); 18 | export const tumblr = login(_tumblr, platform); 19 | export const untappd = login(_untappd, platform); 20 | 21 | export default login(__, platform); 22 | -------------------------------------------------------------------------------- /lib/fixtures/facebook.js: -------------------------------------------------------------------------------- 1 | const AUTH_URL = `https://www.facebook.com/dialog/oauth? 2 | scope=email%20public_profile& 3 | redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fcallback& 4 | response_type=token& 5 | client_id=APPID123 6 | `.replace(/\s+/g, ''); 7 | 8 | const DANCE_CALLBACK = `fb0123456789://authorize# 9 | access_token=ACCESSTOKEN123& 10 | expires_in=12345 11 | `.replace(/\s+/g, ''); 12 | 13 | const USER_INFO_URL = `https://graph.facebook.com/v2.8/me? 14 | &access_token=ACCESSTOKEN123 15 | &fields=id,name,first_name,last_name,verified,email,location,link 16 | `.replace(/\s+/g, ''); 17 | 18 | const USER_INFO_RESPONSE = { 19 | id: 'USER123', 20 | name: 'foo', 21 | email: 'foo@gmail.com', 22 | }; 23 | 24 | export const DANCE = [AUTH_URL, DANCE_CALLBACK]; 25 | 26 | export const REQUESTS = [ 27 | [USER_INFO_URL, {}, USER_INFO_RESPONSE, 'get user info'], 28 | ]; 29 | -------------------------------------------------------------------------------- /lib/fixtures/google.js: -------------------------------------------------------------------------------- 1 | /* eslint max-len: "off" */ 2 | 3 | const AUTH_URL = `https://accounts.google.com/o/oauth2/v2/auth? 4 | scope=email%20profile& 5 | redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fcallback& 6 | response_type=code& 7 | client_id=APPID123 8 | `.replace(/\s+/g, ''); 9 | 10 | const DANCE_CALLBACK = `? 11 | code=CODE123& 12 | token_type=Bearer& 13 | expires_in=3600 14 | `.replace(/\s+/g, ''); 15 | 16 | const TOKEN_URL = 'https://www.googleapis.com/oauth2/v4/token'; 17 | 18 | const TOKEN_OPTS = { 19 | method: 'POST', 20 | headers: { 21 | 'Content-Type': 'application/x-www-form-urlencoded', 22 | }, 23 | body: 'client_id=APPID123&code=CODE123&grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fcallback', 24 | }; 25 | 26 | const TOKEN_RESPONSE = { 27 | access_token: 'ACCESSTOKEN123', 28 | expires_in: 3920, 29 | token_type: 'Bearer', 30 | refresh_token: 'REFRESHTOKEN123', 31 | }; 32 | 33 | const USER_INFO_URL = 'https://www.googleapis.com/oauth2/v2/userinfo'; 34 | 35 | const USER_INFO_OPTS = { 36 | headers: { 37 | Authorization: 'Bearer ACCESSTOKEN123', 38 | }, 39 | }; 40 | 41 | const USER_INFO_RESPONSE = { 42 | id: 'USER123', 43 | email: 'foo@gmail.com', 44 | verified_email: true, 45 | name: 'foo', 46 | given_name: 'Foo', 47 | family_name: 'Bar', 48 | link: 'https://plus.google.com/1234567890', 49 | picture: 'https://lh4.googleusercontent.com/ABC123/photo.jpg', 50 | gender: 'male', 51 | locale: 'en', 52 | }; 53 | 54 | export const DANCE = [AUTH_URL, DANCE_CALLBACK]; 55 | 56 | export const REQUESTS = [ 57 | [TOKEN_URL, TOKEN_OPTS, TOKEN_RESPONSE, 'verify token'], 58 | [USER_INFO_URL, USER_INFO_OPTS, USER_INFO_RESPONSE, 'get user info'], 59 | ]; 60 | -------------------------------------------------------------------------------- /lib/fixtures/tumblr.js: -------------------------------------------------------------------------------- 1 | /* eslint max-len: "off" */ 2 | 3 | const REQUEST_TOKEN_URL = `https://www.tumblr.com/oauth/request_token? 4 | oauth_callback=http%3A%2F%2Flocalhost%3A3000%2Fcallback 5 | `.replace(/\s+/g, ''); 6 | 7 | const REQUEST_TOKEN_OPTS = { 8 | method: 'POST', 9 | headers: { 10 | Authorization: `OAuth oauth_consumer_key="APPID123", 11 | oauth_nonce="123ABC", 12 | oauth_signature="qi12mahCUbaTvKSjJHhLzHG99x0%3D", 13 | oauth_signature_method="HMAC-SHA1", 14 | oauth_timestamp="1234567890", 15 | oauth_version="1.0"`.replace(/\n +/g, ' '), 16 | }, 17 | }; 18 | 19 | const REQUEST_TOKEN_RESPONSE = ` 20 | oauth_token=TOKEN123&o 21 | auth_token_secret=SECRET123& 22 | oauth_callback_confirmed=true 23 | `.replace(/\s+/g, ''); 24 | 25 | const AUTH_URL = `https://www.tumblr.com/oauth/authorize? 26 | oauth_token=TOKEN123 27 | `.replace(/\s+/g, ''); 28 | 29 | const DANCE_CALLBACK = `? 30 | oauth_token=TOKEN123& 31 | oauth_verifier=VERIFIER123 32 | `.replace(/\s+/g, ''); 33 | 34 | const ACCESS_TOKEN_URL = 'https://www.tumblr.com/oauth/access_token'; 35 | 36 | const ACCESS_TOKEN_OPTS = { 37 | method: 'POST', 38 | headers: { 39 | 'Content-Type': 'application/x-www-form-urlencoded', 40 | Authorization: `OAuth oauth_consumer_key="APPID123", 41 | oauth_nonce="123ABC", 42 | oauth_signature="%2B%2BLptOJJpVD18Q376%2FyLUIF%2FNhw%3D", 43 | oauth_signature_method="HMAC-SHA1", 44 | oauth_timestamp="1234567890", 45 | oauth_token="TOKEN123", 46 | oauth_version="1.0"`.replace(/\n +/g, ' '), 47 | }, 48 | body: 'oauth_verifier=VERIFIER123', 49 | }; 50 | 51 | const ACCESS_TOKEN_RESPONSE = ` 52 | oauth_token=TOKEN2123& 53 | oauth_token_secret=SECRET2123#_ 54 | `.replace(/\s+/g, ''); 55 | 56 | const USER_INFO_URL = 'https://api.tumblr.com/v2/user/info'; 57 | 58 | const USER_INFO_OPTS = { 59 | headers: { 60 | Authorization: `OAuth oauth_consumer_key="APPID123", 61 | oauth_nonce="123ABC", 62 | oauth_signature="HM1CrAVoeiZC7yECW9%2F0VB0d5cg%3D", 63 | oauth_signature_method="HMAC-SHA1", 64 | oauth_timestamp="1234567890", 65 | oauth_token="TOKEN2123", 66 | oauth_version="1.0"`.replace(/\n +/g, ' '), 67 | }, 68 | }; 69 | 70 | const USER_INFO_RESPONSE = { 71 | response: { 72 | user: { 73 | name: 'foo', 74 | }, 75 | }, 76 | }; 77 | 78 | export const DANCE = [AUTH_URL, DANCE_CALLBACK]; 79 | 80 | export const REQUESTS = [ 81 | [REQUEST_TOKEN_URL, REQUEST_TOKEN_OPTS, REQUEST_TOKEN_RESPONSE, 'get oauth token'], 82 | [ACCESS_TOKEN_URL, ACCESS_TOKEN_OPTS, ACCESS_TOKEN_RESPONSE, 'get access token'], 83 | [USER_INFO_URL, USER_INFO_OPTS, USER_INFO_RESPONSE, 'get user info'], 84 | ]; 85 | -------------------------------------------------------------------------------- /lib/fixtures/twitter.js: -------------------------------------------------------------------------------- 1 | /* eslint max-len: "off" */ 2 | 3 | const REQUEST_TOKEN_URL = `https://api.twitter.com/oauth/request_token? 4 | oauth_callback=http%3A%2F%2Flocalhost%3A3000%2Fcallback 5 | `.replace(/\s+/g, ''); 6 | 7 | const REQUEST_TOKEN_OPTS = { 8 | method: 'POST', 9 | headers: { 10 | Authorization: `OAuth oauth_consumer_key="APPID123", 11 | oauth_nonce="123ABC", 12 | oauth_signature="8A3xi5GUvtngPldBcV5zZQj9lQw%3D", 13 | oauth_signature_method="HMAC-SHA1", 14 | oauth_timestamp="1234567890", 15 | oauth_version="1.0"`.replace(/\n +/g, ' '), 16 | }, 17 | }; 18 | 19 | const REQUEST_TOKEN_RESPONSE = ` 20 | oauth_token=TOKEN123& 21 | oauth_token_secret=SECRET123& 22 | oauth_callback_confirmed=true 23 | `.replace(/\s+/g, ''); 24 | 25 | const AUTH_URL = `https://api.twitter.com/oauth/authenticate? 26 | oauth_token=TOKEN123 27 | `.replace(/\s+/g, ''); 28 | 29 | const DANCE_CALLBACK = `? 30 | oauth_token=TOKEN123& 31 | oauth_verifier=VERIFIER123 32 | `.replace(/\s+/g, ''); 33 | 34 | const ACCESS_TOKEN_URL = 'https://api.twitter.com/oauth/access_token'; 35 | 36 | const ACCESS_TOKEN_OPTS = { 37 | method: 'POST', 38 | headers: { 39 | 'Content-Type': 'application/x-www-form-urlencoded', 40 | Authorization: `OAuth oauth_consumer_key="APPID123", 41 | oauth_nonce="123ABC", 42 | oauth_signature="xi5FnOqIcPXr%2BViCC3zgg0zmXUw%3D", 43 | oauth_signature_method="HMAC-SHA1", 44 | oauth_timestamp="1234567890", 45 | oauth_token="TOKEN123", 46 | oauth_version="1.0"`.replace(/\n +/g, ' '), 47 | }, 48 | body: 'oauth_verifier=VERIFIER123', 49 | }; 50 | 51 | const ACCESS_TOKEN_RESPONSE = ` 52 | oauth_token=ACCESSTOKEN123& 53 | oauth_token_secret=ACCESSTOKENSECRET123& 54 | user_id=20934183& 55 | screen_name=adamjmcgrath& 56 | x_auth_expires=0 57 | `.replace(/\s+/g, ''); 58 | 59 | const USER_INFO_URL = 'https://api.twitter.com/1.1/account/verify_credentials.json'; 60 | 61 | const USER_INFO_OPTS = { 62 | headers: { 63 | Authorization: `OAuth oauth_consumer_key="APPID123", 64 | oauth_nonce="123ABC", 65 | oauth_signature="UbAJ6mznUWS2qpQeirKMnUkG7Ps%3D", 66 | oauth_signature_method="HMAC-SHA1", 67 | oauth_timestamp="1234567890", 68 | oauth_token="ACCESSTOKEN123", 69 | oauth_version="1.0"`.replace(/\n +/g, ' '), 70 | }, 71 | }; 72 | 73 | const USER_INFO_RESPONSE = { 74 | id: 123, 75 | name: 'foo', 76 | screen_name: 'bar', 77 | }; 78 | 79 | export const DANCE = [AUTH_URL, DANCE_CALLBACK]; 80 | 81 | export const REQUESTS = [ 82 | [REQUEST_TOKEN_URL, REQUEST_TOKEN_OPTS, REQUEST_TOKEN_RESPONSE, 'get oauth token'], 83 | [ACCESS_TOKEN_URL, ACCESS_TOKEN_OPTS, ACCESS_TOKEN_RESPONSE, 'get access token'], 84 | [USER_INFO_URL, USER_INFO_OPTS, USER_INFO_RESPONSE, 'get user info'], 85 | ]; 86 | -------------------------------------------------------------------------------- /lib/fixtures/untappd.js: -------------------------------------------------------------------------------- 1 | /* eslint max-len: "off" */ 2 | 3 | const AUTHENTICATE_URL = `https://untappd.com/oauth/authenticate? 4 | scope=& 5 | redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fcallback& 6 | response_type=code& 7 | client_id=APPID123 8 | `.replace(/\s+/g, ''); 9 | 10 | const DANCE_CALLBACK = `? 11 | code=CODE123 12 | `.replace(/\s+/g, ''); 13 | 14 | export default [AUTHENTICATE_URL, DANCE_CALLBACK]; 15 | -------------------------------------------------------------------------------- /lib/login.js: -------------------------------------------------------------------------------- 1 | import { curry, mergeAll } from 'ramda'; 2 | 3 | export default curry((provider, platform, opts) => 4 | provider.authorize(platform, mergeAll([provider.opts, platform.opts, opts])) 5 | .then(provider.identify(platform.request)), 6 | ); 7 | -------------------------------------------------------------------------------- /lib/platforms/react-native.js: -------------------------------------------------------------------------------- 1 | import { Linking, AppState } from 'react-native'; // eslint-disable-line import/no-unresolved, max-len 2 | 3 | let appStateTimeout; 4 | let previousLinkingCallback; 5 | let previousAppStateCallback; 6 | 7 | const cleanup = () => { 8 | clearTimeout(appStateTimeout); 9 | 10 | if (previousLinkingCallback) { 11 | Linking.removeEventListener('url', previousLinkingCallback); 12 | previousLinkingCallback = null; 13 | } 14 | 15 | if (previousAppStateCallback) { 16 | AppState.removeEventListener('change', previousAppStateCallback); 17 | previousAppStateCallback = null; 18 | } 19 | }; 20 | 21 | export const dance = (authUrl) => { 22 | cleanup(); 23 | 24 | return Linking.openURL(authUrl) 25 | .then(() => new Promise((resolve, reject) => { 26 | const handleUrl = (url) => { 27 | if (!url || url.indexOf('fail') > -1) { 28 | reject(url); 29 | } else { 30 | resolve(url); 31 | } 32 | }; 33 | 34 | const linkingCallback = ({ url }) => { 35 | cleanup(); 36 | handleUrl(url); 37 | }; 38 | 39 | Linking.addEventListener('url', linkingCallback); 40 | previousLinkingCallback = linkingCallback; 41 | 42 | const appStateCallback = (state) => { 43 | // Give time for Linking event to fire. 44 | appStateTimeout = setTimeout(() => { 45 | if (state === 'active') { 46 | cleanup(); 47 | reject('cancelled'); 48 | } 49 | }, 100); 50 | }; 51 | 52 | AppState.addEventListener('change', appStateCallback); 53 | previousAppStateCallback = appStateCallback; 54 | })); 55 | }; 56 | 57 | export const request = fetch; 58 | -------------------------------------------------------------------------------- /lib/platforms/test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | 3 | let requests; 4 | let danceFixture; 5 | 6 | export const request = (url, opts = {}) => { 7 | const [expectedUrl, expectedOpts, response, msg] = requests.shift(); 8 | assert.equal(url, expectedUrl, `url for ${msg} request`); 9 | assert.deepEqual(opts, expectedOpts, `opts for ${msg} request`); 10 | return Promise.resolve({ 11 | json() { 12 | return Promise.resolve(response); 13 | }, 14 | text() { 15 | return Promise.resolve(response); 16 | }, 17 | }); 18 | }; 19 | 20 | export const dance = (url) => { 21 | const [expectedUrl, response] = danceFixture; 22 | assert.equal(url, expectedUrl, 'authorization url for dance'); 23 | return Promise.resolve(response); 24 | }; 25 | 26 | export const setup = (REQUESTS, DANCE) => { 27 | requests = REQUESTS.slice(0); 28 | danceFixture = DANCE.slice(0); 29 | }; 30 | 31 | export const opts = { 32 | callback: 'http://localhost:3000/callback', 33 | }; 34 | -------------------------------------------------------------------------------- /lib/providers/facebook.js: -------------------------------------------------------------------------------- 1 | import { 2 | __, 3 | curry, 4 | invoker, 5 | lensProp, 6 | partial, 7 | pipeP, 8 | replace, 9 | set, 10 | merge, 11 | } from 'ramda'; 12 | import { 13 | authorizationUrl, 14 | } from '../utils/oauth2'; 15 | import { fromQueryString } from '../utils/uri'; 16 | 17 | const SCOPE = 'email public_profile'; 18 | const AUTH = 'https://www.facebook.com/dialog/oauth'; 19 | const ME = 'https://graph.facebook.com/v2.8/me?'; 20 | const FIELDS = [ 21 | 'id', 22 | 'name', 23 | 'first_name', 24 | 'last_name', 25 | 'verified', 26 | 'email', 27 | 'location', 28 | 'link', 29 | ]; 30 | 31 | export const authorize = ( 32 | { dance, request }, 33 | { appId, callback, scope = SCOPE, fields = FIELDS }, 34 | ) => pipeP( 35 | dance, 36 | replace('#', '?'), 37 | fromQueryString, 38 | set(lensProp('credentials'), __, {}), 39 | merge({ fields }), 40 | )(authorizationUrl(AUTH, appId, callback, scope)); 41 | 42 | export const identify = curry((request, { credentials, fields }) => pipeP( 43 | partial( 44 | request, 45 | [ 46 | `${ME}` + 47 | `&access_token=${credentials.access_token}` + 48 | `&fields=${fields.join(',')}`, 49 | {}, 50 | ], 51 | ), 52 | invoker(0, 'json'), 53 | set(lensProp('user'), __, {}), 54 | set(lensProp('credentials'), credentials), 55 | )()); 56 | -------------------------------------------------------------------------------- /lib/providers/facebook.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import * as facebook from './facebook'; 3 | import { REQUESTS, DANCE } from '../fixtures/facebook'; 4 | import * as test from '../platforms/test'; 5 | import login from '../login'; 6 | 7 | describe('Facebook', () => { 8 | before(() => { 9 | test.setup(REQUESTS, DANCE); 10 | }); 11 | 12 | it('should login', () => { 13 | const facebookTest = login(facebook, test); 14 | return facebookTest({ 15 | appId: 'APPID123', 16 | }) 17 | .then((user) => { 18 | assert.equal(user.user.id, 'USER123'); 19 | assert.equal(user.user.name, 'foo'); 20 | assert.equal(user.user.email, 'foo@gmail.com'); 21 | assert.equal(user.credentials.access_token, 'ACCESSTOKEN123'); 22 | }); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /lib/providers/google.js: -------------------------------------------------------------------------------- 1 | import { 2 | __, 3 | curry, 4 | has, 5 | identity, 6 | ifElse, 7 | invoker, 8 | lensProp, 9 | merge, 10 | partial, 11 | pipe, 12 | pipeP, 13 | prop, 14 | set, 15 | } from 'ramda'; 16 | import { 17 | authorizationUrl, 18 | getHeaders, 19 | } from '../utils/oauth2'; 20 | import { 21 | fromQueryString, 22 | toQueryString, 23 | } from '../utils/uri'; 24 | 25 | const SCOPE = 'email profile'; 26 | const AUTH = 'https://accounts.google.com/o/oauth2/v2/auth'; 27 | const TOKEN = 'https://www.googleapis.com/oauth2/v4/token'; 28 | const ME = 'https://www.googleapis.com/oauth2/v2/userinfo'; 29 | 30 | const checkError = ifElse( 31 | has('error'), 32 | pipe(prop('error'), curry((e) => { throw new Error(e); })), 33 | identity, 34 | ); 35 | 36 | const getUser = curry((request, credentials) => pipe( 37 | prop('access_token'), 38 | getHeaders, 39 | set(lensProp('headers'), __, {}), 40 | pipeP( 41 | partial(request, [ME]), 42 | invoker(0, 'json'), 43 | set(lensProp('user'), __, {}), 44 | set(lensProp('credentials'), credentials), 45 | ), 46 | )(credentials)); 47 | 48 | export const authorize = ( 49 | { dance, request }, 50 | { appId, callback, scope = SCOPE }) => 51 | pipeP( 52 | dance, 53 | fromQueryString, 54 | checkError, 55 | merge({ appId, callback }), 56 | )(authorizationUrl(AUTH, appId, callback, scope, 'code')); 57 | 58 | export const identify = curry((request, { appId, callback, code }) => 59 | pipeP( 60 | partial(request, [TOKEN]), 61 | invoker(0, 'json'), 62 | checkError, 63 | getUser(request), 64 | )({ 65 | method: 'POST', 66 | headers: { 67 | 'Content-Type': 'application/x-www-form-urlencoded', 68 | }, 69 | body: toQueryString({ 70 | code, 71 | client_id: appId, 72 | redirect_uri: callback, 73 | grant_type: 'authorization_code', 74 | }), 75 | }), 76 | ); 77 | -------------------------------------------------------------------------------- /lib/providers/google.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import * as google from './google'; 3 | import { REQUESTS, DANCE } from '../fixtures/google'; 4 | import * as test from '../platforms/test'; 5 | import login from '../login'; 6 | 7 | describe('Google', () => { 8 | before(() => { 9 | test.setup(REQUESTS, DANCE); 10 | }); 11 | 12 | it('should login', () => { 13 | const googleTest = login(google, test); 14 | return googleTest({ 15 | appId: 'APPID123', 16 | }) 17 | .then((user) => { 18 | assert.equal(user.user.id, 'USER123'); 19 | assert.equal(user.user.name, 'foo'); 20 | assert.equal(user.user.email, 'foo@gmail.com'); 21 | assert.equal(user.credentials.access_token, 'ACCESSTOKEN123'); 22 | assert.equal(user.credentials.refresh_token, 'REFRESHTOKEN123'); 23 | }); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /lib/providers/tumblr.js: -------------------------------------------------------------------------------- 1 | /* eslint camelcase: "off" */ 2 | import { 3 | __, 4 | curry, 5 | identity, 6 | invoker, 7 | lensProp, 8 | merge, 9 | partial, 10 | path, 11 | pipeP, 12 | set, 13 | } from 'ramda'; 14 | import { 15 | requestToken, 16 | accessToken, 17 | getHeaders, 18 | } from '../utils/oauth1'; 19 | import { 20 | fromQueryString, 21 | } from '../utils/uri'; 22 | 23 | const REQUEST_TOKEN = 'https://www.tumblr.com/oauth/request_token'; 24 | const AUTH = 'https://www.tumblr.com/oauth/authorize'; 25 | const ACCESS_TOKEN = 'https://www.tumblr.com/oauth/access_token'; 26 | const ME = 'https://api.tumblr.com/v2/user/info'; 27 | 28 | export const verifyCallback = identity; 29 | 30 | export const authorize = ({ dance, request }, { appId, appSecret, callback }) => 31 | pipeP( 32 | requestToken(REQUEST_TOKEN), 33 | ({ oauth_token, oauth_token_secret }) => pipeP( 34 | partial(dance, [`${AUTH}?oauth_token=${oauth_token}`]), 35 | fromQueryString, 36 | merge({ appId, appSecret, oauth_token_secret }), 37 | accessToken(ACCESS_TOKEN, request), 38 | merge({ appId, appSecret }), 39 | )(), 40 | )(request, appId, appSecret, callback); 41 | 42 | export const identify = curry( 43 | (request, { appId, appSecret, oauth_token, oauth_token_secret }) => pipeP( 44 | partial(request, [ME, { 45 | headers: getHeaders(ME, {}, {}, appId, appSecret, 'GET', oauth_token, oauth_token_secret), // eslint-disable-line max-len 46 | }, {}]), 47 | invoker(0, 'json'), 48 | path(['response', 'user']), 49 | set(lensProp('user'), __, {}), 50 | set(lensProp('credentials'), { oauth_token, oauth_token_secret }), 51 | )(), 52 | ); 53 | -------------------------------------------------------------------------------- /lib/providers/tumblr.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import * as tumblr from './tumblr'; 3 | import { REQUESTS, DANCE } from '../fixtures/tumblr'; 4 | import * as test from '../platforms/test'; 5 | import { setupForTesting } from '../utils/oauth1'; 6 | import login from '../login'; 7 | 8 | describe('Tumblr', () => { 9 | before(() => { 10 | test.setup(REQUESTS, DANCE); 11 | setupForTesting('123ABC', 1234567890); 12 | }); 13 | 14 | it('should login', () => { 15 | const tumblrTest = login(tumblr, test); 16 | return tumblrTest({ 17 | appId: 'APPID123', 18 | appSecret: 'APPSECRET123', 19 | }) 20 | .then((user) => { 21 | assert.equal(user.user.name, 'foo'); 22 | assert.equal(user.credentials.oauth_token, 'TOKEN2123'); 23 | assert.equal(user.credentials.oauth_token_secret, 'SECRET2123'); 24 | }); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /lib/providers/twitter.js: -------------------------------------------------------------------------------- 1 | /* eslint camelcase: "off" */ 2 | import { 3 | __, 4 | curry, 5 | invoker, 6 | lensProp, 7 | merge, 8 | partial, 9 | pipeP, 10 | set, 11 | } from 'ramda'; 12 | import { 13 | requestToken, 14 | accessToken, 15 | getHeaders, 16 | } from '../utils/oauth1'; 17 | import { 18 | fromQueryString, 19 | } from '../utils/uri'; 20 | 21 | 22 | const REQUEST_TOKEN = 'https://api.twitter.com/oauth/request_token'; 23 | const AUTH = 'https://api.twitter.com/oauth/authenticate'; 24 | const ACCESS_TOKEN = 'https://api.twitter.com/oauth/access_token'; 25 | const VERIFY_CREDENTIALS = 26 | 'https://api.twitter.com/1.1/account/verify_credentials.json'; 27 | 28 | export const authorize = ({ dance, request }, { appId, appSecret, callback }) => 29 | pipeP( 30 | requestToken(REQUEST_TOKEN), 31 | ({ oauth_token, oauth_token_secret }) => pipeP( 32 | partial(dance, [`${AUTH}?oauth_token=${oauth_token}`]), 33 | fromQueryString, 34 | merge({ appId, appSecret, oauth_token_secret }), 35 | accessToken(ACCESS_TOKEN, request), 36 | merge({ appId, appSecret }), 37 | )(), 38 | )(request, appId, appSecret, callback); 39 | 40 | export const identify = curry( 41 | (request, { appId, appSecret, oauth_token, oauth_token_secret }) => pipeP( 42 | partial(request, [VERIFY_CREDENTIALS, { 43 | headers: getHeaders(VERIFY_CREDENTIALS, {}, {}, appId, appSecret, 'GET', oauth_token, oauth_token_secret), // eslint-disable-line max-len 44 | }, {}]), 45 | invoker(0, 'json'), 46 | set(lensProp('user'), __, {}), 47 | set(lensProp('credentials'), { oauth_token, oauth_token_secret }), 48 | )(), 49 | ); 50 | 51 | -------------------------------------------------------------------------------- /lib/providers/twitter.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import * as twitter from './twitter'; 3 | import { REQUESTS, DANCE } from '../fixtures/twitter'; 4 | import * as test from '../platforms/test'; 5 | import { setupForTesting } from '../utils/oauth1'; 6 | import login from '../login'; 7 | 8 | describe('Twitter', () => { 9 | before(() => { 10 | test.setup(REQUESTS, DANCE); 11 | setupForTesting('123ABC', 1234567890); 12 | }); 13 | 14 | it('should login', () => { 15 | const twitterTest = login(twitter, test); 16 | return twitterTest({ 17 | appId: 'APPID123', 18 | appSecret: 'APPSECRET123', 19 | }) 20 | .then((user) => { 21 | assert.equal(user.user.name, 'foo'); 22 | assert.equal(user.credentials.oauth_token, 'ACCESSTOKEN123'); 23 | assert.equal(user.credentials.oauth_token_secret, 'ACCESSTOKENSECRET123'); 24 | }); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /lib/providers/untappd.js: -------------------------------------------------------------------------------- 1 | import { 2 | curry, 3 | has, 4 | identity, 5 | ifElse, 6 | merge, 7 | pipe, 8 | pipeP, 9 | prop, 10 | } from 'ramda'; 11 | import { 12 | authorizationUrl, 13 | } from '../utils/oauth2'; 14 | import { 15 | fromQueryString, 16 | } from '../utils/uri'; 17 | 18 | const SCOPE = ''; 19 | const AUTH = 'https://untappd.com/oauth/authenticate'; 20 | 21 | const checkError = ifElse( 22 | has('error'), 23 | pipe(prop('error'), curry((e) => { throw new Error(e); })), 24 | identity, 25 | ); 26 | 27 | // eslint-disable-next-line import/prefer-default-export 28 | export const authorize = ( 29 | { dance }, 30 | { appId, callback, scope = SCOPE }) => 31 | pipeP( 32 | dance, 33 | fromQueryString, 34 | checkError, 35 | merge({ appId, callback }), 36 | )(authorizationUrl(AUTH, appId, callback, scope, 'code')); 37 | 38 | export const identify = curry((request, { code }) => ({ 39 | credentials: { 40 | code, 41 | }, 42 | })); 43 | -------------------------------------------------------------------------------- /lib/providers/untappd.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import * as untappd from './untappd'; 3 | import DANCE from '../fixtures/untappd'; 4 | import * as test from '../platforms/test'; 5 | import login from '../login'; 6 | 7 | describe('Untappd', () => { 8 | before(() => { 9 | test.setup([], DANCE); 10 | }); 11 | 12 | it('should authorize', () => { 13 | const untappdTest = login(untappd, test); 14 | return untappdTest({ 15 | appId: 'APPID123', 16 | }) 17 | .then((response) => { 18 | assert.equal(response.credentials.code, 'CODE123'); 19 | }); 20 | }); 21 | }); 22 | -------------------------------------------------------------------------------- /lib/utils/oauth1.js: -------------------------------------------------------------------------------- 1 | import { 2 | tap, 3 | curry, 4 | } from 'ramda'; 5 | import signature, { 6 | getNonce, 7 | getNow, 8 | } from './signature'; 9 | import { 10 | fromQueryString, 11 | toQueryString, 12 | encode, 13 | } from './uri'; 14 | 15 | let testNonce; 16 | let testNow; 17 | 18 | const assert = (err, test) => { 19 | if (!test) { 20 | throw new Error(err); 21 | } 22 | }; 23 | 24 | export const verifyCallback = resp => 25 | assert('Unconfirmed callback', resp.oauth_callback_confirmed === 'true'); 26 | 27 | export const getHeaders = (url, params, data, consumerKey, consumerSecret, 28 | method, oauthToken = '', oauthSecret = '') => { 29 | const nonce = testNonce || getNonce(32); 30 | const now = testNow || getNow(); 31 | const sig = signature({ 32 | url, 33 | consumerKey, 34 | consumerSecret, 35 | oauthToken, 36 | oauthSecret, 37 | params, 38 | method, 39 | data, 40 | nonce, 41 | now, 42 | }); 43 | 44 | const header = `OAuth oauth_consumer_key="${encode(consumerKey)}", 45 | oauth_nonce="${encode(nonce)}", 46 | oauth_signature="${encode(sig)}", 47 | oauth_signature_method="HMAC-SHA1", 48 | oauth_timestamp="${encode(now)}", 49 | ${oauthToken && 'oauth_token="'}${oauthToken}${oauthToken && '",'} 50 | oauth_version="1.0"`.replace(/\n? +\n? */g, ' '); 51 | return { Authorization: header }; 52 | }; 53 | 54 | export const accessToken = curry(( 55 | accessTokenUrl, request, 56 | { appId, appSecret, oauth_token, oauth_token_secret, oauth_verifier }, 57 | ) => { 58 | const data = { oauth_verifier }; 59 | const headers = Object.assign( 60 | { 'Content-Type': 'application/x-www-form-urlencoded' }, 61 | getHeaders(accessTokenUrl, {}, data, appId, appSecret, 'POST', 62 | oauth_token, oauth_token_secret)); 63 | const opts = { 64 | method: 'POST', 65 | headers, 66 | body: `oauth_verifier=${oauth_verifier}`, // eslint-disable-line camelcase 67 | }; 68 | 69 | return request(accessTokenUrl, opts) 70 | .then(resp => resp.text()) 71 | .then(fromQueryString); 72 | }); 73 | 74 | export const requestToken = curry( 75 | (requestTokenUrl, request, appId, appSecret, callback) => { 76 | const params = { 77 | oauth_callback: callback, 78 | }; 79 | const headers = getHeaders( 80 | requestTokenUrl, params, {}, appId, appSecret, 'POST', 81 | ); 82 | const url = `${requestTokenUrl}?${toQueryString(params)}`; 83 | return request(url, { method: 'POST', headers }) 84 | .then(resp => resp.text()) 85 | .then(fromQueryString) 86 | .then(tap(verifyCallback)); 87 | }, 88 | ); 89 | 90 | export const setupForTesting = (nonce, now) => { 91 | testNonce = nonce; 92 | testNow = now; 93 | }; 94 | -------------------------------------------------------------------------------- /lib/utils/oauth2.js: -------------------------------------------------------------------------------- 1 | import { 2 | curry, 3 | } from 'ramda'; 4 | 5 | export const authorizationUrl = curry( 6 | (url, appId, callback, scope, responseType = 'token') => 7 | `${url}?scope=${encodeURIComponent(scope)}& 8 | redirect_uri=${encodeURIComponent(callback)}& 9 | response_type=${responseType}& 10 | client_id=${appId}`.replace(/\s+/g, ''), 11 | ); 12 | 13 | export const getHeaders = token => ({ Authorization: `Bearer ${token}` }); 14 | -------------------------------------------------------------------------------- /lib/utils/signature.js: -------------------------------------------------------------------------------- 1 | import { 2 | __, 3 | adjust, 4 | binary, 5 | compose, 6 | concat, 7 | curry, 8 | divide, 9 | flip, 10 | join, 11 | keys, 12 | merge, 13 | partial, 14 | pipe, 15 | reduce, 16 | times, 17 | toUpper, 18 | } from 'ramda'; 19 | import hmacsha1 from 'hmacsha1'; 20 | import { toQueryString, encode } from './uri'; 21 | 22 | // Map arguments to OAuth keys. 23 | const OAUTH_KEYS = { 24 | consumerKey: 'oauth_consumer_key', 25 | signatureMethod: 'oauth_signature_method', 26 | oauthToken: 'oauth_token', 27 | version: 'oauth_version', 28 | nonce: 'oauth_nonce', 29 | now: 'oauth_timestamp', 30 | }; 31 | 32 | // Create a random alphanumeric string of a given length. 33 | export const getNonce = pipe( 34 | times( 35 | partial( 36 | chars => chars[Math.floor(Math.random() * chars.length)], 37 | ['0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'], 38 | ), 39 | ), 40 | join(''), 41 | ); 42 | 43 | // Return the current timestamp in seconds 44 | export const getNow = pipe( 45 | Date.now, 46 | flip(divide)(1000), 47 | Math.floor, 48 | ); 49 | 50 | // Join key items with an ampersand and hash with given data. 51 | const hash = pipe( 52 | join('&'), 53 | curry(binary(hmacsha1)), 54 | ); 55 | 56 | // Rename an objects keys and remove unknown keys. 57 | const renameKeys = curry((keysMap, obj) => reduce((acc, key) => { 58 | const ret = acc; 59 | if (obj[key]) { 60 | ret[keysMap[key] || key] = obj[key]; 61 | } 62 | return ret; 63 | }, {}, keys(keysMap))); 64 | 65 | // Rename an objects OAuth keys. 66 | const renameOAuthKeys = renameKeys(OAUTH_KEYS); 67 | 68 | // Prepend the method and url to the base string. 69 | const prependRequest = pipe( 70 | adjust(toUpper, 0), 71 | adjust(compose(concat(__, '&'), encode), 1), 72 | join('&'), 73 | concat, 74 | ); 75 | 76 | // Merge 2 objects into a given object. 77 | const mergeParams = compose(merge, merge); 78 | 79 | // Create an OAuth 1.0 signature. 80 | export default ({ 81 | url, 82 | consumerKey, 83 | consumerSecret, 84 | oauthToken = '', 85 | oauthSecret = '', 86 | params = {}, 87 | data = {}, 88 | method = 'POST', 89 | version = '1.0', 90 | signatureMethod = 'HMAC-SHA1', 91 | nonceSize = 32, 92 | nonce = getNonce(nonceSize), 93 | now = getNow(), 94 | }) => pipe( 95 | renameOAuthKeys, 96 | mergeParams(params, data), 97 | toQueryString, 98 | encode, 99 | prependRequest([method, url]), 100 | hash([consumerSecret, oauthSecret]), 101 | )({ consumerKey, signatureMethod, oauthToken, version, nonce, now }); 102 | -------------------------------------------------------------------------------- /lib/utils/signature.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import signature from './signature'; 3 | 4 | describe('Signature', () => { 5 | it('should calculate the oauth signature', () => { 6 | const url = 'https://api.twitter.com/1/statuses/update.json'; 7 | const params = { include_entities: true }; 8 | const consumerKey = 'xvz1evFS4wEEPTGEFPHBog'; 9 | const consumerSecret = 'kAcSOqF21Fu85e7zjz7ZN2U4ZRhfV3WpwPAoE3Z7kBw'; 10 | const oauthToken = '370773112-GmHxMAgYyLbNEtIKZeRNFsMKPR9EyMZeS9weJAEb'; 11 | const oauthSecret = 'LswwdoUaIvS8ltyTt5jkRh4J50vUPVVHtR2YPi5kE'; 12 | const data = { 13 | status: 'Hello Ladies + Gentlemen, a signed OAuth request!', 14 | }; 15 | const nonce = 'kYjzVBB8Y0ZFabxSWbWovY3uYSQ2pTgmZeNu2VS4cg'; 16 | const now = 1318622958; 17 | 18 | const expected = 'tnnArxj06cWHq44gCs1OSKk/jLY='; 19 | const actual = signature({ 20 | url, 21 | params, 22 | consumerKey, 23 | consumerSecret, 24 | oauthToken, 25 | oauthSecret, 26 | data, 27 | nonce, 28 | now, 29 | }); 30 | 31 | assert.equal(actual, expected); 32 | }); 33 | }); 34 | -------------------------------------------------------------------------------- /lib/utils/uri.js: -------------------------------------------------------------------------------- 1 | import { 2 | fromPairs, 3 | join, 4 | map, 5 | pipe, 6 | prop, 7 | replace, 8 | sortBy, 9 | split, 10 | toPairs, 11 | } from 'ramda'; 12 | 13 | const sortPairs = pipe( 14 | sortBy(prop(1)), 15 | sortBy(prop(0)), 16 | ); 17 | 18 | // For RFC 3986 Compliant URI Encoding. 19 | export const encode = pipe( 20 | encodeURIComponent, 21 | replace(/!/g, '%21'), 22 | replace(/'/g, '%27'), 23 | replace(/\(/g, '%28'), 24 | replace(/\)/g, '%29'), 25 | replace(/\*/g, '%2A'), 26 | ); 27 | 28 | // Convert an object to a (sorted) query string. 29 | export const toQueryString = pipe( 30 | toPairs, 31 | map(map(encode)), 32 | sortPairs, 33 | map(join('=')), 34 | join('&'), 35 | ); 36 | 37 | // Convert a query string to an object. 38 | export const fromQueryString = pipe( 39 | replace(/.*\?/, ''), 40 | replace(/#.*/, ''), 41 | split('&'), 42 | map(split('=')), 43 | fromPairs, 44 | ); 45 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-simple-auth", 3 | "version": "2.4.0", 4 | "description": "Native social authentication for React Native", 5 | "main": "index.js", 6 | "scripts": { 7 | "build": "babel . --out-dir dist --ignore=dist,node_modules", 8 | "pretest": "eslint lib", 9 | "test": "mocha lib/**/*.test.js --require babel-register", 10 | "test:watch": "npm test -- --watch" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/adamjmcgrath/react-native-simple-auth" 15 | }, 16 | "homepage": "https://github.com/adamjmcgrath/react-native-simple-auth", 17 | "author": "Adam Mcgrath", 18 | "keywords": [ 19 | "react-native", 20 | "react-component", 21 | "react", 22 | "iOS", 23 | "simple-auth" 24 | ], 25 | "bugs": { 26 | "url": "https://github.com/adamjmcgrath/react-native-simple-auth/issues" 27 | }, 28 | "devDependencies": { 29 | "babel-cli": "^6.18.0", 30 | "eslint": "^3.11.0", 31 | "eslint-config-airbnb": "^13.0.0", 32 | "eslint-plugin-import": "^2.2.0", 33 | "eslint-plugin-jsx-a11y": "^2.2.3", 34 | "eslint-plugin-react": "^6.7.1", 35 | "mocha": "^3.1.2" 36 | }, 37 | "peerDependencies": { 38 | "react": "*", 39 | "react-native": "*" 40 | }, 41 | "dependencies": { 42 | "babel-plugin-ramda-patch": "1.1.6", 43 | "babel-plugin-transform-es2015-modules-commonjs": "^6.18.0", 44 | "babel-plugin-transform-object-rest-spread": "^6.22.0", 45 | "hmacsha1": "^1.0.0", 46 | "ramda": "^0.22.1" 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /screencast-android.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamjmcgrath/react-native-simple-auth/d187d74ac5abebef2b0407c27364c7f7a0b18377/screencast-android.gif -------------------------------------------------------------------------------- /screencast-ios.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamjmcgrath/react-native-simple-auth/d187d74ac5abebef2b0407c27364c7f7a0b18377/screencast-ios.gif -------------------------------------------------------------------------------- /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-jsx@^3.0.0, acorn-jsx@^3.0.1: 10 | version "3.0.1" 11 | resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" 12 | dependencies: 13 | acorn "^3.0.4" 14 | 15 | acorn@^3.0.4: 16 | version "3.3.0" 17 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" 18 | 19 | acorn@^4.0.1: 20 | version "4.0.4" 21 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.4.tgz#17a8d6a7a6c4ef538b814ec9abac2779293bf30a" 22 | 23 | ajv-keywords@^1.0.0: 24 | version "1.4.1" 25 | resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.4.1.tgz#f080e635e230baae26537ce727f260ae62b43802" 26 | 27 | ajv@^4.7.0: 28 | version "4.10.2" 29 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.10.2.tgz#27a61437962cb6daf8023ca9ad2a30337d918dda" 30 | dependencies: 31 | co "^4.6.0" 32 | json-stable-stringify "^1.0.1" 33 | 34 | ansi-escapes@^1.1.0: 35 | version "1.4.0" 36 | resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" 37 | 38 | ansi-regex@^2.0.0: 39 | version "2.0.0" 40 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.0.0.tgz#c5061b6e0ef8a81775e50f5d66151bf6bf371107" 41 | 42 | ansi-styles@^2.2.1: 43 | version "2.2.1" 44 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" 45 | 46 | anymatch@^1.3.0: 47 | version "1.3.0" 48 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507" 49 | dependencies: 50 | arrify "^1.0.0" 51 | micromatch "^2.1.5" 52 | 53 | aproba@^1.0.3: 54 | version "1.0.4" 55 | resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.0.4.tgz#2713680775e7614c8ba186c065d4e2e52d1072c0" 56 | 57 | are-we-there-yet@~1.1.2: 58 | version "1.1.2" 59 | resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.2.tgz#80e470e95a084794fe1899262c5667c6e88de1b3" 60 | dependencies: 61 | delegates "^1.0.0" 62 | readable-stream "^2.0.0 || ^1.1.13" 63 | 64 | argparse@^1.0.7: 65 | version "1.0.9" 66 | resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" 67 | dependencies: 68 | sprintf-js "~1.0.2" 69 | 70 | arr-diff@^2.0.0: 71 | version "2.0.0" 72 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" 73 | dependencies: 74 | arr-flatten "^1.0.1" 75 | 76 | arr-flatten@^1.0.1: 77 | version "1.0.1" 78 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.0.1.tgz#e5ffe54d45e19f32f216e91eb99c8ce892bb604b" 79 | 80 | array-union@^1.0.1: 81 | version "1.0.2" 82 | resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" 83 | dependencies: 84 | array-uniq "^1.0.1" 85 | 86 | array-uniq@^1.0.1: 87 | version "1.0.3" 88 | resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" 89 | 90 | array-unique@^0.2.1: 91 | version "0.2.1" 92 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" 93 | 94 | arrify@^1.0.0: 95 | version "1.0.1" 96 | resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" 97 | 98 | asn1@~0.2.3: 99 | version "0.2.3" 100 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" 101 | 102 | assert-plus@^0.2.0: 103 | version "0.2.0" 104 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" 105 | 106 | assert-plus@^1.0.0: 107 | version "1.0.0" 108 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 109 | 110 | async-each@^1.0.0: 111 | version "1.0.1" 112 | resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" 113 | 114 | asynckit@^0.4.0: 115 | version "0.4.0" 116 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 117 | 118 | aws-sign2@~0.6.0: 119 | version "0.6.0" 120 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" 121 | 122 | aws4@^1.2.1: 123 | version "1.5.0" 124 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.5.0.tgz#0a29ffb79c31c9e712eeb087e8e7a64b4a56d755" 125 | 126 | babel-cli@^6.18.0: 127 | version "6.18.0" 128 | resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.18.0.tgz#92117f341add9dead90f6fa7d0a97c0cc08ec186" 129 | dependencies: 130 | babel-core "^6.18.0" 131 | babel-polyfill "^6.16.0" 132 | babel-register "^6.18.0" 133 | babel-runtime "^6.9.0" 134 | commander "^2.8.1" 135 | convert-source-map "^1.1.0" 136 | fs-readdir-recursive "^1.0.0" 137 | glob "^5.0.5" 138 | lodash "^4.2.0" 139 | output-file-sync "^1.1.0" 140 | path-is-absolute "^1.0.0" 141 | slash "^1.0.0" 142 | source-map "^0.5.0" 143 | v8flags "^2.0.10" 144 | optionalDependencies: 145 | chokidar "^1.0.0" 146 | 147 | babel-code-frame@^6.16.0, babel-code-frame@^6.20.0: 148 | version "6.20.0" 149 | resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.20.0.tgz#b968f839090f9a8bc6d41938fb96cb84f7387b26" 150 | dependencies: 151 | chalk "^1.1.0" 152 | esutils "^2.0.2" 153 | js-tokens "^2.0.0" 154 | 155 | babel-core@^6.18.0: 156 | version "6.21.0" 157 | resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.21.0.tgz#75525480c21c803f826ef3867d22c19f080a3724" 158 | dependencies: 159 | babel-code-frame "^6.20.0" 160 | babel-generator "^6.21.0" 161 | babel-helpers "^6.16.0" 162 | babel-messages "^6.8.0" 163 | babel-register "^6.18.0" 164 | babel-runtime "^6.20.0" 165 | babel-template "^6.16.0" 166 | babel-traverse "^6.21.0" 167 | babel-types "^6.21.0" 168 | babylon "^6.11.0" 169 | convert-source-map "^1.1.0" 170 | debug "^2.1.1" 171 | json5 "^0.5.0" 172 | lodash "^4.2.0" 173 | minimatch "^3.0.2" 174 | path-is-absolute "^1.0.0" 175 | private "^0.1.6" 176 | slash "^1.0.0" 177 | source-map "^0.5.0" 178 | 179 | babel-generator@^6.21.0: 180 | version "6.21.0" 181 | resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.21.0.tgz#605f1269c489a1c75deeca7ea16d43d4656c8494" 182 | dependencies: 183 | babel-messages "^6.8.0" 184 | babel-runtime "^6.20.0" 185 | babel-types "^6.21.0" 186 | detect-indent "^4.0.0" 187 | jsesc "^1.3.0" 188 | lodash "^4.2.0" 189 | source-map "^0.5.0" 190 | 191 | babel-helpers@^6.16.0: 192 | version "6.16.0" 193 | resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.16.0.tgz#1095ec10d99279460553e67eb3eee9973d3867e3" 194 | dependencies: 195 | babel-runtime "^6.0.0" 196 | babel-template "^6.16.0" 197 | 198 | babel-messages@^6.8.0: 199 | version "6.8.0" 200 | resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.8.0.tgz#bf504736ca967e6d65ef0adb5a2a5f947c8e0eb9" 201 | dependencies: 202 | babel-runtime "^6.0.0" 203 | 204 | babel-plugin-ramda-patch@1.1.6: 205 | version "1.1.6" 206 | resolved "https://registry.yarnpkg.com/babel-plugin-ramda-patch/-/babel-plugin-ramda-patch-1.1.6.tgz#0303003aca2ebb4e610236caed498e3b9001f9ee" 207 | dependencies: 208 | ramda "^0.19.1" 209 | 210 | babel-plugin-syntax-object-rest-spread@^6.8.0: 211 | version "6.13.0" 212 | resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" 213 | 214 | babel-plugin-transform-es2015-modules-commonjs@^6.18.0: 215 | version "6.18.0" 216 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.18.0.tgz#c15ae5bb11b32a0abdcc98a5837baa4ee8d67bcc" 217 | dependencies: 218 | babel-plugin-transform-strict-mode "^6.18.0" 219 | babel-runtime "^6.0.0" 220 | babel-template "^6.16.0" 221 | babel-types "^6.18.0" 222 | 223 | babel-plugin-transform-object-rest-spread@^6.22.0: 224 | version "6.22.0" 225 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.22.0.tgz#1d419b55e68d2e4f64a5ff3373bd67d73c8e83bc" 226 | dependencies: 227 | babel-plugin-syntax-object-rest-spread "^6.8.0" 228 | babel-runtime "^6.22.0" 229 | 230 | babel-plugin-transform-strict-mode@^6.18.0: 231 | version "6.18.0" 232 | resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.18.0.tgz#df7cf2991fe046f44163dcd110d5ca43bc652b9d" 233 | dependencies: 234 | babel-runtime "^6.0.0" 235 | babel-types "^6.18.0" 236 | 237 | babel-polyfill@^6.16.0: 238 | version "6.20.0" 239 | resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.20.0.tgz#de4a371006139e20990aac0be367d398331204e7" 240 | dependencies: 241 | babel-runtime "^6.20.0" 242 | core-js "^2.4.0" 243 | regenerator-runtime "^0.10.0" 244 | 245 | babel-register@^6.18.0: 246 | version "6.18.0" 247 | resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.18.0.tgz#892e2e03865078dd90ad2c715111ec4449b32a68" 248 | dependencies: 249 | babel-core "^6.18.0" 250 | babel-runtime "^6.11.6" 251 | core-js "^2.4.0" 252 | home-or-tmp "^2.0.0" 253 | lodash "^4.2.0" 254 | mkdirp "^0.5.1" 255 | source-map-support "^0.4.2" 256 | 257 | babel-runtime@^6.0.0, babel-runtime@^6.11.6, babel-runtime@^6.20.0, babel-runtime@^6.9.0: 258 | version "6.20.0" 259 | resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.20.0.tgz#87300bdcf4cd770f09bf0048c64204e17806d16f" 260 | dependencies: 261 | core-js "^2.4.0" 262 | regenerator-runtime "^0.10.0" 263 | 264 | babel-runtime@^6.22.0: 265 | version "6.22.0" 266 | resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.22.0.tgz#1cf8b4ac67c77a4ddb0db2ae1f74de52ac4ca611" 267 | dependencies: 268 | core-js "^2.4.0" 269 | regenerator-runtime "^0.10.0" 270 | 271 | babel-template@^6.16.0: 272 | version "6.16.0" 273 | resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.16.0.tgz#e149dd1a9f03a35f817ddbc4d0481988e7ebc8ca" 274 | dependencies: 275 | babel-runtime "^6.9.0" 276 | babel-traverse "^6.16.0" 277 | babel-types "^6.16.0" 278 | babylon "^6.11.0" 279 | lodash "^4.2.0" 280 | 281 | babel-traverse@^6.16.0, babel-traverse@^6.21.0: 282 | version "6.21.0" 283 | resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.21.0.tgz#69c6365804f1a4f69eb1213f85b00a818b8c21ad" 284 | dependencies: 285 | babel-code-frame "^6.20.0" 286 | babel-messages "^6.8.0" 287 | babel-runtime "^6.20.0" 288 | babel-types "^6.21.0" 289 | babylon "^6.11.0" 290 | debug "^2.2.0" 291 | globals "^9.0.0" 292 | invariant "^2.2.0" 293 | lodash "^4.2.0" 294 | 295 | babel-types@^6.16.0, babel-types@^6.18.0, babel-types@^6.21.0: 296 | version "6.21.0" 297 | resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.21.0.tgz#314b92168891ef6d3806b7f7a917fdf87c11a4b2" 298 | dependencies: 299 | babel-runtime "^6.20.0" 300 | esutils "^2.0.2" 301 | lodash "^4.2.0" 302 | to-fast-properties "^1.0.1" 303 | 304 | babylon@^6.11.0: 305 | version "6.14.1" 306 | resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.14.1.tgz#956275fab72753ad9b3435d7afe58f8bf0a29815" 307 | 308 | balanced-match@^0.4.1: 309 | version "0.4.2" 310 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" 311 | 312 | bcrypt-pbkdf@^1.0.0: 313 | version "1.0.0" 314 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.0.tgz#3ca76b85241c7170bf7d9703e7b9aa74630040d4" 315 | dependencies: 316 | tweetnacl "^0.14.3" 317 | 318 | binary-extensions@^1.0.0: 319 | version "1.8.0" 320 | resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.8.0.tgz#48ec8d16df4377eae5fa5884682480af4d95c774" 321 | 322 | block-stream@*: 323 | version "0.0.9" 324 | resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" 325 | dependencies: 326 | inherits "~2.0.0" 327 | 328 | boom@2.x.x: 329 | version "2.10.1" 330 | resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" 331 | dependencies: 332 | hoek "2.x.x" 333 | 334 | brace-expansion@^1.0.0: 335 | version "1.1.6" 336 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9" 337 | dependencies: 338 | balanced-match "^0.4.1" 339 | concat-map "0.0.1" 340 | 341 | braces@^1.8.2: 342 | version "1.8.5" 343 | resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" 344 | dependencies: 345 | expand-range "^1.8.1" 346 | preserve "^0.2.0" 347 | repeat-element "^1.1.2" 348 | 349 | browser-stdout@1.3.0: 350 | version "1.3.0" 351 | resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0.tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f" 352 | 353 | buffer-shims@^1.0.0: 354 | version "1.0.0" 355 | resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" 356 | 357 | builtin-modules@^1.1.1: 358 | version "1.1.1" 359 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 360 | 361 | caller-path@^0.1.0: 362 | version "0.1.0" 363 | resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f" 364 | dependencies: 365 | callsites "^0.2.0" 366 | 367 | callsites@^0.2.0: 368 | version "0.2.0" 369 | resolved "https://registry.yarnpkg.com/callsites/-/callsites-0.2.0.tgz#afab96262910a7f33c19a5775825c69f34e350ca" 370 | 371 | caseless@~0.11.0: 372 | version "0.11.0" 373 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" 374 | 375 | chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3: 376 | version "1.1.3" 377 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" 378 | dependencies: 379 | ansi-styles "^2.2.1" 380 | escape-string-regexp "^1.0.2" 381 | has-ansi "^2.0.0" 382 | strip-ansi "^3.0.0" 383 | supports-color "^2.0.0" 384 | 385 | chokidar@^1.0.0: 386 | version "1.6.1" 387 | resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.6.1.tgz#2f4447ab5e96e50fb3d789fd90d4c72e0e4c70c2" 388 | dependencies: 389 | anymatch "^1.3.0" 390 | async-each "^1.0.0" 391 | glob-parent "^2.0.0" 392 | inherits "^2.0.1" 393 | is-binary-path "^1.0.0" 394 | is-glob "^2.0.0" 395 | path-is-absolute "^1.0.0" 396 | readdirp "^2.0.0" 397 | optionalDependencies: 398 | fsevents "^1.0.0" 399 | 400 | circular-json@^0.3.1: 401 | version "0.3.1" 402 | resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.1.tgz#be8b36aefccde8b3ca7aa2d6afc07a37242c0d2d" 403 | 404 | cli-cursor@^1.0.1: 405 | version "1.0.2" 406 | resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987" 407 | dependencies: 408 | restore-cursor "^1.0.1" 409 | 410 | cli-width@^2.0.0: 411 | version "2.1.0" 412 | resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.1.0.tgz#b234ca209b29ef66fc518d9b98d5847b00edf00a" 413 | 414 | co@^4.6.0: 415 | version "4.6.0" 416 | resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" 417 | 418 | code-point-at@^1.0.0: 419 | version "1.1.0" 420 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 421 | 422 | combined-stream@^1.0.5, combined-stream@~1.0.5: 423 | version "1.0.5" 424 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" 425 | dependencies: 426 | delayed-stream "~1.0.0" 427 | 428 | commander@2.9.0, commander@^2.8.1, commander@^2.9.0: 429 | version "2.9.0" 430 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" 431 | dependencies: 432 | graceful-readlink ">= 1.0.0" 433 | 434 | concat-map@0.0.1: 435 | version "0.0.1" 436 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 437 | 438 | concat-stream@^1.4.6: 439 | version "1.6.0" 440 | resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7" 441 | dependencies: 442 | inherits "^2.0.3" 443 | readable-stream "^2.2.2" 444 | typedarray "^0.0.6" 445 | 446 | console-control-strings@^1.0.0, console-control-strings@~1.1.0: 447 | version "1.1.0" 448 | resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" 449 | 450 | contains-path@^0.1.0: 451 | version "0.1.0" 452 | resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" 453 | 454 | convert-source-map@^1.1.0: 455 | version "1.3.0" 456 | resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.3.0.tgz#e9f3e9c6e2728efc2676696a70eb382f73106a67" 457 | 458 | core-js@^2.4.0: 459 | version "2.4.1" 460 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.4.1.tgz#4de911e667b0eae9124e34254b53aea6fc618d3e" 461 | 462 | core-util-is@~1.0.0: 463 | version "1.0.2" 464 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 465 | 466 | cryptiles@2.x.x: 467 | version "2.0.5" 468 | resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" 469 | dependencies: 470 | boom "2.x.x" 471 | 472 | d@^0.1.1, d@~0.1.1: 473 | version "0.1.1" 474 | resolved "https://registry.yarnpkg.com/d/-/d-0.1.1.tgz#da184c535d18d8ee7ba2aa229b914009fae11309" 475 | dependencies: 476 | es5-ext "~0.10.2" 477 | 478 | damerau-levenshtein@^1.0.0: 479 | version "1.0.3" 480 | resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.3.tgz#ae4f4ce0b62acae10ff63a01bb08f652f5213af2" 481 | 482 | dashdash@^1.12.0: 483 | version "1.14.1" 484 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 485 | dependencies: 486 | assert-plus "^1.0.0" 487 | 488 | debug@2.2.0, debug@~2.2.0: 489 | version "2.2.0" 490 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da" 491 | dependencies: 492 | ms "0.7.1" 493 | 494 | debug@^2.1.1, debug@^2.2.0: 495 | version "2.5.1" 496 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.5.1.tgz#9107bb4a506052ec2a02314bc606313ed2b921c1" 497 | dependencies: 498 | ms "0.7.2" 499 | 500 | deep-extend@~0.4.0: 501 | version "0.4.1" 502 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.1.tgz#efe4113d08085f4e6f9687759810f807469e2253" 503 | 504 | deep-is@~0.1.3: 505 | version "0.1.3" 506 | resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" 507 | 508 | del@^2.0.2: 509 | version "2.2.2" 510 | resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" 511 | dependencies: 512 | globby "^5.0.0" 513 | is-path-cwd "^1.0.0" 514 | is-path-in-cwd "^1.0.0" 515 | object-assign "^4.0.1" 516 | pify "^2.0.0" 517 | pinkie-promise "^2.0.0" 518 | rimraf "^2.2.8" 519 | 520 | delayed-stream@~1.0.0: 521 | version "1.0.0" 522 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 523 | 524 | delegates@^1.0.0: 525 | version "1.0.0" 526 | resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" 527 | 528 | detect-indent@^4.0.0: 529 | version "4.0.0" 530 | resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" 531 | dependencies: 532 | repeating "^2.0.0" 533 | 534 | diff@1.4.0: 535 | version "1.4.0" 536 | resolved "https://registry.yarnpkg.com/diff/-/diff-1.4.0.tgz#7f28d2eb9ee7b15a97efd89ce63dcfdaa3ccbabf" 537 | 538 | doctrine@1.5.0, doctrine@^1.2.2: 539 | version "1.5.0" 540 | resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" 541 | dependencies: 542 | esutils "^2.0.2" 543 | isarray "^1.0.0" 544 | 545 | ecc-jsbn@~0.1.1: 546 | version "0.1.1" 547 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" 548 | dependencies: 549 | jsbn "~0.1.0" 550 | 551 | es5-ext@^0.10.7, es5-ext@^0.10.8, es5-ext@~0.10.11, es5-ext@~0.10.2, es5-ext@~0.10.7: 552 | version "0.10.12" 553 | resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.12.tgz#aa84641d4db76b62abba5e45fd805ecbab140047" 554 | dependencies: 555 | es6-iterator "2" 556 | es6-symbol "~3.1" 557 | 558 | es6-iterator@2: 559 | version "2.0.0" 560 | resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.0.tgz#bd968567d61635e33c0b80727613c9cb4b096bac" 561 | dependencies: 562 | d "^0.1.1" 563 | es5-ext "^0.10.7" 564 | es6-symbol "3" 565 | 566 | es6-map@^0.1.3: 567 | version "0.1.4" 568 | resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.4.tgz#a34b147be224773a4d7da8072794cefa3632b897" 569 | dependencies: 570 | d "~0.1.1" 571 | es5-ext "~0.10.11" 572 | es6-iterator "2" 573 | es6-set "~0.1.3" 574 | es6-symbol "~3.1.0" 575 | event-emitter "~0.3.4" 576 | 577 | es6-set@~0.1.3: 578 | version "0.1.4" 579 | resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.4.tgz#9516b6761c2964b92ff479456233a247dc707ce8" 580 | dependencies: 581 | d "~0.1.1" 582 | es5-ext "~0.10.11" 583 | es6-iterator "2" 584 | es6-symbol "3" 585 | event-emitter "~0.3.4" 586 | 587 | es6-symbol@3, es6-symbol@~3.1, es6-symbol@~3.1.0: 588 | version "3.1.0" 589 | resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.0.tgz#94481c655e7a7cad82eba832d97d5433496d7ffa" 590 | dependencies: 591 | d "~0.1.1" 592 | es5-ext "~0.10.11" 593 | 594 | es6-weak-map@^2.0.1: 595 | version "2.0.1" 596 | resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.1.tgz#0d2bbd8827eb5fb4ba8f97fbfea50d43db21ea81" 597 | dependencies: 598 | d "^0.1.1" 599 | es5-ext "^0.10.8" 600 | es6-iterator "2" 601 | es6-symbol "3" 602 | 603 | escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: 604 | version "1.0.5" 605 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 606 | 607 | escope@^3.6.0: 608 | version "3.6.0" 609 | resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3" 610 | dependencies: 611 | es6-map "^0.1.3" 612 | es6-weak-map "^2.0.1" 613 | esrecurse "^4.1.0" 614 | estraverse "^4.1.1" 615 | 616 | eslint-config-airbnb-base@^10.0.0: 617 | version "10.0.1" 618 | resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-10.0.1.tgz#f17d4e52992c1d45d1b7713efbcd5ecd0e7e0506" 619 | 620 | eslint-config-airbnb@^13.0.0: 621 | version "13.0.0" 622 | resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-13.0.0.tgz#688d15d3c276c0c753ae538c92a44397d76ae46e" 623 | dependencies: 624 | eslint-config-airbnb-base "^10.0.0" 625 | 626 | eslint-import-resolver-node@^0.2.0: 627 | version "0.2.3" 628 | resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.2.3.tgz#5add8106e8c928db2cba232bcd9efa846e3da16c" 629 | dependencies: 630 | debug "^2.2.0" 631 | object-assign "^4.0.1" 632 | resolve "^1.1.6" 633 | 634 | eslint-module-utils@^2.0.0: 635 | version "2.0.0" 636 | resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.0.0.tgz#a6f8c21d901358759cdc35dbac1982ae1ee58bce" 637 | dependencies: 638 | debug "2.2.0" 639 | pkg-dir "^1.0.0" 640 | 641 | eslint-plugin-import@^2.2.0: 642 | version "2.2.0" 643 | resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.2.0.tgz#72ba306fad305d67c4816348a4699a4229ac8b4e" 644 | dependencies: 645 | builtin-modules "^1.1.1" 646 | contains-path "^0.1.0" 647 | debug "^2.2.0" 648 | doctrine "1.5.0" 649 | eslint-import-resolver-node "^0.2.0" 650 | eslint-module-utils "^2.0.0" 651 | has "^1.0.1" 652 | lodash.cond "^4.3.0" 653 | minimatch "^3.0.3" 654 | pkg-up "^1.0.0" 655 | 656 | eslint-plugin-jsx-a11y@^2.2.3: 657 | version "2.2.3" 658 | resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-2.2.3.tgz#4e35cb71b8a7db702ac415c806eb8e8d9ea6c65d" 659 | dependencies: 660 | damerau-levenshtein "^1.0.0" 661 | jsx-ast-utils "^1.0.0" 662 | object-assign "^4.0.1" 663 | 664 | eslint-plugin-react@^6.7.1: 665 | version "6.8.0" 666 | resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-6.8.0.tgz#741ab5438a094532e5ce1bbb935d6832356f492d" 667 | dependencies: 668 | doctrine "^1.2.2" 669 | jsx-ast-utils "^1.3.4" 670 | 671 | eslint@^3.11.0: 672 | version "3.12.2" 673 | resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.12.2.tgz#6be5a9aa29658252abd7f91e9132bab1f26f3c34" 674 | dependencies: 675 | babel-code-frame "^6.16.0" 676 | chalk "^1.1.3" 677 | concat-stream "^1.4.6" 678 | debug "^2.1.1" 679 | doctrine "^1.2.2" 680 | escope "^3.6.0" 681 | espree "^3.3.1" 682 | estraverse "^4.2.0" 683 | esutils "^2.0.2" 684 | file-entry-cache "^2.0.0" 685 | glob "^7.0.3" 686 | globals "^9.14.0" 687 | ignore "^3.2.0" 688 | imurmurhash "^0.1.4" 689 | inquirer "^0.12.0" 690 | is-my-json-valid "^2.10.0" 691 | is-resolvable "^1.0.0" 692 | js-yaml "^3.5.1" 693 | json-stable-stringify "^1.0.0" 694 | levn "^0.3.0" 695 | lodash "^4.0.0" 696 | mkdirp "^0.5.0" 697 | natural-compare "^1.4.0" 698 | optionator "^0.8.2" 699 | path-is-inside "^1.0.1" 700 | pluralize "^1.2.1" 701 | progress "^1.1.8" 702 | require-uncached "^1.0.2" 703 | shelljs "^0.7.5" 704 | strip-bom "^3.0.0" 705 | strip-json-comments "~1.0.1" 706 | table "^3.7.8" 707 | text-table "~0.2.0" 708 | user-home "^2.0.0" 709 | 710 | espree@^3.3.1: 711 | version "3.3.2" 712 | resolved "https://registry.yarnpkg.com/espree/-/espree-3.3.2.tgz#dbf3fadeb4ecb4d4778303e50103b3d36c88b89c" 713 | dependencies: 714 | acorn "^4.0.1" 715 | acorn-jsx "^3.0.0" 716 | 717 | esprima@^2.6.0: 718 | version "2.7.3" 719 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" 720 | 721 | esrecurse@^4.1.0: 722 | version "4.1.0" 723 | resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.1.0.tgz#4713b6536adf7f2ac4f327d559e7756bff648220" 724 | dependencies: 725 | estraverse "~4.1.0" 726 | object-assign "^4.0.1" 727 | 728 | estraverse@^4.1.1, estraverse@^4.2.0: 729 | version "4.2.0" 730 | resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" 731 | 732 | estraverse@~4.1.0: 733 | version "4.1.1" 734 | resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.1.1.tgz#f6caca728933a850ef90661d0e17982ba47111a2" 735 | 736 | esutils@^2.0.2: 737 | version "2.0.2" 738 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 739 | 740 | event-emitter@~0.3.4: 741 | version "0.3.4" 742 | resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.4.tgz#8d63ddfb4cfe1fae3b32ca265c4c720222080bb5" 743 | dependencies: 744 | d "~0.1.1" 745 | es5-ext "~0.10.7" 746 | 747 | exit-hook@^1.0.0: 748 | version "1.1.1" 749 | resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8" 750 | 751 | expand-brackets@^0.1.4: 752 | version "0.1.5" 753 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" 754 | dependencies: 755 | is-posix-bracket "^0.1.0" 756 | 757 | expand-range@^1.8.1: 758 | version "1.8.2" 759 | resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" 760 | dependencies: 761 | fill-range "^2.1.0" 762 | 763 | extend@~3.0.0: 764 | version "3.0.0" 765 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4" 766 | 767 | extglob@^0.3.1: 768 | version "0.3.2" 769 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" 770 | dependencies: 771 | is-extglob "^1.0.0" 772 | 773 | extsprintf@1.0.2: 774 | version "1.0.2" 775 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550" 776 | 777 | fast-levenshtein@~2.0.4: 778 | version "2.0.5" 779 | resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.5.tgz#bd33145744519ab1c36c3ee9f31f08e9079b67f2" 780 | 781 | figures@^1.3.5: 782 | version "1.7.0" 783 | resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e" 784 | dependencies: 785 | escape-string-regexp "^1.0.5" 786 | object-assign "^4.1.0" 787 | 788 | file-entry-cache@^2.0.0: 789 | version "2.0.0" 790 | resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361" 791 | dependencies: 792 | flat-cache "^1.2.1" 793 | object-assign "^4.0.1" 794 | 795 | filename-regex@^2.0.0: 796 | version "2.0.0" 797 | resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.0.tgz#996e3e80479b98b9897f15a8a58b3d084e926775" 798 | 799 | fill-range@^2.1.0: 800 | version "2.2.3" 801 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" 802 | dependencies: 803 | is-number "^2.1.0" 804 | isobject "^2.0.0" 805 | randomatic "^1.1.3" 806 | repeat-element "^1.1.2" 807 | repeat-string "^1.5.2" 808 | 809 | find-up@^1.0.0: 810 | version "1.1.2" 811 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" 812 | dependencies: 813 | path-exists "^2.0.0" 814 | pinkie-promise "^2.0.0" 815 | 816 | flat-cache@^1.2.1: 817 | version "1.2.2" 818 | resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.2.2.tgz#fa86714e72c21db88601761ecf2f555d1abc6b96" 819 | dependencies: 820 | circular-json "^0.3.1" 821 | del "^2.0.2" 822 | graceful-fs "^4.1.2" 823 | write "^0.2.1" 824 | 825 | for-in@^0.1.5: 826 | version "0.1.6" 827 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.6.tgz#c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8" 828 | 829 | for-own@^0.1.4: 830 | version "0.1.4" 831 | resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.4.tgz#0149b41a39088c7515f51ebe1c1386d45f935072" 832 | dependencies: 833 | for-in "^0.1.5" 834 | 835 | forever-agent@~0.6.1: 836 | version "0.6.1" 837 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 838 | 839 | form-data@~2.1.1: 840 | version "2.1.2" 841 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.2.tgz#89c3534008b97eada4cbb157d58f6f5df025eae4" 842 | dependencies: 843 | asynckit "^0.4.0" 844 | combined-stream "^1.0.5" 845 | mime-types "^2.1.12" 846 | 847 | fs-readdir-recursive@^1.0.0: 848 | version "1.0.0" 849 | resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.0.0.tgz#8cd1745c8b4f8a29c8caec392476921ba195f560" 850 | 851 | fs.realpath@^1.0.0: 852 | version "1.0.0" 853 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 854 | 855 | fsevents@^1.0.0: 856 | version "1.0.15" 857 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.0.15.tgz#fa63f590f3c2ad91275e4972a6cea545fb0aae44" 858 | dependencies: 859 | nan "^2.3.0" 860 | node-pre-gyp "^0.6.29" 861 | 862 | fstream-ignore@~1.0.5: 863 | version "1.0.5" 864 | resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" 865 | dependencies: 866 | fstream "^1.0.0" 867 | inherits "2" 868 | minimatch "^3.0.0" 869 | 870 | fstream@^1.0.0, fstream@^1.0.2, fstream@~1.0.10: 871 | version "1.0.10" 872 | resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.10.tgz#604e8a92fe26ffd9f6fae30399d4984e1ab22822" 873 | dependencies: 874 | graceful-fs "^4.1.2" 875 | inherits "~2.0.0" 876 | mkdirp ">=0.5 0" 877 | rimraf "2" 878 | 879 | function-bind@^1.0.2: 880 | version "1.1.0" 881 | resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771" 882 | 883 | gauge@~2.7.1: 884 | version "2.7.2" 885 | resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.2.tgz#15cecc31b02d05345a5d6b0e171cdb3ad2307774" 886 | dependencies: 887 | aproba "^1.0.3" 888 | console-control-strings "^1.0.0" 889 | has-unicode "^2.0.0" 890 | object-assign "^4.1.0" 891 | signal-exit "^3.0.0" 892 | string-width "^1.0.1" 893 | strip-ansi "^3.0.1" 894 | supports-color "^0.2.0" 895 | wide-align "^1.1.0" 896 | 897 | generate-function@^2.0.0: 898 | version "2.0.0" 899 | resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" 900 | 901 | generate-object-property@^1.1.0: 902 | version "1.2.0" 903 | resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" 904 | dependencies: 905 | is-property "^1.0.0" 906 | 907 | getpass@^0.1.1: 908 | version "0.1.6" 909 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.6.tgz#283ffd9fc1256840875311c1b60e8c40187110e6" 910 | dependencies: 911 | assert-plus "^1.0.0" 912 | 913 | glob-base@^0.3.0: 914 | version "0.3.0" 915 | resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" 916 | dependencies: 917 | glob-parent "^2.0.0" 918 | is-glob "^2.0.0" 919 | 920 | glob-parent@^2.0.0: 921 | version "2.0.0" 922 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" 923 | dependencies: 924 | is-glob "^2.0.0" 925 | 926 | glob@7.0.5: 927 | version "7.0.5" 928 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.0.5.tgz#b4202a69099bbb4d292a7c1b95b6682b67ebdc95" 929 | dependencies: 930 | fs.realpath "^1.0.0" 931 | inflight "^1.0.4" 932 | inherits "2" 933 | minimatch "^3.0.2" 934 | once "^1.3.0" 935 | path-is-absolute "^1.0.0" 936 | 937 | glob@^5.0.5: 938 | version "5.0.15" 939 | resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" 940 | dependencies: 941 | inflight "^1.0.4" 942 | inherits "2" 943 | minimatch "2 || 3" 944 | once "^1.3.0" 945 | path-is-absolute "^1.0.0" 946 | 947 | glob@^7.0.0, glob@^7.0.3, glob@^7.0.5: 948 | version "7.1.1" 949 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" 950 | dependencies: 951 | fs.realpath "^1.0.0" 952 | inflight "^1.0.4" 953 | inherits "2" 954 | minimatch "^3.0.2" 955 | once "^1.3.0" 956 | path-is-absolute "^1.0.0" 957 | 958 | globals@^9.0.0, globals@^9.14.0: 959 | version "9.14.0" 960 | resolved "https://registry.yarnpkg.com/globals/-/globals-9.14.0.tgz#8859936af0038741263053b39d0e76ca241e4034" 961 | 962 | globby@^5.0.0: 963 | version "5.0.0" 964 | resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d" 965 | dependencies: 966 | array-union "^1.0.1" 967 | arrify "^1.0.0" 968 | glob "^7.0.3" 969 | object-assign "^4.0.1" 970 | pify "^2.0.0" 971 | pinkie-promise "^2.0.0" 972 | 973 | graceful-fs@^4.1.2, graceful-fs@^4.1.4: 974 | version "4.1.11" 975 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" 976 | 977 | "graceful-readlink@>= 1.0.0": 978 | version "1.0.1" 979 | resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" 980 | 981 | growl@1.9.2: 982 | version "1.9.2" 983 | resolved "https://registry.yarnpkg.com/growl/-/growl-1.9.2.tgz#0ea7743715db8d8de2c5ede1775e1b45ac85c02f" 984 | 985 | har-validator@~2.0.6: 986 | version "2.0.6" 987 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" 988 | dependencies: 989 | chalk "^1.1.1" 990 | commander "^2.9.0" 991 | is-my-json-valid "^2.12.4" 992 | pinkie-promise "^2.0.0" 993 | 994 | has-ansi@^2.0.0: 995 | version "2.0.0" 996 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" 997 | dependencies: 998 | ansi-regex "^2.0.0" 999 | 1000 | has-flag@^1.0.0: 1001 | version "1.0.0" 1002 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" 1003 | 1004 | has-unicode@^2.0.0: 1005 | version "2.0.1" 1006 | resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" 1007 | 1008 | has@^1.0.1: 1009 | version "1.0.1" 1010 | resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" 1011 | dependencies: 1012 | function-bind "^1.0.2" 1013 | 1014 | hawk@~3.1.3: 1015 | version "3.1.3" 1016 | resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" 1017 | dependencies: 1018 | boom "2.x.x" 1019 | cryptiles "2.x.x" 1020 | hoek "2.x.x" 1021 | sntp "1.x.x" 1022 | 1023 | hmacsha1@^1.0.0: 1024 | version "1.0.0" 1025 | resolved "https://registry.yarnpkg.com/hmacsha1/-/hmacsha1-1.0.0.tgz#c1b7ae03a4ea116348090af14f8148c12938a917" 1026 | 1027 | hoek@2.x.x: 1028 | version "2.16.3" 1029 | resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" 1030 | 1031 | home-or-tmp@^2.0.0: 1032 | version "2.0.0" 1033 | resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" 1034 | dependencies: 1035 | os-homedir "^1.0.0" 1036 | os-tmpdir "^1.0.1" 1037 | 1038 | http-signature@~1.1.0: 1039 | version "1.1.1" 1040 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" 1041 | dependencies: 1042 | assert-plus "^0.2.0" 1043 | jsprim "^1.2.2" 1044 | sshpk "^1.7.0" 1045 | 1046 | ignore@^3.2.0: 1047 | version "3.2.0" 1048 | resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.2.0.tgz#8d88f03c3002a0ac52114db25d2c673b0bf1e435" 1049 | 1050 | imurmurhash@^0.1.4: 1051 | version "0.1.4" 1052 | resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" 1053 | 1054 | inflight@^1.0.4: 1055 | version "1.0.6" 1056 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 1057 | dependencies: 1058 | once "^1.3.0" 1059 | wrappy "1" 1060 | 1061 | inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1: 1062 | version "2.0.3" 1063 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 1064 | 1065 | ini@~1.3.0: 1066 | version "1.3.4" 1067 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" 1068 | 1069 | inquirer@^0.12.0: 1070 | version "0.12.0" 1071 | resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-0.12.0.tgz#1ef2bfd63504df0bc75785fff8c2c41df12f077e" 1072 | dependencies: 1073 | ansi-escapes "^1.1.0" 1074 | ansi-regex "^2.0.0" 1075 | chalk "^1.0.0" 1076 | cli-cursor "^1.0.1" 1077 | cli-width "^2.0.0" 1078 | figures "^1.3.5" 1079 | lodash "^4.3.0" 1080 | readline2 "^1.0.1" 1081 | run-async "^0.1.0" 1082 | rx-lite "^3.1.2" 1083 | string-width "^1.0.1" 1084 | strip-ansi "^3.0.0" 1085 | through "^2.3.6" 1086 | 1087 | interpret@^1.0.0: 1088 | version "1.0.1" 1089 | resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.1.tgz#d579fb7f693b858004947af39fa0db49f795602c" 1090 | 1091 | invariant@^2.2.0: 1092 | version "2.2.2" 1093 | resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" 1094 | dependencies: 1095 | loose-envify "^1.0.0" 1096 | 1097 | is-binary-path@^1.0.0: 1098 | version "1.0.1" 1099 | resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" 1100 | dependencies: 1101 | binary-extensions "^1.0.0" 1102 | 1103 | is-buffer@^1.0.2: 1104 | version "1.1.4" 1105 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.4.tgz#cfc86ccd5dc5a52fa80489111c6920c457e2d98b" 1106 | 1107 | is-dotfile@^1.0.0: 1108 | version "1.0.2" 1109 | resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.2.tgz#2c132383f39199f8edc268ca01b9b007d205cc4d" 1110 | 1111 | is-equal-shallow@^0.1.3: 1112 | version "0.1.3" 1113 | resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" 1114 | dependencies: 1115 | is-primitive "^2.0.0" 1116 | 1117 | is-extendable@^0.1.1: 1118 | version "0.1.1" 1119 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" 1120 | 1121 | is-extglob@^1.0.0: 1122 | version "1.0.0" 1123 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" 1124 | 1125 | is-finite@^1.0.0: 1126 | version "1.0.2" 1127 | resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" 1128 | dependencies: 1129 | number-is-nan "^1.0.0" 1130 | 1131 | is-fullwidth-code-point@^1.0.0: 1132 | version "1.0.0" 1133 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 1134 | dependencies: 1135 | number-is-nan "^1.0.0" 1136 | 1137 | is-fullwidth-code-point@^2.0.0: 1138 | version "2.0.0" 1139 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" 1140 | 1141 | is-glob@^2.0.0, is-glob@^2.0.1: 1142 | version "2.0.1" 1143 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" 1144 | dependencies: 1145 | is-extglob "^1.0.0" 1146 | 1147 | is-my-json-valid@^2.10.0, is-my-json-valid@^2.12.4: 1148 | version "2.15.0" 1149 | resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.15.0.tgz#936edda3ca3c211fd98f3b2d3e08da43f7b2915b" 1150 | dependencies: 1151 | generate-function "^2.0.0" 1152 | generate-object-property "^1.1.0" 1153 | jsonpointer "^4.0.0" 1154 | xtend "^4.0.0" 1155 | 1156 | is-number@^2.0.2, is-number@^2.1.0: 1157 | version "2.1.0" 1158 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" 1159 | dependencies: 1160 | kind-of "^3.0.2" 1161 | 1162 | is-path-cwd@^1.0.0: 1163 | version "1.0.0" 1164 | resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" 1165 | 1166 | is-path-in-cwd@^1.0.0: 1167 | version "1.0.0" 1168 | resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz#6477582b8214d602346094567003be8a9eac04dc" 1169 | dependencies: 1170 | is-path-inside "^1.0.0" 1171 | 1172 | is-path-inside@^1.0.0: 1173 | version "1.0.0" 1174 | resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.0.tgz#fc06e5a1683fbda13de667aff717bbc10a48f37f" 1175 | dependencies: 1176 | path-is-inside "^1.0.1" 1177 | 1178 | is-posix-bracket@^0.1.0: 1179 | version "0.1.1" 1180 | resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" 1181 | 1182 | is-primitive@^2.0.0: 1183 | version "2.0.0" 1184 | resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" 1185 | 1186 | is-property@^1.0.0: 1187 | version "1.0.2" 1188 | resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" 1189 | 1190 | is-resolvable@^1.0.0: 1191 | version "1.0.0" 1192 | resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.0.0.tgz#8df57c61ea2e3c501408d100fb013cf8d6e0cc62" 1193 | dependencies: 1194 | tryit "^1.0.1" 1195 | 1196 | is-typedarray@~1.0.0: 1197 | version "1.0.0" 1198 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 1199 | 1200 | isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: 1201 | version "1.0.0" 1202 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 1203 | 1204 | isobject@^2.0.0: 1205 | version "2.1.0" 1206 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" 1207 | dependencies: 1208 | isarray "1.0.0" 1209 | 1210 | isstream@~0.1.2: 1211 | version "0.1.2" 1212 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 1213 | 1214 | jodid25519@^1.0.0: 1215 | version "1.0.2" 1216 | resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967" 1217 | dependencies: 1218 | jsbn "~0.1.0" 1219 | 1220 | js-tokens@^2.0.0: 1221 | version "2.0.0" 1222 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-2.0.0.tgz#79903f5563ee778cc1162e6dcf1a0027c97f9cb5" 1223 | 1224 | js-yaml@^3.5.1: 1225 | version "3.7.0" 1226 | resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.7.0.tgz#5c967ddd837a9bfdca5f2de84253abe8a1c03b80" 1227 | dependencies: 1228 | argparse "^1.0.7" 1229 | esprima "^2.6.0" 1230 | 1231 | jsbn@~0.1.0: 1232 | version "0.1.0" 1233 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.0.tgz#650987da0dd74f4ebf5a11377a2aa2d273e97dfd" 1234 | 1235 | jsesc@^1.3.0: 1236 | version "1.3.0" 1237 | resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" 1238 | 1239 | json-schema@0.2.3: 1240 | version "0.2.3" 1241 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 1242 | 1243 | json-stable-stringify@^1.0.0, json-stable-stringify@^1.0.1: 1244 | version "1.0.1" 1245 | resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" 1246 | dependencies: 1247 | jsonify "~0.0.0" 1248 | 1249 | json-stringify-safe@~5.0.1: 1250 | version "5.0.1" 1251 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 1252 | 1253 | json3@3.3.2: 1254 | version "3.3.2" 1255 | resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1" 1256 | 1257 | json5@^0.5.0: 1258 | version "0.5.1" 1259 | resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" 1260 | 1261 | jsonify@~0.0.0: 1262 | version "0.0.0" 1263 | resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" 1264 | 1265 | jsonpointer@^4.0.0: 1266 | version "4.0.1" 1267 | resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" 1268 | 1269 | jsprim@^1.2.2: 1270 | version "1.3.1" 1271 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.3.1.tgz#2a7256f70412a29ee3670aaca625994c4dcff252" 1272 | dependencies: 1273 | extsprintf "1.0.2" 1274 | json-schema "0.2.3" 1275 | verror "1.3.6" 1276 | 1277 | jsx-ast-utils@^1.0.0, jsx-ast-utils@^1.3.4: 1278 | version "1.3.5" 1279 | resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-1.3.5.tgz#9ba6297198d9f754594d62e59496ffb923778dd4" 1280 | dependencies: 1281 | acorn-jsx "^3.0.1" 1282 | object-assign "^4.1.0" 1283 | 1284 | kind-of@^3.0.2: 1285 | version "3.1.0" 1286 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.1.0.tgz#475d698a5e49ff5e53d14e3e732429dc8bf4cf47" 1287 | dependencies: 1288 | is-buffer "^1.0.2" 1289 | 1290 | levn@^0.3.0, levn@~0.3.0: 1291 | version "0.3.0" 1292 | resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" 1293 | dependencies: 1294 | prelude-ls "~1.1.2" 1295 | type-check "~0.3.2" 1296 | 1297 | lodash._baseassign@^3.0.0: 1298 | version "3.2.0" 1299 | resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e" 1300 | dependencies: 1301 | lodash._basecopy "^3.0.0" 1302 | lodash.keys "^3.0.0" 1303 | 1304 | lodash._basecopy@^3.0.0: 1305 | version "3.0.1" 1306 | resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" 1307 | 1308 | lodash._basecreate@^3.0.0: 1309 | version "3.0.3" 1310 | resolved "https://registry.yarnpkg.com/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz#1bc661614daa7fc311b7d03bf16806a0213cf821" 1311 | 1312 | lodash._getnative@^3.0.0: 1313 | version "3.9.1" 1314 | resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" 1315 | 1316 | lodash._isiterateecall@^3.0.0: 1317 | version "3.0.9" 1318 | resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c" 1319 | 1320 | lodash.cond@^4.3.0: 1321 | version "4.5.2" 1322 | resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5" 1323 | 1324 | lodash.create@3.1.1: 1325 | version "3.1.1" 1326 | resolved "https://registry.yarnpkg.com/lodash.create/-/lodash.create-3.1.1.tgz#d7f2849f0dbda7e04682bb8cd72ab022461debe7" 1327 | dependencies: 1328 | lodash._baseassign "^3.0.0" 1329 | lodash._basecreate "^3.0.0" 1330 | lodash._isiterateecall "^3.0.0" 1331 | 1332 | lodash.isarguments@^3.0.0: 1333 | version "3.1.0" 1334 | resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" 1335 | 1336 | lodash.isarray@^3.0.0: 1337 | version "3.0.4" 1338 | resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" 1339 | 1340 | lodash.keys@^3.0.0: 1341 | version "3.1.2" 1342 | resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" 1343 | dependencies: 1344 | lodash._getnative "^3.0.0" 1345 | lodash.isarguments "^3.0.0" 1346 | lodash.isarray "^3.0.0" 1347 | 1348 | lodash@^4.0.0, lodash@^4.2.0, lodash@^4.3.0: 1349 | version "4.17.3" 1350 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.3.tgz#557ed7d2a9438cac5fd5a43043ca60cb455e01f7" 1351 | 1352 | loose-envify@^1.0.0: 1353 | version "1.3.0" 1354 | resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.0.tgz#6b26248c42f6d4fa4b0d8542f78edfcde35642a8" 1355 | dependencies: 1356 | js-tokens "^2.0.0" 1357 | 1358 | micromatch@^2.1.5: 1359 | version "2.3.11" 1360 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" 1361 | dependencies: 1362 | arr-diff "^2.0.0" 1363 | array-unique "^0.2.1" 1364 | braces "^1.8.2" 1365 | expand-brackets "^0.1.4" 1366 | extglob "^0.3.1" 1367 | filename-regex "^2.0.0" 1368 | is-extglob "^1.0.0" 1369 | is-glob "^2.0.1" 1370 | kind-of "^3.0.2" 1371 | normalize-path "^2.0.1" 1372 | object.omit "^2.0.0" 1373 | parse-glob "^3.0.4" 1374 | regex-cache "^0.4.2" 1375 | 1376 | mime-db@~1.25.0: 1377 | version "1.25.0" 1378 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.25.0.tgz#c18dbd7c73a5dbf6f44a024dc0d165a1e7b1c392" 1379 | 1380 | mime-types@^2.1.12, mime-types@~2.1.7: 1381 | version "2.1.13" 1382 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.13.tgz#e07aaa9c6c6b9a7ca3012c69003ad25a39e92a88" 1383 | dependencies: 1384 | mime-db "~1.25.0" 1385 | 1386 | "minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3: 1387 | version "3.0.3" 1388 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" 1389 | dependencies: 1390 | brace-expansion "^1.0.0" 1391 | 1392 | minimist@0.0.8: 1393 | version "0.0.8" 1394 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 1395 | 1396 | minimist@^1.2.0: 1397 | version "1.2.0" 1398 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" 1399 | 1400 | mkdirp@0.5.1, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1: 1401 | version "0.5.1" 1402 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 1403 | dependencies: 1404 | minimist "0.0.8" 1405 | 1406 | mocha@^3.1.2: 1407 | version "3.2.0" 1408 | resolved "https://registry.yarnpkg.com/mocha/-/mocha-3.2.0.tgz#7dc4f45e5088075171a68896814e6ae9eb7a85e3" 1409 | dependencies: 1410 | browser-stdout "1.3.0" 1411 | commander "2.9.0" 1412 | debug "2.2.0" 1413 | diff "1.4.0" 1414 | escape-string-regexp "1.0.5" 1415 | glob "7.0.5" 1416 | growl "1.9.2" 1417 | json3 "3.3.2" 1418 | lodash.create "3.1.1" 1419 | mkdirp "0.5.1" 1420 | supports-color "3.1.2" 1421 | 1422 | ms@0.7.1: 1423 | version "0.7.1" 1424 | resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098" 1425 | 1426 | ms@0.7.2: 1427 | version "0.7.2" 1428 | resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" 1429 | 1430 | mute-stream@0.0.5: 1431 | version "0.0.5" 1432 | resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0" 1433 | 1434 | nan@^2.3.0: 1435 | version "2.5.0" 1436 | resolved "https://registry.yarnpkg.com/nan/-/nan-2.5.0.tgz#aa8f1e34531d807e9e27755b234b4a6ec0c152a8" 1437 | 1438 | natural-compare@^1.4.0: 1439 | version "1.4.0" 1440 | resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" 1441 | 1442 | node-pre-gyp@^0.6.29: 1443 | version "0.6.32" 1444 | resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.32.tgz#fc452b376e7319b3d255f5f34853ef6fd8fe1fd5" 1445 | dependencies: 1446 | mkdirp "~0.5.1" 1447 | nopt "~3.0.6" 1448 | npmlog "^4.0.1" 1449 | rc "~1.1.6" 1450 | request "^2.79.0" 1451 | rimraf "~2.5.4" 1452 | semver "~5.3.0" 1453 | tar "~2.2.1" 1454 | tar-pack "~3.3.0" 1455 | 1456 | nopt@~3.0.6: 1457 | version "3.0.6" 1458 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" 1459 | dependencies: 1460 | abbrev "1" 1461 | 1462 | normalize-path@^2.0.1: 1463 | version "2.0.1" 1464 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.0.1.tgz#47886ac1662760d4261b7d979d241709d3ce3f7a" 1465 | 1466 | npmlog@^4.0.1: 1467 | version "4.0.2" 1468 | resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.0.2.tgz#d03950e0e78ce1527ba26d2a7592e9348ac3e75f" 1469 | dependencies: 1470 | are-we-there-yet "~1.1.2" 1471 | console-control-strings "~1.1.0" 1472 | gauge "~2.7.1" 1473 | set-blocking "~2.0.0" 1474 | 1475 | number-is-nan@^1.0.0: 1476 | version "1.0.1" 1477 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 1478 | 1479 | oauth-sign@~0.8.1: 1480 | version "0.8.2" 1481 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" 1482 | 1483 | object-assign@^4.0.1, object-assign@^4.1.0: 1484 | version "4.1.0" 1485 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.0.tgz#7a3b3d0e98063d43f4c03f2e8ae6cd51a86883a0" 1486 | 1487 | object.omit@^2.0.0: 1488 | version "2.0.1" 1489 | resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" 1490 | dependencies: 1491 | for-own "^0.1.4" 1492 | is-extendable "^0.1.1" 1493 | 1494 | once@^1.3.0: 1495 | version "1.4.0" 1496 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1497 | dependencies: 1498 | wrappy "1" 1499 | 1500 | once@~1.3.3: 1501 | version "1.3.3" 1502 | resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20" 1503 | dependencies: 1504 | wrappy "1" 1505 | 1506 | onetime@^1.0.0: 1507 | version "1.1.0" 1508 | resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" 1509 | 1510 | optionator@^0.8.2: 1511 | version "0.8.2" 1512 | resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" 1513 | dependencies: 1514 | deep-is "~0.1.3" 1515 | fast-levenshtein "~2.0.4" 1516 | levn "~0.3.0" 1517 | prelude-ls "~1.1.2" 1518 | type-check "~0.3.2" 1519 | wordwrap "~1.0.0" 1520 | 1521 | os-homedir@^1.0.0: 1522 | version "1.0.2" 1523 | resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" 1524 | 1525 | os-tmpdir@^1.0.1: 1526 | version "1.0.2" 1527 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 1528 | 1529 | output-file-sync@^1.1.0: 1530 | version "1.1.2" 1531 | resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-1.1.2.tgz#d0a33eefe61a205facb90092e826598d5245ce76" 1532 | dependencies: 1533 | graceful-fs "^4.1.4" 1534 | mkdirp "^0.5.1" 1535 | object-assign "^4.1.0" 1536 | 1537 | parse-glob@^3.0.4: 1538 | version "3.0.4" 1539 | resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" 1540 | dependencies: 1541 | glob-base "^0.3.0" 1542 | is-dotfile "^1.0.0" 1543 | is-extglob "^1.0.0" 1544 | is-glob "^2.0.0" 1545 | 1546 | path-exists@^2.0.0: 1547 | version "2.1.0" 1548 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" 1549 | dependencies: 1550 | pinkie-promise "^2.0.0" 1551 | 1552 | path-is-absolute@^1.0.0: 1553 | version "1.0.1" 1554 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 1555 | 1556 | path-is-inside@^1.0.1: 1557 | version "1.0.2" 1558 | resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" 1559 | 1560 | pify@^2.0.0: 1561 | version "2.3.0" 1562 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 1563 | 1564 | pinkie-promise@^2.0.0: 1565 | version "2.0.1" 1566 | resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" 1567 | dependencies: 1568 | pinkie "^2.0.0" 1569 | 1570 | pinkie@^2.0.0: 1571 | version "2.0.4" 1572 | resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" 1573 | 1574 | pkg-dir@^1.0.0: 1575 | version "1.0.0" 1576 | resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4" 1577 | dependencies: 1578 | find-up "^1.0.0" 1579 | 1580 | pkg-up@^1.0.0: 1581 | version "1.0.0" 1582 | resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26" 1583 | dependencies: 1584 | find-up "^1.0.0" 1585 | 1586 | pluralize@^1.2.1: 1587 | version "1.2.1" 1588 | resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45" 1589 | 1590 | prelude-ls@~1.1.2: 1591 | version "1.1.2" 1592 | resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" 1593 | 1594 | preserve@^0.2.0: 1595 | version "0.2.0" 1596 | resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" 1597 | 1598 | private@^0.1.6: 1599 | version "0.1.6" 1600 | resolved "https://registry.yarnpkg.com/private/-/private-0.1.6.tgz#55c6a976d0f9bafb9924851350fe47b9b5fbb7c1" 1601 | 1602 | process-nextick-args@~1.0.6: 1603 | version "1.0.7" 1604 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" 1605 | 1606 | progress@^1.1.8: 1607 | version "1.1.8" 1608 | resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be" 1609 | 1610 | punycode@^1.4.1: 1611 | version "1.4.1" 1612 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 1613 | 1614 | qs@~6.3.0: 1615 | version "6.3.0" 1616 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.0.tgz#f403b264f23bc01228c74131b407f18d5ea5d442" 1617 | 1618 | ramda@^0.19.1: 1619 | version "0.19.1" 1620 | resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.19.1.tgz#89c4ad697265ff6b1face9f286439e2520d6679c" 1621 | 1622 | ramda@^0.22.1: 1623 | version "0.22.1" 1624 | resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.22.1.tgz#031da0c3df417c5b33c96234757eb37033f36a0e" 1625 | 1626 | randomatic@^1.1.3: 1627 | version "1.1.6" 1628 | resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb" 1629 | dependencies: 1630 | is-number "^2.0.2" 1631 | kind-of "^3.0.2" 1632 | 1633 | rc@~1.1.6: 1634 | version "1.1.6" 1635 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.1.6.tgz#43651b76b6ae53b5c802f1151fa3fc3b059969c9" 1636 | dependencies: 1637 | deep-extend "~0.4.0" 1638 | ini "~1.3.0" 1639 | minimist "^1.2.0" 1640 | strip-json-comments "~1.0.4" 1641 | 1642 | "readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.2, readable-stream@^2.2.2: 1643 | version "2.2.2" 1644 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.2.tgz#a9e6fec3c7dda85f8bb1b3ba7028604556fc825e" 1645 | dependencies: 1646 | buffer-shims "^1.0.0" 1647 | core-util-is "~1.0.0" 1648 | inherits "~2.0.1" 1649 | isarray "~1.0.0" 1650 | process-nextick-args "~1.0.6" 1651 | string_decoder "~0.10.x" 1652 | util-deprecate "~1.0.1" 1653 | 1654 | readable-stream@~2.1.4: 1655 | version "2.1.5" 1656 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.1.5.tgz#66fa8b720e1438b364681f2ad1a63c618448c9d0" 1657 | dependencies: 1658 | buffer-shims "^1.0.0" 1659 | core-util-is "~1.0.0" 1660 | inherits "~2.0.1" 1661 | isarray "~1.0.0" 1662 | process-nextick-args "~1.0.6" 1663 | string_decoder "~0.10.x" 1664 | util-deprecate "~1.0.1" 1665 | 1666 | readdirp@^2.0.0: 1667 | version "2.1.0" 1668 | resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" 1669 | dependencies: 1670 | graceful-fs "^4.1.2" 1671 | minimatch "^3.0.2" 1672 | readable-stream "^2.0.2" 1673 | set-immediate-shim "^1.0.1" 1674 | 1675 | readline2@^1.0.1: 1676 | version "1.0.1" 1677 | resolved "https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35" 1678 | dependencies: 1679 | code-point-at "^1.0.0" 1680 | is-fullwidth-code-point "^1.0.0" 1681 | mute-stream "0.0.5" 1682 | 1683 | rechoir@^0.6.2: 1684 | version "0.6.2" 1685 | resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" 1686 | dependencies: 1687 | resolve "^1.1.6" 1688 | 1689 | regenerator-runtime@^0.10.0: 1690 | version "0.10.1" 1691 | resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.1.tgz#257f41961ce44558b18f7814af48c17559f9faeb" 1692 | 1693 | regex-cache@^0.4.2: 1694 | version "0.4.3" 1695 | resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145" 1696 | dependencies: 1697 | is-equal-shallow "^0.1.3" 1698 | is-primitive "^2.0.0" 1699 | 1700 | repeat-element@^1.1.2: 1701 | version "1.1.2" 1702 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" 1703 | 1704 | repeat-string@^1.5.2: 1705 | version "1.6.1" 1706 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" 1707 | 1708 | repeating@^2.0.0: 1709 | version "2.0.1" 1710 | resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" 1711 | dependencies: 1712 | is-finite "^1.0.0" 1713 | 1714 | request@^2.79.0: 1715 | version "2.79.0" 1716 | resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de" 1717 | dependencies: 1718 | aws-sign2 "~0.6.0" 1719 | aws4 "^1.2.1" 1720 | caseless "~0.11.0" 1721 | combined-stream "~1.0.5" 1722 | extend "~3.0.0" 1723 | forever-agent "~0.6.1" 1724 | form-data "~2.1.1" 1725 | har-validator "~2.0.6" 1726 | hawk "~3.1.3" 1727 | http-signature "~1.1.0" 1728 | is-typedarray "~1.0.0" 1729 | isstream "~0.1.2" 1730 | json-stringify-safe "~5.0.1" 1731 | mime-types "~2.1.7" 1732 | oauth-sign "~0.8.1" 1733 | qs "~6.3.0" 1734 | stringstream "~0.0.4" 1735 | tough-cookie "~2.3.0" 1736 | tunnel-agent "~0.4.1" 1737 | uuid "^3.0.0" 1738 | 1739 | require-uncached@^1.0.2: 1740 | version "1.0.3" 1741 | resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3" 1742 | dependencies: 1743 | caller-path "^0.1.0" 1744 | resolve-from "^1.0.0" 1745 | 1746 | resolve-from@^1.0.0: 1747 | version "1.0.1" 1748 | resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" 1749 | 1750 | resolve@^1.1.6: 1751 | version "1.2.0" 1752 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.2.0.tgz#9589c3f2f6149d1417a40becc1663db6ec6bc26c" 1753 | 1754 | restore-cursor@^1.0.1: 1755 | version "1.0.1" 1756 | resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541" 1757 | dependencies: 1758 | exit-hook "^1.0.0" 1759 | onetime "^1.0.0" 1760 | 1761 | rimraf@2, rimraf@^2.2.8, rimraf@~2.5.1, rimraf@~2.5.4: 1762 | version "2.5.4" 1763 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.5.4.tgz#96800093cbf1a0c86bd95b4625467535c29dfa04" 1764 | dependencies: 1765 | glob "^7.0.5" 1766 | 1767 | run-async@^0.1.0: 1768 | version "0.1.0" 1769 | resolved "https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389" 1770 | dependencies: 1771 | once "^1.3.0" 1772 | 1773 | rx-lite@^3.1.2: 1774 | version "3.1.2" 1775 | resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102" 1776 | 1777 | semver@~5.3.0: 1778 | version "5.3.0" 1779 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" 1780 | 1781 | set-blocking@~2.0.0: 1782 | version "2.0.0" 1783 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 1784 | 1785 | set-immediate-shim@^1.0.1: 1786 | version "1.0.1" 1787 | resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" 1788 | 1789 | shelljs@^0.7.5: 1790 | version "0.7.5" 1791 | resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.5.tgz#2eef7a50a21e1ccf37da00df767ec69e30ad0675" 1792 | dependencies: 1793 | glob "^7.0.0" 1794 | interpret "^1.0.0" 1795 | rechoir "^0.6.2" 1796 | 1797 | signal-exit@^3.0.0: 1798 | version "3.0.2" 1799 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 1800 | 1801 | slash@^1.0.0: 1802 | version "1.0.0" 1803 | resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" 1804 | 1805 | slice-ansi@0.0.4: 1806 | version "0.0.4" 1807 | resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35" 1808 | 1809 | sntp@1.x.x: 1810 | version "1.0.9" 1811 | resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" 1812 | dependencies: 1813 | hoek "2.x.x" 1814 | 1815 | source-map-support@^0.4.2: 1816 | version "0.4.7" 1817 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.7.tgz#7a7988e0e66241c778c78dd179199bb6bcd35bd6" 1818 | dependencies: 1819 | source-map "^0.5.3" 1820 | 1821 | source-map@^0.5.0, source-map@^0.5.3: 1822 | version "0.5.6" 1823 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" 1824 | 1825 | sprintf-js@~1.0.2: 1826 | version "1.0.3" 1827 | resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 1828 | 1829 | sshpk@^1.7.0: 1830 | version "1.10.1" 1831 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.10.1.tgz#30e1a5d329244974a1af61511339d595af6638b0" 1832 | dependencies: 1833 | asn1 "~0.2.3" 1834 | assert-plus "^1.0.0" 1835 | dashdash "^1.12.0" 1836 | getpass "^0.1.1" 1837 | optionalDependencies: 1838 | bcrypt-pbkdf "^1.0.0" 1839 | ecc-jsbn "~0.1.1" 1840 | jodid25519 "^1.0.0" 1841 | jsbn "~0.1.0" 1842 | tweetnacl "~0.14.0" 1843 | 1844 | string-width@^1.0.1: 1845 | version "1.0.2" 1846 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 1847 | dependencies: 1848 | code-point-at "^1.0.0" 1849 | is-fullwidth-code-point "^1.0.0" 1850 | strip-ansi "^3.0.0" 1851 | 1852 | string-width@^2.0.0: 1853 | version "2.0.0" 1854 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.0.0.tgz#635c5436cc72a6e0c387ceca278d4e2eec52687e" 1855 | dependencies: 1856 | is-fullwidth-code-point "^2.0.0" 1857 | strip-ansi "^3.0.0" 1858 | 1859 | string_decoder@~0.10.x: 1860 | version "0.10.31" 1861 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" 1862 | 1863 | stringstream@~0.0.4: 1864 | version "0.0.5" 1865 | resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" 1866 | 1867 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 1868 | version "3.0.1" 1869 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 1870 | dependencies: 1871 | ansi-regex "^2.0.0" 1872 | 1873 | strip-bom@^3.0.0: 1874 | version "3.0.0" 1875 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" 1876 | 1877 | strip-json-comments@~1.0.1, strip-json-comments@~1.0.4: 1878 | version "1.0.4" 1879 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-1.0.4.tgz#1e15fbcac97d3ee99bf2d73b4c656b082bbafb91" 1880 | 1881 | supports-color@3.1.2: 1882 | version "3.1.2" 1883 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5" 1884 | dependencies: 1885 | has-flag "^1.0.0" 1886 | 1887 | supports-color@^0.2.0: 1888 | version "0.2.0" 1889 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a" 1890 | 1891 | supports-color@^2.0.0: 1892 | version "2.0.0" 1893 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" 1894 | 1895 | table@^3.7.8: 1896 | version "3.8.3" 1897 | resolved "https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f" 1898 | dependencies: 1899 | ajv "^4.7.0" 1900 | ajv-keywords "^1.0.0" 1901 | chalk "^1.1.1" 1902 | lodash "^4.0.0" 1903 | slice-ansi "0.0.4" 1904 | string-width "^2.0.0" 1905 | 1906 | tar-pack@~3.3.0: 1907 | version "3.3.0" 1908 | resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.3.0.tgz#30931816418f55afc4d21775afdd6720cee45dae" 1909 | dependencies: 1910 | debug "~2.2.0" 1911 | fstream "~1.0.10" 1912 | fstream-ignore "~1.0.5" 1913 | once "~1.3.3" 1914 | readable-stream "~2.1.4" 1915 | rimraf "~2.5.1" 1916 | tar "~2.2.1" 1917 | uid-number "~0.0.6" 1918 | 1919 | tar@~2.2.1: 1920 | version "2.2.1" 1921 | resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" 1922 | dependencies: 1923 | block-stream "*" 1924 | fstream "^1.0.2" 1925 | inherits "2" 1926 | 1927 | text-table@~0.2.0: 1928 | version "0.2.0" 1929 | resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" 1930 | 1931 | through@^2.3.6: 1932 | version "2.3.8" 1933 | resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" 1934 | 1935 | to-fast-properties@^1.0.1: 1936 | version "1.0.2" 1937 | resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.2.tgz#f3f5c0c3ba7299a7ef99427e44633257ade43320" 1938 | 1939 | tough-cookie@~2.3.0: 1940 | version "2.3.2" 1941 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" 1942 | dependencies: 1943 | punycode "^1.4.1" 1944 | 1945 | tryit@^1.0.1: 1946 | version "1.0.3" 1947 | resolved "https://registry.yarnpkg.com/tryit/-/tryit-1.0.3.tgz#393be730a9446fd1ead6da59a014308f36c289cb" 1948 | 1949 | tunnel-agent@~0.4.1: 1950 | version "0.4.3" 1951 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" 1952 | 1953 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 1954 | version "0.14.5" 1955 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 1956 | 1957 | type-check@~0.3.2: 1958 | version "0.3.2" 1959 | resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" 1960 | dependencies: 1961 | prelude-ls "~1.1.2" 1962 | 1963 | typedarray@^0.0.6: 1964 | version "0.0.6" 1965 | resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" 1966 | 1967 | uid-number@~0.0.6: 1968 | version "0.0.6" 1969 | resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" 1970 | 1971 | user-home@^1.1.1: 1972 | version "1.1.1" 1973 | resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" 1974 | 1975 | user-home@^2.0.0: 1976 | version "2.0.0" 1977 | resolved "https://registry.yarnpkg.com/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f" 1978 | dependencies: 1979 | os-homedir "^1.0.0" 1980 | 1981 | util-deprecate@~1.0.1: 1982 | version "1.0.2" 1983 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" 1984 | 1985 | uuid@^3.0.0: 1986 | version "3.0.1" 1987 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" 1988 | 1989 | v8flags@^2.0.10: 1990 | version "2.0.11" 1991 | resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.0.11.tgz#bca8f30f0d6d60612cc2c00641e6962d42ae6881" 1992 | dependencies: 1993 | user-home "^1.1.1" 1994 | 1995 | verror@1.3.6: 1996 | version "1.3.6" 1997 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c" 1998 | dependencies: 1999 | extsprintf "1.0.2" 2000 | 2001 | wide-align@^1.1.0: 2002 | version "1.1.0" 2003 | resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.0.tgz#40edde802a71fea1f070da3e62dcda2e7add96ad" 2004 | dependencies: 2005 | string-width "^1.0.1" 2006 | 2007 | wordwrap@~1.0.0: 2008 | version "1.0.0" 2009 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" 2010 | 2011 | wrappy@1: 2012 | version "1.0.2" 2013 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 2014 | 2015 | write@^0.2.1: 2016 | version "0.2.1" 2017 | resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757" 2018 | dependencies: 2019 | mkdirp "^0.5.1" 2020 | 2021 | xtend@^4.0.0: 2022 | version "4.0.1" 2023 | resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" 2024 | --------------------------------------------------------------------------------