├── .dockerignore ├── .editorconfig ├── .gitignore ├── .prettierignore ├── .prettierrc ├── .vscode └── settings.json ├── Dockerfile ├── README.md ├── docker-compose.yml ├── package.json ├── src └── server │ ├── helpers │ ├── base-url.ts │ ├── env-vars.ts │ ├── fp-ts.ts │ ├── ix.ts │ ├── node-env.ts │ ├── redis.ts │ ├── twitter-api.ts │ └── twitter-date.ts │ ├── index.ts │ ├── package.json │ ├── publication.ts │ ├── redis-client.ts │ ├── response-views.ts │ ├── routes-helpers.ts │ ├── routes.ts │ ├── tests │ ├── helpers.ts │ ├── helpers │ │ └── twitter-date.test.ts │ ├── index.test.ts │ └── publication.test.ts │ ├── timeline-responses-iterable.ts │ ├── tsconfig.json │ ├── tslint.json │ ├── types.ts │ └── types │ └── error-response.ts ├── tslint.json └── yarn.lock /.dockerignore: -------------------------------------------------------------------------------- 1 | # https://docs.docker.com/engine/reference/builder/#dockerignore-file 2 | # Inspect image contents with `docker run -it twitter-paper_web sh` 3 | 4 | # Start .gitignore copy 5 | /.env 6 | /chrome/ 7 | /target-tsc/ 8 | 9 | node_modules/ 10 | # End .gitignore copy 11 | 12 | /.vscode/ 13 | /.git/ 14 | /.gitignore 15 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Note: prettier inherits from `indent_style`, `indent_size`/`tab_width`, and `max_line_length` 2 | # https://github.com/prettier/prettier/blob/cecf0657a521fa265b713274ed67ca39be4142cf/docs/api.md#prettierresolveconfigfilepath--options 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 4 7 | insert_final_newline = true 8 | trim_trailing_whitespace = true 9 | 10 | [*.{js,ts}] 11 | # https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#max_line_length 12 | max_line_length = 100 13 | 14 | [package.json] 15 | indent_size = 2 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.env 2 | /chrome/ 3 | /target-tsc/ 4 | 5 | node_modules/ 6 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | # https://prettier.io/docs/en/ignore.html 2 | 3 | /chrome/ 4 | # CLI ignores Node modules by default https://github.com/prettier/prettier/pull/1683, VSCode 5 | # extension does not https://github.com/prettier/prettier-vscode/issues/198, 6 | # https://github.com/prettier/prettier-vscode/issues/548. 7 | /target-tsc/ 8 | 9 | node_modules/ 10 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "trailingComma": "all" 4 | } 5 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.rulers": [ 3 | 100 // Enforced by Prettier 4 | ], 5 | 6 | // We use the language service plugin for this 7 | "tslint.enable": false, 8 | 9 | // These settings should match the glob passed to Prettier's CLI. 10 | "[typescript]": { 11 | "editor.formatOnSave": true 12 | }, 13 | "[javascript]": { 14 | "editor.formatOnSave": true 15 | }, 16 | "[json]": { 17 | "editor.formatOnSave": true 18 | }, 19 | "[jsonc]": { 20 | "editor.formatOnSave": true 21 | }, 22 | "[markdown]": { 23 | "editor.formatOnSave": true 24 | }, 25 | "[yaml]": { 26 | "editor.formatOnSave": true 27 | }, 28 | 29 | "typescript.tsdk": "node_modules/typescript/lib" 30 | } 31 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # Heroku uses this configuration. 2 | 3 | # Heroku uses the package engines for its npm, Yarn, and Node versions. 4 | # This includes Yarn 1.9.2 5 | FROM node:10.8.0 6 | ADD . /app 7 | WORKDIR /app 8 | RUN yarn 9 | # Run the app. CMD is required to run on Heroku. 10 | CMD npm run --silent start 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # twitter-paper 2 | 3 | Read Twitter like a newspaper. Yesterday's tweets, published each morning. 4 | 5 | ## Docker 6 | 7 | ```bash 8 | docker-compose up 9 | ``` 10 | 11 | ## Creating and configuring new Heroku app 12 | 13 | ```bash 14 | heroku apps:create 15 | heroku container:push web 16 | heroku config:set \ 17 | TWITTER_CONSUMER_KEY=CHANGE_ME \ 18 | TWITTER_CONSUMER_SECRET=CHANGE_ME \ 19 | HEROKU_URL=$(heroku info -s | grep web_url | cut -d= -f2) \ 20 | EXPRESS_SESSION_SECRET=CHANGE_ME \ 21 | NODE_ENV=production 22 | heroku addons:create heroku-redis:hobby-dev 23 | ``` 24 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | # Heroku does not use this configuration. This is for local development only. 2 | 3 | version: '3' 4 | services: 5 | web: 6 | # Allow colorized output 7 | tty: true 8 | build: . 9 | ports: 10 | - '${PORT}:${PORT}' 11 | # Node inspector 12 | - '9229:9229' 13 | # Pass shell env vars through to container 14 | environment: 15 | - NODE_ENV=development 16 | - REDIS_URL=redis://redis:6379 17 | # These are defined in `.env`. 18 | - PORT 19 | - TWITTER_CONSUMER_KEY 20 | - TWITTER_CONSUMER_SECRET 21 | - EXPRESS_SESSION_SECRET 22 | links: 23 | - redis 24 | # Prod run command is in `Dockerfile`. 25 | command: npm run --silent start:dev 26 | volumes: 27 | - .:/app 28 | redis: 29 | image: 'redis' 30 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "tsc:server": "tsc --build ./src/server/", 5 | "tsc:server:watch": "npm run tsc:server -- --watch", 6 | "typecheck:server:watch": "tsc --project ./src/server/ --watch --noEmit", 7 | "pretsc": "rm -rf ./target-tsc/ && mkdir -p ./target-tsc/", 8 | "tsc": "npm run tsc:server", 9 | "ts-unused-exports:server": "ts-unused-exports './src/server/tsconfig.json'", 10 | "compile": "npm run tsc", 11 | "node": "node --icu-data-dir=./node_modules/full-icu", 12 | "node:with-source-maps": "npm run node -- --require source-map-support/register", 13 | "server": "npm run node:with-source-maps -- ./target-tsc/server/index.js", 14 | "server:dev": "npm run node:with-source-maps -- --inspect=0.0.0.0:9229 ./target-tsc/server/index.js", 15 | "start:dev": "nodemon --exec 'concurrently --kill-others-on-fail \"npm run compile\" \"npm run lint\" && npm run server:dev' --watch ./src/server/ --ext ts", 16 | "start": "npm run server", 17 | "test:server": "npm run tsc:server && npm run lint:server && npm run node:with-source-maps -- ./target-tsc/server/tests/index.test.js", 18 | "test": "npm run test:server", 19 | "tslint:server": "tslint --project './src/server/'", 20 | "lint:server": "npm run tslint:server && npm run ts-unused-exports:server", 21 | "lint": "npm run lint:server", 22 | "format": "prettier --write './**/*.{ts,js,json,md,yml}' '.prettierrc'", 23 | "compile-and-lint": "concurrently --kill-others-on-fail 'npm run compile' 'npm run lint'", 24 | "postinstall": "npm run compile-and-lint" 25 | }, 26 | "dependencies": { 27 | "concurrently": "^3.6.1", 28 | "ts-unused-exports": "^2.0.11", 29 | "tslint": "^5.11.0", 30 | "tslint-no-unused": "^0.2.0-alpha.1", 31 | "typescript": "^3.0.1" 32 | }, 33 | "devDependencies": { 34 | "nodemon": "^1.18.3", 35 | "prettier": "^1.14.2", 36 | "tslint-language-service": "^0.9.9" 37 | }, 38 | "workspaces": [ 39 | "src/server" 40 | ], 41 | "engines": { 42 | "node": "10.8.0", 43 | "yarn": "1.9.2" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/server/helpers/base-url.ts: -------------------------------------------------------------------------------- 1 | import { EnvVar, getEnvVarUnsafe } from './env-vars'; 2 | import { NODE_ENV, NodeEnv } from './node-env'; 3 | 4 | const PORT = getEnvVarUnsafe(EnvVar.PORT); 5 | export const BASE_URL = NodeEnv.match({ 6 | Production: () => getEnvVarUnsafe(EnvVar.HEROKU_URL), 7 | Development: () => `http://localhost:${PORT}`, 8 | })(NODE_ENV); 9 | -------------------------------------------------------------------------------- /src/server/helpers/env-vars.ts: -------------------------------------------------------------------------------- 1 | import { pipe } from 'fp-ts/lib/function'; 2 | import * as option from 'fp-ts/lib/Option'; 3 | 4 | import { unsafeGet } from './fp-ts'; 5 | 6 | export enum EnvVar { 7 | HEROKU_URL = 'HEROKU_URL', 8 | NODE_ENV = 'NODE_ENV', 9 | PORT = 'PORT', 10 | REDIS_URL = 'REDIS_URL', 11 | TWITTER_CONSUMER_KEY = 'TWITTER_CONSUMER_KEY', 12 | TWITTER_CONSUMER_SECRET = 'TWITTER_CONSUMER_SECRET', 13 | EXPRESS_SESSION_SECRET = 'EXPRESS_SESSION_SECRET', 14 | } 15 | 16 | const getEnvVar = (key: EnvVar) => process.env[key]; 17 | const getEnvVarOption = pipe( 18 | getEnvVar, 19 | option.fromNullable, 20 | ); 21 | export const getEnvVarUnsafe = pipe( 22 | getEnvVarOption, 23 | unsafeGet, 24 | ); 25 | -------------------------------------------------------------------------------- /src/server/helpers/fp-ts.ts: -------------------------------------------------------------------------------- 1 | import * as option from 'fp-ts/lib/Option'; 2 | 3 | import Option = option.Option; 4 | 5 | export const unsafeGet = (optionInstance: Option): T => 6 | optionInstance.getOrElseL(() => { 7 | throw new Error('Expected some'); 8 | }); 9 | -------------------------------------------------------------------------------- /src/server/helpers/ix.ts: -------------------------------------------------------------------------------- 1 | import { Task } from 'fp-ts/lib/Task'; 2 | import * as Ix from 'ix'; 3 | 4 | // https://github.com/ReactiveX/IxJS/issues/7 5 | export const takeUntil = (fn: (value: T) => boolean) => ( 6 | asyncIterable: AsyncIterable, 7 | ): AsyncIterable => 8 | Ix.AsyncIterable.from(asyncIterable) 9 | .map(value => { 10 | const shouldEnd = fn(value); 11 | return shouldEnd 12 | ? [{ value, done: false }, { value: undefined, done: true }] 13 | : [{ value, done: false }]; 14 | }) 15 | .flatMap(iterable => Ix.AsyncIterable.from(iterable)) 16 | .takeWhile((x): x is { done: false; value: T } => !x.done) 17 | .map(({ value }) => value); 18 | 19 | export const asyncIterableToTaskArray = (asyncIterable: AsyncIterable): Task => 20 | new Task(() => Ix.AsyncIterable.from(asyncIterable).toArray()); 21 | -------------------------------------------------------------------------------- /src/server/helpers/node-env.ts: -------------------------------------------------------------------------------- 1 | import { ofType, unionize } from 'unionize'; 2 | 3 | import { EnvVar } from './env-vars'; 4 | 5 | export const NodeEnv = unionize({ 6 | Production: ofType<{}>(), 7 | Development: ofType<{}>(), 8 | }); 9 | export type NodeEnv = typeof NodeEnv._Union; 10 | 11 | const NODE_ENV_PRODUCTION = 'production'; 12 | const NODE_ENV_DEVELOPMENT = 'development'; 13 | 14 | const getNodeEnvFromEnvVars = (envVars: NodeJS.ProcessEnv): NodeEnv => { 15 | switch (envVars[EnvVar.NODE_ENV]) { 16 | case NODE_ENV_PRODUCTION: 17 | return NodeEnv.Production({}); 18 | case NODE_ENV_DEVELOPMENT: 19 | return NodeEnv.Development({}); 20 | default: 21 | throw new Error('Invalid'); 22 | } 23 | }; 24 | 25 | export const NODE_ENV = getNodeEnvFromEnvVars(process.env); 26 | -------------------------------------------------------------------------------- /src/server/helpers/redis.ts: -------------------------------------------------------------------------------- 1 | import * as Decode from 'decode-ts'; 2 | import * as DecodeTypes from 'decode-ts/target/types'; 3 | import * as either from 'fp-ts/lib/Either'; 4 | import { pipe } from 'fp-ts/lib/function'; 5 | import * as task from 'fp-ts/lib/Task'; 6 | 7 | import { redisClient } from '../redis-client'; 8 | import { UserTwitterCredentials, UserTwitterCredentialsT } from '../types'; 9 | 10 | import Task = task.Task; 11 | import Either = either.Either; 12 | 13 | const promiseRedisClient = { 14 | // We can't use the denodeify helper here, because we lose the binding to the redis object (and 15 | // `.bind` loses the type: https://github.com/Microsoft/TypeScript/issues/212). 16 | get: (key: string): Promise => 17 | new Promise((resolve, reject) => { 18 | redisClient.get(key, (error, result) => { 19 | if (error !== undefined && error !== null) { 20 | reject(error); 21 | } else { 22 | resolve(result); 23 | } 24 | }); 25 | }), 26 | mget: (keys: string[]): Promise => 27 | new Promise((resolve, reject) => { 28 | redisClient.mget(keys, (error, result) => { 29 | if (error !== undefined && error !== null) { 30 | reject(error); 31 | } else { 32 | resolve(result); 33 | } 34 | }); 35 | }), 36 | set: (key: string, value: string): Promise => 37 | new Promise((resolve, reject) => { 38 | redisClient.set(key, value, error => { 39 | if (error !== undefined && error !== null) { 40 | reject(error); 41 | } else { 42 | resolve(); 43 | } 44 | }); 45 | }), 46 | keys: (pattern: string): Promise => 47 | new Promise((resolve, reject) => { 48 | redisClient.keys(pattern, (error, result) => { 49 | if (error !== undefined && error !== null) { 50 | reject(error); 51 | } else { 52 | resolve(result); 53 | } 54 | }); 55 | }), 56 | }; 57 | 58 | const taskRedisClient = { 59 | set: (key: string, value: string): Task => 60 | new Task(() => promiseRedisClient.set(key, value)), 61 | get: (key: string): Task => new Task(() => promiseRedisClient.get(key)), 62 | keys: (pattern: string): Task => new Task(() => promiseRedisClient.keys(pattern)), 63 | mget: (keys: string[]): Task => new Task(() => promiseRedisClient.mget(keys)), 64 | }; 65 | 66 | const getFullKey = (table: string, key: string): string => `${table}:${key}`; 67 | 68 | enum RedisTables { 69 | TwitterCredentials = 'twitter-credentials', 70 | } 71 | 72 | export const setUserTwitterCredentials = (userId: string) => 73 | pipe( 74 | (credentials: UserTwitterCredentialsT) => JSON.stringify(credentials), 75 | str => taskRedisClient.set(getFullKey(RedisTables.TwitterCredentials, userId), str), 76 | ); 77 | 78 | export const getUserTwitterCredentialsFromId = ( 79 | twitterUserId: string, 80 | ): Task> => 81 | taskRedisClient 82 | .get(getFullKey(RedisTables.TwitterCredentials, twitterUserId)) 83 | .map(Decode.jsonDecodeString(UserTwitterCredentials)); 84 | -------------------------------------------------------------------------------- /src/server/helpers/twitter-api.ts: -------------------------------------------------------------------------------- 1 | import { pipe } from 'fp-ts/lib/function'; 2 | import * as TwitterApiConstants from 'twitter-api-ts/target/constants'; 3 | import * as TwitterApiTypes from 'twitter-api-ts/target/types'; 4 | import * as urlHelpers from 'url'; 5 | 6 | import { parseTwitterDate } from './twitter-date'; 7 | 8 | // https://developer.twitter.com/en/docs/basics/response-codes 9 | const RATE_LIMIT_EXCEEDED = 88; 10 | 11 | // https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-home_timeline 12 | export const MAX_TIMELINE_COUNT = 200; 13 | 14 | export const isTwitterApiErrorResponseRateLimitExceeded = TwitterApiTypes.ErrorResponse.match( 15 | { 16 | APIErrorResponse: ({ apiErrorResponse }) => 17 | apiErrorResponse.errors.map(error => error.code).includes(RATE_LIMIT_EXCEEDED), 18 | }, 19 | () => false, 20 | ); 21 | 22 | export const twitterApiOAuthAuthenticateUrl = urlHelpers.resolve( 23 | TwitterApiConstants.TWITTER_API_BASE_URL, 24 | TwitterApiConstants.ENDPOINTS.OAuthAuthenticate, 25 | ); 26 | 27 | export const getTweetId = (tweet: TwitterApiTypes.TweetT) => tweet.id_str; 28 | 29 | const getTweetCreatedAt = (tweet: TwitterApiTypes.TweetT) => tweet.created_at; 30 | export const getTweetCreatedAtParsed = pipe( 31 | getTweetCreatedAt, 32 | parseTwitterDate, 33 | ); 34 | -------------------------------------------------------------------------------- /src/server/helpers/twitter-date.ts: -------------------------------------------------------------------------------- 1 | import * as luxon from 'luxon'; 2 | 3 | // https://stackoverflow.com/a/20478182/5932012 4 | const TWITTER_DATE_FORMAT = 'EEE MMM d HH:mm:ss ZZZ yyyy'; 5 | 6 | // When `luxon.Settings.throwOnInvalid = true;`, Luxon will throw an exception if the string does 7 | // not match the format. 8 | // https://github.com/moment/luxon/blob/master/docs/validity.md#throwoninvalid 9 | export const parseTwitterDate = (dateStr: string): luxon.DateTime => 10 | luxon.DateTime.fromFormat(dateStr, TWITTER_DATE_FORMAT, { setZone: true }).setZone('utc'); 11 | 12 | export const formatTwitterDate = (dateTime: luxon.DateTime): string => 13 | dateTime.toFormat(TWITTER_DATE_FORMAT); 14 | -------------------------------------------------------------------------------- /src/server/index.ts: -------------------------------------------------------------------------------- 1 | import * as luxon from 'luxon'; 2 | 3 | import * as bodyParser from 'body-parser'; 4 | import * as createRedisStore from 'connect-redis'; 5 | import * as express from 'express'; 6 | import * as session from 'express-session'; 7 | import { createServer } from 'http'; 8 | 9 | import { EnvVar, getEnvVarUnsafe } from './helpers/env-vars'; 10 | import { redisClient } from './redis-client'; 11 | import * as routes from './routes'; 12 | import { RoutePathname } from './routes-helpers'; 13 | 14 | luxon.Settings.throwOnInvalid = true; 15 | luxon.Settings.defaultLocale = 'en-GB'; 16 | 17 | const app = express(); 18 | 19 | // Don't parse body using middleware. Body parsing is instead handled in the request handler, where 20 | // we can more easily handle parsing errors. 21 | app.use(bodyParser.text({ type: 'application/json' })); 22 | 23 | const RedisStore = createRedisStore(session); 24 | app.use( 25 | session({ 26 | store: new RedisStore({ 27 | client: redisClient, 28 | logErrors: true, 29 | }), 30 | secret: getEnvVarUnsafe(EnvVar.EXPRESS_SESSION_SECRET), 31 | // Required options: 32 | resave: false, 33 | saveUninitialized: false, 34 | }), 35 | ); 36 | 37 | app.get(RoutePathname.GetAuthIndex, routes.authIndex); 38 | app.get(RoutePathname.GetAuthCallback, routes.authCallback); 39 | app.get(RoutePathname.GetHome, routes.home); 40 | 41 | const httpServer = createServer(app); 42 | 43 | const onListen = () => { 44 | const address = httpServer.address(); 45 | if (typeof address === 'string') { 46 | throw new Error('Expected string'); 47 | } 48 | 49 | const { port } = address; 50 | 51 | console.log(`Server running on port ${port}`); 52 | }; 53 | 54 | const PORT = getEnvVarUnsafe(EnvVar.PORT); 55 | httpServer.listen(PORT, () => { 56 | onListen(); 57 | }); 58 | -------------------------------------------------------------------------------- /src/server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "server", 3 | "version": "0.0.1", 4 | "private": true, 5 | "dependencies": { 6 | "@types/blue-tape": "^0.1.32", 7 | "@types/body-parser": "^1.17.0", 8 | "@types/connect-redis": "^0.0.7", 9 | "@types/denodeify": "^1.2.30", 10 | "@types/express": "^4.16.0", 11 | "@types/express-session": "^1.15.10", 12 | "@types/luxon": "^1.2.2", 13 | "@types/node": "^10.5.8", 14 | "@types/node-fetch": "^2.1.2", 15 | "@types/ramda": "^0.25.36", 16 | "@types/redis": "^2.8.6", 17 | "@types/request-ip": "^0.0.33", 18 | "body-parser": "^1.18.3", 19 | "connect-redis": "^3.3.0", 20 | "decode-ts": "^0.0.13", 21 | "denodeify": "^1.2.1", 22 | "express": "^4.16.3", 23 | "express-fp": "^0.0.13", 24 | "express-result-types": "^0.0.4", 25 | "express-session": "^1.15.2", 26 | "fp-ts": "^1.7.1", 27 | "full-icu": "^1.2.1", 28 | "http-status-codes": "^1.3.0", 29 | "io-ts": "^1.3.0", 30 | "io-ts-reporters": "^0.0.21", 31 | "ix": "^2.3.5", 32 | "luxon": "^1.3.3", 33 | "node-fetch": "^2.2.0", 34 | "ramda": "^0.25.0", 35 | "redis": "^2.7.1", 36 | "source-map-support": "^0.5.8", 37 | "twitter-api-ts": "^0.0.33", 38 | "unionize": "^2.1.2", 39 | "url-transformers": "^0.0.1" 40 | }, 41 | "devDependencies": { 42 | "blue-tape": "^1.0.0" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/server/publication.ts: -------------------------------------------------------------------------------- 1 | // Tweets in timeline response page must be in descending order 2 | 3 | import { array, last } from 'fp-ts/lib/Array'; 4 | import * as chain from 'fp-ts/lib/Chain'; 5 | import { either } from 'fp-ts/lib/Either'; 6 | import { pipe } from 'fp-ts/lib/function'; 7 | import * as option from 'fp-ts/lib/Option'; 8 | import * as taskEither from 'fp-ts/lib/TaskEither'; 9 | import * as traversable from 'fp-ts/lib/Traversable'; 10 | import * as luxon from 'luxon'; 11 | import { dropWhile, takeWhile, uniqBy } from 'ramda'; 12 | import * as TwitterApiTypes from 'twitter-api-ts/target/types'; 13 | import { ofType, unionize } from 'unionize'; 14 | 15 | import { asyncIterableToTaskArray, takeUntil } from './helpers/ix'; 16 | import { getTweetCreatedAtParsed, getTweetId } from './helpers/twitter-api'; 17 | import { TwitterTimelineResponsesIterable } from './timeline-responses-iterable'; 18 | import { FullPublicationResponse, PublicationResponse, TaskEitherFromEither } from './types'; 19 | import { ErrorResponse } from './types/error-response'; 20 | 21 | import Option = option.Option; 22 | import TaskEither = taskEither.TaskEither; 23 | 24 | const PUBLICATION_HOUR = 6; 25 | 26 | // Given UTC date for now and time zone, returns UTC date for publication 27 | export const getPublicationDateForTimeZone = (nowDate: luxon.DateTime) => ( 28 | timeZone: luxon.IANAZone, 29 | ) => { 30 | const localDate = nowDate.setZone(timeZone); 31 | const createLocalPublicationDateYesterday = () => 32 | localDate 33 | .set({ 34 | day: localDate.day - 1, 35 | hour: PUBLICATION_HOUR, 36 | }) 37 | .startOf('hour'); 38 | const localPublicationDateToday = localDate 39 | .set({ 40 | hour: PUBLICATION_HOUR, 41 | }) 42 | .startOf('hour'); 43 | const localPublicationDate = 44 | nowDate >= localPublicationDateToday 45 | ? localPublicationDateToday 46 | : createLocalPublicationDateYesterday(); 47 | return localPublicationDate.setZone('utc'); 48 | }; 49 | 50 | export const getPublicationRange = (publicationDate: luxon.DateTime): luxon.Interval => { 51 | // Note: intervals are inclusive of the start but not the end. 52 | const publicationEndDate = publicationDate; 53 | const publicationStartDate = publicationDate.minus({ days: 1 }); 54 | return luxon.Interval.fromDateTimes(publicationStartDate, publicationEndDate); 55 | }; 56 | 57 | const isTweetLtPublicationStart = (publicationDate: luxon.DateTime) => ( 58 | tweet: TwitterApiTypes.TweetT, 59 | ) => { 60 | const publicationRange = getPublicationRange(publicationDate); 61 | return getTweetCreatedAtParsed(tweet) < publicationRange.start; 62 | }; 63 | const isTweetGtePublicationStart = (publicationDate: luxon.DateTime) => ( 64 | tweet: TwitterApiTypes.TweetT, 65 | ) => { 66 | const publicationRange = getPublicationRange(publicationDate); 67 | return getTweetCreatedAtParsed(tweet) >= publicationRange.start; 68 | }; 69 | const isTweetGtePublicationEnd = (publicationDate: luxon.DateTime) => ( 70 | tweet: TwitterApiTypes.TweetT, 71 | ) => { 72 | const publicationRange = getPublicationRange(publicationDate); 73 | return getTweetCreatedAtParsed(tweet) >= publicationRange.end; 74 | }; 75 | 76 | const getTweetsInRange = (publicationDate: luxon.DateTime) => 77 | pipe( 78 | dropWhile(isTweetGtePublicationEnd(publicationDate)), 79 | takeWhile(isTweetGtePublicationStart(publicationDate)), 80 | ); 81 | 82 | const isTweetInRange = (publicationDate: luxon.DateTime) => { 83 | const publicationRange = getPublicationRange(publicationDate); 84 | return pipe( 85 | getTweetCreatedAtParsed, 86 | dateTime => publicationRange.contains(dateTime), 87 | ); 88 | }; 89 | 90 | export const PublicationWarning = unionize({ 91 | RangeStartPotentiallyUnreachable: ofType<{}>(), 92 | RangeEndPotentiallyUnreachable: ofType<{}>(), 93 | }); 94 | export type PublicationWarning = typeof PublicationWarning._Union; 95 | 96 | const getWarning = (publicationDate: luxon.DateTime) => ( 97 | tweets: TwitterApiTypes.TweetT[], 98 | ): Option => { 99 | const maybeLastTweet = last(tweets); 100 | 101 | const isRangeStartPotentiallyUnreachable = maybeLastTweet 102 | .map(isTweetGtePublicationEnd(publicationDate)) 103 | .getOrElse(false); 104 | 105 | const isRangeEndPotentiallyUnreachable = maybeLastTweet 106 | .map(isTweetInRange(publicationDate)) 107 | .getOrElse(false); 108 | 109 | return isRangeStartPotentiallyUnreachable 110 | ? option.some(PublicationWarning.RangeStartPotentiallyUnreachable({})) 111 | : isRangeEndPotentiallyUnreachable 112 | ? option.some(PublicationWarning.RangeEndPotentiallyUnreachable({})) 113 | : option.none; 114 | }; 115 | 116 | const checkIsPageAfterRangeEnd = (publicationDate: luxon.DateTime) => ( 117 | page: TwitterApiTypes.TwitterAPITimelineResponseT, 118 | ) => 119 | last(page) 120 | .map(isTweetLtPublicationStart(publicationDate)) 121 | // If the page is empty, the range has ended. 122 | .getOrElse(true); 123 | 124 | const checkIsTimelineResponseAfterRangeEnd = (publicationDate: luxon.DateTime) => ( 125 | response: TwitterApiTypes.TimelineResponse, 126 | ) => 127 | response 128 | .map(checkIsPageAfterRangeEnd(publicationDate)) 129 | // If the response is an error, the range has ended. 130 | .getOrElse(true); 131 | 132 | const takeTimelineResponsesUntilRangeEnd = (publicationDate: luxon.DateTime) => 133 | takeUntil(checkIsTimelineResponseAfterRangeEnd(publicationDate)); 134 | 135 | const getUniqueTweetsById = uniqBy(getTweetId); 136 | 137 | const flattenArray = chain.flatten(array); 138 | const sequenceEithers = traversable.sequence(either, array); 139 | 140 | export const getLatestPublication = ({ 141 | responsesIterable, 142 | publicationDate, 143 | }: { 144 | responsesIterable: TwitterTimelineResponsesIterable; 145 | publicationDate: luxon.DateTime; 146 | }): TaskEitherFromEither => { 147 | const responsesInRangeIterable = takeTimelineResponsesUntilRangeEnd(publicationDate)( 148 | responsesIterable, 149 | ); 150 | const responsesInRangeTask = asyncIterableToTaskArray(responsesInRangeIterable); 151 | const pagesInRangeResponseTask = responsesInRangeTask.map(sequenceEithers); 152 | const publicationTweetsM = new TaskEither(pagesInRangeResponseTask).map(flattenArray); 153 | 154 | return ( 155 | publicationTweetsM 156 | .mapLeft(twitterApiErrorResponse => 157 | ErrorResponse.TwitterApi({ errorResponse: twitterApiErrorResponse }), 158 | ) 159 | // Since the max ID parameter is inclusive, there will be duplicates 160 | // where the pages meet. This removes them. 161 | .map(getUniqueTweetsById) 162 | .map( 163 | (tweets): PublicationResponse => ({ 164 | warning: getWarning(publicationDate)(tweets), 165 | tweets: getTweetsInRange(publicationDate)(tweets), 166 | }), 167 | ) 168 | ); 169 | }; 170 | -------------------------------------------------------------------------------- /src/server/redis-client.ts: -------------------------------------------------------------------------------- 1 | import { pipe } from 'fp-ts/lib/function'; 2 | import * as redis from 'redis'; 3 | 4 | import { EnvVar, getEnvVarUnsafe } from './helpers/env-vars'; 5 | 6 | export const redisClient = pipe( 7 | () => getEnvVarUnsafe(EnvVar.REDIS_URL), 8 | redisUrl => redis.createClient(redisUrl), 9 | )({}); 10 | -------------------------------------------------------------------------------- /src/server/response-views.ts: -------------------------------------------------------------------------------- 1 | import { JsonDecodeError } from 'decode-ts/target/types'; 2 | import * as array from 'fp-ts/lib/Array'; 3 | import { pipe } from 'fp-ts/lib/function'; 4 | import { formatValidationError } from 'io-ts-reporters'; 5 | import * as luxon from 'luxon'; 6 | import { ErrorResponse as TwitterApiErrorResponse } from 'twitter-api-ts/target/types'; 7 | 8 | import { parseTwitterDate } from './helpers/twitter-date'; 9 | import { PublicationWarning } from './publication'; 10 | import { PublicationResponse } from './types'; 11 | import { ErrorResponse } from './types/error-response'; 12 | 13 | const renderJsonDecodeError = JsonDecodeError.match({ 14 | ValidationErrors: ({ validationErrors }) => { 15 | const formattedValidationErrors = array.catOptions( 16 | validationErrors.map(formatValidationError), 17 | ); 18 | return [ 19 | 'Validation errors:', 20 | '
    ', 21 | ...formattedValidationErrors.map(error => `
  • ${error}
  • `), 22 | '
', 23 | ].join(''); 24 | }, 25 | ParsingError: ({ errorMessage }) => `Parsing error: ${errorMessage}`, 26 | }); 27 | 28 | const renderTwitterApiErrorResponse = ( 29 | twitterApiErrorResponse: TwitterApiErrorResponse, 30 | ): string => { 31 | const messageHeader = 'Twitter API'; 32 | const messageBody = TwitterApiErrorResponse.match({ 33 | DecodeError: ({ decodeError }) => renderJsonDecodeError(decodeError), 34 | APIErrorResponse: ({ apiErrorResponse }) => 35 | [ 36 | 'API errors:', 37 | '
    ', 38 | ...apiErrorResponse.errors.map(error => `
  • ${error.code}: ${error.message}
  • `), 39 | '
', 40 | ].join(''), 41 | JavaScriptError: ({ error }) => `JavaScript error: ${error.stack}`, 42 | })(twitterApiErrorResponse); 43 | 44 | return `${messageHeader}: ${messageBody}`; 45 | }; 46 | 47 | const renderRequestValidationErrors = ( 48 | errorResponse: typeof ErrorResponse._Record.RequestValidation, 49 | ): string => { 50 | const formattedValidationErrors = array.catOptions( 51 | errorResponse.validationErrors.map(formatValidationError), 52 | ); 53 | return [ 54 | `Request validation errors for ${errorResponse.context}:`, 55 | '
    ', 56 | ...formattedValidationErrors.map(error => `
  • ${error}
  • `), 57 | '
', 58 | ].join(''); 59 | }; 60 | 61 | export const renderErrorResponse = ErrorResponse.match({ 62 | Simple: ({ message }) => message, 63 | JsonDecode: ({ decodeError, context }) => 64 | `JSON decode errors for ${context}: ${renderJsonDecodeError(decodeError)}`, 65 | RequestValidation: renderRequestValidationErrors, 66 | TwitterApi: ({ errorResponse }) => renderTwitterApiErrorResponse(errorResponse), 67 | Unauthenticated: () => 'Not authenticated', 68 | }); 69 | 70 | // https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-home_timeline 71 | const TIMELINE_MAX = 800; 72 | const getWarningMessage = PublicationWarning.match({ 73 | RangeStartPotentiallyUnreachable: () => 74 | `No publication tweets were found. We were unable to find any tweets >= the publication end time. Note we can only access up to the last ${TIMELINE_MAX} tweets.`, 75 | RangeEndPotentiallyUnreachable: () => 76 | `This publication is potentially incomplete. We were unable to find any tweets > the publication start time. Note we can only access up to the last ${TIMELINE_MAX} tweets.`, 77 | }); 78 | 79 | const formatDateWithTimeZone = (timeZone: luxon.IANAZone) => (dateTime: luxon.DateTime): string => 80 | dateTime.setZone(timeZone).toFormat('D TTT'); 81 | const formatTweetCreatedAt = (timeZone: luxon.IANAZone) => 82 | pipe( 83 | parseTwitterDate, 84 | formatDateWithTimeZone(timeZone), 85 | ); 86 | 87 | export const renderPublication = (publication: PublicationResponse) => ( 88 | timeZone: luxon.IANAZone, 89 | ) => (publicationDate: luxon.DateTime): string => 90 | [ 91 | ...publication.warning 92 | .map(getWarningMessage) 93 | .map(message => [`Warning: ${message}`]) 94 | .getOrElse([]), 95 | `

Publication date: ${formatDateWithTimeZone(timeZone)(publicationDate)}

`, 96 | `
    ${publication.tweets 97 | .map( 98 | tweet => 99 | `
  1. ${tweet.id_str} ${formatTweetCreatedAt(timeZone)(tweet.created_at)} @${ 100 | tweet.user.screen_name 101 | }: ${tweet.text}
  2. `, 102 | ) 103 | .join('')}
`, 104 | ].join(''); 105 | -------------------------------------------------------------------------------- /src/server/routes-helpers.ts: -------------------------------------------------------------------------------- 1 | import { SafeRequest } from 'express-fp'; 2 | import { Status, Writeable } from 'express-result-types/target/result'; 3 | import { liftA2 } from 'fp-ts/lib/Apply'; 4 | import * as either from 'fp-ts/lib/Either'; 5 | import * as option from 'fp-ts/lib/Option'; 6 | import * as taskEither from 'fp-ts/lib/TaskEither'; 7 | import { 8 | BAD_REQUEST, 9 | FORBIDDEN, 10 | INTERNAL_SERVER_ERROR, 11 | TOO_MANY_REQUESTS, 12 | } from 'http-status-codes'; 13 | import * as t from 'io-ts'; 14 | import * as luxon from 'luxon'; 15 | import * as TwitterApi from 'twitter-api-ts'; 16 | import * as TwitterApiTypes from 'twitter-api-ts/target/types'; 17 | import * as url from 'url'; 18 | 19 | import { BASE_URL } from './helpers/base-url'; 20 | import { EnvVar, getEnvVarUnsafe } from './helpers/env-vars'; 21 | import { getUserTwitterCredentialsFromId } from './helpers/redis'; 22 | import { 23 | isTwitterApiErrorResponseRateLimitExceeded, 24 | MAX_TIMELINE_COUNT, 25 | } from './helpers/twitter-api'; 26 | import { renderErrorResponse } from './response-views'; 27 | import { FetchFn } from './timeline-responses-iterable'; 28 | import { OrErrorResponse, OrErrorResponseAsync, UserTwitterCredentialsT } from './types'; 29 | import * as ErrorResponses from './types/error-response'; 30 | 31 | import Option = option.Option; 32 | import TaskEither = taskEither.TaskEither; 33 | import ErrorResponse = ErrorResponses.ErrorResponse; 34 | 35 | export enum RoutePathname { 36 | GetAuthIndex = '/auth', 37 | GetAuthCallback = '/auth/callback', 38 | GetHome = '/', 39 | } 40 | 41 | const TWITTER_CONSUMER_SECRET = getEnvVarUnsafe(EnvVar.TWITTER_CONSUMER_SECRET); 42 | const TWITTER_CONSUMER_KEY = getEnvVarUnsafe(EnvVar.TWITTER_CONSUMER_KEY); 43 | 44 | const TWITTER_CALLBACK_URL = url.resolve(BASE_URL, RoutePathname.GetAuthCallback); 45 | 46 | export const createFetchHomeTimelineFn = (credentials: UserTwitterCredentialsT): FetchFn => ( 47 | maybeMaxId: Option, 48 | ) => 49 | TwitterApi.fetchHomeTimeline({ 50 | oAuth: { 51 | consumerKey: TWITTER_CONSUMER_KEY, 52 | consumerSecret: TWITTER_CONSUMER_SECRET, 53 | token: option.some(credentials.oauthAccessToken), 54 | tokenSecret: option.some(credentials.oauthAccessTokenSecret), 55 | }, 56 | query: { 57 | count: option.some(MAX_TIMELINE_COUNT), 58 | max_id: maybeMaxId, 59 | }, 60 | }); 61 | 62 | const getQueryParameter = ( 63 | req: SafeRequest, 64 | key: string, 65 | ): either.Either => 66 | req.query.get(key).foldL( 67 | () => 68 | either.left( 69 | ErrorResponse.Simple({ 70 | statusCode: BAD_REQUEST, 71 | message: `Expecting query parameter '${key}' but instead got none.`, 72 | }), 73 | ), 74 | value => either.right(value), 75 | ); 76 | 77 | export const htmlValueWriteable = new Writeable(htmlString => htmlString, 'text/html'); 78 | 79 | const getStatusCodeFromTwitterApiErrorResponse = ( 80 | twitterApiErrorResponse: TwitterApiTypes.ErrorResponse, 81 | ): number => 82 | isTwitterApiErrorResponseRateLimitExceeded(twitterApiErrorResponse) 83 | ? TOO_MANY_REQUESTS 84 | : INTERNAL_SERVER_ERROR; 85 | 86 | const getStatusCodeForErrorResponse = ErrorResponse.match({ 87 | Simple: ({ statusCode }) => statusCode, 88 | Unauthenticated: () => FORBIDDEN, 89 | JsonDecode: ({ statusCode }) => statusCode, 90 | RequestValidation: () => BAD_REQUEST, 91 | TwitterApi: ({ errorResponse }) => getStatusCodeFromTwitterApiErrorResponse(errorResponse), 92 | }); 93 | 94 | export const errorResponseToResult = (error: ErrorResponse) => 95 | new Status(getStatusCodeForErrorResponse(error)).apply( 96 | renderErrorResponse(error), 97 | htmlValueWriteable, 98 | ); 99 | 100 | export enum SessionKeys { 101 | TwitterUserId = 'twitterUserId', 102 | } 103 | 104 | const getTwitterUserIdFromReq = (req: SafeRequest): OrErrorResponse => 105 | req.session 106 | .get(SessionKeys.TwitterUserId) 107 | .foldL( 108 | () => either.left(ErrorResponse.Unauthenticated({})), 109 | twitterUserId => either.right(twitterUserId), 110 | ); 111 | 112 | export const getTwitterUserCredentialsFromReq = ( 113 | req: SafeRequest, 114 | ): OrErrorResponseAsync => 115 | taskEither.fromEither(getTwitterUserIdFromReq(req)).chain(twitterUserId => 116 | new TaskEither(getUserTwitterCredentialsFromId(twitterUserId)).mapLeft(decodeError => 117 | ErrorResponse.JsonDecode({ 118 | statusCode: INTERNAL_SERVER_ERROR, 119 | decodeError, 120 | context: 'Twitter user credentials', 121 | }), 122 | ), 123 | ); 124 | 125 | export const getUserTimeZone = ( 126 | user: TwitterApiTypes.TwitterAPIAccountSettingsT, 127 | ): OrErrorResponse => 128 | option 129 | .fromNullable(user.time_zone.tzinfo_name) 130 | .foldL( 131 | (): OrErrorResponse => 132 | either.left( 133 | ErrorResponse.Simple({ 134 | statusCode: INTERNAL_SERVER_ERROR, 135 | message: 'Time zone not available for Twitter user', 136 | }), 137 | ), 138 | timeZone => either.right(timeZone), 139 | ) 140 | .map(s => new luxon.IANAZone(s)); 141 | 142 | enum AuthCallbackQueryParameter { 143 | OAuthToken = 'oauth_token', 144 | OAuthVerifier = 'oauth_verifier', 145 | } 146 | const AuthCallbackQuery = t.interface({ 147 | oauthToken: t.string, 148 | oauthVerifier: t.string, 149 | }); 150 | type AuthCallbackQueryT = t.TypeOf; 151 | export const getAuthCallbackQuery = (req: SafeRequest): OrErrorResponse => 152 | liftA2(either.either)( 153 | (oauthToken: string | string[]) => (oauthVerifier: string | string[]) => ({ 154 | oauthToken, 155 | oauthVerifier, 156 | }), 157 | )(getQueryParameter(req, AuthCallbackQueryParameter.OAuthToken))( 158 | getQueryParameter(req, AuthCallbackQueryParameter.OAuthVerifier), 159 | ).chain(val => 160 | AuthCallbackQuery.decode(val).mapLeft(validationErrors => 161 | ErrorResponse.RequestValidation({ 162 | validationErrors, 163 | context: 'query', 164 | }), 165 | ), 166 | ); 167 | 168 | export const getRequestToken = TwitterApi.getRequestToken({ 169 | oAuth: { 170 | consumerKey: TWITTER_CONSUMER_KEY, 171 | consumerSecret: TWITTER_CONSUMER_SECRET, 172 | callback: option.some(TWITTER_CALLBACK_URL), 173 | }, 174 | }); 175 | 176 | export const getAccessToken = (query: AuthCallbackQueryT) => 177 | TwitterApi.getAccessToken({ 178 | oAuth: { 179 | consumerKey: TWITTER_CONSUMER_KEY, 180 | consumerSecret: TWITTER_CONSUMER_SECRET, 181 | callback: option.some(TWITTER_CALLBACK_URL), 182 | token: option.some(query.oauthToken), 183 | verifier: option.some(query.oauthVerifier), 184 | }, 185 | }); 186 | 187 | export const fetchAccountSettings = (credentials: UserTwitterCredentialsT) => 188 | TwitterApi.fetchAccountSettings({ 189 | oAuth: { 190 | consumerKey: TWITTER_CONSUMER_KEY, 191 | consumerSecret: TWITTER_CONSUMER_SECRET, 192 | token: option.some(credentials.oauthAccessToken), 193 | tokenSecret: option.some(credentials.oauthAccessTokenSecret), 194 | }, 195 | }); 196 | -------------------------------------------------------------------------------- /src/server/routes.ts: -------------------------------------------------------------------------------- 1 | import { SafeRequestHandler, SafeRequestHandlerAsync, wrapAsync } from 'express-fp'; 2 | import { Ok, TemporaryRedirect } from 'express-result-types/target/result'; 3 | import * as apply from 'fp-ts/lib/Apply'; 4 | import * as either from 'fp-ts/lib/Either'; 5 | import * as taskEither from 'fp-ts/lib/TaskEither'; 6 | import { INTERNAL_SERVER_ERROR } from 'http-status-codes'; 7 | import * as luxon from 'luxon'; 8 | import * as TwitterApiTypes from 'twitter-api-ts/target/types'; 9 | import { addQueryToUrl } from 'url-transformers'; 10 | 11 | import { setUserTwitterCredentials } from './helpers/redis'; 12 | import { twitterApiOAuthAuthenticateUrl } from './helpers/twitter-api'; 13 | import { getLatestPublication, getPublicationDateForTimeZone } from './publication'; 14 | import { renderPublication } from './response-views'; 15 | import { 16 | createFetchHomeTimelineFn, 17 | errorResponseToResult, 18 | fetchAccountSettings, 19 | getAccessToken, 20 | getAuthCallbackQuery, 21 | getRequestToken, 22 | getTwitterUserCredentialsFromReq, 23 | getUserTimeZone, 24 | htmlValueWriteable, 25 | RoutePathname, 26 | SessionKeys, 27 | } from './routes-helpers'; 28 | import { createTimelineResponsesIterable } from './timeline-responses-iterable'; 29 | import { OrErrorResponse, UserTwitterCredentialsT } from './types'; 30 | import { ErrorResponse } from './types/error-response'; 31 | 32 | import TaskEither = taskEither.TaskEither; 33 | 34 | export const authIndex = wrapAsync(() => 35 | new TaskEither(getRequestToken) 36 | .mapLeft(twitterApiErrorResponse => 37 | ErrorResponse.TwitterApi({ errorResponse: twitterApiErrorResponse }), 38 | ) 39 | .map( 40 | (twitterApiRequestTokenResponse): OrErrorResponse => { 41 | if (twitterApiRequestTokenResponse.oauth_callback_confirmed === 'true') { 42 | const query: TwitterApiTypes.OAuthAuthenticateEndpointQuery = { 43 | oauth_token: twitterApiRequestTokenResponse.oauth_token, 44 | }; 45 | const redirectUrl = addQueryToUrl({ url: twitterApiOAuthAuthenticateUrl })({ 46 | queryToAppend: query, 47 | }); 48 | return either.right(redirectUrl); 49 | } else { 50 | return either.left( 51 | ErrorResponse.Simple({ 52 | statusCode: INTERNAL_SERVER_ERROR, 53 | message: `Expected 'oauth_callback_confirmed' to be 'true'`, 54 | }), 55 | ); 56 | } 57 | }, 58 | ) 59 | .chain(taskEither.fromEither) 60 | .fold(errorResponseToResult, TemporaryRedirect) 61 | .run(), 62 | ); 63 | 64 | export const authCallback = wrapAsync(req => { 65 | const maybeQuery = getAuthCallbackQuery(req); 66 | 67 | return ( 68 | taskEither 69 | .fromEither(maybeQuery) 70 | .chain(query => 71 | new TaskEither(getAccessToken(query)).mapLeft(twitterApiErrorResponse => 72 | ErrorResponse.TwitterApi({ errorResponse: twitterApiErrorResponse }), 73 | ), 74 | ) 75 | // Run side effect 76 | .chain(twitterApiAccessTokenResponse => 77 | taskEither.right( 78 | setUserTwitterCredentials(twitterApiAccessTokenResponse.user_id)({ 79 | oauthAccessToken: twitterApiAccessTokenResponse.oauth_token, 80 | oauthAccessTokenSecret: twitterApiAccessTokenResponse.oauth_token_secret, 81 | }).map(() => twitterApiAccessTokenResponse), 82 | ), 83 | ) 84 | .fold(errorResponseToResult, twitterApiAccessTokenResponse => 85 | TemporaryRedirect('/').withSession( 86 | new Map([[SessionKeys.TwitterUserId, twitterApiAccessTokenResponse.user_id]]), 87 | ), 88 | ) 89 | .run() 90 | ); 91 | }); 92 | 93 | const homeUnauthenticated: SafeRequestHandler = () => 94 | Ok.apply( 95 | `Not authenticated. Log in.`, 96 | htmlValueWriteable, 97 | ); 98 | 99 | const homeAuthenticated: SafeRequestHandlerAsync = req => { 100 | const credentialsM = getTwitterUserCredentialsFromReq(req); 101 | 102 | const accountSettingsM = credentialsM.chain(credentials => 103 | new TaskEither(fetchAccountSettings(credentials)).mapLeft(twitterApiErrorResponse => 104 | ErrorResponse.TwitterApi({ errorResponse: twitterApiErrorResponse }), 105 | ), 106 | ); 107 | 108 | const timeZoneM = accountSettingsM.map(getUserTimeZone).chain(taskEither.fromEither); 109 | 110 | // prettier-ignore 111 | return apply.liftA2(taskEither.taskEither)( 112 | (credentials: UserTwitterCredentialsT) => (timeZone: luxon.IANAZone) => ({ credentials, timeZone }) 113 | ) 114 | (credentialsM) 115 | (timeZoneM) 116 | .chain(({ credentials, timeZone }) => { 117 | const fetchFn = createFetchHomeTimelineFn(credentials); 118 | const responsesIterable = createTimelineResponsesIterable(fetchFn); 119 | const nowDate = luxon.DateTime.utc(); 120 | const publicationDate = getPublicationDateForTimeZone(nowDate)(timeZone); 121 | return getLatestPublication({ responsesIterable, publicationDate }).map(publication => ({ timeZone, publication, publicationDate })) 122 | }) 123 | .fold(errorResponseToResult, ({ timeZone, publication, publicationDate }) => { 124 | console.log(publication.warning); 125 | return Ok.apply(renderPublication(publication)(timeZone)(publicationDate), htmlValueWriteable); 126 | }) 127 | .run(); 128 | }; 129 | 130 | export const home = wrapAsync(req => 131 | req.session 132 | .get(SessionKeys.TwitterUserId) 133 | .foldL(() => Promise.resolve(homeUnauthenticated(req)), () => homeAuthenticated(req)), 134 | ); 135 | -------------------------------------------------------------------------------- /src/server/tests/helpers.ts: -------------------------------------------------------------------------------- 1 | import * as tape from 'blue-tape'; 2 | import * as either from 'fp-ts/lib/Either'; 3 | import * as luxon from 'luxon'; 4 | import { map, mean, pipe } from 'ramda'; 5 | import { createErrorResponse } from 'twitter-api-ts/target/helpers'; 6 | import * as TwitterApiTypes from 'twitter-api-ts/target/types'; 7 | 8 | import { formatTwitterDate } from '../helpers/twitter-date'; 9 | 10 | import Either = either.Either; 11 | 12 | type Omit = Pick>; 13 | type ObjectOmit = Omit; 14 | 15 | type ObjectDiff = ObjectOmit & Partial; 16 | 17 | const dateToEpoch = (date: luxon.DateTime) => date.valueOf(); 18 | const meanDates = pipe( 19 | map(dateToEpoch), 20 | mean, 21 | luxon.DateTime.fromMillis, 22 | ); 23 | export const getMeanDateFromInterval = ({ start, end }: luxon.Interval): luxon.DateTime => 24 | meanDates([start, end]); 25 | 26 | export const assertEitherRight = ( 27 | assert: tape.Test, 28 | eitherInstance: Either, 29 | rightFn: (a: A) => void, 30 | ) => { 31 | eitherInstance.fold(left => { 32 | assert.fail(`Unexpected left: ${JSON.stringify(left, null, '\t')}`); 33 | }, rightFn); 34 | }; 35 | 36 | export const assertEitherLeft = ( 37 | assert: tape.Test, 38 | eitherInstance: Either, 39 | leftFn: (l: L) => void, 40 | ) => { 41 | eitherInstance.fold(leftFn, right => { 42 | assert.fail(`Unexpected right: ${JSON.stringify(right, null, '\t')}`); 43 | }); 44 | }; 45 | 46 | // tslint:disable no-unnecessary-callback-wrapper 47 | export const createTimelineFailure = ( 48 | errorResponse: TwitterApiTypes.ErrorResponse, 49 | ): TwitterApiTypes.TimelineResponse => 50 | createErrorResponse(errorResponse); 51 | const createSuccessResponse = (successResponse: T): TwitterApiTypes.Response => 52 | either.right(successResponse); 53 | export const createTimelineSuccess = ( 54 | tweets: TwitterApiTypes.TwitterAPITimelineResponseT, 55 | ): TwitterApiTypes.TimelineResponse => createSuccessResponse(tweets); 56 | // tslint:enable no-unnecessary-callback-wrapper 57 | 58 | const tweetDefaults: Pick = { 59 | text: 'foo', 60 | user: { id_str: 'foo', screen_name: 'foo', time_zone: null }, 61 | created_at: formatTwitterDate(luxon.DateTime.utc()), 62 | }; 63 | type TweetInput = ObjectDiff; 64 | export const createTweet = (tweetInput: TweetInput): TwitterApiTypes.TweetT => ({ 65 | ...tweetDefaults, 66 | ...tweetInput, 67 | }); 68 | -------------------------------------------------------------------------------- /src/server/tests/helpers/twitter-date.test.ts: -------------------------------------------------------------------------------- 1 | import * as tape from 'blue-tape'; 2 | import * as luxon from 'luxon'; 3 | 4 | import { formatTwitterDate, parseTwitterDate } from '../../helpers/twitter-date'; 5 | 6 | tape('`parseTwitterDate`', assert => { 7 | const dateStr = 'Wed Aug 27 13:08:45 +0000 2008'; 8 | const dateTime = parseTwitterDate(dateStr); 9 | const actualIso = dateTime.toISO(); 10 | const expectedIso = luxon.DateTime.utc(2008, 8, 27, 13, 8, 45).toISO(); 11 | assert.equal(actualIso, expectedIso); 12 | assert.end(); 13 | }); 14 | 15 | tape('`formatTwitterDate`', assert => { 16 | const dateTime = luxon.DateTime.utc(2008, 8, 27, 13, 8, 45); 17 | const expectedDateStr = 'Wed Aug 27 13:08:45 +0000 2008'; 18 | const actualDateStr = formatTwitterDate(dateTime); 19 | assert.equal(actualDateStr, expectedDateStr); 20 | assert.end(); 21 | }); 22 | -------------------------------------------------------------------------------- /src/server/tests/index.test.ts: -------------------------------------------------------------------------------- 1 | import * as tape from 'blue-tape'; 2 | import * as array from 'fp-ts/lib/Array'; 3 | import * as chain from 'fp-ts/lib/Chain'; 4 | import * as either from 'fp-ts/lib/Either'; 5 | import * as option from 'fp-ts/lib/Option'; 6 | import * as task from 'fp-ts/lib/Task'; 7 | import * as traversable from 'fp-ts/lib/Traversable'; 8 | import * as Ix from 'ix'; 9 | import * as luxon from 'luxon'; 10 | import * as TwitterApiTypes from 'twitter-api-ts/target/types'; 11 | 12 | import { getTweetId } from '../helpers/twitter-api'; 13 | import { formatTwitterDate } from '../helpers/twitter-date'; 14 | import { 15 | getLatestPublication, 16 | getPublicationDateForTimeZone, 17 | getPublicationRange, 18 | PublicationWarning, 19 | } from '../publication'; 20 | import { createTimelineResponsesIterable, FetchFn } from '../timeline-responses-iterable'; 21 | import { ErrorResponse } from '../types/error-response'; 22 | 23 | import { 24 | assertEitherLeft, 25 | assertEitherRight, 26 | createTimelineFailure, 27 | createTimelineSuccess, 28 | createTweet, 29 | getMeanDateFromInterval, 30 | } from './helpers'; 31 | 32 | // tslint:disable no-import-side-effect 33 | import './helpers/twitter-date.test'; 34 | import './publication.test'; 35 | // tslint:enable no-import-side-effect 36 | 37 | const timeZone = new luxon.IANAZone('utc'); 38 | const nowDate = luxon.DateTime.utc(2017, 1, 2); 39 | const publicationDate = getPublicationDateForTimeZone(nowDate)(timeZone); 40 | const previousPublicationDate = publicationDate.minus({ days: 1 }); 41 | const nextPublicationDate = publicationDate.plus({ days: 1 }); 42 | const dateInPublication = getMeanDateFromInterval(getPublicationRange(publicationDate)); 43 | const dateBeforePublication = getMeanDateFromInterval(getPublicationRange(previousPublicationDate)); 44 | const dateAfterPublication = getMeanDateFromInterval(getPublicationRange(nextPublicationDate)); 45 | 46 | // should drop tweets after publication end 47 | // should take tweets between publication end and publication start 48 | // should drop tweets before publication start 49 | 50 | tape( 51 | '`getLatestPublication` given a range over one page, should only retrieve tweets in range', 52 | async assert => { 53 | const createPagesGenerator = async function*() { 54 | yield Promise.resolve( 55 | createTimelineSuccess([ 56 | createTweet({ 57 | id_str: 'c', 58 | created_at: formatTwitterDate(dateAfterPublication), 59 | }), 60 | ]), 61 | ); 62 | yield Promise.resolve( 63 | createTimelineSuccess([ 64 | createTweet({ id_str: 'b', created_at: formatTwitterDate(dateInPublication) }), 65 | ]), 66 | ); 67 | yield Promise.resolve( 68 | createTimelineSuccess([ 69 | createTweet({ 70 | id_str: 'a', 71 | created_at: formatTwitterDate(dateBeforePublication), 72 | }), 73 | ]), 74 | ); 75 | }; 76 | 77 | const responsesIterable = createPagesGenerator(); 78 | const serverResponse = await getLatestPublication({ 79 | responsesIterable, 80 | publicationDate, 81 | }).value.run(); 82 | 83 | assertEitherRight(assert, serverResponse, ({ tweets }) => { 84 | assert.deepEqual(tweets.map(getTweetId), ['b']); 85 | }); 86 | }, 87 | ); 88 | 89 | tape('`getLatestPublication` given failures, should return first failure', async assert => { 90 | const createPagesGenerator = async function*() { 91 | yield Promise.resolve( 92 | createTimelineFailure( 93 | TwitterApiTypes.ErrorResponse.APIErrorResponse({ 94 | apiErrorResponse: { 95 | errors: [{ code: 1, message: 'foo' }], 96 | }, 97 | }), 98 | ), 99 | ); 100 | yield Promise.resolve( 101 | createTimelineFailure( 102 | TwitterApiTypes.ErrorResponse.APIErrorResponse({ 103 | apiErrorResponse: { 104 | errors: [{ code: 2, message: 'bar' }], 105 | }, 106 | }), 107 | ), 108 | ); 109 | }; 110 | 111 | const responsesIterable = createPagesGenerator(); 112 | const serverResponse = await getLatestPublication({ 113 | responsesIterable, 114 | publicationDate, 115 | }).value.run(); 116 | 117 | assertEitherLeft( 118 | assert, 119 | serverResponse.mapLeft( 120 | ErrorResponse.match({ 121 | TwitterApi: ({ errorResponse }) => 122 | TwitterApiTypes.ErrorResponse.is.APIErrorResponse(errorResponse) 123 | ? errorResponse.apiErrorResponse.errors.map( 124 | twitterApiError => twitterApiError.code, 125 | ) 126 | : [], 127 | default: () => [], 128 | }), 129 | ), 130 | statusCodes => { 131 | assert.deepEqual(statusCodes, [1]); 132 | }, 133 | ); 134 | }); 135 | 136 | tape( 137 | '`getLatestPublication` given a range over multiple pages, should only retrieve tweets in range', 138 | async assert => { 139 | const createPagesGenerator = async function*() { 140 | yield Promise.resolve( 141 | createTimelineSuccess([ 142 | createTweet({ 143 | id_str: 'c', 144 | created_at: formatTwitterDate(dateAfterPublication), 145 | }), 146 | ]), 147 | ); 148 | yield Promise.resolve( 149 | createTimelineSuccess([ 150 | createTweet({ id_str: 'b', created_at: formatTwitterDate(dateInPublication) }), 151 | ]), 152 | ); 153 | yield Promise.resolve( 154 | createTimelineSuccess([ 155 | createTweet({ id_str: 'a', created_at: formatTwitterDate(dateInPublication) }), 156 | ]), 157 | ); 158 | }; 159 | 160 | const responsesIterable = createPagesGenerator(); 161 | const serverResponse = await getLatestPublication({ 162 | responsesIterable, 163 | publicationDate, 164 | }).value.run(); 165 | 166 | assertEitherRight(assert, serverResponse, ({ tweets }) => { 167 | assert.deepEqual(tweets.map(getTweetId), ['b', 'a']); 168 | }); 169 | }, 170 | ); 171 | 172 | tape( 173 | '`getLatestPublication` should finish iterating pages when range is exceeded', 174 | async assert => { 175 | let fail = true; 176 | const createPagesGenerator = async function*() { 177 | fail = false; 178 | // range ends in this page 179 | yield Promise.resolve( 180 | createTimelineSuccess([ 181 | createTweet({ id_str: 'c', created_at: formatTwitterDate(dateInPublication) }), 182 | createTweet({ 183 | id_str: 'b', 184 | created_at: formatTwitterDate(dateBeforePublication), 185 | }), 186 | ]), 187 | ); 188 | fail = true; 189 | yield Promise.resolve( 190 | createTimelineSuccess([ 191 | createTweet({ 192 | id_str: 'a', 193 | created_at: formatTwitterDate(dateBeforePublication), 194 | }), 195 | ]), 196 | ); 197 | }; 198 | 199 | const responsesIterable = createPagesGenerator(); 200 | const serverResponse = await getLatestPublication({ 201 | responsesIterable, 202 | publicationDate, 203 | }).value.run(); 204 | 205 | assertEitherRight(assert, serverResponse, () => { 206 | assert.equal(fail, false); 207 | }); 208 | }, 209 | ); 210 | 211 | tape('`getLatestPublication` should finish iterating pages when a page is empty', async assert => { 212 | let fail = true; 213 | const createPagesGenerator = async function*() { 214 | fail = false; 215 | // range ends in this page 216 | yield Promise.resolve(createTimelineSuccess([])); 217 | fail = true; 218 | }; 219 | 220 | const responsesIterable = createPagesGenerator(); 221 | const serverResponse = await getLatestPublication({ 222 | responsesIterable, 223 | publicationDate, 224 | }).value.run(); 225 | 226 | assertEitherRight(assert, serverResponse, () => { 227 | assert.equal(fail, false); 228 | }); 229 | }); 230 | 231 | tape('`getLatestPublication` warning: last is before: none', async assert => { 232 | const createPagesGenerator = async function*() { 233 | yield Promise.resolve( 234 | createTimelineSuccess([ 235 | createTweet({ id_str: 'a', created_at: formatTwitterDate(dateBeforePublication) }), 236 | ]), 237 | ); 238 | }; 239 | 240 | const responsesIterable = createPagesGenerator(); 241 | const serverResponse = await getLatestPublication({ 242 | responsesIterable, 243 | publicationDate, 244 | }).value.run(); 245 | 246 | assertEitherRight(assert, serverResponse, ({ warning }) => { 247 | assert.deepEqual(warning, option.none); 248 | }); 249 | }); 250 | 251 | tape( 252 | '`getLatestPublication` warning: last is in: range end potentially unreachable', 253 | async assert => { 254 | const createPagesGenerator = async function*() { 255 | yield Promise.resolve( 256 | createTimelineSuccess([ 257 | createTweet({ id_str: 'a', created_at: formatTwitterDate(dateInPublication) }), 258 | ]), 259 | ); 260 | }; 261 | 262 | const responsesIterable = createPagesGenerator(); 263 | const serverResponse = await getLatestPublication({ 264 | responsesIterable, 265 | publicationDate, 266 | }).value.run(); 267 | 268 | assertEitherRight(assert, serverResponse, ({ warning }) => { 269 | assert.deepEqual( 270 | warning, 271 | option.some(PublicationWarning.RangeEndPotentiallyUnreachable({})), 272 | ); 273 | }); 274 | }, 275 | ); 276 | 277 | tape('`getLatestPublication` warning: no last: none', async assert => { 278 | const createPagesGenerator = async function*() { 279 | yield Promise.resolve(createTimelineSuccess([])); 280 | }; 281 | 282 | const responsesIterable = createPagesGenerator(); 283 | const serverResponse = await getLatestPublication({ 284 | responsesIterable, 285 | publicationDate, 286 | }).value.run(); 287 | 288 | assertEitherRight(assert, serverResponse, ({ warning }) => { 289 | assert.deepEqual(warning, option.none); 290 | }); 291 | }); 292 | 293 | tape( 294 | '`getLatestPublication` warning: last is after: range start potentially unreachable', 295 | async assert => { 296 | const createPagesGenerator = async function*() { 297 | yield Promise.resolve( 298 | createTimelineSuccess([ 299 | createTweet({ 300 | id_str: 'a', 301 | created_at: formatTwitterDate(dateAfterPublication), 302 | }), 303 | ]), 304 | ); 305 | }; 306 | 307 | const responsesIterable = createPagesGenerator(); 308 | const serverResponse = await getLatestPublication({ 309 | responsesIterable, 310 | publicationDate, 311 | }).value.run(); 312 | 313 | assertEitherRight(assert, serverResponse, ({ warning }) => { 314 | assert.deepEqual( 315 | warning, 316 | option.some(PublicationWarning.RangeStartPotentiallyUnreachable({})), 317 | ); 318 | }); 319 | }, 320 | ); 321 | 322 | tape( 323 | '`createTimelineResponsesIterable` page through results should recurse whilst max ID is unique', 324 | async assert => { 325 | const fetchFn: FetchFn = maybeMaxId => { 326 | const result = maybeMaxId 327 | .foldL( 328 | // 1st request, no max ID 329 | () => [{ id_str: 'c' }, { id_str: 'b' }], 330 | maxId => { 331 | switch (maxId) { 332 | // 2nd request 333 | case 'b': { 334 | return [{ id_str: 'b' }, { id_str: 'a' }]; 335 | } 336 | // 3rd request 337 | case 'a': { 338 | return [{ id_str: 'a' }]; 339 | } 340 | default: 341 | return []; 342 | } 343 | }, 344 | ) 345 | .map(createTweet); 346 | return task.task.of(createTimelineSuccess(result)); 347 | }; 348 | const responsesIterable = createTimelineResponsesIterable(fetchFn); 349 | const responses = await Ix.AsyncIterable.from(responsesIterable).toArray(); 350 | 351 | assert.deepEqual( 352 | responses.map(page => 353 | option 354 | .fromEither(page) 355 | .getOrElse([]) 356 | .map(getTweetId), 357 | ), 358 | [['c', 'b'], ['b', 'a'], ['a']], 359 | ); 360 | }, 361 | ); 362 | 363 | tape( 364 | '`createTimelineResponsesIterable` page through results should stop at the first failure', 365 | async assert => { 366 | const fetchFn: FetchFn = () => 367 | task.task.of( 368 | createTimelineFailure( 369 | TwitterApiTypes.ErrorResponse.APIErrorResponse({ 370 | apiErrorResponse: { 371 | errors: [{ code: 1, message: 'bar' }], 372 | }, 373 | }), 374 | ), 375 | ); 376 | const responsesIterable = createTimelineResponsesIterable(fetchFn); 377 | const responses = await Ix.AsyncIterable.from(responsesIterable).toArray(); 378 | const sequenceEithers = traversable.sequence(either.either, array.array); 379 | const pagesM = sequenceEithers(responses); 380 | const tweetsM = pagesM.map(chain.flatten(array.array)); 381 | 382 | assertEitherLeft( 383 | assert, 384 | tweetsM.mapLeft( 385 | errorResponse => 386 | TwitterApiTypes.ErrorResponse.is.APIErrorResponse(errorResponse) 387 | ? errorResponse.apiErrorResponse.errors.map( 388 | twitterApiError => twitterApiError.code, 389 | ) 390 | : [], 391 | ), 392 | errorStatusCodes => { 393 | assert.deepEqual(errorStatusCodes, [1]); 394 | }, 395 | ); 396 | }, 397 | ); 398 | -------------------------------------------------------------------------------- /src/server/tests/publication.test.ts: -------------------------------------------------------------------------------- 1 | import * as tape from 'blue-tape'; 2 | import * as luxon from 'luxon'; 3 | 4 | import { getPublicationDateForTimeZone } from '../publication'; 5 | 6 | tape('`getPublicationDateForTimeZone` should select today', assert => { 7 | const timeZone = new luxon.IANAZone('Europe/London'); 8 | const nowDate = luxon.DateTime.utc(2018, 1, 2, 12); 9 | const publicationDate = getPublicationDateForTimeZone(nowDate)(timeZone); 10 | const actualIso = publicationDate.toISO(); 11 | const expectedDateTime = luxon.DateTime.utc(2018, 1, 2, 6); 12 | const expectedIso = expectedDateTime.toISO(); 13 | assert.equal(actualIso, expectedIso); 14 | assert.end(); 15 | }); 16 | 17 | tape('`getPublicationDateForTimeZone` should select yesterday', assert => { 18 | const timeZone = new luxon.IANAZone('Europe/London'); 19 | const nowDate = luxon.DateTime.utc(2018, 1, 2); 20 | const publicationDate = getPublicationDateForTimeZone(nowDate)(timeZone); 21 | const actualIso = publicationDate.toISO(); 22 | const expectedDateTime = luxon.DateTime.utc(2018, 1, 1, 6); 23 | const expectedIso = expectedDateTime.toISO(); 24 | assert.equal(actualIso, expectedIso); 25 | assert.end(); 26 | }); 27 | 28 | tape('`getPublicationDateForTimeZone` should honour DST', assert => { 29 | const timeZone = new luxon.IANAZone('Europe/London'); 30 | // Midday on the day of DST spring forward 31 | const nowDate = luxon.DateTime.utc(2018, 3, 25, 12); 32 | const publicationDate = getPublicationDateForTimeZone(nowDate)(timeZone); 33 | const actualIso = publicationDate.toISO(); 34 | // Local time is 6pm but UTC time should not account for DST 35 | const expectedDateTime = luxon.DateTime.utc(2018, 3, 25, 5); 36 | const expectedIso = expectedDateTime.toISO(); 37 | assert.equal(actualIso, expectedIso); 38 | assert.end(); 39 | }); 40 | -------------------------------------------------------------------------------- /src/server/timeline-responses-iterable.ts: -------------------------------------------------------------------------------- 1 | import * as array from 'fp-ts/lib/Array'; 2 | import * as option from 'fp-ts/lib/Option'; 3 | import { Task } from 'fp-ts/lib/Task'; 4 | import * as Ix from 'ix'; 5 | import * as TwitterApiTypes from 'twitter-api-ts/target/types'; 6 | 7 | import Option = option.Option; 8 | 9 | export type TwitterTimelineResponsesIterable = AsyncIterable; 10 | export type FetchFn = (maybeMaxId: Option) => Task; 11 | 12 | export const createTimelineResponsesIterable = (fetchFn: FetchFn) => { 13 | // Call the fetch function, providing the max ID. 14 | // Then, yield result. 15 | // Then, yield: 16 | // if there is a last tweet ID and it is unique: recurse 17 | // else: empty 18 | const getTimelineResponsesFromMaxId = async function*( 19 | maybeMaxId: Option, 20 | ): TwitterTimelineResponsesIterable { 21 | console.log('recurse', { maybeMaxId }); 22 | const result = await fetchFn(maybeMaxId).run(); 23 | 24 | yield result; 25 | 26 | const tweets = result.getOrElse([]); 27 | const maybeLastTweet = array.last(tweets); 28 | const checkIsUniqueLastId = (lastId: string) => 29 | maybeMaxId.map(maxId => lastId !== maxId).getOrElse(true); 30 | const maybeNextMaxId = maybeLastTweet 31 | .map(tweet => tweet.id_str) 32 | .filter(checkIsUniqueLastId); 33 | 34 | // If there is a next max ID, we recurse. 35 | yield* maybeNextMaxId 36 | .map(nextMaxId => getTimelineResponsesFromMaxId(option.some(nextMaxId))) 37 | .getOrElseL(Ix.AsyncIterable.empty); 38 | }; 39 | 40 | return getTimelineResponsesFromMaxId(option.none); 41 | }; 42 | -------------------------------------------------------------------------------- /src/server/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es2015", 5 | "strict": true, 6 | "noImplicitReturns": true, 7 | "sourceMap": true, 8 | // This guarantees the output directory structure will always remain the same regardless of 9 | // what gets compiled. (By default, TypeScript will use the closest ancestor directory of 10 | // all imports, which can of course change with changes to the dependency graph.) 11 | "rootDir": "./", 12 | 13 | "lib": [ 14 | "es2015", 15 | "esnext.asynciterable", 16 | "es2016.array.include", 17 | // Required only for node_modules/ix/types/asynciterable/fromevent.d.ts, which uses 18 | // `EventTarget`. 19 | "dom" 20 | ], 21 | "outDir": "../../target-tsc/server", 22 | "plugins": [{ "name": "tslint-language-service" }] 23 | }, 24 | "files": [ 25 | "./index.ts", 26 | "./tests/index.test.ts", 27 | "./tests/publication.test.ts", 28 | "./tests/helpers/twitter-date.test.ts" 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /src/server/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tslint.json" 3 | } 4 | -------------------------------------------------------------------------------- /src/server/types.ts: -------------------------------------------------------------------------------- 1 | import * as either from 'fp-ts/lib/Either'; 2 | import * as option from 'fp-ts/lib/Option'; 3 | import * as taskEither from 'fp-ts/lib/TaskEither'; 4 | import * as t from 'io-ts'; 5 | import * as TwitterApiTypes from 'twitter-api-ts/target/types'; 6 | 7 | import { PublicationWarning } from './publication'; 8 | import { ErrorResponse } from './types/error-response'; 9 | 10 | import Option = option.Option; 11 | import Either = either.Either; 12 | import TaskEither = taskEither.TaskEither; 13 | 14 | // 15 | // Responses 16 | // 17 | 18 | export type PublicationResponse = { 19 | tweets: TwitterApiTypes.TweetT[]; 20 | warning: Option; 21 | }; 22 | 23 | // 24 | // Full responses (either success or error) 25 | // 26 | 27 | export type OrErrorResponse = Either; 28 | export type OrErrorResponseAsync = TaskEitherFromEither>; 29 | 30 | export type FullPublicationResponse = OrErrorResponse; 31 | 32 | // 33 | // Other 34 | // 35 | 36 | export type TaskEitherFromEither> = TaskEither; 37 | 38 | export const UserTwitterCredentials = t.interface({ 39 | oauthAccessToken: t.string, 40 | oauthAccessTokenSecret: t.string, 41 | }); 42 | export type UserTwitterCredentialsT = t.TypeOf; 43 | -------------------------------------------------------------------------------- /src/server/types/error-response.ts: -------------------------------------------------------------------------------- 1 | import * as DecodeTypes from 'decode-ts/target/types'; 2 | import { ValidationError } from 'io-ts'; 3 | import * as TwitterApiTypes from 'twitter-api-ts/target/types'; 4 | import { ofType, unionize } from 'unionize'; 5 | 6 | export const ErrorResponse = unionize({ 7 | Simple: ofType<{ statusCode: number; message: string }>(), 8 | JsonDecode: ofType<{ 9 | statusCode: number; 10 | decodeError: DecodeTypes.JsonDecodeError; 11 | context: string; 12 | }>(), 13 | RequestValidation: ofType<{ 14 | validationErrors: ValidationError[]; 15 | context: string; 16 | }>(), 17 | TwitterApi: ofType<{ 18 | errorResponse: TwitterApiTypes.ErrorResponse; 19 | }>(), 20 | Unauthenticated: ofType<{}>(), 21 | }); 22 | export type ErrorResponse = typeof ErrorResponse._Union; 23 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["tslint-no-unused"], 3 | "linterOptions": { 4 | "exclude": ["**/node_modules/**/*"] 5 | }, 6 | "rules": { 7 | "no-unused": true, 8 | "no-any": true, 9 | "no-unsafe-any": true, 10 | "strict-boolean-expressions": true, 11 | "ordered-imports": [ 12 | true, 13 | { 14 | "grouped-imports": true 15 | } 16 | ], 17 | "no-inferrable-types": [true, "ignore-properties"], 18 | "no-switch-case-fall-through": true, 19 | "arrow-return-shorthand": [true, "multiline"], 20 | "no-use-before-declare": true, 21 | "no-inferred-empty-object-type": true, 22 | "unified-signatures": true, 23 | "no-conditional-assignment": true, 24 | "no-floating-promises": true, 25 | "no-object-literal-type-assertion": true, 26 | "no-shadowed-variable": true, 27 | "no-unbound-method": [true, "ignore-static"], 28 | "no-unused-expression": true, 29 | "no-var-keyword": true, 30 | "no-void-expression": true, 31 | "prefer-object-spread": true, 32 | "radix": true, 33 | "restrict-plus-operands": true, 34 | "triple-equals": true, 35 | "use-default-type-parameter": true, 36 | "use-isnan": true, 37 | "deprecation": true, 38 | "max-file-line-count": [true, 500], 39 | // Rationale: https://github.com/palantir/tslint/issues/1182#issue-151780453 40 | "no-default-export": true, 41 | "prefer-const": true, 42 | "class-name": true, 43 | "match-default-export-name": true, 44 | "no-boolean-literal-compare": true, 45 | "no-consecutive-blank-lines": true, 46 | "no-irregular-whitespace": true, 47 | "no-unnecessary-callback-wrapper": true, 48 | "object-literal-shorthand": true, 49 | "prefer-switch": true, 50 | "prefer-template": true, 51 | "quotemark": [true, "single", "avoid-escape"], 52 | "variable-name": [ 53 | true, 54 | "ban-keywords", 55 | "check-format", 56 | // e.g. for whitelisting unused function parameters 57 | "allow-leading-underscore", 58 | // e.g. for io-ts types 59 | "allow-pascal-case" 60 | ], 61 | "no-import-side-effect": true, 62 | "no-duplicate-imports": true, 63 | "no-implicit-dependencies": [true, "dev"], 64 | "array-type": [true, "array-simple"] 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@types/blue-tape@^0.1.32": 6 | version "0.1.32" 7 | resolved "https://registry.yarnpkg.com/@types/blue-tape/-/blue-tape-0.1.32.tgz#944cc454cd53690a6a03c791ab82cb1ee83a7b2e" 8 | dependencies: 9 | "@types/node" "*" 10 | "@types/tape" "*" 11 | 12 | "@types/body-parser@*", "@types/body-parser@^1.17.0": 13 | version "1.17.0" 14 | resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.17.0.tgz#9f5c9d9bd04bb54be32d5eb9fc0d8c974e6cf58c" 15 | dependencies: 16 | "@types/connect" "*" 17 | "@types/node" "*" 18 | 19 | "@types/connect-redis@^0.0.7": 20 | version "0.0.7" 21 | resolved "https://registry.yarnpkg.com/@types/connect-redis/-/connect-redis-0.0.7.tgz#97948bc727d29e5413d1ebc6be7aa26df86bca7e" 22 | dependencies: 23 | "@types/express" "*" 24 | "@types/express-session" "*" 25 | "@types/redis" "*" 26 | 27 | "@types/connect@*": 28 | version "3.4.32" 29 | resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.32.tgz#aa0e9616b9435ccad02bc52b5b454ffc2c70ba28" 30 | dependencies: 31 | "@types/node" "*" 32 | 33 | "@types/denodeify@^1.2.30": 34 | version "1.2.31" 35 | resolved "https://registry.yarnpkg.com/@types/denodeify/-/denodeify-1.2.31.tgz#9a737b063bf1a8e3a63cc006cbbb0de601ce3584" 36 | 37 | "@types/events@*": 38 | version "1.2.0" 39 | resolved "https://registry.yarnpkg.com/@types/events/-/events-1.2.0.tgz#81a6731ce4df43619e5c8c945383b3e62a89ea86" 40 | 41 | "@types/express-serve-static-core@*": 42 | version "4.16.0" 43 | resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.16.0.tgz#fdfe777594ddc1fe8eb8eccce52e261b496e43e7" 44 | dependencies: 45 | "@types/events" "*" 46 | "@types/node" "*" 47 | "@types/range-parser" "*" 48 | 49 | "@types/express-session@*", "@types/express-session@^1.15.10": 50 | version "1.15.10" 51 | resolved "https://registry.yarnpkg.com/@types/express-session/-/express-session-1.15.10.tgz#d0ae7d3d2fee26512574306333ac272a37430c86" 52 | dependencies: 53 | "@types/events" "*" 54 | "@types/express" "*" 55 | "@types/node" "*" 56 | 57 | "@types/express@*", "@types/express@^4.16.0": 58 | version "4.16.0" 59 | resolved "https://registry.yarnpkg.com/@types/express/-/express-4.16.0.tgz#6d8bc42ccaa6f35cf29a2b7c3333cb47b5a32a19" 60 | dependencies: 61 | "@types/body-parser" "*" 62 | "@types/express-serve-static-core" "*" 63 | "@types/serve-static" "*" 64 | 65 | "@types/lodash@^4.14.111": 66 | version "4.14.116" 67 | resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.116.tgz#5ccf215653e3e8c786a58390751033a9adca0eb9" 68 | 69 | "@types/luxon@^1.2.2": 70 | version "1.2.2" 71 | resolved "https://registry.yarnpkg.com/@types/luxon/-/luxon-1.2.2.tgz#3b402da20bd8ca357123851e062d2142cdbdd9bc" 72 | 73 | "@types/mime@*": 74 | version "2.0.0" 75 | resolved "https://registry.yarnpkg.com/@types/mime/-/mime-2.0.0.tgz#5a7306e367c539b9f6543499de8dd519fac37a8b" 76 | 77 | "@types/node-fetch@^2.1.2": 78 | version "2.1.2" 79 | resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.1.2.tgz#8c5da14d70321e4c4ecd5db668e3f93cf6c7399f" 80 | dependencies: 81 | "@types/node" "*" 82 | 83 | "@types/node@*", "@types/node@^10.5.2", "@types/node@^10.5.8": 84 | version "10.5.8" 85 | resolved "https://registry.yarnpkg.com/@types/node/-/node-10.5.8.tgz#6f14ccecad1d19332f063a6a764f8907801fece0" 86 | 87 | "@types/ramda@^0.25.36": 88 | version "0.25.36" 89 | resolved "https://registry.yarnpkg.com/@types/ramda/-/ramda-0.25.36.tgz#1ddaf3211c7cd7046fcaefe68c713469ccfc9504" 90 | 91 | "@types/range-parser@*": 92 | version "1.2.2" 93 | resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.2.tgz#fa8e1ad1d474688a757140c91de6dace6f4abc8d" 94 | 95 | "@types/redis@*", "@types/redis@^2.8.6": 96 | version "2.8.6" 97 | resolved "https://registry.yarnpkg.com/@types/redis/-/redis-2.8.6.tgz#3674d07a13ad76bccda4c37dc3909e4e95757e7e" 98 | dependencies: 99 | "@types/events" "*" 100 | "@types/node" "*" 101 | 102 | "@types/request-ip@^0.0.33": 103 | version "0.0.33" 104 | resolved "https://registry.yarnpkg.com/@types/request-ip/-/request-ip-0.0.33.tgz#4c4a16f8b27a4ed906470fdac64168bc4de6c295" 105 | dependencies: 106 | "@types/node" "*" 107 | 108 | "@types/serve-static@*": 109 | version "1.13.2" 110 | resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.2.tgz#f5ac4d7a6420a99a6a45af4719f4dcd8cd907a48" 111 | dependencies: 112 | "@types/express-serve-static-core" "*" 113 | "@types/mime" "*" 114 | 115 | "@types/tape@*": 116 | version "4.2.32" 117 | resolved "https://registry.yarnpkg.com/@types/tape/-/tape-4.2.32.tgz#1188330d22c4e822648c344faa070277737982d9" 118 | dependencies: 119 | "@types/node" "*" 120 | 121 | abbrev@1: 122 | version "1.1.1" 123 | resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" 124 | 125 | accepts@~1.3.3, accepts@~1.3.5: 126 | version "1.3.5" 127 | resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.5.tgz#eb777df6011723a3b14e8a72c0805c8e86746bd2" 128 | dependencies: 129 | mime-types "~2.1.18" 130 | negotiator "0.6.1" 131 | 132 | ajv@^4.9.1: 133 | version "4.11.8" 134 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" 135 | dependencies: 136 | co "^4.6.0" 137 | json-stable-stringify "^1.0.1" 138 | 139 | ansi-align@^2.0.0: 140 | version "2.0.0" 141 | resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f" 142 | dependencies: 143 | string-width "^2.0.0" 144 | 145 | ansi-regex@^2.0.0: 146 | version "2.1.1" 147 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 148 | 149 | ansi-regex@^3.0.0: 150 | version "3.0.0" 151 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" 152 | 153 | ansi-styles@^2.2.1: 154 | version "2.2.1" 155 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" 156 | 157 | ansi-styles@^3.2.1: 158 | version "3.2.1" 159 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" 160 | dependencies: 161 | color-convert "^1.9.0" 162 | 163 | anymatch@^2.0.0: 164 | version "2.0.0" 165 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" 166 | dependencies: 167 | micromatch "^3.1.4" 168 | normalize-path "^2.1.1" 169 | 170 | aproba@^1.0.3: 171 | version "1.2.0" 172 | resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" 173 | 174 | are-we-there-yet@~1.1.2: 175 | version "1.1.5" 176 | resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" 177 | dependencies: 178 | delegates "^1.0.0" 179 | readable-stream "^2.0.6" 180 | 181 | argparse@^1.0.7: 182 | version "1.0.10" 183 | resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" 184 | dependencies: 185 | sprintf-js "~1.0.2" 186 | 187 | arr-diff@^4.0.0: 188 | version "4.0.0" 189 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" 190 | 191 | arr-flatten@^1.1.0: 192 | version "1.1.0" 193 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" 194 | 195 | arr-union@^3.1.0: 196 | version "3.1.0" 197 | resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" 198 | 199 | array-flatten@1.1.1: 200 | version "1.1.1" 201 | resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" 202 | 203 | array-unique@^0.3.2: 204 | version "0.3.2" 205 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" 206 | 207 | asn1@~0.2.3: 208 | version "0.2.4" 209 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" 210 | dependencies: 211 | safer-buffer "~2.1.0" 212 | 213 | assert-plus@1.0.0, assert-plus@^1.0.0: 214 | version "1.0.0" 215 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 216 | 217 | assert-plus@^0.2.0: 218 | version "0.2.0" 219 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" 220 | 221 | assign-symbols@^1.0.0: 222 | version "1.0.0" 223 | resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" 224 | 225 | async-each@^1.0.0: 226 | version "1.0.1" 227 | resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" 228 | 229 | asynckit@^0.4.0: 230 | version "0.4.0" 231 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 232 | 233 | atob@^2.1.1: 234 | version "2.1.1" 235 | resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.1.tgz#ae2d5a729477f289d60dd7f96a6314a22dd6c22a" 236 | 237 | aws-sign2@~0.6.0: 238 | version "0.6.0" 239 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" 240 | 241 | aws4@^1.2.1: 242 | version "1.8.0" 243 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" 244 | 245 | babel-code-frame@^6.22.0: 246 | version "6.26.0" 247 | resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" 248 | dependencies: 249 | chalk "^1.1.3" 250 | esutils "^2.0.2" 251 | js-tokens "^3.0.2" 252 | 253 | balanced-match@^1.0.0: 254 | version "1.0.0" 255 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" 256 | 257 | base@^0.11.1: 258 | version "0.11.2" 259 | resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" 260 | dependencies: 261 | cache-base "^1.0.1" 262 | class-utils "^0.3.5" 263 | component-emitter "^1.2.1" 264 | define-property "^1.0.0" 265 | isobject "^3.0.1" 266 | mixin-deep "^1.2.0" 267 | pascalcase "^0.1.1" 268 | 269 | bcrypt-pbkdf@^1.0.0: 270 | version "1.0.2" 271 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" 272 | dependencies: 273 | tweetnacl "^0.14.3" 274 | 275 | binary-extensions@^1.0.0: 276 | version "1.11.0" 277 | resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" 278 | 279 | blue-tape@^1.0.0: 280 | version "1.0.0" 281 | resolved "https://registry.yarnpkg.com/blue-tape/-/blue-tape-1.0.0.tgz#7581d04c07395c95c426b2ed6d1edb454a76b92b" 282 | dependencies: 283 | tape ">=2.0.0 <5.0.0" 284 | 285 | body-parser@1.18.2: 286 | version "1.18.2" 287 | resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.18.2.tgz#87678a19d84b47d859b83199bd59bce222b10454" 288 | dependencies: 289 | bytes "3.0.0" 290 | content-type "~1.0.4" 291 | debug "2.6.9" 292 | depd "~1.1.1" 293 | http-errors "~1.6.2" 294 | iconv-lite "0.4.19" 295 | on-finished "~2.3.0" 296 | qs "6.5.1" 297 | raw-body "2.3.2" 298 | type-is "~1.6.15" 299 | 300 | body-parser@^1.17.2, body-parser@^1.18.3: 301 | version "1.18.3" 302 | resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.18.3.tgz#5b292198ffdd553b3a0f20ded0592b956955c8b4" 303 | dependencies: 304 | bytes "3.0.0" 305 | content-type "~1.0.4" 306 | debug "2.6.9" 307 | depd "~1.1.2" 308 | http-errors "~1.6.3" 309 | iconv-lite "0.4.23" 310 | on-finished "~2.3.0" 311 | qs "6.5.2" 312 | raw-body "2.3.3" 313 | type-is "~1.6.16" 314 | 315 | boom@2.x.x: 316 | version "2.10.1" 317 | resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" 318 | dependencies: 319 | hoek "2.x.x" 320 | 321 | boxen@^1.2.1: 322 | version "1.3.0" 323 | resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.3.0.tgz#55c6c39a8ba58d9c61ad22cd877532deb665a20b" 324 | dependencies: 325 | ansi-align "^2.0.0" 326 | camelcase "^4.0.0" 327 | chalk "^2.0.1" 328 | cli-boxes "^1.0.0" 329 | string-width "^2.0.0" 330 | term-size "^1.2.0" 331 | widest-line "^2.0.0" 332 | 333 | brace-expansion@^1.1.7: 334 | version "1.1.11" 335 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" 336 | dependencies: 337 | balanced-match "^1.0.0" 338 | concat-map "0.0.1" 339 | 340 | braces@^2.3.0, braces@^2.3.1: 341 | version "2.3.2" 342 | resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" 343 | dependencies: 344 | arr-flatten "^1.1.0" 345 | array-unique "^0.3.2" 346 | extend-shallow "^2.0.1" 347 | fill-range "^4.0.0" 348 | isobject "^3.0.1" 349 | repeat-element "^1.1.2" 350 | snapdragon "^0.8.1" 351 | snapdragon-node "^2.0.1" 352 | split-string "^3.0.2" 353 | to-regex "^3.0.1" 354 | 355 | buffer-from@^1.0.0: 356 | version "1.1.1" 357 | resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" 358 | 359 | builtin-modules@^1.0.0, builtin-modules@^1.1.1: 360 | version "1.1.1" 361 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 362 | 363 | bytes@3.0.0: 364 | version "3.0.0" 365 | resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" 366 | 367 | cache-base@^1.0.1: 368 | version "1.0.1" 369 | resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" 370 | dependencies: 371 | collection-visit "^1.0.0" 372 | component-emitter "^1.2.1" 373 | get-value "^2.0.6" 374 | has-value "^1.0.0" 375 | isobject "^3.0.1" 376 | set-value "^2.0.0" 377 | to-object-path "^0.3.0" 378 | union-value "^1.0.0" 379 | unset-value "^1.0.0" 380 | 381 | caller-id@^0.1.0: 382 | version "0.1.0" 383 | resolved "https://registry.yarnpkg.com/caller-id/-/caller-id-0.1.0.tgz#59bdac0893d12c3871408279231f97458364f07b" 384 | dependencies: 385 | stack-trace "~0.0.7" 386 | 387 | camelcase@^4.0.0: 388 | version "4.1.0" 389 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" 390 | 391 | capture-stack-trace@^1.0.0: 392 | version "1.0.0" 393 | resolved "https://registry.yarnpkg.com/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz#4a6fa07399c26bba47f0b2496b4d0fb408c5550d" 394 | 395 | caseless@~0.12.0: 396 | version "0.12.0" 397 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" 398 | 399 | chalk@^1.1.3: 400 | version "1.1.3" 401 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" 402 | dependencies: 403 | ansi-styles "^2.2.1" 404 | escape-string-regexp "^1.0.2" 405 | has-ansi "^2.0.0" 406 | strip-ansi "^3.0.0" 407 | supports-color "^2.0.0" 408 | 409 | chalk@^2.0.1, chalk@^2.3.0, chalk@^2.4.1: 410 | version "2.4.1" 411 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" 412 | dependencies: 413 | ansi-styles "^3.2.1" 414 | escape-string-regexp "^1.0.5" 415 | supports-color "^5.3.0" 416 | 417 | chokidar@^2.0.2: 418 | version "2.0.4" 419 | resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.0.4.tgz#356ff4e2b0e8e43e322d18a372460bbcf3accd26" 420 | dependencies: 421 | anymatch "^2.0.0" 422 | async-each "^1.0.0" 423 | braces "^2.3.0" 424 | glob-parent "^3.1.0" 425 | inherits "^2.0.1" 426 | is-binary-path "^1.0.0" 427 | is-glob "^4.0.0" 428 | lodash.debounce "^4.0.8" 429 | normalize-path "^2.1.1" 430 | path-is-absolute "^1.0.0" 431 | readdirp "^2.0.0" 432 | upath "^1.0.5" 433 | optionalDependencies: 434 | fsevents "^1.2.2" 435 | 436 | chownr@^1.0.1: 437 | version "1.0.1" 438 | resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" 439 | 440 | ci-info@^1.0.0: 441 | version "1.1.3" 442 | resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.1.3.tgz#710193264bb05c77b8c90d02f5aaf22216a667b2" 443 | 444 | class-utils@^0.3.5: 445 | version "0.3.6" 446 | resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" 447 | dependencies: 448 | arr-union "^3.1.0" 449 | define-property "^0.2.5" 450 | isobject "^3.0.0" 451 | static-extend "^0.1.1" 452 | 453 | cli-boxes@^1.0.0: 454 | version "1.0.0" 455 | resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-1.0.0.tgz#4fa917c3e59c94a004cd61f8ee509da651687143" 456 | 457 | co@^4.6.0: 458 | version "4.6.0" 459 | resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" 460 | 461 | code-point-at@^1.0.0: 462 | version "1.1.0" 463 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 464 | 465 | collection-visit@^1.0.0: 466 | version "1.0.0" 467 | resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" 468 | dependencies: 469 | map-visit "^1.0.0" 470 | object-visit "^1.0.0" 471 | 472 | color-convert@^1.9.0: 473 | version "1.9.2" 474 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.2.tgz#49881b8fba67df12a96bdf3f56c0aab9e7913147" 475 | dependencies: 476 | color-name "1.1.1" 477 | 478 | color-name@1.1.1: 479 | version "1.1.1" 480 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.1.tgz#4b1415304cf50028ea81643643bd82ea05803689" 481 | 482 | combined-stream@^1.0.5, combined-stream@~1.0.5: 483 | version "1.0.6" 484 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" 485 | dependencies: 486 | delayed-stream "~1.0.0" 487 | 488 | commander@2.6.0: 489 | version "2.6.0" 490 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.6.0.tgz#9df7e52fb2a0cb0fb89058ee80c3104225f37e1d" 491 | 492 | commander@^2.12.1: 493 | version "2.17.1" 494 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" 495 | 496 | component-emitter@^1.2.1: 497 | version "1.2.1" 498 | resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" 499 | 500 | concat-map@0.0.1: 501 | version "0.0.1" 502 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 503 | 504 | concurrently@^3.6.1: 505 | version "3.6.1" 506 | resolved "https://registry.yarnpkg.com/concurrently/-/concurrently-3.6.1.tgz#2f95baec5c4051294dfbb55b57a3b98a3e2b45ec" 507 | dependencies: 508 | chalk "^2.4.1" 509 | commander "2.6.0" 510 | date-fns "^1.23.0" 511 | lodash "^4.5.1" 512 | read-pkg "^3.0.0" 513 | rx "2.3.24" 514 | spawn-command "^0.0.2-1" 515 | supports-color "^3.2.3" 516 | tree-kill "^1.1.0" 517 | 518 | configstore@^3.0.0: 519 | version "3.1.2" 520 | resolved "https://registry.yarnpkg.com/configstore/-/configstore-3.1.2.tgz#c6f25defaeef26df12dd33414b001fe81a543f8f" 521 | dependencies: 522 | dot-prop "^4.1.0" 523 | graceful-fs "^4.1.2" 524 | make-dir "^1.0.0" 525 | unique-string "^1.0.0" 526 | write-file-atomic "^2.0.0" 527 | xdg-basedir "^3.0.0" 528 | 529 | connect-redis@^3.3.0: 530 | version "3.3.3" 531 | resolved "https://registry.yarnpkg.com/connect-redis/-/connect-redis-3.3.3.tgz#0fb8f370192f62da75ec7a9507807599fbe15b37" 532 | dependencies: 533 | debug "^3.1.0" 534 | redis "^2.1.0" 535 | 536 | console-control-strings@^1.0.0, console-control-strings@~1.1.0: 537 | version "1.1.0" 538 | resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" 539 | 540 | content-disposition@0.5.2: 541 | version "0.5.2" 542 | resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4" 543 | 544 | content-type@~1.0.2, content-type@~1.0.4: 545 | version "1.0.4" 546 | resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" 547 | 548 | cookie-signature@1.0.6: 549 | version "1.0.6" 550 | resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" 551 | 552 | cookie@0.3.1: 553 | version "0.3.1" 554 | resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb" 555 | 556 | copy-descriptor@^0.1.0: 557 | version "0.1.1" 558 | resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" 559 | 560 | core-util-is@1.0.2, core-util-is@~1.0.0: 561 | version "1.0.2" 562 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 563 | 564 | crc@3.4.4: 565 | version "3.4.4" 566 | resolved "https://registry.yarnpkg.com/crc/-/crc-3.4.4.tgz#9da1e980e3bd44fc5c93bf5ab3da3378d85e466b" 567 | 568 | create-error-class@^3.0.0: 569 | version "3.0.2" 570 | resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6" 571 | dependencies: 572 | capture-stack-trace "^1.0.0" 573 | 574 | cross-spawn@^5.0.1: 575 | version "5.1.0" 576 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" 577 | dependencies: 578 | lru-cache "^4.0.1" 579 | shebang-command "^1.2.0" 580 | which "^1.2.9" 581 | 582 | cryptiles@2.x.x: 583 | version "2.0.5" 584 | resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" 585 | dependencies: 586 | boom "2.x.x" 587 | 588 | crypto-random-string@^1.0.0: 589 | version "1.0.0" 590 | resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" 591 | 592 | dashdash@^1.12.0: 593 | version "1.14.1" 594 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 595 | dependencies: 596 | assert-plus "^1.0.0" 597 | 598 | date-fns@^1.23.0: 599 | version "1.29.0" 600 | resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.29.0.tgz#12e609cdcb935127311d04d33334e2960a2a54e6" 601 | 602 | debug@2.6.7: 603 | version "2.6.7" 604 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.7.tgz#92bad1f6d05bbb6bba22cca88bcd0ec894c2861e" 605 | dependencies: 606 | ms "2.0.0" 607 | 608 | debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3: 609 | version "2.6.9" 610 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" 611 | dependencies: 612 | ms "2.0.0" 613 | 614 | debug@^3.1.0: 615 | version "3.1.0" 616 | resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" 617 | dependencies: 618 | ms "2.0.0" 619 | 620 | decode-ts@^0.0.13: 621 | version "0.0.13" 622 | resolved "https://registry.yarnpkg.com/decode-ts/-/decode-ts-0.0.13.tgz#d63f2f76054d05529f7aa4c8823f227753289a3b" 623 | dependencies: 624 | fp-ts "^1.0.1" 625 | io-ts "^1.0.2" 626 | io-ts-reporters "^0.0.21" 627 | unionize "^1.0.0" 628 | 629 | decode-uri-component@^0.2.0: 630 | version "0.2.0" 631 | resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" 632 | 633 | deep-equal@~1.0.1: 634 | version "1.0.1" 635 | resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5" 636 | 637 | deep-extend@^0.6.0: 638 | version "0.6.0" 639 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" 640 | 641 | define-properties@^1.1.2: 642 | version "1.1.2" 643 | resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94" 644 | dependencies: 645 | foreach "^2.0.5" 646 | object-keys "^1.0.8" 647 | 648 | define-property@^0.2.5: 649 | version "0.2.5" 650 | resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" 651 | dependencies: 652 | is-descriptor "^0.1.0" 653 | 654 | define-property@^1.0.0: 655 | version "1.0.0" 656 | resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" 657 | dependencies: 658 | is-descriptor "^1.0.0" 659 | 660 | define-property@^2.0.2: 661 | version "2.0.2" 662 | resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" 663 | dependencies: 664 | is-descriptor "^1.0.2" 665 | isobject "^3.0.1" 666 | 667 | defined@~1.0.0: 668 | version "1.0.0" 669 | resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" 670 | 671 | delayed-stream@~1.0.0: 672 | version "1.0.0" 673 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 674 | 675 | delegates@^1.0.0: 676 | version "1.0.0" 677 | resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" 678 | 679 | denodeify@^1.2.1: 680 | version "1.2.1" 681 | resolved "https://registry.yarnpkg.com/denodeify/-/denodeify-1.2.1.tgz#3a36287f5034e699e7577901052c2e6c94251631" 682 | 683 | depd@1.1.1: 684 | version "1.1.1" 685 | resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359" 686 | 687 | depd@~1.1.0, depd@~1.1.1, depd@~1.1.2: 688 | version "1.1.2" 689 | resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" 690 | 691 | destroy@~1.0.4: 692 | version "1.0.4" 693 | resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" 694 | 695 | detect-libc@^1.0.2: 696 | version "1.0.3" 697 | resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" 698 | 699 | diff@^3.2.0: 700 | version "3.5.0" 701 | resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" 702 | 703 | dot-prop@^4.1.0: 704 | version "4.2.0" 705 | resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57" 706 | dependencies: 707 | is-obj "^1.0.0" 708 | 709 | double-ended-queue@^2.1.0-0: 710 | version "2.1.0-0" 711 | resolved "https://registry.yarnpkg.com/double-ended-queue/-/double-ended-queue-2.1.0-0.tgz#103d3527fd31528f40188130c841efdd78264e5c" 712 | 713 | duplexer3@^0.1.4: 714 | version "0.1.4" 715 | resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" 716 | 717 | duplexer@~0.1.1: 718 | version "0.1.1" 719 | resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" 720 | 721 | ecc-jsbn@~0.1.1: 722 | version "0.1.2" 723 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" 724 | dependencies: 725 | jsbn "~0.1.0" 726 | safer-buffer "^2.1.0" 727 | 728 | ee-first@1.1.1: 729 | version "1.1.1" 730 | resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" 731 | 732 | encodeurl@~1.0.1, encodeurl@~1.0.2: 733 | version "1.0.2" 734 | resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" 735 | 736 | encoding@^0.1.11: 737 | version "0.1.12" 738 | resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" 739 | dependencies: 740 | iconv-lite "~0.4.13" 741 | 742 | error-ex@^1.3.1: 743 | version "1.3.2" 744 | resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" 745 | dependencies: 746 | is-arrayish "^0.2.1" 747 | 748 | es-abstract@^1.5.0: 749 | version "1.12.0" 750 | resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.12.0.tgz#9dbbdd27c6856f0001421ca18782d786bf8a6165" 751 | dependencies: 752 | es-to-primitive "^1.1.1" 753 | function-bind "^1.1.1" 754 | has "^1.0.1" 755 | is-callable "^1.1.3" 756 | is-regex "^1.0.4" 757 | 758 | es-to-primitive@^1.1.1: 759 | version "1.1.1" 760 | resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d" 761 | dependencies: 762 | is-callable "^1.1.1" 763 | is-date-object "^1.0.1" 764 | is-symbol "^1.0.1" 765 | 766 | escape-html@~1.0.3: 767 | version "1.0.3" 768 | resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" 769 | 770 | escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: 771 | version "1.0.5" 772 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 773 | 774 | esprima@^4.0.0: 775 | version "4.0.1" 776 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" 777 | 778 | esutils@^2.0.2: 779 | version "2.0.2" 780 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 781 | 782 | etag@~1.8.0, etag@~1.8.1: 783 | version "1.8.1" 784 | resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" 785 | 786 | event-stream@~3.3.0: 787 | version "3.3.4" 788 | resolved "http://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz#4ab4c9a0f5a54db9338b4c34d86bfce8f4b35571" 789 | dependencies: 790 | duplexer "~0.1.1" 791 | from "~0" 792 | map-stream "~0.1.0" 793 | pause-stream "0.0.11" 794 | split "0.3" 795 | stream-combiner "~0.0.4" 796 | through "~2.3.1" 797 | 798 | execa@^0.7.0: 799 | version "0.7.0" 800 | resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" 801 | dependencies: 802 | cross-spawn "^5.0.1" 803 | get-stream "^3.0.0" 804 | is-stream "^1.1.0" 805 | npm-run-path "^2.0.0" 806 | p-finally "^1.0.0" 807 | signal-exit "^3.0.0" 808 | strip-eof "^1.0.0" 809 | 810 | expand-brackets@^2.1.4: 811 | version "2.1.4" 812 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" 813 | dependencies: 814 | debug "^2.3.3" 815 | define-property "^0.2.5" 816 | extend-shallow "^2.0.1" 817 | posix-character-classes "^0.1.0" 818 | regex-not "^1.0.0" 819 | snapdragon "^0.8.1" 820 | to-regex "^3.0.1" 821 | 822 | express-fp@^0.0.13: 823 | version "0.0.13" 824 | resolved "https://registry.yarnpkg.com/express-fp/-/express-fp-0.0.13.tgz#137379e96ac6d1656b2e0224dd9292b64cc2777a" 825 | dependencies: 826 | body-parser "^1.17.2" 827 | express "^4.15.3" 828 | express-result-types "^0.0.4" 829 | express-session "^1.15.4" 830 | fp-ts "^1.7.1" 831 | io-ts "^1.3.0" 832 | io-ts-reporters "^0.0.21" 833 | 834 | express-result-types@^0.0.4: 835 | version "0.0.4" 836 | resolved "https://registry.yarnpkg.com/express-result-types/-/express-result-types-0.0.4.tgz#ed174a4e70f5bdac1d7b6da3662cf6cbc79b29d3" 837 | dependencies: 838 | express "4.15.3" 839 | express-session "1.15.3" 840 | http-status-codes "1.1.6" 841 | 842 | express-session@1.15.3: 843 | version "1.15.3" 844 | resolved "https://registry.yarnpkg.com/express-session/-/express-session-1.15.3.tgz#db545f0435a7b1b228ae02da8197f65141735c67" 845 | dependencies: 846 | cookie "0.3.1" 847 | cookie-signature "1.0.6" 848 | crc "3.4.4" 849 | debug "2.6.7" 850 | depd "~1.1.0" 851 | on-headers "~1.0.1" 852 | parseurl "~1.3.1" 853 | uid-safe "~2.1.4" 854 | utils-merge "1.0.0" 855 | 856 | express-session@^1.15.2, express-session@^1.15.4: 857 | version "1.15.6" 858 | resolved "https://registry.yarnpkg.com/express-session/-/express-session-1.15.6.tgz#47b4160c88f42ab70fe8a508e31cbff76757ab0a" 859 | dependencies: 860 | cookie "0.3.1" 861 | cookie-signature "1.0.6" 862 | crc "3.4.4" 863 | debug "2.6.9" 864 | depd "~1.1.1" 865 | on-headers "~1.0.1" 866 | parseurl "~1.3.2" 867 | uid-safe "~2.1.5" 868 | utils-merge "1.0.1" 869 | 870 | express@4.15.3: 871 | version "4.15.3" 872 | resolved "https://registry.yarnpkg.com/express/-/express-4.15.3.tgz#bab65d0f03aa80c358408972fc700f916944b662" 873 | dependencies: 874 | accepts "~1.3.3" 875 | array-flatten "1.1.1" 876 | content-disposition "0.5.2" 877 | content-type "~1.0.2" 878 | cookie "0.3.1" 879 | cookie-signature "1.0.6" 880 | debug "2.6.7" 881 | depd "~1.1.0" 882 | encodeurl "~1.0.1" 883 | escape-html "~1.0.3" 884 | etag "~1.8.0" 885 | finalhandler "~1.0.3" 886 | fresh "0.5.0" 887 | merge-descriptors "1.0.1" 888 | methods "~1.1.2" 889 | on-finished "~2.3.0" 890 | parseurl "~1.3.1" 891 | path-to-regexp "0.1.7" 892 | proxy-addr "~1.1.4" 893 | qs "6.4.0" 894 | range-parser "~1.2.0" 895 | send "0.15.3" 896 | serve-static "1.12.3" 897 | setprototypeof "1.0.3" 898 | statuses "~1.3.1" 899 | type-is "~1.6.15" 900 | utils-merge "1.0.0" 901 | vary "~1.1.1" 902 | 903 | express@^4.15.3, express@^4.16.3: 904 | version "4.16.3" 905 | resolved "https://registry.yarnpkg.com/express/-/express-4.16.3.tgz#6af8a502350db3246ecc4becf6b5a34d22f7ed53" 906 | dependencies: 907 | accepts "~1.3.5" 908 | array-flatten "1.1.1" 909 | body-parser "1.18.2" 910 | content-disposition "0.5.2" 911 | content-type "~1.0.4" 912 | cookie "0.3.1" 913 | cookie-signature "1.0.6" 914 | debug "2.6.9" 915 | depd "~1.1.2" 916 | encodeurl "~1.0.2" 917 | escape-html "~1.0.3" 918 | etag "~1.8.1" 919 | finalhandler "1.1.1" 920 | fresh "0.5.2" 921 | merge-descriptors "1.0.1" 922 | methods "~1.1.2" 923 | on-finished "~2.3.0" 924 | parseurl "~1.3.2" 925 | path-to-regexp "0.1.7" 926 | proxy-addr "~2.0.3" 927 | qs "6.5.1" 928 | range-parser "~1.2.0" 929 | safe-buffer "5.1.1" 930 | send "0.16.2" 931 | serve-static "1.13.2" 932 | setprototypeof "1.1.0" 933 | statuses "~1.4.0" 934 | type-is "~1.6.16" 935 | utils-merge "1.0.1" 936 | vary "~1.1.2" 937 | 938 | extend-shallow@^2.0.1: 939 | version "2.0.1" 940 | resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" 941 | dependencies: 942 | is-extendable "^0.1.0" 943 | 944 | extend-shallow@^3.0.0, extend-shallow@^3.0.2: 945 | version "3.0.2" 946 | resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" 947 | dependencies: 948 | assign-symbols "^1.0.0" 949 | is-extendable "^1.0.1" 950 | 951 | extend@~3.0.0: 952 | version "3.0.2" 953 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" 954 | 955 | extglob@^2.0.4: 956 | version "2.0.4" 957 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" 958 | dependencies: 959 | array-unique "^0.3.2" 960 | define-property "^1.0.0" 961 | expand-brackets "^2.1.4" 962 | extend-shallow "^2.0.1" 963 | fragment-cache "^0.2.1" 964 | regex-not "^1.0.0" 965 | snapdragon "^0.8.1" 966 | to-regex "^3.0.1" 967 | 968 | extsprintf@1.3.0, extsprintf@^1.2.0: 969 | version "1.3.0" 970 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" 971 | 972 | fill-range@^4.0.0: 973 | version "4.0.0" 974 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" 975 | dependencies: 976 | extend-shallow "^2.0.1" 977 | is-number "^3.0.0" 978 | repeat-string "^1.6.1" 979 | to-regex-range "^2.1.0" 980 | 981 | finalhandler@1.1.1: 982 | version "1.1.1" 983 | resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.1.tgz#eebf4ed840079c83f4249038c9d703008301b105" 984 | dependencies: 985 | debug "2.6.9" 986 | encodeurl "~1.0.2" 987 | escape-html "~1.0.3" 988 | on-finished "~2.3.0" 989 | parseurl "~1.3.2" 990 | statuses "~1.4.0" 991 | unpipe "~1.0.0" 992 | 993 | finalhandler@~1.0.3: 994 | version "1.0.6" 995 | resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.0.6.tgz#007aea33d1a4d3e42017f624848ad58d212f814f" 996 | dependencies: 997 | debug "2.6.9" 998 | encodeurl "~1.0.1" 999 | escape-html "~1.0.3" 1000 | on-finished "~2.3.0" 1001 | parseurl "~1.3.2" 1002 | statuses "~1.3.1" 1003 | unpipe "~1.0.0" 1004 | 1005 | for-each@~0.3.3: 1006 | version "0.3.3" 1007 | resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" 1008 | dependencies: 1009 | is-callable "^1.1.3" 1010 | 1011 | for-in@^1.0.2: 1012 | version "1.0.2" 1013 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" 1014 | 1015 | foreach@^2.0.5: 1016 | version "2.0.5" 1017 | resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99" 1018 | 1019 | forever-agent@~0.6.1: 1020 | version "0.6.1" 1021 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 1022 | 1023 | form-data@~2.1.1: 1024 | version "2.1.4" 1025 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" 1026 | dependencies: 1027 | asynckit "^0.4.0" 1028 | combined-stream "^1.0.5" 1029 | mime-types "^2.1.12" 1030 | 1031 | forwarded@~0.1.0, forwarded@~0.1.2: 1032 | version "0.1.2" 1033 | resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" 1034 | 1035 | fp-ts@^1.0.0, fp-ts@^1.0.1, fp-ts@^1.7.1: 1036 | version "1.7.1" 1037 | resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-1.7.1.tgz#b1ff2a39f345a7aa31bb53f26edab1ac3fc70b75" 1038 | 1039 | fragment-cache@^0.2.1: 1040 | version "0.2.1" 1041 | resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" 1042 | dependencies: 1043 | map-cache "^0.2.2" 1044 | 1045 | fresh@0.5.0: 1046 | version "0.5.0" 1047 | resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.0.tgz#f474ca5e6a9246d6fd8e0953cfa9b9c805afa78e" 1048 | 1049 | fresh@0.5.2: 1050 | version "0.5.2" 1051 | resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" 1052 | 1053 | from@~0: 1054 | version "0.1.7" 1055 | resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe" 1056 | 1057 | fs-minipass@^1.2.5: 1058 | version "1.2.5" 1059 | resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d" 1060 | dependencies: 1061 | minipass "^2.2.1" 1062 | 1063 | fs.realpath@^1.0.0: 1064 | version "1.0.0" 1065 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 1066 | 1067 | fsevents@^1.2.2: 1068 | version "1.2.4" 1069 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.4.tgz#f41dcb1af2582af3692da36fc55cbd8e1041c426" 1070 | dependencies: 1071 | nan "^2.9.2" 1072 | node-pre-gyp "^0.10.0" 1073 | 1074 | full-icu@^1.2.1: 1075 | version "1.2.1" 1076 | resolved "https://registry.yarnpkg.com/full-icu/-/full-icu-1.2.1.tgz#28d7f1caafb14cac262364ca584fe7f2044a4ab2" 1077 | 1078 | function-bind@^1.0.2, function-bind@^1.1.1, function-bind@~1.1.1: 1079 | version "1.1.1" 1080 | resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" 1081 | 1082 | gauge@~2.7.3: 1083 | version "2.7.4" 1084 | resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" 1085 | dependencies: 1086 | aproba "^1.0.3" 1087 | console-control-strings "^1.0.0" 1088 | has-unicode "^2.0.0" 1089 | object-assign "^4.1.0" 1090 | signal-exit "^3.0.0" 1091 | string-width "^1.0.1" 1092 | strip-ansi "^3.0.1" 1093 | wide-align "^1.1.0" 1094 | 1095 | get-stream@^3.0.0: 1096 | version "3.0.0" 1097 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" 1098 | 1099 | get-value@^2.0.3, get-value@^2.0.6: 1100 | version "2.0.6" 1101 | resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" 1102 | 1103 | getpass@^0.1.1: 1104 | version "0.1.7" 1105 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" 1106 | dependencies: 1107 | assert-plus "^1.0.0" 1108 | 1109 | glob-parent@^3.1.0: 1110 | version "3.1.0" 1111 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" 1112 | dependencies: 1113 | is-glob "^3.1.0" 1114 | path-dirname "^1.0.0" 1115 | 1116 | glob@^7.0.5, glob@^7.1.1, glob@~7.1.2: 1117 | version "7.1.2" 1118 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" 1119 | dependencies: 1120 | fs.realpath "^1.0.0" 1121 | inflight "^1.0.4" 1122 | inherits "2" 1123 | minimatch "^3.0.4" 1124 | once "^1.3.0" 1125 | path-is-absolute "^1.0.0" 1126 | 1127 | global-dirs@^0.1.0: 1128 | version "0.1.1" 1129 | resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445" 1130 | dependencies: 1131 | ini "^1.3.4" 1132 | 1133 | got@^6.7.1: 1134 | version "6.7.1" 1135 | resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0" 1136 | dependencies: 1137 | create-error-class "^3.0.0" 1138 | duplexer3 "^0.1.4" 1139 | get-stream "^3.0.0" 1140 | is-redirect "^1.0.0" 1141 | is-retry-allowed "^1.0.0" 1142 | is-stream "^1.0.0" 1143 | lowercase-keys "^1.0.0" 1144 | safe-buffer "^5.0.1" 1145 | timed-out "^4.0.0" 1146 | unzip-response "^2.0.1" 1147 | url-parse-lax "^1.0.0" 1148 | 1149 | graceful-fs@^4.1.11, graceful-fs@^4.1.2: 1150 | version "4.1.11" 1151 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" 1152 | 1153 | har-schema@^1.0.5: 1154 | version "1.0.5" 1155 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" 1156 | 1157 | har-validator@~4.2.1: 1158 | version "4.2.1" 1159 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" 1160 | dependencies: 1161 | ajv "^4.9.1" 1162 | har-schema "^1.0.5" 1163 | 1164 | has-ansi@^2.0.0: 1165 | version "2.0.0" 1166 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" 1167 | dependencies: 1168 | ansi-regex "^2.0.0" 1169 | 1170 | has-flag@^1.0.0: 1171 | version "1.0.0" 1172 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" 1173 | 1174 | has-flag@^3.0.0: 1175 | version "3.0.0" 1176 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" 1177 | 1178 | has-unicode@^2.0.0: 1179 | version "2.0.1" 1180 | resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" 1181 | 1182 | has-value@^0.3.1: 1183 | version "0.3.1" 1184 | resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" 1185 | dependencies: 1186 | get-value "^2.0.3" 1187 | has-values "^0.1.4" 1188 | isobject "^2.0.0" 1189 | 1190 | has-value@^1.0.0: 1191 | version "1.0.0" 1192 | resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" 1193 | dependencies: 1194 | get-value "^2.0.6" 1195 | has-values "^1.0.0" 1196 | isobject "^3.0.0" 1197 | 1198 | has-values@^0.1.4: 1199 | version "0.1.4" 1200 | resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" 1201 | 1202 | has-values@^1.0.0: 1203 | version "1.0.0" 1204 | resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" 1205 | dependencies: 1206 | is-number "^3.0.0" 1207 | kind-of "^4.0.0" 1208 | 1209 | has@^1.0.1, has@~1.0.3: 1210 | version "1.0.3" 1211 | resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" 1212 | dependencies: 1213 | function-bind "^1.1.1" 1214 | 1215 | hawk@~3.1.3: 1216 | version "3.1.3" 1217 | resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" 1218 | dependencies: 1219 | boom "2.x.x" 1220 | cryptiles "2.x.x" 1221 | hoek "2.x.x" 1222 | sntp "1.x.x" 1223 | 1224 | hoek@2.x.x: 1225 | version "2.16.3" 1226 | resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" 1227 | 1228 | hosted-git-info@^2.1.4: 1229 | version "2.7.1" 1230 | resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047" 1231 | 1232 | http-errors@1.6.2: 1233 | version "1.6.2" 1234 | resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.2.tgz#0a002cc85707192a7e7946ceedc11155f60ec736" 1235 | dependencies: 1236 | depd "1.1.1" 1237 | inherits "2.0.3" 1238 | setprototypeof "1.0.3" 1239 | statuses ">= 1.3.1 < 2" 1240 | 1241 | http-errors@1.6.3, http-errors@~1.6.1, http-errors@~1.6.2, http-errors@~1.6.3: 1242 | version "1.6.3" 1243 | resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" 1244 | dependencies: 1245 | depd "~1.1.2" 1246 | inherits "2.0.3" 1247 | setprototypeof "1.1.0" 1248 | statuses ">= 1.4.0 < 2" 1249 | 1250 | http-signature@~1.1.0: 1251 | version "1.1.1" 1252 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" 1253 | dependencies: 1254 | assert-plus "^0.2.0" 1255 | jsprim "^1.2.2" 1256 | sshpk "^1.7.0" 1257 | 1258 | http-status-codes@1.1.6: 1259 | version "1.1.6" 1260 | resolved "https://registry.yarnpkg.com/http-status-codes/-/http-status-codes-1.1.6.tgz#7a75d2b94d35a93183f39a0c8a6eb8963c20e50d" 1261 | 1262 | http-status-codes@^1.3.0: 1263 | version "1.3.0" 1264 | resolved "https://registry.yarnpkg.com/http-status-codes/-/http-status-codes-1.3.0.tgz#9cd0e71391773d0671b489d41cbc5094aa4163b6" 1265 | 1266 | iconv-lite@0.4.19: 1267 | version "0.4.19" 1268 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" 1269 | 1270 | iconv-lite@0.4.23, iconv-lite@^0.4.4, iconv-lite@~0.4.13: 1271 | version "0.4.23" 1272 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.23.tgz#297871f63be507adcfbfca715d0cd0eed84e9a63" 1273 | dependencies: 1274 | safer-buffer ">= 2.1.2 < 3" 1275 | 1276 | ignore-by-default@^1.0.1: 1277 | version "1.0.1" 1278 | resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09" 1279 | 1280 | ignore-walk@^3.0.1: 1281 | version "3.0.1" 1282 | resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" 1283 | dependencies: 1284 | minimatch "^3.0.4" 1285 | 1286 | import-lazy@^2.1.0: 1287 | version "2.1.0" 1288 | resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" 1289 | 1290 | imurmurhash@^0.1.4: 1291 | version "0.1.4" 1292 | resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" 1293 | 1294 | inflight@^1.0.4: 1295 | version "1.0.6" 1296 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 1297 | dependencies: 1298 | once "^1.3.0" 1299 | wrappy "1" 1300 | 1301 | inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@~2.0.3: 1302 | version "2.0.3" 1303 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 1304 | 1305 | ini@^1.3.4, ini@~1.3.0: 1306 | version "1.3.5" 1307 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" 1308 | 1309 | io-ts-reporters@^0.0.21: 1310 | version "0.0.21" 1311 | resolved "https://registry.yarnpkg.com/io-ts-reporters/-/io-ts-reporters-0.0.21.tgz#b0be3eec37a3d7da77aeafa257c68bd2afbbc4af" 1312 | dependencies: 1313 | fp-ts "^1.0.1" 1314 | io-ts "^1.0.2" 1315 | 1316 | io-ts@^1.0.2, io-ts@^1.3.0: 1317 | version "1.3.0" 1318 | resolved "https://registry.yarnpkg.com/io-ts/-/io-ts-1.3.0.tgz#72a5e7dbbb650b9c26030bac0c22d9b18c321f54" 1319 | dependencies: 1320 | fp-ts "^1.0.0" 1321 | 1322 | ipaddr.js@1.4.0: 1323 | version "1.4.0" 1324 | resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.4.0.tgz#296aca878a821816e5b85d0a285a99bcff4582f0" 1325 | 1326 | ipaddr.js@1.8.0: 1327 | version "1.8.0" 1328 | resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.8.0.tgz#eaa33d6ddd7ace8f7f6fe0c9ca0440e706738b1e" 1329 | 1330 | is-accessor-descriptor@^0.1.6: 1331 | version "0.1.6" 1332 | resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" 1333 | dependencies: 1334 | kind-of "^3.0.2" 1335 | 1336 | is-accessor-descriptor@^1.0.0: 1337 | version "1.0.0" 1338 | resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" 1339 | dependencies: 1340 | kind-of "^6.0.0" 1341 | 1342 | is-arrayish@^0.2.1: 1343 | version "0.2.1" 1344 | resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 1345 | 1346 | is-binary-path@^1.0.0: 1347 | version "1.0.1" 1348 | resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" 1349 | dependencies: 1350 | binary-extensions "^1.0.0" 1351 | 1352 | is-buffer@^1.1.5: 1353 | version "1.1.6" 1354 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" 1355 | 1356 | is-builtin-module@^1.0.0: 1357 | version "1.0.0" 1358 | resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" 1359 | dependencies: 1360 | builtin-modules "^1.0.0" 1361 | 1362 | is-callable@^1.1.1, is-callable@^1.1.3: 1363 | version "1.1.4" 1364 | resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" 1365 | 1366 | is-ci@^1.0.10: 1367 | version "1.1.0" 1368 | resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.1.0.tgz#247e4162e7860cebbdaf30b774d6b0ac7dcfe7a5" 1369 | dependencies: 1370 | ci-info "^1.0.0" 1371 | 1372 | is-data-descriptor@^0.1.4: 1373 | version "0.1.4" 1374 | resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" 1375 | dependencies: 1376 | kind-of "^3.0.2" 1377 | 1378 | is-data-descriptor@^1.0.0: 1379 | version "1.0.0" 1380 | resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" 1381 | dependencies: 1382 | kind-of "^6.0.0" 1383 | 1384 | is-date-object@^1.0.1: 1385 | version "1.0.1" 1386 | resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" 1387 | 1388 | is-descriptor@^0.1.0: 1389 | version "0.1.6" 1390 | resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" 1391 | dependencies: 1392 | is-accessor-descriptor "^0.1.6" 1393 | is-data-descriptor "^0.1.4" 1394 | kind-of "^5.0.0" 1395 | 1396 | is-descriptor@^1.0.0, is-descriptor@^1.0.2: 1397 | version "1.0.2" 1398 | resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" 1399 | dependencies: 1400 | is-accessor-descriptor "^1.0.0" 1401 | is-data-descriptor "^1.0.0" 1402 | kind-of "^6.0.2" 1403 | 1404 | is-extendable@^0.1.0, is-extendable@^0.1.1: 1405 | version "0.1.1" 1406 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" 1407 | 1408 | is-extendable@^1.0.1: 1409 | version "1.0.1" 1410 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" 1411 | dependencies: 1412 | is-plain-object "^2.0.4" 1413 | 1414 | is-extglob@^2.1.0, is-extglob@^2.1.1: 1415 | version "2.1.1" 1416 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" 1417 | 1418 | is-fullwidth-code-point@^1.0.0: 1419 | version "1.0.0" 1420 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 1421 | dependencies: 1422 | number-is-nan "^1.0.0" 1423 | 1424 | is-fullwidth-code-point@^2.0.0: 1425 | version "2.0.0" 1426 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" 1427 | 1428 | is-glob@^3.1.0: 1429 | version "3.1.0" 1430 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" 1431 | dependencies: 1432 | is-extglob "^2.1.0" 1433 | 1434 | is-glob@^4.0.0: 1435 | version "4.0.0" 1436 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0" 1437 | dependencies: 1438 | is-extglob "^2.1.1" 1439 | 1440 | is-installed-globally@^0.1.0: 1441 | version "0.1.0" 1442 | resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.1.0.tgz#0dfd98f5a9111716dd535dda6492f67bf3d25a80" 1443 | dependencies: 1444 | global-dirs "^0.1.0" 1445 | is-path-inside "^1.0.0" 1446 | 1447 | is-npm@^1.0.0: 1448 | version "1.0.0" 1449 | resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4" 1450 | 1451 | is-number@^3.0.0: 1452 | version "3.0.0" 1453 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" 1454 | dependencies: 1455 | kind-of "^3.0.2" 1456 | 1457 | is-obj@^1.0.0: 1458 | version "1.0.1" 1459 | resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" 1460 | 1461 | is-path-inside@^1.0.0: 1462 | version "1.0.1" 1463 | resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" 1464 | dependencies: 1465 | path-is-inside "^1.0.1" 1466 | 1467 | is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: 1468 | version "2.0.4" 1469 | resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" 1470 | dependencies: 1471 | isobject "^3.0.1" 1472 | 1473 | is-redirect@^1.0.0: 1474 | version "1.0.0" 1475 | resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" 1476 | 1477 | is-regex@^1.0.4: 1478 | version "1.0.4" 1479 | resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" 1480 | dependencies: 1481 | has "^1.0.1" 1482 | 1483 | is-retry-allowed@^1.0.0: 1484 | version "1.1.0" 1485 | resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" 1486 | 1487 | is-stream@^1.0.0, is-stream@^1.0.1, is-stream@^1.1.0: 1488 | version "1.1.0" 1489 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 1490 | 1491 | is-symbol@^1.0.1: 1492 | version "1.0.1" 1493 | resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572" 1494 | 1495 | is-typedarray@~1.0.0: 1496 | version "1.0.0" 1497 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 1498 | 1499 | is-windows@^1.0.2: 1500 | version "1.0.2" 1501 | resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" 1502 | 1503 | isarray@1.0.0, isarray@~1.0.0: 1504 | version "1.0.0" 1505 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 1506 | 1507 | isexe@^2.0.0: 1508 | version "2.0.0" 1509 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 1510 | 1511 | isobject@^2.0.0: 1512 | version "2.1.0" 1513 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" 1514 | dependencies: 1515 | isarray "1.0.0" 1516 | 1517 | isobject@^3.0.0, isobject@^3.0.1: 1518 | version "3.0.1" 1519 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" 1520 | 1521 | isstream@~0.1.2: 1522 | version "0.1.2" 1523 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 1524 | 1525 | ix@^2.3.5: 1526 | version "2.3.5" 1527 | resolved "https://registry.yarnpkg.com/ix/-/ix-2.3.5.tgz#8f1f221d420e248833009601ca49d4fae3d794c9" 1528 | dependencies: 1529 | tslib "^1.8.0" 1530 | 1531 | js-tokens@^3.0.2: 1532 | version "3.0.2" 1533 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" 1534 | 1535 | js-yaml@^3.7.0: 1536 | version "3.12.0" 1537 | resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1" 1538 | dependencies: 1539 | argparse "^1.0.7" 1540 | esprima "^4.0.0" 1541 | 1542 | jsbn@~0.1.0: 1543 | version "0.1.1" 1544 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" 1545 | 1546 | json-parse-better-errors@^1.0.1: 1547 | version "1.0.2" 1548 | resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" 1549 | 1550 | json-schema@0.2.3: 1551 | version "0.2.3" 1552 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 1553 | 1554 | json-stable-stringify@^1.0.1: 1555 | version "1.0.1" 1556 | resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" 1557 | dependencies: 1558 | jsonify "~0.0.0" 1559 | 1560 | json-stringify-safe@~5.0.1: 1561 | version "5.0.1" 1562 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 1563 | 1564 | jsonify@~0.0.0: 1565 | version "0.0.0" 1566 | resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" 1567 | 1568 | jsprim@^1.2.2: 1569 | version "1.4.1" 1570 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" 1571 | dependencies: 1572 | assert-plus "1.0.0" 1573 | extsprintf "1.3.0" 1574 | json-schema "0.2.3" 1575 | verror "1.10.0" 1576 | 1577 | kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: 1578 | version "3.2.2" 1579 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" 1580 | dependencies: 1581 | is-buffer "^1.1.5" 1582 | 1583 | kind-of@^4.0.0: 1584 | version "4.0.0" 1585 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" 1586 | dependencies: 1587 | is-buffer "^1.1.5" 1588 | 1589 | kind-of@^5.0.0: 1590 | version "5.1.0" 1591 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" 1592 | 1593 | kind-of@^6.0.0, kind-of@^6.0.2: 1594 | version "6.0.2" 1595 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" 1596 | 1597 | latest-version@^3.0.0: 1598 | version "3.1.0" 1599 | resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-3.1.0.tgz#a205383fea322b33b5ae3b18abee0dc2f356ee15" 1600 | dependencies: 1601 | package-json "^4.0.0" 1602 | 1603 | load-json-file@^4.0.0: 1604 | version "4.0.0" 1605 | resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" 1606 | dependencies: 1607 | graceful-fs "^4.1.2" 1608 | parse-json "^4.0.0" 1609 | pify "^3.0.0" 1610 | strip-bom "^3.0.0" 1611 | 1612 | lodash.debounce@^4.0.8: 1613 | version "4.0.8" 1614 | resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" 1615 | 1616 | lodash@^4.17.10, lodash@^4.5.1: 1617 | version "4.17.10" 1618 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" 1619 | 1620 | lowercase-keys@^1.0.0: 1621 | version "1.0.1" 1622 | resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" 1623 | 1624 | lru-cache@^4.0.1: 1625 | version "4.1.3" 1626 | resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.3.tgz#a1175cf3496dfc8436c156c334b4955992bce69c" 1627 | dependencies: 1628 | pseudomap "^1.0.2" 1629 | yallist "^2.1.2" 1630 | 1631 | luxon@^1.3.3: 1632 | version "1.3.3" 1633 | resolved "https://registry.yarnpkg.com/luxon/-/luxon-1.3.3.tgz#e66e8537a62c9b351ba69b766d7fb70b07ab5e57" 1634 | 1635 | make-dir@^1.0.0: 1636 | version "1.3.0" 1637 | resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" 1638 | dependencies: 1639 | pify "^3.0.0" 1640 | 1641 | map-cache@^0.2.2: 1642 | version "0.2.2" 1643 | resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" 1644 | 1645 | map-stream@~0.1.0: 1646 | version "0.1.0" 1647 | resolved "https://registry.yarnpkg.com/map-stream/-/map-stream-0.1.0.tgz#e56aa94c4c8055a16404a0674b78f215f7c8e194" 1648 | 1649 | map-visit@^1.0.0: 1650 | version "1.0.0" 1651 | resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" 1652 | dependencies: 1653 | object-visit "^1.0.0" 1654 | 1655 | media-typer@0.3.0: 1656 | version "0.3.0" 1657 | resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" 1658 | 1659 | merge-descriptors@1.0.1: 1660 | version "1.0.1" 1661 | resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" 1662 | 1663 | methods@~1.1.2: 1664 | version "1.1.2" 1665 | resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" 1666 | 1667 | micromatch@^3.1.4: 1668 | version "3.1.10" 1669 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" 1670 | dependencies: 1671 | arr-diff "^4.0.0" 1672 | array-unique "^0.3.2" 1673 | braces "^2.3.1" 1674 | define-property "^2.0.2" 1675 | extend-shallow "^3.0.2" 1676 | extglob "^2.0.4" 1677 | fragment-cache "^0.2.1" 1678 | kind-of "^6.0.2" 1679 | nanomatch "^1.2.9" 1680 | object.pick "^1.3.0" 1681 | regex-not "^1.0.0" 1682 | snapdragon "^0.8.1" 1683 | to-regex "^3.0.2" 1684 | 1685 | mime-db@~1.35.0: 1686 | version "1.35.0" 1687 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.35.0.tgz#0569d657466491283709663ad379a99b90d9ab47" 1688 | 1689 | mime-types@^2.1.12, mime-types@~2.1.18, mime-types@~2.1.7: 1690 | version "2.1.19" 1691 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.19.tgz#71e464537a7ef81c15f2db9d97e913fc0ff606f0" 1692 | dependencies: 1693 | mime-db "~1.35.0" 1694 | 1695 | mime@1.3.4: 1696 | version "1.3.4" 1697 | resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53" 1698 | 1699 | mime@1.4.1: 1700 | version "1.4.1" 1701 | resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6" 1702 | 1703 | minimatch@^3.0.2, minimatch@^3.0.4: 1704 | version "3.0.4" 1705 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" 1706 | dependencies: 1707 | brace-expansion "^1.1.7" 1708 | 1709 | minimist@0.0.8: 1710 | version "0.0.8" 1711 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 1712 | 1713 | minimist@^1.2.0, minimist@~1.2.0: 1714 | version "1.2.0" 1715 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" 1716 | 1717 | minipass@^2.2.1, minipass@^2.3.3: 1718 | version "2.3.4" 1719 | resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.4.tgz#4768d7605ed6194d6d576169b9e12ef71e9d9957" 1720 | dependencies: 1721 | safe-buffer "^5.1.2" 1722 | yallist "^3.0.0" 1723 | 1724 | minizlib@^1.1.0: 1725 | version "1.1.0" 1726 | resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.1.0.tgz#11e13658ce46bc3a70a267aac58359d1e0c29ceb" 1727 | dependencies: 1728 | minipass "^2.2.1" 1729 | 1730 | mixin-deep@^1.2.0: 1731 | version "1.3.1" 1732 | resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" 1733 | dependencies: 1734 | for-in "^1.0.2" 1735 | is-extendable "^1.0.1" 1736 | 1737 | mkdirp@^0.5.0, mkdirp@^0.5.1: 1738 | version "0.5.1" 1739 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 1740 | dependencies: 1741 | minimist "0.0.8" 1742 | 1743 | mock-require@^2.0.2: 1744 | version "2.0.2" 1745 | resolved "https://registry.yarnpkg.com/mock-require/-/mock-require-2.0.2.tgz#1eaa71aad23013773d127dc7e91a3fbb4837d60d" 1746 | dependencies: 1747 | caller-id "^0.1.0" 1748 | 1749 | ms@2.0.0: 1750 | version "2.0.0" 1751 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" 1752 | 1753 | nan@^2.9.2: 1754 | version "2.10.0" 1755 | resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f" 1756 | 1757 | nanomatch@^1.2.9: 1758 | version "1.2.13" 1759 | resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" 1760 | dependencies: 1761 | arr-diff "^4.0.0" 1762 | array-unique "^0.3.2" 1763 | define-property "^2.0.2" 1764 | extend-shallow "^3.0.2" 1765 | fragment-cache "^0.2.1" 1766 | is-windows "^1.0.2" 1767 | kind-of "^6.0.2" 1768 | object.pick "^1.3.0" 1769 | regex-not "^1.0.0" 1770 | snapdragon "^0.8.1" 1771 | to-regex "^3.0.1" 1772 | 1773 | needle@^2.2.1: 1774 | version "2.2.2" 1775 | resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.2.tgz#1120ca4c41f2fcc6976fd28a8968afe239929418" 1776 | dependencies: 1777 | debug "^2.1.2" 1778 | iconv-lite "^0.4.4" 1779 | sax "^1.2.4" 1780 | 1781 | negotiator@0.6.1: 1782 | version "0.6.1" 1783 | resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9" 1784 | 1785 | node-fetch@^1.7.1: 1786 | version "1.7.3" 1787 | resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" 1788 | dependencies: 1789 | encoding "^0.1.11" 1790 | is-stream "^1.0.1" 1791 | 1792 | node-fetch@^2.2.0: 1793 | version "2.2.0" 1794 | resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.2.0.tgz#4ee79bde909262f9775f731e3656d0db55ced5b5" 1795 | 1796 | node-pre-gyp@^0.10.0: 1797 | version "0.10.3" 1798 | resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.3.tgz#3070040716afdc778747b61b6887bf78880b80fc" 1799 | dependencies: 1800 | detect-libc "^1.0.2" 1801 | mkdirp "^0.5.1" 1802 | needle "^2.2.1" 1803 | nopt "^4.0.1" 1804 | npm-packlist "^1.1.6" 1805 | npmlog "^4.0.2" 1806 | rc "^1.2.7" 1807 | rimraf "^2.6.1" 1808 | semver "^5.3.0" 1809 | tar "^4" 1810 | 1811 | nodemon@^1.18.3: 1812 | version "1.18.3" 1813 | resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-1.18.3.tgz#46e681ee0dd1b590562e03019b4c5df234f906f9" 1814 | dependencies: 1815 | chokidar "^2.0.2" 1816 | debug "^3.1.0" 1817 | ignore-by-default "^1.0.1" 1818 | minimatch "^3.0.4" 1819 | pstree.remy "^1.1.0" 1820 | semver "^5.5.0" 1821 | supports-color "^5.2.0" 1822 | touch "^3.1.0" 1823 | undefsafe "^2.0.2" 1824 | update-notifier "^2.3.0" 1825 | 1826 | nopt@^4.0.1: 1827 | version "4.0.1" 1828 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" 1829 | dependencies: 1830 | abbrev "1" 1831 | osenv "^0.1.4" 1832 | 1833 | nopt@~1.0.10: 1834 | version "1.0.10" 1835 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee" 1836 | dependencies: 1837 | abbrev "1" 1838 | 1839 | normalize-package-data@^2.3.2: 1840 | version "2.4.0" 1841 | resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" 1842 | dependencies: 1843 | hosted-git-info "^2.1.4" 1844 | is-builtin-module "^1.0.0" 1845 | semver "2 || 3 || 4 || 5" 1846 | validate-npm-package-license "^3.0.1" 1847 | 1848 | normalize-path@^2.1.1: 1849 | version "2.1.1" 1850 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" 1851 | dependencies: 1852 | remove-trailing-separator "^1.0.1" 1853 | 1854 | npm-bundled@^1.0.1: 1855 | version "1.0.5" 1856 | resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.5.tgz#3c1732b7ba936b3a10325aef616467c0ccbcc979" 1857 | 1858 | npm-packlist@^1.1.6: 1859 | version "1.1.11" 1860 | resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.1.11.tgz#84e8c683cbe7867d34b1d357d893ce29e28a02de" 1861 | dependencies: 1862 | ignore-walk "^3.0.1" 1863 | npm-bundled "^1.0.1" 1864 | 1865 | npm-run-path@^2.0.0: 1866 | version "2.0.2" 1867 | resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" 1868 | dependencies: 1869 | path-key "^2.0.0" 1870 | 1871 | npmlog@^4.0.2: 1872 | version "4.1.2" 1873 | resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" 1874 | dependencies: 1875 | are-we-there-yet "~1.1.2" 1876 | console-control-strings "~1.1.0" 1877 | gauge "~2.7.3" 1878 | set-blocking "~2.0.0" 1879 | 1880 | number-is-nan@^1.0.0: 1881 | version "1.0.1" 1882 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 1883 | 1884 | oauth-authorization-header@^0.0.7: 1885 | version "0.0.7" 1886 | resolved "https://registry.yarnpkg.com/oauth-authorization-header/-/oauth-authorization-header-0.0.7.tgz#2bcd1b9107823fa18e52d2ac0223a9e8e93f889c" 1887 | dependencies: 1888 | qs "6.4.0" 1889 | request "2.81.0" 1890 | 1891 | oauth-sign@~0.8.1: 1892 | version "0.8.2" 1893 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" 1894 | 1895 | object-assign@^4.1.0: 1896 | version "4.1.1" 1897 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 1898 | 1899 | object-copy@^0.1.0: 1900 | version "0.1.0" 1901 | resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" 1902 | dependencies: 1903 | copy-descriptor "^0.1.0" 1904 | define-property "^0.2.5" 1905 | kind-of "^3.0.3" 1906 | 1907 | object-inspect@~1.6.0: 1908 | version "1.6.0" 1909 | resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b" 1910 | 1911 | object-keys@^1.0.8: 1912 | version "1.0.12" 1913 | resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.12.tgz#09c53855377575310cca62f55bb334abff7b3ed2" 1914 | 1915 | object-visit@^1.0.0: 1916 | version "1.0.1" 1917 | resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" 1918 | dependencies: 1919 | isobject "^3.0.0" 1920 | 1921 | object.pick@^1.3.0: 1922 | version "1.3.0" 1923 | resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" 1924 | dependencies: 1925 | isobject "^3.0.1" 1926 | 1927 | on-finished@~2.3.0: 1928 | version "2.3.0" 1929 | resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" 1930 | dependencies: 1931 | ee-first "1.1.1" 1932 | 1933 | on-headers@~1.0.1: 1934 | version "1.0.1" 1935 | resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7" 1936 | 1937 | once@^1.3.0: 1938 | version "1.4.0" 1939 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1940 | dependencies: 1941 | wrappy "1" 1942 | 1943 | os-homedir@^1.0.0: 1944 | version "1.0.2" 1945 | resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" 1946 | 1947 | os-tmpdir@^1.0.0: 1948 | version "1.0.2" 1949 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 1950 | 1951 | osenv@^0.1.4: 1952 | version "0.1.5" 1953 | resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" 1954 | dependencies: 1955 | os-homedir "^1.0.0" 1956 | os-tmpdir "^1.0.0" 1957 | 1958 | p-finally@^1.0.0: 1959 | version "1.0.0" 1960 | resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" 1961 | 1962 | package-json@^4.0.0: 1963 | version "4.0.1" 1964 | resolved "https://registry.yarnpkg.com/package-json/-/package-json-4.0.1.tgz#8869a0401253661c4c4ca3da6c2121ed555f5eed" 1965 | dependencies: 1966 | got "^6.7.1" 1967 | registry-auth-token "^3.0.1" 1968 | registry-url "^3.0.3" 1969 | semver "^5.1.0" 1970 | 1971 | parse-json@^4.0.0: 1972 | version "4.0.0" 1973 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" 1974 | dependencies: 1975 | error-ex "^1.3.1" 1976 | json-parse-better-errors "^1.0.1" 1977 | 1978 | parseurl@~1.3.1, parseurl@~1.3.2: 1979 | version "1.3.2" 1980 | resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3" 1981 | 1982 | pascalcase@^0.1.1: 1983 | version "0.1.1" 1984 | resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" 1985 | 1986 | path-dirname@^1.0.0: 1987 | version "1.0.2" 1988 | resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" 1989 | 1990 | path-is-absolute@^1.0.0: 1991 | version "1.0.1" 1992 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 1993 | 1994 | path-is-inside@^1.0.1: 1995 | version "1.0.2" 1996 | resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" 1997 | 1998 | path-key@^2.0.0: 1999 | version "2.0.1" 2000 | resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" 2001 | 2002 | path-parse@^1.0.5: 2003 | version "1.0.6" 2004 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" 2005 | 2006 | path-to-regexp@0.1.7: 2007 | version "0.1.7" 2008 | resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" 2009 | 2010 | path-type@^3.0.0: 2011 | version "3.0.0" 2012 | resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" 2013 | dependencies: 2014 | pify "^3.0.0" 2015 | 2016 | pause-stream@0.0.11: 2017 | version "0.0.11" 2018 | resolved "https://registry.yarnpkg.com/pause-stream/-/pause-stream-0.0.11.tgz#fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445" 2019 | dependencies: 2020 | through "~2.3" 2021 | 2022 | performance-now@^0.2.0: 2023 | version "0.2.0" 2024 | resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" 2025 | 2026 | pify@^3.0.0: 2027 | version "3.0.0" 2028 | resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" 2029 | 2030 | posix-character-classes@^0.1.0: 2031 | version "0.1.1" 2032 | resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" 2033 | 2034 | prepend-http@^1.0.1: 2035 | version "1.0.4" 2036 | resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" 2037 | 2038 | prettier@^1.14.2: 2039 | version "1.14.2" 2040 | resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.14.2.tgz#0ac1c6e1a90baa22a62925f41963c841983282f9" 2041 | 2042 | process-nextick-args@~2.0.0: 2043 | version "2.0.0" 2044 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" 2045 | 2046 | proxy-addr@~1.1.4: 2047 | version "1.1.5" 2048 | resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.5.tgz#71c0ee3b102de3f202f3b64f608d173fcba1a918" 2049 | dependencies: 2050 | forwarded "~0.1.0" 2051 | ipaddr.js "1.4.0" 2052 | 2053 | proxy-addr@~2.0.3: 2054 | version "2.0.4" 2055 | resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.4.tgz#ecfc733bf22ff8c6f407fa275327b9ab67e48b93" 2056 | dependencies: 2057 | forwarded "~0.1.2" 2058 | ipaddr.js "1.8.0" 2059 | 2060 | ps-tree@^1.1.0: 2061 | version "1.1.0" 2062 | resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.1.0.tgz#b421b24140d6203f1ed3c76996b4427b08e8c014" 2063 | dependencies: 2064 | event-stream "~3.3.0" 2065 | 2066 | pseudomap@^1.0.2: 2067 | version "1.0.2" 2068 | resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" 2069 | 2070 | pstree.remy@^1.1.0: 2071 | version "1.1.0" 2072 | resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.0.tgz#f2af27265bd3e5b32bbfcc10e80bac55ba78688b" 2073 | dependencies: 2074 | ps-tree "^1.1.0" 2075 | 2076 | punycode@^1.4.1: 2077 | version "1.4.1" 2078 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 2079 | 2080 | qs@6.4.0, qs@~6.4.0: 2081 | version "6.4.0" 2082 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" 2083 | 2084 | qs@6.5.1: 2085 | version "6.5.1" 2086 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8" 2087 | 2088 | qs@6.5.2, qs@^6.5.1: 2089 | version "6.5.2" 2090 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" 2091 | 2092 | ramda@^0.25.0: 2093 | version "0.25.0" 2094 | resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.25.0.tgz#8fdf68231cffa90bc2f9460390a0cb74a29b29a9" 2095 | 2096 | random-bytes@~1.0.0: 2097 | version "1.0.0" 2098 | resolved "https://registry.yarnpkg.com/random-bytes/-/random-bytes-1.0.0.tgz#4f68a1dc0ae58bd3fb95848c30324db75d64360b" 2099 | 2100 | range-parser@~1.2.0: 2101 | version "1.2.0" 2102 | resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" 2103 | 2104 | raw-body@2.3.2: 2105 | version "2.3.2" 2106 | resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.3.2.tgz#bcd60c77d3eb93cde0050295c3f379389bc88f89" 2107 | dependencies: 2108 | bytes "3.0.0" 2109 | http-errors "1.6.2" 2110 | iconv-lite "0.4.19" 2111 | unpipe "1.0.0" 2112 | 2113 | raw-body@2.3.3: 2114 | version "2.3.3" 2115 | resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.3.3.tgz#1b324ece6b5706e153855bc1148c65bb7f6ea0c3" 2116 | dependencies: 2117 | bytes "3.0.0" 2118 | http-errors "1.6.3" 2119 | iconv-lite "0.4.23" 2120 | unpipe "1.0.0" 2121 | 2122 | rc@^1.0.1, rc@^1.1.6, rc@^1.2.7: 2123 | version "1.2.8" 2124 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" 2125 | dependencies: 2126 | deep-extend "^0.6.0" 2127 | ini "~1.3.0" 2128 | minimist "^1.2.0" 2129 | strip-json-comments "~2.0.1" 2130 | 2131 | read-pkg@^3.0.0: 2132 | version "3.0.0" 2133 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" 2134 | dependencies: 2135 | load-json-file "^4.0.0" 2136 | normalize-package-data "^2.3.2" 2137 | path-type "^3.0.0" 2138 | 2139 | readable-stream@^2.0.2, readable-stream@^2.0.6: 2140 | version "2.3.6" 2141 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" 2142 | dependencies: 2143 | core-util-is "~1.0.0" 2144 | inherits "~2.0.3" 2145 | isarray "~1.0.0" 2146 | process-nextick-args "~2.0.0" 2147 | safe-buffer "~5.1.1" 2148 | string_decoder "~1.1.1" 2149 | util-deprecate "~1.0.1" 2150 | 2151 | readdirp@^2.0.0: 2152 | version "2.1.0" 2153 | resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" 2154 | dependencies: 2155 | graceful-fs "^4.1.2" 2156 | minimatch "^3.0.2" 2157 | readable-stream "^2.0.2" 2158 | set-immediate-shim "^1.0.1" 2159 | 2160 | redis-commands@^1.2.0: 2161 | version "1.3.5" 2162 | resolved "https://registry.yarnpkg.com/redis-commands/-/redis-commands-1.3.5.tgz#4495889414f1e886261180b1442e7295602d83a2" 2163 | 2164 | redis-parser@^2.6.0: 2165 | version "2.6.0" 2166 | resolved "https://registry.yarnpkg.com/redis-parser/-/redis-parser-2.6.0.tgz#52ed09dacac108f1a631c07e9b69941e7a19504b" 2167 | 2168 | redis@^2.1.0, redis@^2.7.1: 2169 | version "2.8.0" 2170 | resolved "https://registry.yarnpkg.com/redis/-/redis-2.8.0.tgz#202288e3f58c49f6079d97af7a10e1303ae14b02" 2171 | dependencies: 2172 | double-ended-queue "^2.1.0-0" 2173 | redis-commands "^1.2.0" 2174 | redis-parser "^2.6.0" 2175 | 2176 | regex-not@^1.0.0, regex-not@^1.0.2: 2177 | version "1.0.2" 2178 | resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" 2179 | dependencies: 2180 | extend-shallow "^3.0.2" 2181 | safe-regex "^1.1.0" 2182 | 2183 | registry-auth-token@^3.0.1: 2184 | version "3.3.2" 2185 | resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.3.2.tgz#851fd49038eecb586911115af845260eec983f20" 2186 | dependencies: 2187 | rc "^1.1.6" 2188 | safe-buffer "^5.0.1" 2189 | 2190 | registry-url@^3.0.3: 2191 | version "3.1.0" 2192 | resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942" 2193 | dependencies: 2194 | rc "^1.0.1" 2195 | 2196 | remove-trailing-separator@^1.0.1: 2197 | version "1.1.0" 2198 | resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" 2199 | 2200 | repeat-element@^1.1.2: 2201 | version "1.1.2" 2202 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" 2203 | 2204 | repeat-string@^1.6.1: 2205 | version "1.6.1" 2206 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" 2207 | 2208 | request@2.81.0: 2209 | version "2.81.0" 2210 | resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" 2211 | dependencies: 2212 | aws-sign2 "~0.6.0" 2213 | aws4 "^1.2.1" 2214 | caseless "~0.12.0" 2215 | combined-stream "~1.0.5" 2216 | extend "~3.0.0" 2217 | forever-agent "~0.6.1" 2218 | form-data "~2.1.1" 2219 | har-validator "~4.2.1" 2220 | hawk "~3.1.3" 2221 | http-signature "~1.1.0" 2222 | is-typedarray "~1.0.0" 2223 | isstream "~0.1.2" 2224 | json-stringify-safe "~5.0.1" 2225 | mime-types "~2.1.7" 2226 | oauth-sign "~0.8.1" 2227 | performance-now "^0.2.0" 2228 | qs "~6.4.0" 2229 | safe-buffer "^5.0.1" 2230 | stringstream "~0.0.4" 2231 | tough-cookie "~2.3.0" 2232 | tunnel-agent "^0.6.0" 2233 | uuid "^3.0.0" 2234 | 2235 | resolve-url@^0.2.1: 2236 | version "0.2.1" 2237 | resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" 2238 | 2239 | resolve@^1.3.2, resolve@~1.7.1: 2240 | version "1.7.1" 2241 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.7.1.tgz#aadd656374fd298aee895bc026b8297418677fd3" 2242 | dependencies: 2243 | path-parse "^1.0.5" 2244 | 2245 | resumer@~0.0.0: 2246 | version "0.0.0" 2247 | resolved "https://registry.yarnpkg.com/resumer/-/resumer-0.0.0.tgz#f1e8f461e4064ba39e82af3cdc2a8c893d076759" 2248 | dependencies: 2249 | through "~2.3.4" 2250 | 2251 | ret@~0.1.10: 2252 | version "0.1.15" 2253 | resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" 2254 | 2255 | rimraf@^2.6.1: 2256 | version "2.6.2" 2257 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" 2258 | dependencies: 2259 | glob "^7.0.5" 2260 | 2261 | rx@2.3.24: 2262 | version "2.3.24" 2263 | resolved "https://registry.yarnpkg.com/rx/-/rx-2.3.24.tgz#14f950a4217d7e35daa71bbcbe58eff68ea4b2b7" 2264 | 2265 | safe-buffer@5.1.1: 2266 | version "5.1.1" 2267 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" 2268 | 2269 | safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: 2270 | version "5.1.2" 2271 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" 2272 | 2273 | safe-regex@^1.1.0: 2274 | version "1.1.0" 2275 | resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" 2276 | dependencies: 2277 | ret "~0.1.10" 2278 | 2279 | "safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: 2280 | version "2.1.2" 2281 | resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" 2282 | 2283 | sax@^1.2.4: 2284 | version "1.2.4" 2285 | resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" 2286 | 2287 | semver-diff@^2.0.0: 2288 | version "2.1.0" 2289 | resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36" 2290 | dependencies: 2291 | semver "^5.0.3" 2292 | 2293 | "semver@2 || 3 || 4 || 5", semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.5.0: 2294 | version "5.5.0" 2295 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" 2296 | 2297 | send@0.15.3: 2298 | version "0.15.3" 2299 | resolved "https://registry.yarnpkg.com/send/-/send-0.15.3.tgz#5013f9f99023df50d1bd9892c19e3defd1d53309" 2300 | dependencies: 2301 | debug "2.6.7" 2302 | depd "~1.1.0" 2303 | destroy "~1.0.4" 2304 | encodeurl "~1.0.1" 2305 | escape-html "~1.0.3" 2306 | etag "~1.8.0" 2307 | fresh "0.5.0" 2308 | http-errors "~1.6.1" 2309 | mime "1.3.4" 2310 | ms "2.0.0" 2311 | on-finished "~2.3.0" 2312 | range-parser "~1.2.0" 2313 | statuses "~1.3.1" 2314 | 2315 | send@0.16.2: 2316 | version "0.16.2" 2317 | resolved "https://registry.yarnpkg.com/send/-/send-0.16.2.tgz#6ecca1e0f8c156d141597559848df64730a6bbc1" 2318 | dependencies: 2319 | debug "2.6.9" 2320 | depd "~1.1.2" 2321 | destroy "~1.0.4" 2322 | encodeurl "~1.0.2" 2323 | escape-html "~1.0.3" 2324 | etag "~1.8.1" 2325 | fresh "0.5.2" 2326 | http-errors "~1.6.2" 2327 | mime "1.4.1" 2328 | ms "2.0.0" 2329 | on-finished "~2.3.0" 2330 | range-parser "~1.2.0" 2331 | statuses "~1.4.0" 2332 | 2333 | serve-static@1.12.3: 2334 | version "1.12.3" 2335 | resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.12.3.tgz#9f4ba19e2f3030c547f8af99107838ec38d5b1e2" 2336 | dependencies: 2337 | encodeurl "~1.0.1" 2338 | escape-html "~1.0.3" 2339 | parseurl "~1.3.1" 2340 | send "0.15.3" 2341 | 2342 | serve-static@1.13.2: 2343 | version "1.13.2" 2344 | resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.13.2.tgz#095e8472fd5b46237db50ce486a43f4b86c6cec1" 2345 | dependencies: 2346 | encodeurl "~1.0.2" 2347 | escape-html "~1.0.3" 2348 | parseurl "~1.3.2" 2349 | send "0.16.2" 2350 | 2351 | set-blocking@~2.0.0: 2352 | version "2.0.0" 2353 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 2354 | 2355 | set-immediate-shim@^1.0.1: 2356 | version "1.0.1" 2357 | resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" 2358 | 2359 | set-value@^0.4.3: 2360 | version "0.4.3" 2361 | resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" 2362 | dependencies: 2363 | extend-shallow "^2.0.1" 2364 | is-extendable "^0.1.1" 2365 | is-plain-object "^2.0.1" 2366 | to-object-path "^0.3.0" 2367 | 2368 | set-value@^2.0.0: 2369 | version "2.0.0" 2370 | resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" 2371 | dependencies: 2372 | extend-shallow "^2.0.1" 2373 | is-extendable "^0.1.1" 2374 | is-plain-object "^2.0.3" 2375 | split-string "^3.0.1" 2376 | 2377 | setprototypeof@1.0.3: 2378 | version "1.0.3" 2379 | resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.3.tgz#66567e37043eeb4f04d91bd658c0cbefb55b8e04" 2380 | 2381 | setprototypeof@1.1.0: 2382 | version "1.1.0" 2383 | resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" 2384 | 2385 | shebang-command@^1.2.0: 2386 | version "1.2.0" 2387 | resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" 2388 | dependencies: 2389 | shebang-regex "^1.0.0" 2390 | 2391 | shebang-regex@^1.0.0: 2392 | version "1.0.0" 2393 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" 2394 | 2395 | signal-exit@^3.0.0, signal-exit@^3.0.2: 2396 | version "3.0.2" 2397 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 2398 | 2399 | snapdragon-node@^2.0.1: 2400 | version "2.1.1" 2401 | resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" 2402 | dependencies: 2403 | define-property "^1.0.0" 2404 | isobject "^3.0.0" 2405 | snapdragon-util "^3.0.1" 2406 | 2407 | snapdragon-util@^3.0.1: 2408 | version "3.0.1" 2409 | resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" 2410 | dependencies: 2411 | kind-of "^3.2.0" 2412 | 2413 | snapdragon@^0.8.1: 2414 | version "0.8.2" 2415 | resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" 2416 | dependencies: 2417 | base "^0.11.1" 2418 | debug "^2.2.0" 2419 | define-property "^0.2.5" 2420 | extend-shallow "^2.0.1" 2421 | map-cache "^0.2.2" 2422 | source-map "^0.5.6" 2423 | source-map-resolve "^0.5.0" 2424 | use "^3.1.0" 2425 | 2426 | sntp@1.x.x: 2427 | version "1.0.9" 2428 | resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" 2429 | dependencies: 2430 | hoek "2.x.x" 2431 | 2432 | source-map-resolve@^0.5.0: 2433 | version "0.5.2" 2434 | resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" 2435 | dependencies: 2436 | atob "^2.1.1" 2437 | decode-uri-component "^0.2.0" 2438 | resolve-url "^0.2.1" 2439 | source-map-url "^0.4.0" 2440 | urix "^0.1.0" 2441 | 2442 | source-map-support@^0.5.8: 2443 | version "0.5.8" 2444 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.8.tgz#04f5581713a8a65612d0175fbf3a01f80a162613" 2445 | dependencies: 2446 | buffer-from "^1.0.0" 2447 | source-map "^0.6.0" 2448 | 2449 | source-map-url@^0.4.0: 2450 | version "0.4.0" 2451 | resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" 2452 | 2453 | source-map@^0.5.6: 2454 | version "0.5.7" 2455 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" 2456 | 2457 | source-map@^0.6.0: 2458 | version "0.6.1" 2459 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" 2460 | 2461 | spawn-command@^0.0.2-1: 2462 | version "0.0.2-1" 2463 | resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2-1.tgz#62f5e9466981c1b796dc5929937e11c9c6921bd0" 2464 | 2465 | spdx-correct@^3.0.0: 2466 | version "3.0.0" 2467 | resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82" 2468 | dependencies: 2469 | spdx-expression-parse "^3.0.0" 2470 | spdx-license-ids "^3.0.0" 2471 | 2472 | spdx-exceptions@^2.1.0: 2473 | version "2.1.0" 2474 | resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz#2c7ae61056c714a5b9b9b2b2af7d311ef5c78fe9" 2475 | 2476 | spdx-expression-parse@^3.0.0: 2477 | version "3.0.0" 2478 | resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" 2479 | dependencies: 2480 | spdx-exceptions "^2.1.0" 2481 | spdx-license-ids "^3.0.0" 2482 | 2483 | spdx-license-ids@^3.0.0: 2484 | version "3.0.0" 2485 | resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87" 2486 | 2487 | split-string@^3.0.1, split-string@^3.0.2: 2488 | version "3.1.0" 2489 | resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" 2490 | dependencies: 2491 | extend-shallow "^3.0.0" 2492 | 2493 | split@0.3: 2494 | version "0.3.3" 2495 | resolved "https://registry.yarnpkg.com/split/-/split-0.3.3.tgz#cd0eea5e63a211dfff7eb0f091c4133e2d0dd28f" 2496 | dependencies: 2497 | through "2" 2498 | 2499 | sprintf-js@~1.0.2: 2500 | version "1.0.3" 2501 | resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 2502 | 2503 | sshpk@^1.7.0: 2504 | version "1.14.2" 2505 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.14.2.tgz#c6fc61648a3d9c4e764fd3fcdf4ea105e492ba98" 2506 | dependencies: 2507 | asn1 "~0.2.3" 2508 | assert-plus "^1.0.0" 2509 | dashdash "^1.12.0" 2510 | getpass "^0.1.1" 2511 | safer-buffer "^2.0.2" 2512 | optionalDependencies: 2513 | bcrypt-pbkdf "^1.0.0" 2514 | ecc-jsbn "~0.1.1" 2515 | jsbn "~0.1.0" 2516 | tweetnacl "~0.14.0" 2517 | 2518 | stack-trace@~0.0.7: 2519 | version "0.0.10" 2520 | resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0" 2521 | 2522 | static-extend@^0.1.1: 2523 | version "0.1.2" 2524 | resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" 2525 | dependencies: 2526 | define-property "^0.2.5" 2527 | object-copy "^0.1.0" 2528 | 2529 | "statuses@>= 1.3.1 < 2", "statuses@>= 1.4.0 < 2": 2530 | version "1.5.0" 2531 | resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" 2532 | 2533 | statuses@~1.3.1: 2534 | version "1.3.1" 2535 | resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" 2536 | 2537 | statuses@~1.4.0: 2538 | version "1.4.0" 2539 | resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087" 2540 | 2541 | stream-combiner@~0.0.4: 2542 | version "0.0.4" 2543 | resolved "https://registry.yarnpkg.com/stream-combiner/-/stream-combiner-0.0.4.tgz#4d5e433c185261dde623ca3f44c586bcf5c4ad14" 2544 | dependencies: 2545 | duplexer "~0.1.1" 2546 | 2547 | string-width@^1.0.1: 2548 | version "1.0.2" 2549 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 2550 | dependencies: 2551 | code-point-at "^1.0.0" 2552 | is-fullwidth-code-point "^1.0.0" 2553 | strip-ansi "^3.0.0" 2554 | 2555 | "string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.1: 2556 | version "2.1.1" 2557 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" 2558 | dependencies: 2559 | is-fullwidth-code-point "^2.0.0" 2560 | strip-ansi "^4.0.0" 2561 | 2562 | string.prototype.trim@~1.1.2: 2563 | version "1.1.2" 2564 | resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz#d04de2c89e137f4d7d206f086b5ed2fae6be8cea" 2565 | dependencies: 2566 | define-properties "^1.1.2" 2567 | es-abstract "^1.5.0" 2568 | function-bind "^1.0.2" 2569 | 2570 | string_decoder@~1.1.1: 2571 | version "1.1.1" 2572 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" 2573 | dependencies: 2574 | safe-buffer "~5.1.0" 2575 | 2576 | stringstream@~0.0.4: 2577 | version "0.0.6" 2578 | resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.6.tgz#7880225b0d4ad10e30927d167a1d6f2fd3b33a72" 2579 | 2580 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 2581 | version "3.0.1" 2582 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 2583 | dependencies: 2584 | ansi-regex "^2.0.0" 2585 | 2586 | strip-ansi@^4.0.0: 2587 | version "4.0.0" 2588 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" 2589 | dependencies: 2590 | ansi-regex "^3.0.0" 2591 | 2592 | strip-bom@^3.0.0: 2593 | version "3.0.0" 2594 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" 2595 | 2596 | strip-eof@^1.0.0: 2597 | version "1.0.0" 2598 | resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" 2599 | 2600 | strip-json-comments@^2.0.1, strip-json-comments@~2.0.1: 2601 | version "2.0.1" 2602 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" 2603 | 2604 | supports-color@^2.0.0: 2605 | version "2.0.0" 2606 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" 2607 | 2608 | supports-color@^3.2.3: 2609 | version "3.2.3" 2610 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" 2611 | dependencies: 2612 | has-flag "^1.0.0" 2613 | 2614 | supports-color@^5.2.0, supports-color@^5.3.0: 2615 | version "5.4.0" 2616 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54" 2617 | dependencies: 2618 | has-flag "^3.0.0" 2619 | 2620 | "tape@>=2.0.0 <5.0.0": 2621 | version "4.9.1" 2622 | resolved "https://registry.yarnpkg.com/tape/-/tape-4.9.1.tgz#1173d7337e040c76fbf42ec86fcabedc9b3805c9" 2623 | dependencies: 2624 | deep-equal "~1.0.1" 2625 | defined "~1.0.0" 2626 | for-each "~0.3.3" 2627 | function-bind "~1.1.1" 2628 | glob "~7.1.2" 2629 | has "~1.0.3" 2630 | inherits "~2.0.3" 2631 | minimist "~1.2.0" 2632 | object-inspect "~1.6.0" 2633 | resolve "~1.7.1" 2634 | resumer "~0.0.0" 2635 | string.prototype.trim "~1.1.2" 2636 | through "~2.3.8" 2637 | 2638 | tar@^4: 2639 | version "4.4.6" 2640 | resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.6.tgz#63110f09c00b4e60ac8bcfe1bf3c8660235fbc9b" 2641 | dependencies: 2642 | chownr "^1.0.1" 2643 | fs-minipass "^1.2.5" 2644 | minipass "^2.3.3" 2645 | minizlib "^1.1.0" 2646 | mkdirp "^0.5.0" 2647 | safe-buffer "^5.1.2" 2648 | yallist "^3.0.2" 2649 | 2650 | term-size@^1.2.0: 2651 | version "1.2.0" 2652 | resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" 2653 | dependencies: 2654 | execa "^0.7.0" 2655 | 2656 | through@2, through@~2.3, through@~2.3.1, through@~2.3.4, through@~2.3.8: 2657 | version "2.3.8" 2658 | resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" 2659 | 2660 | timed-out@^4.0.0: 2661 | version "4.0.1" 2662 | resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" 2663 | 2664 | to-object-path@^0.3.0: 2665 | version "0.3.0" 2666 | resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" 2667 | dependencies: 2668 | kind-of "^3.0.2" 2669 | 2670 | to-regex-range@^2.1.0: 2671 | version "2.1.1" 2672 | resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" 2673 | dependencies: 2674 | is-number "^3.0.0" 2675 | repeat-string "^1.6.1" 2676 | 2677 | to-regex@^3.0.1, to-regex@^3.0.2: 2678 | version "3.0.2" 2679 | resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" 2680 | dependencies: 2681 | define-property "^2.0.2" 2682 | extend-shallow "^3.0.2" 2683 | regex-not "^1.0.2" 2684 | safe-regex "^1.1.0" 2685 | 2686 | touch@^3.1.0: 2687 | version "3.1.0" 2688 | resolved "https://registry.yarnpkg.com/touch/-/touch-3.1.0.tgz#fe365f5f75ec9ed4e56825e0bb76d24ab74af83b" 2689 | dependencies: 2690 | nopt "~1.0.10" 2691 | 2692 | tough-cookie@~2.3.0: 2693 | version "2.3.4" 2694 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" 2695 | dependencies: 2696 | punycode "^1.4.1" 2697 | 2698 | tree-kill@^1.1.0: 2699 | version "1.2.0" 2700 | resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.0.tgz#5846786237b4239014f05db156b643212d4c6f36" 2701 | 2702 | ts-unused-exports@^2.0.11: 2703 | version "2.0.11" 2704 | resolved "https://registry.yarnpkg.com/ts-unused-exports/-/ts-unused-exports-2.0.11.tgz#4c19c2a7d59662b51796a4eba1ce75681783fea1" 2705 | dependencies: 2706 | strip-json-comments "^2.0.1" 2707 | typescript "^2.9.2" 2708 | 2709 | tslib@^1.8.0, tslib@^1.8.1: 2710 | version "1.9.3" 2711 | resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" 2712 | 2713 | tslint-language-service@^0.9.9: 2714 | version "0.9.9" 2715 | resolved "https://registry.yarnpkg.com/tslint-language-service/-/tslint-language-service-0.9.9.tgz#f546dc38483979e6fb3cfa59584ad8525b3ad4da" 2716 | dependencies: 2717 | mock-require "^2.0.2" 2718 | 2719 | tslint-no-unused@^0.2.0-alpha.1: 2720 | version "0.2.0-alpha.1" 2721 | resolved "https://registry.yarnpkg.com/tslint-no-unused/-/tslint-no-unused-0.2.0-alpha.1.tgz#4e1d1597660a6ba4259bca48daa566641d0d58b8" 2722 | 2723 | tslint@^5.11.0: 2724 | version "5.11.0" 2725 | resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.11.0.tgz#98f30c02eae3cde7006201e4c33cb08b48581eed" 2726 | dependencies: 2727 | babel-code-frame "^6.22.0" 2728 | builtin-modules "^1.1.1" 2729 | chalk "^2.3.0" 2730 | commander "^2.12.1" 2731 | diff "^3.2.0" 2732 | glob "^7.1.1" 2733 | js-yaml "^3.7.0" 2734 | minimatch "^3.0.4" 2735 | resolve "^1.3.2" 2736 | semver "^5.3.0" 2737 | tslib "^1.8.0" 2738 | tsutils "^2.27.2" 2739 | 2740 | tsutils@^2.27.2: 2741 | version "2.29.0" 2742 | resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.29.0.tgz#32b488501467acbedd4b85498673a0812aca0b99" 2743 | dependencies: 2744 | tslib "^1.8.1" 2745 | 2746 | tunnel-agent@^0.6.0: 2747 | version "0.6.0" 2748 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" 2749 | dependencies: 2750 | safe-buffer "^5.0.1" 2751 | 2752 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 2753 | version "0.14.5" 2754 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 2755 | 2756 | twitter-api-ts@^0.0.33: 2757 | version "0.0.33" 2758 | resolved "https://registry.yarnpkg.com/twitter-api-ts/-/twitter-api-ts-0.0.33.tgz#77cd05c2acaecb7d350ab0ecf2fdde373b81e089" 2759 | dependencies: 2760 | decode-ts "^0.0.13" 2761 | fp-ts "^1.7.1" 2762 | io-ts "^1.3.0" 2763 | node-fetch "^1.7.1" 2764 | oauth-authorization-header "^0.0.7" 2765 | qs "^6.5.1" 2766 | unionize "^1.0.0" 2767 | 2768 | type-is@~1.6.15, type-is@~1.6.16: 2769 | version "1.6.16" 2770 | resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.16.tgz#f89ce341541c672b25ee7ae3c73dee3b2be50194" 2771 | dependencies: 2772 | media-typer "0.3.0" 2773 | mime-types "~2.1.18" 2774 | 2775 | typescript@^2.9.2: 2776 | version "2.9.2" 2777 | resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.2.tgz#1cbf61d05d6b96269244eb6a3bce4bd914e0f00c" 2778 | 2779 | typescript@^3.0.1: 2780 | version "3.0.1" 2781 | resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.0.1.tgz#43738f29585d3a87575520a4b93ab6026ef11fdb" 2782 | 2783 | uid-safe@~2.1.4, uid-safe@~2.1.5: 2784 | version "2.1.5" 2785 | resolved "https://registry.yarnpkg.com/uid-safe/-/uid-safe-2.1.5.tgz#2b3d5c7240e8fc2e58f8aa269e5ee49c0857bd3a" 2786 | dependencies: 2787 | random-bytes "~1.0.0" 2788 | 2789 | undefsafe@^2.0.2: 2790 | version "2.0.2" 2791 | resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.2.tgz#225f6b9e0337663e0d8e7cfd686fc2836ccace76" 2792 | dependencies: 2793 | debug "^2.2.0" 2794 | 2795 | union-value@^1.0.0: 2796 | version "1.0.0" 2797 | resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" 2798 | dependencies: 2799 | arr-union "^3.1.0" 2800 | get-value "^2.0.6" 2801 | is-extendable "^0.1.1" 2802 | set-value "^0.4.3" 2803 | 2804 | unionize@^1.0.0: 2805 | version "1.0.1" 2806 | resolved "https://registry.yarnpkg.com/unionize/-/unionize-1.0.1.tgz#cbf12c9b30c9194d0b1b0b55d1d8a88726594502" 2807 | 2808 | unionize@^2.1.2: 2809 | version "2.1.2" 2810 | resolved "https://registry.yarnpkg.com/unionize/-/unionize-2.1.2.tgz#2513b148de515bec93f045d1685bd88eab62b608" 2811 | 2812 | unique-string@^1.0.0: 2813 | version "1.0.0" 2814 | resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a" 2815 | dependencies: 2816 | crypto-random-string "^1.0.0" 2817 | 2818 | unpipe@1.0.0, unpipe@~1.0.0: 2819 | version "1.0.0" 2820 | resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" 2821 | 2822 | unset-value@^1.0.0: 2823 | version "1.0.0" 2824 | resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" 2825 | dependencies: 2826 | has-value "^0.3.1" 2827 | isobject "^3.0.0" 2828 | 2829 | unzip-response@^2.0.1: 2830 | version "2.0.1" 2831 | resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" 2832 | 2833 | upath@^1.0.5: 2834 | version "1.1.0" 2835 | resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.0.tgz#35256597e46a581db4793d0ce47fa9aebfc9fabd" 2836 | 2837 | update-notifier@^2.3.0: 2838 | version "2.5.0" 2839 | resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.5.0.tgz#d0744593e13f161e406acb1d9408b72cad08aff6" 2840 | dependencies: 2841 | boxen "^1.2.1" 2842 | chalk "^2.0.1" 2843 | configstore "^3.0.0" 2844 | import-lazy "^2.1.0" 2845 | is-ci "^1.0.10" 2846 | is-installed-globally "^0.1.0" 2847 | is-npm "^1.0.0" 2848 | latest-version "^3.0.0" 2849 | semver-diff "^2.0.0" 2850 | xdg-basedir "^3.0.0" 2851 | 2852 | urix@^0.1.0: 2853 | version "0.1.0" 2854 | resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" 2855 | 2856 | url-parse-lax@^1.0.0: 2857 | version "1.0.0" 2858 | resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" 2859 | dependencies: 2860 | prepend-http "^1.0.1" 2861 | 2862 | url-transformers@^0.0.1: 2863 | version "0.0.1" 2864 | resolved "https://registry.yarnpkg.com/url-transformers/-/url-transformers-0.0.1.tgz#a6ae4d6051aa6d039ca178062de543d0b79f0fc1" 2865 | dependencies: 2866 | "@types/lodash" "^4.14.111" 2867 | "@types/node" "^10.5.2" 2868 | lodash "^4.17.10" 2869 | 2870 | use@^3.1.0: 2871 | version "3.1.1" 2872 | resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" 2873 | 2874 | util-deprecate@~1.0.1: 2875 | version "1.0.2" 2876 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" 2877 | 2878 | utils-merge@1.0.0: 2879 | version "1.0.0" 2880 | resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.0.tgz#0294fb922bb9375153541c4f7096231f287c8af8" 2881 | 2882 | utils-merge@1.0.1: 2883 | version "1.0.1" 2884 | resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" 2885 | 2886 | uuid@^3.0.0: 2887 | version "3.3.2" 2888 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" 2889 | 2890 | validate-npm-package-license@^3.0.1: 2891 | version "3.0.4" 2892 | resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" 2893 | dependencies: 2894 | spdx-correct "^3.0.0" 2895 | spdx-expression-parse "^3.0.0" 2896 | 2897 | vary@~1.1.1, vary@~1.1.2: 2898 | version "1.1.2" 2899 | resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" 2900 | 2901 | verror@1.10.0: 2902 | version "1.10.0" 2903 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" 2904 | dependencies: 2905 | assert-plus "^1.0.0" 2906 | core-util-is "1.0.2" 2907 | extsprintf "^1.2.0" 2908 | 2909 | which@^1.2.9: 2910 | version "1.3.1" 2911 | resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" 2912 | dependencies: 2913 | isexe "^2.0.0" 2914 | 2915 | wide-align@^1.1.0: 2916 | version "1.1.3" 2917 | resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" 2918 | dependencies: 2919 | string-width "^1.0.2 || 2" 2920 | 2921 | widest-line@^2.0.0: 2922 | version "2.0.0" 2923 | resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.0.tgz#0142a4e8a243f8882c0233aa0e0281aa76152273" 2924 | dependencies: 2925 | string-width "^2.1.1" 2926 | 2927 | wrappy@1: 2928 | version "1.0.2" 2929 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 2930 | 2931 | write-file-atomic@^2.0.0: 2932 | version "2.3.0" 2933 | resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab" 2934 | dependencies: 2935 | graceful-fs "^4.1.11" 2936 | imurmurhash "^0.1.4" 2937 | signal-exit "^3.0.2" 2938 | 2939 | xdg-basedir@^3.0.0: 2940 | version "3.0.0" 2941 | resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-3.0.0.tgz#496b2cc109eca8dbacfe2dc72b603c17c5870ad4" 2942 | 2943 | yallist@^2.1.2: 2944 | version "2.1.2" 2945 | resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" 2946 | 2947 | yallist@^3.0.0, yallist@^3.0.2: 2948 | version "3.0.2" 2949 | resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9" 2950 | 2951 | --------------------------------------------------------------------------------