├── .circleci └── config.yml ├── .gitignore ├── LICENSE ├── README.md ├── lerna.json ├── package.json ├── packages ├── graphql-api │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── graphql │ │ │ ├── mutations.ts │ │ │ ├── queries.ts │ │ │ ├── schema.d.ts │ │ │ └── types.ts │ │ ├── index.ts │ │ ├── resolvers │ │ │ ├── authenticate.ts │ │ │ ├── change-password.ts │ │ │ ├── get-user.ts │ │ │ ├── impersonate.ts │ │ │ ├── logout.ts │ │ │ ├── refresh-tokens.ts │ │ │ ├── register-user.ts │ │ │ ├── reset-password.ts │ │ │ ├── send-reset-password-email.ts │ │ │ ├── two-factor.ts │ │ │ ├── user.ts │ │ │ └── verify-email.ts │ │ ├── schema-builder.ts │ │ ├── scripts │ │ │ └── schema-to-types.ts │ │ ├── types │ │ │ └── graphql.d.ts │ │ └── utils │ │ │ ├── authenticated-resolver.ts │ │ │ └── context-builder.ts │ ├── tsconfig.json │ └── yarn.lock └── graphql-client │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ ├── graphql-client.ts │ ├── graphql │ │ ├── change-password.mutation.ts │ │ ├── create-user.mutation.ts │ │ ├── get-two-factor-secret.query.ts │ │ ├── get-user.query.ts │ │ ├── impersonate.mutation.ts │ │ ├── login-with-service.mutation.ts │ │ ├── logout.mutation.ts │ │ ├── refresh-tokens.mutation.ts │ │ ├── reset-password.mutation.ts │ │ ├── send-reset-password-email.mutation.ts │ │ ├── send-verification-email.mutation.ts │ │ ├── two-factor-set.mutation.ts │ │ ├── two-factor-unset.mutation.ts │ │ └── verify-email.mutation.ts │ ├── index.ts │ └── schema │ │ └── schema.gql │ ├── tsconfig.json │ └── yarn.lock ├── tsconfig.json ├── tslint.json └── yarn.lock /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | 3 | jobs: 4 | build: 5 | docker: 6 | - image: circleci/node:8 7 | steps: 8 | - checkout 9 | - run: yarn install --frozen-lockfile 10 | - run: yarn test 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | node_modules/ 3 | coverage/ 4 | npm-debug.log 5 | .idea 6 | lerna-debug.log 7 | .vscode 8 | packages/*/package-lock.json 9 | .DS_Store 10 | .vs 11 | package-lock.json 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Accounts GraphQL 2 | GraphQL transport for accounts suite. 3 | -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "lerna": "2.5.1", 3 | "packages": [ 4 | "packages/*" 5 | ], 6 | "version": "0.2.3" 7 | } 8 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "start": "lerna exec -- npm start", 5 | "link": "lerna exec -- npm link @accounts/client; lerna exec -- npm link @accounts/server; lerna exec -- npm link @accounts/common; lerna exec -- npm link", 6 | "compile": "lerna run compile", 7 | "lint": "tslint packages/*/src", 8 | "prebootstrap": "npm install", 9 | "postinstall": "lerna bootstrap", 10 | "test": "npm run lint && npm run testonly", 11 | "testonly": "lerna run testonly", 12 | "coverage": "lerna run coverage", 13 | "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" 14 | }, 15 | "repository": { 16 | "type": "git", 17 | "url": "https://github.com/js-accounts/rest" 18 | }, 19 | "license": "MIT", 20 | "devDependencies": { 21 | "@types/jest": "^21.1.5", 22 | "@types/node": "^8.10.19", 23 | "lerna": "^2.5.1", 24 | "prettier": "^1.13.5", 25 | "ts-jest": "^21.1.4", 26 | "tslint": "^5.8.0", 27 | "tslint-config-accounts": "^0.0.3", 28 | "typescript": "^2.4.1" 29 | }, 30 | "prettier": { 31 | "singleQuote": true, 32 | "trailingComma": "es5", 33 | "printWidth": 100 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /packages/graphql-api/.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | coverage/ 3 | node_modules 4 | yarn.lock 5 | tsconfig.json 6 | .npmignore -------------------------------------------------------------------------------- /packages/graphql-api/README.md: -------------------------------------------------------------------------------- 1 | # @accounts/graphql-api 2 | 3 | *Schema, Resolvers and Utils for GraphQL server with JSAccounts* 4 | 5 | [![npm](https://img.shields.io/npm/v/@accounts/graphql-api.svg?maxAge=2592000)](https://www.npmjs.com/package/@accounts/graphql-api) [![Circle CI](https://circleci.com/gh/js-accounts/graphql-api.svg?style=shield)](https://circleci.com/gh/js-accounts/graphql-api) [![Coverage Status](https://coveralls.io/repos/github/js-accounts/graphql-api/badge.svg?branch=master)](https://coveralls.io/github/js-accounts/graphql-api?branch=master) ![MIT License](https://img.shields.io/badge/license-MIT-blue.svg) 6 | 7 | > This package does not requires any network interface / express in order to combine with your GraphQL - it's just a collection of GraphQL schema, resolvers and utils! 8 | 9 | ## Note 10 | 11 | > This package is under active development and is just starting to form a structure. 12 | 13 | ## Start dev server 14 | 15 | ```bash 16 | yarn 17 | yarn start 18 | ``` 19 | 20 | ## How to use this package? 21 | 22 | This package exports GraphQL schema and GraphQL resolvers, which you can extend with your existing GraphQL schema server. 23 | 24 | Start by installing it from NPM / Yarn: 25 | 26 | ```bash 27 | // Npm 28 | npm install --save @accounts/server @accounts/graphql-api 29 | 30 | // Yarn 31 | yarn add @accounts/server @accounts/graphql-api 32 | ``` 33 | 34 | > This package does not create a transport or anything else, only schema and string and resolvers as object. 35 | 36 | Start by configuring your `AccountsServer` as you wish. for example: 37 | 38 | ```js 39 | AccountsServer.config({ 40 | // ... you config here 41 | }, new Mongo(await getDb())); 42 | ``` 43 | 44 | Next, import `createJSAccountsGraphQL` method from this package, and run it with your `AccountsServer`: 45 | 46 | ```js 47 | import { createJSAccountsGraphQL } from '@accounts/graphql-api'; 48 | 49 | const accountsGraphQL = createJSAccountsGraphQL(Accounts); 50 | ``` 51 | 52 | Now, add `accountsGraphQL.schema` to your schema definition (just before using it with `makeExecutableSchema`), and use `accountsGraphQL.extendWithResolvers` to extend your resolvers object, for example: 53 | 54 | ```js 55 | import { makeExecutableSchema } from 'graphql-tools'; 56 | 57 | const typeDefs = [ 58 | ` 59 | type Query { 60 | myQuery: String 61 | } 62 | 63 | type Mutation { 64 | myMutation: String 65 | } 66 | 67 | schema { 68 | query: Query, 69 | mutation: Mutation 70 | } 71 | `, 72 | accountsGraphQL.schema 73 | ]; 74 | 75 | let myResolvers = { 76 | Query: { 77 | myQuery: () => 'Hello' 78 | }, 79 | Mutation: { 80 | myMutation: () => 'Hello' 81 | } 82 | }; 83 | 84 | const resolversWithAccounts = accountsGraphQL.extendWithResolvers(myResolvers); 85 | 86 | const schema = makeExecutableSchema({ 87 | resolvers, 88 | typeDefs, 89 | }); 90 | ``` 91 | 92 | The last step is to extend your `graphqlExpress` with a context middleware, that extracts the authentication token from the HTTP request, so AccountsServer will automatically validate it: 93 | 94 | ```js 95 | import { JSAccountsContext } from '@accounts/graphql-api'; 96 | 97 | app.use(GRAPHQL_ROUTE, bodyParser.json(), graphqlExpress(request => { 98 | return { 99 | context: JSAccountsContext(request), 100 | schema, 101 | }; 102 | })); 103 | ``` 104 | 105 | ## Authenticating Resolvers 106 | 107 | You can authenticate your own resolvers with `JSAccounts` authentication flow, by using `authenticated` method from this package. 108 | 109 | This method composer also extends `context` with the current authenticated user! 110 | 111 | This is an example for a protected mutation: 112 | 113 | ```js 114 | import AccountsServer from '@accounts/server'; 115 | import { authenticated } from '@accounts/graphql-api'; 116 | 117 | export const resolver = { 118 | Mutation: { 119 | updateUserProfile: authenticated(AccountsServer, (rootValue, args, context) => { 120 | // Write your resolver here 121 | // context.user - the current authenticated user! 122 | 123 | }), 124 | }, 125 | }; 126 | ``` 127 | 128 | ## Customization 129 | 130 | This package allow you to customize the GraphQL schema and it's resolvers. 131 | 132 | For example, some application main query called `MyQuery` or `RootQuery` instead of query, so you can customize the name, without modifying you application's schema. 133 | 134 | These are the available customizations: 135 | 136 | * `rootQueryName` (string) - The name of the root query, default: `Query`. 137 | * `rootMutationName` (string) - The name of the root mutation, default: `Mutation`. 138 | * `extend` (boolean) - whether to add `extend` before the root type declaration, default: `true`. 139 | * `withSchemaDefinition` (boolean): whether to add `schema { ... } ` declaration to the generation schema, default: `false`. 140 | 141 | Pass a second object to `createJSAccountsGraphQL`, for example: 142 | 143 | ```js 144 | const myCustomGraphQLAccounts = createSchemaWithAccounts(AccountsServer, { 145 | rootQueryName: 'RootQuery', 146 | rootMutationName: 'RootMutation', 147 | }); 148 | ``` 149 | 150 | Another possible customization is to modify the name of the authentication header, use it with `JSAccountsContext` (the default is `Authorization`): 151 | 152 | ```js 153 | context: JSAccountsContext(request, 'MyCustomHeader') 154 | ``` 155 | 156 | ## Extending `User` 157 | 158 | To extend `User` object with custom fields and logic, add your own GraphQL type definition of `User` with the prefix of `extend`, and add your fields: 159 | 160 | ```graphql 161 | extend type User { 162 | firstName: String 163 | lastName: String 164 | } 165 | ``` 166 | 167 | And also implement a regular resolver, for the fields you added: 168 | 169 | ```js 170 | const UserResolver = { 171 | firstName: () => 'Dotan', 172 | lastName: () => 'Simha', 173 | }; 174 | ``` 175 | -------------------------------------------------------------------------------- /packages/graphql-api/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@accounts/graphql-api", 3 | "version": "0.2.3", 4 | "description": "Server side GraphQL transport for accounts", 5 | "main": "lib/index.js", 6 | "typings": "lib/index.d.ts", 7 | "scripts": { 8 | "start": "concurrently \"npm run compile:watch\" \"node-dev lib/index.js\"", 9 | "compile": "tsc", 10 | "compile:watch": "tsc --watch", 11 | "prepare": "npm run compile", 12 | "test": "yarn testonly", 13 | "test-ci": "yarn coverage", 14 | "testonly": "jest", 15 | "coverage": "yarn testonly -- --coverage", 16 | "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage", 17 | "gen-schema-types": "ts-node src/scripts/schema-to-types.ts" 18 | }, 19 | "repository": { 20 | "type": "git", 21 | "url": "https://github.com/js-accounts/graphql.git" 22 | }, 23 | "author": "David Yahalomi", 24 | "license": "MIT", 25 | "bugs": { 26 | "url": "https://github.com/js-accounts/graphql-api/issues" 27 | }, 28 | "homepage": "https://github.com/js-accounts/graphql-api", 29 | "devDependencies": { 30 | "@gql2ts/from-schema": "^1.8.0", 31 | "@gql2ts/types": "^1.8.0", 32 | "concurrently": "^3.1.0", 33 | "coveralls": "^2.11.14", 34 | "gql2ts": "^1.7.2", 35 | "jest": "^18.0.0", 36 | "lodash": "^4.17.10", 37 | "nock": "^9.0.2", 38 | "node-dev": "^3.1.3", 39 | "ts-node": "6.0.0" 40 | }, 41 | "dependencies": { 42 | "@accounts/password": "^0.1.0-beta.17", 43 | "@accounts/server": "^0.1.0-beta.17", 44 | "@accounts/types": "^0.1.0-beta.17", 45 | "@types/request-ip": "^0.0.33", 46 | "deepmerge": "^2.1.1", 47 | "request-ip": "^2.0.2" 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /packages/graphql-api/src/graphql/mutations.ts: -------------------------------------------------------------------------------- 1 | export const mutations = ` 2 | impersonate(accessToken: String!, username: String!): ImpersonateReturn 3 | refreshTokens(accessToken: String!, refreshToken: String!): LoginResult 4 | logout(accessToken: String!): Boolean 5 | 6 | # Example: Login with password 7 | # authenticate(serviceName: "password", params: {password: "", user: {email: ""}}) 8 | authenticate(serviceName: String!, params: AuthenticateParamsInput!): LoginResult 9 | 10 | # register returns the id corresponding db ids, such as number IDs, ObjectIDs or UUIDs 11 | register(user: CreateUserInput!): ID 12 | verifyEmail(token: String!): Boolean 13 | resetPassword(token: String!, newPassword: String!): Boolean 14 | sendVerificationEmail(email: String!): Boolean 15 | sendResetPasswordEmail(email: String!): Boolean 16 | changePassword(oldPassword: String!, newPassword: String!): Boolean 17 | twoFactorSet(secret: TwoFactorSecretKeyInput!, code: String!): Boolean 18 | twoFactorUnset(code: String!): Boolean 19 | `; 20 | -------------------------------------------------------------------------------- /packages/graphql-api/src/graphql/queries.ts: -------------------------------------------------------------------------------- 1 | export const queries = ` 2 | getUser(accessToken: String!): User 3 | twoFactorSecret: TwoFactorSecretKey 4 | `; 5 | -------------------------------------------------------------------------------- /packages/graphql-api/src/graphql/schema.d.ts: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | // graphql typescript definitions 3 | 4 | declare namespace GQL { 5 | interface IGraphQLResponseRoot { 6 | data?: IMutation | IQuery; 7 | errors?: Array; 8 | } 9 | 10 | interface IGraphQLResponseError { 11 | /** Required for all errors */ 12 | message: string; 13 | locations?: Array; 14 | /** 7.2.2 says 'GraphQL servers may provide additional entries to error' */ 15 | [propName: string]: any; 16 | } 17 | 18 | interface IGraphQLResponseErrorLocation { 19 | line: number; 20 | column: number; 21 | } 22 | 23 | interface IMutation { 24 | __typename: 'Mutation'; 25 | impersonate: IImpersonateReturn | null; 26 | refreshTokens: ILoginResult | null; 27 | logout: boolean | null; 28 | authenticate: ILoginResult | null; 29 | register: string | null; 30 | verifyEmail: boolean | null; 31 | resetPassword: boolean | null; 32 | sendVerificationEmail: boolean | null; 33 | sendResetPasswordEmail: boolean | null; 34 | changePassword: boolean | null; 35 | twoFactorSet: boolean | null; 36 | twoFactorUnset: boolean | null; 37 | } 38 | 39 | interface IImpersonateOnMutationArguments { 40 | accessToken: string; 41 | username: string; 42 | } 43 | 44 | interface IRefreshTokensOnMutationArguments { 45 | accessToken: string; 46 | refreshToken: string; 47 | } 48 | 49 | interface ILogoutOnMutationArguments { 50 | accessToken: string; 51 | } 52 | 53 | interface IAuthenticateOnMutationArguments { 54 | serviceName: string; 55 | params: IAuthenticateParamsInput; 56 | } 57 | 58 | interface IRegisterOnMutationArguments { 59 | user: ICreateUserInput; 60 | } 61 | 62 | interface IVerifyEmailOnMutationArguments { 63 | token: string; 64 | } 65 | 66 | interface IResetPasswordOnMutationArguments { 67 | token: string; 68 | newPassword: string; 69 | } 70 | 71 | interface ISendVerificationEmailOnMutationArguments { 72 | email: string; 73 | } 74 | 75 | interface ISendResetPasswordEmailOnMutationArguments { 76 | email: string; 77 | } 78 | 79 | interface IChangePasswordOnMutationArguments { 80 | oldPassword: string; 81 | newPassword: string; 82 | } 83 | 84 | interface ITwoFactorSetOnMutationArguments { 85 | secret: string; 86 | code: string; 87 | } 88 | 89 | interface ITwoFactorUnsetOnMutationArguments { 90 | code: string; 91 | } 92 | 93 | interface IImpersonateReturn { 94 | __typename: 'ImpersonateReturn'; 95 | authorized: boolean | null; 96 | tokens: ITokens | null; 97 | user: IUser | null; 98 | } 99 | 100 | interface ITokens { 101 | __typename: 'Tokens'; 102 | refreshToken: string | null; 103 | accessToken: string | null; 104 | } 105 | 106 | interface IUser { 107 | __typename: 'User'; 108 | id: string; 109 | emails: Array | null; 110 | username: string | null; 111 | } 112 | 113 | interface IEmailRecord { 114 | __typename: 'EmailRecord'; 115 | address: string | null; 116 | verified: boolean | null; 117 | } 118 | 119 | interface ILoginResult { 120 | __typename: 'LoginResult'; 121 | sessionId: string | null; 122 | tokens: ITokens | null; 123 | } 124 | 125 | interface IAuthenticateParamsInput { 126 | access_token?: string | null; 127 | access_token_secret?: string | null; 128 | provider?: string | null; 129 | password?: string | null; 130 | user?: IUserInput | null; 131 | code?: string | null; 132 | } 133 | 134 | interface IUserInput { 135 | id?: string | null; 136 | email?: string | null; 137 | username?: string | null; 138 | } 139 | 140 | interface ICreateUserInput { 141 | username?: string | null; 142 | email?: string | null; 143 | password?: string | null; 144 | profile?: ICreateUserProfileInput | null; 145 | } 146 | 147 | interface ICreateUserProfileInput { 148 | name?: string | null; 149 | firstName?: string | null; 150 | lastName?: string | null; 151 | } 152 | 153 | interface IQuery { 154 | __typename: 'Query'; 155 | getUser: IUser | null; 156 | twoFactorSecret: string | null; 157 | } 158 | 159 | interface IGetUserOnQueryArguments { 160 | accessToken: string; 161 | } 162 | } 163 | 164 | // tslint:enable 165 | -------------------------------------------------------------------------------- /packages/graphql-api/src/graphql/types.ts: -------------------------------------------------------------------------------- 1 | export const typeDefs = ` 2 | type Tokens { 3 | refreshToken: String 4 | accessToken: String 5 | } 6 | 7 | type LoginResult { 8 | sessionId: String 9 | tokens: Tokens 10 | } 11 | 12 | type ImpersonateReturn { 13 | authorized: Boolean 14 | tokens: Tokens 15 | user: User 16 | } 17 | 18 | type EmailRecord { 19 | address: String 20 | verified: Boolean 21 | } 22 | 23 | type User { 24 | id: ID! 25 | email: String 26 | emails: [EmailRecord] 27 | username: String 28 | } 29 | 30 | type TwoFactorSecretKey { 31 | ascii: String 32 | base32: String 33 | hex: String 34 | qr_code_ascii: String 35 | qr_code_hex: String 36 | qr_code_base32: String 37 | google_auth_qr: String 38 | otpauth_url: String 39 | } 40 | 41 | input TwoFactorSecretKeyInput { 42 | ascii: String 43 | base32: String 44 | hex: String 45 | qr_code_ascii: String 46 | qr_code_hex: String 47 | qr_code_base32: String 48 | google_auth_qr: String 49 | otpauth_url: String 50 | } 51 | 52 | input UserInput { 53 | id: ID 54 | email: String 55 | username: String 56 | } 57 | 58 | input CreateUserInput { 59 | username: String 60 | email: String 61 | password: String 62 | profile: CreateUserProfileInput 63 | } 64 | 65 | input CreateUserProfileInput { 66 | name: String 67 | firstName: String 68 | lastName: String 69 | } 70 | 71 | input AuthenticateParamsInput { 72 | # Twitter, Instagram 73 | access_token: String 74 | # Twitter 75 | access_token_secret: String 76 | # OAuth 77 | provider: String 78 | # Password 79 | password: String 80 | # Password 81 | user: UserInput 82 | # Two factor 83 | code: String 84 | } 85 | `; 86 | -------------------------------------------------------------------------------- /packages/graphql-api/src/index.ts: -------------------------------------------------------------------------------- 1 | import { createJSAccountsGraphQL } from './schema-builder'; 2 | import { authenticated } from './utils/authenticated-resolver'; 3 | import { JSAccountsContext } from './utils/context-builder'; 4 | 5 | export { createJSAccountsGraphQL, authenticated, JSAccountsContext }; 6 | -------------------------------------------------------------------------------- /packages/graphql-api/src/resolvers/authenticate.ts: -------------------------------------------------------------------------------- 1 | import { AccountsServer } from '@accounts/server'; 2 | import { IResolverContext } from '../types/graphql'; 3 | 4 | export const serviceAuthenticate = (accountsServer: AccountsServer) => async ( 5 | _, 6 | args: GQL.IAuthenticateOnMutationArguments, 7 | ctx: IResolverContext 8 | ) => { 9 | const { serviceName, params } = args; 10 | const { ip, userAgent } = ctx; 11 | 12 | const authenticated = await accountsServer.loginWithService(serviceName, params, { 13 | ip, 14 | userAgent, 15 | }); 16 | return authenticated; 17 | }; 18 | -------------------------------------------------------------------------------- /packages/graphql-api/src/resolvers/change-password.ts: -------------------------------------------------------------------------------- 1 | import { IResolverContext } from '../types/graphql'; 2 | import AccountsServer from '@accounts/server'; 3 | import { AccountsPassword } from '@accounts/password'; 4 | 5 | export const changePassword = (accountsServer: AccountsServer) => async ( 6 | _, 7 | args: GQL.IChangePasswordOnMutationArguments, 8 | ctx: IResolverContext 9 | ) => { 10 | const { oldPassword, newPassword } = args; 11 | const { user } = ctx; 12 | 13 | if (!(user && user.id)) { 14 | throw new Error('Unauthorized'); 15 | } 16 | 17 | const userId = user.id; 18 | const password = accountsServer.getServices().password as AccountsPassword; 19 | 20 | if (!(typeof password.changePassword === 'function')) { 21 | throw new Error('No service handle password modification.'); 22 | } 23 | 24 | return password.changePassword(userId, oldPassword, newPassword); 25 | }; 26 | -------------------------------------------------------------------------------- /packages/graphql-api/src/resolvers/get-user.ts: -------------------------------------------------------------------------------- 1 | import { IResolverContext } from '../types/graphql'; 2 | import AccountsServer from '@accounts/server'; 3 | 4 | export const getUser = (accountsServer: AccountsServer) => async ( 5 | _, 6 | args: GQL.IGetUserOnQueryArguments, 7 | ctx: IResolverContext 8 | ) => { 9 | const { accessToken } = args; 10 | 11 | return accountsServer.resumeSession(accessToken); 12 | }; 13 | -------------------------------------------------------------------------------- /packages/graphql-api/src/resolvers/impersonate.ts: -------------------------------------------------------------------------------- 1 | import { AccountsServer } from '@accounts/server'; 2 | import { ImpersonationResult } from '@accounts/types'; 3 | import { IResolverContext } from '../types/graphql'; 4 | 5 | export const impersonate = (accountsServer: AccountsServer) => async ( 6 | _, 7 | args: GQL.IImpersonateOnMutationArguments, 8 | ctx: IResolverContext 9 | ) => { 10 | const { accessToken, username } = args; 11 | const { ip, userAgent } = ctx; 12 | 13 | const impersonateRes: ImpersonationResult = await accountsServer.impersonate( 14 | accessToken, 15 | { username }, 16 | ip, 17 | userAgent 18 | ); 19 | 20 | // So ctx.user can be used in subsequent queries / mutations 21 | if (impersonateRes && impersonateRes.user) { 22 | ctx.user = impersonateRes.user; 23 | ctx.authToken = impersonateRes.tokens.accessToken; 24 | } 25 | 26 | return impersonateRes; 27 | }; 28 | -------------------------------------------------------------------------------- /packages/graphql-api/src/resolvers/logout.ts: -------------------------------------------------------------------------------- 1 | import { AccountsServer } from '@accounts/server'; 2 | import { IResolverContext } from '../types/graphql'; 3 | 4 | export const logout = (accountsServer: AccountsServer) => async ( 5 | _, 6 | args: GQL.ILogoutOnMutationArguments, 7 | ctx: IResolverContext 8 | ) => { 9 | const { accessToken } = args; 10 | 11 | await accountsServer.logout(accessToken); 12 | 13 | return 'Logged out'; 14 | }; 15 | -------------------------------------------------------------------------------- /packages/graphql-api/src/resolvers/refresh-tokens.ts: -------------------------------------------------------------------------------- 1 | import { AccountsServer } from '@accounts/server'; 2 | import { IResolverContext } from '../types/graphql'; 3 | 4 | export const refreshAccessToken = (accountsServer: AccountsServer) => async ( 5 | _, 6 | args: GQL.IRefreshTokensOnMutationArguments, 7 | ctx: IResolverContext 8 | ) => { 9 | const { accessToken, refreshToken } = args; 10 | const { ip, userAgent } = ctx; 11 | 12 | const refreshedSession = await accountsServer.refreshTokens( 13 | accessToken, 14 | refreshToken, 15 | ip, 16 | userAgent 17 | ); 18 | 19 | return refreshedSession; 20 | }; 21 | -------------------------------------------------------------------------------- /packages/graphql-api/src/resolvers/register-user.ts: -------------------------------------------------------------------------------- 1 | import { AccountsServer } from '@accounts/server'; 2 | import { IResolverContext } from '../types/graphql'; 3 | import { AccountsPassword, PasswordCreateUserType } from '@accounts/password'; 4 | 5 | export const registerPassword = (accountsServer: AccountsServer) => async ( 6 | _, 7 | args: GQL.IRegisterOnMutationArguments, 8 | ctx: IResolverContext 9 | ) => { 10 | const { user } = args; 11 | 12 | const password = accountsServer.getServices().password as AccountsPassword; 13 | 14 | if (!(typeof password.createUser === 'function')) { 15 | throw new Error('No service handle password registration.'); 16 | } 17 | 18 | const userId = await password.createUser(user as PasswordCreateUserType); 19 | 20 | return userId; 21 | }; 22 | -------------------------------------------------------------------------------- /packages/graphql-api/src/resolvers/reset-password.ts: -------------------------------------------------------------------------------- 1 | import { AccountsServer } from '@accounts/server'; 2 | import { IResolverContext } from '../types/graphql'; 3 | import { AccountsPassword } from '@accounts/password'; 4 | 5 | export const resetPassword = (accountsServer: AccountsServer) => async ( 6 | _, 7 | args: GQL.IResetPasswordOnMutationArguments, 8 | ctx: IResolverContext 9 | ) => { 10 | const { token, newPassword } = args; 11 | 12 | const password: any = accountsServer.getServices().password as AccountsPassword; 13 | 14 | if (!(typeof password.resetPassword === 'function')) { 15 | throw new Error('No service handle password reset.'); 16 | } 17 | 18 | return password.resetPassword(token, newPassword); 19 | }; 20 | -------------------------------------------------------------------------------- /packages/graphql-api/src/resolvers/send-reset-password-email.ts: -------------------------------------------------------------------------------- 1 | import { IResolverContext } from '../types/graphql'; 2 | import AccountsServer from '@accounts/server'; 3 | import { AccountsPassword } from '@accounts/password'; 4 | 5 | export const sendResetPasswordEmail = (accountsServer: AccountsServer) => async ( 6 | _, 7 | args: GQL.ISendVerificationEmailOnMutationArguments, 8 | ctx: IResolverContext 9 | ) => { 10 | const { email } = args; 11 | 12 | const password: any = accountsServer.getServices().password as AccountsPassword; 13 | 14 | if (!(typeof password.sendResetPasswordEmail === 'function')) { 15 | throw new Error('No service handle password reset.'); 16 | } 17 | 18 | return password.sendResetPasswordEmail(email); 19 | }; 20 | -------------------------------------------------------------------------------- /packages/graphql-api/src/resolvers/two-factor.ts: -------------------------------------------------------------------------------- 1 | import { IResolverContext } from '../types/graphql'; 2 | import AccountsServer from '@accounts/server'; 3 | import { AccountsPassword } from '@accounts/password'; 4 | 5 | export const twoFactorSecret = (accountsServer: AccountsServer) => async ( 6 | _, 7 | args: {}, 8 | ctx: IResolverContext 9 | ) => { 10 | const { user } = ctx; 11 | 12 | // Make sure user is logged in 13 | if (!(user && user.id)) { 14 | throw new Error('Unauthorized'); 15 | } 16 | 17 | const password: any = accountsServer.getServices().password as AccountsPassword; 18 | 19 | if (!(typeof password.resetPassword === 'function')) { 20 | throw new Error('No service handle password modification.'); 21 | } 22 | 23 | // https://github.com/speakeasyjs/speakeasy/blob/master/index.js#L517 24 | const secret = password.twoFactor.getNewAuthSecret(); 25 | return secret; 26 | }; 27 | 28 | export const twoFactorSet = (accountsServer: AccountsServer) => async ( 29 | _, 30 | args: GQL.ITwoFactorSetOnMutationArguments, 31 | ctx: IResolverContext 32 | ) => { 33 | const { code, secret } = args; 34 | const { user } = ctx; 35 | 36 | // Make sure user is logged in 37 | if (!(user && user.id)) { 38 | throw new Error('Unauthorized'); 39 | } 40 | 41 | const userId = user.id; 42 | const password: any = accountsServer.getServices().password as AccountsPassword; 43 | 44 | if (!(password && password.twoFactor && typeof password.twoFactor.set === 'function')) { 45 | throw new Error('No service handle set two factor.'); 46 | } 47 | 48 | return password.twoFactor.set(userId, secret, code); 49 | }; 50 | 51 | export const twoFactorUnset = (accountsServer: AccountsServer) => async ( 52 | _, 53 | args: GQL.ITwoFactorUnsetOnMutationArguments, 54 | ctx: IResolverContext 55 | ) => { 56 | const { code } = args; 57 | const { user } = ctx; 58 | 59 | // Make sure user is logged in 60 | if (!(user && user.id)) { 61 | throw new Error('Unauthorized'); 62 | } 63 | 64 | const userId = user.id; 65 | const password: any = accountsServer.getServices().password as AccountsPassword; 66 | 67 | if (!(password && password.twoFactor && typeof password.twoFactor.unset === 'function')) { 68 | throw new Error('No service handle two factor.'); 69 | } 70 | 71 | await password.twoFactor.unset(userId, code); 72 | }; 73 | -------------------------------------------------------------------------------- /packages/graphql-api/src/resolvers/user.ts: -------------------------------------------------------------------------------- 1 | export const User = { 2 | id: user => user.id || user._id, 3 | email: user => user.emails && user.emails[0] && user.emails[0].address, 4 | }; 5 | -------------------------------------------------------------------------------- /packages/graphql-api/src/resolvers/verify-email.ts: -------------------------------------------------------------------------------- 1 | import { AccountsServer } from '@accounts/server'; 2 | import { IResolverContext } from '../types/graphql'; 3 | import { AccountsPassword } from '@accounts/password'; 4 | 5 | export const verifyEmail = (accountsServer: AccountsServer) => async ( 6 | _, 7 | args: GQL.IVerifyEmailOnMutationArguments, 8 | ctx: IResolverContext 9 | ) => { 10 | const { token } = args; 11 | 12 | const password: any = accountsServer.getServices().password as AccountsPassword; 13 | 14 | if (!(typeof password.verifyEmail === 'function')) { 15 | throw new Error('No service handle email verification.'); 16 | } 17 | 18 | return password.verifyEmail(token); 19 | }; 20 | 21 | export const sendVerificationEmail = (accountsServer: AccountsServer) => async ( 22 | _, 23 | args: GQL.ISendVerificationEmailOnMutationArguments, 24 | ctx: IResolverContext 25 | ) => { 26 | const { email } = args; 27 | 28 | const password: any = accountsServer.getServices().password as AccountsPassword; 29 | 30 | if (!(typeof password.sendVerificationEmail === 'function')) { 31 | throw new Error('No service handle email verification.'); 32 | } 33 | 34 | return password.sendVerificationEmail(email); 35 | }; 36 | -------------------------------------------------------------------------------- /packages/graphql-api/src/schema-builder.ts: -------------------------------------------------------------------------------- 1 | import { AccountsServer } from '@accounts/server'; 2 | 3 | import { refreshAccessToken } from './resolvers/refresh-tokens'; 4 | import { impersonate } from './resolvers/impersonate'; 5 | import { getUser } from './resolvers/get-user'; 6 | import { User } from './resolvers/user'; 7 | import { mutations } from './graphql/mutations'; 8 | import { typeDefs } from './graphql/types'; 9 | import { queries } from './graphql/queries'; 10 | import { logout } from './resolvers/logout'; 11 | import { registerPassword } from './resolvers/register-user'; 12 | import { resetPassword } from './resolvers/reset-password'; 13 | import { sendResetPasswordEmail } from './resolvers/send-reset-password-email'; 14 | import { verifyEmail, sendVerificationEmail } from './resolvers/verify-email'; 15 | import { serviceAuthenticate } from './resolvers/authenticate'; 16 | import { changePassword } from './resolvers/change-password'; 17 | import { twoFactorSet, twoFactorUnset, twoFactorSecret } from './resolvers/two-factor'; 18 | import { authenticated } from './utils/authenticated-resolver'; 19 | 20 | export interface SchemaGenerationOptions { 21 | rootQueryName?: string; 22 | rootMutationName?: string; 23 | extend?: boolean; 24 | withSchemaDefinition?: boolean; 25 | } 26 | 27 | const defaultSchemaOptions = { 28 | rootQueryName: 'Query', 29 | rootMutationName: 'Mutation', 30 | extend: true, 31 | withSchemaDefinition: false, 32 | }; 33 | 34 | export const createJSAccountsGraphQL = ( 35 | accountsServer: AccountsServer, 36 | schemaOptions?: SchemaGenerationOptions 37 | ) => { 38 | schemaOptions = { 39 | ...defaultSchemaOptions, 40 | ...schemaOptions, 41 | }; 42 | 43 | const schema = ` 44 | ${typeDefs} 45 | 46 | ${schemaOptions.extend ? 'extend ' : ''}type ${schemaOptions.rootQueryName} { 47 | ${queries} 48 | } 49 | 50 | ${schemaOptions.extend ? 'extend ' : ''}type ${schemaOptions.rootMutationName} { 51 | ${mutations} 52 | } 53 | 54 | ${ 55 | schemaOptions.withSchemaDefinition 56 | ? `schema { 57 | query: ${schemaOptions.rootMutationName} 58 | mutation: ${schemaOptions.rootQueryName} 59 | }` 60 | : '' 61 | } 62 | `; 63 | 64 | const resolvers = { 65 | User, 66 | [schemaOptions.rootMutationName]: { 67 | impersonate: impersonate(accountsServer), 68 | refreshTokens: refreshAccessToken(accountsServer), 69 | logout: logout(accountsServer), 70 | // 3rd-party services authentication 71 | authenticate: serviceAuthenticate(accountsServer), 72 | 73 | // @accounts/password 74 | register: registerPassword(accountsServer), 75 | verifyEmail: verifyEmail(accountsServer), 76 | resetPassword: resetPassword(accountsServer), 77 | sendVerificationEmail: sendVerificationEmail(accountsServer), 78 | sendResetPasswordEmail: sendResetPasswordEmail(accountsServer), 79 | changePassword: authenticated(accountsServer, changePassword(accountsServer)), 80 | 81 | // Two factor 82 | twoFactorSet: authenticated(accountsServer, twoFactorSet(accountsServer)), 83 | twoFactorUnset: authenticated(accountsServer, twoFactorUnset(accountsServer)), 84 | 85 | // TODO: OAuth callback endpoint 86 | }, 87 | [schemaOptions.rootQueryName]: { 88 | getUser: getUser(accountsServer), 89 | twoFactorSecret: authenticated(accountsServer, twoFactorSecret(accountsServer)), 90 | }, 91 | }; 92 | 93 | return { 94 | schema, 95 | resolvers, 96 | extendWithResolvers: resolversObject => [...resolversObject, resolvers], 97 | }; 98 | }; 99 | -------------------------------------------------------------------------------- /packages/graphql-api/src/scripts/schema-to-types.ts: -------------------------------------------------------------------------------- 1 | import { generateNamespace } from '@gql2ts/from-schema'; 2 | import * as fs from 'fs'; 3 | import * as path from 'path'; 4 | 5 | import { createJSAccountsGraphQL } from '../schema-builder'; 6 | 7 | const schemaPath = path.join(__dirname, '../graphql/schema.d.ts'); 8 | 9 | const typescriptTypes = generateNamespace( 10 | 'GQL', 11 | createJSAccountsGraphQL(null, { 12 | rootQueryName: 'Query', 13 | rootMutationName: 'Mutation', 14 | extend: false, 15 | withSchemaDefinition: true, 16 | }).schema 17 | ); 18 | 19 | fs.writeFile(schemaPath, typescriptTypes, err => { 20 | if (err) { 21 | throw err; 22 | } 23 | }); 24 | -------------------------------------------------------------------------------- /packages/graphql-api/src/types/graphql.d.ts: -------------------------------------------------------------------------------- 1 | import { User } from '@accounts/types'; 2 | 3 | interface IResolverContext { 4 | user: User; 5 | authToken: string; 6 | userAgent: string; 7 | ip: string; 8 | } 9 | -------------------------------------------------------------------------------- /packages/graphql-api/src/utils/authenticated-resolver.ts: -------------------------------------------------------------------------------- 1 | export const authenticated = (Accounts, func) => async (root, args, context, info) => { 2 | if (context && context.skipJSAccountsVerification === true) { 3 | return func(root, args, context, info); 4 | } 5 | 6 | const authToken = context.authToken; 7 | 8 | if (!authToken || authToken === '' || authToken === null) { 9 | throw new Error('Unable to find authorization token in request'); 10 | } 11 | 12 | const userObject = await Accounts.resumeSession(authToken); 13 | 14 | if (userObject === null) { 15 | throw new Error('Invalid or expired token!'); 16 | } 17 | 18 | context.user = userObject; 19 | 20 | return func(root, args, context, info); 21 | }; 22 | -------------------------------------------------------------------------------- /packages/graphql-api/src/utils/context-builder.ts: -------------------------------------------------------------------------------- 1 | import { getClientIp } from 'request-ip'; 2 | import { IncomingMessage } from 'http'; 3 | 4 | export const getUA = (req: IncomingMessage) => { 5 | let userAgent: string = (req.headers['user-agent'] as string) || ''; 6 | if (req.headers['x-ucbrowser-ua']) { 7 | // special case of UC Browser 8 | userAgent = req.headers['x-ucbrowser-ua'] as string; 9 | } 10 | return userAgent; 11 | }; 12 | 13 | export const JSAccountsContext = (request, headerName = 'Authorization') => ({ 14 | authToken: request.headers[headerName] || request.headers[headerName.toLowerCase()], 15 | userAgent: getUA(request), 16 | ip: getClientIp(request), 17 | }); 18 | -------------------------------------------------------------------------------- /packages/graphql-api/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig", 3 | "compilerOptions": { 4 | "rootDir": "./src", 5 | "outDir": "./lib", 6 | "typeRoots": [ 7 | "node_modules/@types" 8 | ] 9 | }, 10 | "exclude": [ 11 | "node_modules", 12 | "__tests__", 13 | "lib" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /packages/graphql-client/.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | coverage/ 3 | node_modules 4 | yarn.lock 5 | tsconfig.json 6 | .npmignore -------------------------------------------------------------------------------- /packages/graphql-client/README.md: -------------------------------------------------------------------------------- 1 | # @accounts/graphql 2 | 3 | *Client side graphql transport for accounts suite* 4 | 5 | [![npm](https://img.shields.io/npm/v/@accounts/graphql.svg?maxAge=2592000)](https://www.npmjs.com/package/@accounts/graphql) [![Circle CI](https://circleci.com/gh/js-accounts/graphql.svg?style=shield)](https://circleci.com/gh/js-accounts/graphql) [![Coverage Status](https://coveralls.io/repos/github/js-accounts/graphql/badge.svg?branch=master)](https://coveralls.io/github/js-accounts/graphql?branch=master) ![MIT License](https://img.shields.io/badge/license-MIT-blue.svg) 6 | 7 | ## Note 8 | 9 | This package is under active development and just starting to take shape. 10 | -------------------------------------------------------------------------------- /packages/graphql-client/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@accounts/graphql-client", 3 | "version": "0.2.3", 4 | "description": "GraphQL client transport for accounts", 5 | "main": "lib/index.js", 6 | "typings": "lib/index.d.ts", 7 | "scripts": { 8 | "start": "tsc --watch", 9 | "compile": "tsc", 10 | "compile:watch": "tsc --watch", 11 | "test": "yarn testonly", 12 | "test-ci": "yarn coverage", 13 | "testonly": "jest", 14 | "coverage": "yarn testonly -- --coverage", 15 | "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" 16 | }, 17 | "jest": { 18 | "transform": { 19 | ".(ts|tsx)": "/../../node_modules/ts-jest/preprocessor.js" 20 | }, 21 | "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx)$", 22 | "moduleFileExtensions": [ 23 | "ts", 24 | "js" 25 | ], 26 | "mapCoverage": true 27 | }, 28 | "repository": { 29 | "type": "git", 30 | "url": "git+https://github.com/js-accounts/graphql.git" 31 | }, 32 | "author": "David Yahalomi", 33 | "license": "MIT", 34 | "bugs": { 35 | "url": "https://github.com/js-accounts/graphql/issues" 36 | }, 37 | "homepage": "https://github.com/js-accounts/graphql#readme", 38 | "devDependencies": { 39 | "coveralls": "^2.11.14", 40 | "jest": "^18.0.0", 41 | "lodash": "^4.16.4", 42 | "nock": "^9.0.2" 43 | }, 44 | "dependencies": { 45 | "@accounts/client": "^0.1.0-beta.17", 46 | "@accounts/common": "0.1.0-alpha.58382c10", 47 | "@accounts/types": "^0.1.0-beta.17", 48 | "graphql-tag": "^1.1.2" 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql-client.ts: -------------------------------------------------------------------------------- 1 | import { TransportInterface, AccountsClient } from '@accounts/client'; 2 | import { CreateUser, LoginResult, ImpersonationResult, User } from '@accounts/types'; 3 | import { createUserMutation } from './graphql/create-user.mutation'; 4 | import { loginWithServiceMutation } from './graphql/login-with-service.mutation'; 5 | import { logoutMutation } from './graphql/logout.mutation'; 6 | import { refreshTokensMutation } from './graphql/refresh-tokens.mutation'; 7 | import { verifyEmailMutation } from './graphql/verify-email.mutation'; 8 | import { sendResetPasswordEmailMutation } from './graphql/send-reset-password-email.mutation'; 9 | import { sendVerificationEmailMutation } from './graphql/send-verification-email.mutation'; 10 | import { resetPasswordMutation } from './graphql/reset-password.mutation'; 11 | import { changePasswordMutation } from './graphql/change-password.mutation'; 12 | import { twoFactorSetMutation } from './graphql/two-factor-set.mutation'; 13 | import { getTwoFactorSecretQuery } from './graphql/get-two-factor-secret.query'; 14 | import { twoFactorUnsetMutation } from './graphql/two-factor-unset.mutation'; 15 | import { impersonateMutation } from './graphql/impersonate.mutation'; 16 | import { getUserQuery } from './graphql/get-user.query'; 17 | 18 | export interface IAuthenticateParams { 19 | [key: string]: string | object; 20 | } 21 | 22 | export interface IOptionsType { 23 | graphQLClient: any; 24 | userFieldsFragment?: string; 25 | } 26 | 27 | export default class GraphQLClient implements TransportInterface { 28 | public client: AccountsClient; 29 | private options: IOptionsType; 30 | 31 | constructor(options: IOptionsType) { 32 | this.options = options; 33 | } 34 | 35 | /** 36 | * Create a user with basic user info 37 | * 38 | * @param {CreateUser} user user object 39 | * @returns {Promise} user's ID 40 | * @memberof GraphQLClient 41 | */ 42 | public async createUser(user: CreateUser): Promise { 43 | return this.mutate(createUserMutation, 'register', { user }); 44 | } 45 | 46 | /** 47 | * @inheritDoc 48 | */ 49 | public async loginWithService( 50 | service: string, 51 | authenticateParams: IAuthenticateParams 52 | ): Promise { 53 | return this.mutate(loginWithServiceMutation, 'authenticate', { 54 | serviceName: service, 55 | params: authenticateParams, 56 | }); 57 | } 58 | 59 | public async getUser(accessToken): Promise { 60 | return this.query(getUserQuery, 'getUser', { accessToken }); 61 | } 62 | 63 | /** 64 | * @inheritDoc 65 | */ 66 | public async logout(accessToken: string): Promise { 67 | return this.mutate(logoutMutation, 'logout', { accessToken }); 68 | } 69 | 70 | /** 71 | * @inheritDoc 72 | */ 73 | public async refreshTokens(accessToken: string, refreshToken: string): Promise { 74 | return this.mutate(refreshTokensMutation, 'refreshTokens', { accessToken, refreshToken }); 75 | } 76 | 77 | /** 78 | * @inheritDoc 79 | */ 80 | public async verifyEmail(token: string): Promise { 81 | return this.mutate(verifyEmailMutation, 'verifyEmail', { token }); 82 | } 83 | 84 | /** 85 | * @inheritDoc 86 | */ 87 | public async sendResetPasswordEmail(email: string): Promise { 88 | return this.mutate(sendResetPasswordEmailMutation, 'sendResetPasswordEmail', { email }); 89 | } 90 | 91 | /** 92 | * @inheritDoc 93 | */ 94 | public async sendVerificationEmail(email: string): Promise { 95 | return this.mutate(sendVerificationEmailMutation, 'sendVerificationEmail', { email }); 96 | } 97 | 98 | /** 99 | * @inheritDoc 100 | */ 101 | public async resetPassword(token: string, newPassword: string): Promise { 102 | return this.mutate(resetPasswordMutation, 'resetPassword', { token, newPassword }); 103 | } 104 | 105 | /** 106 | * @inheritDoc 107 | */ 108 | public async changePassword(oldPassword: string, newPassword: string): Promise { 109 | return this.mutate(changePasswordMutation, 'changePassword', { oldPassword, newPassword }); 110 | } 111 | 112 | public async getTwoFactorSecret(): Promise { 113 | return this.query(getTwoFactorSecretQuery, 'twoFactorSecret', {}); 114 | } 115 | 116 | public async twoFactorSet(secret: any, code: string): Promise { 117 | return this.mutate(twoFactorSetMutation, 'twoFactorSet', { secret, code }); 118 | } 119 | 120 | public async twoFactorUnset(code: string): Promise { 121 | return this.mutate(twoFactorUnsetMutation, 'twoFactorUnset', { code }); 122 | } 123 | 124 | /** 125 | * @inheritDoc 126 | */ 127 | public async impersonate( 128 | token: string, 129 | impersonated: { 130 | userId?: string; 131 | username?: string; 132 | email?: string; 133 | } 134 | ): Promise { 135 | return this.mutate(impersonateMutation, 'impersonate', { 136 | accessToken: token, 137 | username: impersonated.username, 138 | }); 139 | } 140 | 141 | private async mutate(mutation, resultField, variables) { 142 | const tokens = (await this.client.refreshSession()) || { accessToken: '' }; 143 | 144 | try { 145 | const { data } = await this.options.graphQLClient.mutate({ 146 | mutation, 147 | variables, 148 | context: { 149 | headers: { 150 | authorization: tokens.accessToken, 151 | }, 152 | }, 153 | }); 154 | return data[resultField]; 155 | } catch (e) { 156 | throw new Error(e.message); 157 | } 158 | } 159 | 160 | private async query(query, resultField, variables) { 161 | const tokens = (await this.client.refreshSession()) || { accessToken: '' }; 162 | 163 | try { 164 | const { data } = await this.options.graphQLClient.query({ 165 | query, 166 | variables, 167 | context: { 168 | headers: { 169 | authorization: tokens.accessToken, 170 | }, 171 | }, 172 | }); 173 | return data[resultField]; 174 | } catch (e) { 175 | throw new Error(e.message); 176 | } 177 | } 178 | } 179 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/change-password.mutation.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const changePasswordMutation = gql` 4 | mutation changePassword($oldPassword: String!, $newPassword: String!) { 5 | changePassword(oldPassword: $oldPassword, newPassword: $newPassword) 6 | } 7 | `; 8 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/create-user.mutation.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const createUserMutation = gql` 4 | mutation register($user: CreateUserInput!) { 5 | register(user: $user) 6 | } 7 | `; 8 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/get-two-factor-secret.query.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const getTwoFactorSecretQuery = gql` 4 | query { 5 | twoFactorSecret { 6 | ascii 7 | base32 8 | hex 9 | qr_code_ascii 10 | qr_code_hex 11 | qr_code_base32 12 | google_auth_qr 13 | otpauth_url 14 | } 15 | } 16 | `; 17 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/get-user.query.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const getUserQuery = gql` 4 | query($accessToken: String!) { 5 | getUser(accessToken: $accessToken) { 6 | id 7 | emails { 8 | address 9 | verified 10 | } 11 | username 12 | } 13 | } 14 | `; 15 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/impersonate.mutation.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const impersonateMutation = gql` 4 | mutation impersonate($accessToken: String!, $username: String!) { 5 | impersonate(accessToken: $accessToken, username: $username) { 6 | authorized 7 | tokens { 8 | refreshToken 9 | accessToken 10 | } 11 | # // TODO: Extract user into a fragment 12 | user { 13 | id 14 | email 15 | username 16 | } 17 | } 18 | } 19 | `; 20 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/login-with-service.mutation.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const loginWithServiceMutation = gql` 4 | mutation($serviceName: String!, $params: AuthenticateParamsInput!) { 5 | authenticate(serviceName: $serviceName, params: $params) { 6 | sessionId 7 | tokens { 8 | refreshToken 9 | accessToken 10 | } 11 | } 12 | } 13 | `; 14 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/logout.mutation.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const logoutMutation = gql` 4 | mutation logout($accessToken: String!) { 5 | logout(accessToken: $accessToken) 6 | } 7 | `; 8 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/refresh-tokens.mutation.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const refreshTokensMutation = gql` 4 | mutation refreshTokens($accessToken: String!, $refreshToken: String!) { 5 | refreshTokens(accessToken: $accessToken, refreshToken: $refreshToken) { 6 | sessionId 7 | tokens { 8 | refreshToken 9 | accessToken 10 | } 11 | } 12 | } 13 | `; 14 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/reset-password.mutation.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const resetPasswordMutation = gql` 4 | mutation resetPassword($token: String!, $newPassword: String!) { 5 | resetPassword(token: $token, newPassword: $newPassword) 6 | } 7 | `; 8 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/send-reset-password-email.mutation.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const sendResetPasswordEmailMutation = gql` 4 | mutation sendResetPasswordEmail($email: String!) { 5 | sendResetPasswordEmail(email: $email) 6 | } 7 | `; 8 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/send-verification-email.mutation.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const sendVerificationEmailMutation = gql` 4 | mutation sendVerificationEmail($email: String!) { 5 | sendVerificationEmail(email: $email) 6 | } 7 | `; 8 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/two-factor-set.mutation.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const twoFactorSetMutation = gql` 4 | mutation twoFactorSet($secret: TwoFactorSecretKeyInput!, $code: String!) { 5 | twoFactorSet(secret: $secret, code: $code) 6 | } 7 | `; 8 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/two-factor-unset.mutation.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const twoFactorUnsetMutation = gql` 4 | mutation twoFactorUnset($code: String!) { 5 | twoFactorUnset(code: $code) 6 | } 7 | `; 8 | -------------------------------------------------------------------------------- /packages/graphql-client/src/graphql/verify-email.mutation.ts: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag'; 2 | 3 | export const verifyEmailMutation = gql` 4 | mutation verifyEmail($token: String!) { 5 | verifyEmail(token: $token) 6 | } 7 | `; 8 | -------------------------------------------------------------------------------- /packages/graphql-client/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './graphql-client'; 2 | export { default } from './graphql-client'; 3 | -------------------------------------------------------------------------------- /packages/graphql-client/src/schema/schema.gql: -------------------------------------------------------------------------------- 1 | type Tokens { 2 | refreshToken: String 3 | accessToken: String 4 | } 5 | 6 | type LoginResult { 7 | sessionId: String 8 | tokens: Tokens 9 | } 10 | 11 | type ImpersonateReturn { 12 | authorized: Boolean 13 | tokens: Tokens 14 | user: User 15 | } 16 | 17 | type User { 18 | id: ID! 19 | email: String 20 | username: String 21 | } 22 | 23 | input UserInput { 24 | id: ID 25 | email: String 26 | username: String 27 | } 28 | 29 | input CreateUserInput { 30 | username: String 31 | email: String 32 | password: String 33 | profile: CreateUserProfileInput 34 | } 35 | 36 | input CreateUserProfileInput { 37 | name: String 38 | firstName: String 39 | lastName: String 40 | } 41 | 42 | input AuthenticateParamsInput { 43 | # Twitter, Instagram 44 | access_token: String 45 | # Twitter 46 | access_token_secret: String 47 | # OAuth 48 | provider: String 49 | # Password 50 | password: String 51 | # Password 52 | user: UserInput 53 | # Two factor 54 | code: String 55 | } 56 | 57 | extend type Query { 58 | getUser(accessToken: String!): User 59 | twoFactorSecret: String 60 | } 61 | 62 | extend type Mutation { 63 | impersonate(accessToken: String!, username: String!): ImpersonateReturn 64 | refreshTokens(accessToken: String!, refreshToken: String!): LoginResult 65 | logout(accessToken: String!): Boolean 66 | 67 | # Example: Login with password 68 | # authenticate(serviceName: "password", params: {password: "", user: {email: ""}}) 69 | authenticate( 70 | serviceName: String! 71 | params: AuthenticateParamsInput! 72 | ): LoginResult 73 | 74 | # register returns the id corresponding db ids, such as number IDs, ObjectIDs or UUIDs 75 | register(user: CreateUserInput!): ID 76 | verifyEmail(token: String!): Boolean 77 | resetPassword(token: String!, newPassword: String!): Boolean 78 | sendVerificationEmail(email: String!): Boolean 79 | sendResetPasswordEmail(email: String!): Boolean 80 | changePassword(oldPassword: String!, newPassword: String!): Boolean 81 | twoFactorSet(secret: String!, code: String!): Boolean 82 | twoFactorUnset(code: String!): Boolean 83 | } 84 | -------------------------------------------------------------------------------- /packages/graphql-client/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig", 3 | "compilerOptions": { 4 | "rootDir": "./src", 5 | "outDir": "./lib", 6 | "lib": ["dom", "es6", "es2015", "es2016", "es2017"], 7 | "typeRoots": [ 8 | "node_modules/@types" 9 | ] 10 | }, 11 | "exclude": [ 12 | "node_modules", 13 | "__tests__", 14 | "lib" 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /packages/graphql-client/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@accounts/client@^0.1.0-beta.17": 6 | version "0.1.0-beta.17" 7 | resolved "https://registry.yarnpkg.com/@accounts/client/-/client-0.1.0-beta.17.tgz#4cf3f3cf0da28745d06f61638eef480a2185259e" 8 | dependencies: 9 | "@accounts/types" "^0.1.0-beta.17" 10 | jwt-decode "2.2.0" 11 | 12 | "@accounts/common@0.1.0-alpha.58382c10": 13 | version "0.1.0-alpha.58382c10" 14 | resolved "https://registry.yarnpkg.com/@accounts/common/-/common-0.1.0-alpha.58382c10.tgz#b70db9a29a033fb2f2636d7b5f3bb568ffbae7c8" 15 | dependencies: 16 | lodash "^4.16.4" 17 | 18 | "@accounts/types@^0.1.0-beta.17": 19 | version "0.1.0-beta.17" 20 | resolved "https://registry.yarnpkg.com/@accounts/types/-/types-0.1.0-beta.17.tgz#8c78d3f1a3668e9f58e738c1409a40517ba61bdb" 21 | 22 | abab@^1.0.3: 23 | version "1.0.4" 24 | resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.4.tgz#5faad9c2c07f60dd76770f71cf025b62a63cfd4e" 25 | 26 | acorn-globals@^3.1.0: 27 | version "3.1.0" 28 | resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-3.1.0.tgz#fd8270f71fbb4996b004fa880ee5d46573a731bf" 29 | dependencies: 30 | acorn "^4.0.4" 31 | 32 | acorn@^4.0.4: 33 | version "4.0.13" 34 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787" 35 | 36 | ajv@^5.1.0: 37 | version "5.5.2" 38 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" 39 | dependencies: 40 | co "^4.6.0" 41 | fast-deep-equal "^1.0.0" 42 | fast-json-stable-stringify "^2.0.0" 43 | json-schema-traverse "^0.3.0" 44 | 45 | align-text@^0.1.1, align-text@^0.1.3: 46 | version "0.1.4" 47 | resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" 48 | dependencies: 49 | kind-of "^3.0.2" 50 | longest "^1.0.1" 51 | repeat-string "^1.5.2" 52 | 53 | amdefine@>=0.0.4: 54 | version "1.0.1" 55 | resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" 56 | 57 | ansi-escapes@^1.4.0: 58 | version "1.4.0" 59 | resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" 60 | 61 | ansi-regex@^2.0.0: 62 | version "2.1.1" 63 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 64 | 65 | ansi-styles@^2.2.1: 66 | version "2.2.1" 67 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" 68 | 69 | ansicolors@~0.2.1: 70 | version "0.2.1" 71 | resolved "https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.2.1.tgz#be089599097b74a5c9c4a84a0cdbcdb62bd87aef" 72 | 73 | append-transform@^1.0.0: 74 | version "1.0.0" 75 | resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-1.0.0.tgz#046a52ae582a228bd72f58acfbe2967c678759ab" 76 | dependencies: 77 | default-require-extensions "^2.0.0" 78 | 79 | argparse@^1.0.7: 80 | version "1.0.10" 81 | resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" 82 | dependencies: 83 | sprintf-js "~1.0.2" 84 | 85 | arr-diff@^2.0.0: 86 | version "2.0.0" 87 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" 88 | dependencies: 89 | arr-flatten "^1.0.1" 90 | 91 | arr-flatten@^1.0.1: 92 | version "1.1.0" 93 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" 94 | 95 | array-equal@^1.0.0: 96 | version "1.0.0" 97 | resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" 98 | 99 | array-unique@^0.2.1: 100 | version "0.2.1" 101 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" 102 | 103 | arrify@^1.0.1: 104 | version "1.0.1" 105 | resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" 106 | 107 | asn1@~0.2.3: 108 | version "0.2.3" 109 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" 110 | 111 | assert-plus@1.0.0, assert-plus@^1.0.0: 112 | version "1.0.0" 113 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 114 | 115 | assert-plus@^0.2.0: 116 | version "0.2.0" 117 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" 118 | 119 | assertion-error@^1.0.1: 120 | version "1.1.0" 121 | resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" 122 | 123 | async@^1.4.0: 124 | version "1.5.2" 125 | resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" 126 | 127 | async@^2.1.4: 128 | version "2.6.1" 129 | resolved "https://registry.yarnpkg.com/async/-/async-2.6.1.tgz#b245a23ca71930044ec53fa46aa00a3e87c6a610" 130 | dependencies: 131 | lodash "^4.17.10" 132 | 133 | asynckit@^0.4.0: 134 | version "0.4.0" 135 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 136 | 137 | aws-sign2@~0.6.0: 138 | version "0.6.0" 139 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" 140 | 141 | aws-sign2@~0.7.0: 142 | version "0.7.0" 143 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" 144 | 145 | aws4@^1.2.1, aws4@^1.6.0: 146 | version "1.7.0" 147 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.7.0.tgz#d4d0e9b9dbfca77bf08eeb0a8a471550fe39e289" 148 | 149 | babel-code-frame@^6.26.0: 150 | version "6.26.0" 151 | resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" 152 | dependencies: 153 | chalk "^1.1.3" 154 | esutils "^2.0.2" 155 | js-tokens "^3.0.2" 156 | 157 | babel-core@^6.0.0, babel-core@^6.26.0: 158 | version "6.26.3" 159 | resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" 160 | dependencies: 161 | babel-code-frame "^6.26.0" 162 | babel-generator "^6.26.0" 163 | babel-helpers "^6.24.1" 164 | babel-messages "^6.23.0" 165 | babel-register "^6.26.0" 166 | babel-runtime "^6.26.0" 167 | babel-template "^6.26.0" 168 | babel-traverse "^6.26.0" 169 | babel-types "^6.26.0" 170 | babylon "^6.18.0" 171 | convert-source-map "^1.5.1" 172 | debug "^2.6.9" 173 | json5 "^0.5.1" 174 | lodash "^4.17.4" 175 | minimatch "^3.0.4" 176 | path-is-absolute "^1.0.1" 177 | private "^0.1.8" 178 | slash "^1.0.0" 179 | source-map "^0.5.7" 180 | 181 | babel-generator@^6.18.0, babel-generator@^6.26.0: 182 | version "6.26.1" 183 | resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" 184 | dependencies: 185 | babel-messages "^6.23.0" 186 | babel-runtime "^6.26.0" 187 | babel-types "^6.26.0" 188 | detect-indent "^4.0.0" 189 | jsesc "^1.3.0" 190 | lodash "^4.17.4" 191 | source-map "^0.5.7" 192 | trim-right "^1.0.1" 193 | 194 | babel-helpers@^6.24.1: 195 | version "6.24.1" 196 | resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" 197 | dependencies: 198 | babel-runtime "^6.22.0" 199 | babel-template "^6.24.1" 200 | 201 | babel-jest@^18.0.0: 202 | version "18.0.0" 203 | resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-18.0.0.tgz#17ebba8cb3285c906d859e8707e4e79795fb65e3" 204 | dependencies: 205 | babel-core "^6.0.0" 206 | babel-plugin-istanbul "^3.0.0" 207 | babel-preset-jest "^18.0.0" 208 | 209 | babel-messages@^6.23.0: 210 | version "6.23.0" 211 | resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" 212 | dependencies: 213 | babel-runtime "^6.22.0" 214 | 215 | babel-plugin-istanbul@^3.0.0: 216 | version "3.1.2" 217 | resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-3.1.2.tgz#11d5abde18425ec24b5d648c7e0b5d25cd354a22" 218 | dependencies: 219 | find-up "^1.1.2" 220 | istanbul-lib-instrument "^1.4.2" 221 | object-assign "^4.1.0" 222 | test-exclude "^3.3.0" 223 | 224 | babel-plugin-jest-hoist@^18.0.0: 225 | version "18.0.0" 226 | resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-18.0.0.tgz#4150e70ecab560e6e7344adc849498072d34e12a" 227 | 228 | babel-preset-jest@^18.0.0: 229 | version "18.0.0" 230 | resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-18.0.0.tgz#84faf8ca3ec65aba7d5e3f59bbaed935ab24049e" 231 | dependencies: 232 | babel-plugin-jest-hoist "^18.0.0" 233 | 234 | babel-register@^6.26.0: 235 | version "6.26.0" 236 | resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" 237 | dependencies: 238 | babel-core "^6.26.0" 239 | babel-runtime "^6.26.0" 240 | core-js "^2.5.0" 241 | home-or-tmp "^2.0.0" 242 | lodash "^4.17.4" 243 | mkdirp "^0.5.1" 244 | source-map-support "^0.4.15" 245 | 246 | babel-runtime@^6.22.0, babel-runtime@^6.26.0: 247 | version "6.26.0" 248 | resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" 249 | dependencies: 250 | core-js "^2.4.0" 251 | regenerator-runtime "^0.11.0" 252 | 253 | babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0: 254 | version "6.26.0" 255 | resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" 256 | dependencies: 257 | babel-runtime "^6.26.0" 258 | babel-traverse "^6.26.0" 259 | babel-types "^6.26.0" 260 | babylon "^6.18.0" 261 | lodash "^4.17.4" 262 | 263 | babel-traverse@^6.18.0, babel-traverse@^6.26.0: 264 | version "6.26.0" 265 | resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" 266 | dependencies: 267 | babel-code-frame "^6.26.0" 268 | babel-messages "^6.23.0" 269 | babel-runtime "^6.26.0" 270 | babel-types "^6.26.0" 271 | babylon "^6.18.0" 272 | debug "^2.6.8" 273 | globals "^9.18.0" 274 | invariant "^2.2.2" 275 | lodash "^4.17.4" 276 | 277 | babel-types@^6.18.0, babel-types@^6.26.0: 278 | version "6.26.0" 279 | resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" 280 | dependencies: 281 | babel-runtime "^6.26.0" 282 | esutils "^2.0.2" 283 | lodash "^4.17.4" 284 | to-fast-properties "^1.0.3" 285 | 286 | babylon@^6.18.0: 287 | version "6.18.0" 288 | resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" 289 | 290 | balanced-match@^1.0.0: 291 | version "1.0.0" 292 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" 293 | 294 | bcrypt-pbkdf@^1.0.0: 295 | version "1.0.2" 296 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" 297 | dependencies: 298 | tweetnacl "^0.14.3" 299 | 300 | boom@2.x.x: 301 | version "2.10.1" 302 | resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" 303 | dependencies: 304 | hoek "2.x.x" 305 | 306 | brace-expansion@^1.1.7: 307 | version "1.1.11" 308 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" 309 | dependencies: 310 | balanced-match "^1.0.0" 311 | concat-map "0.0.1" 312 | 313 | braces@^1.8.2: 314 | version "1.8.5" 315 | resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" 316 | dependencies: 317 | expand-range "^1.8.1" 318 | preserve "^0.2.0" 319 | repeat-element "^1.1.2" 320 | 321 | browser-resolve@^1.11.2: 322 | version "1.11.3" 323 | resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" 324 | dependencies: 325 | resolve "1.1.7" 326 | 327 | bser@1.0.2: 328 | version "1.0.2" 329 | resolved "https://registry.yarnpkg.com/bser/-/bser-1.0.2.tgz#381116970b2a6deea5646dd15dd7278444b56169" 330 | dependencies: 331 | node-int64 "^0.4.0" 332 | 333 | builtin-modules@^1.0.0: 334 | version "1.1.1" 335 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 336 | 337 | callsites@^2.0.0: 338 | version "2.0.0" 339 | resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" 340 | 341 | camelcase@^1.0.2: 342 | version "1.2.1" 343 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" 344 | 345 | camelcase@^3.0.0: 346 | version "3.0.0" 347 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" 348 | 349 | cardinal@^1.0.0: 350 | version "1.0.0" 351 | resolved "https://registry.yarnpkg.com/cardinal/-/cardinal-1.0.0.tgz#50e21c1b0aa37729f9377def196b5a9cec932ee9" 352 | dependencies: 353 | ansicolors "~0.2.1" 354 | redeyed "~1.0.0" 355 | 356 | caseless@~0.11.0: 357 | version "0.11.0" 358 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" 359 | 360 | caseless@~0.12.0: 361 | version "0.12.0" 362 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" 363 | 364 | center-align@^0.1.1: 365 | version "0.1.3" 366 | resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" 367 | dependencies: 368 | align-text "^0.1.3" 369 | lazy-cache "^1.0.3" 370 | 371 | chai@^4.1.2: 372 | version "4.1.2" 373 | resolved "https://registry.yarnpkg.com/chai/-/chai-4.1.2.tgz#0f64584ba642f0f2ace2806279f4f06ca23ad73c" 374 | dependencies: 375 | assertion-error "^1.0.1" 376 | check-error "^1.0.1" 377 | deep-eql "^3.0.0" 378 | get-func-name "^2.0.0" 379 | pathval "^1.0.0" 380 | type-detect "^4.0.0" 381 | 382 | chalk@^1.1.1, chalk@^1.1.3: 383 | version "1.1.3" 384 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" 385 | dependencies: 386 | ansi-styles "^2.2.1" 387 | escape-string-regexp "^1.0.2" 388 | has-ansi "^2.0.0" 389 | strip-ansi "^3.0.0" 390 | supports-color "^2.0.0" 391 | 392 | check-error@^1.0.1: 393 | version "1.0.2" 394 | resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82" 395 | 396 | ci-info@^1.0.0: 397 | version "1.1.3" 398 | resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.1.3.tgz#710193264bb05c77b8c90d02f5aaf22216a667b2" 399 | 400 | cli-table@^0.3.1: 401 | version "0.3.1" 402 | resolved "https://registry.yarnpkg.com/cli-table/-/cli-table-0.3.1.tgz#f53b05266a8b1a0b934b3d0821e6e2dc5914ae23" 403 | dependencies: 404 | colors "1.0.3" 405 | 406 | cli-usage@^0.1.1: 407 | version "0.1.7" 408 | resolved "https://registry.yarnpkg.com/cli-usage/-/cli-usage-0.1.7.tgz#eaf1c9d5b91e22482333072a12127f05cd99a3ba" 409 | dependencies: 410 | marked "^0.3.12" 411 | marked-terminal "^2.0.0" 412 | 413 | cliui@^2.1.0: 414 | version "2.1.0" 415 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" 416 | dependencies: 417 | center-align "^0.1.1" 418 | right-align "^0.1.1" 419 | wordwrap "0.0.2" 420 | 421 | cliui@^3.2.0: 422 | version "3.2.0" 423 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" 424 | dependencies: 425 | string-width "^1.0.1" 426 | strip-ansi "^3.0.1" 427 | wrap-ansi "^2.0.0" 428 | 429 | co@^4.6.0: 430 | version "4.6.0" 431 | resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" 432 | 433 | code-point-at@^1.0.0: 434 | version "1.1.0" 435 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 436 | 437 | colors@1.0.3: 438 | version "1.0.3" 439 | resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" 440 | 441 | combined-stream@1.0.6, combined-stream@^1.0.5, combined-stream@~1.0.5: 442 | version "1.0.6" 443 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" 444 | dependencies: 445 | delayed-stream "~1.0.0" 446 | 447 | commander@^2.9.0: 448 | version "2.15.1" 449 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f" 450 | 451 | compare-versions@^3.1.0: 452 | version "3.3.0" 453 | resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.3.0.tgz#af93ea705a96943f622ab309578b9b90586f39c3" 454 | 455 | concat-map@0.0.1: 456 | version "0.0.1" 457 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 458 | 459 | content-type-parser@^1.0.1: 460 | version "1.0.2" 461 | resolved "https://registry.yarnpkg.com/content-type-parser/-/content-type-parser-1.0.2.tgz#caabe80623e63638b2502fd4c7f12ff4ce2352e7" 462 | 463 | convert-source-map@^1.5.1: 464 | version "1.5.1" 465 | resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" 466 | 467 | core-js@^2.4.0, core-js@^2.5.0: 468 | version "2.5.7" 469 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e" 470 | 471 | core-util-is@1.0.2: 472 | version "1.0.2" 473 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 474 | 475 | coveralls@^2.11.14: 476 | version "2.13.3" 477 | resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-2.13.3.tgz#9ad7c2ae527417f361e8b626483f48ee92dd2bc7" 478 | dependencies: 479 | js-yaml "3.6.1" 480 | lcov-parse "0.0.10" 481 | log-driver "1.2.5" 482 | minimist "1.2.0" 483 | request "2.79.0" 484 | 485 | cryptiles@2.x.x: 486 | version "2.0.5" 487 | resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" 488 | dependencies: 489 | boom "2.x.x" 490 | 491 | cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": 492 | version "0.3.3" 493 | resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.3.tgz#7b344769915759c2c9e3eb8c26f7fd533dbea252" 494 | 495 | "cssstyle@>= 0.2.37 < 0.3.0": 496 | version "0.2.37" 497 | resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-0.2.37.tgz#541097234cb2513c83ceed3acddc27ff27987d54" 498 | dependencies: 499 | cssom "0.3.x" 500 | 501 | dashdash@^1.12.0: 502 | version "1.14.1" 503 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 504 | dependencies: 505 | assert-plus "^1.0.0" 506 | 507 | debug@^2.6.8, debug@^2.6.9: 508 | version "2.6.9" 509 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" 510 | dependencies: 511 | ms "2.0.0" 512 | 513 | debug@^3.1.0: 514 | version "3.1.0" 515 | resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" 516 | dependencies: 517 | ms "2.0.0" 518 | 519 | decamelize@^1.0.0, decamelize@^1.1.1: 520 | version "1.2.0" 521 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" 522 | 523 | deep-eql@^3.0.0: 524 | version "3.0.1" 525 | resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-3.0.1.tgz#dfc9404400ad1c8fe023e7da1df1c147c4b444df" 526 | dependencies: 527 | type-detect "^4.0.0" 528 | 529 | deep-equal@^1.0.0: 530 | version "1.0.1" 531 | resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5" 532 | 533 | deep-is@~0.1.3: 534 | version "0.1.3" 535 | resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" 536 | 537 | default-require-extensions@^2.0.0: 538 | version "2.0.0" 539 | resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-2.0.0.tgz#f5f8fbb18a7d6d50b21f641f649ebb522cfe24f7" 540 | dependencies: 541 | strip-bom "^3.0.0" 542 | 543 | delayed-stream@~1.0.0: 544 | version "1.0.0" 545 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 546 | 547 | detect-indent@^4.0.0: 548 | version "4.0.0" 549 | resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" 550 | dependencies: 551 | repeating "^2.0.0" 552 | 553 | diff@^3.0.0: 554 | version "3.5.0" 555 | resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" 556 | 557 | ecc-jsbn@~0.1.1: 558 | version "0.1.1" 559 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" 560 | dependencies: 561 | jsbn "~0.1.0" 562 | 563 | errno@~0.1.7: 564 | version "0.1.7" 565 | resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" 566 | dependencies: 567 | prr "~1.0.1" 568 | 569 | error-ex@^1.2.0: 570 | version "1.3.2" 571 | resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" 572 | dependencies: 573 | is-arrayish "^0.2.1" 574 | 575 | escape-string-regexp@^1.0.2: 576 | version "1.0.5" 577 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 578 | 579 | escodegen@^1.6.1: 580 | version "1.10.0" 581 | resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.10.0.tgz#f647395de22519fbd0d928ffcf1d17e0dec2603e" 582 | dependencies: 583 | esprima "^3.1.3" 584 | estraverse "^4.2.0" 585 | esutils "^2.0.2" 586 | optionator "^0.8.1" 587 | optionalDependencies: 588 | source-map "~0.6.1" 589 | 590 | esprima@^2.6.0: 591 | version "2.7.3" 592 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" 593 | 594 | esprima@^3.1.3: 595 | version "3.1.3" 596 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" 597 | 598 | esprima@^4.0.0: 599 | version "4.0.0" 600 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" 601 | 602 | esprima@~3.0.0: 603 | version "3.0.0" 604 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.0.0.tgz#53cf247acda77313e551c3aa2e73342d3fb4f7d9" 605 | 606 | estraverse@^4.2.0: 607 | version "4.2.0" 608 | resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" 609 | 610 | esutils@^2.0.2: 611 | version "2.0.2" 612 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 613 | 614 | exec-sh@^0.2.0: 615 | version "0.2.2" 616 | resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.2.tgz#2a5e7ffcbd7d0ba2755bdecb16e5a427dfbdec36" 617 | dependencies: 618 | merge "^1.2.0" 619 | 620 | expand-brackets@^0.1.4: 621 | version "0.1.5" 622 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" 623 | dependencies: 624 | is-posix-bracket "^0.1.0" 625 | 626 | expand-range@^1.8.1: 627 | version "1.8.2" 628 | resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" 629 | dependencies: 630 | fill-range "^2.1.0" 631 | 632 | extend@~3.0.0, extend@~3.0.1: 633 | version "3.0.1" 634 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" 635 | 636 | extglob@^0.3.1: 637 | version "0.3.2" 638 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" 639 | dependencies: 640 | is-extglob "^1.0.0" 641 | 642 | extsprintf@1.3.0: 643 | version "1.3.0" 644 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" 645 | 646 | extsprintf@^1.2.0: 647 | version "1.4.0" 648 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" 649 | 650 | fast-deep-equal@^1.0.0: 651 | version "1.1.0" 652 | resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614" 653 | 654 | fast-json-stable-stringify@^2.0.0: 655 | version "2.0.0" 656 | resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" 657 | 658 | fast-levenshtein@~2.0.4: 659 | version "2.0.6" 660 | resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" 661 | 662 | fb-watchman@^1.8.0, fb-watchman@^1.9.0: 663 | version "1.9.2" 664 | resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-1.9.2.tgz#a24cf47827f82d38fb59a69ad70b76e3b6ae7383" 665 | dependencies: 666 | bser "1.0.2" 667 | 668 | filename-regex@^2.0.0: 669 | version "2.0.1" 670 | resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" 671 | 672 | fileset@^2.0.2: 673 | version "2.0.3" 674 | resolved "https://registry.yarnpkg.com/fileset/-/fileset-2.0.3.tgz#8e7548a96d3cc2327ee5e674168723a333bba2a0" 675 | dependencies: 676 | glob "^7.0.3" 677 | minimatch "^3.0.3" 678 | 679 | fill-range@^2.1.0: 680 | version "2.2.4" 681 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" 682 | dependencies: 683 | is-number "^2.1.0" 684 | isobject "^2.0.0" 685 | randomatic "^3.0.0" 686 | repeat-element "^1.1.2" 687 | repeat-string "^1.5.2" 688 | 689 | find-up@^1.0.0, find-up@^1.1.2: 690 | version "1.1.2" 691 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" 692 | dependencies: 693 | path-exists "^2.0.0" 694 | pinkie-promise "^2.0.0" 695 | 696 | for-in@^1.0.1: 697 | version "1.0.2" 698 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" 699 | 700 | for-own@^0.1.4: 701 | version "0.1.5" 702 | resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" 703 | dependencies: 704 | for-in "^1.0.1" 705 | 706 | forever-agent@~0.6.1: 707 | version "0.6.1" 708 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 709 | 710 | form-data@~2.1.1: 711 | version "2.1.4" 712 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" 713 | dependencies: 714 | asynckit "^0.4.0" 715 | combined-stream "^1.0.5" 716 | mime-types "^2.1.12" 717 | 718 | form-data@~2.3.1: 719 | version "2.3.2" 720 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.2.tgz#4970498be604c20c005d4f5c23aecd21d6b49099" 721 | dependencies: 722 | asynckit "^0.4.0" 723 | combined-stream "1.0.6" 724 | mime-types "^2.1.12" 725 | 726 | fs.realpath@^1.0.0: 727 | version "1.0.0" 728 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 729 | 730 | generate-function@^2.0.0: 731 | version "2.0.0" 732 | resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" 733 | 734 | generate-object-property@^1.1.0: 735 | version "1.2.0" 736 | resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" 737 | dependencies: 738 | is-property "^1.0.0" 739 | 740 | get-caller-file@^1.0.1: 741 | version "1.0.2" 742 | resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" 743 | 744 | get-func-name@^2.0.0: 745 | version "2.0.0" 746 | resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.0.tgz#ead774abee72e20409433a066366023dd6887a41" 747 | 748 | getpass@^0.1.1: 749 | version "0.1.7" 750 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" 751 | dependencies: 752 | assert-plus "^1.0.0" 753 | 754 | glob-base@^0.3.0: 755 | version "0.3.0" 756 | resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" 757 | dependencies: 758 | glob-parent "^2.0.0" 759 | is-glob "^2.0.0" 760 | 761 | glob-parent@^2.0.0: 762 | version "2.0.0" 763 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" 764 | dependencies: 765 | is-glob "^2.0.0" 766 | 767 | glob@^7.0.3, glob@^7.0.5: 768 | version "7.1.2" 769 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" 770 | dependencies: 771 | fs.realpath "^1.0.0" 772 | inflight "^1.0.4" 773 | inherits "2" 774 | minimatch "^3.0.4" 775 | once "^1.3.0" 776 | path-is-absolute "^1.0.0" 777 | 778 | globals@^9.18.0: 779 | version "9.18.0" 780 | resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" 781 | 782 | graceful-fs@^4.1.2, graceful-fs@^4.1.6: 783 | version "4.1.11" 784 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" 785 | 786 | graphql-tag@^1.1.2: 787 | version "1.3.2" 788 | resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-1.3.2.tgz#7abb3a8fd9f3415d07163314ed237061c785b759" 789 | 790 | growly@^1.2.0: 791 | version "1.3.0" 792 | resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" 793 | 794 | handlebars@^4.0.3: 795 | version "4.0.11" 796 | resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc" 797 | dependencies: 798 | async "^1.4.0" 799 | optimist "^0.6.1" 800 | source-map "^0.4.4" 801 | optionalDependencies: 802 | uglify-js "^2.6" 803 | 804 | har-schema@^2.0.0: 805 | version "2.0.0" 806 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" 807 | 808 | har-validator@~2.0.6: 809 | version "2.0.6" 810 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" 811 | dependencies: 812 | chalk "^1.1.1" 813 | commander "^2.9.0" 814 | is-my-json-valid "^2.12.4" 815 | pinkie-promise "^2.0.0" 816 | 817 | har-validator@~5.0.3: 818 | version "5.0.3" 819 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.0.3.tgz#ba402c266194f15956ef15e0fcf242993f6a7dfd" 820 | dependencies: 821 | ajv "^5.1.0" 822 | har-schema "^2.0.0" 823 | 824 | has-ansi@^2.0.0: 825 | version "2.0.0" 826 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" 827 | dependencies: 828 | ansi-regex "^2.0.0" 829 | 830 | has-flag@^1.0.0: 831 | version "1.0.0" 832 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" 833 | 834 | hawk@~3.1.3: 835 | version "3.1.3" 836 | resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" 837 | dependencies: 838 | boom "2.x.x" 839 | cryptiles "2.x.x" 840 | hoek "2.x.x" 841 | sntp "1.x.x" 842 | 843 | hoek@2.x.x: 844 | version "2.16.3" 845 | resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" 846 | 847 | home-or-tmp@^2.0.0: 848 | version "2.0.0" 849 | resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" 850 | dependencies: 851 | os-homedir "^1.0.0" 852 | os-tmpdir "^1.0.1" 853 | 854 | hosted-git-info@^2.1.4: 855 | version "2.6.1" 856 | resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.6.1.tgz#6e4cee78b01bb849dcf93527708c69fdbee410df" 857 | 858 | html-encoding-sniffer@^1.0.1: 859 | version "1.0.2" 860 | resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" 861 | dependencies: 862 | whatwg-encoding "^1.0.1" 863 | 864 | http-signature@~1.1.0: 865 | version "1.1.1" 866 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" 867 | dependencies: 868 | assert-plus "^0.2.0" 869 | jsprim "^1.2.2" 870 | sshpk "^1.7.0" 871 | 872 | http-signature@~1.2.0: 873 | version "1.2.0" 874 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" 875 | dependencies: 876 | assert-plus "^1.0.0" 877 | jsprim "^1.2.2" 878 | sshpk "^1.7.0" 879 | 880 | iconv-lite@0.4.19: 881 | version "0.4.19" 882 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" 883 | 884 | inflight@^1.0.4: 885 | version "1.0.6" 886 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 887 | dependencies: 888 | once "^1.3.0" 889 | wrappy "1" 890 | 891 | inherits@2: 892 | version "2.0.3" 893 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 894 | 895 | invariant@^2.2.2: 896 | version "2.2.4" 897 | resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" 898 | dependencies: 899 | loose-envify "^1.0.0" 900 | 901 | invert-kv@^1.0.0: 902 | version "1.0.0" 903 | resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" 904 | 905 | is-arrayish@^0.2.1: 906 | version "0.2.1" 907 | resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 908 | 909 | is-buffer@^1.1.5: 910 | version "1.1.6" 911 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" 912 | 913 | is-builtin-module@^1.0.0: 914 | version "1.0.0" 915 | resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" 916 | dependencies: 917 | builtin-modules "^1.0.0" 918 | 919 | is-ci@^1.0.9: 920 | version "1.1.0" 921 | resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.1.0.tgz#247e4162e7860cebbdaf30b774d6b0ac7dcfe7a5" 922 | dependencies: 923 | ci-info "^1.0.0" 924 | 925 | is-dotfile@^1.0.0: 926 | version "1.0.3" 927 | resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" 928 | 929 | is-equal-shallow@^0.1.3: 930 | version "0.1.3" 931 | resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" 932 | dependencies: 933 | is-primitive "^2.0.0" 934 | 935 | is-extendable@^0.1.1: 936 | version "0.1.1" 937 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" 938 | 939 | is-extglob@^1.0.0: 940 | version "1.0.0" 941 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" 942 | 943 | is-finite@^1.0.0: 944 | version "1.0.2" 945 | resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" 946 | dependencies: 947 | number-is-nan "^1.0.0" 948 | 949 | is-fullwidth-code-point@^1.0.0: 950 | version "1.0.0" 951 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 952 | dependencies: 953 | number-is-nan "^1.0.0" 954 | 955 | is-glob@^2.0.0, is-glob@^2.0.1: 956 | version "2.0.1" 957 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" 958 | dependencies: 959 | is-extglob "^1.0.0" 960 | 961 | is-my-ip-valid@^1.0.0: 962 | version "1.0.0" 963 | resolved "https://registry.yarnpkg.com/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz#7b351b8e8edd4d3995d4d066680e664d94696824" 964 | 965 | is-my-json-valid@^2.12.4: 966 | version "2.17.2" 967 | resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.17.2.tgz#6b2103a288e94ef3de5cf15d29dd85fc4b78d65c" 968 | dependencies: 969 | generate-function "^2.0.0" 970 | generate-object-property "^1.1.0" 971 | is-my-ip-valid "^1.0.0" 972 | jsonpointer "^4.0.0" 973 | xtend "^4.0.0" 974 | 975 | is-number@^2.1.0: 976 | version "2.1.0" 977 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" 978 | dependencies: 979 | kind-of "^3.0.2" 980 | 981 | is-number@^4.0.0: 982 | version "4.0.0" 983 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" 984 | 985 | is-posix-bracket@^0.1.0: 986 | version "0.1.1" 987 | resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" 988 | 989 | is-primitive@^2.0.0: 990 | version "2.0.0" 991 | resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" 992 | 993 | is-property@^1.0.0: 994 | version "1.0.2" 995 | resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" 996 | 997 | is-typedarray@~1.0.0: 998 | version "1.0.0" 999 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 1000 | 1001 | is-utf8@^0.2.0: 1002 | version "0.2.1" 1003 | resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" 1004 | 1005 | isarray@1.0.0: 1006 | version "1.0.0" 1007 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 1008 | 1009 | isexe@^2.0.0: 1010 | version "2.0.0" 1011 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 1012 | 1013 | isobject@^2.0.0: 1014 | version "2.1.0" 1015 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" 1016 | dependencies: 1017 | isarray "1.0.0" 1018 | 1019 | isstream@~0.1.2: 1020 | version "0.1.2" 1021 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 1022 | 1023 | istanbul-api@^1.1.0-alpha.1: 1024 | version "1.3.1" 1025 | resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.3.1.tgz#4c3b05d18c0016d1022e079b98dc82c40f488954" 1026 | dependencies: 1027 | async "^2.1.4" 1028 | compare-versions "^3.1.0" 1029 | fileset "^2.0.2" 1030 | istanbul-lib-coverage "^1.2.0" 1031 | istanbul-lib-hook "^1.2.0" 1032 | istanbul-lib-instrument "^1.10.1" 1033 | istanbul-lib-report "^1.1.4" 1034 | istanbul-lib-source-maps "^1.2.4" 1035 | istanbul-reports "^1.3.0" 1036 | js-yaml "^3.7.0" 1037 | mkdirp "^0.5.1" 1038 | once "^1.4.0" 1039 | 1040 | istanbul-lib-coverage@^1.0.0, istanbul-lib-coverage@^1.2.0: 1041 | version "1.2.0" 1042 | resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.0.tgz#f7d8f2e42b97e37fe796114cb0f9d68b5e3a4341" 1043 | 1044 | istanbul-lib-hook@^1.2.0: 1045 | version "1.2.1" 1046 | resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.2.1.tgz#f614ec45287b2a8fc4f07f5660af787575601805" 1047 | dependencies: 1048 | append-transform "^1.0.0" 1049 | 1050 | istanbul-lib-instrument@^1.1.1, istanbul-lib-instrument@^1.10.1, istanbul-lib-instrument@^1.4.2: 1051 | version "1.10.1" 1052 | resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.1.tgz#724b4b6caceba8692d3f1f9d0727e279c401af7b" 1053 | dependencies: 1054 | babel-generator "^6.18.0" 1055 | babel-template "^6.16.0" 1056 | babel-traverse "^6.18.0" 1057 | babel-types "^6.18.0" 1058 | babylon "^6.18.0" 1059 | istanbul-lib-coverage "^1.2.0" 1060 | semver "^5.3.0" 1061 | 1062 | istanbul-lib-report@^1.1.4: 1063 | version "1.1.4" 1064 | resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.1.4.tgz#e886cdf505c4ebbd8e099e4396a90d0a28e2acb5" 1065 | dependencies: 1066 | istanbul-lib-coverage "^1.2.0" 1067 | mkdirp "^0.5.1" 1068 | path-parse "^1.0.5" 1069 | supports-color "^3.1.2" 1070 | 1071 | istanbul-lib-source-maps@^1.2.4: 1072 | version "1.2.5" 1073 | resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.5.tgz#ffe6be4e7ab86d3603e4290d54990b14506fc9b1" 1074 | dependencies: 1075 | debug "^3.1.0" 1076 | istanbul-lib-coverage "^1.2.0" 1077 | mkdirp "^0.5.1" 1078 | rimraf "^2.6.1" 1079 | source-map "^0.5.3" 1080 | 1081 | istanbul-reports@^1.3.0: 1082 | version "1.3.0" 1083 | resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.3.0.tgz#2f322e81e1d9520767597dca3c20a0cce89a3554" 1084 | dependencies: 1085 | handlebars "^4.0.3" 1086 | 1087 | jest-changed-files@^17.0.2: 1088 | version "17.0.2" 1089 | resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-17.0.2.tgz#f5657758736996f590a51b87e5c9369d904ba7b7" 1090 | 1091 | jest-cli@^18.1.0: 1092 | version "18.1.0" 1093 | resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-18.1.0.tgz#5ead36ecad420817c2c9baa2aa7574f63257b3d6" 1094 | dependencies: 1095 | ansi-escapes "^1.4.0" 1096 | callsites "^2.0.0" 1097 | chalk "^1.1.1" 1098 | graceful-fs "^4.1.6" 1099 | is-ci "^1.0.9" 1100 | istanbul-api "^1.1.0-alpha.1" 1101 | istanbul-lib-coverage "^1.0.0" 1102 | istanbul-lib-instrument "^1.1.1" 1103 | jest-changed-files "^17.0.2" 1104 | jest-config "^18.1.0" 1105 | jest-environment-jsdom "^18.1.0" 1106 | jest-file-exists "^17.0.0" 1107 | jest-haste-map "^18.1.0" 1108 | jest-jasmine2 "^18.1.0" 1109 | jest-mock "^18.0.0" 1110 | jest-resolve "^18.1.0" 1111 | jest-resolve-dependencies "^18.1.0" 1112 | jest-runtime "^18.1.0" 1113 | jest-snapshot "^18.1.0" 1114 | jest-util "^18.1.0" 1115 | json-stable-stringify "^1.0.0" 1116 | node-notifier "^4.6.1" 1117 | sane "~1.4.1" 1118 | strip-ansi "^3.0.1" 1119 | throat "^3.0.0" 1120 | which "^1.1.1" 1121 | worker-farm "^1.3.1" 1122 | yargs "^6.3.0" 1123 | 1124 | jest-config@^18.1.0: 1125 | version "18.1.0" 1126 | resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-18.1.0.tgz#6111740a6d48aab86ff5a9e6ab0b98bd993b6ff4" 1127 | dependencies: 1128 | chalk "^1.1.1" 1129 | jest-environment-jsdom "^18.1.0" 1130 | jest-environment-node "^18.1.0" 1131 | jest-jasmine2 "^18.1.0" 1132 | jest-mock "^18.0.0" 1133 | jest-resolve "^18.1.0" 1134 | jest-util "^18.1.0" 1135 | json-stable-stringify "^1.0.0" 1136 | 1137 | jest-diff@^18.1.0: 1138 | version "18.1.0" 1139 | resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-18.1.0.tgz#4ff79e74dd988c139195b365dc65d87f606f4803" 1140 | dependencies: 1141 | chalk "^1.1.3" 1142 | diff "^3.0.0" 1143 | jest-matcher-utils "^18.1.0" 1144 | pretty-format "^18.1.0" 1145 | 1146 | jest-environment-jsdom@^18.1.0: 1147 | version "18.1.0" 1148 | resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-18.1.0.tgz#18b42f0c4ea2bae9f36cab3639b1e8f8c384e24e" 1149 | dependencies: 1150 | jest-mock "^18.0.0" 1151 | jest-util "^18.1.0" 1152 | jsdom "^9.9.1" 1153 | 1154 | jest-environment-node@^18.1.0: 1155 | version "18.1.0" 1156 | resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-18.1.0.tgz#4d6797572c8dda99acf5fae696eb62945547c779" 1157 | dependencies: 1158 | jest-mock "^18.0.0" 1159 | jest-util "^18.1.0" 1160 | 1161 | jest-file-exists@^17.0.0: 1162 | version "17.0.0" 1163 | resolved "https://registry.yarnpkg.com/jest-file-exists/-/jest-file-exists-17.0.0.tgz#7f63eb73a1c43a13f461be261768b45af2cdd169" 1164 | 1165 | jest-haste-map@^18.1.0: 1166 | version "18.1.0" 1167 | resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-18.1.0.tgz#06839c74b770a40c1a106968851df8d281c08375" 1168 | dependencies: 1169 | fb-watchman "^1.9.0" 1170 | graceful-fs "^4.1.6" 1171 | micromatch "^2.3.11" 1172 | sane "~1.4.1" 1173 | worker-farm "^1.3.1" 1174 | 1175 | jest-jasmine2@^18.1.0: 1176 | version "18.1.0" 1177 | resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-18.1.0.tgz#094e104c2c189708766c77263bb2aecb5860a80b" 1178 | dependencies: 1179 | graceful-fs "^4.1.6" 1180 | jest-matcher-utils "^18.1.0" 1181 | jest-matchers "^18.1.0" 1182 | jest-snapshot "^18.1.0" 1183 | jest-util "^18.1.0" 1184 | 1185 | jest-matcher-utils@^18.1.0: 1186 | version "18.1.0" 1187 | resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-18.1.0.tgz#1ac4651955ee2a60cef1e7fcc98cdfd773c0f932" 1188 | dependencies: 1189 | chalk "^1.1.3" 1190 | pretty-format "^18.1.0" 1191 | 1192 | jest-matchers@^18.1.0: 1193 | version "18.1.0" 1194 | resolved "https://registry.yarnpkg.com/jest-matchers/-/jest-matchers-18.1.0.tgz#0341484bf87a1fd0bac0a4d2c899e2b77a3f1ead" 1195 | dependencies: 1196 | jest-diff "^18.1.0" 1197 | jest-matcher-utils "^18.1.0" 1198 | jest-util "^18.1.0" 1199 | pretty-format "^18.1.0" 1200 | 1201 | jest-mock@^18.0.0: 1202 | version "18.0.0" 1203 | resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-18.0.0.tgz#5c248846ea33fa558b526f5312ab4a6765e489b3" 1204 | 1205 | jest-resolve-dependencies@^18.1.0: 1206 | version "18.1.0" 1207 | resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-18.1.0.tgz#8134fb5caf59c9ed842fe0152ab01c52711f1bbb" 1208 | dependencies: 1209 | jest-file-exists "^17.0.0" 1210 | jest-resolve "^18.1.0" 1211 | 1212 | jest-resolve@^18.1.0: 1213 | version "18.1.0" 1214 | resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-18.1.0.tgz#6800accb536658c906cd5e29de412b1ab9ac249b" 1215 | dependencies: 1216 | browser-resolve "^1.11.2" 1217 | jest-file-exists "^17.0.0" 1218 | jest-haste-map "^18.1.0" 1219 | resolve "^1.2.0" 1220 | 1221 | jest-runtime@^18.1.0: 1222 | version "18.1.0" 1223 | resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-18.1.0.tgz#3abfd687175b21fc3b85a2b8064399e997859922" 1224 | dependencies: 1225 | babel-core "^6.0.0" 1226 | babel-jest "^18.0.0" 1227 | babel-plugin-istanbul "^3.0.0" 1228 | chalk "^1.1.3" 1229 | graceful-fs "^4.1.6" 1230 | jest-config "^18.1.0" 1231 | jest-file-exists "^17.0.0" 1232 | jest-haste-map "^18.1.0" 1233 | jest-mock "^18.0.0" 1234 | jest-resolve "^18.1.0" 1235 | jest-snapshot "^18.1.0" 1236 | jest-util "^18.1.0" 1237 | json-stable-stringify "^1.0.0" 1238 | micromatch "^2.3.11" 1239 | yargs "^6.3.0" 1240 | 1241 | jest-snapshot@^18.1.0: 1242 | version "18.1.0" 1243 | resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-18.1.0.tgz#55b96d2ee639c9bce76f87f2a3fd40b71c7a5916" 1244 | dependencies: 1245 | jest-diff "^18.1.0" 1246 | jest-file-exists "^17.0.0" 1247 | jest-matcher-utils "^18.1.0" 1248 | jest-util "^18.1.0" 1249 | natural-compare "^1.4.0" 1250 | pretty-format "^18.1.0" 1251 | 1252 | jest-util@^18.1.0: 1253 | version "18.1.0" 1254 | resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-18.1.0.tgz#3a99c32114ab17f84be094382527006e6d4bfc6a" 1255 | dependencies: 1256 | chalk "^1.1.1" 1257 | diff "^3.0.0" 1258 | graceful-fs "^4.1.6" 1259 | jest-file-exists "^17.0.0" 1260 | jest-mock "^18.0.0" 1261 | mkdirp "^0.5.1" 1262 | 1263 | jest@^18.0.0: 1264 | version "18.1.0" 1265 | resolved "https://registry.yarnpkg.com/jest/-/jest-18.1.0.tgz#bcebf1e203dee5c2ad2091c805300a343d9e6c7d" 1266 | dependencies: 1267 | jest-cli "^18.1.0" 1268 | 1269 | js-tokens@^3.0.0, js-tokens@^3.0.2: 1270 | version "3.0.2" 1271 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" 1272 | 1273 | js-yaml@3.6.1: 1274 | version "3.6.1" 1275 | resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30" 1276 | dependencies: 1277 | argparse "^1.0.7" 1278 | esprima "^2.6.0" 1279 | 1280 | js-yaml@^3.7.0: 1281 | version "3.12.0" 1282 | resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1" 1283 | dependencies: 1284 | argparse "^1.0.7" 1285 | esprima "^4.0.0" 1286 | 1287 | jsbn@~0.1.0: 1288 | version "0.1.1" 1289 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" 1290 | 1291 | jsdom@^9.9.1: 1292 | version "9.12.0" 1293 | resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-9.12.0.tgz#e8c546fffcb06c00d4833ca84410fed7f8a097d4" 1294 | dependencies: 1295 | abab "^1.0.3" 1296 | acorn "^4.0.4" 1297 | acorn-globals "^3.1.0" 1298 | array-equal "^1.0.0" 1299 | content-type-parser "^1.0.1" 1300 | cssom ">= 0.3.2 < 0.4.0" 1301 | cssstyle ">= 0.2.37 < 0.3.0" 1302 | escodegen "^1.6.1" 1303 | html-encoding-sniffer "^1.0.1" 1304 | nwmatcher ">= 1.3.9 < 2.0.0" 1305 | parse5 "^1.5.1" 1306 | request "^2.79.0" 1307 | sax "^1.2.1" 1308 | symbol-tree "^3.2.1" 1309 | tough-cookie "^2.3.2" 1310 | webidl-conversions "^4.0.0" 1311 | whatwg-encoding "^1.0.1" 1312 | whatwg-url "^4.3.0" 1313 | xml-name-validator "^2.0.1" 1314 | 1315 | jsesc@^1.3.0: 1316 | version "1.3.0" 1317 | resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" 1318 | 1319 | json-schema-traverse@^0.3.0: 1320 | version "0.3.1" 1321 | resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" 1322 | 1323 | json-schema@0.2.3: 1324 | version "0.2.3" 1325 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 1326 | 1327 | json-stable-stringify@^1.0.0: 1328 | version "1.0.1" 1329 | resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" 1330 | dependencies: 1331 | jsonify "~0.0.0" 1332 | 1333 | json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: 1334 | version "5.0.1" 1335 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 1336 | 1337 | json5@^0.5.1: 1338 | version "0.5.1" 1339 | resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" 1340 | 1341 | jsonify@~0.0.0: 1342 | version "0.0.0" 1343 | resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" 1344 | 1345 | jsonpointer@^4.0.0: 1346 | version "4.0.1" 1347 | resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" 1348 | 1349 | jsprim@^1.2.2: 1350 | version "1.4.1" 1351 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" 1352 | dependencies: 1353 | assert-plus "1.0.0" 1354 | extsprintf "1.3.0" 1355 | json-schema "0.2.3" 1356 | verror "1.10.0" 1357 | 1358 | jwt-decode@2.2.0: 1359 | version "2.2.0" 1360 | resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-2.2.0.tgz#7d86bd56679f58ce6a84704a657dd392bba81a79" 1361 | 1362 | kind-of@^3.0.2: 1363 | version "3.2.2" 1364 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" 1365 | dependencies: 1366 | is-buffer "^1.1.5" 1367 | 1368 | kind-of@^6.0.0: 1369 | version "6.0.2" 1370 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" 1371 | 1372 | lazy-cache@^1.0.3: 1373 | version "1.0.4" 1374 | resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" 1375 | 1376 | lcid@^1.0.0: 1377 | version "1.0.0" 1378 | resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" 1379 | dependencies: 1380 | invert-kv "^1.0.0" 1381 | 1382 | lcov-parse@0.0.10: 1383 | version "0.0.10" 1384 | resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3" 1385 | 1386 | levn@~0.3.0: 1387 | version "0.3.0" 1388 | resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" 1389 | dependencies: 1390 | prelude-ls "~1.1.2" 1391 | type-check "~0.3.2" 1392 | 1393 | load-json-file@^1.0.0: 1394 | version "1.1.0" 1395 | resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" 1396 | dependencies: 1397 | graceful-fs "^4.1.2" 1398 | parse-json "^2.2.0" 1399 | pify "^2.0.0" 1400 | pinkie-promise "^2.0.0" 1401 | strip-bom "^2.0.0" 1402 | 1403 | lodash._arraycopy@^3.0.0: 1404 | version "3.0.0" 1405 | resolved "https://registry.yarnpkg.com/lodash._arraycopy/-/lodash._arraycopy-3.0.0.tgz#76e7b7c1f1fb92547374878a562ed06a3e50f6e1" 1406 | 1407 | lodash._arrayeach@^3.0.0: 1408 | version "3.0.0" 1409 | resolved "https://registry.yarnpkg.com/lodash._arrayeach/-/lodash._arrayeach-3.0.0.tgz#bab156b2a90d3f1bbd5c653403349e5e5933ef9e" 1410 | 1411 | lodash._baseassign@^3.0.0: 1412 | version "3.2.0" 1413 | resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e" 1414 | dependencies: 1415 | lodash._basecopy "^3.0.0" 1416 | lodash.keys "^3.0.0" 1417 | 1418 | lodash._baseclone@^3.0.0: 1419 | version "3.3.0" 1420 | resolved "https://registry.yarnpkg.com/lodash._baseclone/-/lodash._baseclone-3.3.0.tgz#303519bf6393fe7e42f34d8b630ef7794e3542b7" 1421 | dependencies: 1422 | lodash._arraycopy "^3.0.0" 1423 | lodash._arrayeach "^3.0.0" 1424 | lodash._baseassign "^3.0.0" 1425 | lodash._basefor "^3.0.0" 1426 | lodash.isarray "^3.0.0" 1427 | lodash.keys "^3.0.0" 1428 | 1429 | lodash._basecopy@^3.0.0: 1430 | version "3.0.1" 1431 | resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" 1432 | 1433 | lodash._basefor@^3.0.0: 1434 | version "3.0.3" 1435 | resolved "https://registry.yarnpkg.com/lodash._basefor/-/lodash._basefor-3.0.3.tgz#7550b4e9218ef09fad24343b612021c79b4c20c2" 1436 | 1437 | lodash._bindcallback@^3.0.0: 1438 | version "3.0.1" 1439 | resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e" 1440 | 1441 | lodash._getnative@^3.0.0: 1442 | version "3.9.1" 1443 | resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" 1444 | 1445 | lodash.assign@^4.2.0: 1446 | version "4.2.0" 1447 | resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7" 1448 | 1449 | lodash.clonedeep@^3.0.0: 1450 | version "3.0.2" 1451 | resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-3.0.2.tgz#a0a1e40d82a5ea89ff5b147b8444ed63d92827db" 1452 | dependencies: 1453 | lodash._baseclone "^3.0.0" 1454 | lodash._bindcallback "^3.0.0" 1455 | 1456 | lodash.isarguments@^3.0.0: 1457 | version "3.1.0" 1458 | resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" 1459 | 1460 | lodash.isarray@^3.0.0: 1461 | version "3.0.4" 1462 | resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" 1463 | 1464 | lodash.keys@^3.0.0: 1465 | version "3.1.2" 1466 | resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" 1467 | dependencies: 1468 | lodash._getnative "^3.0.0" 1469 | lodash.isarguments "^3.0.0" 1470 | lodash.isarray "^3.0.0" 1471 | 1472 | lodash.toarray@^4.4.0: 1473 | version "4.4.0" 1474 | resolved "https://registry.yarnpkg.com/lodash.toarray/-/lodash.toarray-4.4.0.tgz#24c4bfcd6b2fba38bfd0594db1179d8e9b656561" 1475 | 1476 | lodash@^4.16.4, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.17.5: 1477 | version "4.17.10" 1478 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" 1479 | 1480 | log-driver@1.2.5: 1481 | version "1.2.5" 1482 | resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056" 1483 | 1484 | longest@^1.0.1: 1485 | version "1.0.1" 1486 | resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" 1487 | 1488 | loose-envify@^1.0.0: 1489 | version "1.3.1" 1490 | resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" 1491 | dependencies: 1492 | js-tokens "^3.0.0" 1493 | 1494 | makeerror@1.0.x: 1495 | version "1.0.11" 1496 | resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" 1497 | dependencies: 1498 | tmpl "1.0.x" 1499 | 1500 | marked-terminal@^2.0.0: 1501 | version "2.0.0" 1502 | resolved "https://registry.yarnpkg.com/marked-terminal/-/marked-terminal-2.0.0.tgz#5eaf568be66f686541afa52a558280310a31de2d" 1503 | dependencies: 1504 | cardinal "^1.0.0" 1505 | chalk "^1.1.3" 1506 | cli-table "^0.3.1" 1507 | lodash.assign "^4.2.0" 1508 | node-emoji "^1.4.1" 1509 | 1510 | marked@^0.3.12: 1511 | version "0.3.19" 1512 | resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.19.tgz#5d47f709c4c9fc3c216b6d46127280f40b39d790" 1513 | 1514 | math-random@^1.0.1: 1515 | version "1.0.1" 1516 | resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac" 1517 | 1518 | merge@^1.2.0: 1519 | version "1.2.0" 1520 | resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" 1521 | 1522 | micromatch@^2.3.11: 1523 | version "2.3.11" 1524 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" 1525 | dependencies: 1526 | arr-diff "^2.0.0" 1527 | array-unique "^0.2.1" 1528 | braces "^1.8.2" 1529 | expand-brackets "^0.1.4" 1530 | extglob "^0.3.1" 1531 | filename-regex "^2.0.0" 1532 | is-extglob "^1.0.0" 1533 | is-glob "^2.0.1" 1534 | kind-of "^3.0.2" 1535 | normalize-path "^2.0.1" 1536 | object.omit "^2.0.0" 1537 | parse-glob "^3.0.4" 1538 | regex-cache "^0.4.2" 1539 | 1540 | mime-db@~1.33.0: 1541 | version "1.33.0" 1542 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db" 1543 | 1544 | mime-types@^2.1.12, mime-types@~2.1.17, mime-types@~2.1.7: 1545 | version "2.1.18" 1546 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8" 1547 | dependencies: 1548 | mime-db "~1.33.0" 1549 | 1550 | minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4: 1551 | version "3.0.4" 1552 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" 1553 | dependencies: 1554 | brace-expansion "^1.1.7" 1555 | 1556 | minimist@0.0.8: 1557 | version "0.0.8" 1558 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 1559 | 1560 | minimist@1.2.0, minimist@^1.1.1: 1561 | version "1.2.0" 1562 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" 1563 | 1564 | minimist@~0.0.1: 1565 | version "0.0.10" 1566 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" 1567 | 1568 | mkdirp@^0.5.0, mkdirp@^0.5.1: 1569 | version "0.5.1" 1570 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 1571 | dependencies: 1572 | minimist "0.0.8" 1573 | 1574 | ms@2.0.0: 1575 | version "2.0.0" 1576 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" 1577 | 1578 | natural-compare@^1.4.0: 1579 | version "1.4.0" 1580 | resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" 1581 | 1582 | nock@^9.0.2: 1583 | version "9.3.3" 1584 | resolved "https://registry.yarnpkg.com/nock/-/nock-9.3.3.tgz#d9f4cd3c011afeadaf5ccf1b243f6e353781cda0" 1585 | dependencies: 1586 | chai "^4.1.2" 1587 | debug "^3.1.0" 1588 | deep-equal "^1.0.0" 1589 | json-stringify-safe "^5.0.1" 1590 | lodash "^4.17.5" 1591 | mkdirp "^0.5.0" 1592 | propagate "^1.0.0" 1593 | qs "^6.5.1" 1594 | semver "^5.5.0" 1595 | 1596 | node-emoji@^1.4.1: 1597 | version "1.8.1" 1598 | resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.8.1.tgz#6eec6bfb07421e2148c75c6bba72421f8530a826" 1599 | dependencies: 1600 | lodash.toarray "^4.4.0" 1601 | 1602 | node-int64@^0.4.0: 1603 | version "0.4.0" 1604 | resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" 1605 | 1606 | node-notifier@^4.6.1: 1607 | version "4.6.1" 1608 | resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-4.6.1.tgz#056d14244f3dcc1ceadfe68af9cff0c5473a33f3" 1609 | dependencies: 1610 | cli-usage "^0.1.1" 1611 | growly "^1.2.0" 1612 | lodash.clonedeep "^3.0.0" 1613 | minimist "^1.1.1" 1614 | semver "^5.1.0" 1615 | shellwords "^0.1.0" 1616 | which "^1.0.5" 1617 | 1618 | normalize-package-data@^2.3.2: 1619 | version "2.4.0" 1620 | resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" 1621 | dependencies: 1622 | hosted-git-info "^2.1.4" 1623 | is-builtin-module "^1.0.0" 1624 | semver "2 || 3 || 4 || 5" 1625 | validate-npm-package-license "^3.0.1" 1626 | 1627 | normalize-path@^2.0.1: 1628 | version "2.1.1" 1629 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" 1630 | dependencies: 1631 | remove-trailing-separator "^1.0.1" 1632 | 1633 | number-is-nan@^1.0.0: 1634 | version "1.0.1" 1635 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 1636 | 1637 | "nwmatcher@>= 1.3.9 < 2.0.0": 1638 | version "1.4.4" 1639 | resolved "https://registry.yarnpkg.com/nwmatcher/-/nwmatcher-1.4.4.tgz#2285631f34a95f0d0395cd900c96ed39b58f346e" 1640 | 1641 | oauth-sign@~0.8.1, oauth-sign@~0.8.2: 1642 | version "0.8.2" 1643 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" 1644 | 1645 | object-assign@^4.1.0: 1646 | version "4.1.1" 1647 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 1648 | 1649 | object.omit@^2.0.0: 1650 | version "2.0.1" 1651 | resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" 1652 | dependencies: 1653 | for-own "^0.1.4" 1654 | is-extendable "^0.1.1" 1655 | 1656 | once@^1.3.0, once@^1.4.0: 1657 | version "1.4.0" 1658 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1659 | dependencies: 1660 | wrappy "1" 1661 | 1662 | optimist@^0.6.1: 1663 | version "0.6.1" 1664 | resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" 1665 | dependencies: 1666 | minimist "~0.0.1" 1667 | wordwrap "~0.0.2" 1668 | 1669 | optionator@^0.8.1: 1670 | version "0.8.2" 1671 | resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" 1672 | dependencies: 1673 | deep-is "~0.1.3" 1674 | fast-levenshtein "~2.0.4" 1675 | levn "~0.3.0" 1676 | prelude-ls "~1.1.2" 1677 | type-check "~0.3.2" 1678 | wordwrap "~1.0.0" 1679 | 1680 | os-homedir@^1.0.0: 1681 | version "1.0.2" 1682 | resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" 1683 | 1684 | os-locale@^1.4.0: 1685 | version "1.4.0" 1686 | resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" 1687 | dependencies: 1688 | lcid "^1.0.0" 1689 | 1690 | os-tmpdir@^1.0.1: 1691 | version "1.0.2" 1692 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 1693 | 1694 | parse-glob@^3.0.4: 1695 | version "3.0.4" 1696 | resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" 1697 | dependencies: 1698 | glob-base "^0.3.0" 1699 | is-dotfile "^1.0.0" 1700 | is-extglob "^1.0.0" 1701 | is-glob "^2.0.0" 1702 | 1703 | parse-json@^2.2.0: 1704 | version "2.2.0" 1705 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" 1706 | dependencies: 1707 | error-ex "^1.2.0" 1708 | 1709 | parse5@^1.5.1: 1710 | version "1.5.1" 1711 | resolved "https://registry.yarnpkg.com/parse5/-/parse5-1.5.1.tgz#9b7f3b0de32be78dc2401b17573ccaf0f6f59d94" 1712 | 1713 | path-exists@^2.0.0: 1714 | version "2.1.0" 1715 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" 1716 | dependencies: 1717 | pinkie-promise "^2.0.0" 1718 | 1719 | path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: 1720 | version "1.0.1" 1721 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 1722 | 1723 | path-parse@^1.0.5: 1724 | version "1.0.5" 1725 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" 1726 | 1727 | path-type@^1.0.0: 1728 | version "1.1.0" 1729 | resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" 1730 | dependencies: 1731 | graceful-fs "^4.1.2" 1732 | pify "^2.0.0" 1733 | pinkie-promise "^2.0.0" 1734 | 1735 | pathval@^1.0.0: 1736 | version "1.1.0" 1737 | resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz#b942e6d4bde653005ef6b71361def8727d0645e0" 1738 | 1739 | performance-now@^2.1.0: 1740 | version "2.1.0" 1741 | resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" 1742 | 1743 | pify@^2.0.0: 1744 | version "2.3.0" 1745 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 1746 | 1747 | pinkie-promise@^2.0.0: 1748 | version "2.0.1" 1749 | resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" 1750 | dependencies: 1751 | pinkie "^2.0.0" 1752 | 1753 | pinkie@^2.0.0: 1754 | version "2.0.4" 1755 | resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" 1756 | 1757 | prelude-ls@~1.1.2: 1758 | version "1.1.2" 1759 | resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" 1760 | 1761 | preserve@^0.2.0: 1762 | version "0.2.0" 1763 | resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" 1764 | 1765 | pretty-format@^18.1.0: 1766 | version "18.1.0" 1767 | resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-18.1.0.tgz#fb65a86f7a7f9194963eee91865c1bcf1039e284" 1768 | dependencies: 1769 | ansi-styles "^2.2.1" 1770 | 1771 | private@^0.1.8: 1772 | version "0.1.8" 1773 | resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" 1774 | 1775 | propagate@^1.0.0: 1776 | version "1.0.0" 1777 | resolved "https://registry.yarnpkg.com/propagate/-/propagate-1.0.0.tgz#00c2daeedda20e87e3782b344adba1cddd6ad709" 1778 | 1779 | prr@~1.0.1: 1780 | version "1.0.1" 1781 | resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" 1782 | 1783 | psl@^1.1.24: 1784 | version "1.1.28" 1785 | resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.28.tgz#4fb6ceb08a1e2214d4fd4de0ca22dae13740bc7b" 1786 | 1787 | punycode@^1.4.1: 1788 | version "1.4.1" 1789 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 1790 | 1791 | qs@^6.5.1, qs@~6.5.1: 1792 | version "6.5.2" 1793 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" 1794 | 1795 | qs@~6.3.0: 1796 | version "6.3.2" 1797 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.2.tgz#e75bd5f6e268122a2a0e0bda630b2550c166502c" 1798 | 1799 | randomatic@^3.0.0: 1800 | version "3.0.0" 1801 | resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.0.0.tgz#d35490030eb4f7578de292ce6dfb04a91a128923" 1802 | dependencies: 1803 | is-number "^4.0.0" 1804 | kind-of "^6.0.0" 1805 | math-random "^1.0.1" 1806 | 1807 | read-pkg-up@^1.0.1: 1808 | version "1.0.1" 1809 | resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" 1810 | dependencies: 1811 | find-up "^1.0.0" 1812 | read-pkg "^1.0.0" 1813 | 1814 | read-pkg@^1.0.0: 1815 | version "1.1.0" 1816 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" 1817 | dependencies: 1818 | load-json-file "^1.0.0" 1819 | normalize-package-data "^2.3.2" 1820 | path-type "^1.0.0" 1821 | 1822 | redeyed@~1.0.0: 1823 | version "1.0.1" 1824 | resolved "https://registry.yarnpkg.com/redeyed/-/redeyed-1.0.1.tgz#e96c193b40c0816b00aec842698e61185e55498a" 1825 | dependencies: 1826 | esprima "~3.0.0" 1827 | 1828 | regenerator-runtime@^0.11.0: 1829 | version "0.11.1" 1830 | resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" 1831 | 1832 | regex-cache@^0.4.2: 1833 | version "0.4.4" 1834 | resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" 1835 | dependencies: 1836 | is-equal-shallow "^0.1.3" 1837 | 1838 | remove-trailing-separator@^1.0.1: 1839 | version "1.1.0" 1840 | resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" 1841 | 1842 | repeat-element@^1.1.2: 1843 | version "1.1.2" 1844 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" 1845 | 1846 | repeat-string@^1.5.2: 1847 | version "1.6.1" 1848 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" 1849 | 1850 | repeating@^2.0.0: 1851 | version "2.0.1" 1852 | resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" 1853 | dependencies: 1854 | is-finite "^1.0.0" 1855 | 1856 | request@2.79.0: 1857 | version "2.79.0" 1858 | resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de" 1859 | dependencies: 1860 | aws-sign2 "~0.6.0" 1861 | aws4 "^1.2.1" 1862 | caseless "~0.11.0" 1863 | combined-stream "~1.0.5" 1864 | extend "~3.0.0" 1865 | forever-agent "~0.6.1" 1866 | form-data "~2.1.1" 1867 | har-validator "~2.0.6" 1868 | hawk "~3.1.3" 1869 | http-signature "~1.1.0" 1870 | is-typedarray "~1.0.0" 1871 | isstream "~0.1.2" 1872 | json-stringify-safe "~5.0.1" 1873 | mime-types "~2.1.7" 1874 | oauth-sign "~0.8.1" 1875 | qs "~6.3.0" 1876 | stringstream "~0.0.4" 1877 | tough-cookie "~2.3.0" 1878 | tunnel-agent "~0.4.1" 1879 | uuid "^3.0.0" 1880 | 1881 | request@^2.79.0: 1882 | version "2.87.0" 1883 | resolved "https://registry.yarnpkg.com/request/-/request-2.87.0.tgz#32f00235cd08d482b4d0d68db93a829c0ed5756e" 1884 | dependencies: 1885 | aws-sign2 "~0.7.0" 1886 | aws4 "^1.6.0" 1887 | caseless "~0.12.0" 1888 | combined-stream "~1.0.5" 1889 | extend "~3.0.1" 1890 | forever-agent "~0.6.1" 1891 | form-data "~2.3.1" 1892 | har-validator "~5.0.3" 1893 | http-signature "~1.2.0" 1894 | is-typedarray "~1.0.0" 1895 | isstream "~0.1.2" 1896 | json-stringify-safe "~5.0.1" 1897 | mime-types "~2.1.17" 1898 | oauth-sign "~0.8.2" 1899 | performance-now "^2.1.0" 1900 | qs "~6.5.1" 1901 | safe-buffer "^5.1.1" 1902 | tough-cookie "~2.3.3" 1903 | tunnel-agent "^0.6.0" 1904 | uuid "^3.1.0" 1905 | 1906 | require-directory@^2.1.1: 1907 | version "2.1.1" 1908 | resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" 1909 | 1910 | require-main-filename@^1.0.1: 1911 | version "1.0.1" 1912 | resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" 1913 | 1914 | resolve@1.1.7: 1915 | version "1.1.7" 1916 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" 1917 | 1918 | resolve@^1.2.0: 1919 | version "1.8.1" 1920 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26" 1921 | dependencies: 1922 | path-parse "^1.0.5" 1923 | 1924 | right-align@^0.1.1: 1925 | version "0.1.3" 1926 | resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" 1927 | dependencies: 1928 | align-text "^0.1.1" 1929 | 1930 | rimraf@^2.6.1: 1931 | version "2.6.2" 1932 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" 1933 | dependencies: 1934 | glob "^7.0.5" 1935 | 1936 | safe-buffer@^5.0.1, safe-buffer@^5.1.1: 1937 | version "5.1.2" 1938 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" 1939 | 1940 | safer-buffer@^2.0.2: 1941 | version "2.1.2" 1942 | resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" 1943 | 1944 | sane@~1.4.1: 1945 | version "1.4.1" 1946 | resolved "https://registry.yarnpkg.com/sane/-/sane-1.4.1.tgz#88f763d74040f5f0c256b6163db399bf110ac715" 1947 | dependencies: 1948 | exec-sh "^0.2.0" 1949 | fb-watchman "^1.8.0" 1950 | minimatch "^3.0.2" 1951 | minimist "^1.1.1" 1952 | walker "~1.0.5" 1953 | watch "~0.10.0" 1954 | 1955 | sax@^1.2.1: 1956 | version "1.2.4" 1957 | resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" 1958 | 1959 | "semver@2 || 3 || 4 || 5", semver@^5.1.0, semver@^5.3.0, semver@^5.5.0: 1960 | version "5.5.0" 1961 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" 1962 | 1963 | set-blocking@^2.0.0: 1964 | version "2.0.0" 1965 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 1966 | 1967 | shellwords@^0.1.0: 1968 | version "0.1.1" 1969 | resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" 1970 | 1971 | slash@^1.0.0: 1972 | version "1.0.0" 1973 | resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" 1974 | 1975 | sntp@1.x.x: 1976 | version "1.0.9" 1977 | resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" 1978 | dependencies: 1979 | hoek "2.x.x" 1980 | 1981 | source-map-support@^0.4.15: 1982 | version "0.4.18" 1983 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" 1984 | dependencies: 1985 | source-map "^0.5.6" 1986 | 1987 | source-map@^0.4.4: 1988 | version "0.4.4" 1989 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" 1990 | dependencies: 1991 | amdefine ">=0.0.4" 1992 | 1993 | source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: 1994 | version "0.5.7" 1995 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" 1996 | 1997 | source-map@~0.6.1: 1998 | version "0.6.1" 1999 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" 2000 | 2001 | spdx-correct@^3.0.0: 2002 | version "3.0.0" 2003 | resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82" 2004 | dependencies: 2005 | spdx-expression-parse "^3.0.0" 2006 | spdx-license-ids "^3.0.0" 2007 | 2008 | spdx-exceptions@^2.1.0: 2009 | version "2.1.0" 2010 | resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz#2c7ae61056c714a5b9b9b2b2af7d311ef5c78fe9" 2011 | 2012 | spdx-expression-parse@^3.0.0: 2013 | version "3.0.0" 2014 | resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" 2015 | dependencies: 2016 | spdx-exceptions "^2.1.0" 2017 | spdx-license-ids "^3.0.0" 2018 | 2019 | spdx-license-ids@^3.0.0: 2020 | version "3.0.0" 2021 | resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87" 2022 | 2023 | sprintf-js@~1.0.2: 2024 | version "1.0.3" 2025 | resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 2026 | 2027 | sshpk@^1.7.0: 2028 | version "1.14.2" 2029 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.14.2.tgz#c6fc61648a3d9c4e764fd3fcdf4ea105e492ba98" 2030 | dependencies: 2031 | asn1 "~0.2.3" 2032 | assert-plus "^1.0.0" 2033 | dashdash "^1.12.0" 2034 | getpass "^0.1.1" 2035 | safer-buffer "^2.0.2" 2036 | optionalDependencies: 2037 | bcrypt-pbkdf "^1.0.0" 2038 | ecc-jsbn "~0.1.1" 2039 | jsbn "~0.1.0" 2040 | tweetnacl "~0.14.0" 2041 | 2042 | string-width@^1.0.1, string-width@^1.0.2: 2043 | version "1.0.2" 2044 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 2045 | dependencies: 2046 | code-point-at "^1.0.0" 2047 | is-fullwidth-code-point "^1.0.0" 2048 | strip-ansi "^3.0.0" 2049 | 2050 | stringstream@~0.0.4: 2051 | version "0.0.6" 2052 | resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.6.tgz#7880225b0d4ad10e30927d167a1d6f2fd3b33a72" 2053 | 2054 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 2055 | version "3.0.1" 2056 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 2057 | dependencies: 2058 | ansi-regex "^2.0.0" 2059 | 2060 | strip-bom@^2.0.0: 2061 | version "2.0.0" 2062 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" 2063 | dependencies: 2064 | is-utf8 "^0.2.0" 2065 | 2066 | strip-bom@^3.0.0: 2067 | version "3.0.0" 2068 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" 2069 | 2070 | supports-color@^2.0.0: 2071 | version "2.0.0" 2072 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" 2073 | 2074 | supports-color@^3.1.2: 2075 | version "3.2.3" 2076 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" 2077 | dependencies: 2078 | has-flag "^1.0.0" 2079 | 2080 | symbol-tree@^3.2.1: 2081 | version "3.2.2" 2082 | resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" 2083 | 2084 | test-exclude@^3.3.0: 2085 | version "3.3.0" 2086 | resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-3.3.0.tgz#7a17ca1239988c98367b0621456dbb7d4bc38977" 2087 | dependencies: 2088 | arrify "^1.0.1" 2089 | micromatch "^2.3.11" 2090 | object-assign "^4.1.0" 2091 | read-pkg-up "^1.0.1" 2092 | require-main-filename "^1.0.1" 2093 | 2094 | throat@^3.0.0: 2095 | version "3.2.0" 2096 | resolved "https://registry.yarnpkg.com/throat/-/throat-3.2.0.tgz#50cb0670edbc40237b9e347d7e1f88e4620af836" 2097 | 2098 | tmpl@1.0.x: 2099 | version "1.0.4" 2100 | resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" 2101 | 2102 | to-fast-properties@^1.0.3: 2103 | version "1.0.3" 2104 | resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" 2105 | 2106 | tough-cookie@^2.3.2: 2107 | version "2.4.3" 2108 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" 2109 | dependencies: 2110 | psl "^1.1.24" 2111 | punycode "^1.4.1" 2112 | 2113 | tough-cookie@~2.3.0, tough-cookie@~2.3.3: 2114 | version "2.3.4" 2115 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" 2116 | dependencies: 2117 | punycode "^1.4.1" 2118 | 2119 | tr46@~0.0.3: 2120 | version "0.0.3" 2121 | resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" 2122 | 2123 | trim-right@^1.0.1: 2124 | version "1.0.1" 2125 | resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" 2126 | 2127 | tunnel-agent@^0.6.0: 2128 | version "0.6.0" 2129 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" 2130 | dependencies: 2131 | safe-buffer "^5.0.1" 2132 | 2133 | tunnel-agent@~0.4.1: 2134 | version "0.4.3" 2135 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" 2136 | 2137 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 2138 | version "0.14.5" 2139 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 2140 | 2141 | type-check@~0.3.2: 2142 | version "0.3.2" 2143 | resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" 2144 | dependencies: 2145 | prelude-ls "~1.1.2" 2146 | 2147 | type-detect@^4.0.0: 2148 | version "4.0.8" 2149 | resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" 2150 | 2151 | uglify-js@^2.6: 2152 | version "2.8.29" 2153 | resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" 2154 | dependencies: 2155 | source-map "~0.5.1" 2156 | yargs "~3.10.0" 2157 | optionalDependencies: 2158 | uglify-to-browserify "~1.0.0" 2159 | 2160 | uglify-to-browserify@~1.0.0: 2161 | version "1.0.2" 2162 | resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" 2163 | 2164 | uuid@^3.0.0, uuid@^3.1.0: 2165 | version "3.3.2" 2166 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" 2167 | 2168 | validate-npm-package-license@^3.0.1: 2169 | version "3.0.3" 2170 | resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz#81643bcbef1bdfecd4623793dc4648948ba98338" 2171 | dependencies: 2172 | spdx-correct "^3.0.0" 2173 | spdx-expression-parse "^3.0.0" 2174 | 2175 | verror@1.10.0: 2176 | version "1.10.0" 2177 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" 2178 | dependencies: 2179 | assert-plus "^1.0.0" 2180 | core-util-is "1.0.2" 2181 | extsprintf "^1.2.0" 2182 | 2183 | walker@~1.0.5: 2184 | version "1.0.7" 2185 | resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" 2186 | dependencies: 2187 | makeerror "1.0.x" 2188 | 2189 | watch@~0.10.0: 2190 | version "0.10.0" 2191 | resolved "https://registry.yarnpkg.com/watch/-/watch-0.10.0.tgz#77798b2da0f9910d595f1ace5b0c2258521f21dc" 2192 | 2193 | webidl-conversions@^3.0.0: 2194 | version "3.0.1" 2195 | resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" 2196 | 2197 | webidl-conversions@^4.0.0: 2198 | version "4.0.2" 2199 | resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" 2200 | 2201 | whatwg-encoding@^1.0.1: 2202 | version "1.0.3" 2203 | resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.3.tgz#57c235bc8657e914d24e1a397d3c82daee0a6ba3" 2204 | dependencies: 2205 | iconv-lite "0.4.19" 2206 | 2207 | whatwg-url@^4.3.0: 2208 | version "4.8.0" 2209 | resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-4.8.0.tgz#d2981aa9148c1e00a41c5a6131166ab4683bbcc0" 2210 | dependencies: 2211 | tr46 "~0.0.3" 2212 | webidl-conversions "^3.0.0" 2213 | 2214 | which-module@^1.0.0: 2215 | version "1.0.0" 2216 | resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" 2217 | 2218 | which@^1.0.5, which@^1.1.1: 2219 | version "1.3.1" 2220 | resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" 2221 | dependencies: 2222 | isexe "^2.0.0" 2223 | 2224 | window-size@0.1.0: 2225 | version "0.1.0" 2226 | resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" 2227 | 2228 | wordwrap@0.0.2: 2229 | version "0.0.2" 2230 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" 2231 | 2232 | wordwrap@~0.0.2: 2233 | version "0.0.3" 2234 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" 2235 | 2236 | wordwrap@~1.0.0: 2237 | version "1.0.0" 2238 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" 2239 | 2240 | worker-farm@^1.3.1: 2241 | version "1.6.0" 2242 | resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.6.0.tgz#aecc405976fab5a95526180846f0dba288f3a4a0" 2243 | dependencies: 2244 | errno "~0.1.7" 2245 | 2246 | wrap-ansi@^2.0.0: 2247 | version "2.1.0" 2248 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" 2249 | dependencies: 2250 | string-width "^1.0.1" 2251 | strip-ansi "^3.0.1" 2252 | 2253 | wrappy@1: 2254 | version "1.0.2" 2255 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 2256 | 2257 | xml-name-validator@^2.0.1: 2258 | version "2.0.1" 2259 | resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-2.0.1.tgz#4d8b8f1eccd3419aa362061becef515e1e559635" 2260 | 2261 | xtend@^4.0.0: 2262 | version "4.0.1" 2263 | resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" 2264 | 2265 | y18n@^3.2.1: 2266 | version "3.2.1" 2267 | resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" 2268 | 2269 | yargs-parser@^4.2.0: 2270 | version "4.2.1" 2271 | resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.1.tgz#29cceac0dc4f03c6c87b4a9f217dd18c9f74871c" 2272 | dependencies: 2273 | camelcase "^3.0.0" 2274 | 2275 | yargs@^6.3.0: 2276 | version "6.6.0" 2277 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-6.6.0.tgz#782ec21ef403345f830a808ca3d513af56065208" 2278 | dependencies: 2279 | camelcase "^3.0.0" 2280 | cliui "^3.2.0" 2281 | decamelize "^1.1.1" 2282 | get-caller-file "^1.0.1" 2283 | os-locale "^1.4.0" 2284 | read-pkg-up "^1.0.1" 2285 | require-directory "^2.1.1" 2286 | require-main-filename "^1.0.1" 2287 | set-blocking "^2.0.0" 2288 | string-width "^1.0.2" 2289 | which-module "^1.0.0" 2290 | y18n "^3.2.1" 2291 | yargs-parser "^4.2.0" 2292 | 2293 | yargs@~3.10.0: 2294 | version "3.10.0" 2295 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" 2296 | dependencies: 2297 | camelcase "^1.0.2" 2298 | cliui "^2.1.0" 2299 | decamelize "^1.0.0" 2300 | window-size "0.1.0" 2301 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "module": "commonjs", 5 | "moduleResolution": "node", 6 | "sourceMap": true, 7 | "declaration": true, 8 | "pretty": true, 9 | "removeComments": true, 10 | "lib": ["es6", "es2015", "es2016", "es2017"], 11 | "types": [ 12 | "@types/node" 13 | ] 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "tslint-config-accounts" 4 | ] 5 | } 6 | --------------------------------------------------------------------------------