From d7fb0f204cb16706f2c90e30a5b725952cb8f6c5 Mon Sep 17 00:00:00 2001 From: Ian Koenigsknecht Date: Mon, 8 Feb 2021 18:41:40 -0500 Subject: [PATCH 1/2] Stashing all my changes --- examples/12-replica-db-connection/.env | 13 + examples/12-replica-db-connection/README.md | 20 + .../generated/binding.ts | 216 + .../generated/classes.ts | 196 + .../generated/index.ts | 1 + .../generated/ormconfig.ts | 3 + .../generated/schema.graphql | 164 + .../12-replica-db-connection/package.json | 51 + .../12-replica-db-connection/src/index.ts | 18 + .../12-replica-db-connection/src/server.ts | 31 + .../src/user.model.ts | 10 + .../src/user.resolver.ts | 50 + .../src/user.service.ts | 22 + .../12-replica-db-connection/tools/seed.ts | 64 + .../12-replica-db-connection/tsconfig.json | 24 + .../warthog.config.js | 3 + examples/12-replica-db-connection/yarn.lock | 3788 ++++++ package.json | 2 +- src/core/BaseService.ts | 304 +- src/core/server.test.ts | 21 +- src/core/server.ts | 26 +- .../__snapshots__/server.test.ts.snap | 10091 +++++++++++++++- src/test/functional/server.test.ts | 120 +- src/test/modules/dish/dish.resolver.ts | 8 +- .../kitchen-sink/kitchen-sink.resolver.ts | 8 +- src/test/server-vars.ts | 3 + src/test/setupFiles.ts | 2 +- src/test/test-server.ts | 1 + src/tgql/BaseResolver.ts | 1 - src/torm/createConnection.ts | 70 +- yarn.lock | 201 +- 31 files changed, 15252 insertions(+), 280 deletions(-) create mode 100644 examples/12-replica-db-connection/.env create mode 100644 examples/12-replica-db-connection/README.md create mode 100644 examples/12-replica-db-connection/generated/binding.ts create mode 100644 examples/12-replica-db-connection/generated/classes.ts create mode 100644 examples/12-replica-db-connection/generated/index.ts create mode 100644 examples/12-replica-db-connection/generated/ormconfig.ts create mode 100644 examples/12-replica-db-connection/generated/schema.graphql create mode 100644 examples/12-replica-db-connection/package.json create mode 100644 examples/12-replica-db-connection/src/index.ts create mode 100644 examples/12-replica-db-connection/src/server.ts create mode 100644 examples/12-replica-db-connection/src/user.model.ts create mode 100644 examples/12-replica-db-connection/src/user.resolver.ts create mode 100644 examples/12-replica-db-connection/src/user.service.ts create mode 100644 examples/12-replica-db-connection/tools/seed.ts create mode 100644 examples/12-replica-db-connection/tsconfig.json create mode 100644 examples/12-replica-db-connection/warthog.config.js create mode 100644 examples/12-replica-db-connection/yarn.lock diff --git a/examples/12-replica-db-connection/.env b/examples/12-replica-db-connection/.env new file mode 100644 index 00000000..1a7bbaf5 --- /dev/null +++ b/examples/12-replica-db-connection/.env @@ -0,0 +1,13 @@ +NODE_ENV=development +PGUSER=postgres +WARTHOG_APP_HOST=localhost +WARTHOG_APP_PORT=4100 +WARTHOG_DB_DATABASE=warthog-example-12 +WARTHOG_DB_USERNAME=postgres +WARTHOG_DB_PASSWORD= +WARTHOG_DB_SYNCHRONIZE=true +WARTHOG_DB_HOST=localhost +WARTHOG_DB_PORT=5432 +WARTHOG_DB_REPLICA_HOST=localhost +WARTHOG_DB_REPLICA_PORT=5432 +WARTHOG_DB_CONNECT_REPLICA=true diff --git a/examples/12-replica-db-connection/README.md b/examples/12-replica-db-connection/README.md new file mode 100644 index 00000000..4f94ddc3 --- /dev/null +++ b/examples/12-replica-db-connection/README.md @@ -0,0 +1,20 @@ +# Example 12 + +## Setup + +Run `yarn bootstrap && yarn start` + +## Bootstrapping the App + +Running `DEBUG=* yarn bootstrap` will do the following: + +- Install packages +- Create the example DB +- Seed the database with test data + +## Running the App + +To run the project, run `yarn start`. This will: + +- Run the API server +- Open GraphQL Playground diff --git a/examples/12-replica-db-connection/generated/binding.ts b/examples/12-replica-db-connection/generated/binding.ts new file mode 100644 index 00000000..2f36ce89 --- /dev/null +++ b/examples/12-replica-db-connection/generated/binding.ts @@ -0,0 +1,216 @@ +import 'graphql-import-node'; // Needed so you can import *.graphql files + +import { makeBindingClass, Options } from 'graphql-binding' +import { GraphQLResolveInfo, GraphQLSchema } from 'graphql' +import { IResolvers } from 'graphql-tools/dist/Interfaces' +import * as schema from './schema.graphql' + +export interface Query { + users: >(args: { offset?: Int | null, limit?: Int | null, where?: UserWhereInput | null, orderBy?: UserOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise , + user: (args: { where: UserWhereUniqueInput }, info?: GraphQLResolveInfo | string, options?: Options) => Promise + } + +export interface Mutation { + createUser: (args: { data: UserCreateInput }, info?: GraphQLResolveInfo | string, options?: Options) => Promise , + updateUser: (args: { data: UserUpdateInput, where: UserWhereUniqueInput }, info?: GraphQLResolveInfo | string, options?: Options) => Promise , + deleteUser: (args: { where: UserWhereUniqueInput }, info?: GraphQLResolveInfo | string, options?: Options) => Promise + } + +export interface Subscription {} + +export interface Binding { + query: Query + mutation: Mutation + subscription: Subscription + request: (query: string, variables?: {[key: string]: any}) => Promise + delegate(operation: 'query' | 'mutation', fieldName: string, args: { + [key: string]: any; + }, infoOrQuery?: GraphQLResolveInfo | string, options?: Options): Promise; + delegateSubscription(fieldName: string, args?: { + [key: string]: any; + }, infoOrQuery?: GraphQLResolveInfo | string, options?: Options): Promise>; + getAbstractResolvers(filterSchema?: GraphQLSchema | string): IResolvers; +} + +export interface BindingConstructor { + new(...args: any[]): T +} + +export const Binding = makeBindingClass>({ schema: schema as any }) + +/** + * Types +*/ + +export type UserOrderByInput = 'createdAt_ASC' | + 'createdAt_DESC' | + 'updatedAt_ASC' | + 'updatedAt_DESC' | + 'deletedAt_ASC' | + 'deletedAt_DESC' | + 'firstName_ASC' | + 'firstName_DESC' | + 'lastName_ASC' | + 'lastName_DESC' + +export interface BaseWhereInput { + id_eq?: String | null + id_in?: String[] | String | null + createdAt_eq?: String | null + createdAt_lt?: String | null + createdAt_lte?: String | null + createdAt_gt?: String | null + createdAt_gte?: String | null + createdById_eq?: String | null + updatedAt_eq?: String | null + updatedAt_lt?: String | null + updatedAt_lte?: String | null + updatedAt_gt?: String | null + updatedAt_gte?: String | null + updatedById_eq?: String | null + deletedAt_all?: Boolean | null + deletedAt_eq?: String | null + deletedAt_lt?: String | null + deletedAt_lte?: String | null + deletedAt_gt?: String | null + deletedAt_gte?: String | null + deletedById_eq?: String | null +} + +export interface UserCreateInput { + firstName: String + lastName: String +} + +export interface UserUpdateInput { + firstName?: String | null + lastName?: String | null +} + +export interface UserWhereInput { + id_eq?: ID_Input | null + id_in?: ID_Output[] | ID_Output | null + createdAt_eq?: DateTime | null + createdAt_lt?: DateTime | null + createdAt_lte?: DateTime | null + createdAt_gt?: DateTime | null + createdAt_gte?: DateTime | null + createdById_eq?: ID_Input | null + createdById_in?: ID_Output[] | ID_Output | null + updatedAt_eq?: DateTime | null + updatedAt_lt?: DateTime | null + updatedAt_lte?: DateTime | null + updatedAt_gt?: DateTime | null + updatedAt_gte?: DateTime | null + updatedById_eq?: ID_Input | null + updatedById_in?: ID_Output[] | ID_Output | null + deletedAt_all?: Boolean | null + deletedAt_eq?: DateTime | null + deletedAt_lt?: DateTime | null + deletedAt_lte?: DateTime | null + deletedAt_gt?: DateTime | null + deletedAt_gte?: DateTime | null + deletedById_eq?: ID_Input | null + deletedById_in?: ID_Output[] | ID_Output | null + firstName_eq?: String | null + firstName_contains?: String | null + firstName_startsWith?: String | null + firstName_endsWith?: String | null + firstName_in?: String[] | String | null + lastName_eq?: String | null + lastName_contains?: String | null + lastName_startsWith?: String | null + lastName_endsWith?: String | null + lastName_in?: String[] | String | null +} + +export interface UserWhereUniqueInput { + id: ID_Output +} + +export interface BaseGraphQLObject { + id: ID_Output + createdAt: DateTime + createdById: String + updatedAt?: DateTime | null + updatedById?: String | null + deletedAt?: DateTime | null + deletedById?: String | null + version: Int +} + +export interface DeleteResponse { + id: ID_Output +} + +export interface BaseModel extends BaseGraphQLObject { + id: ID_Output + createdAt: DateTime + createdById: String + updatedAt?: DateTime | null + updatedById?: String | null + deletedAt?: DateTime | null + deletedById?: String | null + version: Int +} + +export interface BaseModelUUID extends BaseGraphQLObject { + id: ID_Output + createdAt: DateTime + createdById: String + updatedAt?: DateTime | null + updatedById?: String | null + deletedAt?: DateTime | null + deletedById?: String | null + version: Int +} + +export interface PageInfo { + hasNextPage: Boolean + hasPreviousPage: Boolean + startCursor?: String | null + endCursor?: String | null +} + +export interface StandardDeleteResponse { + id: ID_Output +} + +export interface User extends BaseGraphQLObject { + id: ID_Output + createdAt: DateTime + createdById: String + updatedAt?: DateTime | null + updatedById?: String | null + deletedAt?: DateTime | null + deletedById?: String | null + version: Int + firstName: String + lastName: String +} + +/* +The `Boolean` scalar type represents `true` or `false`. +*/ +export type Boolean = boolean + +/* +The javascript `Date` as string. Type represents date and time as the ISO Date string. +*/ +export type DateTime = Date | string + +/* +The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID. +*/ +export type ID_Input = string | number +export type ID_Output = string + +/* +The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. +*/ +export type Int = number + +/* +The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. +*/ +export type String = string \ No newline at end of file diff --git a/examples/12-replica-db-connection/generated/classes.ts b/examples/12-replica-db-connection/generated/classes.ts new file mode 100644 index 00000000..cf3d7823 --- /dev/null +++ b/examples/12-replica-db-connection/generated/classes.ts @@ -0,0 +1,196 @@ +// This file has been auto-generated by Warthog. Do not update directly as it +// will be re-written. If you need to change this file, update models or add +// new TypeGraphQL objects +// prettier-ignore +// @ts-ignore +import { DateResolver as Date } from 'graphql-scalars'; +// prettier-ignore +// @ts-ignore +import { GraphQLID as ID } from 'graphql'; +// prettier-ignore +// @ts-ignore +import { ArgsType, Field as TypeGraphQLField, Float, InputType as TypeGraphQLInputType, Int } from 'type-graphql'; +// prettier-ignore +// @ts-ignore +import { registerEnumType, GraphQLISODateTime as DateTime } from "type-graphql"; + +// prettier-ignore +// @ts-ignore eslint-disable-next-line @typescript-eslint/no-var-requires +const { GraphQLJSONObject } = require('graphql-type-json'); +// prettier-ignore +// @ts-ignore +import { BaseWhereInput, JsonObject, PaginationArgs, DateOnlyString, DateTimeString } from '../../../src'; + +// @ts-ignore +import { User } from "../src/user.model"; + +export enum UserOrderByEnum { + createdAt_ASC = "createdAt_ASC", + createdAt_DESC = "createdAt_DESC", + + updatedAt_ASC = "updatedAt_ASC", + updatedAt_DESC = "updatedAt_DESC", + + deletedAt_ASC = "deletedAt_ASC", + deletedAt_DESC = "deletedAt_DESC", + + firstName_ASC = "firstName_ASC", + firstName_DESC = "firstName_DESC", + + lastName_ASC = "lastName_ASC", + lastName_DESC = "lastName_DESC" +} + +registerEnumType(UserOrderByEnum, { + name: "UserOrderByInput" +}); + +@TypeGraphQLInputType() +export class UserWhereInput { + @TypeGraphQLField(() => ID, { nullable: true }) + id_eq?: string; + + @TypeGraphQLField(() => [ID], { nullable: true }) + id_in?: string[]; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + createdAt_eq?: Date; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + createdAt_lt?: Date; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + createdAt_lte?: Date; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + createdAt_gt?: Date; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + createdAt_gte?: Date; + + @TypeGraphQLField(() => ID, { nullable: true }) + createdById_eq?: string; + + @TypeGraphQLField(() => [ID], { nullable: true }) + createdById_in?: string[]; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + updatedAt_eq?: Date; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + updatedAt_lt?: Date; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + updatedAt_lte?: Date; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + updatedAt_gt?: Date; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + updatedAt_gte?: Date; + + @TypeGraphQLField(() => ID, { nullable: true }) + updatedById_eq?: string; + + @TypeGraphQLField(() => [ID], { nullable: true }) + updatedById_in?: string[]; + + @TypeGraphQLField({ nullable: true }) + deletedAt_all?: Boolean; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + deletedAt_eq?: Date; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + deletedAt_lt?: Date; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + deletedAt_lte?: Date; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + deletedAt_gt?: Date; + + @TypeGraphQLField(() => DateTime, { nullable: true }) + deletedAt_gte?: Date; + + @TypeGraphQLField(() => ID, { nullable: true }) + deletedById_eq?: string; + + @TypeGraphQLField(() => [ID], { nullable: true }) + deletedById_in?: string[]; + + @TypeGraphQLField({ nullable: true }) + firstName_eq?: string; + + @TypeGraphQLField({ nullable: true }) + firstName_contains?: string; + + @TypeGraphQLField({ nullable: true }) + firstName_startsWith?: string; + + @TypeGraphQLField({ nullable: true }) + firstName_endsWith?: string; + + @TypeGraphQLField(() => [String], { nullable: true }) + firstName_in?: string[]; + + @TypeGraphQLField({ nullable: true }) + lastName_eq?: string; + + @TypeGraphQLField({ nullable: true }) + lastName_contains?: string; + + @TypeGraphQLField({ nullable: true }) + lastName_startsWith?: string; + + @TypeGraphQLField({ nullable: true }) + lastName_endsWith?: string; + + @TypeGraphQLField(() => [String], { nullable: true }) + lastName_in?: string[]; +} + +@TypeGraphQLInputType() +export class UserWhereUniqueInput { + @TypeGraphQLField(() => ID) + id?: string; +} + +@TypeGraphQLInputType() +export class UserCreateInput { + @TypeGraphQLField() + firstName!: string; + + @TypeGraphQLField() + lastName!: string; +} + +@TypeGraphQLInputType() +export class UserUpdateInput { + @TypeGraphQLField({ nullable: true }) + firstName?: string; + + @TypeGraphQLField({ nullable: true }) + lastName?: string; +} + +@ArgsType() +export class UserWhereArgs extends PaginationArgs { + @TypeGraphQLField(() => UserWhereInput, { nullable: true }) + where?: UserWhereInput; + + @TypeGraphQLField(() => UserOrderByEnum, { nullable: true }) + orderBy?: UserOrderByEnum; +} + +@ArgsType() +export class UserCreateManyArgs { + @TypeGraphQLField(() => [UserCreateInput]) + data!: UserCreateInput[]; +} + +@ArgsType() +export class UserUpdateArgs { + @TypeGraphQLField() data!: UserUpdateInput; + @TypeGraphQLField() where!: UserWhereUniqueInput; +} diff --git a/examples/12-replica-db-connection/generated/index.ts b/examples/12-replica-db-connection/generated/index.ts new file mode 100644 index 00000000..f37d9645 --- /dev/null +++ b/examples/12-replica-db-connection/generated/index.ts @@ -0,0 +1 @@ +export * from './classes'; \ No newline at end of file diff --git a/examples/12-replica-db-connection/generated/ormconfig.ts b/examples/12-replica-db-connection/generated/ormconfig.ts new file mode 100644 index 00000000..caf1b679 --- /dev/null +++ b/examples/12-replica-db-connection/generated/ormconfig.ts @@ -0,0 +1,3 @@ +import { getBaseConfig } from '../../../src'; + +module.exports = getBaseConfig(); \ No newline at end of file diff --git a/examples/12-replica-db-connection/generated/schema.graphql b/examples/12-replica-db-connection/generated/schema.graphql new file mode 100644 index 00000000..28f77acf --- /dev/null +++ b/examples/12-replica-db-connection/generated/schema.graphql @@ -0,0 +1,164 @@ +interface BaseGraphQLObject { + id: ID! + createdAt: DateTime! + createdById: String! + updatedAt: DateTime + updatedById: String + deletedAt: DateTime + deletedById: String + version: Int! +} + +type BaseModel implements BaseGraphQLObject { + id: ID! + createdAt: DateTime! + createdById: String! + updatedAt: DateTime + updatedById: String + deletedAt: DateTime + deletedById: String + version: Int! +} + +type BaseModelUUID implements BaseGraphQLObject { + id: ID! + createdAt: DateTime! + createdById: String! + updatedAt: DateTime + updatedById: String + deletedAt: DateTime + deletedById: String + version: Int! +} + +input BaseWhereInput { + id_eq: String + id_in: [String!] + createdAt_eq: String + createdAt_lt: String + createdAt_lte: String + createdAt_gt: String + createdAt_gte: String + createdById_eq: String + updatedAt_eq: String + updatedAt_lt: String + updatedAt_lte: String + updatedAt_gt: String + updatedAt_gte: String + updatedById_eq: String + deletedAt_all: Boolean + deletedAt_eq: String + deletedAt_lt: String + deletedAt_lte: String + deletedAt_gt: String + deletedAt_gte: String + deletedById_eq: String +} + +""" +The javascript `Date` as string. Type represents date and time as the ISO Date string. +""" +scalar DateTime + +interface DeleteResponse { + id: ID! +} + +type Mutation { + createUser(data: UserCreateInput!): User! + updateUser(data: UserUpdateInput!, where: UserWhereUniqueInput!): User! + deleteUser(where: UserWhereUniqueInput!): StandardDeleteResponse! +} + +type PageInfo { + hasNextPage: Boolean! + hasPreviousPage: Boolean! + startCursor: String + endCursor: String +} + +type Query { + users(offset: Int, limit: Int = 50, where: UserWhereInput, orderBy: UserOrderByInput): [User!]! + user(where: UserWhereUniqueInput!): User! +} + +type StandardDeleteResponse { + id: ID! +} + +type User implements BaseGraphQLObject { + id: ID! + createdAt: DateTime! + createdById: String! + updatedAt: DateTime + updatedById: String + deletedAt: DateTime + deletedById: String + version: Int! + firstName: String! + lastName: String! +} + +input UserCreateInput { + firstName: String! + lastName: String! +} + +enum UserOrderByInput { + createdAt_ASC + createdAt_DESC + updatedAt_ASC + updatedAt_DESC + deletedAt_ASC + deletedAt_DESC + firstName_ASC + firstName_DESC + lastName_ASC + lastName_DESC +} + +input UserUpdateInput { + firstName: String + lastName: String +} + +input UserWhereInput { + id_eq: ID + id_in: [ID!] + createdAt_eq: DateTime + createdAt_lt: DateTime + createdAt_lte: DateTime + createdAt_gt: DateTime + createdAt_gte: DateTime + createdById_eq: ID + createdById_in: [ID!] + updatedAt_eq: DateTime + updatedAt_lt: DateTime + updatedAt_lte: DateTime + updatedAt_gt: DateTime + updatedAt_gte: DateTime + updatedById_eq: ID + updatedById_in: [ID!] + deletedAt_all: Boolean + deletedAt_eq: DateTime + deletedAt_lt: DateTime + deletedAt_lte: DateTime + deletedAt_gt: DateTime + deletedAt_gte: DateTime + deletedById_eq: ID + deletedById_in: [ID!] + firstName_eq: String + firstName_contains: String + firstName_startsWith: String + firstName_endsWith: String + firstName_in: [String!] + lastName_eq: String + lastName_contains: String + lastName_startsWith: String + lastName_endsWith: String + lastName_in: [String!] +} + +input UserWhereUniqueInput { + id: ID! +} diff --git a/examples/12-replica-db-connection/package.json b/examples/12-replica-db-connection/package.json new file mode 100644 index 00000000..b5c6e839 --- /dev/null +++ b/examples/12-replica-db-connection/package.json @@ -0,0 +1,51 @@ +{ + "name": "example12", + "version": "0.0.0", + "license": "MIT", + "scripts": { + "bootstrap": "cd ../.. && yarn && cd - && yarn && yarn db:create && yarn codegen && yarn db:seed:dev", + "codegen": "yarn warthog codegen", + "db:create": "yarn warthog db:create", + "db:drop": "yarn warthog db:drop", + "db:seed:dev": "ts-node tools/seed.ts", + "playground": "yarn warthog playground", + "start": "yarn start:ts", + "start:debug": "yarn start:ts --inspect", + "start:ts": "ts-node --type-check src/index.ts", + "test": "jest --detectOpenHandles --verbose --coverage", + "test:watch": "jest --watch", + "//": "Allows us to use the local warthog CLI in commands above", + "warthog": "../../bin/warthog" + }, + "dependencies": { + "debug": "^4.1.1", + "handlebars": "^4.5.2", + "lodash": "^4.17.15", + "reflect-metadata": "^0.1.13", + "typescript": "^3.7.2" + }, + "devDependencies": { + "@types/faker": "^4.1.7", + "@types/isomorphic-fetch": "^0.0.34", + "@types/jest": "^23.3.14", + "@types/node": "^10.17.5", + "faker": "^4.1.0", + "jest": "^23.6.0", + "ts-jest": "^23.10.5", + "ts-node": "^8.10.2" + }, + "jest": { + "transform": { + ".ts": "ts-jest" + }, + "testRegex": "\\.test\\.ts$", + "moduleFileExtensions": [ + "ts", + "js" + ], + "coveragePathIgnorePatterns": [ + "/node_modules/", + "\\.test\\.ts$" + ] + } +} diff --git a/examples/12-replica-db-connection/src/index.ts b/examples/12-replica-db-connection/src/index.ts new file mode 100644 index 00000000..5189a59d --- /dev/null +++ b/examples/12-replica-db-connection/src/index.ts @@ -0,0 +1,18 @@ +import 'reflect-metadata'; + +import { logger } from '../../../src'; + +import { getServer } from './server'; + +async function bootstrap() { + const server = getServer(); + await server.start(); +} + +bootstrap().catch((error: Error) => { + logger.error(error); + if (error.stack) { + logger.error(error.stack.split('\n')); + } + process.exit(1); +}); diff --git a/examples/12-replica-db-connection/src/server.ts b/examples/12-replica-db-connection/src/server.ts new file mode 100644 index 00000000..3ca418b0 --- /dev/null +++ b/examples/12-replica-db-connection/src/server.ts @@ -0,0 +1,31 @@ +import 'reflect-metadata'; + +import { BaseContext, Server } from '../../../src'; + +interface Context extends BaseContext { + user: { + email: string; + id: string; + permissions: string; + }; +} + +export function getServer(AppOptions = {}, dbOptions = {}) { + return new Server( + { + // Inject a fake user. In a real app you'd parse a JWT to add the user + context: () => { + return { + user: { + email: 'admin@test.com', + id: 'abc12345', + permissions: ['user:read', 'user:update', 'user:create', 'user:delete', 'photo:delete'] + } + }; + }, + connectDBReplica: true, + ...AppOptions + }, + dbOptions + ); +} diff --git a/examples/12-replica-db-connection/src/user.model.ts b/examples/12-replica-db-connection/src/user.model.ts new file mode 100644 index 00000000..9a9b3776 --- /dev/null +++ b/examples/12-replica-db-connection/src/user.model.ts @@ -0,0 +1,10 @@ +import { BaseModel, Model, StringField } from '../../../src'; + +@Model() +export class User extends BaseModel { + @StringField({ maxLength: 30 }) + firstName?: string; + + @StringField({ maxLength: 50, minLength: 2 }) + lastName?: string; +} diff --git a/examples/12-replica-db-connection/src/user.resolver.ts b/examples/12-replica-db-connection/src/user.resolver.ts new file mode 100644 index 00000000..fa121ba4 --- /dev/null +++ b/examples/12-replica-db-connection/src/user.resolver.ts @@ -0,0 +1,50 @@ +import { Arg, Args, Ctx, Mutation, Query, Resolver } from 'type-graphql'; +import { Inject } from 'typedi'; + +import { BaseContext, StandardDeleteResponse } from '../../../src'; +import { + UserCreateInput, + UserUpdateArgs, + UserWhereArgs, + UserWhereInput, + UserWhereUniqueInput +} from '../generated'; + +import { User } from './user.model'; +import { UserService } from './user.service'; + +@Resolver(User) +export class UserResolver { + constructor(@Inject('UserService') readonly userService: UserService) {} + + @Query(() => [User]) + async users(@Args() { where, orderBy, limit, offset }: UserWhereArgs): Promise { + return this.userService.find(where, orderBy, limit, offset); + } + + @Query(() => User) + async user(@Arg('where') where: UserWhereUniqueInput): Promise { + return this.userService.findOne(where); + } + + @Mutation(() => User) + async createUser(@Arg('data') data: UserCreateInput, @Ctx() ctx: BaseContext): Promise { + return this.userService.create(data, ctx.user.id); + } + + @Mutation(() => User) + async updateUser( + @Args() { data, where }: UserUpdateArgs, + @Ctx() ctx: BaseContext + ): Promise { + return this.userService.update(data, where, ctx.user.id); + } + + @Mutation(() => StandardDeleteResponse) + async deleteUser( + @Arg('where') where: UserWhereUniqueInput, + @Ctx() ctx: BaseContext + ): Promise { + return this.userService.delete(where, ctx.user.id); + } +} diff --git a/examples/12-replica-db-connection/src/user.service.ts b/examples/12-replica-db-connection/src/user.service.ts new file mode 100644 index 00000000..cbd0869a --- /dev/null +++ b/examples/12-replica-db-connection/src/user.service.ts @@ -0,0 +1,22 @@ +import { Service } from 'typedi'; +import { DeepPartial, Repository } from 'typeorm'; +import { InjectRepository } from 'typeorm-typedi-extensions'; + +import { BaseService } from '../../../src'; + +import { User } from './user.model'; + +@Service('UserService') +export class UserService extends BaseService { + constructor(@InjectRepository(User) protected readonly repository: Repository) { + super(User, repository); + } + + async create(data: DeepPartial, userId: string): Promise { + const newUser = await super.create(data, userId); + + // Perform some side effects + + return newUser; + } +} diff --git a/examples/12-replica-db-connection/tools/seed.ts b/examples/12-replica-db-connection/tools/seed.ts new file mode 100644 index 00000000..093f97de --- /dev/null +++ b/examples/12-replica-db-connection/tools/seed.ts @@ -0,0 +1,64 @@ +import * as Faker from 'faker'; + +import { getBindingError, logger } from '../../../src'; + +import { getServer } from '../src/server'; + +const NUM_USERS = 100; + +async function seedDatabase() { + const server = getServer({ introspection: true, openPlayground: false }); + + // NOTE: this has to be after we instantiate the server, because the server will actually load the environment variables from .env and set process.env.NODE_ENV + if (process.env.NODE_ENV !== 'development') { + throw 'Seeding only available in development environment'; + } + + await server.start(); + + let binding; + try { + binding = await server.getBinding(); + } catch (error) { + logger.error(error); + return process.exit(1); + } + + for (let index = 0; index < NUM_USERS; index++) { + const random = new Date() + .getTime() + .toString() + .substring(8, 13); + const firstName = `Faker.name.firstName() ${random}`; + const lastName = Faker.name.lastName(); + + try { + const user = await binding.mutation.createUser( + { + data: { + firstName, + lastName + } + }, + `{ id firstName lastName createdAt createdById }` + ); + logger.info(user.firstName); + } catch (err) { + const error = getBindingError(err); + logger.error(error); + logger.error(firstName); + } + } + + return server.stop(); +} + +seedDatabase() + .then(result => { + logger.info(result); + return process.exit(0); + }) + .catch(err => { + logger.error(err); + return process.exit(1); + }); diff --git a/examples/12-replica-db-connection/tsconfig.json b/examples/12-replica-db-connection/tsconfig.json new file mode 100644 index 00000000..1ca802c9 --- /dev/null +++ b/examples/12-replica-db-connection/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "src", + "lib": ["dom", "es5", "es6", "es7", "esnext", "esnext.asynciterable"], + "target": "es5", + "module": "commonjs", + "moduleResolution": "node", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "sourceMap": true, + "keyofStringsOnly": true, + "noImplicitAny": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "noUnusedLocals": false, // Avoid noise in our resolvers when we use DI + "strict": true, + "strictNullChecks": true, + "strictPropertyInitialization": false, + "types": ["jest", "isomorphic-fetch", "node"] + }, + "include": ["src/**/*"], + "exclude": ["node_modules/**/*", "generated/**/*"] +} diff --git a/examples/12-replica-db-connection/warthog.config.js b/examples/12-replica-db-connection/warthog.config.js new file mode 100644 index 00000000..66c945b0 --- /dev/null +++ b/examples/12-replica-db-connection/warthog.config.js @@ -0,0 +1,3 @@ +module.exports = { + moduleImportPath: '../../../src' +}; diff --git a/examples/12-replica-db-connection/yarn.lock b/examples/12-replica-db-connection/yarn.lock new file mode 100644 index 00000000..a9b9bdb5 --- /dev/null +++ b/examples/12-replica-db-connection/yarn.lock @@ -0,0 +1,3788 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@babel/code-frame@^7.0.0-beta.35": + version "7.5.5" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.5.5.tgz#bc0782f6d69f7b7d49531219699b988f669a8f9d" + integrity sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw== + dependencies: + "@babel/highlight" "^7.0.0" + +"@babel/highlight@^7.0.0": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.5.0.tgz#56d11312bd9248fa619591d02472be6e8cb32540" + integrity sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ== + dependencies: + chalk "^2.0.0" + esutils "^2.0.2" + js-tokens "^4.0.0" + +"@types/faker@^4.1.7": + version "4.1.7" + resolved "https://registry.yarnpkg.com/@types/faker/-/faker-4.1.7.tgz#27e8dff9bc0d11c798e7c4a414c4dbd3755a9a34" + integrity sha512-tq8puryvH3X1Stlg6mma27/BI2BOwcQOvg/uU7LH7dAsCnyfVEtUXTbcksMZgOA/BZur8rkn9C0CFEgpbxfTdA== + +"@types/isomorphic-fetch@^0.0.34": + version "0.0.34" + resolved "https://registry.yarnpkg.com/@types/isomorphic-fetch/-/isomorphic-fetch-0.0.34.tgz#3c3483e606c041378438e951464f00e4e60706d6" + integrity sha1-PDSD5gbAQTeEOOlRRk8A5OYHBtY= + +"@types/jest@^23.3.14": + version "23.3.14" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-23.3.14.tgz#37daaf78069e7948520474c87b80092ea912520a" + integrity sha512-Q5hTcfdudEL2yOmluA1zaSyPbzWPmJ3XfSWeP3RyoYvS9hnje1ZyagrZOuQ6+1nQC1Gw+7gap3pLNL3xL6UBug== + +"@types/node@^10.17.5": + version "10.17.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.5.tgz#c1920150f7b90708a7d0f3add12a06bc9123c055" + integrity sha512-RElZIr/7JreF1eY6oD5RF3kpmdcreuQPjg5ri4oQ5g9sq7YWU8HkfB3eH8GwAwxf5OaCh0VPi7r4N/yoTGelrA== + +abab@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz#623e2075e02eb2d3f2475e49f99c91846467907a" + integrity sha512-tsFzPpcttalNjFBCFMqsKYQcWxxen1pgJR56by//QwvJc4/OUS3kPOOttx2tSIfjsylB0pYu7f5D3K1RCxUnUg== + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +acorn-globals@^4.1.0: + version "4.3.4" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.3.4.tgz#9fa1926addc11c97308c4e66d7add0d40c3272e7" + integrity sha512-clfQEh21R+D0leSbUdWf3OcfqyaCSAQ8Ryq00bofSekfr9W8u1jyYZo6ir0xu9Gtcf7BjcHJpnbZH7JOCpP60A== + dependencies: + acorn "^6.0.1" + acorn-walk "^6.0.1" + +acorn-walk@^6.0.1: + version "6.2.0" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.2.0.tgz#123cb8f3b84c2171f1f7fb252615b1c78a6b1a8c" + integrity sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA== + +acorn@^5.5.3: + version "5.7.3" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279" + integrity sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw== + +acorn@^6.0.1: + version "6.3.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.3.0.tgz#0087509119ffa4fc0a0041d1e93a417e68cb856e" + integrity sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA== + +ajv@^6.5.5: + version "6.10.2" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.10.2.tgz#d3cea04d6b017b2894ad69040fec8b623eb4bd52" + integrity sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw== + dependencies: + fast-deep-equal "^2.0.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ansi-escapes@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" + integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= + +ansi-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" + integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= + +ansi-styles@^3.2.0, ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +anymatch@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" + integrity sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw== + dependencies: + micromatch "^3.1.4" + normalize-path "^2.1.1" + +append-transform@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-0.4.0.tgz#d76ebf8ca94d276e247a36bad44a4b74ab611991" + integrity sha1-126/jKlNJ24keja61EpLdKthGZE= + dependencies: + default-require-extensions "^1.0.0" + +aproba@^1.0.3: + version "1.2.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" + integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== + +are-we-there-yet@~1.1.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" + integrity sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w== + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.6" + +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +arr-diff@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" + integrity sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8= + dependencies: + arr-flatten "^1.0.1" + +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" + integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= + +arr-flatten@^1.0.1, arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" + integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= + +array-equal@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" + integrity sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM= + +array-unique@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" + integrity sha1-odl8yvy8JiXMcPrc6zalDFiwGlM= + +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" + integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= + +arrify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= + +asn1@~0.2.3: + version "0.2.4" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" + integrity sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg== + dependencies: + safer-buffer "~2.1.0" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= + +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= + +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== + +async-limiter@~1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" + integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== + +async@^2.1.4: + version "2.6.3" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff" + integrity sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg== + dependencies: + lodash "^4.17.14" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +atob@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" + integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== + +aws-sign2@~0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= + +aws4@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" + integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ== + +babel-code-frame@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" + integrity sha1-Y/1D99weO7fONZR9uP42mj9Yx0s= + dependencies: + chalk "^1.1.3" + esutils "^2.0.2" + js-tokens "^3.0.2" + +babel-core@^6.0.0, babel-core@^6.26.0: + version "6.26.3" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" + integrity sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA== + dependencies: + babel-code-frame "^6.26.0" + babel-generator "^6.26.0" + babel-helpers "^6.24.1" + babel-messages "^6.23.0" + babel-register "^6.26.0" + babel-runtime "^6.26.0" + babel-template "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + convert-source-map "^1.5.1" + debug "^2.6.9" + json5 "^0.5.1" + lodash "^4.17.4" + minimatch "^3.0.4" + path-is-absolute "^1.0.1" + private "^0.1.8" + slash "^1.0.0" + source-map "^0.5.7" + +babel-generator@^6.18.0, babel-generator@^6.26.0: + version "6.26.1" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" + integrity sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA== + dependencies: + babel-messages "^6.23.0" + babel-runtime "^6.26.0" + babel-types "^6.26.0" + detect-indent "^4.0.0" + jsesc "^1.3.0" + lodash "^4.17.4" + source-map "^0.5.7" + trim-right "^1.0.1" + +babel-helpers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" + integrity sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI= + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-jest@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-23.6.0.tgz#a644232366557a2240a0c083da6b25786185a2f1" + integrity sha512-lqKGG6LYXYu+DQh/slrQ8nxXQkEkhugdXsU6St7GmhVS7Ilc/22ArwqXNJrf0QaOBjZB0360qZMwXqDYQHXaew== + dependencies: + babel-plugin-istanbul "^4.1.6" + babel-preset-jest "^23.2.0" + +babel-messages@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" + integrity sha1-8830cDhYA1sqKVHG7F7fbGLyYw4= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-istanbul@^4.1.6: + version "4.1.6" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz#36c59b2192efce81c5b378321b74175add1c9a45" + integrity sha512-PWP9FQ1AhZhS01T/4qLSKoHGY/xvkZdVBGlKM/HuxxS3+sC66HhTNR7+MpbO/so/cz/wY94MeSWJuP1hXIPfwQ== + dependencies: + babel-plugin-syntax-object-rest-spread "^6.13.0" + find-up "^2.1.0" + istanbul-lib-instrument "^1.10.1" + test-exclude "^4.2.1" + +babel-plugin-jest-hoist@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz#e61fae05a1ca8801aadee57a6d66b8cefaf44167" + integrity sha1-5h+uBaHKiAGq3uV6bWa4zvr0QWc= + +babel-plugin-syntax-object-rest-spread@^6.13.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" + integrity sha1-/WU28rzhODb/o6VFjEkDpZe7O/U= + +babel-preset-jest@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz#8ec7a03a138f001a1a8fb1e8113652bf1a55da46" + integrity sha1-jsegOhOPABoaj7HoETZSvxpV2kY= + dependencies: + babel-plugin-jest-hoist "^23.2.0" + babel-plugin-syntax-object-rest-spread "^6.13.0" + +babel-register@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" + integrity sha1-btAhFz4vy0htestFxgCahW9kcHE= + dependencies: + babel-core "^6.26.0" + babel-runtime "^6.26.0" + core-js "^2.5.0" + home-or-tmp "^2.0.0" + lodash "^4.17.4" + mkdirp "^0.5.1" + source-map-support "^0.4.15" + +babel-runtime@^6.22.0, babel-runtime@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" + integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4= + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.11.0" + +babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" + integrity sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI= + dependencies: + babel-runtime "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + lodash "^4.17.4" + +babel-traverse@^6.0.0, babel-traverse@^6.18.0, babel-traverse@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" + integrity sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4= + dependencies: + babel-code-frame "^6.26.0" + babel-messages "^6.23.0" + babel-runtime "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + debug "^2.6.8" + globals "^9.18.0" + invariant "^2.2.2" + lodash "^4.17.4" + +babel-types@^6.0.0, babel-types@^6.18.0, babel-types@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" + integrity sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc= + dependencies: + babel-runtime "^6.26.0" + esutils "^2.0.2" + lodash "^4.17.4" + to-fast-properties "^1.0.3" + +babylon@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" + integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ== + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= + +base@^0.11.1: + version "0.11.2" + resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" + integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== + dependencies: + cache-base "^1.0.1" + class-utils "^0.3.5" + component-emitter "^1.2.1" + define-property "^1.0.0" + isobject "^3.0.1" + mixin-deep "^1.2.0" + pascalcase "^0.1.1" + +bcrypt-pbkdf@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" + integrity sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4= + dependencies: + tweetnacl "^0.14.3" + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@^1.8.2: + version "1.8.5" + resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" + integrity sha1-uneWLhLf+WnWt2cR6RS3N4V79qc= + dependencies: + expand-range "^1.8.1" + preserve "^0.2.0" + repeat-element "^1.1.2" + +braces@^2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" + integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== + dependencies: + arr-flatten "^1.1.0" + array-unique "^0.3.2" + extend-shallow "^2.0.1" + fill-range "^4.0.0" + isobject "^3.0.1" + repeat-element "^1.1.2" + snapdragon "^0.8.1" + snapdragon-node "^2.0.1" + split-string "^3.0.2" + to-regex "^3.0.1" + +browser-process-hrtime@^0.1.2: + version "0.1.3" + resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.3.tgz#616f00faef1df7ec1b5bf9cfe2bdc3170f26c7b4" + integrity sha512-bRFnI4NnjO6cnyLmOV/7PVoDEMJChlcfN0z4s1YMBY989/SvlfMI1lgCnkFUs53e9gQF+w7qu7XdllSTiSl8Aw== + +browser-resolve@^1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" + integrity sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ== + dependencies: + resolve "1.1.7" + +bs-logger@0.x: + version "0.2.6" + resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" + integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== + dependencies: + fast-json-stable-stringify "2.x" + +bser@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" + integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== + dependencies: + node-int64 "^0.4.0" + +buffer-from@1.x, buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== + +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" + integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== + dependencies: + collection-visit "^1.0.0" + component-emitter "^1.2.1" + get-value "^2.0.6" + has-value "^1.0.0" + isobject "^3.0.1" + set-value "^2.0.0" + to-object-path "^0.3.0" + union-value "^1.0.0" + unset-value "^1.0.0" + +callsites@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" + integrity sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA= + +camelcase@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" + integrity sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0= + +capture-exit@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-1.2.0.tgz#1c5fcc489fd0ab00d4f1ac7ae1072e3173fbab6f" + integrity sha1-HF/MSJ/QqwDU8ax64QcuMXP7q28= + dependencies: + rsvp "^3.3.3" + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= + +chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= + dependencies: + ansi-styles "^2.2.1" + escape-string-regexp "^1.0.2" + has-ansi "^2.0.0" + strip-ansi "^3.0.0" + supports-color "^2.0.0" + +chalk@^2.0.0, chalk@^2.0.1: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chownr@^1.1.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.3.tgz#42d837d5239688d55f303003a508230fa6727142" + integrity sha512-i70fVHhmV3DtTl6nqvZOnIjbY0Pe4kAUjwHj8z0zAdgBtYrJyYwLKCCuRBQ5ppkyL0AkN7HKRnETdmdp1zqNXw== + +ci-info@^1.5.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.6.0.tgz#2ca20dbb9ceb32d4524a683303313f0304b1e497" + integrity sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A== + +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" + integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" + +cliui@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" + integrity sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ== + dependencies: + string-width "^2.1.1" + strip-ansi "^4.0.0" + wrap-ansi "^2.0.0" + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= + +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" + integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + +combined-stream@^1.0.6, combined-stream@~1.0.6: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +commander@~2.20.3: + version "2.20.3" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== + +component-emitter@^1.2.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" + integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + +console-control-strings@^1.0.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= + +convert-source-map@^1.4.0, convert-source-map@^1.5.1: + version "1.7.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" + integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== + dependencies: + safe-buffer "~5.1.1" + +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" + integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= + +core-js@^2.4.0, core-js@^2.5.0: + version "2.6.10" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.10.tgz#8a5b8391f8cc7013da703411ce5b585706300d7f" + integrity sha512-I39t74+4t+zau64EN1fE5v2W31Adtc/REhzWN+gWRRXg6WH5qAsZm62DHpQ1+Yhe4047T55jvzz7MUqF/dBBlA== + +core-util-is@1.0.2, core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= + +cross-spawn@^6.0.0: + version "6.0.5" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" + integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== + dependencies: + nice-try "^1.0.4" + path-key "^2.0.1" + semver "^5.5.0" + shebang-command "^1.2.0" + which "^1.2.9" + +cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": + version "0.3.8" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" + integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== + +cssstyle@^1.0.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.4.0.tgz#9d31328229d3c565c61e586b02041a28fccdccf1" + integrity sha512-GBrLZYZ4X4x6/QEoBnIrqb8B/f5l4+8me2dkom/j1Gtbxy0kBv6OGzKuAsGM75bkGwGAFkt56Iwg28S3XTZgSA== + dependencies: + cssom "0.3.x" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + integrity sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA= + dependencies: + assert-plus "^1.0.0" + +data-urls@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-1.1.0.tgz#15ee0582baa5e22bb59c77140da8f9c76963bbfe" + integrity sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ== + dependencies: + abab "^2.0.0" + whatwg-mimetype "^2.2.0" + whatwg-url "^7.0.0" + +debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@^3.1.0, debug@^3.2.6: + version "3.2.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" + integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== + dependencies: + ms "^2.1.1" + +debug@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" + integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== + dependencies: + ms "^2.1.1" + +decamelize@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + +decode-uri-component@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" + integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= + +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== + +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= + +default-require-extensions@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-1.0.0.tgz#f37ea15d3e13ffd9b437d33e1a75b5fb97874cb8" + integrity sha1-836hXT4T/9m0N9M+GnW1+5eHTLg= + dependencies: + strip-bom "^2.0.0" + +define-properties@^1.1.2, define-properties@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== + dependencies: + object-keys "^1.0.12" + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" + integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" + integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= + dependencies: + is-descriptor "^1.0.0" + +define-property@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" + integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== + dependencies: + is-descriptor "^1.0.2" + isobject "^3.0.1" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + integrity sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o= + +detect-indent@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" + integrity sha1-920GQ1LN9Docts5hnE7jqUdd4gg= + dependencies: + repeating "^2.0.0" + +detect-libc@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" + integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups= + +detect-newline@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" + integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= + +diff@^3.2.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" + integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== + +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + +domexception@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" + integrity sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug== + dependencies: + webidl-conversions "^4.0.2" + +ecc-jsbn@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" + integrity sha1-OoOpBOVDUyh4dMVkt1SThoSamMk= + dependencies: + jsbn "~0.1.0" + safer-buffer "^2.1.0" + +end-of-stream@^1.1.0: + version "1.4.4" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" + +error-ex@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + dependencies: + is-arrayish "^0.2.1" + +es-abstract@^1.5.1: + version "1.16.0" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.16.0.tgz#d3a26dc9c3283ac9750dca569586e976d9dcc06d" + integrity sha512-xdQnfykZ9JMEiasTAJZJdMWCQ1Vm00NBw79/AWi7ELfZuuPCSOMDZbT9mkOfSctVtfhb+sAAzrm+j//GjjLHLg== + dependencies: + es-to-primitive "^1.2.0" + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.0" + is-callable "^1.1.4" + is-regex "^1.0.4" + object-inspect "^1.6.0" + object-keys "^1.1.1" + string.prototype.trimleft "^2.1.0" + string.prototype.trimright "^2.1.0" + +es-to-primitive@^1.2.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + +escodegen@^1.9.1: + version "1.12.0" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.12.0.tgz#f763daf840af172bb3a2b6dd7219c0e17f7ff541" + integrity sha512-TuA+EhsanGcme5T3R0L80u4t8CpbXQjegRmf7+FPTJrtCTErXFeelblRgHQa1FofEzqYYJmJ/OqjTwREp9qgmg== + dependencies: + esprima "^3.1.3" + estraverse "^4.2.0" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.6.1" + +esprima@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" + integrity sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM= + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +estraverse@^4.2.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" + integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +exec-sh@^0.2.0: + version "0.2.2" + resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.2.tgz#2a5e7ffcbd7d0ba2755bdecb16e5a427dfbdec36" + integrity sha512-FIUCJz1RbuS0FKTdaAafAByGS0CPvU3R0MeHxgtl+djzCc//F8HakL8GzmVNZanasTbTAY/3DRFA0KpVqj/eAw== + dependencies: + merge "^1.2.0" + +execa@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" + integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== + dependencies: + cross-spawn "^6.0.0" + get-stream "^4.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= + +expand-brackets@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" + integrity sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s= + dependencies: + is-posix-bracket "^0.1.0" + +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" + integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= + dependencies: + debug "^2.3.3" + define-property "^0.2.5" + extend-shallow "^2.0.1" + posix-character-classes "^0.1.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +expand-range@^1.8.1: + version "1.8.2" + resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" + integrity sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc= + dependencies: + fill-range "^2.1.0" + +expect@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-23.6.0.tgz#1e0c8d3ba9a581c87bd71fb9bc8862d443425f98" + integrity sha512-dgSoOHgmtn/aDGRVFWclQyPDKl2CQRq0hmIEoUAuQs/2rn2NcvCWcSCovm6BLeuB/7EZuLGu2QfnR+qRt5OM4w== + dependencies: + ansi-styles "^3.2.0" + jest-diff "^23.6.0" + jest-get-type "^22.1.0" + jest-matcher-utils "^23.6.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0, extend-shallow@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +extend@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== + +extglob@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" + integrity sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE= + dependencies: + is-extglob "^1.0.0" + +extglob@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" + integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== + dependencies: + array-unique "^0.3.2" + define-property "^1.0.0" + expand-brackets "^2.1.4" + extend-shallow "^2.0.1" + fragment-cache "^0.2.1" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU= + +extsprintf@^1.2.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" + integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= + +faker@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/faker/-/faker-4.1.0.tgz#1e45bbbecc6774b3c195fad2835109c6d748cc3f" + integrity sha1-HkW7vsxndLPBlfrSg1EJxtdIzD8= + +fast-deep-equal@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" + integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk= + +fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" + integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= + +fast-levenshtein@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + +fb-watchman@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" + integrity sha1-VOmr99+i8mzZsWNsWIwa/AXeXVg= + dependencies: + bser "^2.0.0" + +filename-regex@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" + integrity sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY= + +fileset@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/fileset/-/fileset-2.0.3.tgz#8e7548a96d3cc2327ee5e674168723a333bba2a0" + integrity sha1-jnVIqW08wjJ+5eZ0FocjozO7oqA= + dependencies: + glob "^7.0.3" + minimatch "^3.0.3" + +fill-range@^2.1.0: + version "2.2.4" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" + integrity sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q== + dependencies: + is-number "^2.1.0" + isobject "^2.0.0" + randomatic "^3.0.0" + repeat-element "^1.1.2" + repeat-string "^1.5.2" + +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" + integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + +find-up@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" + integrity sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8= + dependencies: + path-exists "^2.0.0" + pinkie-promise "^2.0.0" + +find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= + dependencies: + locate-path "^2.0.0" + +for-in@^1.0.1, for-in@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= + +for-own@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" + integrity sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4= + dependencies: + for-in "^1.0.1" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= + +form-data@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" + integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.6" + mime-types "^2.1.12" + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" + integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= + dependencies: + map-cache "^0.2.2" + +fs-minipass@^1.2.5: + version "1.2.7" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7" + integrity sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA== + dependencies: + minipass "^2.6.0" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +fsevents@^1.2.3: + version "1.2.9" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.9.tgz#3f5ed66583ccd6f400b5a00db6f7e861363e388f" + integrity sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw== + dependencies: + nan "^2.12.1" + node-pre-gyp "^0.12.0" + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +gauge@~2.7.3: + version "2.7.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + integrity sha1-LANAXHU4w51+s3sxcCLjJfsBi/c= + dependencies: + aproba "^1.0.3" + console-control-strings "^1.0.0" + has-unicode "^2.0.0" + object-assign "^4.1.0" + signal-exit "^3.0.0" + string-width "^1.0.1" + strip-ansi "^3.0.1" + wide-align "^1.1.0" + +get-caller-file@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" + integrity sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w== + +get-stream@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" + integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== + dependencies: + pump "^3.0.0" + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= + dependencies: + assert-plus "^1.0.0" + +glob-base@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" + integrity sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q= + dependencies: + glob-parent "^2.0.0" + is-glob "^2.0.0" + +glob-parent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + integrity sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg= + dependencies: + is-glob "^2.0.0" + +glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3: + version "7.1.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" + integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globals@^9.18.0: + version "9.18.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" + integrity sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ== + +graceful-fs@^4.1.11, graceful-fs@^4.1.2: + version "4.2.3" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423" + integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ== + +growly@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" + integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE= + +handlebars@^4.0.3, handlebars@^4.5.2: + version "4.5.2" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.5.2.tgz#5a4eb92ab5962ca3415ac188c86dc7f784f76a0f" + integrity sha512-29Zxv/cynYB7mkT1rVWQnV7mGX6v7H/miQ6dbEpYTKq5eJBN7PsRB+ViYJlcT6JINTSu4dVB9kOqEun78h6Exg== + dependencies: + neo-async "^2.6.0" + optimist "^0.6.1" + source-map "^0.6.1" + optionalDependencies: + uglify-js "^3.1.4" + +har-schema@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI= + +har-validator@~5.1.0: + version "5.1.3" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz#1ef89ebd3e4996557675eed9893110dc350fa080" + integrity sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g== + dependencies: + ajv "^6.5.5" + har-schema "^2.0.0" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + integrity sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE= + dependencies: + ansi-regex "^2.0.0" + +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + integrity sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo= + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + +has-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" + integrity sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q= + +has-unicode@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk= + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" + integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" + integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" + integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" + integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" + +has@^1.0.1, has@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +home-or-tmp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" + integrity sha1-42w/LSyufXRqhX440Y1fMqeILbg= + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.1" + +hosted-git-info@^2.1.4: + version "2.8.5" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.5.tgz#759cfcf2c4d156ade59b0b2dfabddc42a6b9c70c" + integrity sha512-kssjab8CvdXfcXMXVcvsXum4Hwdq9XGtRD3TteMEvEbq0LXyiNQr6AprqKqfeaDXze7SxWvRxdpwE6ku7ikLkg== + +html-encoding-sniffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" + integrity sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw== + dependencies: + whatwg-encoding "^1.0.1" + +http-signature@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + integrity sha1-muzZJRFHcvPZW2WmCruPfBj7rOE= + dependencies: + assert-plus "^1.0.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +iconv-lite@0.4.24, iconv-lite@^0.4.4: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ignore-walk@^3.0.1: + version "3.0.3" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.3.tgz#017e2447184bfeade7c238e4aefdd1e8f95b1e37" + integrity sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw== + dependencies: + minimatch "^3.0.4" + +import-local@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-1.0.0.tgz#5e4ffdc03f4fe6c009c6729beb29631c2f8227bc" + integrity sha512-vAaZHieK9qjGo58agRBg+bhHX3hoTZU/Oa3GESWLz7t1U62fk63aHuDJJEteXoDeTCcPmUT+z38gkHPZkkmpmQ== + dependencies: + pkg-dir "^2.0.0" + resolve-cwd "^2.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@~2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +ini@~1.3.0: + version "1.3.5" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== + +invariant@^2.2.2, invariant@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" + integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== + dependencies: + loose-envify "^1.0.0" + +invert-kv@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-2.0.0.tgz#7393f5afa59ec9ff5f67a27620d11c226e3eec02" + integrity sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA== + +is-accessor-descriptor@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" + integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= + dependencies: + kind-of "^3.0.2" + +is-accessor-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" + integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== + dependencies: + kind-of "^6.0.0" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= + +is-buffer@^1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" + integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== + +is-callable@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" + integrity sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA== + +is-ci@^1.0.10: + version "1.2.1" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.2.1.tgz#e3779c8ee17fccf428488f6e281187f2e632841c" + integrity sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg== + dependencies: + ci-info "^1.5.0" + +is-data-descriptor@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" + integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= + dependencies: + kind-of "^3.0.2" + +is-data-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" + integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== + dependencies: + kind-of "^6.0.0" + +is-date-object@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" + integrity sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY= + +is-descriptor@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" + integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== + dependencies: + is-accessor-descriptor "^0.1.6" + is-data-descriptor "^0.1.4" + kind-of "^5.0.0" + +is-descriptor@^1.0.0, is-descriptor@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" + integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== + dependencies: + is-accessor-descriptor "^1.0.0" + is-data-descriptor "^1.0.0" + kind-of "^6.0.2" + +is-dotfile@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" + integrity sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE= + +is-equal-shallow@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" + integrity sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ= + dependencies: + is-primitive "^2.0.0" + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== + dependencies: + is-plain-object "^2.0.4" + +is-extglob@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" + integrity sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA= + +is-finite@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" + integrity sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko= + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + integrity sha1-754xOG8DGn8NZDr4L95QxFfvAMs= + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= + +is-generator-fn@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-1.0.0.tgz#969d49e1bb3329f6bb7f09089be26578b2ddd46a" + integrity sha1-lp1J4bszKfa7fwkIm+JleLLd1Go= + +is-glob@^2.0.0, is-glob@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" + integrity sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM= + dependencies: + is-extglob "^1.0.0" + +is-number@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" + integrity sha1-Afy7s5NGOlSPL0ZszhbezknbkI8= + dependencies: + kind-of "^3.0.2" + +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= + dependencies: + kind-of "^3.0.2" + +is-number@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" + integrity sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ== + +is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== + dependencies: + isobject "^3.0.1" + +is-posix-bracket@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" + integrity sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q= + +is-primitive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" + integrity sha1-IHurkWOEmcB7Kt8kCkGochADRXU= + +is-regex@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" + integrity sha1-VRdIm1RwkbCTDglWVM7SXul+lJE= + dependencies: + has "^1.0.1" + +is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= + +is-symbol@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.2.tgz#a055f6ae57192caee329e7a860118b497a950f38" + integrity sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw== + dependencies: + has-symbols "^1.0.0" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +is-utf8@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI= + +is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== + +is-wsl@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" + integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0= + +isarray@1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= + dependencies: + isarray "1.0.0" + +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= + +istanbul-api@^1.3.1: + version "1.3.7" + resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.3.7.tgz#a86c770d2b03e11e3f778cd7aedd82d2722092aa" + integrity sha512-4/ApBnMVeEPG3EkSzcw25wDe4N66wxwn+KKn6b47vyek8Xb3NBAcg4xfuQbS7BqcZuTX4wxfD5lVagdggR3gyA== + dependencies: + async "^2.1.4" + fileset "^2.0.2" + istanbul-lib-coverage "^1.2.1" + istanbul-lib-hook "^1.2.2" + istanbul-lib-instrument "^1.10.2" + istanbul-lib-report "^1.1.5" + istanbul-lib-source-maps "^1.2.6" + istanbul-reports "^1.5.1" + js-yaml "^3.7.0" + mkdirp "^0.5.1" + once "^1.4.0" + +istanbul-lib-coverage@^1.2.0, istanbul-lib-coverage@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.1.tgz#ccf7edcd0a0bb9b8f729feeb0930470f9af664f0" + integrity sha512-PzITeunAgyGbtY1ibVIUiV679EFChHjoMNRibEIobvmrCRaIgwLxNucOSimtNWUhEib/oO7QY2imD75JVgCJWQ== + +istanbul-lib-hook@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.2.2.tgz#bc6bf07f12a641fbf1c85391d0daa8f0aea6bf86" + integrity sha512-/Jmq7Y1VeHnZEQ3TL10VHyb564mn6VrQXHchON9Jf/AEcmQ3ZIiyD1BVzNOKTZf/G3gE+kiGK6SmpF9y3qGPLw== + dependencies: + append-transform "^0.4.0" + +istanbul-lib-instrument@^1.10.1, istanbul-lib-instrument@^1.10.2: + version "1.10.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.2.tgz#1f55ed10ac3c47f2bdddd5307935126754d0a9ca" + integrity sha512-aWHxfxDqvh/ZlxR8BBaEPVSWDPUkGD63VjGQn3jcw8jCp7sHEMKcrj4xfJn/ABzdMEHiQNyvDQhqm5o8+SQg7A== + dependencies: + babel-generator "^6.18.0" + babel-template "^6.16.0" + babel-traverse "^6.18.0" + babel-types "^6.18.0" + babylon "^6.18.0" + istanbul-lib-coverage "^1.2.1" + semver "^5.3.0" + +istanbul-lib-report@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.1.5.tgz#f2a657fc6282f96170aaf281eb30a458f7f4170c" + integrity sha512-UsYfRMoi6QO/doUshYNqcKJqVmFe9w51GZz8BS3WB0lYxAllQYklka2wP9+dGZeHYaWIdcXUx8JGdbqaoXRXzw== + dependencies: + istanbul-lib-coverage "^1.2.1" + mkdirp "^0.5.1" + path-parse "^1.0.5" + supports-color "^3.1.2" + +istanbul-lib-source-maps@^1.2.4, istanbul-lib-source-maps@^1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.6.tgz#37b9ff661580f8fca11232752ee42e08c6675d8f" + integrity sha512-TtbsY5GIHgbMsMiRw35YBHGpZ1DVFEO19vxxeiDMYaeOFOCzfnYVxvl6pOUIZR4dtPhAGpSMup8OyF8ubsaqEg== + dependencies: + debug "^3.1.0" + istanbul-lib-coverage "^1.2.1" + mkdirp "^0.5.1" + rimraf "^2.6.1" + source-map "^0.5.3" + +istanbul-reports@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.5.1.tgz#97e4dbf3b515e8c484caea15d6524eebd3ff4e1a" + integrity sha512-+cfoZ0UXzWjhAdzosCPP3AN8vvef8XDkWtTfgaN+7L3YTpNYITnCaEkceo5SEYy644VkHka/P1FvkWvrG/rrJw== + dependencies: + handlebars "^4.0.3" + +jest-changed-files@^23.4.2: + version "23.4.2" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-23.4.2.tgz#1eed688370cd5eebafe4ae93d34bb3b64968fe83" + integrity sha512-EyNhTAUWEfwnK0Is/09LxoqNDOn7mU7S3EHskG52djOFS/z+IT0jT3h3Ql61+dklcG7bJJitIWEMB4Sp1piHmA== + dependencies: + throat "^4.0.0" + +jest-cli@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-23.6.0.tgz#61ab917744338f443ef2baa282ddffdd658a5da4" + integrity sha512-hgeD1zRUp1E1zsiyOXjEn4LzRLWdJBV//ukAHGlx6s5mfCNJTbhbHjgxnDUXA8fsKWN/HqFFF6X5XcCwC/IvYQ== + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.2" + graceful-fs "^4.1.11" + import-local "^1.0.0" + is-ci "^1.0.10" + istanbul-api "^1.3.1" + istanbul-lib-coverage "^1.2.0" + istanbul-lib-instrument "^1.10.1" + istanbul-lib-source-maps "^1.2.4" + jest-changed-files "^23.4.2" + jest-config "^23.6.0" + jest-environment-jsdom "^23.4.0" + jest-get-type "^22.1.0" + jest-haste-map "^23.6.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + jest-resolve-dependencies "^23.6.0" + jest-runner "^23.6.0" + jest-runtime "^23.6.0" + jest-snapshot "^23.6.0" + jest-util "^23.4.0" + jest-validate "^23.6.0" + jest-watcher "^23.4.0" + jest-worker "^23.2.0" + micromatch "^2.3.11" + node-notifier "^5.2.1" + prompts "^0.1.9" + realpath-native "^1.0.0" + rimraf "^2.5.4" + slash "^1.0.0" + string-length "^2.0.0" + strip-ansi "^4.0.0" + which "^1.2.12" + yargs "^11.0.0" + +jest-config@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-23.6.0.tgz#f82546a90ade2d8c7026fbf6ac5207fc22f8eb1d" + integrity sha512-i8V7z9BeDXab1+VNo78WM0AtWpBRXJLnkT+lyT+Slx/cbP5sZJ0+NDuLcmBE5hXAoK0aUp7vI+MOxR+R4d8SRQ== + dependencies: + babel-core "^6.0.0" + babel-jest "^23.6.0" + chalk "^2.0.1" + glob "^7.1.1" + jest-environment-jsdom "^23.4.0" + jest-environment-node "^23.4.0" + jest-get-type "^22.1.0" + jest-jasmine2 "^23.6.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.6.0" + jest-util "^23.4.0" + jest-validate "^23.6.0" + micromatch "^2.3.11" + pretty-format "^23.6.0" + +jest-diff@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-23.6.0.tgz#1500f3f16e850bb3d71233408089be099f610c7d" + integrity sha512-Gz9l5Ov+X3aL5L37IT+8hoCUsof1CVYBb2QEkOupK64XyRR3h+uRpYIm97K7sY8diFxowR8pIGEdyfMKTixo3g== + dependencies: + chalk "^2.0.1" + diff "^3.2.0" + jest-get-type "^22.1.0" + pretty-format "^23.6.0" + +jest-docblock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-23.2.0.tgz#f085e1f18548d99fdd69b20207e6fd55d91383a7" + integrity sha1-8IXh8YVI2Z/dabICB+b9VdkTg6c= + dependencies: + detect-newline "^2.1.0" + +jest-each@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-23.6.0.tgz#ba0c3a82a8054387016139c733a05242d3d71575" + integrity sha512-x7V6M/WGJo6/kLoissORuvLIeAoyo2YqLOoCDkohgJ4XOXSqOtyvr8FbInlAWS77ojBsZrafbozWoKVRdtxFCg== + dependencies: + chalk "^2.0.1" + pretty-format "^23.6.0" + +jest-environment-jsdom@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-23.4.0.tgz#056a7952b3fea513ac62a140a2c368c79d9e6023" + integrity sha1-BWp5UrP+pROsYqFAosNox52eYCM= + dependencies: + jest-mock "^23.2.0" + jest-util "^23.4.0" + jsdom "^11.5.1" + +jest-environment-node@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-23.4.0.tgz#57e80ed0841dea303167cce8cd79521debafde10" + integrity sha1-V+gO0IQd6jAxZ8zozXlSHeuv3hA= + dependencies: + jest-mock "^23.2.0" + jest-util "^23.4.0" + +jest-get-type@^22.1.0: + version "22.4.3" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.4.3.tgz#e3a8504d8479342dd4420236b322869f18900ce4" + integrity sha512-/jsz0Y+V29w1chdXVygEKSz2nBoHoYqNShPe+QgxSNjAuP1i8+k4LbQNrfoliKej0P45sivkSCh7yiD6ubHS3w== + +jest-haste-map@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-23.6.0.tgz#2e3eb997814ca696d62afdb3f2529f5bbc935e16" + integrity sha512-uyNhMyl6dr6HaXGHp8VF7cK6KpC6G9z9LiMNsst+rJIZ8l7wY0tk8qwjPmEghczojZ2/ZhtEdIabZ0OQRJSGGg== + dependencies: + fb-watchman "^2.0.0" + graceful-fs "^4.1.11" + invariant "^2.2.4" + jest-docblock "^23.2.0" + jest-serializer "^23.0.1" + jest-worker "^23.2.0" + micromatch "^2.3.11" + sane "^2.0.0" + +jest-jasmine2@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-23.6.0.tgz#840e937f848a6c8638df24360ab869cc718592e0" + integrity sha512-pe2Ytgs1nyCs8IvsEJRiRTPC0eVYd8L/dXJGU08GFuBwZ4sYH/lmFDdOL3ZmvJR8QKqV9MFuwlsAi/EWkFUbsQ== + dependencies: + babel-traverse "^6.0.0" + chalk "^2.0.1" + co "^4.6.0" + expect "^23.6.0" + is-generator-fn "^1.0.0" + jest-diff "^23.6.0" + jest-each "^23.6.0" + jest-matcher-utils "^23.6.0" + jest-message-util "^23.4.0" + jest-snapshot "^23.6.0" + jest-util "^23.4.0" + pretty-format "^23.6.0" + +jest-leak-detector@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-23.6.0.tgz#e4230fd42cf381a1a1971237ad56897de7e171de" + integrity sha512-f/8zA04rsl1Nzj10HIyEsXvYlMpMPcy0QkQilVZDFOaPbv2ur71X5u2+C4ZQJGyV/xvVXtCCZ3wQ99IgQxftCg== + dependencies: + pretty-format "^23.6.0" + +jest-matcher-utils@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-23.6.0.tgz#726bcea0c5294261a7417afb6da3186b4b8cac80" + integrity sha512-rosyCHQfBcol4NsckTn01cdelzWLU9Cq7aaigDf8VwwpIRvWE/9zLgX2bON+FkEW69/0UuYslUe22SOdEf2nog== + dependencies: + chalk "^2.0.1" + jest-get-type "^22.1.0" + pretty-format "^23.6.0" + +jest-message-util@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-23.4.0.tgz#17610c50942349508d01a3d1e0bda2c079086a9f" + integrity sha1-F2EMUJQjSVCNAaPR4L2iwHkIap8= + dependencies: + "@babel/code-frame" "^7.0.0-beta.35" + chalk "^2.0.1" + micromatch "^2.3.11" + slash "^1.0.0" + stack-utils "^1.0.1" + +jest-mock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-23.2.0.tgz#ad1c60f29e8719d47c26e1138098b6d18b261134" + integrity sha1-rRxg8p6HGdR8JuETgJi20YsmETQ= + +jest-regex-util@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-23.3.0.tgz#5f86729547c2785c4002ceaa8f849fe8ca471bc5" + integrity sha1-X4ZylUfCeFxAAs6qj4Sf6MpHG8U= + +jest-resolve-dependencies@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-23.6.0.tgz#b4526af24c8540d9a3fab102c15081cf509b723d" + integrity sha512-EkQWkFWjGKwRtRyIwRwI6rtPAEyPWlUC2MpzHissYnzJeHcyCn1Hc8j7Nn1xUVrS5C6W5+ZL37XTem4D4pLZdA== + dependencies: + jest-regex-util "^23.3.0" + jest-snapshot "^23.6.0" + +jest-resolve@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-23.6.0.tgz#cf1d1a24ce7ee7b23d661c33ba2150f3aebfa0ae" + integrity sha512-XyoRxNtO7YGpQDmtQCmZjum1MljDqUCob7XlZ6jy9gsMugHdN2hY4+Acz9Qvjz2mSsOnPSH7skBmDYCHXVZqkA== + dependencies: + browser-resolve "^1.11.3" + chalk "^2.0.1" + realpath-native "^1.0.0" + +jest-runner@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-23.6.0.tgz#3894bd219ffc3f3cb94dc48a4170a2e6f23a5a38" + integrity sha512-kw0+uj710dzSJKU6ygri851CObtCD9cN8aNkg8jWJf4ewFyEa6kwmiH/r/M1Ec5IL/6VFa0wnAk6w+gzUtjJzA== + dependencies: + exit "^0.1.2" + graceful-fs "^4.1.11" + jest-config "^23.6.0" + jest-docblock "^23.2.0" + jest-haste-map "^23.6.0" + jest-jasmine2 "^23.6.0" + jest-leak-detector "^23.6.0" + jest-message-util "^23.4.0" + jest-runtime "^23.6.0" + jest-util "^23.4.0" + jest-worker "^23.2.0" + source-map-support "^0.5.6" + throat "^4.0.0" + +jest-runtime@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-23.6.0.tgz#059e58c8ab445917cd0e0d84ac2ba68de8f23082" + integrity sha512-ycnLTNPT2Gv+TRhnAYAQ0B3SryEXhhRj1kA6hBPSeZaNQkJ7GbZsxOLUkwg6YmvWGdX3BB3PYKFLDQCAE1zNOw== + dependencies: + babel-core "^6.0.0" + babel-plugin-istanbul "^4.1.6" + chalk "^2.0.1" + convert-source-map "^1.4.0" + exit "^0.1.2" + fast-json-stable-stringify "^2.0.0" + graceful-fs "^4.1.11" + jest-config "^23.6.0" + jest-haste-map "^23.6.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.6.0" + jest-snapshot "^23.6.0" + jest-util "^23.4.0" + jest-validate "^23.6.0" + micromatch "^2.3.11" + realpath-native "^1.0.0" + slash "^1.0.0" + strip-bom "3.0.0" + write-file-atomic "^2.1.0" + yargs "^11.0.0" + +jest-serializer@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-23.0.1.tgz#a3776aeb311e90fe83fab9e533e85102bd164165" + integrity sha1-o3dq6zEekP6D+rnlM+hRAr0WQWU= + +jest-snapshot@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-23.6.0.tgz#f9c2625d1b18acda01ec2d2b826c0ce58a5aa17a" + integrity sha512-tM7/Bprftun6Cvj2Awh/ikS7zV3pVwjRYU2qNYS51VZHgaAMBs5l4o/69AiDHhQrj5+LA2Lq4VIvK7zYk/bswg== + dependencies: + babel-types "^6.0.0" + chalk "^2.0.1" + jest-diff "^23.6.0" + jest-matcher-utils "^23.6.0" + jest-message-util "^23.4.0" + jest-resolve "^23.6.0" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + pretty-format "^23.6.0" + semver "^5.5.0" + +jest-util@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-23.4.0.tgz#4d063cb927baf0a23831ff61bec2cbbf49793561" + integrity sha1-TQY8uSe68KI4Mf9hvsLLv0l5NWE= + dependencies: + callsites "^2.0.0" + chalk "^2.0.1" + graceful-fs "^4.1.11" + is-ci "^1.0.10" + jest-message-util "^23.4.0" + mkdirp "^0.5.1" + slash "^1.0.0" + source-map "^0.6.0" + +jest-validate@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-23.6.0.tgz#36761f99d1ed33fcd425b4e4c5595d62b6597474" + integrity sha512-OFKapYxe72yz7agrDAWi8v2WL8GIfVqcbKRCLbRG9PAxtzF9b1SEDdTpytNDN12z2fJynoBwpMpvj2R39plI2A== + dependencies: + chalk "^2.0.1" + jest-get-type "^22.1.0" + leven "^2.1.0" + pretty-format "^23.6.0" + +jest-watcher@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-23.4.0.tgz#d2e28ce74f8dad6c6afc922b92cabef6ed05c91c" + integrity sha1-0uKM50+NrWxq/JIrksq+9u0FyRw= + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.1" + string-length "^2.0.0" + +jest-worker@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-23.2.0.tgz#faf706a8da36fae60eb26957257fa7b5d8ea02b9" + integrity sha1-+vcGqNo2+uYOsmlXJX+ntdjqArk= + dependencies: + merge-stream "^1.0.1" + +jest@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-23.6.0.tgz#ad5835e923ebf6e19e7a1d7529a432edfee7813d" + integrity sha512-lWzcd+HSiqeuxyhG+EnZds6iO3Y3ZEnMrfZq/OTGvF/C+Z4fPMCdhWTGSAiO2Oym9rbEXfwddHhh6jqrTF3+Lw== + dependencies: + import-local "^1.0.0" + jest-cli "^23.6.0" + +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-tokens@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" + integrity sha1-mGbfOVECEw449/mWvOtlRDIJwls= + +js-yaml@^3.7.0: + version "3.13.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" + integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= + +jsdom@^11.5.1: + version "11.12.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.12.0.tgz#1a80d40ddd378a1de59656e9e6dc5a3ba8657bc8" + integrity sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw== + dependencies: + abab "^2.0.0" + acorn "^5.5.3" + acorn-globals "^4.1.0" + array-equal "^1.0.0" + cssom ">= 0.3.2 < 0.4.0" + cssstyle "^1.0.0" + data-urls "^1.0.0" + domexception "^1.0.1" + escodegen "^1.9.1" + html-encoding-sniffer "^1.0.2" + left-pad "^1.3.0" + nwsapi "^2.0.7" + parse5 "4.0.0" + pn "^1.1.0" + request "^2.87.0" + request-promise-native "^1.0.5" + sax "^1.2.4" + symbol-tree "^3.2.2" + tough-cookie "^2.3.4" + w3c-hr-time "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-encoding "^1.0.3" + whatwg-mimetype "^2.1.0" + whatwg-url "^6.4.1" + ws "^5.2.0" + xml-name-validator "^3.0.0" + +jsesc@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" + integrity sha1-RsP+yMGJKxKwgz25vHYiF226s0s= + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= + +json5@2.x: + version "2.1.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.1.tgz#81b6cb04e9ba496f1c7005d07b4368a2638f90b6" + integrity sha512-l+3HXD0GEI3huGq1njuqtzYK8OYJyXMkOLtQ53pjWh89tvWS2h6l+1zMkYWqlb57+SiQodKZyvMEFb2X+KrFhQ== + dependencies: + minimist "^1.2.0" + +json5@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= + +jsprim@^1.2.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + integrity sha1-MT5mvB5cwG5Di8G3SZwuXFastqI= + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.2.3" + verror "1.10.0" + +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" + integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= + dependencies: + is-buffer "^1.1.5" + +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= + dependencies: + is-buffer "^1.1.5" + +kind-of@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" + integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== + +kind-of@^6.0.0, kind-of@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" + integrity sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA== + +kleur@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-2.0.2.tgz#b704f4944d95e255d038f0cb05fb8a602c55a300" + integrity sha512-77XF9iTllATmG9lSlIv0qdQ2BQ/h9t0bJllHlbvsQ0zUWfU7Yi0S8L5JXzPZgkefIiajLmBJJ4BsMJmqcf7oxQ== + +lcid@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-2.0.0.tgz#6ef5d2df60e52f82eb228a4c373e8d1f397253cf" + integrity sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA== + dependencies: + invert-kv "^2.0.0" + +left-pad@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" + integrity sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA== + +leven@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" + integrity sha1-wuep93IJTe6dNCAq6KzORoeHVYA= + +levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +load-json-file@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" + integrity sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA= + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + pinkie-promise "^2.0.0" + strip-bom "^2.0.0" + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= + +lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.4: + version "4.17.15" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" + integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== + +loose-envify@^1.0.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" + integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== + dependencies: + js-tokens "^3.0.0 || ^4.0.0" + +make-error@1.x, make-error@^1.1.1: + version "1.3.5" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.5.tgz#efe4e81f6db28cadd605c70f29c831b58ef776c8" + integrity sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g== + +makeerror@1.0.x: + version "1.0.11" + resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" + integrity sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw= + dependencies: + tmpl "1.0.x" + +map-age-cleaner@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz#7d583a7306434c055fe474b0f45078e6e1b4b92a" + integrity sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w== + dependencies: + p-defer "^1.0.0" + +map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" + integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= + +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" + integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= + dependencies: + object-visit "^1.0.0" + +math-random@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.4.tgz#5dd6943c938548267016d4e34f057583080c514c" + integrity sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A== + +mem@^4.0.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/mem/-/mem-4.3.0.tgz#461af497bc4ae09608cdb2e60eefb69bff744178" + integrity sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w== + dependencies: + map-age-cleaner "^0.1.1" + mimic-fn "^2.0.0" + p-is-promise "^2.0.0" + +merge-stream@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-1.0.1.tgz#4041202d508a342ba00174008df0c251b8c135e1" + integrity sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE= + dependencies: + readable-stream "^2.0.1" + +merge@^1.2.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.1.tgz#38bebf80c3220a8a487b6fcfb3941bb11720c145" + integrity sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ== + +micromatch@^2.3.11: + version "2.3.11" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" + integrity sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU= + dependencies: + arr-diff "^2.0.0" + array-unique "^0.2.1" + braces "^1.8.2" + expand-brackets "^0.1.4" + extglob "^0.3.1" + filename-regex "^2.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.1" + kind-of "^3.0.2" + normalize-path "^2.0.1" + object.omit "^2.0.0" + parse-glob "^3.0.4" + regex-cache "^0.4.2" + +micromatch@^3.1.4: + version "3.1.10" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" + integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + braces "^2.3.1" + define-property "^2.0.2" + extend-shallow "^3.0.2" + extglob "^2.0.4" + fragment-cache "^0.2.1" + kind-of "^6.0.2" + nanomatch "^1.2.9" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.2" + +mime-db@1.42.0: + version "1.42.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.42.0.tgz#3e252907b4c7adb906597b4b65636272cf9e7bac" + integrity sha512-UbfJCR4UAVRNgMpfImz05smAXK7+c+ZntjaA26ANtkXLlOe947Aag5zdIcKQULAiF9Cq4WxBi9jUs5zkA84bYQ== + +mime-types@^2.1.12, mime-types@~2.1.19: + version "2.1.25" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.25.tgz#39772d46621f93e2a80a856c53b86a62156a6437" + integrity sha512-5KhStqB5xpTAeGqKBAMgwaYMnQik7teQN4IAzC7npDv6kzeU6prfkR67bc87J1kWMPGkoaZSq1npmexMgkmEVg== + dependencies: + mime-db "1.42.0" + +mimic-fn@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +minimatch@^3.0.3, minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== + dependencies: + brace-expansion "^1.1.7" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= + +minimist@^1.1.1, minimist@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= + +minimist@~0.0.1: + version "0.0.10" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" + integrity sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8= + +minipass@^2.6.0, minipass@^2.8.6, minipass@^2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.9.0.tgz#e713762e7d3e32fed803115cf93e04bca9fcc9a6" + integrity sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg== + dependencies: + safe-buffer "^5.1.2" + yallist "^3.0.0" + +minizlib@^1.2.1: + version "1.3.3" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.3.3.tgz#2290de96818a34c29551c8a8d301216bd65a861d" + integrity sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q== + dependencies: + minipass "^2.9.0" + +mixin-deep@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" + integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" + +mkdirp@0.x, mkdirp@^0.5.0, mkdirp@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= + dependencies: + minimist "0.0.8" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + +ms@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +nan@^2.12.1: + version "2.14.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c" + integrity sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg== + +nanomatch@^1.2.9: + version "1.2.13" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" + integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + define-property "^2.0.2" + extend-shallow "^3.0.2" + fragment-cache "^0.2.1" + is-windows "^1.0.2" + kind-of "^6.0.2" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + +needle@^2.2.1: + version "2.4.0" + resolved "https://registry.yarnpkg.com/needle/-/needle-2.4.0.tgz#6833e74975c444642590e15a750288c5f939b57c" + integrity sha512-4Hnwzr3mi5L97hMYeNl8wRW/Onhy4nUKR/lVemJ8gJedxxUyBLm9kkrDColJvoSfwi0jCNhD+xCdOtiGDQiRZg== + dependencies: + debug "^3.2.6" + iconv-lite "^0.4.4" + sax "^1.2.4" + +neo-async@^2.6.0: + version "2.6.1" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c" + integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw== + +nice-try@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" + integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== + +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" + integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= + +node-notifier@^5.2.1: + version "5.4.3" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.4.3.tgz#cb72daf94c93904098e28b9c590fd866e464bd50" + integrity sha512-M4UBGcs4jeOK9CjTsYwkvH6/MzuUmGCyTW+kCY7uO+1ZVr0+FHGdPdIf5CCLqAaxnRrWidyoQlNkMIIVwbKB8Q== + dependencies: + growly "^1.3.0" + is-wsl "^1.1.0" + semver "^5.5.0" + shellwords "^0.1.1" + which "^1.3.0" + +node-pre-gyp@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.12.0.tgz#39ba4bb1439da030295f899e3b520b7785766149" + integrity sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A== + dependencies: + detect-libc "^1.0.2" + mkdirp "^0.5.1" + needle "^2.2.1" + nopt "^4.0.1" + npm-packlist "^1.1.6" + npmlog "^4.0.2" + rc "^1.2.7" + rimraf "^2.6.1" + semver "^5.3.0" + tar "^4" + +nopt@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" + integrity sha1-0NRoWv1UFRk8jHUFYC0NF81kR00= + dependencies: + abbrev "1" + osenv "^0.1.4" + +normalize-package-data@^2.3.2: + version "2.5.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" + integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== + dependencies: + hosted-git-info "^2.1.4" + resolve "^1.10.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-path@^2.0.1, normalize-path@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= + dependencies: + remove-trailing-separator "^1.0.1" + +npm-bundled@^1.0.1: + version "1.0.6" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.6.tgz#e7ba9aadcef962bb61248f91721cd932b3fe6bdd" + integrity sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g== + +npm-packlist@^1.1.6: + version "1.4.6" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.6.tgz#53ba3ed11f8523079f1457376dd379ee4ea42ff4" + integrity sha512-u65uQdb+qwtGvEJh/DgQgW1Xg7sqeNbmxYyrvlNznaVTjV3E5P6F/EFjM+BVHXl7JJlsdG8A64M0XI8FI/IOlg== + dependencies: + ignore-walk "^3.0.1" + npm-bundled "^1.0.1" + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + integrity sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8= + dependencies: + path-key "^2.0.0" + +npmlog@^4.0.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" + integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== + dependencies: + are-we-there-yet "~1.1.2" + console-control-strings "~1.1.0" + gauge "~2.7.3" + set-blocking "~2.0.0" + +number-is-nan@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= + +nwsapi@^2.0.7: + version "2.2.0" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" + integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ== + +oauth-sign@~0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== + +object-assign@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= + +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" + integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-inspect@^1.6.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz#f4f6bd181ad77f006b5ece60bd0b6f398ff74a67" + integrity sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw== + +object-keys@^1.0.12, object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" + integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= + dependencies: + isobject "^3.0.0" + +object.getownpropertydescriptors@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" + integrity sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY= + dependencies: + define-properties "^1.1.2" + es-abstract "^1.5.1" + +object.omit@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" + integrity sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo= + dependencies: + for-own "^0.1.4" + is-extendable "^0.1.1" + +object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" + integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= + dependencies: + isobject "^3.0.1" + +once@^1.3.0, once@^1.3.1, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +optimist@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" + integrity sha1-2j6nRob6IaGaERwybpDrFaAZZoY= + dependencies: + minimist "~0.0.1" + wordwrap "~0.0.2" + +optionator@^0.8.1: + version "0.8.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" + integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.6" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + word-wrap "~1.2.3" + +os-homedir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= + +os-locale@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-3.1.0.tgz#a802a6ee17f24c10483ab9935719cef4ed16bf1a" + integrity sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q== + dependencies: + execa "^1.0.0" + lcid "^2.0.0" + mem "^4.0.0" + +os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= + +osenv@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" + integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +p-defer@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" + integrity sha1-n26xgvbJqozXQwBKfU+WsZaw+ww= + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= + +p-is-promise@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-2.1.0.tgz#918cebaea248a62cf7ffab8e3bca8c5f882fc42e" + integrity sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg== + +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== + dependencies: + p-try "^1.0.0" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= + dependencies: + p-limit "^1.1.0" + +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= + +parse-glob@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" + integrity sha1-ssN2z7EfNVE7rdFz7wu246OIORw= + dependencies: + glob-base "^0.3.0" + is-dotfile "^1.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.0" + +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + integrity sha1-9ID0BDTvgHQfhGkJn43qGPVaTck= + dependencies: + error-ex "^1.2.0" + +parse5@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" + integrity sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA== + +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" + integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= + +path-exists@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" + integrity sha1-D+tsZPD8UY2adU3V77YscCJ2H0s= + dependencies: + pinkie-promise "^2.0.0" + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= + +path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-key@^2.0.0, path-key@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= + +path-parse@^1.0.5, path-parse@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" + integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== + +path-type@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" + integrity sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE= + dependencies: + graceful-fs "^4.1.2" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +performance-now@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" + integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw= + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + integrity sha1-ITXW36ejWMBprJsXh3YogihFD/o= + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA= + +pkg-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" + integrity sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s= + dependencies: + find-up "^2.1.0" + +pn@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" + integrity sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA== + +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" + integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= + +preserve@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" + integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= + +pretty-format@^23.6.0: + version "23.6.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.6.0.tgz#5eaac8eeb6b33b987b7fe6097ea6a8a146ab5760" + integrity sha512-zf9NV1NSlDLDjycnwm6hpFATCGl/K1lt0R/GdkAK2O5LN/rwJoB+Mh93gGJjut4YbmecbfgLWVGSTCr0Ewvvbw== + dependencies: + ansi-regex "^3.0.0" + ansi-styles "^3.2.0" + +private@^0.1.8: + version "0.1.8" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" + integrity sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg== + +process-nextick-args@~2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" + integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== + +prompts@^0.1.9: + version "0.1.14" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-0.1.14.tgz#a8e15c612c5c9ec8f8111847df3337c9cbd443b2" + integrity sha512-rxkyiE9YH6zAz/rZpywySLKkpaj0NMVyNw1qhsubdbjjSgcayjTShDreZGlFMcGSu5sab3bAKPfFk78PB90+8w== + dependencies: + kleur "^2.0.1" + sisteransi "^0.1.1" + +psl@^1.1.24, psl@^1.1.28: + version "1.4.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.4.0.tgz#5dd26156cdb69fa1fdb8ab1991667d3f80ced7c2" + integrity sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw== + +pump@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" + integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + integrity sha1-wNWmOycYgArY4esPpSachN1BhF4= + +punycode@^2.1.0, punycode@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + +qs@~6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" + integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== + +randomatic@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.1.tgz#b776efc59375984e36c537b2f51a1f0aff0da1ed" + integrity sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw== + dependencies: + is-number "^4.0.0" + kind-of "^6.0.0" + math-random "^1.0.1" + +rc@^1.2.7: + version "1.2.8" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" + integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== + dependencies: + deep-extend "^0.6.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + +read-pkg-up@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" + integrity sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI= + dependencies: + find-up "^1.0.0" + read-pkg "^1.0.0" + +read-pkg@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" + integrity sha1-9f+qXs0pyzHAR0vKfXVra7KePyg= + dependencies: + load-json-file "^1.0.0" + normalize-package-data "^2.3.2" + path-type "^1.0.0" + +readable-stream@^2.0.1, readable-stream@^2.0.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" + integrity sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +realpath-native@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.1.0.tgz#2003294fea23fb0672f2476ebe22fcf498a2d65c" + integrity sha512-wlgPA6cCIIg9gKz0fgAPjnzh4yR/LnXovwuo9hvyGvx3h8nX4+/iLZplfUWasXpqD8BdnGnP5njOFjkUwPzvjA== + dependencies: + util.promisify "^1.0.0" + +reflect-metadata@^0.1.13: + version "0.1.13" + resolved "https://registry.yarnpkg.com/reflect-metadata/-/reflect-metadata-0.1.13.tgz#67ae3ca57c972a2aa1642b10fe363fe32d49dc08" + integrity sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg== + +regenerator-runtime@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" + integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== + +regex-cache@^0.4.2: + version "0.4.4" + resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" + integrity sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ== + dependencies: + is-equal-shallow "^0.1.3" + +regex-not@^1.0.0, regex-not@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" + integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== + dependencies: + extend-shallow "^3.0.2" + safe-regex "^1.1.0" + +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" + integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= + +repeat-element@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" + integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== + +repeat-string@^1.5.2, repeat-string@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= + +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + integrity sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo= + dependencies: + is-finite "^1.0.0" + +request-promise-core@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.3.tgz#e9a3c081b51380dfea677336061fea879a829ee9" + integrity sha512-QIs2+ArIGQVp5ZYbWD5ZLCY29D5CfWizP8eWnm8FoGD1TX61veauETVQbrV60662V0oFBkrDOuaBI8XgtuyYAQ== + dependencies: + lodash "^4.17.15" + +request-promise-native@^1.0.5: + version "1.0.8" + resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.8.tgz#a455b960b826e44e2bf8999af64dff2bfe58cb36" + integrity sha512-dapwLGqkHtwL5AEbfenuzjTYg35Jd6KPytsC2/TLkVMz8rm+tNt72MGUWT1RP/aYawMpN6HqbNGBQaRcBtjQMQ== + dependencies: + request-promise-core "1.1.3" + stealthy-require "^1.1.1" + tough-cookie "^2.3.3" + +request@^2.87.0: + version "2.88.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" + integrity sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg== + dependencies: + aws-sign2 "~0.7.0" + aws4 "^1.8.0" + caseless "~0.12.0" + combined-stream "~1.0.6" + extend "~3.0.2" + forever-agent "~0.6.1" + form-data "~2.3.2" + har-validator "~5.1.0" + http-signature "~1.2.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.19" + oauth-sign "~0.9.0" + performance-now "^2.1.0" + qs "~6.5.2" + safe-buffer "^5.1.2" + tough-cookie "~2.4.3" + tunnel-agent "^0.6.0" + uuid "^3.3.2" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + integrity sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE= + +resolve-cwd@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" + integrity sha1-AKn3OHVW4nA46uIyyqNypqWbZlo= + dependencies: + resolve-from "^3.0.0" + +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" + integrity sha1-six699nWiBvItuZTM17rywoYh0g= + +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= + +resolve@1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs= + +resolve@1.x, resolve@^1.10.0: + version "1.12.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6" + integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w== + dependencies: + path-parse "^1.0.6" + +ret@~0.1.10: + version "0.1.15" + resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" + integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== + +rimraf@^2.5.4, rimraf@^2.6.1: + version "2.7.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" + integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== + dependencies: + glob "^7.1.3" + +rsvp@^3.3.3: + version "3.6.2" + resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.6.2.tgz#2e96491599a96cde1b515d5674a8f7a91452926a" + integrity sha512-OfWGQTb9vnwRjwtA2QwpG2ICclHC3pgXZO5xt8H2EfgDquO0qVdSb5T88L4qJVAEugbS56pAuV4XZM58UX8ulw== + +safe-buffer@^5.0.1, safe-buffer@^5.1.2: + version "5.2.0" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519" + integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg== + +safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +safe-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" + integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= + dependencies: + ret "~0.1.10" + +"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +sane@^2.0.0: + version "2.5.2" + resolved "https://registry.yarnpkg.com/sane/-/sane-2.5.2.tgz#b4dc1861c21b427e929507a3e751e2a2cb8ab3fa" + integrity sha1-tNwYYcIbQn6SlQej51HiosuKs/o= + dependencies: + anymatch "^2.0.0" + capture-exit "^1.2.0" + exec-sh "^0.2.0" + fb-watchman "^2.0.0" + micromatch "^3.1.4" + minimist "^1.1.1" + walker "~1.0.5" + watch "~0.18.0" + optionalDependencies: + fsevents "^1.2.3" + +sax@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" + integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== + +"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.5, semver@^5.5.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + +set-blocking@^2.0.0, set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= + +set-value@^2.0.0, set-value@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" + integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= + dependencies: + shebang-regex "^1.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= + +shellwords@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" + integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== + +signal-exit@^3.0.0, signal-exit@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= + +sisteransi@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-0.1.1.tgz#5431447d5f7d1675aac667ccd0b865a4994cb3ce" + integrity sha512-PmGOd02bM9YO5ifxpw36nrNMBTptEtfRl4qUYl9SndkolplkrZZOW7PGHjrZL53QvMVj9nQ+TKqUnRsw4tJa4g== + +slash@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" + integrity sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU= + +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" + integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" + integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" + integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== + dependencies: + base "^0.11.1" + debug "^2.2.0" + define-property "^0.2.5" + extend-shallow "^2.0.1" + map-cache "^0.2.2" + source-map "^0.5.6" + source-map-resolve "^0.5.0" + use "^3.1.0" + +source-map-resolve@^0.5.0: + version "0.5.2" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" + integrity sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA== + dependencies: + atob "^2.1.1" + decode-uri-component "^0.2.0" + resolve-url "^0.2.1" + source-map-url "^0.4.0" + urix "^0.1.0" + +source-map-support@^0.4.15: + version "0.4.18" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" + integrity sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA== + dependencies: + source-map "^0.5.6" + +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-support@^0.5.6: + version "0.5.16" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" + integrity sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-url@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" + integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= + +source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= + +source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +spdx-correct@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4" + integrity sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q== + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz#2ea450aee74f2a89bfb94519c07fcd6f41322977" + integrity sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA== + +spdx-expression-parse@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" + integrity sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.5" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz#3694b5804567a458d3c8045842a6358632f62654" + integrity sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q== + +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== + dependencies: + extend-shallow "^3.0.0" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + +sshpk@^1.7.0: + version "1.16.1" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" + integrity sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg== + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + bcrypt-pbkdf "^1.0.0" + dashdash "^1.12.0" + ecc-jsbn "~0.1.1" + getpass "^0.1.1" + jsbn "~0.1.0" + safer-buffer "^2.0.2" + tweetnacl "~0.14.0" + +stack-utils@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.2.tgz#33eba3897788558bebfc2db059dc158ec36cebb8" + integrity sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA== + +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" + integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +stealthy-require@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" + integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks= + +string-length@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed" + integrity sha1-1A27aGo6zpYMHP/KVivyxF+DY+0= + dependencies: + astral-regex "^1.0.0" + strip-ansi "^4.0.0" + +string-width@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + integrity sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M= + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + +string.prototype.trimleft@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.0.tgz#6cc47f0d7eb8d62b0f3701611715a3954591d634" + integrity sha512-FJ6b7EgdKxxbDxc79cOlok6Afd++TTs5szo+zJTUyow3ycrRfJVE2pq3vcN53XexvKZu/DJMDfeI/qMiZTrjTw== + dependencies: + define-properties "^1.1.3" + function-bind "^1.1.1" + +string.prototype.trimright@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.0.tgz#669d164be9df9b6f7559fa8e89945b168a5a6c58" + integrity sha512-fXZTSV55dNBwv16uw+hh5jkghxSnc5oHq+5K/gXgizHwAvMetdAJlHqqoFC1FSDVPYWLkAKl2cxpUT41sV7nSg== + dependencies: + define-properties "^1.1.3" + function-bind "^1.1.1" + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= + dependencies: + ansi-regex "^2.0.0" + +strip-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" + integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= + dependencies: + ansi-regex "^3.0.0" + +strip-bom@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + integrity sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4= + dependencies: + is-utf8 "^0.2.0" + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= + +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= + +supports-color@^3.1.2: + version "3.2.3" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" + integrity sha1-ZawFBLOVQXHYpklGsq48u4pfVPY= + dependencies: + has-flag "^1.0.0" + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + +symbol-tree@^3.2.2: + version "3.2.4" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" + integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== + +tar@^4: + version "4.4.13" + resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525" + integrity sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA== + dependencies: + chownr "^1.1.1" + fs-minipass "^1.2.5" + minipass "^2.8.6" + minizlib "^1.2.1" + mkdirp "^0.5.0" + safe-buffer "^5.1.2" + yallist "^3.0.3" + +test-exclude@^4.2.1: + version "4.2.3" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-4.2.3.tgz#a9a5e64474e4398339245a0a769ad7c2f4a97c20" + integrity sha512-SYbXgY64PT+4GAL2ocI3HwPa4Q4TBKm0cwAVeKOt/Aoc0gSpNRjJX8w0pA1LMKZ3LBmd8pYBqApFNQLII9kavA== + dependencies: + arrify "^1.0.1" + micromatch "^2.3.11" + object-assign "^4.1.0" + read-pkg-up "^1.0.1" + require-main-filename "^1.0.1" + +throat@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" + integrity sha1-iQN8vJLFarGJJua6TLsgDhVnKmo= + +tmpl@1.0.x: + version "1.0.4" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" + integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE= + +to-fast-properties@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" + integrity sha1-uDVx+k2MJbguIxsG46MFXeTKGkc= + +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" + integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" + integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex@^3.0.1, to-regex@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" + integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== + dependencies: + define-property "^2.0.2" + extend-shallow "^3.0.2" + regex-not "^1.0.2" + safe-regex "^1.1.0" + +tough-cookie@^2.3.3, tough-cookie@^2.3.4: + version "2.5.0" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" + integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== + dependencies: + psl "^1.1.28" + punycode "^2.1.1" + +tough-cookie@~2.4.3: + version "2.4.3" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" + integrity sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ== + dependencies: + psl "^1.1.24" + punycode "^1.4.1" + +tr46@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" + integrity sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk= + dependencies: + punycode "^2.1.0" + +trim-right@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" + integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= + +ts-jest@^23.10.5: + version "23.10.5" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-23.10.5.tgz#cdb550df4466a30489bf70ba867615799f388dd5" + integrity sha512-MRCs9qnGoyKgFc8adDEntAOP64fWK1vZKnOYU1o2HxaqjdJvGqmkLCPCnVq1/If4zkUmEjKPnCiUisTrlX2p2A== + dependencies: + bs-logger "0.x" + buffer-from "1.x" + fast-json-stable-stringify "2.x" + json5 "2.x" + make-error "1.x" + mkdirp "0.x" + resolve "1.x" + semver "^5.5" + yargs-parser "10.x" + +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== + dependencies: + arg "^4.1.0" + diff "^4.0.1" + make-error "^1.1.1" + source-map-support "^0.5.17" + yn "3.1.1" + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + integrity sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0= + dependencies: + safe-buffer "^5.0.1" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= + dependencies: + prelude-ls "~1.1.2" + +typescript@^3.7.2: + version "3.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb" + integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ== + +uglify-js@^3.1.4: + version "3.6.9" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.6.9.tgz#85d353edb6ddfb62a9d798f36e91792249320611" + integrity sha512-pcnnhaoG6RtrvHJ1dFncAe8Od6Nuy30oaJ82ts6//sGSXOP5UjBMEthiProjXmMNHOfd93sqlkztifFMcb+4yw== + dependencies: + commander "~2.20.3" + source-map "~0.6.1" + +union-value@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" + integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^2.0.1" + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" + integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" + +uri-js@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" + integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== + dependencies: + punycode "^2.1.0" + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= + +use@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" + integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== + +util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +util.promisify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" + integrity sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA== + dependencies: + define-properties "^1.1.2" + object.getownpropertydescriptors "^2.0.3" + +uuid@^3.3.2: + version "3.3.3" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866" + integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ== + +validate-npm-package-license@^3.0.1: + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" + integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" + +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + integrity sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA= + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +w3c-hr-time@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" + integrity sha1-gqwr/2PZUOqeMYmlimViX+3xkEU= + dependencies: + browser-process-hrtime "^0.1.2" + +walker@~1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" + integrity sha1-L3+bj9ENZ3JisYqITijRlhjgKPs= + dependencies: + makeerror "1.0.x" + +watch@~0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/watch/-/watch-0.18.0.tgz#28095476c6df7c90c963138990c0a5423eb4b986" + integrity sha1-KAlUdsbffJDJYxOJkMClQj60uYY= + dependencies: + exec-sh "^0.2.0" + minimist "^1.2.0" + +webidl-conversions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" + integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== + +whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.3: + version "1.0.5" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" + integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== + dependencies: + iconv-lite "0.4.24" + +whatwg-mimetype@^2.1.0, whatwg-mimetype@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" + integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== + +whatwg-url@^6.4.1: + version "6.5.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" + integrity sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ== + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +whatwg-url@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.1.0.tgz#c2c492f1eca612988efd3d2266be1b9fc6170d06" + integrity sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg== + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= + +which@^1.2.12, which@^1.2.9, which@^1.3.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +wide-align@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" + integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== + dependencies: + string-width "^1.0.2 || 2" + +word-wrap@~1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + +wordwrap@~0.0.2: + version "0.0.3" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" + integrity sha1-o9XabNXAvAAI03I0u68b7WMFkQc= + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + integrity sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU= + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +write-file-atomic@^2.1.0: + version "2.4.3" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.3.tgz#1fd2e9ae1df3e75b8d8c367443c692d4ca81f481" + integrity sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ== + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +ws@^5.2.0: + version "5.2.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f" + integrity sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA== + dependencies: + async-limiter "~1.0.0" + +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" + integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== + +y18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + integrity sha1-bRX7qITAhnnA136I53WegR4H+kE= + +yallist@^3.0.0, yallist@^3.0.3: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + +yargs-parser@10.x: + version "10.1.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-10.1.0.tgz#7202265b89f7e9e9f2e5765e0fe735a905edbaa8" + integrity sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ== + dependencies: + camelcase "^4.1.0" + +yargs-parser@^9.0.2: + version "9.0.2" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-9.0.2.tgz#9ccf6a43460fe4ed40a9bb68f48d43b8a68cc077" + integrity sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc= + dependencies: + camelcase "^4.1.0" + +yargs@^11.0.0: + version "11.1.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.1.1.tgz#5052efe3446a4df5ed669c995886cc0f13702766" + integrity sha512-PRU7gJrJaXv3q3yQZ/+/X6KBswZiaQ+zOmdprZcouPYtQgvNU35i+68M4b1ZHLZtYFT5QObFLV+ZkmJYcwKdiw== + dependencies: + cliui "^4.0.0" + decamelize "^1.1.1" + find-up "^2.1.0" + get-caller-file "^1.0.1" + os-locale "^3.1.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1" + yargs-parser "^9.0.2" + +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/package.json b/package.json index 879cfd94..30072bf1 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "shortid": "^2.2.15", "type-graphql": "^0.17.5", "typedi": "^0.8.0", - "typeorm": "^0.2.25", + "typeorm": "^0.2.31", "typeorm-typedi-extensions": "^0.2.3", "typescript": "^3.9.7" }, diff --git a/src/core/BaseService.ts b/src/core/BaseService.ts index 51cf5c5a..12159b59 100644 --- a/src/core/BaseService.ts +++ b/src/core/BaseService.ts @@ -9,6 +9,7 @@ import { SelectQueryBuilder } from 'typeorm'; import { ColumnMetadata } from 'typeorm/metadata/ColumnMetadata'; +import * as Debug from 'debug'; import { debug } from '../decorators'; import { StandardDeleteResponse } from '../tgql'; @@ -25,6 +26,9 @@ import { ConnectionResult } from './RelayService'; import { GraphQLInfoService, ConnectionInputFields } from './GraphQLInfoService'; +import { logger } from './logger'; + +const debugStatement = Debug('warthog:base-service'); export interface BaseOptions { manager?: EntityManager; // Allows consumers to pass in a TransactionManager @@ -77,20 +81,21 @@ export class BaseService { this.relayService = new RelayService(); this.graphQLInfoService = new GraphQLInfoService(); - // V3: remove the need to inject a repository, we simply need the entityClass and then we can do - // everything we need to do. - // For now, we'll keep the API the same so that there are no breaking changes - this.manager = this.repository.manager; - // TODO: This handles an issue with typeorm-typedi-extensions where it is unable to // Inject the proper repository if (!repository) { + console.warn(`we're generating the repository from scratch...`); this.repository = getRepository(entityClass); } if (!repository) { throw new Error(`BaseService requires a valid repository, class ${entityClass}`); } + // V3: remove the need to inject a repository, we simply need the entityClass and then we can do + // everything we need to do. + // For now, we'll keep the API the same so that there are no breaking changes + this.manager = this.repository.manager; + // Need a mapping of camelCase field name to the modified case using the naming strategy. For the standard // SnakeNamingStrategy this would be something like { id: 'id', stringField: 'string_field' } this.columnMap = this.repository.metadata.columns.reduce( @@ -103,6 +108,7 @@ export class BaseService { this.klass = this.repository.metadata.name.toLowerCase(); } + @debug('base-service:find') async find( where?: any, // V3: WhereExpression = {}, orderBy?: string, @@ -112,7 +118,18 @@ export class BaseService { ): Promise { // TODO: FEATURE - make the default limit configurable limit = limit ?? 20; - return this.buildFindQuery(where, orderBy, { limit, offset }, fields).getMany(); + debugStatement('find:buildQuery'); + const qb = this.buildFindQuery(where, orderBy, { limit, offset }, fields); + try { + debugStatement('find:gettingMany'); + const records = await qb.getMany(); + debugStatement('find:end'); + return records; + } catch (e) { + debugStatement('find:error'); + logger.error('failed on getMany', e); + throw e; + } } @debug('base-service:findConnection') @@ -194,155 +211,163 @@ export class BaseService { pageOptions?: LimitOffset, fields?: string[] ): SelectQueryBuilder { - const DEFAULT_LIMIT = 50; - let qb = this.manager.createQueryBuilder(this.entityClass, this.klass); - if (!pageOptions) { - pageOptions = { - limit: DEFAULT_LIMIT - }; - } - - qb = qb.take(pageOptions.limit || DEFAULT_LIMIT); + try { + const DEFAULT_LIMIT = 50; + let qb = this.manager.connection + .createQueryBuilder(this.entityClass, this.klass) + .setQueryRunner(this.manager.connection.createQueryRunner('slave')); + if (!pageOptions) { + pageOptions = { + limit: DEFAULT_LIMIT + }; + } - if (pageOptions.offset) { - qb = qb.skip(pageOptions.offset); - } + qb = qb.take(pageOptions.limit || DEFAULT_LIMIT); - if (fields) { - // We always need to select ID or dataloaders will not function properly - if (fields.indexOf('id') === -1) { - fields.push('id'); + if (pageOptions.offset) { + qb = qb.skip(pageOptions.offset); } - // Querybuilder requires you to prefix all fields with the table alias. It also requires you to - // specify the field name using it's TypeORM attribute name, not the camel-cased DB column name - const selection = fields.map(field => `${this.klass}.${field}`); - qb = qb.select(selection); - } - if (orderBy) { - if (!isArray(orderBy)) { - orderBy = [orderBy]; + if (fields) { + // We always need to select ID or dataloaders will not function properly + if (fields.indexOf('id') === -1) { + fields.push('id'); + } + // Querybuilder requires you to prefix all fields with the table alias. It also requires you to + // specify the field name using it's TypeORM attribute name, not the camel-cased DB column name + const selection = fields.map(field => `${this.klass}.${field}`); + qb = qb.select(selection); } - orderBy.forEach((orderByItem: string) => { - const parts = orderByItem.toString().split('_'); - // TODO: ensure attr is one of the properties on the model - const attr = parts[0]; - const direction: 'ASC' | 'DESC' = parts[1] as 'ASC' | 'DESC'; + if (orderBy) { + if (!isArray(orderBy)) { + orderBy = [orderBy]; + } - qb = qb.addOrderBy(this.attrToDBColumn(attr), direction); - }); - } + orderBy.forEach((orderByItem: string) => { + const parts = orderByItem.toString().split('_'); + // TODO: ensure attr is one of the properties on the model + const attr = parts[0]; + const direction: 'ASC' | 'DESC' = parts[1] as 'ASC' | 'DESC'; - // Soft-deletes are filtered out by default, setting `deletedAt_all` is the only way to turn this off - const hasDeletedAts = Object.keys(where).find(key => key.indexOf('deletedAt_') === 0); - // If no deletedAt filters specified, hide them by default - if (!hasDeletedAts) { - // eslint-disable-next-line @typescript-eslint/camelcase - where.deletedAt_eq = null; // Filter out soft-deleted items - } else if (typeof where.deletedAt_all !== 'undefined') { - // Delete this param so that it doesn't try to filter on the magic `all` param - // Put this here so that we delete it even if `deletedAt_all: false` specified - delete where.deletedAt_all; - } else { - // If we get here, the user has added a different deletedAt filter, like deletedAt_gt: - // do nothing because the specific deleted at filters will be added by processWhereOptions - } + qb = qb.addOrderBy(this.attrToDBColumn(attr), direction); + }); + } - // Keep track of a counter so that TypeORM doesn't reuse our variables that get passed into the query if they - // happen to reference the same column - const paramKeyCounter = { counter: 0 }; - const processWheres = ( - qb: SelectQueryBuilder, - where: WhereFilterAttributes - ): SelectQueryBuilder => { - // where is of shape { userName_contains: 'a' } - Object.keys(where).forEach((k: string) => { - const paramKey = `param${paramKeyCounter.counter}`; - // increment counter each time we add a new where clause so that TypeORM doesn't reuse our input variables - paramKeyCounter.counter = paramKeyCounter.counter + 1; - const key = k as keyof W; // userName_contains - const parts = key.toString().split('_'); // ['userName', 'contains'] - const attr = parts[0]; // userName - const operator = parts.length > 1 ? parts[1] : 'eq'; // contains - - return addQueryBuilderWhereItem( - qb, - paramKey, - this.attrToDBColumn(attr), - operator, - where[key] - ); - }); - return qb; - }; + // Soft-deletes are filtered out by default, setting `deletedAt_all` is the only way to turn this off + const hasDeletedAts = Object.keys(where).find(key => key.indexOf('deletedAt_') === 0); + // If no deletedAt filters specified, hide them by default + if (!hasDeletedAts) { + // eslint-disable-next-line @typescript-eslint/camelcase + where.deletedAt_eq = null; // Filter out soft-deleted items + } else if (typeof where.deletedAt_all !== 'undefined') { + // Delete this param so that it doesn't try to filter on the magic `all` param + // Put this here so that we delete it even if `deletedAt_all: false` specified + delete where.deletedAt_all; + } else { + // If we get here, the user has added a different deletedAt filter, like deletedAt_gt: + // do nothing because the specific deleted at filters will be added by processWhereOptions + } - // WhereExpression comes in the following shape: - // { - // AND?: WhereInput[]; - // OR?: WhereInput[]; - // [key: string]: string | number | null; - // } - const processWhereInput = ( - qb: SelectQueryBuilder, - where: WhereExpression - ): SelectQueryBuilder => { - const { AND, OR, ...rest } = where; - - if (AND && AND.length) { - const ands = AND.filter(value => JSON.stringify(value) !== '{}'); - if (ands.length) { - qb.andWhere( - new Brackets(qb2 => { - ands.forEach((where: WhereExpression) => { - if (Object.keys(where).length === 0) { - return; // disregard empty where objects - } - qb2.andWhere( - new Brackets(qb3 => { - processWhereInput(qb3 as SelectQueryBuilder, where); - return qb3; - }) - ); - }); - }) + // Keep track of a counter so that TypeORM doesn't reuse our variables that get passed into the query if they + // happen to reference the same column + const paramKeyCounter = { counter: 0 }; + const processWheres = ( + qb: SelectQueryBuilder, + where: WhereFilterAttributes + ): SelectQueryBuilder => { + // where is of shape { userName_contains: 'a' } + Object.keys(where).forEach((k: string) => { + const paramKey = `param${paramKeyCounter.counter}`; + // increment counter each time we add a new where clause so that TypeORM doesn't reuse our input variables + paramKeyCounter.counter = paramKeyCounter.counter + 1; + const key = k as keyof W; // userName_contains + const parts = key.toString().split('_'); // ['userName', 'contains'] + const attr = parts[0]; // userName + const operator = parts.length > 1 ? parts[1] : 'eq'; // contains + + return addQueryBuilderWhereItem( + qb, + paramKey, + this.attrToDBColumn(attr), + operator, + where[key] ); + }); + return qb; + }; + + // WhereExpression comes in the following shape: + // { + // AND?: WhereInput[]; + // OR?: WhereInput[]; + // [key: string]: string | number | null; + // } + const processWhereInput = ( + qb: SelectQueryBuilder, + where: WhereExpression + ): SelectQueryBuilder => { + const { AND, OR, ...rest } = where; + + if (AND && AND.length) { + const ands = AND.filter(value => JSON.stringify(value) !== '{}'); + if (ands.length) { + qb.andWhere( + new Brackets(qb2 => { + ands.forEach((where: WhereExpression) => { + if (Object.keys(where).length === 0) { + return; // disregard empty where objects + } + qb2.andWhere( + new Brackets(qb3 => { + processWhereInput(qb3 as SelectQueryBuilder, where); + return qb3; + }) + ); + }); + }) + ); + } } - } - if (OR && OR.length) { - const ors = OR.filter(value => JSON.stringify(value) !== '{}'); - if (ors.length) { - qb.andWhere( - new Brackets(qb2 => { - ors.forEach((where: WhereExpression) => { - if (Object.keys(where).length === 0) { - return; // disregard empty where objects - } - - qb2.orWhere( - new Brackets(qb3 => { - processWhereInput(qb3 as SelectQueryBuilder, where); - return qb3; - }) - ); - }); - }) - ); + if (OR && OR.length) { + const ors = OR.filter(value => JSON.stringify(value) !== '{}'); + if (ors.length) { + qb.andWhere( + new Brackets(qb2 => { + ors.forEach((where: WhereExpression) => { + if (Object.keys(where).length === 0) { + return; // disregard empty where objects + } + + qb2.orWhere( + new Brackets(qb3 => { + processWhereInput(qb3 as SelectQueryBuilder, where); + return qb3; + }) + ); + }); + }) + ); + } } - } - if (rest) { - processWheres(qb, rest); + if (rest) { + processWheres(qb, rest); + } + return qb; + }; + + if (Object.keys(where).length) { + processWhereInput(qb, where); } - return qb; - }; - if (Object.keys(where).length) { - processWhereInput(qb, where); + debugStatement('buildFindQuery:end'); + return qb; + } catch (e) { + logger.error(`Hit this error while building find query`, e); + throw e; } - - return qb; } async findOne( @@ -362,7 +387,10 @@ export class BaseService { async create(data: DeepPartial, userId: string, options?: BaseOptions): Promise { const manager = options?.manager ?? this.manager; - const entity = manager.create(this.entityClass, { ...data, createdById: userId }); + // const entity = manager.create(this.entityClass, { ...data, createdById: userId }); + const entity = manager.create(this.entityClass, { ...data, createdById: userId } as DeepPartial< + E + >); // Validate against the the data model // Without `skipMissingProperties`, some of the class-validator validations (like MinLength) diff --git a/src/core/server.test.ts b/src/core/server.test.ts index c50c449a..73d05936 100644 --- a/src/core/server.test.ts +++ b/src/core/server.test.ts @@ -3,6 +3,7 @@ import { getTestServer } from '../test/test-server'; import express = require('express'); import { setTestServerEnvironmentVariables } from '../test/server-vars'; +import { StringMap } from './types'; describe('Server', () => { let server: Server; @@ -44,10 +45,26 @@ describe('Server', () => { expect(appListenSpy).toHaveBeenCalledTimes(1); expect(hasGraphQlRoute(server.expressApp._router)).toBeTruthy(); }); + + test('start a server with a replica DB connection', async () => { + const customExpressApp: express.Application = express(); + const appListenSpy = jest.spyOn(customExpressApp, 'listen'); + server = buildServer( + { expressApp: customExpressApp, connectDBReplica: true }, + { WARTHOG_DB_CONNECT_REPLICA: 'true' } + ); + await server.start(); + const binding = await server.getBinding(); + + expect(binding).toBeTruthy(); + expect(server.schema).toBeTruthy(); + expect(appListenSpy).toHaveBeenCalledTimes(1); + expect(hasGraphQlRoute(server.expressApp._router)).toBeTruthy(); + }); }); -function buildServer(options: ServerOptions): Server { - setTestServerEnvironmentVariables(); +function buildServer(options: ServerOptions, configOverides?: StringMap): Server { + setTestServerEnvironmentVariables(configOverides); return getTestServer({ apolloConfig: { playground: false }, ...options diff --git a/src/core/server.ts b/src/core/server.ts index 1ed2e61c..e46954db 100644 --- a/src/core/server.ts +++ b/src/core/server.ts @@ -17,7 +17,7 @@ import { Connection, ConnectionOptions, useContainer as TypeORMUseContainer } fr import { logger, Logger } from '../core/logger'; import { getRemoteBinding } from '../gql'; import { DataLoaderMiddleware, healthCheckMiddleware } from '../middleware'; -import { createDBConnection } from '../torm'; +import { createDBConnection, createReplicatedDBConnection } from '../torm'; import { CodeGenerator } from './code-generator'; import { Config } from './config'; @@ -47,6 +47,7 @@ export interface ServerOptions { bodyParserConfig?: OptionsJson; onBeforeGraphQLMiddleware?: (app: express.Application) => void; onAfterGraphQLMiddleware?: (app: express.Application) => void; + connectDBReplica?: boolean; } export class Server { @@ -54,6 +55,7 @@ export class Server { apolloConfig?: ApolloServerExpressConfig; authChecker?: AuthChecker; connection!: Connection; + allConnections!: Connection[]; container: Container; expressApp!: express.Application; graphQLServer!: ApolloServer; @@ -64,7 +66,8 @@ export class Server { constructor( private appOptions: ServerOptions, - private dbOptions: Partial = {} + private dbOptions: Partial = {}, + private dbReplicaOptions: Partial = {} ) { if (typeof this.appOptions.host !== 'undefined') { process.env.WARTHOG_APP_HOST = this.appOptions.host; @@ -90,6 +93,11 @@ export class Server { ? 'true' : 'false'; } + if (typeof this.appOptions.connectDBReplica !== 'undefined') { + process.env.WARTHOG_DB_CONNECT_REPLICA = this.appOptions.connectDBReplica ? 'true' : 'false'; + } else { + process.env.WARTHOG_DB_CONNECT_REPLICA = 'false'; + } // Ensure that Warthog, TypeORM and TypeGraphQL are all using the same typedi container this.container = this.appOptions.container || Container; @@ -124,7 +132,13 @@ export class Server { async establishDBConnection(): Promise { if (!this.connection) { debug('establishDBConnection:start'); - this.connection = await createDBConnection(this.dbOptions); + if (this.config.get('WARTHOG_DB_CONNECT_REPLICA')) { + this.connection = await createReplicatedDBConnection(this.dbOptions); + this.allConnections = [this.connection]; + } else { + this.connection = await createDBConnection(this.dbOptions); + this.allConnections = [this.connection]; + } debug('establishDBConnection:end'); } @@ -293,8 +307,10 @@ export class Server { async stop() { this.logger.info('Stopping HTTP Server'); this.httpServer.close(); - this.logger.info('Closing DB Connection'); - await this.connection.close(); + this.logger.info('Closing DB Connection(s)'); + for (const connection of this.allConnections) { + await connection.close(); + } } } diff --git a/src/test/functional/__snapshots__/server.test.ts.snap b/src/test/functional/__snapshots__/server.test.ts.snap index cedc7efa..e6afbd7f 100644 --- a/src/test/functional/__snapshots__/server.test.ts.snap +++ b/src/test/functional/__snapshots__/server.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`server Use 2 different operators on same attribute 1`] = ` +exports[`server - no replica Use 2 different operators on same attribute 1`] = ` Array [ Object { "stringField": "Trantow", @@ -8,7 +8,7 @@ Array [ ] `; -exports[`server find: allows client to ask for __typename 1`] = ` +exports[`server - no replica find: allows client to ask for __typename 1`] = ` Array [ Object { "__typename": "KitchenSink", @@ -16,7 +16,7 @@ Array [ ] `; -exports[`server find: arrayOfInts_containsAll: [1, 2, 7] 1`] = ` +exports[`server - no replica find: arrayOfInts_containsAll: [1, 2, 7] 1`] = ` Array [ Object { "arrayOfInts": Array [ @@ -30,7 +30,7 @@ Array [ ] `; -exports[`server find: arrayOfInts_containsAny: [1, 2, 7] 1`] = ` +exports[`server - no replica find: arrayOfInts_containsAny: [1, 2, 7] 1`] = ` Array [ Object { "arrayOfInts": Array [ @@ -404,7 +404,7 @@ Array [ ] `; -exports[`server find: arrayOfInts_containsNone: [1, 2, 7] 1`] = ` +exports[`server - no replica find: arrayOfInts_containsNone: [1, 2, 7] 1`] = ` Array [ Object { "arrayOfInts": Array [ @@ -734,7 +734,7 @@ Array [ ] `; -exports[`server find: arrayOfStrings_containsAll: [dog, cat] 1`] = ` +exports[`server - no replica find: arrayOfStrings_containsAll: [dog, cat] 1`] = ` Array [ Object { "arrayOfStrings": Array [ @@ -760,7 +760,7 @@ Array [ ] `; -exports[`server find: arrayOfStrings_containsAny: [dog, cat] 1`] = ` +exports[`server - no replica find: arrayOfStrings_containsAny: [dog, cat] 1`] = ` Array [ Object { "arrayOfStrings": Array [ @@ -955,7 +955,7 @@ Array [ ] `; -exports[`server find: arrayOfStrings_containsNone: [dog, cat] 1`] = ` +exports[`server - no replica find: arrayOfStrings_containsNone: [dog, cat] 1`] = ` Array [ Object { "arrayOfStrings": Array [], @@ -1319,7 +1319,7 @@ Array [ ] `; -exports[`server find: dateOnlyField greater than or equal 2020-01-01 1`] = ` +exports[`server - no replica find: dateOnlyField greater than or equal 2020-01-01 1`] = ` Array [ Object { "dateOnlyField": "2020-02-27", @@ -1444,7 +1444,7 @@ Array [ ] `; -exports[`server find: dateTimeField less than or equal 2020-01-01 1`] = ` +exports[`server - no replica find: dateTimeField less than or equal 2020-01-01 1`] = ` Array [ Object { "dateTimeField": "2019-11-25T22:03:38.286Z", @@ -1725,7 +1725,7 @@ Array [ ] `; -exports[`server find: enum field = BAR 1`] = ` +exports[`server - no replica find: enum field = BAR 1`] = ` Array [ Object { "stringField": "Trantow", @@ -1898,7 +1898,7 @@ Array [ ] `; -exports[`server find: integer query: greater than 21 1`] = ` +exports[`server - no replica find: integer query: greater than 21 1`] = ` Array [ Object { "stringField": "My String", @@ -2008,7 +2008,7 @@ Array [ ] `; -exports[`server find: integer query: greater than or equal to 21 1`] = ` +exports[`server - no replica find: integer query: greater than or equal to 21 1`] = ` Array [ Object { "stringField": "My String", @@ -2121,7 +2121,7 @@ Array [ ] `; -exports[`server find: integer query: less than 21 1`] = ` +exports[`server - no replica find: integer query: less than 21 1`] = ` Array [ Object { "stringField": "BOSCO", @@ -2321,7 +2321,7 @@ Array [ ] `; -exports[`server find: integer query: less than or equal to 21 1`] = ` +exports[`server - no replica find: integer query: less than or equal to 21 1`] = ` Array [ Object { "stringField": "BOSCO", @@ -2524,7 +2524,7 @@ Array [ ] `; -exports[`server find: jsonField foo_eq: bar 1`] = ` +exports[`server - no replica find: jsonField foo_eq: bar 1`] = ` Array [ Object { "jsonField": Object { @@ -2732,7 +2732,7 @@ Array [ ] `; -exports[`server find: string query: contains \`A\` (upper or lower) 1`] = ` +exports[`server - no replica find: string query: contains \`A\` (upper or lower) 1`] = ` Array [ Object { "stringField": "Trantow", @@ -2911,7 +2911,7 @@ Array [ ] `; -exports[`server find: string query: contains \`a\` (upper or lower) 1`] = ` +exports[`server - no replica find: string query: contains \`a\` (upper or lower) 1`] = ` Array [ Object { "stringField": "Trantow", @@ -3090,7 +3090,7 @@ Array [ ] `; -exports[`server find: string query: ends with \`z\` (upper or lower) 1`] = ` +exports[`server - no replica find: string query: ends with \`z\` (upper or lower) 1`] = ` Array [ Object { "stringField": "LUEILWITZ", @@ -3104,7 +3104,7 @@ Array [ ] `; -exports[`server find: string query: exact match (Nakia) 1`] = ` +exports[`server - no replica find: string query: exact match (Nakia) 1`] = ` Array [ Object { "stringField": "Nakia", @@ -3112,7 +3112,7 @@ Array [ ] `; -exports[`server find: string query: in list { devin, erling, KAELYN, raquel } 1`] = ` +exports[`server - no replica find: string query: in list { devin, erling, KAELYN, raquel } 1`] = ` Array [ Object { "stringField": "devin", @@ -3129,7 +3129,7 @@ Array [ ] `; -exports[`server find: string query: starts with \`b\` (upper or lower) 1`] = ` +exports[`server - no replica find: string query: starts with \`b\` (upper or lower) 1`] = ` Array [ Object { "stringField": "BOSCO", @@ -3149,7 +3149,7 @@ Array [ ] `; -exports[`server getBindingError pulls correct info from binding error 1`] = ` +exports[`server - no replica getBindingError pulls correct info from binding error 1`] = ` Object { "emailField": Object { "isEmail": "emailField must be an email", @@ -3157,7 +3157,7 @@ Object { } `; -exports[`server queries deeply nested objects without an ID 1`] = ` +exports[`server - no replica queries deeply nested objects without an ID 1`] = ` Array [ Object { "booleanField": true, @@ -3297,3 +3297,10046 @@ Array [ }, ] `; + +exports[`server - with replica getBindingError pulls correct info from binding error 1`] = ` +Object { + "emailField": Object { + "isEmail": "emailField must be an email", + }, +} +`; + +exports[`server Use 2 different operators on same attribute 1`] = ` +Array [ + Object { + "stringField": "Trantow", + }, +] +`; + +exports[`server find: allows client to ask for __typename 1`] = ` +Array [ + Object { + "__typename": "KitchenSink", + }, +] +`; + +exports[`server find: arrayOfInts_containsAll: [1, 2, 7] 1`] = ` +Array [ + Object { + "arrayOfInts": Array [ + 2, + 1, + 5, + 7, + ], + "stringField": "Mortimer", + }, +] +`; + +exports[`server find: arrayOfInts_containsAny: [1, 2, 7] 1`] = ` +Array [ + Object { + "arrayOfInts": Array [ + 1, + ], + "stringField": "Trantow", + }, + Object { + "arrayOfInts": Array [ + 4, + 0, + 5, + 2, + ], + "stringField": "SCHOEN", + }, + Object { + "arrayOfInts": Array [ + 6, + 0, + 1, + ], + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "arrayOfInts": Array [ + 2, + 4, + 4, + ], + "stringField": "Wisoky", + }, + Object { + "arrayOfInts": Array [ + 2, + 0, + ], + "stringField": "SCHINNER", + }, + Object { + "arrayOfInts": Array [ + 1, + ], + "stringField": "maximillia", + }, + Object { + "arrayOfInts": Array [ + 0, + 0, + 7, + ], + "stringField": "DELENITI SUNT", + }, + Object { + "arrayOfInts": Array [ + 1, + 2, + 1, + 6, + ], + "stringField": "QUAM CULPA", + }, + Object { + "arrayOfInts": Array [ + 8, + 4, + 7, + ], + "stringField": "SCHIMMEL", + }, + Object { + "arrayOfInts": Array [ + 7, + ], + "stringField": "nakia", + }, + Object { + "arrayOfInts": Array [ + 1, + 8, + ], + "stringField": "LUEILWITZ", + }, + Object { + "arrayOfInts": Array [ + 7, + 0, + 0, + 3, + ], + "stringField": "BERENICE", + }, + Object { + "arrayOfInts": Array [ + 0, + 1, + 7, + 0, + ], + "stringField": "amber", + }, + Object { + "arrayOfInts": Array [ + 6, + 2, + 0, + 7, + ], + "stringField": "RYLEIGH", + }, + Object { + "arrayOfInts": Array [ + 7, + ], + "stringField": "delfinaz", + }, + Object { + "arrayOfInts": Array [ + 6, + 3, + 4, + 2, + ], + "stringField": "earum nesciunt", + }, + Object { + "arrayOfInts": Array [ + 2, + 1, + 1, + ], + "stringField": "schowalter", + }, + Object { + "arrayOfInts": Array [ + 0, + 7, + 8, + ], + "stringField": "MAIORES ADIPISCI", + }, + Object { + "arrayOfInts": Array [ + 1, + 8, + 3, + ], + "stringField": "rerum et", + }, + Object { + "arrayOfInts": Array [ + 3, + 4, + 6, + 1, + ], + "stringField": "alias sint", + }, + Object { + "arrayOfInts": Array [ + 7, + ], + "stringField": "molestiae praesentium", + }, + Object { + "arrayOfInts": Array [ + 3, + 7, + 8, + 5, + ], + "stringField": "hartmann", + }, + Object { + "arrayOfInts": Array [ + 7, + 7, + 1, + ], + "stringField": "quas fugit", + }, + Object { + "arrayOfInts": Array [ + 7, + 3, + 0, + ], + "stringField": "quia et", + }, + Object { + "arrayOfInts": Array [ + 0, + 8, + 2, + 1, + ], + "stringField": "VON", + }, + Object { + "arrayOfInts": Array [ + 2, + ], + "stringField": "HAMILL", + }, + Object { + "arrayOfInts": Array [ + 6, + 7, + ], + "stringField": "o'reilly", + }, + Object { + "arrayOfInts": Array [ + 1, + 8, + 1, + 7, + ], + "stringField": "VERITATIS EIUS", + }, + Object { + "arrayOfInts": Array [ + 3, + 7, + 6, + 8, + ], + "stringField": "billie", + }, + Object { + "arrayOfInts": Array [ + 4, + 2, + 5, + ], + "stringField": "winston", + }, + Object { + "arrayOfInts": Array [ + 7, + 2, + ], + "stringField": "DOVIE", + }, + Object { + "arrayOfInts": Array [ + 5, + 8, + 1, + 3, + ], + "stringField": "linnea", + }, + Object { + "arrayOfInts": Array [ + 2, + ], + "stringField": "madison", + }, + Object { + "arrayOfInts": Array [ + 1, + 0, + 6, + 1, + ], + "stringField": "macy", + }, + Object { + "arrayOfInts": Array [ + 4, + 1, + 4, + 3, + ], + "stringField": "ENIM DICTA", + }, + Object { + "arrayOfInts": Array [ + 1, + 7, + 6, + ], + "stringField": "Williamson", + }, + Object { + "arrayOfInts": Array [ + 3, + 5, + 1, + 4, + ], + "stringField": "DESTIN", + }, + Object { + "arrayOfInts": Array [ + 1, + 8, + 4, + ], + "stringField": "Block", + }, + Object { + "arrayOfInts": Array [ + 3, + 2, + 8, + ], + "stringField": "jaskolski", + }, + Object { + "arrayOfInts": Array [ + 5, + 7, + 6, + 7, + ], + "stringField": "Wisoky", + }, + Object { + "arrayOfInts": Array [ + 7, + 5, + 3, + ], + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "arrayOfInts": Array [ + 7, + 2, + 6, + 4, + ], + "stringField": "SIT ODIO", + }, + Object { + "arrayOfInts": Array [ + 4, + 0, + 0, + 2, + ], + "stringField": "pagac", + }, + Object { + "arrayOfInts": Array [ + 6, + 5, + 1, + 3, + ], + "stringField": "eius necessitatibus", + }, + Object { + "arrayOfInts": Array [ + 8, + 7, + ], + "stringField": "RICE", + }, + Object { + "arrayOfInts": Array [ + 2, + 1, + 5, + 7, + ], + "stringField": "Mortimer", + }, +] +`; + +exports[`server find: arrayOfInts_containsNone: [1, 2, 7] 1`] = ` +Array [ + Object { + "arrayOfInts": Array [ + 5, + 4, + ], + "stringField": "BOSCO", + }, + Object { + "arrayOfInts": Array [ + 5, + 5, + ], + "stringField": "koelpin", + }, + Object { + "arrayOfInts": Array [], + "stringField": "inventore velit", + }, + Object { + "arrayOfInts": Array [ + 4, + ], + "stringField": "Madeline", + }, + Object { + "arrayOfInts": Array [ + 5, + ], + "stringField": "NAKIA", + }, + Object { + "arrayOfInts": Array [ + 3, + 0, + 8, + ], + "stringField": "Nakia", + }, + Object { + "arrayOfInts": Array [ + 5, + ], + "stringField": "sed praesentium", + }, + Object { + "arrayOfInts": Array [], + "stringField": "JEROMY", + }, + Object { + "arrayOfInts": Array [], + "stringField": "SHEMAR", + }, + Object { + "arrayOfInts": Array [], + "stringField": "Wilmer", + }, + Object { + "arrayOfInts": Array [ + 5, + ], + "stringField": "stark", + }, + Object { + "arrayOfInts": Array [ + 0, + 8, + 5, + 5, + ], + "stringField": "elda", + }, + Object { + "arrayOfInts": Array [ + 0, + ], + "stringField": "Damien", + }, + Object { + "arrayOfInts": Array [ + 5, + 6, + ], + "stringField": "illum atque", + }, + Object { + "arrayOfInts": Array [ + 0, + 4, + 6, + ], + "stringField": "horowitz", + }, + Object { + "arrayOfInts": Array [], + "stringField": "devin", + }, + Object { + "arrayOfInts": Array [ + 3, + 6, + ], + "stringField": "VELIT ADIPISCI", + }, + Object { + "arrayOfInts": Array [ + 8, + 4, + 3, + 6, + ], + "stringField": "AMET QUI", + }, + Object { + "arrayOfInts": Array [ + 4, + 5, + 3, + 8, + ], + "stringField": "maiores praesentium", + }, + Object { + "arrayOfInts": Array [ + 6, + ], + "stringField": "erling", + }, + Object { + "arrayOfInts": Array [ + 8, + ], + "stringField": "KAELYN", + }, + Object { + "arrayOfInts": Array [], + "stringField": "Okuneva", + }, + Object { + "arrayOfInts": Array [], + "stringField": "raquel", + }, + Object { + "arrayOfInts": Array [ + 3, + 0, + 4, + ], + "stringField": "ODIO ID", + }, + Object { + "arrayOfInts": Array [ + 0, + 8, + ], + "stringField": "iste in", + }, + Object { + "arrayOfInts": Array [ + 0, + ], + "stringField": "HOPPE", + }, + Object { + "arrayOfInts": Array [], + "stringField": "korey", + }, + Object { + "arrayOfInts": Array [], + "stringField": "neque tempore", + }, + Object { + "arrayOfInts": Array [ + 0, + 0, + ], + "stringField": "ut consequatur", + }, + Object { + "arrayOfInts": Array [ + 3, + ], + "stringField": "fermin", + }, + Object { + "arrayOfInts": Array [], + "stringField": "eum reiciendis", + }, + Object { + "arrayOfInts": Array [], + "stringField": "iusto perspiciatis", + }, + Object { + "arrayOfInts": Array [ + 4, + ], + "stringField": "LABORE CULPA", + }, + Object { + "arrayOfInts": Array [], + "stringField": "HELGA", + }, + Object { + "arrayOfInts": Array [ + 4, + 3, + 0, + ], + "stringField": "ipsum voluptas", + }, + Object { + "arrayOfInts": Array [ + 0, + 6, + 5, + ], + "stringField": "luettgen", + }, + Object { + "arrayOfInts": Array [ + 0, + ], + "stringField": "dietrich", + }, + Object { + "arrayOfInts": Array [ + 3, + ], + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "arrayOfInts": Array [ + 5, + 5, + 8, + ], + "stringField": "GERLACH", + }, + Object { + "arrayOfInts": Array [], + "stringField": "padberg", + }, + Object { + "arrayOfInts": Array [ + 3, + 6, + ], + "stringField": "amalia", + }, + Object { + "arrayOfInts": Array [], + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "arrayOfInts": Array [], + "stringField": "OMNIS ERROR", + }, + Object { + "arrayOfInts": Array [ + 5, + 8, + 3, + 3, + ], + "stringField": "schamberger", + }, + Object { + "arrayOfInts": Array [], + "stringField": "Jared", + }, + Object { + "arrayOfInts": Array [ + 8, + ], + "stringField": "QUIDEM FUGIAT", + }, + Object { + "arrayOfInts": Array [], + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "arrayOfInts": Array [ + 4, + 3, + ], + "stringField": "BAUCH", + }, + Object { + "arrayOfInts": Array [ + 5, + ], + "stringField": "paucek", + }, + Object { + "arrayOfInts": Array [ + 8, + 6, + ], + "stringField": "sed quod", + }, + Object { + "arrayOfInts": Array [ + 3, + ], + "stringField": "kuhic", + }, + Object { + "arrayOfInts": Array [ + 0, + 4, + 8, + ], + "stringField": "WITTING", + }, + Object { + "arrayOfInts": Array [], + "stringField": "placeat voluptate", + }, + Object { + "arrayOfInts": Array [ + 8, + 6, + 6, + ], + "stringField": "EX POSSIMUS", + }, +] +`; + +exports[`server find: arrayOfStrings_containsAll: [dog, cat] 1`] = ` +Array [ + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "BOSCO", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "SCHOEN", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "padberg", + }, +] +`; + +exports[`server find: arrayOfStrings_containsAny: [dog, cat] 1`] = ` +Array [ + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "BOSCO", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "SCHOEN", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "SCHINNER", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "fox", + ], + "stringField": "inventore velit", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "nakia", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "fox", + ], + "stringField": "sed praesentium", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "LUEILWITZ", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "fox", + ], + "stringField": "RYLEIGH", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "Wilmer", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "cat", + ], + "stringField": "elda", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "dog", + ], + "stringField": "illum atque", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "cat", + ], + "stringField": "AMET QUI", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "pony", + ], + "stringField": "rerum et", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "dog", + ], + "stringField": "erling", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "KAELYN", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "alias sint", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "hartmann", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "ODIO ID", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "HOPPE", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "neque tempore", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "dog", + ], + "stringField": "HAMILL", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "LABORE CULPA", + }, + Object { + "arrayOfStrings": Array [ + "fox", + "dog", + ], + "stringField": "HELGA", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "fox", + ], + "stringField": "linnea", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "macy", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "padberg", + }, + Object { + "arrayOfStrings": Array [ + "fox", + "dog", + ], + "stringField": "Jared", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "dog", + ], + "stringField": "QUIDEM FUGIAT", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "pagac", + }, +] +`; + +exports[`server find: arrayOfStrings_containsNone: [dog, cat] 1`] = ` +Array [ + Object { + "arrayOfStrings": Array [], + "stringField": "Trantow", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "turtle", + ], + "stringField": "Wisoky", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "maximillia", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "koelpin", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "DELENITI SUNT", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "QUAM CULPA", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "SCHIMMEL", + }, + Object { + "arrayOfStrings": Array [ + "fox", + "turtle", + ], + "stringField": "Madeline", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "NAKIA", + }, + Object { + "arrayOfStrings": Array [ + "fox", + "pony", + ], + "stringField": "Nakia", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "BERENICE", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "fox", + ], + "stringField": "amber", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "JEROMY", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "delfinaz", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "SHEMAR", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "turtle", + ], + "stringField": "stark", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "Damien", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "earum nesciunt", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "horowitz", + }, + Object { + "arrayOfStrings": Array [ + "pony", + ], + "stringField": "schowalter", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "MAIORES ADIPISCI", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "devin", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "VELIT ADIPISCI", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "maiores praesentium", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "molestiae praesentium", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "Okuneva", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "raquel", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "quas fugit", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "iste in", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "quia et", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "korey", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "VON", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "ut consequatur", + }, + Object { + "arrayOfStrings": Array [ + "pony", + ], + "stringField": "fermin", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "eum reiciendis", + }, + Object { + "arrayOfStrings": Array [ + "pony", + ], + "stringField": "iusto perspiciatis", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "o'reilly", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "fox", + ], + "stringField": "VERITATIS EIUS", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "billie", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "winston", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "ipsum voluptas", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "luettgen", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "dietrich", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "DOVIE", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "madison", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "GERLACH", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "ENIM DICTA", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "amalia", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "OMNIS ERROR", + }, + Object { + "arrayOfStrings": Array [ + "pony", + ], + "stringField": "Williamson", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "schamberger", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "pony", + ], + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "DESTIN", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "Block", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "jaskolski", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "BAUCH", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "fox", + ], + "stringField": "Wisoky", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "paucek", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "sed quod", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "fox", + ], + "stringField": "kuhic", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "WITTING", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "placeat voluptate", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "SIT ODIO", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "eius necessitatibus", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "RICE", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "Mortimer", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "EX POSSIMUS", + }, +] +`; + +exports[`server find: dateOnlyField greater than or equal 2020-01-01 1`] = ` +Array [ + Object { + "dateOnlyField": "2020-02-27", + "stringField": "BOSCO", + }, + Object { + "dateOnlyField": "2020-12-03", + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "dateOnlyField": "2020-02-25", + "stringField": "Wisoky", + }, + Object { + "dateOnlyField": "2020-08-18", + "stringField": "SCHINNER", + }, + Object { + "dateOnlyField": "2020-10-01", + "stringField": "koelpin", + }, + Object { + "dateOnlyField": "2020-07-10", + "stringField": "inventore velit", + }, + Object { + "dateOnlyField": "2020-03-31", + "stringField": "QUAM CULPA", + }, + Object { + "dateOnlyField": "2020-06-20", + "stringField": "NAKIA", + }, + Object { + "dateOnlyField": "2020-10-28", + "stringField": "nakia", + }, + Object { + "dateOnlyField": "2020-09-21", + "stringField": "sed praesentium", + }, + Object { + "dateOnlyField": "2020-08-24", + "stringField": "LUEILWITZ", + }, + Object { + "dateOnlyField": "2020-03-30", + "stringField": "RYLEIGH", + }, + Object { + "dateOnlyField": "2020-05-15", + "stringField": "delfinaz", + }, + Object { + "dateOnlyField": "2020-12-13", + "stringField": "elda", + }, + Object { + "dateOnlyField": "2020-06-02", + "stringField": "Damien", + }, + Object { + "dateOnlyField": "2020-11-21", + "stringField": "KAELYN", + }, + Object { + "dateOnlyField": "2020-10-11", + "stringField": "iste in", + }, + Object { + "dateOnlyField": "2020-07-07", + "stringField": "ut consequatur", + }, + Object { + "dateOnlyField": "2020-09-26", + "stringField": "eum reiciendis", + }, + Object { + "dateOnlyField": "2020-09-18", + "stringField": "iusto perspiciatis", + }, + Object { + "dateOnlyField": "2020-10-14", + "stringField": "VERITATIS EIUS", + }, + Object { + "dateOnlyField": "2020-12-03", + "stringField": "macy", + }, + Object { + "dateOnlyField": "2020-02-10", + "stringField": "GERLACH", + }, + Object { + "dateOnlyField": "2020-07-08", + "stringField": "ENIM DICTA", + }, + Object { + "dateOnlyField": "2020-12-11", + "stringField": "amalia", + }, + Object { + "dateOnlyField": "2020-03-04", + "stringField": "schamberger", + }, + Object { + "dateOnlyField": "2020-09-07", + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "dateOnlyField": "2020-10-01", + "stringField": "DESTIN", + }, + Object { + "dateOnlyField": "2020-12-30", + "stringField": "eius necessitatibus", + }, + Object { + "dateOnlyField": "2020-12-20", + "stringField": "RICE", + }, +] +`; + +exports[`server find: dateTimeField less than or equal 2020-01-01 1`] = ` +Array [ + Object { + "dateTimeField": "2019-11-25T22:03:38.286Z", + "stringField": "Trantow", + }, + Object { + "dateTimeField": "2019-02-14T08:01:37.290Z", + "stringField": "BOSCO", + }, + Object { + "dateTimeField": "2018-09-03T00:38:19.337Z", + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "dateTimeField": "2018-05-31T19:22:05.341Z", + "stringField": "Wisoky", + }, + Object { + "dateTimeField": "2018-07-05T11:32:01.838Z", + "stringField": "DELENITI SUNT", + }, + Object { + "dateTimeField": "2018-04-28T06:17:13.736Z", + "stringField": "inventore velit", + }, + Object { + "dateTimeField": "2019-03-30T19:45:37.259Z", + "stringField": "QUAM CULPA", + }, + Object { + "dateTimeField": "2019-04-26T22:33:32.962Z", + "stringField": "SCHIMMEL", + }, + Object { + "dateTimeField": "2019-11-11T20:22:39.955Z", + "stringField": "Madeline", + }, + Object { + "dateTimeField": "2019-04-17T01:25:34.424Z", + "stringField": "NAKIA", + }, + Object { + "dateTimeField": "2018-06-21T08:52:15.890Z", + "stringField": "Nakia", + }, + Object { + "dateTimeField": "2018-03-10T17:25:14.892Z", + "stringField": "sed praesentium", + }, + Object { + "dateTimeField": "2018-10-26T12:04:40.017Z", + "stringField": "LUEILWITZ", + }, + Object { + "dateTimeField": "2018-08-13T16:06:07.214Z", + "stringField": "amber", + }, + Object { + "dateTimeField": "2018-12-11T07:56:46.405Z", + "stringField": "JEROMY", + }, + Object { + "dateTimeField": "2018-01-11T01:58:14.032Z", + "stringField": "RYLEIGH", + }, + Object { + "dateTimeField": "2018-03-09T14:25:42.617Z", + "stringField": "delfinaz", + }, + Object { + "dateTimeField": "2019-12-29T20:30:17.183Z", + "stringField": "SHEMAR", + }, + Object { + "dateTimeField": "2018-10-25T06:53:58.190Z", + "stringField": "Wilmer", + }, + Object { + "dateTimeField": "2018-06-10T11:31:29.657Z", + "stringField": "stark", + }, + Object { + "dateTimeField": "2018-03-13T18:09:40.750Z", + "stringField": "elda", + }, + Object { + "dateTimeField": "2019-06-19T04:58:36.438Z", + "stringField": "Damien", + }, + Object { + "dateTimeField": "2018-06-06T19:52:48.715Z", + "stringField": "earum nesciunt", + }, + Object { + "dateTimeField": "2018-07-29T01:17:45.596Z", + "stringField": "horowitz", + }, + Object { + "dateTimeField": "2018-03-24T06:41:17.641Z", + "stringField": "schowalter", + }, + Object { + "dateTimeField": "2018-12-25T17:14:31.792Z", + "stringField": "MAIORES ADIPISCI", + }, + Object { + "dateTimeField": "2019-11-13T18:22:51.055Z", + "stringField": "devin", + }, + Object { + "dateTimeField": "2019-11-20T11:42:01.432Z", + "stringField": "VELIT ADIPISCI", + }, + Object { + "dateTimeField": "2018-02-23T17:27:00.987Z", + "stringField": "AMET QUI", + }, + Object { + "dateTimeField": "2019-10-15T13:37:32.192Z", + "stringField": "maiores praesentium", + }, + Object { + "dateTimeField": "2019-02-11T05:37:09.516Z", + "stringField": "rerum et", + }, + Object { + "dateTimeField": "2019-02-08T16:41:13.768Z", + "stringField": "erling", + }, + Object { + "dateTimeField": "2019-05-02T11:56:08.871Z", + "stringField": "alias sint", + }, + Object { + "dateTimeField": "2018-12-23T05:29:36.961Z", + "stringField": "molestiae praesentium", + }, + Object { + "dateTimeField": "2018-02-21T06:42:38.139Z", + "stringField": "hartmann", + }, + Object { + "dateTimeField": "2018-04-28T05:35:05.513Z", + "stringField": "raquel", + }, + Object { + "dateTimeField": "2019-10-12T02:20:37.708Z", + "stringField": "ODIO ID", + }, + Object { + "dateTimeField": "2019-05-27T03:22:02.440Z", + "stringField": "quia et", + }, + Object { + "dateTimeField": "2018-02-06T23:50:49.092Z", + "stringField": "HOPPE", + }, + Object { + "dateTimeField": "2019-02-25T02:47:46.670Z", + "stringField": "VON", + }, + Object { + "dateTimeField": "2019-09-09T21:30:46.841Z", + "stringField": "neque tempore", + }, + Object { + "dateTimeField": "2018-08-07T10:43:25.410Z", + "stringField": "eum reiciendis", + }, + Object { + "dateTimeField": "2018-07-02T03:09:42.268Z", + "stringField": "iusto perspiciatis", + }, + Object { + "dateTimeField": "2018-04-04T22:09:44.507Z", + "stringField": "LABORE CULPA", + }, + Object { + "dateTimeField": "2018-01-25T05:43:10.415Z", + "stringField": "VERITATIS EIUS", + }, + Object { + "dateTimeField": "2018-04-05T21:24:11.767Z", + "stringField": "billie", + }, + Object { + "dateTimeField": "2018-04-15T06:49:17.394Z", + "stringField": "HELGA", + }, + Object { + "dateTimeField": "2019-11-05T13:56:17.060Z", + "stringField": "dietrich", + }, + Object { + "dateTimeField": "2018-07-22T09:57:28.210Z", + "stringField": "DOVIE", + }, + Object { + "dateTimeField": "2019-12-27T01:42:13.975Z", + "stringField": "linnea", + }, + Object { + "dateTimeField": "2018-04-23T20:20:23.845Z", + "stringField": "madison", + }, + Object { + "dateTimeField": "2019-07-18T17:41:43.042Z", + "stringField": "macy", + }, + Object { + "dateTimeField": "2019-02-13T01:58:53.948Z", + "stringField": "GERLACH", + }, + Object { + "dateTimeField": "2018-09-22T19:08:17.847Z", + "stringField": "padberg", + }, + Object { + "dateTimeField": "2018-08-14T06:26:06.480Z", + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "dateTimeField": "2019-08-03T23:12:04.505Z", + "stringField": "OMNIS ERROR", + }, + Object { + "dateTimeField": "2019-02-01T23:53:26.248Z", + "stringField": "Williamson", + }, + Object { + "dateTimeField": "2018-01-07T06:38:48.310Z", + "stringField": "schamberger", + }, + Object { + "dateTimeField": "2019-06-11T23:31:27.825Z", + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "dateTimeField": "2018-08-22T05:05:10.761Z", + "stringField": "jaskolski", + }, + Object { + "dateTimeField": "2019-09-09T03:24:37.315Z", + "stringField": "Wisoky", + }, + Object { + "dateTimeField": "2018-08-28T10:28:33.206Z", + "stringField": "paucek", + }, + Object { + "dateTimeField": "2018-10-20T06:13:15.849Z", + "stringField": "kuhic", + }, + Object { + "dateTimeField": "2019-04-12T20:45:07.338Z", + "stringField": "WITTING", + }, + Object { + "dateTimeField": "2018-03-27T22:53:48.958Z", + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "dateTimeField": "2019-03-07T05:12:30.173Z", + "stringField": "placeat voluptate", + }, + Object { + "dateTimeField": "2019-07-20T05:45:49.910Z", + "stringField": "pagac", + }, + Object { + "dateTimeField": "2018-05-17T00:44:29.364Z", + "stringField": "eius necessitatibus", + }, + Object { + "dateTimeField": "2019-10-21T19:02:03.628Z", + "stringField": "Mortimer", + }, +] +`; + +exports[`server find: enum field = BAR 1`] = ` +Array [ + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "BOSCO", + }, + Object { + "stringField": "SCHOEN", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "koelpin", + }, + Object { + "stringField": "DELENITI SUNT", + }, + Object { + "stringField": "inventore velit", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "horowitz", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "devin", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "erling", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "iste in", + }, + Object { + "stringField": "HOPPE", + }, + Object { + "stringField": "korey", + }, + Object { + "stringField": "VON", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "billie", + }, + Object { + "stringField": "winston", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "dietrich", + }, + Object { + "stringField": "DOVIE", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "Block", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "sed quod", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "SIT ODIO", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "RICE", + }, + Object { + "stringField": "Mortimer", + }, +] +`; + +exports[`server find: integer query: greater than 21 1`] = ` +Array [ + Object { + "stringField": "My String", + }, + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "SCHOEN", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "SCHINNER", + }, + Object { + "stringField": "DELENITI SUNT", + }, + Object { + "stringField": "inventore velit", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "BERENICE", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "elda", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "VELIT ADIPISCI", + }, + Object { + "stringField": "rerum et", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "alias sint", + }, + Object { + "stringField": "quia et", + }, + Object { + "stringField": "HOPPE", + }, + Object { + "stringField": "fermin", + }, + Object { + "stringField": "o'reilly", + }, + Object { + "stringField": "billie", + }, + Object { + "stringField": "dietrich", + }, + Object { + "stringField": "DOVIE", + }, + Object { + "stringField": "linnea", + }, + Object { + "stringField": "padberg", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "OMNIS ERROR", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "BAUCH", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "sed quod", + }, + Object { + "stringField": "kuhic", + }, +] +`; + +exports[`server find: integer query: greater than or equal to 21 1`] = ` +Array [ + Object { + "stringField": "My String", + }, + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "SCHOEN", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "SCHINNER", + }, + Object { + "stringField": "DELENITI SUNT", + }, + Object { + "stringField": "inventore velit", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "BERENICE", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "elda", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "VELIT ADIPISCI", + }, + Object { + "stringField": "rerum et", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "alias sint", + }, + Object { + "stringField": "quia et", + }, + Object { + "stringField": "HOPPE", + }, + Object { + "stringField": "fermin", + }, + Object { + "stringField": "o'reilly", + }, + Object { + "stringField": "billie", + }, + Object { + "stringField": "dietrich", + }, + Object { + "stringField": "DOVIE", + }, + Object { + "stringField": "linnea", + }, + Object { + "stringField": "padberg", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "OMNIS ERROR", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "BAUCH", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "sed quod", + }, + Object { + "stringField": "kuhic", + }, +] +`; + +exports[`server find: integer query: less than 21 1`] = ` +Array [ + Object { + "stringField": "BOSCO", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "koelpin", + }, + Object { + "stringField": "QUAM CULPA", + }, + Object { + "stringField": "SCHIMMEL", + }, + Object { + "stringField": "Madeline", + }, + Object { + "stringField": "NAKIA", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "LUEILWITZ", + }, + Object { + "stringField": "amber", + }, + Object { + "stringField": "JEROMY", + }, + Object { + "stringField": "RYLEIGH", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "Wilmer", + }, + Object { + "stringField": "Damien", + }, + Object { + "stringField": "horowitz", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "devin", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "erling", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "hartmann", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "quas fugit", + }, + Object { + "stringField": "ODIO ID", + }, + Object { + "stringField": "iste in", + }, + Object { + "stringField": "korey", + }, + Object { + "stringField": "VON", + }, + Object { + "stringField": "neque tempore", + }, + Object { + "stringField": "ut consequatur", + }, + Object { + "stringField": "eum reiciendis", + }, + Object { + "stringField": "iusto perspiciatis", + }, + Object { + "stringField": "HAMILL", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "winston", + }, + Object { + "stringField": "HELGA", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "luettgen", + }, + Object { + "stringField": "madison", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "macy", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "schamberger", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "DESTIN", + }, + Object { + "stringField": "Block", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "WITTING", + }, + Object { + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "SIT ODIO", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "eius necessitatibus", + }, + Object { + "stringField": "RICE", + }, + Object { + "stringField": "Mortimer", + }, + Object { + "stringField": "EX POSSIMUS", + }, +] +`; + +exports[`server find: integer query: less than or equal to 21 1`] = ` +Array [ + Object { + "stringField": "BOSCO", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "koelpin", + }, + Object { + "stringField": "QUAM CULPA", + }, + Object { + "stringField": "SCHIMMEL", + }, + Object { + "stringField": "Madeline", + }, + Object { + "stringField": "NAKIA", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "LUEILWITZ", + }, + Object { + "stringField": "amber", + }, + Object { + "stringField": "JEROMY", + }, + Object { + "stringField": "RYLEIGH", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "Wilmer", + }, + Object { + "stringField": "Damien", + }, + Object { + "stringField": "horowitz", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "devin", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "erling", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "hartmann", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "quas fugit", + }, + Object { + "stringField": "ODIO ID", + }, + Object { + "stringField": "iste in", + }, + Object { + "stringField": "korey", + }, + Object { + "stringField": "VON", + }, + Object { + "stringField": "neque tempore", + }, + Object { + "stringField": "ut consequatur", + }, + Object { + "stringField": "eum reiciendis", + }, + Object { + "stringField": "iusto perspiciatis", + }, + Object { + "stringField": "HAMILL", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "winston", + }, + Object { + "stringField": "HELGA", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "luettgen", + }, + Object { + "stringField": "madison", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "macy", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "schamberger", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "DESTIN", + }, + Object { + "stringField": "Block", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "WITTING", + }, + Object { + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "SIT ODIO", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "eius necessitatibus", + }, + Object { + "stringField": "RICE", + }, + Object { + "stringField": "Mortimer", + }, + Object { + "stringField": "EX POSSIMUS", + }, +] +`; + +exports[`server find: jsonField foo_eq: bar 1`] = ` +Array [ + Object { + "jsonField": Object { + "foo": "bar", + "quia": "autem", + }, + "stringField": "Trantow", + }, + Object { + "jsonField": Object { + "foo": "bar", + "repellat": "autem", + }, + "stringField": "BOSCO", + }, + Object { + "jsonField": Object { + "foo": "bar", + "omnis": "laboriosam", + }, + "stringField": "maximillia", + }, + Object { + "jsonField": Object { + "blanditiis": "eligendi", + "foo": "bar", + }, + "stringField": "Madeline", + }, + Object { + "jsonField": Object { + "foo": "bar", + "ut": "expedita", + }, + "stringField": "nakia", + }, + Object { + "jsonField": Object { + "earum": "in", + "foo": "bar", + }, + "stringField": "SHEMAR", + }, + Object { + "jsonField": Object { + "foo": "bar", + "voluptatem": "quasi", + }, + "stringField": "Damien", + }, + Object { + "jsonField": Object { + "foo": "bar", + "qui": "quis", + }, + "stringField": "devin", + }, + Object { + "jsonField": Object { + "corrupti": "sit", + "foo": "bar", + }, + "stringField": "erling", + }, + Object { + "jsonField": Object { + "foo": "bar", + "nisi": "aut", + }, + "stringField": "molestiae praesentium", + }, + Object { + "jsonField": Object { + "foo": "bar", + "molestias": "quo", + }, + "stringField": "Okuneva", + }, + Object { + "jsonField": Object { + "et": "incidunt", + "foo": "bar", + }, + "stringField": "quia et", + }, + Object { + "jsonField": Object { + "foo": "bar", + "quisquam": "perspiciatis", + }, + "stringField": "korey", + }, + Object { + "jsonField": Object { + "foo": "bar", + "ut": "enim", + }, + "stringField": "neque tempore", + }, + Object { + "jsonField": Object { + "foo": "bar", + "nobis": "recusandae", + }, + "stringField": "HAMILL", + }, + Object { + "jsonField": Object { + "eum": "tenetur", + "foo": "bar", + }, + "stringField": "o'reilly", + }, + Object { + "jsonField": Object { + "foo": "bar", + "incidunt": "placeat", + }, + "stringField": "VERITATIS EIUS", + }, + Object { + "jsonField": Object { + "exercitationem": "natus", + "foo": "bar", + }, + "stringField": "ipsum voluptas", + }, + Object { + "jsonField": Object { + "foo": "bar", + "praesentium": "rerum", + }, + "stringField": "dietrich", + }, + Object { + "jsonField": Object { + "foo": "bar", + "laboriosam": "ipsum", + }, + "stringField": "DOVIE", + }, + Object { + "jsonField": Object { + "foo": "bar", + "natus": "dolores", + }, + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "jsonField": Object { + "et": "omnis", + "foo": "bar", + }, + "stringField": "macy", + }, + Object { + "jsonField": Object { + "autem": "consectetur", + "foo": "bar", + }, + "stringField": "amalia", + }, + Object { + "jsonField": Object { + "foo": "bar", + "repellat": "id", + }, + "stringField": "Williamson", + }, + Object { + "jsonField": Object { + "et": "eos", + "foo": "bar", + }, + "stringField": "DESTIN", + }, + Object { + "jsonField": Object { + "et": "et", + "foo": "bar", + }, + "stringField": "paucek", + }, + Object { + "jsonField": Object { + "foo": "bar", + "illum": "eum", + }, + "stringField": "kuhic", + }, + Object { + "jsonField": Object { + "foo": "bar", + "non": "voluptatem", + }, + "stringField": "eius necessitatibus", + }, + Object { + "jsonField": Object { + "foo": "bar", + "ipsum": "nihil", + }, + "stringField": "RICE", + }, +] +`; + +exports[`server find: string query: contains \`A\` (upper or lower) 1`] = ` +Array [ + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "QUAM CULPA", + }, + Object { + "stringField": "Madeline", + }, + Object { + "stringField": "NAKIA", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "amber", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "elda", + }, + Object { + "stringField": "Damien", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "VELIT ADIPISCI", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "alias sint", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "hartmann", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "quas fugit", + }, + Object { + "stringField": "quia et", + }, + Object { + "stringField": "ut consequatur", + }, + Object { + "stringField": "iusto perspiciatis", + }, + Object { + "stringField": "HAMILL", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "HELGA", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "linnea", + }, + Object { + "stringField": "madison", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "macy", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "padberg", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "schamberger", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "BAUCH", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "eius necessitatibus", + }, +] +`; + +exports[`server find: string query: contains \`a\` (upper or lower) 1`] = ` +Array [ + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "QUAM CULPA", + }, + Object { + "stringField": "Madeline", + }, + Object { + "stringField": "NAKIA", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "amber", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "elda", + }, + Object { + "stringField": "Damien", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "VELIT ADIPISCI", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "alias sint", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "hartmann", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "quas fugit", + }, + Object { + "stringField": "quia et", + }, + Object { + "stringField": "ut consequatur", + }, + Object { + "stringField": "iusto perspiciatis", + }, + Object { + "stringField": "HAMILL", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "HELGA", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "linnea", + }, + Object { + "stringField": "madison", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "macy", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "padberg", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "schamberger", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "BAUCH", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "eius necessitatibus", + }, +] +`; + +exports[`server find: string query: ends with \`z\` (upper or lower) 1`] = ` +Array [ + Object { + "stringField": "LUEILWITZ", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "horowitz", + }, +] +`; + +exports[`server find: string query: exact match (Nakia) 1`] = ` +Array [ + Object { + "stringField": "Nakia", + }, +] +`; + +exports[`server find: string query: in list { devin, erling, KAELYN, raquel } 1`] = ` +Array [ + Object { + "stringField": "devin", + }, + Object { + "stringField": "erling", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "raquel", + }, +] +`; + +exports[`server find: string query: starts with \`b\` (upper or lower) 1`] = ` +Array [ + Object { + "stringField": "BOSCO", + }, + Object { + "stringField": "BERENICE", + }, + Object { + "stringField": "billie", + }, + Object { + "stringField": "Block", + }, + Object { + "stringField": "BAUCH", + }, +] +`; + +exports[`server getBindingError pulls correct info from binding error 1`] = ` +Object { + "emailField": Object { + "isEmail": "emailField must be an email", + }, +} +`; + +exports[`server no replica IAN queries deeply nested objects without an ID 1`] = ` +Array [ + Object { + "booleanField": true, + "createdById": "abc123", + "dateField": "2019-10-15T00:00:00.000Z", + "dishes": Array [ + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 0", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 1", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 2", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 3", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 4", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 5", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 6", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 7", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 8", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 9", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 10", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 11", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 12", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 13", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 14", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 15", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 16", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 17", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 18", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 19", + }, + ], + "emailField": "hi@warthog.com", + "floatField": 123.456, + "integerField": 123, + "jsonField": Object { + "hello": "world", + }, + "stringField": "My String", + "updatedById": null, + "version": 1, + }, +] +`; + +exports[`server no replica Use 2 different operators on same attribute 1`] = ` +Array [ + Object { + "stringField": "Trantow", + }, +] +`; + +exports[`server no replica find: allows client to ask for __typename 1`] = ` +Array [ + Object { + "__typename": "KitchenSink", + }, +] +`; + +exports[`server no replica find: arrayOfInts_containsAll: [1, 2, 7] 1`] = ` +Array [ + Object { + "arrayOfInts": Array [ + 2, + 1, + 5, + 7, + ], + "stringField": "Mortimer", + }, +] +`; + +exports[`server no replica find: arrayOfInts_containsAny: [1, 2, 7] 1`] = ` +Array [ + Object { + "arrayOfInts": Array [ + 1, + ], + "stringField": "Trantow", + }, + Object { + "arrayOfInts": Array [ + 4, + 0, + 5, + 2, + ], + "stringField": "SCHOEN", + }, + Object { + "arrayOfInts": Array [ + 6, + 0, + 1, + ], + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "arrayOfInts": Array [ + 2, + 4, + 4, + ], + "stringField": "Wisoky", + }, + Object { + "arrayOfInts": Array [ + 2, + 0, + ], + "stringField": "SCHINNER", + }, + Object { + "arrayOfInts": Array [ + 1, + ], + "stringField": "maximillia", + }, + Object { + "arrayOfInts": Array [ + 0, + 0, + 7, + ], + "stringField": "DELENITI SUNT", + }, + Object { + "arrayOfInts": Array [ + 1, + 2, + 1, + 6, + ], + "stringField": "QUAM CULPA", + }, + Object { + "arrayOfInts": Array [ + 8, + 4, + 7, + ], + "stringField": "SCHIMMEL", + }, + Object { + "arrayOfInts": Array [ + 7, + ], + "stringField": "nakia", + }, + Object { + "arrayOfInts": Array [ + 1, + 8, + ], + "stringField": "LUEILWITZ", + }, + Object { + "arrayOfInts": Array [ + 7, + 0, + 0, + 3, + ], + "stringField": "BERENICE", + }, + Object { + "arrayOfInts": Array [ + 0, + 1, + 7, + 0, + ], + "stringField": "amber", + }, + Object { + "arrayOfInts": Array [ + 6, + 2, + 0, + 7, + ], + "stringField": "RYLEIGH", + }, + Object { + "arrayOfInts": Array [ + 7, + ], + "stringField": "delfinaz", + }, + Object { + "arrayOfInts": Array [ + 6, + 3, + 4, + 2, + ], + "stringField": "earum nesciunt", + }, + Object { + "arrayOfInts": Array [ + 2, + 1, + 1, + ], + "stringField": "schowalter", + }, + Object { + "arrayOfInts": Array [ + 0, + 7, + 8, + ], + "stringField": "MAIORES ADIPISCI", + }, + Object { + "arrayOfInts": Array [ + 1, + 8, + 3, + ], + "stringField": "rerum et", + }, + Object { + "arrayOfInts": Array [ + 3, + 4, + 6, + 1, + ], + "stringField": "alias sint", + }, + Object { + "arrayOfInts": Array [ + 7, + ], + "stringField": "molestiae praesentium", + }, + Object { + "arrayOfInts": Array [ + 3, + 7, + 8, + 5, + ], + "stringField": "hartmann", + }, + Object { + "arrayOfInts": Array [ + 7, + 7, + 1, + ], + "stringField": "quas fugit", + }, + Object { + "arrayOfInts": Array [ + 7, + 3, + 0, + ], + "stringField": "quia et", + }, + Object { + "arrayOfInts": Array [ + 0, + 8, + 2, + 1, + ], + "stringField": "VON", + }, + Object { + "arrayOfInts": Array [ + 2, + ], + "stringField": "HAMILL", + }, + Object { + "arrayOfInts": Array [ + 6, + 7, + ], + "stringField": "o'reilly", + }, + Object { + "arrayOfInts": Array [ + 1, + 8, + 1, + 7, + ], + "stringField": "VERITATIS EIUS", + }, + Object { + "arrayOfInts": Array [ + 3, + 7, + 6, + 8, + ], + "stringField": "billie", + }, + Object { + "arrayOfInts": Array [ + 4, + 2, + 5, + ], + "stringField": "winston", + }, + Object { + "arrayOfInts": Array [ + 7, + 2, + ], + "stringField": "DOVIE", + }, + Object { + "arrayOfInts": Array [ + 5, + 8, + 1, + 3, + ], + "stringField": "linnea", + }, + Object { + "arrayOfInts": Array [ + 2, + ], + "stringField": "madison", + }, + Object { + "arrayOfInts": Array [ + 1, + 0, + 6, + 1, + ], + "stringField": "macy", + }, + Object { + "arrayOfInts": Array [ + 4, + 1, + 4, + 3, + ], + "stringField": "ENIM DICTA", + }, + Object { + "arrayOfInts": Array [ + 1, + 7, + 6, + ], + "stringField": "Williamson", + }, + Object { + "arrayOfInts": Array [ + 3, + 5, + 1, + 4, + ], + "stringField": "DESTIN", + }, + Object { + "arrayOfInts": Array [ + 1, + 8, + 4, + ], + "stringField": "Block", + }, + Object { + "arrayOfInts": Array [ + 3, + 2, + 8, + ], + "stringField": "jaskolski", + }, + Object { + "arrayOfInts": Array [ + 5, + 7, + 6, + 7, + ], + "stringField": "Wisoky", + }, + Object { + "arrayOfInts": Array [ + 7, + 5, + 3, + ], + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "arrayOfInts": Array [ + 7, + 2, + 6, + 4, + ], + "stringField": "SIT ODIO", + }, + Object { + "arrayOfInts": Array [ + 4, + 0, + 0, + 2, + ], + "stringField": "pagac", + }, + Object { + "arrayOfInts": Array [ + 6, + 5, + 1, + 3, + ], + "stringField": "eius necessitatibus", + }, + Object { + "arrayOfInts": Array [ + 8, + 7, + ], + "stringField": "RICE", + }, + Object { + "arrayOfInts": Array [ + 2, + 1, + 5, + 7, + ], + "stringField": "Mortimer", + }, +] +`; + +exports[`server no replica find: arrayOfInts_containsNone: [1, 2, 7] 1`] = ` +Array [ + Object { + "arrayOfInts": Array [ + 5, + 4, + ], + "stringField": "BOSCO", + }, + Object { + "arrayOfInts": Array [ + 5, + 5, + ], + "stringField": "koelpin", + }, + Object { + "arrayOfInts": Array [], + "stringField": "inventore velit", + }, + Object { + "arrayOfInts": Array [ + 4, + ], + "stringField": "Madeline", + }, + Object { + "arrayOfInts": Array [ + 5, + ], + "stringField": "NAKIA", + }, + Object { + "arrayOfInts": Array [ + 3, + 0, + 8, + ], + "stringField": "Nakia", + }, + Object { + "arrayOfInts": Array [ + 5, + ], + "stringField": "sed praesentium", + }, + Object { + "arrayOfInts": Array [], + "stringField": "JEROMY", + }, + Object { + "arrayOfInts": Array [], + "stringField": "SHEMAR", + }, + Object { + "arrayOfInts": Array [], + "stringField": "Wilmer", + }, + Object { + "arrayOfInts": Array [ + 5, + ], + "stringField": "stark", + }, + Object { + "arrayOfInts": Array [ + 0, + 8, + 5, + 5, + ], + "stringField": "elda", + }, + Object { + "arrayOfInts": Array [ + 0, + ], + "stringField": "Damien", + }, + Object { + "arrayOfInts": Array [ + 5, + 6, + ], + "stringField": "illum atque", + }, + Object { + "arrayOfInts": Array [ + 0, + 4, + 6, + ], + "stringField": "horowitz", + }, + Object { + "arrayOfInts": Array [], + "stringField": "devin", + }, + Object { + "arrayOfInts": Array [ + 3, + 6, + ], + "stringField": "VELIT ADIPISCI", + }, + Object { + "arrayOfInts": Array [ + 8, + 4, + 3, + 6, + ], + "stringField": "AMET QUI", + }, + Object { + "arrayOfInts": Array [ + 4, + 5, + 3, + 8, + ], + "stringField": "maiores praesentium", + }, + Object { + "arrayOfInts": Array [ + 6, + ], + "stringField": "erling", + }, + Object { + "arrayOfInts": Array [ + 8, + ], + "stringField": "KAELYN", + }, + Object { + "arrayOfInts": Array [], + "stringField": "Okuneva", + }, + Object { + "arrayOfInts": Array [], + "stringField": "raquel", + }, + Object { + "arrayOfInts": Array [ + 3, + 0, + 4, + ], + "stringField": "ODIO ID", + }, + Object { + "arrayOfInts": Array [ + 0, + 8, + ], + "stringField": "iste in", + }, + Object { + "arrayOfInts": Array [ + 0, + ], + "stringField": "HOPPE", + }, + Object { + "arrayOfInts": Array [], + "stringField": "korey", + }, + Object { + "arrayOfInts": Array [], + "stringField": "neque tempore", + }, + Object { + "arrayOfInts": Array [ + 0, + 0, + ], + "stringField": "ut consequatur", + }, + Object { + "arrayOfInts": Array [ + 3, + ], + "stringField": "fermin", + }, + Object { + "arrayOfInts": Array [], + "stringField": "eum reiciendis", + }, + Object { + "arrayOfInts": Array [], + "stringField": "iusto perspiciatis", + }, + Object { + "arrayOfInts": Array [ + 4, + ], + "stringField": "LABORE CULPA", + }, + Object { + "arrayOfInts": Array [], + "stringField": "HELGA", + }, + Object { + "arrayOfInts": Array [ + 4, + 3, + 0, + ], + "stringField": "ipsum voluptas", + }, + Object { + "arrayOfInts": Array [ + 0, + 6, + 5, + ], + "stringField": "luettgen", + }, + Object { + "arrayOfInts": Array [ + 0, + ], + "stringField": "dietrich", + }, + Object { + "arrayOfInts": Array [ + 3, + ], + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "arrayOfInts": Array [ + 5, + 5, + 8, + ], + "stringField": "GERLACH", + }, + Object { + "arrayOfInts": Array [], + "stringField": "padberg", + }, + Object { + "arrayOfInts": Array [ + 3, + 6, + ], + "stringField": "amalia", + }, + Object { + "arrayOfInts": Array [], + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "arrayOfInts": Array [], + "stringField": "OMNIS ERROR", + }, + Object { + "arrayOfInts": Array [ + 5, + 8, + 3, + 3, + ], + "stringField": "schamberger", + }, + Object { + "arrayOfInts": Array [], + "stringField": "Jared", + }, + Object { + "arrayOfInts": Array [ + 8, + ], + "stringField": "QUIDEM FUGIAT", + }, + Object { + "arrayOfInts": Array [], + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "arrayOfInts": Array [ + 4, + 3, + ], + "stringField": "BAUCH", + }, + Object { + "arrayOfInts": Array [ + 5, + ], + "stringField": "paucek", + }, + Object { + "arrayOfInts": Array [ + 8, + 6, + ], + "stringField": "sed quod", + }, + Object { + "arrayOfInts": Array [ + 3, + ], + "stringField": "kuhic", + }, + Object { + "arrayOfInts": Array [ + 0, + 4, + 8, + ], + "stringField": "WITTING", + }, + Object { + "arrayOfInts": Array [], + "stringField": "placeat voluptate", + }, + Object { + "arrayOfInts": Array [ + 8, + 6, + 6, + ], + "stringField": "EX POSSIMUS", + }, +] +`; + +exports[`server no replica find: arrayOfStrings_containsAll: [dog, cat] 1`] = ` +Array [ + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "BOSCO", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "SCHOEN", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "padberg", + }, +] +`; + +exports[`server no replica find: arrayOfStrings_containsAny: [dog, cat] 1`] = ` +Array [ + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "BOSCO", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "SCHOEN", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "SCHINNER", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "fox", + ], + "stringField": "inventore velit", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "nakia", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "fox", + ], + "stringField": "sed praesentium", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "LUEILWITZ", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "fox", + ], + "stringField": "RYLEIGH", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "Wilmer", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "cat", + ], + "stringField": "elda", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "dog", + ], + "stringField": "illum atque", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "cat", + ], + "stringField": "AMET QUI", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "pony", + ], + "stringField": "rerum et", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "dog", + ], + "stringField": "erling", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "KAELYN", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "alias sint", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "hartmann", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "ODIO ID", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "HOPPE", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "neque tempore", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "dog", + ], + "stringField": "HAMILL", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "LABORE CULPA", + }, + Object { + "arrayOfStrings": Array [ + "fox", + "dog", + ], + "stringField": "HELGA", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "fox", + ], + "stringField": "linnea", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "macy", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "padberg", + }, + Object { + "arrayOfStrings": Array [ + "fox", + "dog", + ], + "stringField": "Jared", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "dog", + ], + "stringField": "QUIDEM FUGIAT", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "pagac", + }, +] +`; + +exports[`server no replica find: arrayOfStrings_containsNone: [dog, cat] 1`] = ` +Array [ + Object { + "arrayOfStrings": Array [], + "stringField": "Trantow", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "turtle", + ], + "stringField": "Wisoky", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "maximillia", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "koelpin", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "DELENITI SUNT", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "QUAM CULPA", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "SCHIMMEL", + }, + Object { + "arrayOfStrings": Array [ + "fox", + "turtle", + ], + "stringField": "Madeline", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "NAKIA", + }, + Object { + "arrayOfStrings": Array [ + "fox", + "pony", + ], + "stringField": "Nakia", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "BERENICE", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "fox", + ], + "stringField": "amber", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "JEROMY", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "delfinaz", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "SHEMAR", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "turtle", + ], + "stringField": "stark", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "Damien", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "earum nesciunt", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "horowitz", + }, + Object { + "arrayOfStrings": Array [ + "pony", + ], + "stringField": "schowalter", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "MAIORES ADIPISCI", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "devin", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "VELIT ADIPISCI", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "maiores praesentium", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "molestiae praesentium", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "Okuneva", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "raquel", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "quas fugit", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "iste in", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "quia et", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "korey", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "VON", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "ut consequatur", + }, + Object { + "arrayOfStrings": Array [ + "pony", + ], + "stringField": "fermin", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "eum reiciendis", + }, + Object { + "arrayOfStrings": Array [ + "pony", + ], + "stringField": "iusto perspiciatis", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "o'reilly", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "fox", + ], + "stringField": "VERITATIS EIUS", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "billie", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "winston", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "ipsum voluptas", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "luettgen", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "dietrich", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "DOVIE", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "madison", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "GERLACH", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "ENIM DICTA", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "amalia", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "OMNIS ERROR", + }, + Object { + "arrayOfStrings": Array [ + "pony", + ], + "stringField": "Williamson", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "schamberger", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "pony", + ], + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "DESTIN", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "Block", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "jaskolski", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "BAUCH", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "fox", + ], + "stringField": "Wisoky", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "paucek", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "sed quod", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "fox", + ], + "stringField": "kuhic", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "WITTING", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "placeat voluptate", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "SIT ODIO", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "eius necessitatibus", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "RICE", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "Mortimer", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "EX POSSIMUS", + }, +] +`; + +exports[`server no replica find: dateOnlyField greater than or equal 2020-01-01 1`] = ` +Array [ + Object { + "dateOnlyField": "2020-02-27", + "stringField": "BOSCO", + }, + Object { + "dateOnlyField": "2020-12-03", + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "dateOnlyField": "2020-02-25", + "stringField": "Wisoky", + }, + Object { + "dateOnlyField": "2020-08-18", + "stringField": "SCHINNER", + }, + Object { + "dateOnlyField": "2020-10-01", + "stringField": "koelpin", + }, + Object { + "dateOnlyField": "2020-07-10", + "stringField": "inventore velit", + }, + Object { + "dateOnlyField": "2020-03-31", + "stringField": "QUAM CULPA", + }, + Object { + "dateOnlyField": "2020-06-20", + "stringField": "NAKIA", + }, + Object { + "dateOnlyField": "2020-10-28", + "stringField": "nakia", + }, + Object { + "dateOnlyField": "2020-09-21", + "stringField": "sed praesentium", + }, + Object { + "dateOnlyField": "2020-08-24", + "stringField": "LUEILWITZ", + }, + Object { + "dateOnlyField": "2020-03-30", + "stringField": "RYLEIGH", + }, + Object { + "dateOnlyField": "2020-05-15", + "stringField": "delfinaz", + }, + Object { + "dateOnlyField": "2020-12-13", + "stringField": "elda", + }, + Object { + "dateOnlyField": "2020-06-02", + "stringField": "Damien", + }, + Object { + "dateOnlyField": "2020-11-21", + "stringField": "KAELYN", + }, + Object { + "dateOnlyField": "2020-10-11", + "stringField": "iste in", + }, + Object { + "dateOnlyField": "2020-07-07", + "stringField": "ut consequatur", + }, + Object { + "dateOnlyField": "2020-09-26", + "stringField": "eum reiciendis", + }, + Object { + "dateOnlyField": "2020-09-18", + "stringField": "iusto perspiciatis", + }, + Object { + "dateOnlyField": "2020-10-14", + "stringField": "VERITATIS EIUS", + }, + Object { + "dateOnlyField": "2020-12-03", + "stringField": "macy", + }, + Object { + "dateOnlyField": "2020-02-10", + "stringField": "GERLACH", + }, + Object { + "dateOnlyField": "2020-07-08", + "stringField": "ENIM DICTA", + }, + Object { + "dateOnlyField": "2020-12-11", + "stringField": "amalia", + }, + Object { + "dateOnlyField": "2020-03-04", + "stringField": "schamberger", + }, + Object { + "dateOnlyField": "2020-09-07", + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "dateOnlyField": "2020-10-01", + "stringField": "DESTIN", + }, + Object { + "dateOnlyField": "2020-12-30", + "stringField": "eius necessitatibus", + }, + Object { + "dateOnlyField": "2020-12-20", + "stringField": "RICE", + }, +] +`; + +exports[`server no replica find: dateTimeField less than or equal 2020-01-01 1`] = ` +Array [ + Object { + "dateTimeField": "2019-11-25T22:03:38.286Z", + "stringField": "Trantow", + }, + Object { + "dateTimeField": "2019-02-14T08:01:37.290Z", + "stringField": "BOSCO", + }, + Object { + "dateTimeField": "2018-09-03T00:38:19.337Z", + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "dateTimeField": "2018-05-31T19:22:05.341Z", + "stringField": "Wisoky", + }, + Object { + "dateTimeField": "2018-07-05T11:32:01.838Z", + "stringField": "DELENITI SUNT", + }, + Object { + "dateTimeField": "2018-04-28T06:17:13.736Z", + "stringField": "inventore velit", + }, + Object { + "dateTimeField": "2019-03-30T19:45:37.259Z", + "stringField": "QUAM CULPA", + }, + Object { + "dateTimeField": "2019-04-26T22:33:32.962Z", + "stringField": "SCHIMMEL", + }, + Object { + "dateTimeField": "2019-11-11T20:22:39.955Z", + "stringField": "Madeline", + }, + Object { + "dateTimeField": "2019-04-17T01:25:34.424Z", + "stringField": "NAKIA", + }, + Object { + "dateTimeField": "2018-06-21T08:52:15.890Z", + "stringField": "Nakia", + }, + Object { + "dateTimeField": "2018-03-10T17:25:14.892Z", + "stringField": "sed praesentium", + }, + Object { + "dateTimeField": "2018-10-26T12:04:40.017Z", + "stringField": "LUEILWITZ", + }, + Object { + "dateTimeField": "2018-08-13T16:06:07.214Z", + "stringField": "amber", + }, + Object { + "dateTimeField": "2018-12-11T07:56:46.405Z", + "stringField": "JEROMY", + }, + Object { + "dateTimeField": "2018-01-11T01:58:14.032Z", + "stringField": "RYLEIGH", + }, + Object { + "dateTimeField": "2018-03-09T14:25:42.617Z", + "stringField": "delfinaz", + }, + Object { + "dateTimeField": "2019-12-29T20:30:17.183Z", + "stringField": "SHEMAR", + }, + Object { + "dateTimeField": "2018-10-25T06:53:58.190Z", + "stringField": "Wilmer", + }, + Object { + "dateTimeField": "2018-06-10T11:31:29.657Z", + "stringField": "stark", + }, + Object { + "dateTimeField": "2018-03-13T18:09:40.750Z", + "stringField": "elda", + }, + Object { + "dateTimeField": "2019-06-19T04:58:36.438Z", + "stringField": "Damien", + }, + Object { + "dateTimeField": "2018-06-06T19:52:48.715Z", + "stringField": "earum nesciunt", + }, + Object { + "dateTimeField": "2018-07-29T01:17:45.596Z", + "stringField": "horowitz", + }, + Object { + "dateTimeField": "2018-03-24T06:41:17.641Z", + "stringField": "schowalter", + }, + Object { + "dateTimeField": "2018-12-25T17:14:31.792Z", + "stringField": "MAIORES ADIPISCI", + }, + Object { + "dateTimeField": "2019-11-13T18:22:51.055Z", + "stringField": "devin", + }, + Object { + "dateTimeField": "2019-11-20T11:42:01.432Z", + "stringField": "VELIT ADIPISCI", + }, + Object { + "dateTimeField": "2018-02-23T17:27:00.987Z", + "stringField": "AMET QUI", + }, + Object { + "dateTimeField": "2019-10-15T13:37:32.192Z", + "stringField": "maiores praesentium", + }, + Object { + "dateTimeField": "2019-02-11T05:37:09.516Z", + "stringField": "rerum et", + }, + Object { + "dateTimeField": "2019-02-08T16:41:13.768Z", + "stringField": "erling", + }, + Object { + "dateTimeField": "2019-05-02T11:56:08.871Z", + "stringField": "alias sint", + }, + Object { + "dateTimeField": "2018-12-23T05:29:36.961Z", + "stringField": "molestiae praesentium", + }, + Object { + "dateTimeField": "2018-02-21T06:42:38.139Z", + "stringField": "hartmann", + }, + Object { + "dateTimeField": "2018-04-28T05:35:05.513Z", + "stringField": "raquel", + }, + Object { + "dateTimeField": "2019-10-12T02:20:37.708Z", + "stringField": "ODIO ID", + }, + Object { + "dateTimeField": "2019-05-27T03:22:02.440Z", + "stringField": "quia et", + }, + Object { + "dateTimeField": "2018-02-06T23:50:49.092Z", + "stringField": "HOPPE", + }, + Object { + "dateTimeField": "2019-02-25T02:47:46.670Z", + "stringField": "VON", + }, + Object { + "dateTimeField": "2019-09-09T21:30:46.841Z", + "stringField": "neque tempore", + }, + Object { + "dateTimeField": "2018-08-07T10:43:25.410Z", + "stringField": "eum reiciendis", + }, + Object { + "dateTimeField": "2018-07-02T03:09:42.268Z", + "stringField": "iusto perspiciatis", + }, + Object { + "dateTimeField": "2018-04-04T22:09:44.507Z", + "stringField": "LABORE CULPA", + }, + Object { + "dateTimeField": "2018-01-25T05:43:10.415Z", + "stringField": "VERITATIS EIUS", + }, + Object { + "dateTimeField": "2018-04-05T21:24:11.767Z", + "stringField": "billie", + }, + Object { + "dateTimeField": "2018-04-15T06:49:17.394Z", + "stringField": "HELGA", + }, + Object { + "dateTimeField": "2019-11-05T13:56:17.060Z", + "stringField": "dietrich", + }, + Object { + "dateTimeField": "2018-07-22T09:57:28.210Z", + "stringField": "DOVIE", + }, + Object { + "dateTimeField": "2019-12-27T01:42:13.975Z", + "stringField": "linnea", + }, + Object { + "dateTimeField": "2018-04-23T20:20:23.845Z", + "stringField": "madison", + }, + Object { + "dateTimeField": "2019-07-18T17:41:43.042Z", + "stringField": "macy", + }, + Object { + "dateTimeField": "2019-02-13T01:58:53.948Z", + "stringField": "GERLACH", + }, + Object { + "dateTimeField": "2018-09-22T19:08:17.847Z", + "stringField": "padberg", + }, + Object { + "dateTimeField": "2018-08-14T06:26:06.480Z", + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "dateTimeField": "2019-08-03T23:12:04.505Z", + "stringField": "OMNIS ERROR", + }, + Object { + "dateTimeField": "2019-02-01T23:53:26.248Z", + "stringField": "Williamson", + }, + Object { + "dateTimeField": "2018-01-07T06:38:48.310Z", + "stringField": "schamberger", + }, + Object { + "dateTimeField": "2019-06-11T23:31:27.825Z", + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "dateTimeField": "2018-08-22T05:05:10.761Z", + "stringField": "jaskolski", + }, + Object { + "dateTimeField": "2019-09-09T03:24:37.315Z", + "stringField": "Wisoky", + }, + Object { + "dateTimeField": "2018-08-28T10:28:33.206Z", + "stringField": "paucek", + }, + Object { + "dateTimeField": "2018-10-20T06:13:15.849Z", + "stringField": "kuhic", + }, + Object { + "dateTimeField": "2019-04-12T20:45:07.338Z", + "stringField": "WITTING", + }, + Object { + "dateTimeField": "2018-03-27T22:53:48.958Z", + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "dateTimeField": "2019-03-07T05:12:30.173Z", + "stringField": "placeat voluptate", + }, + Object { + "dateTimeField": "2019-07-20T05:45:49.910Z", + "stringField": "pagac", + }, + Object { + "dateTimeField": "2018-05-17T00:44:29.364Z", + "stringField": "eius necessitatibus", + }, + Object { + "dateTimeField": "2019-10-21T19:02:03.628Z", + "stringField": "Mortimer", + }, +] +`; + +exports[`server no replica find: enum field = BAR 1`] = ` +Array [ + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "BOSCO", + }, + Object { + "stringField": "SCHOEN", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "koelpin", + }, + Object { + "stringField": "DELENITI SUNT", + }, + Object { + "stringField": "inventore velit", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "horowitz", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "devin", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "erling", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "iste in", + }, + Object { + "stringField": "HOPPE", + }, + Object { + "stringField": "korey", + }, + Object { + "stringField": "VON", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "billie", + }, + Object { + "stringField": "winston", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "dietrich", + }, + Object { + "stringField": "DOVIE", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "Block", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "sed quod", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "SIT ODIO", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "RICE", + }, + Object { + "stringField": "Mortimer", + }, +] +`; + +exports[`server no replica find: integer query: greater than 21 1`] = ` +Array [ + Object { + "stringField": "My String", + }, + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "SCHOEN", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "SCHINNER", + }, + Object { + "stringField": "DELENITI SUNT", + }, + Object { + "stringField": "inventore velit", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "BERENICE", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "elda", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "VELIT ADIPISCI", + }, + Object { + "stringField": "rerum et", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "alias sint", + }, + Object { + "stringField": "quia et", + }, + Object { + "stringField": "HOPPE", + }, + Object { + "stringField": "fermin", + }, + Object { + "stringField": "o'reilly", + }, + Object { + "stringField": "billie", + }, + Object { + "stringField": "dietrich", + }, + Object { + "stringField": "DOVIE", + }, + Object { + "stringField": "linnea", + }, + Object { + "stringField": "padberg", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "OMNIS ERROR", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "BAUCH", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "sed quod", + }, + Object { + "stringField": "kuhic", + }, +] +`; + +exports[`server no replica find: integer query: greater than or equal to 21 1`] = ` +Array [ + Object { + "stringField": "My String", + }, + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "SCHOEN", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "SCHINNER", + }, + Object { + "stringField": "DELENITI SUNT", + }, + Object { + "stringField": "inventore velit", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "BERENICE", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "elda", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "VELIT ADIPISCI", + }, + Object { + "stringField": "rerum et", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "alias sint", + }, + Object { + "stringField": "quia et", + }, + Object { + "stringField": "HOPPE", + }, + Object { + "stringField": "fermin", + }, + Object { + "stringField": "o'reilly", + }, + Object { + "stringField": "billie", + }, + Object { + "stringField": "dietrich", + }, + Object { + "stringField": "DOVIE", + }, + Object { + "stringField": "linnea", + }, + Object { + "stringField": "padberg", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "OMNIS ERROR", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "BAUCH", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "sed quod", + }, + Object { + "stringField": "kuhic", + }, +] +`; + +exports[`server no replica find: integer query: less than 21 1`] = ` +Array [ + Object { + "stringField": "BOSCO", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "koelpin", + }, + Object { + "stringField": "QUAM CULPA", + }, + Object { + "stringField": "SCHIMMEL", + }, + Object { + "stringField": "Madeline", + }, + Object { + "stringField": "NAKIA", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "LUEILWITZ", + }, + Object { + "stringField": "amber", + }, + Object { + "stringField": "JEROMY", + }, + Object { + "stringField": "RYLEIGH", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "Wilmer", + }, + Object { + "stringField": "Damien", + }, + Object { + "stringField": "horowitz", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "devin", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "erling", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "hartmann", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "quas fugit", + }, + Object { + "stringField": "ODIO ID", + }, + Object { + "stringField": "iste in", + }, + Object { + "stringField": "korey", + }, + Object { + "stringField": "VON", + }, + Object { + "stringField": "neque tempore", + }, + Object { + "stringField": "ut consequatur", + }, + Object { + "stringField": "eum reiciendis", + }, + Object { + "stringField": "iusto perspiciatis", + }, + Object { + "stringField": "HAMILL", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "winston", + }, + Object { + "stringField": "HELGA", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "luettgen", + }, + Object { + "stringField": "madison", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "macy", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "schamberger", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "DESTIN", + }, + Object { + "stringField": "Block", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "WITTING", + }, + Object { + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "SIT ODIO", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "eius necessitatibus", + }, + Object { + "stringField": "RICE", + }, + Object { + "stringField": "Mortimer", + }, + Object { + "stringField": "EX POSSIMUS", + }, +] +`; + +exports[`server no replica find: integer query: less than or equal to 21 1`] = ` +Array [ + Object { + "stringField": "BOSCO", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "koelpin", + }, + Object { + "stringField": "QUAM CULPA", + }, + Object { + "stringField": "SCHIMMEL", + }, + Object { + "stringField": "Madeline", + }, + Object { + "stringField": "NAKIA", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "LUEILWITZ", + }, + Object { + "stringField": "amber", + }, + Object { + "stringField": "JEROMY", + }, + Object { + "stringField": "RYLEIGH", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "Wilmer", + }, + Object { + "stringField": "Damien", + }, + Object { + "stringField": "horowitz", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "devin", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "erling", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "hartmann", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "quas fugit", + }, + Object { + "stringField": "ODIO ID", + }, + Object { + "stringField": "iste in", + }, + Object { + "stringField": "korey", + }, + Object { + "stringField": "VON", + }, + Object { + "stringField": "neque tempore", + }, + Object { + "stringField": "ut consequatur", + }, + Object { + "stringField": "eum reiciendis", + }, + Object { + "stringField": "iusto perspiciatis", + }, + Object { + "stringField": "HAMILL", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "winston", + }, + Object { + "stringField": "HELGA", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "luettgen", + }, + Object { + "stringField": "madison", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "macy", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "schamberger", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "DESTIN", + }, + Object { + "stringField": "Block", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "WITTING", + }, + Object { + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "SIT ODIO", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "eius necessitatibus", + }, + Object { + "stringField": "RICE", + }, + Object { + "stringField": "Mortimer", + }, + Object { + "stringField": "EX POSSIMUS", + }, +] +`; + +exports[`server no replica find: jsonField foo_eq: bar 1`] = ` +Array [ + Object { + "jsonField": Object { + "foo": "bar", + "quia": "autem", + }, + "stringField": "Trantow", + }, + Object { + "jsonField": Object { + "foo": "bar", + "repellat": "autem", + }, + "stringField": "BOSCO", + }, + Object { + "jsonField": Object { + "foo": "bar", + "omnis": "laboriosam", + }, + "stringField": "maximillia", + }, + Object { + "jsonField": Object { + "blanditiis": "eligendi", + "foo": "bar", + }, + "stringField": "Madeline", + }, + Object { + "jsonField": Object { + "foo": "bar", + "ut": "expedita", + }, + "stringField": "nakia", + }, + Object { + "jsonField": Object { + "earum": "in", + "foo": "bar", + }, + "stringField": "SHEMAR", + }, + Object { + "jsonField": Object { + "foo": "bar", + "voluptatem": "quasi", + }, + "stringField": "Damien", + }, + Object { + "jsonField": Object { + "foo": "bar", + "qui": "quis", + }, + "stringField": "devin", + }, + Object { + "jsonField": Object { + "corrupti": "sit", + "foo": "bar", + }, + "stringField": "erling", + }, + Object { + "jsonField": Object { + "foo": "bar", + "nisi": "aut", + }, + "stringField": "molestiae praesentium", + }, + Object { + "jsonField": Object { + "foo": "bar", + "molestias": "quo", + }, + "stringField": "Okuneva", + }, + Object { + "jsonField": Object { + "et": "incidunt", + "foo": "bar", + }, + "stringField": "quia et", + }, + Object { + "jsonField": Object { + "foo": "bar", + "quisquam": "perspiciatis", + }, + "stringField": "korey", + }, + Object { + "jsonField": Object { + "foo": "bar", + "ut": "enim", + }, + "stringField": "neque tempore", + }, + Object { + "jsonField": Object { + "foo": "bar", + "nobis": "recusandae", + }, + "stringField": "HAMILL", + }, + Object { + "jsonField": Object { + "eum": "tenetur", + "foo": "bar", + }, + "stringField": "o'reilly", + }, + Object { + "jsonField": Object { + "foo": "bar", + "incidunt": "placeat", + }, + "stringField": "VERITATIS EIUS", + }, + Object { + "jsonField": Object { + "exercitationem": "natus", + "foo": "bar", + }, + "stringField": "ipsum voluptas", + }, + Object { + "jsonField": Object { + "foo": "bar", + "praesentium": "rerum", + }, + "stringField": "dietrich", + }, + Object { + "jsonField": Object { + "foo": "bar", + "laboriosam": "ipsum", + }, + "stringField": "DOVIE", + }, + Object { + "jsonField": Object { + "foo": "bar", + "natus": "dolores", + }, + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "jsonField": Object { + "et": "omnis", + "foo": "bar", + }, + "stringField": "macy", + }, + Object { + "jsonField": Object { + "autem": "consectetur", + "foo": "bar", + }, + "stringField": "amalia", + }, + Object { + "jsonField": Object { + "foo": "bar", + "repellat": "id", + }, + "stringField": "Williamson", + }, + Object { + "jsonField": Object { + "et": "eos", + "foo": "bar", + }, + "stringField": "DESTIN", + }, + Object { + "jsonField": Object { + "et": "et", + "foo": "bar", + }, + "stringField": "paucek", + }, + Object { + "jsonField": Object { + "foo": "bar", + "illum": "eum", + }, + "stringField": "kuhic", + }, + Object { + "jsonField": Object { + "foo": "bar", + "non": "voluptatem", + }, + "stringField": "eius necessitatibus", + }, + Object { + "jsonField": Object { + "foo": "bar", + "ipsum": "nihil", + }, + "stringField": "RICE", + }, +] +`; + +exports[`server no replica find: string query: contains \`A\` (upper or lower) 1`] = ` +Array [ + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "QUAM CULPA", + }, + Object { + "stringField": "Madeline", + }, + Object { + "stringField": "NAKIA", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "amber", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "elda", + }, + Object { + "stringField": "Damien", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "VELIT ADIPISCI", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "alias sint", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "hartmann", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "quas fugit", + }, + Object { + "stringField": "quia et", + }, + Object { + "stringField": "ut consequatur", + }, + Object { + "stringField": "iusto perspiciatis", + }, + Object { + "stringField": "HAMILL", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "HELGA", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "linnea", + }, + Object { + "stringField": "madison", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "macy", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "padberg", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "schamberger", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "BAUCH", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "eius necessitatibus", + }, +] +`; + +exports[`server no replica find: string query: contains \`a\` (upper or lower) 1`] = ` +Array [ + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "QUAM CULPA", + }, + Object { + "stringField": "Madeline", + }, + Object { + "stringField": "NAKIA", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "amber", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "elda", + }, + Object { + "stringField": "Damien", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "VELIT ADIPISCI", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "alias sint", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "hartmann", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "quas fugit", + }, + Object { + "stringField": "quia et", + }, + Object { + "stringField": "ut consequatur", + }, + Object { + "stringField": "iusto perspiciatis", + }, + Object { + "stringField": "HAMILL", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "HELGA", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "linnea", + }, + Object { + "stringField": "madison", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "macy", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "padberg", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "schamberger", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "BAUCH", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "eius necessitatibus", + }, +] +`; + +exports[`server no replica find: string query: ends with \`z\` (upper or lower) 1`] = ` +Array [ + Object { + "stringField": "LUEILWITZ", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "horowitz", + }, +] +`; + +exports[`server no replica find: string query: exact match (Nakia) 1`] = ` +Array [ + Object { + "stringField": "Nakia", + }, +] +`; + +exports[`server no replica find: string query: in list { devin, erling, KAELYN, raquel } 1`] = ` +Array [ + Object { + "stringField": "devin", + }, + Object { + "stringField": "erling", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "raquel", + }, +] +`; + +exports[`server no replica find: string query: starts with \`b\` (upper or lower) 1`] = ` +Array [ + Object { + "stringField": "BOSCO", + }, + Object { + "stringField": "BERENICE", + }, + Object { + "stringField": "billie", + }, + Object { + "stringField": "Block", + }, + Object { + "stringField": "BAUCH", + }, +] +`; + +exports[`server no replica getBindingError pulls correct info from binding error 1`] = ` +Object { + "emailField": Object { + "isEmail": "emailField must be an email", + }, +} +`; + +exports[`server no replica queries deeply nested objects without an ID 1`] = ` +Array [ + Object { + "booleanField": true, + "createdById": "abc123", + "dateField": "2019-10-15T00:00:00.000Z", + "dishes": Array [ + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 0", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 1", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 2", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 3", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 4", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 5", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 6", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 7", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 8", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 9", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 10", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 11", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 12", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 13", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 14", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 15", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 16", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 17", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 18", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 19", + }, + ], + "emailField": "hi@warthog.com", + "floatField": 123.456, + "integerField": 123, + "jsonField": Object { + "hello": "world", + }, + "stringField": "My String", + "updatedById": null, + "version": 1, + }, +] +`; + +exports[`server queries deeply nested objects without an ID 1`] = ` +Array [ + Object { + "booleanField": true, + "createdById": "abc123", + "dateField": "2019-10-15T00:00:00.000Z", + "dishes": Array [ + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 0", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 1", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 2", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 3", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 4", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 5", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 6", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 7", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 8", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 9", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 10", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 11", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 12", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 13", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 14", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 15", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 16", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 17", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 18", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 19", + }, + ], + "emailField": "hi@warthog.com", + "floatField": 123.456, + "integerField": 123, + "jsonField": Object { + "hello": "world", + }, + "stringField": "My String", + "updatedById": null, + "version": 1, + }, +] +`; + +exports[`server with replica IAN queries deeply nested objects without an ID 1`] = ` +Array [ + Object { + "booleanField": true, + "createdById": "abc123", + "dateField": "2019-10-15T00:00:00.000Z", + "dishes": Array [ + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 0", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 1", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 2", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 3", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 4", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 5", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 6", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 7", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 8", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 9", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 10", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 11", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 12", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 13", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 14", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 15", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 16", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 17", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 18", + }, + Object { + "kitchenSink": Object { + "stringField": "My String", + }, + "name": "Dish 19", + }, + ], + "emailField": "hi@warthog.com", + "floatField": 123.456, + "integerField": 123, + "jsonField": Object { + "hello": "world", + }, + "stringField": "My String", + "updatedById": null, + "version": 1, + }, +] +`; + +exports[`server with replica Use 2 different operators on same attribute 1`] = ` +Array [ + Object { + "stringField": "Trantow", + }, +] +`; + +exports[`server with replica find: allows client to ask for __typename 1`] = ` +Array [ + Object { + "__typename": "KitchenSink", + }, +] +`; + +exports[`server with replica find: arrayOfInts_containsAll: [1, 2, 7] 1`] = ` +Array [ + Object { + "arrayOfInts": Array [ + 2, + 1, + 5, + 7, + ], + "stringField": "Mortimer", + }, +] +`; + +exports[`server with replica find: arrayOfInts_containsAny: [1, 2, 7] 1`] = ` +Array [ + Object { + "arrayOfInts": Array [ + 1, + ], + "stringField": "Trantow", + }, + Object { + "arrayOfInts": Array [ + 4, + 0, + 5, + 2, + ], + "stringField": "SCHOEN", + }, + Object { + "arrayOfInts": Array [ + 6, + 0, + 1, + ], + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "arrayOfInts": Array [ + 2, + 4, + 4, + ], + "stringField": "Wisoky", + }, + Object { + "arrayOfInts": Array [ + 2, + 0, + ], + "stringField": "SCHINNER", + }, + Object { + "arrayOfInts": Array [ + 1, + ], + "stringField": "maximillia", + }, + Object { + "arrayOfInts": Array [ + 0, + 0, + 7, + ], + "stringField": "DELENITI SUNT", + }, + Object { + "arrayOfInts": Array [ + 1, + 2, + 1, + 6, + ], + "stringField": "QUAM CULPA", + }, + Object { + "arrayOfInts": Array [ + 8, + 4, + 7, + ], + "stringField": "SCHIMMEL", + }, + Object { + "arrayOfInts": Array [ + 7, + ], + "stringField": "nakia", + }, + Object { + "arrayOfInts": Array [ + 1, + 8, + ], + "stringField": "LUEILWITZ", + }, + Object { + "arrayOfInts": Array [ + 7, + 0, + 0, + 3, + ], + "stringField": "BERENICE", + }, + Object { + "arrayOfInts": Array [ + 0, + 1, + 7, + 0, + ], + "stringField": "amber", + }, + Object { + "arrayOfInts": Array [ + 6, + 2, + 0, + 7, + ], + "stringField": "RYLEIGH", + }, + Object { + "arrayOfInts": Array [ + 7, + ], + "stringField": "delfinaz", + }, + Object { + "arrayOfInts": Array [ + 6, + 3, + 4, + 2, + ], + "stringField": "earum nesciunt", + }, + Object { + "arrayOfInts": Array [ + 2, + 1, + 1, + ], + "stringField": "schowalter", + }, + Object { + "arrayOfInts": Array [ + 0, + 7, + 8, + ], + "stringField": "MAIORES ADIPISCI", + }, + Object { + "arrayOfInts": Array [ + 1, + 8, + 3, + ], + "stringField": "rerum et", + }, + Object { + "arrayOfInts": Array [ + 3, + 4, + 6, + 1, + ], + "stringField": "alias sint", + }, + Object { + "arrayOfInts": Array [ + 7, + ], + "stringField": "molestiae praesentium", + }, + Object { + "arrayOfInts": Array [ + 3, + 7, + 8, + 5, + ], + "stringField": "hartmann", + }, + Object { + "arrayOfInts": Array [ + 7, + 7, + 1, + ], + "stringField": "quas fugit", + }, + Object { + "arrayOfInts": Array [ + 7, + 3, + 0, + ], + "stringField": "quia et", + }, + Object { + "arrayOfInts": Array [ + 0, + 8, + 2, + 1, + ], + "stringField": "VON", + }, + Object { + "arrayOfInts": Array [ + 2, + ], + "stringField": "HAMILL", + }, + Object { + "arrayOfInts": Array [ + 6, + 7, + ], + "stringField": "o'reilly", + }, + Object { + "arrayOfInts": Array [ + 1, + 8, + 1, + 7, + ], + "stringField": "VERITATIS EIUS", + }, + Object { + "arrayOfInts": Array [ + 3, + 7, + 6, + 8, + ], + "stringField": "billie", + }, + Object { + "arrayOfInts": Array [ + 4, + 2, + 5, + ], + "stringField": "winston", + }, + Object { + "arrayOfInts": Array [ + 7, + 2, + ], + "stringField": "DOVIE", + }, + Object { + "arrayOfInts": Array [ + 5, + 8, + 1, + 3, + ], + "stringField": "linnea", + }, + Object { + "arrayOfInts": Array [ + 2, + ], + "stringField": "madison", + }, + Object { + "arrayOfInts": Array [ + 1, + 0, + 6, + 1, + ], + "stringField": "macy", + }, + Object { + "arrayOfInts": Array [ + 4, + 1, + 4, + 3, + ], + "stringField": "ENIM DICTA", + }, + Object { + "arrayOfInts": Array [ + 1, + 7, + 6, + ], + "stringField": "Williamson", + }, + Object { + "arrayOfInts": Array [ + 3, + 5, + 1, + 4, + ], + "stringField": "DESTIN", + }, + Object { + "arrayOfInts": Array [ + 1, + 8, + 4, + ], + "stringField": "Block", + }, + Object { + "arrayOfInts": Array [ + 3, + 2, + 8, + ], + "stringField": "jaskolski", + }, + Object { + "arrayOfInts": Array [ + 5, + 7, + 6, + 7, + ], + "stringField": "Wisoky", + }, + Object { + "arrayOfInts": Array [ + 7, + 5, + 3, + ], + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "arrayOfInts": Array [ + 7, + 2, + 6, + 4, + ], + "stringField": "SIT ODIO", + }, + Object { + "arrayOfInts": Array [ + 4, + 0, + 0, + 2, + ], + "stringField": "pagac", + }, + Object { + "arrayOfInts": Array [ + 6, + 5, + 1, + 3, + ], + "stringField": "eius necessitatibus", + }, + Object { + "arrayOfInts": Array [ + 8, + 7, + ], + "stringField": "RICE", + }, + Object { + "arrayOfInts": Array [ + 2, + 1, + 5, + 7, + ], + "stringField": "Mortimer", + }, +] +`; + +exports[`server with replica find: arrayOfInts_containsNone: [1, 2, 7] 1`] = ` +Array [ + Object { + "arrayOfInts": Array [ + 5, + 4, + ], + "stringField": "BOSCO", + }, + Object { + "arrayOfInts": Array [ + 5, + 5, + ], + "stringField": "koelpin", + }, + Object { + "arrayOfInts": Array [], + "stringField": "inventore velit", + }, + Object { + "arrayOfInts": Array [ + 4, + ], + "stringField": "Madeline", + }, + Object { + "arrayOfInts": Array [ + 5, + ], + "stringField": "NAKIA", + }, + Object { + "arrayOfInts": Array [ + 3, + 0, + 8, + ], + "stringField": "Nakia", + }, + Object { + "arrayOfInts": Array [ + 5, + ], + "stringField": "sed praesentium", + }, + Object { + "arrayOfInts": Array [], + "stringField": "JEROMY", + }, + Object { + "arrayOfInts": Array [], + "stringField": "SHEMAR", + }, + Object { + "arrayOfInts": Array [], + "stringField": "Wilmer", + }, + Object { + "arrayOfInts": Array [ + 5, + ], + "stringField": "stark", + }, + Object { + "arrayOfInts": Array [ + 0, + 8, + 5, + 5, + ], + "stringField": "elda", + }, + Object { + "arrayOfInts": Array [ + 0, + ], + "stringField": "Damien", + }, + Object { + "arrayOfInts": Array [ + 5, + 6, + ], + "stringField": "illum atque", + }, + Object { + "arrayOfInts": Array [ + 0, + 4, + 6, + ], + "stringField": "horowitz", + }, + Object { + "arrayOfInts": Array [], + "stringField": "devin", + }, + Object { + "arrayOfInts": Array [ + 3, + 6, + ], + "stringField": "VELIT ADIPISCI", + }, + Object { + "arrayOfInts": Array [ + 8, + 4, + 3, + 6, + ], + "stringField": "AMET QUI", + }, + Object { + "arrayOfInts": Array [ + 4, + 5, + 3, + 8, + ], + "stringField": "maiores praesentium", + }, + Object { + "arrayOfInts": Array [ + 6, + ], + "stringField": "erling", + }, + Object { + "arrayOfInts": Array [ + 8, + ], + "stringField": "KAELYN", + }, + Object { + "arrayOfInts": Array [], + "stringField": "Okuneva", + }, + Object { + "arrayOfInts": Array [], + "stringField": "raquel", + }, + Object { + "arrayOfInts": Array [ + 3, + 0, + 4, + ], + "stringField": "ODIO ID", + }, + Object { + "arrayOfInts": Array [ + 0, + 8, + ], + "stringField": "iste in", + }, + Object { + "arrayOfInts": Array [ + 0, + ], + "stringField": "HOPPE", + }, + Object { + "arrayOfInts": Array [], + "stringField": "korey", + }, + Object { + "arrayOfInts": Array [], + "stringField": "neque tempore", + }, + Object { + "arrayOfInts": Array [ + 0, + 0, + ], + "stringField": "ut consequatur", + }, + Object { + "arrayOfInts": Array [ + 3, + ], + "stringField": "fermin", + }, + Object { + "arrayOfInts": Array [], + "stringField": "eum reiciendis", + }, + Object { + "arrayOfInts": Array [], + "stringField": "iusto perspiciatis", + }, + Object { + "arrayOfInts": Array [ + 4, + ], + "stringField": "LABORE CULPA", + }, + Object { + "arrayOfInts": Array [], + "stringField": "HELGA", + }, + Object { + "arrayOfInts": Array [ + 4, + 3, + 0, + ], + "stringField": "ipsum voluptas", + }, + Object { + "arrayOfInts": Array [ + 0, + 6, + 5, + ], + "stringField": "luettgen", + }, + Object { + "arrayOfInts": Array [ + 0, + ], + "stringField": "dietrich", + }, + Object { + "arrayOfInts": Array [ + 3, + ], + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "arrayOfInts": Array [ + 5, + 5, + 8, + ], + "stringField": "GERLACH", + }, + Object { + "arrayOfInts": Array [], + "stringField": "padberg", + }, + Object { + "arrayOfInts": Array [ + 3, + 6, + ], + "stringField": "amalia", + }, + Object { + "arrayOfInts": Array [], + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "arrayOfInts": Array [], + "stringField": "OMNIS ERROR", + }, + Object { + "arrayOfInts": Array [ + 5, + 8, + 3, + 3, + ], + "stringField": "schamberger", + }, + Object { + "arrayOfInts": Array [], + "stringField": "Jared", + }, + Object { + "arrayOfInts": Array [ + 8, + ], + "stringField": "QUIDEM FUGIAT", + }, + Object { + "arrayOfInts": Array [], + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "arrayOfInts": Array [ + 4, + 3, + ], + "stringField": "BAUCH", + }, + Object { + "arrayOfInts": Array [ + 5, + ], + "stringField": "paucek", + }, + Object { + "arrayOfInts": Array [ + 8, + 6, + ], + "stringField": "sed quod", + }, + Object { + "arrayOfInts": Array [ + 3, + ], + "stringField": "kuhic", + }, + Object { + "arrayOfInts": Array [ + 0, + 4, + 8, + ], + "stringField": "WITTING", + }, + Object { + "arrayOfInts": Array [], + "stringField": "placeat voluptate", + }, + Object { + "arrayOfInts": Array [ + 8, + 6, + 6, + ], + "stringField": "EX POSSIMUS", + }, +] +`; + +exports[`server with replica find: arrayOfStrings_containsAll: [dog, cat] 1`] = ` +Array [ + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "BOSCO", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "SCHOEN", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "padberg", + }, +] +`; + +exports[`server with replica find: arrayOfStrings_containsAny: [dog, cat] 1`] = ` +Array [ + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "BOSCO", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "SCHOEN", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "SCHINNER", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "fox", + ], + "stringField": "inventore velit", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "nakia", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "fox", + ], + "stringField": "sed praesentium", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "LUEILWITZ", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "fox", + ], + "stringField": "RYLEIGH", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "Wilmer", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "cat", + ], + "stringField": "elda", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "dog", + ], + "stringField": "illum atque", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "cat", + ], + "stringField": "AMET QUI", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "pony", + ], + "stringField": "rerum et", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "dog", + ], + "stringField": "erling", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "KAELYN", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "alias sint", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "hartmann", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "ODIO ID", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "HOPPE", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "neque tempore", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "dog", + ], + "stringField": "HAMILL", + }, + Object { + "arrayOfStrings": Array [ + "dog", + ], + "stringField": "LABORE CULPA", + }, + Object { + "arrayOfStrings": Array [ + "fox", + "dog", + ], + "stringField": "HELGA", + }, + Object { + "arrayOfStrings": Array [ + "dog", + "fox", + ], + "stringField": "linnea", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "macy", + }, + Object { + "arrayOfStrings": Array [ + "cat", + "dog", + ], + "stringField": "padberg", + }, + Object { + "arrayOfStrings": Array [ + "fox", + "dog", + ], + "stringField": "Jared", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "dog", + ], + "stringField": "QUIDEM FUGIAT", + }, + Object { + "arrayOfStrings": Array [ + "cat", + ], + "stringField": "pagac", + }, +] +`; + +exports[`server with replica find: arrayOfStrings_containsNone: [dog, cat] 1`] = ` +Array [ + Object { + "arrayOfStrings": Array [], + "stringField": "Trantow", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "turtle", + ], + "stringField": "Wisoky", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "maximillia", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "koelpin", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "DELENITI SUNT", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "QUAM CULPA", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "SCHIMMEL", + }, + Object { + "arrayOfStrings": Array [ + "fox", + "turtle", + ], + "stringField": "Madeline", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "NAKIA", + }, + Object { + "arrayOfStrings": Array [ + "fox", + "pony", + ], + "stringField": "Nakia", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "BERENICE", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "fox", + ], + "stringField": "amber", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "JEROMY", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "delfinaz", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "SHEMAR", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "turtle", + ], + "stringField": "stark", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "Damien", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "earum nesciunt", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "horowitz", + }, + Object { + "arrayOfStrings": Array [ + "pony", + ], + "stringField": "schowalter", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "MAIORES ADIPISCI", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "devin", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "VELIT ADIPISCI", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "maiores praesentium", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "molestiae praesentium", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "Okuneva", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "raquel", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "quas fugit", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "iste in", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "quia et", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "korey", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "VON", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "ut consequatur", + }, + Object { + "arrayOfStrings": Array [ + "pony", + ], + "stringField": "fermin", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "eum reiciendis", + }, + Object { + "arrayOfStrings": Array [ + "pony", + ], + "stringField": "iusto perspiciatis", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "o'reilly", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "fox", + ], + "stringField": "VERITATIS EIUS", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + ], + "stringField": "billie", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "winston", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "ipsum voluptas", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "luettgen", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "dietrich", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "DOVIE", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "madison", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "GERLACH", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "ENIM DICTA", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "amalia", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "OMNIS ERROR", + }, + Object { + "arrayOfStrings": Array [ + "pony", + ], + "stringField": "Williamson", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "schamberger", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "pony", + ], + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "DESTIN", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "Block", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "jaskolski", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "BAUCH", + }, + Object { + "arrayOfStrings": Array [ + "turtle", + "fox", + ], + "stringField": "Wisoky", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "paucek", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "sed quod", + }, + Object { + "arrayOfStrings": Array [ + "pony", + "fox", + ], + "stringField": "kuhic", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "WITTING", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "placeat voluptate", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "SIT ODIO", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "eius necessitatibus", + }, + Object { + "arrayOfStrings": Array [ + "fox", + ], + "stringField": "RICE", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "Mortimer", + }, + Object { + "arrayOfStrings": Array [], + "stringField": "EX POSSIMUS", + }, +] +`; + +exports[`server with replica find: dateOnlyField greater than or equal 2020-01-01 1`] = ` +Array [ + Object { + "dateOnlyField": "2020-02-27", + "stringField": "BOSCO", + }, + Object { + "dateOnlyField": "2020-12-03", + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "dateOnlyField": "2020-02-25", + "stringField": "Wisoky", + }, + Object { + "dateOnlyField": "2020-08-18", + "stringField": "SCHINNER", + }, + Object { + "dateOnlyField": "2020-10-01", + "stringField": "koelpin", + }, + Object { + "dateOnlyField": "2020-07-10", + "stringField": "inventore velit", + }, + Object { + "dateOnlyField": "2020-03-31", + "stringField": "QUAM CULPA", + }, + Object { + "dateOnlyField": "2020-06-20", + "stringField": "NAKIA", + }, + Object { + "dateOnlyField": "2020-10-28", + "stringField": "nakia", + }, + Object { + "dateOnlyField": "2020-09-21", + "stringField": "sed praesentium", + }, + Object { + "dateOnlyField": "2020-08-24", + "stringField": "LUEILWITZ", + }, + Object { + "dateOnlyField": "2020-03-30", + "stringField": "RYLEIGH", + }, + Object { + "dateOnlyField": "2020-05-15", + "stringField": "delfinaz", + }, + Object { + "dateOnlyField": "2020-12-13", + "stringField": "elda", + }, + Object { + "dateOnlyField": "2020-06-02", + "stringField": "Damien", + }, + Object { + "dateOnlyField": "2020-11-21", + "stringField": "KAELYN", + }, + Object { + "dateOnlyField": "2020-10-11", + "stringField": "iste in", + }, + Object { + "dateOnlyField": "2020-07-07", + "stringField": "ut consequatur", + }, + Object { + "dateOnlyField": "2020-09-26", + "stringField": "eum reiciendis", + }, + Object { + "dateOnlyField": "2020-09-18", + "stringField": "iusto perspiciatis", + }, + Object { + "dateOnlyField": "2020-10-14", + "stringField": "VERITATIS EIUS", + }, + Object { + "dateOnlyField": "2020-12-03", + "stringField": "macy", + }, + Object { + "dateOnlyField": "2020-02-10", + "stringField": "GERLACH", + }, + Object { + "dateOnlyField": "2020-07-08", + "stringField": "ENIM DICTA", + }, + Object { + "dateOnlyField": "2020-12-11", + "stringField": "amalia", + }, + Object { + "dateOnlyField": "2020-03-04", + "stringField": "schamberger", + }, + Object { + "dateOnlyField": "2020-09-07", + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "dateOnlyField": "2020-10-01", + "stringField": "DESTIN", + }, + Object { + "dateOnlyField": "2020-12-30", + "stringField": "eius necessitatibus", + }, + Object { + "dateOnlyField": "2020-12-20", + "stringField": "RICE", + }, +] +`; + +exports[`server with replica find: dateTimeField less than or equal 2020-01-01 1`] = ` +Array [ + Object { + "dateTimeField": "2019-11-25T22:03:38.286Z", + "stringField": "Trantow", + }, + Object { + "dateTimeField": "2019-02-14T08:01:37.290Z", + "stringField": "BOSCO", + }, + Object { + "dateTimeField": "2018-09-03T00:38:19.337Z", + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "dateTimeField": "2018-05-31T19:22:05.341Z", + "stringField": "Wisoky", + }, + Object { + "dateTimeField": "2018-07-05T11:32:01.838Z", + "stringField": "DELENITI SUNT", + }, + Object { + "dateTimeField": "2018-04-28T06:17:13.736Z", + "stringField": "inventore velit", + }, + Object { + "dateTimeField": "2019-03-30T19:45:37.259Z", + "stringField": "QUAM CULPA", + }, + Object { + "dateTimeField": "2019-04-26T22:33:32.962Z", + "stringField": "SCHIMMEL", + }, + Object { + "dateTimeField": "2019-11-11T20:22:39.955Z", + "stringField": "Madeline", + }, + Object { + "dateTimeField": "2019-04-17T01:25:34.424Z", + "stringField": "NAKIA", + }, + Object { + "dateTimeField": "2018-06-21T08:52:15.890Z", + "stringField": "Nakia", + }, + Object { + "dateTimeField": "2018-03-10T17:25:14.892Z", + "stringField": "sed praesentium", + }, + Object { + "dateTimeField": "2018-10-26T12:04:40.017Z", + "stringField": "LUEILWITZ", + }, + Object { + "dateTimeField": "2018-08-13T16:06:07.214Z", + "stringField": "amber", + }, + Object { + "dateTimeField": "2018-12-11T07:56:46.405Z", + "stringField": "JEROMY", + }, + Object { + "dateTimeField": "2018-01-11T01:58:14.032Z", + "stringField": "RYLEIGH", + }, + Object { + "dateTimeField": "2018-03-09T14:25:42.617Z", + "stringField": "delfinaz", + }, + Object { + "dateTimeField": "2019-12-29T20:30:17.183Z", + "stringField": "SHEMAR", + }, + Object { + "dateTimeField": "2018-10-25T06:53:58.190Z", + "stringField": "Wilmer", + }, + Object { + "dateTimeField": "2018-06-10T11:31:29.657Z", + "stringField": "stark", + }, + Object { + "dateTimeField": "2018-03-13T18:09:40.750Z", + "stringField": "elda", + }, + Object { + "dateTimeField": "2019-06-19T04:58:36.438Z", + "stringField": "Damien", + }, + Object { + "dateTimeField": "2018-06-06T19:52:48.715Z", + "stringField": "earum nesciunt", + }, + Object { + "dateTimeField": "2018-07-29T01:17:45.596Z", + "stringField": "horowitz", + }, + Object { + "dateTimeField": "2018-03-24T06:41:17.641Z", + "stringField": "schowalter", + }, + Object { + "dateTimeField": "2018-12-25T17:14:31.792Z", + "stringField": "MAIORES ADIPISCI", + }, + Object { + "dateTimeField": "2019-11-13T18:22:51.055Z", + "stringField": "devin", + }, + Object { + "dateTimeField": "2019-11-20T11:42:01.432Z", + "stringField": "VELIT ADIPISCI", + }, + Object { + "dateTimeField": "2018-02-23T17:27:00.987Z", + "stringField": "AMET QUI", + }, + Object { + "dateTimeField": "2019-10-15T13:37:32.192Z", + "stringField": "maiores praesentium", + }, + Object { + "dateTimeField": "2019-02-11T05:37:09.516Z", + "stringField": "rerum et", + }, + Object { + "dateTimeField": "2019-02-08T16:41:13.768Z", + "stringField": "erling", + }, + Object { + "dateTimeField": "2019-05-02T11:56:08.871Z", + "stringField": "alias sint", + }, + Object { + "dateTimeField": "2018-12-23T05:29:36.961Z", + "stringField": "molestiae praesentium", + }, + Object { + "dateTimeField": "2018-02-21T06:42:38.139Z", + "stringField": "hartmann", + }, + Object { + "dateTimeField": "2018-04-28T05:35:05.513Z", + "stringField": "raquel", + }, + Object { + "dateTimeField": "2019-10-12T02:20:37.708Z", + "stringField": "ODIO ID", + }, + Object { + "dateTimeField": "2019-05-27T03:22:02.440Z", + "stringField": "quia et", + }, + Object { + "dateTimeField": "2018-02-06T23:50:49.092Z", + "stringField": "HOPPE", + }, + Object { + "dateTimeField": "2019-02-25T02:47:46.670Z", + "stringField": "VON", + }, + Object { + "dateTimeField": "2019-09-09T21:30:46.841Z", + "stringField": "neque tempore", + }, + Object { + "dateTimeField": "2018-08-07T10:43:25.410Z", + "stringField": "eum reiciendis", + }, + Object { + "dateTimeField": "2018-07-02T03:09:42.268Z", + "stringField": "iusto perspiciatis", + }, + Object { + "dateTimeField": "2018-04-04T22:09:44.507Z", + "stringField": "LABORE CULPA", + }, + Object { + "dateTimeField": "2018-01-25T05:43:10.415Z", + "stringField": "VERITATIS EIUS", + }, + Object { + "dateTimeField": "2018-04-05T21:24:11.767Z", + "stringField": "billie", + }, + Object { + "dateTimeField": "2018-04-15T06:49:17.394Z", + "stringField": "HELGA", + }, + Object { + "dateTimeField": "2019-11-05T13:56:17.060Z", + "stringField": "dietrich", + }, + Object { + "dateTimeField": "2018-07-22T09:57:28.210Z", + "stringField": "DOVIE", + }, + Object { + "dateTimeField": "2019-12-27T01:42:13.975Z", + "stringField": "linnea", + }, + Object { + "dateTimeField": "2018-04-23T20:20:23.845Z", + "stringField": "madison", + }, + Object { + "dateTimeField": "2019-07-18T17:41:43.042Z", + "stringField": "macy", + }, + Object { + "dateTimeField": "2019-02-13T01:58:53.948Z", + "stringField": "GERLACH", + }, + Object { + "dateTimeField": "2018-09-22T19:08:17.847Z", + "stringField": "padberg", + }, + Object { + "dateTimeField": "2018-08-14T06:26:06.480Z", + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "dateTimeField": "2019-08-03T23:12:04.505Z", + "stringField": "OMNIS ERROR", + }, + Object { + "dateTimeField": "2019-02-01T23:53:26.248Z", + "stringField": "Williamson", + }, + Object { + "dateTimeField": "2018-01-07T06:38:48.310Z", + "stringField": "schamberger", + }, + Object { + "dateTimeField": "2019-06-11T23:31:27.825Z", + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "dateTimeField": "2018-08-22T05:05:10.761Z", + "stringField": "jaskolski", + }, + Object { + "dateTimeField": "2019-09-09T03:24:37.315Z", + "stringField": "Wisoky", + }, + Object { + "dateTimeField": "2018-08-28T10:28:33.206Z", + "stringField": "paucek", + }, + Object { + "dateTimeField": "2018-10-20T06:13:15.849Z", + "stringField": "kuhic", + }, + Object { + "dateTimeField": "2019-04-12T20:45:07.338Z", + "stringField": "WITTING", + }, + Object { + "dateTimeField": "2018-03-27T22:53:48.958Z", + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "dateTimeField": "2019-03-07T05:12:30.173Z", + "stringField": "placeat voluptate", + }, + Object { + "dateTimeField": "2019-07-20T05:45:49.910Z", + "stringField": "pagac", + }, + Object { + "dateTimeField": "2018-05-17T00:44:29.364Z", + "stringField": "eius necessitatibus", + }, + Object { + "dateTimeField": "2019-10-21T19:02:03.628Z", + "stringField": "Mortimer", + }, +] +`; + +exports[`server with replica find: enum field = BAR 1`] = ` +Array [ + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "BOSCO", + }, + Object { + "stringField": "SCHOEN", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "koelpin", + }, + Object { + "stringField": "DELENITI SUNT", + }, + Object { + "stringField": "inventore velit", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "horowitz", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "devin", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "erling", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "iste in", + }, + Object { + "stringField": "HOPPE", + }, + Object { + "stringField": "korey", + }, + Object { + "stringField": "VON", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "billie", + }, + Object { + "stringField": "winston", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "dietrich", + }, + Object { + "stringField": "DOVIE", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "Block", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "sed quod", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "SIT ODIO", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "RICE", + }, + Object { + "stringField": "Mortimer", + }, +] +`; + +exports[`server with replica find: integer query: greater than 21 1`] = ` +Array [ + Object { + "stringField": "My String", + }, + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "SCHOEN", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "SCHINNER", + }, + Object { + "stringField": "DELENITI SUNT", + }, + Object { + "stringField": "inventore velit", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "BERENICE", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "elda", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "VELIT ADIPISCI", + }, + Object { + "stringField": "rerum et", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "alias sint", + }, + Object { + "stringField": "quia et", + }, + Object { + "stringField": "HOPPE", + }, + Object { + "stringField": "fermin", + }, + Object { + "stringField": "o'reilly", + }, + Object { + "stringField": "billie", + }, + Object { + "stringField": "dietrich", + }, + Object { + "stringField": "DOVIE", + }, + Object { + "stringField": "linnea", + }, + Object { + "stringField": "padberg", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "OMNIS ERROR", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "BAUCH", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "sed quod", + }, + Object { + "stringField": "kuhic", + }, +] +`; + +exports[`server with replica find: integer query: greater than or equal to 21 1`] = ` +Array [ + Object { + "stringField": "My String", + }, + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "SCHOEN", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "SCHINNER", + }, + Object { + "stringField": "DELENITI SUNT", + }, + Object { + "stringField": "inventore velit", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "BERENICE", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "elda", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "VELIT ADIPISCI", + }, + Object { + "stringField": "rerum et", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "alias sint", + }, + Object { + "stringField": "quia et", + }, + Object { + "stringField": "HOPPE", + }, + Object { + "stringField": "fermin", + }, + Object { + "stringField": "o'reilly", + }, + Object { + "stringField": "billie", + }, + Object { + "stringField": "dietrich", + }, + Object { + "stringField": "DOVIE", + }, + Object { + "stringField": "linnea", + }, + Object { + "stringField": "padberg", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "OMNIS ERROR", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "BAUCH", + }, + Object { + "stringField": "Wisoky", + }, + Object { + "stringField": "sed quod", + }, + Object { + "stringField": "kuhic", + }, +] +`; + +exports[`server with replica find: integer query: less than 21 1`] = ` +Array [ + Object { + "stringField": "BOSCO", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "koelpin", + }, + Object { + "stringField": "QUAM CULPA", + }, + Object { + "stringField": "SCHIMMEL", + }, + Object { + "stringField": "Madeline", + }, + Object { + "stringField": "NAKIA", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "LUEILWITZ", + }, + Object { + "stringField": "amber", + }, + Object { + "stringField": "JEROMY", + }, + Object { + "stringField": "RYLEIGH", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "Wilmer", + }, + Object { + "stringField": "Damien", + }, + Object { + "stringField": "horowitz", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "devin", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "erling", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "hartmann", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "quas fugit", + }, + Object { + "stringField": "ODIO ID", + }, + Object { + "stringField": "iste in", + }, + Object { + "stringField": "korey", + }, + Object { + "stringField": "VON", + }, + Object { + "stringField": "neque tempore", + }, + Object { + "stringField": "ut consequatur", + }, + Object { + "stringField": "eum reiciendis", + }, + Object { + "stringField": "iusto perspiciatis", + }, + Object { + "stringField": "HAMILL", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "winston", + }, + Object { + "stringField": "HELGA", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "luettgen", + }, + Object { + "stringField": "madison", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "macy", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "schamberger", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "DESTIN", + }, + Object { + "stringField": "Block", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "WITTING", + }, + Object { + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "SIT ODIO", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "eius necessitatibus", + }, + Object { + "stringField": "RICE", + }, + Object { + "stringField": "Mortimer", + }, + Object { + "stringField": "EX POSSIMUS", + }, +] +`; + +exports[`server with replica find: integer query: less than or equal to 21 1`] = ` +Array [ + Object { + "stringField": "BOSCO", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "koelpin", + }, + Object { + "stringField": "QUAM CULPA", + }, + Object { + "stringField": "SCHIMMEL", + }, + Object { + "stringField": "Madeline", + }, + Object { + "stringField": "NAKIA", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "LUEILWITZ", + }, + Object { + "stringField": "amber", + }, + Object { + "stringField": "JEROMY", + }, + Object { + "stringField": "RYLEIGH", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "Wilmer", + }, + Object { + "stringField": "Damien", + }, + Object { + "stringField": "horowitz", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "devin", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "erling", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "hartmann", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "quas fugit", + }, + Object { + "stringField": "ODIO ID", + }, + Object { + "stringField": "iste in", + }, + Object { + "stringField": "korey", + }, + Object { + "stringField": "VON", + }, + Object { + "stringField": "neque tempore", + }, + Object { + "stringField": "ut consequatur", + }, + Object { + "stringField": "eum reiciendis", + }, + Object { + "stringField": "iusto perspiciatis", + }, + Object { + "stringField": "HAMILL", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "winston", + }, + Object { + "stringField": "HELGA", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "luettgen", + }, + Object { + "stringField": "madison", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "macy", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "schamberger", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "DESTIN", + }, + Object { + "stringField": "Block", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "WITTING", + }, + Object { + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "SIT ODIO", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "eius necessitatibus", + }, + Object { + "stringField": "RICE", + }, + Object { + "stringField": "Mortimer", + }, + Object { + "stringField": "EX POSSIMUS", + }, +] +`; + +exports[`server with replica find: jsonField foo_eq: bar 1`] = ` +Array [ + Object { + "jsonField": Object { + "foo": "bar", + "quia": "autem", + }, + "stringField": "Trantow", + }, + Object { + "jsonField": Object { + "foo": "bar", + "repellat": "autem", + }, + "stringField": "BOSCO", + }, + Object { + "jsonField": Object { + "foo": "bar", + "omnis": "laboriosam", + }, + "stringField": "maximillia", + }, + Object { + "jsonField": Object { + "blanditiis": "eligendi", + "foo": "bar", + }, + "stringField": "Madeline", + }, + Object { + "jsonField": Object { + "foo": "bar", + "ut": "expedita", + }, + "stringField": "nakia", + }, + Object { + "jsonField": Object { + "earum": "in", + "foo": "bar", + }, + "stringField": "SHEMAR", + }, + Object { + "jsonField": Object { + "foo": "bar", + "voluptatem": "quasi", + }, + "stringField": "Damien", + }, + Object { + "jsonField": Object { + "foo": "bar", + "qui": "quis", + }, + "stringField": "devin", + }, + Object { + "jsonField": Object { + "corrupti": "sit", + "foo": "bar", + }, + "stringField": "erling", + }, + Object { + "jsonField": Object { + "foo": "bar", + "nisi": "aut", + }, + "stringField": "molestiae praesentium", + }, + Object { + "jsonField": Object { + "foo": "bar", + "molestias": "quo", + }, + "stringField": "Okuneva", + }, + Object { + "jsonField": Object { + "et": "incidunt", + "foo": "bar", + }, + "stringField": "quia et", + }, + Object { + "jsonField": Object { + "foo": "bar", + "quisquam": "perspiciatis", + }, + "stringField": "korey", + }, + Object { + "jsonField": Object { + "foo": "bar", + "ut": "enim", + }, + "stringField": "neque tempore", + }, + Object { + "jsonField": Object { + "foo": "bar", + "nobis": "recusandae", + }, + "stringField": "HAMILL", + }, + Object { + "jsonField": Object { + "eum": "tenetur", + "foo": "bar", + }, + "stringField": "o'reilly", + }, + Object { + "jsonField": Object { + "foo": "bar", + "incidunt": "placeat", + }, + "stringField": "VERITATIS EIUS", + }, + Object { + "jsonField": Object { + "exercitationem": "natus", + "foo": "bar", + }, + "stringField": "ipsum voluptas", + }, + Object { + "jsonField": Object { + "foo": "bar", + "praesentium": "rerum", + }, + "stringField": "dietrich", + }, + Object { + "jsonField": Object { + "foo": "bar", + "laboriosam": "ipsum", + }, + "stringField": "DOVIE", + }, + Object { + "jsonField": Object { + "foo": "bar", + "natus": "dolores", + }, + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "jsonField": Object { + "et": "omnis", + "foo": "bar", + }, + "stringField": "macy", + }, + Object { + "jsonField": Object { + "autem": "consectetur", + "foo": "bar", + }, + "stringField": "amalia", + }, + Object { + "jsonField": Object { + "foo": "bar", + "repellat": "id", + }, + "stringField": "Williamson", + }, + Object { + "jsonField": Object { + "et": "eos", + "foo": "bar", + }, + "stringField": "DESTIN", + }, + Object { + "jsonField": Object { + "et": "et", + "foo": "bar", + }, + "stringField": "paucek", + }, + Object { + "jsonField": Object { + "foo": "bar", + "illum": "eum", + }, + "stringField": "kuhic", + }, + Object { + "jsonField": Object { + "foo": "bar", + "non": "voluptatem", + }, + "stringField": "eius necessitatibus", + }, + Object { + "jsonField": Object { + "foo": "bar", + "ipsum": "nihil", + }, + "stringField": "RICE", + }, +] +`; + +exports[`server with replica find: string query: contains \`A\` (upper or lower) 1`] = ` +Array [ + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "QUAM CULPA", + }, + Object { + "stringField": "Madeline", + }, + Object { + "stringField": "NAKIA", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "amber", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "elda", + }, + Object { + "stringField": "Damien", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "VELIT ADIPISCI", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "alias sint", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "hartmann", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "quas fugit", + }, + Object { + "stringField": "quia et", + }, + Object { + "stringField": "ut consequatur", + }, + Object { + "stringField": "iusto perspiciatis", + }, + Object { + "stringField": "HAMILL", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "HELGA", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "linnea", + }, + Object { + "stringField": "madison", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "macy", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "padberg", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "schamberger", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "BAUCH", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "eius necessitatibus", + }, +] +`; + +exports[`server with replica find: string query: contains \`a\` (upper or lower) 1`] = ` +Array [ + Object { + "stringField": "Trantow", + }, + Object { + "stringField": "VOLUPTATUM NULLA", + }, + Object { + "stringField": "maximillia", + }, + Object { + "stringField": "QUAM CULPA", + }, + Object { + "stringField": "Madeline", + }, + Object { + "stringField": "NAKIA", + }, + Object { + "stringField": "nakia", + }, + Object { + "stringField": "Nakia", + }, + Object { + "stringField": "sed praesentium", + }, + Object { + "stringField": "amber", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "SHEMAR", + }, + Object { + "stringField": "stark", + }, + Object { + "stringField": "elda", + }, + Object { + "stringField": "Damien", + }, + Object { + "stringField": "earum nesciunt", + }, + Object { + "stringField": "illum atque", + }, + Object { + "stringField": "schowalter", + }, + Object { + "stringField": "MAIORES ADIPISCI", + }, + Object { + "stringField": "VELIT ADIPISCI", + }, + Object { + "stringField": "AMET QUI", + }, + Object { + "stringField": "maiores praesentium", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "alias sint", + }, + Object { + "stringField": "molestiae praesentium", + }, + Object { + "stringField": "Okuneva", + }, + Object { + "stringField": "hartmann", + }, + Object { + "stringField": "raquel", + }, + Object { + "stringField": "quas fugit", + }, + Object { + "stringField": "quia et", + }, + Object { + "stringField": "ut consequatur", + }, + Object { + "stringField": "iusto perspiciatis", + }, + Object { + "stringField": "HAMILL", + }, + Object { + "stringField": "LABORE CULPA", + }, + Object { + "stringField": "VERITATIS EIUS", + }, + Object { + "stringField": "HELGA", + }, + Object { + "stringField": "ipsum voluptas", + }, + Object { + "stringField": "linnea", + }, + Object { + "stringField": "madison", + }, + Object { + "stringField": "NUMQUAM ALIQUAM", + }, + Object { + "stringField": "macy", + }, + Object { + "stringField": "GERLACH", + }, + Object { + "stringField": "padberg", + }, + Object { + "stringField": "ENIM DICTA", + }, + Object { + "stringField": "amalia", + }, + Object { + "stringField": "QUAS PERSPICIATIS", + }, + Object { + "stringField": "Williamson", + }, + Object { + "stringField": "schamberger", + }, + Object { + "stringField": "Jared", + }, + Object { + "stringField": "QUIDEM FUGIAT", + }, + Object { + "stringField": "MAGNAM REICIENDIS", + }, + Object { + "stringField": "jaskolski", + }, + Object { + "stringField": "BAUCH", + }, + Object { + "stringField": "paucek", + }, + Object { + "stringField": "VOLUPTATE ATQUE", + }, + Object { + "stringField": "placeat voluptate", + }, + Object { + "stringField": "pagac", + }, + Object { + "stringField": "eius necessitatibus", + }, +] +`; + +exports[`server with replica find: string query: ends with \`z\` (upper or lower) 1`] = ` +Array [ + Object { + "stringField": "LUEILWITZ", + }, + Object { + "stringField": "delfinaz", + }, + Object { + "stringField": "horowitz", + }, +] +`; + +exports[`server with replica find: string query: exact match (Nakia) 1`] = ` +Array [ + Object { + "stringField": "Nakia", + }, +] +`; + +exports[`server with replica find: string query: in list { devin, erling, KAELYN, raquel } 1`] = ` +Array [ + Object { + "stringField": "devin", + }, + Object { + "stringField": "erling", + }, + Object { + "stringField": "KAELYN", + }, + Object { + "stringField": "raquel", + }, +] +`; + +exports[`server with replica find: string query: starts with \`b\` (upper or lower) 1`] = ` +Array [ + Object { + "stringField": "BOSCO", + }, + Object { + "stringField": "BERENICE", + }, + Object { + "stringField": "billie", + }, + Object { + "stringField": "Block", + }, + Object { + "stringField": "BAUCH", + }, +] +`; + +exports[`server with replica getBindingError pulls correct info from binding error 1`] = ` +Object { + "emailField": Object { + "isEmail": "emailField must be an email", + }, +} +`; diff --git a/src/test/functional/server.test.ts b/src/test/functional/server.test.ts index 6df9a6e7..6e4b9485 100644 --- a/src/test/functional/server.test.ts +++ b/src/test/functional/server.test.ts @@ -18,6 +18,7 @@ import express = require('express'); import * as request from 'supertest'; import { ColumnMetadata } from 'typeorm/metadata/ColumnMetadata'; import { EncodingService } from '../../core/encoding'; +import { setTestServerEnvironmentVariables } from '../server-vars'; let runKey: string; let server: Server; @@ -29,57 +30,52 @@ let onBeforeCalled = false; let onAfterCalled = false; let kitchenSink: KitchenSink; -describe('server', () => { - // Make sure to clean up server - beforeAll(async done => { - // setTestServerEnvironmentVariables(); +const beforeAllLogic = async (connectDBReplica = true) => { + // setTestServerEnvironmentVariables(); - runKey = String(new Date().getTime()); // used to ensure test runs create unique data + runKey = String(new Date().getTime()); // used to ensure test runs create unique data - // build a custom express app with a dummy endpoint - customExpressApp = buildCustomExpressApp(); + const WARTHOG_DB_CONNECT_REPLICA = connectDBReplica ? 'true' : 'false'; + setTestServerEnvironmentVariables({ WARTHOG_DB_CONNECT_REPLICA }); - try { - // TODO: before you attempt to start the server, we need to generate the code so that we don't get TS compiler issues - - server = getTestServer({ - apolloConfig: { playground: false }, - expressApp: customExpressApp, - onBeforeGraphQLMiddleware: (app: express.Application) => { - app; - onBeforeCalled = true; - }, - onAfterGraphQLMiddleware: (app: express.Application) => { - app; - onAfterCalled = true; - } - }); - - await server.start(); + // build a custom express app with a dummy endpoint + customExpressApp = buildCustomExpressApp(); - binding = ((await server.getBinding()) as unknown) as Binding; - } catch (error) { - logger.error(error); - throw new Error(error); - } + try { + // TODO: before you attempt to start the server, we need to generate the code so that we don't get TS compiler issues + + server = getTestServer({ + apolloConfig: { playground: false }, + expressApp: customExpressApp, + onBeforeGraphQLMiddleware: (app: express.Application) => { + app; + onBeforeCalled = true; + }, + onAfterGraphQLMiddleware: (app: express.Application) => { + app; + onAfterCalled = true; + }, + connectDBReplica + }); - // sinksExist skips recreating seed data so that we can re-run tests in watch mode - const sinksExist = (await binding.query.kitchenSinks({ limit: 1 }, '{ id }')).length > 0; - if (!sinksExist) { - kitchenSink = await createKitchenSink(binding, 'hi@warthog.com'); - await createManyDishes(binding, kitchenSink.id); - await createManyKitchenSinks(binding); - } + await server.start(); - done(); - }); + binding = ((await server.getBinding()) as unknown) as Binding; + } catch (error) { + logger.error('failed to start server or setup binding', error); + throw new Error(error); + } - // Make sure to clean up server - afterAll(async done => { - await server.stop(); - done(); - }); + // sinksExist skips recreating seed data so that we can re-run tests in watch mode + const sinksExist = (await binding.query.kitchenSinks({ limit: 1 }, '{ id }')).length > 0; + if (!sinksExist) { + kitchenSink = await createKitchenSink(binding, 'hi@warthog.com'); + await createManyDishes(binding, kitchenSink.id); + await createManyKitchenSinks(binding); + } +}; +const runTests = () => { test('before and after middleware hooks called', async () => { expect(onBeforeCalled).toEqual(true); expect(onAfterCalled).toEqual(true); @@ -95,7 +91,7 @@ describe('server', () => { // Previously, dataloader bombed out if you didn't ask for id, because postgres didn't // return it and we couldn't batch IDs to query lower - test('queries deeply nested objects without an ID', async () => { + test('IAN queries deeply nested objects without an ID', async () => { expect.assertions(2); const results = await binding.query.kitchenSinks( { offset: 0, orderBy: 'createdAt_ASC', limit: 1 }, @@ -773,7 +769,41 @@ describe('server', () => { }); }); }); -}); + + describe('server', () => { + xdescribe('no replica', () => { + // Make sure to clean up server + beforeAll(async done => { + await beforeAllLogic(false); + done(); + }); + + runTests(); + + // Make sure to clean up server + afterAll(async done => { + await server.stop(); + done(); + }); + }); + + describe('with replica', () => { + // Make sure to clean up server + beforeAll(async done => { + await beforeAllLogic(true); + done(); + }); + + runTests(); + + // Make sure to clean up server + afterAll(async done => { + await server.stop(); + done(); + }); + }); + }); +}; async function createKitchenSink( binding: any, diff --git a/src/test/modules/dish/dish.resolver.ts b/src/test/modules/dish/dish.resolver.ts index d457e722..fd0d5a32 100644 --- a/src/test/modules/dish/dish.resolver.ts +++ b/src/test/modules/dish/dish.resolver.ts @@ -39,6 +39,7 @@ import { KitchenSink } from '../kitchen-sink/kitchen-sink.model'; import { Dish } from './dish.model'; import { DishService } from './dish.service'; +import { logger } from '../../../core'; @ObjectType() export class DishEdge { @@ -103,7 +104,12 @@ export class DishResolver { @Args() { where, orderBy, limit, offset }: DishWhereArgs, @Fields() fields: string[] ): Promise { - return this.service.find(where, orderBy, limit, offset, fields); + try { + return this.service.find(where, orderBy, limit, offset, fields); + } catch (e) { + logger.error('failed on find', e); + throw e; + } } @Authorized('dish:read') diff --git a/src/test/modules/kitchen-sink/kitchen-sink.resolver.ts b/src/test/modules/kitchen-sink/kitchen-sink.resolver.ts index 023efc16..5bdac893 100644 --- a/src/test/modules/kitchen-sink/kitchen-sink.resolver.ts +++ b/src/test/modules/kitchen-sink/kitchen-sink.resolver.ts @@ -1,3 +1,4 @@ +import { logger } from '../../../core'; import { Arg, Args, @@ -42,7 +43,12 @@ export class KitchenSinkResolver { @Args() { where, orderBy, limit, offset }: KitchenSinkWhereArgs, @Fields() fields: string[] ): Promise { - return this.service.find(where, orderBy, limit, offset, fields); + try { + return this.service.find(where, orderBy, limit, offset, fields); + } catch (e) { + logger.error('failed on find', e); + throw e; + } } @Authorized('kitchenSink:read') diff --git a/src/test/server-vars.ts b/src/test/server-vars.ts index fa862564..e7739b17 100644 --- a/src/test/server-vars.ts +++ b/src/test/server-vars.ts @@ -27,6 +27,9 @@ export function getStandardEnvironmentVariables(): StringMap { WARTHOG_DB_DATABASE: 'warthog-test', WARTHOG_DB_ENTITIES: 'src/test/modules/**/*.model.ts', WARTHOG_DB_HOST: 'localhost', + WARTHOG_DB_REPLICA_HOST: 'localhost', + WARTHOG_DB_REPLICA_PORT: '5432', + WARTHOG_DB_CONNECT_REPLICA: 'false', WARTHOG_DB_LOGGING: 'none', WARTHOG_DB_MIGRATIONS_DIR: './tmp/test/migrations', WARTHOG_DB_OVERRIDE: 'true', // Set so that we can do DB stuff outside of NODE_ENV=development diff --git a/src/test/setupFiles.ts b/src/test/setupFiles.ts index 0bc264bd..c0f1ced0 100644 --- a/src/test/setupFiles.ts +++ b/src/test/setupFiles.ts @@ -10,7 +10,7 @@ if (!(global as any).__warthog_config__) { // Tell TypeORM to use our typedi instance typeOrmUseContainer(Container); - setTestServerEnvironmentVariables(); + setTestServerEnvironmentVariables({ WARTHOG_DB_CONNECT_REPLICA: 'true' }); const config = new Config({ container: Container }); diff --git a/src/test/test-server.ts b/src/test/test-server.ts index ff0b69ec..e5f115a1 100644 --- a/src/test/test-server.ts +++ b/src/test/test-server.ts @@ -22,6 +22,7 @@ export function getTestServer(options: ServerOptions = {}) { }, introspection: true, openPlayground: false, + connectDBReplica: true, ...options }); } diff --git a/src/tgql/BaseResolver.ts b/src/tgql/BaseResolver.ts index 7131366c..3dca5200 100644 --- a/src/tgql/BaseResolver.ts +++ b/src/tgql/BaseResolver.ts @@ -7,7 +7,6 @@ import { StandardDeleteResponse } from './DeleteResponse'; export class BaseResolver { service: any; - // TODO: need to figure out why we couldn't type this as Repository constructor(protected entityClass: any, protected repository: Repository) { this.service = new BaseService(entityClass, this.repository); } diff --git a/src/torm/createConnection.ts b/src/torm/createConnection.ts index d8217fb8..b194d582 100644 --- a/src/torm/createConnection.ts +++ b/src/torm/createConnection.ts @@ -1,8 +1,10 @@ -import { ConnectionOptions, createConnection } from 'typeorm'; +import { Connection, ConnectionOptions, createConnection } from 'typeorm'; import { SnakeNamingStrategy } from './SnakeNamingStrategy'; import { logger } from '../core/logger'; +export const REPLICA_CONNECTION_NAME = 'replica'; + // TODO: Need to figure out a way for this and the generated ormconfig to be one and the same export function getBaseConfig() { return { @@ -27,16 +29,55 @@ export function getBaseConfig() { }; } +export function getBaseReplicatedConfig() { + return { + cli: { + entitiesDir: process.env.WARTHOG_DB_ENTITIES_DIR, + migrationsDir: process.env.WARTHOG_DB_MIGRATIONS_DIR, + subscribersDir: process.env.WARTHOG_DB_SUBSCRIBERS_DIR + }, + entities: getDatabaseEntityPaths(), + logger: process.env.WARTHOG_DB_LOGGER, + logging: process.env.WARTHOG_DB_LOGGING!, // eslint-disable-line @typescript-eslint/no-non-null-assertion + migrations: getDatabaseMigrationPaths(), + namingStrategy: new SnakeNamingStrategy(), + subscribers: getDatabaseSubscriberPaths(), + synchronize: process.env.WARTHOG_DB_SYNCHRONIZE === 'true', + type: process.env.WARTHOG_DB_CONNECTION!, // eslint-disable-line @typescript-eslint/no-non-null-assertion + database: process.env.WARTHOG_DB_DATABASE!, // eslint-disable-line @typescript-eslint/no-non-null-assertion + replication: { + master: { + host: process.env.WARTHOG_DB_HOST!, // eslint-disable-line @typescript-eslint/no-non-null-assertion + port: parseInt(process.env.WARTHOG_DB_PORT || '', 10), + username: process.env.WARTHOG_DB_USERNAME, + password: process.env.WARTHOG_DB_PASSWORD, + database: process.env.WARTHOG_DB_DATABASE! // eslint-disable-line @typescript-eslint/no-non-null-assertion + }, + slaves: [ + { + host: process.env.WARTHOG_DB_REPLICA_HOST, + port: parseInt(process.env.WARTHOG_DB_REPLICA_PORT || '', 10), + username: process.env.WARTHOG_DB_USERNAME, + password: process.env.WARTHOG_DB_PASSWORD, + database: process.env.WARTHOG_DB_DATABASE! // eslint-disable-line @typescript-eslint/no-non-null-assertion + } + ] + } + }; +} + // Note: all DB options should be specified by environment variables // Either using TYPEORM_ or WARTHOG_DB_ -export const createDBConnection = async (dbOptions: Partial = {}) => { +export const createDBConnection = async ( + dbOptions: Partial = {} +): Promise => { const config = { ...getBaseConfig(), ...dbOptions }; if (!config.database) { - throw new Error("createConnection: 'database' is required"); + throw new Error("createDBConnection: 'database' is required"); } logger.debug('createDBConnection', config); @@ -44,6 +85,29 @@ export const createDBConnection = async (dbOptions: Partial = return createConnection(config as any); // TODO: fix any. It is complaining about `type` }; +// Note: all DB options should be specified by environment variables +// Either using TYPEORM_ or WARTHOG_DB_ +export const createReplicatedDBConnection = async ( + dbOptions: Partial = {} +): Promise => { + const config = { + ...getBaseReplicatedConfig(), + ...dbOptions + }; + + if (!config.replication.master.database) { + throw new Error("createReplicatedDBConnection: 'database' is required on the master config"); + } + + if (!config.replication.slaves[0].database) { + throw new Error("createReplicatedDBConnection: 'database' is required on the slave config"); + } + + logger.debug('createReplicatedDBConnection', JSON.stringify(config)); + + return createConnection(config as any); // TODO: fix any. It is complaining about `type` +}; + function getDatabaseEntityPaths(): string[] { return process.env.WARTHOG_DB_ENTITIES ? process.env.WARTHOG_DB_ENTITIES.split(',') diff --git a/yarn.lock b/yarn.lock index 93fb981a..29b655e0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -676,6 +676,11 @@ lodash "^4.17.4" read-pkg-up "^7.0.0" +"@sqltools/formatter@1.2.2": + version "1.2.2" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/@sqltools/formatter/-/formatter-1.2.2.tgz#9390a8127c0dcba61ebd7fdcc748655e191bdd68" + integrity sha1-k5CoEnwNy6YevX/cx0hlXhkb3Wg= + "@types/accepts@*", "@types/accepts@^1.3.5": version "1.3.5" resolved "https://registry.yarnpkg.com/@types/accepts/-/accepts-1.3.5.tgz#c34bec115cfc746e04fe5a059df4ce7e7b391575" @@ -1833,10 +1838,10 @@ balanced-match@^1.0.0: resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= -base64-js@^1.0.2: - version "1.3.1" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.1.tgz#58ece8cb75dd07e71ed08c736abc5fac4dbf8df1" - integrity sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g== +base64-js@^1.3.1: + version "1.5.1" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha1-GxtEAWClv3rUC2UPCVljSBkDkwo= base@^0.11.1: version "0.11.2" @@ -1996,13 +2001,13 @@ buffer-writer@2.0.0: resolved "https://registry.yarnpkg.com/buffer-writer/-/buffer-writer-2.0.0.tgz#ce7eb81a38f7829db09c873f2fbb792c0c98ec04" integrity sha512-a7ZpuTZU1TRtnwyCNW3I5dc0wWNC3VR9S++Ewyk2HHZdrO3CQJqSpd+95Us590V6AL7JqUAH2IwZ/398PmNFgw== -buffer@^5.1.0: - version "5.4.3" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.4.3.tgz#3fbc9c69eb713d323e3fc1a895eee0710c072115" - integrity sha512-zvj65TkFeIt3i6aj5bIvJDzjjQQGs4o/sNoezg1F1kYap9Nu2jcUdpwzRSJTHMMzG0H7bZkn4rNQpImhuxWX2A== +buffer@^5.5.0: + version "5.7.1" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" + integrity sha1-umLnwTEzBTWCGXFghRqPZI6Z7tA= dependencies: - base64-js "^1.0.2" - ieee754 "^1.1.4" + base64-js "^1.3.1" + ieee754 "^1.1.13" builtins@^1.0.3: version "1.0.3" @@ -2191,6 +2196,14 @@ chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" +chalk@^4.0.0, chalk@^4.1.0: + version "4.1.0" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" + integrity sha1-ThSHCmGNni7dl92DRf2dncMVZGo= + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + chardet@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" @@ -2289,16 +2302,17 @@ cli-cursor@^3.1.0: dependencies: restore-cursor "^3.1.0" -cli-highlight@^2.0.0: - version "2.1.3" - resolved "https://registry.yarnpkg.com/cli-highlight/-/cli-highlight-2.1.3.tgz#48bf4fec4524660be968887830f1f5f2fae4ef12" - integrity sha512-0J8L4WOAtC2dqFGCzogKKcZXgjZu67+7gobZlZWEKA9B8VetD2TqVBOpN52pOQHj8oFI6i7sZzjO2CDbT0WryQ== +cli-highlight@^2.1.10: + version "2.1.10" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/cli-highlight/-/cli-highlight-2.1.10.tgz#26a087da9209dce4fcb8cf5427dc97cd96ac173a" + integrity sha1-JqCH2pIJ3OT8uM9UJ9yXzZasFzo= dependencies: - chalk "^3.0.0" - highlight.js "^9.6.0" + chalk "^4.0.0" + highlight.js "^10.0.0" mz "^2.4.0" - parse5 "^4.0.0" - yargs "^14.0.0" + parse5 "^5.1.1" + parse5-htmlparser2-tree-adapter "^6.0.0" + yargs "^16.0.0" cli-spinners@^2.2.0: version "2.2.0" @@ -2371,6 +2385,15 @@ cliui@^6.0.0: strip-ansi "^6.0.0" wrap-ansi "^6.2.0" +cliui@^7.0.2: + version "7.0.4" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08= + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + clone@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" @@ -3050,11 +3073,6 @@ dotenv@^5.0.1: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-5.0.1.tgz#a5317459bd3d79ab88cff6e44057a6a3fbb1fcef" integrity sha512-4As8uPrjfwb7VXC+WnLCbXK7y+Ueb2B3zgNCePYfhxS1PYeaO1YTeplffTEcbfLhvFNGLAz90VvJs9yomG7bow== -dotenv@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-6.2.0.tgz#941c0410535d942c8becf28d3f357dbd9d476064" - integrity sha512-HygQCKUBSFl8wKQZBSemMywRWcEDNidvNbjGVyZu3nbZ8qq9ubiPoGLMdRDpfSrpkkm9BXYFkpKxxFX38o/76w== - duplexer2@~0.1.0: version "0.1.4" resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" @@ -3223,6 +3241,11 @@ es6-promisify@^5.0.0: dependencies: es6-promise "^4.0.3" +escalade@^3.1.1: + version "3.1.1" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA= + escape-html@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" @@ -3960,10 +3983,10 @@ get-caller-file@^1.0.1: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" integrity sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w== -get-caller-file@^2.0.1: +get-caller-file@^2.0.1, get-caller-file@^2.0.5: version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= get-own-enumerable-property-symbols@^3.0.0: version "3.0.1" @@ -4058,7 +4081,7 @@ glob-parent@~5.1.0: dependencies: is-glob "^4.0.1" -glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@~7.1.2: +glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@~7.1.2: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== @@ -4389,10 +4412,10 @@ has@^1.0.3: dependencies: function-bind "^1.1.1" -highlight.js@^9.6.0: - version "9.16.2" - resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.16.2.tgz#68368d039ffe1c6211bcc07e483daf95de3e403e" - integrity sha512-feMUrVLZvjy0oC7FVJQcSQRqbBq9kwqnYE4+Kj9ZjbHh3g+BisiPgF49NyQbVLNdrL/qqZr3Ca9yOKwgn2i/tw== +highlight.js@^10.0.0: + version "10.6.0" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/highlight.js/-/highlight.js-10.6.0.tgz#0073aa71d566906965ba6e1b7be7b2682f5e18b6" + integrity sha1-AHOqcdVmkGllum4be+eyaC9eGLY= hook-std@^2.0.0: version "2.0.0" @@ -4514,10 +4537,10 @@ iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@^0.4.4, iconv-lite@~0.4.13: dependencies: safer-buffer ">= 2.1.2 < 3" -ieee754@^1.1.4: - version "1.1.13" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.13.tgz#ec168558e95aa181fd87d37f55c32bbcb6708b84" - integrity sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg== +ieee754@^1.1.13: + version "1.2.1" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + integrity sha1-jrehCmP/8l0VpXsAFYbRd9Gw01I= iferr@^0.1.5: version "0.1.5" @@ -5489,6 +5512,14 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" +js-yaml@^3.14.0: + version "3.14.1" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + integrity sha1-2ugS/bOCX6MGYJqHFzg8UMNqBTc= + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + jsbn@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" @@ -6603,7 +6634,7 @@ mkdirp@0.x, mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: dependencies: minimist "0.0.8" -mkdirp@^1.0.3, mkdirp@^1.0.4: +mkdirp@^1.0.4: version "1.0.4" resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== @@ -7547,11 +7578,28 @@ parse-json@^5.0.0: json-parse-better-errors "^1.0.1" lines-and-columns "^1.1.6" -parse5@4.0.0, parse5@^4.0.0: +parse5-htmlparser2-tree-adapter@^6.0.0: + version "6.0.1" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz#2cdf9ad823321140370d4dbf5d3e92c7c8ddc6e6" + integrity sha1-LN+a2CMyEUA3DU2/XT6Sx8jdxuY= + dependencies: + parse5 "^6.0.1" + +parse5@4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" integrity sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA== +parse5@^5.1.1: + version "5.1.1" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/parse5/-/parse5-5.1.1.tgz#f68e4e5ba1852ac2cadc00f4555fff6c2abb6178" + integrity sha1-9o5OW6GFKsLK3AD0VV//bCq7YXg= + +parse5@^6.0.1: + version "6.0.1" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" + integrity sha1-4aHAhcVps9wIMhGE8Zo5zCf3wws= + parseurl@^1.3.2, parseurl@~1.3.3: version "1.3.3" resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" @@ -9668,6 +9716,11 @@ tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== +tslib@^1.13.0: + version "1.14.1" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA= + tsutils@^3.17.1: version "3.17.1" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.17.1.tgz#ed719917f11ca0dee586272b2ac49e015a2dd759" @@ -9747,26 +9800,27 @@ typeorm-typedi-extensions@^0.2.3: resolved "https://registry.yarnpkg.com/typeorm-typedi-extensions/-/typeorm-typedi-extensions-0.2.3.tgz#94fca2656206d771bf6d2242f5aab570511188e8" integrity sha512-T9i1NvRZNjPn9Jb8oT772ihfn6PwdqDVpzPCtKSqjkZGOgXrCkdyD3dDrzfMaoWJ1afU58bVx2CMb95FzT42Ow== -typeorm@^0.2.25: - version "0.2.25" - resolved "https://registry.npmjs.org/typeorm/-/typeorm-0.2.25.tgz#1a33513b375b78cc7740d2405202208b918d7dde" - integrity sha512-yzQ995fyDy5wolSLK9cmjUNcmQdixaeEm2TnXB5HN++uKbs9TiR6Y7eYAHpDlAE8s9J1uniDBgytecCZVFergQ== +typeorm@^0.2.31: + version "0.2.31" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/typeorm/-/typeorm-0.2.31.tgz#82b8a1b233224f81c738f53b0380386ccf360917" + integrity sha1-grihsjMiT4HHOPU7A4A4bM82CRc= dependencies: + "@sqltools/formatter" "1.2.2" app-root-path "^3.0.0" - buffer "^5.1.0" - chalk "^2.4.2" - cli-highlight "^2.0.0" + buffer "^5.5.0" + chalk "^4.1.0" + cli-highlight "^2.1.10" debug "^4.1.1" - dotenv "^6.2.0" - glob "^7.1.2" - js-yaml "^3.13.1" - mkdirp "^1.0.3" + dotenv "^8.2.0" + glob "^7.1.6" + js-yaml "^3.14.0" + mkdirp "^1.0.4" reflect-metadata "^0.1.13" sha.js "^2.4.11" - tslib "^1.9.0" - xml2js "^0.4.17" + tslib "^1.13.0" + xml2js "^0.4.23" yargonaut "^1.1.2" - yargs "^13.2.1" + yargs "^16.0.3" typescript@^3.9.7: version "3.9.7" @@ -9919,7 +9973,7 @@ util-promisify@^2.1.0: dependencies: object.getownpropertydescriptors "^2.0.3" -util.promisify@^1.0.0, util.promisify@~1.0.0: +util.promisify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" integrity sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA== @@ -10138,6 +10192,15 @@ wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM= + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" @@ -10192,13 +10255,12 @@ xml-name-validator@^3.0.0: resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== -xml2js@^0.4.17: - version "0.4.22" - resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.22.tgz#4fa2d846ec803237de86f30aa9b5f70b6600de02" - integrity sha512-MWTbxAQqclRSTnehWWe5nMKzI3VmJ8ltiJEco8akcC6j3miOhjjfzKum5sId+CWhfxdOs/1xauYr8/ZDBtQiRw== +xml2js@^0.4.23: + version "0.4.23" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/xml2js/-/xml2js-0.4.23.tgz#a0c69516752421eb2ac758ee4d4ccf58843eac66" + integrity sha1-oMaVFnUkIesqx1juTUzPWIQ+rGY= dependencies: sax ">=0.6.0" - util.promisify "~1.0.0" xmlbuilder "~11.0.0" xmlbuilder@~11.0.0: @@ -10226,6 +10288,11 @@ y18n@^3.2.1: resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== +y18n@^5.0.5: + version "5.0.5" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/y18n/-/y18n-5.0.5.tgz#8769ec08d03b1ea2df2500acef561743bbb9ab18" + integrity sha1-h2nsCNA7HqLfJQCs71YXQ7u5qxg= + yallist@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" @@ -10299,6 +10366,11 @@ yargs-parser@^18.1.2: camelcase "^5.0.0" decamelize "^1.2.0" +yargs-parser@^20.2.2: + version "20.2.4" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" + integrity sha1-tCiQ8UVmeW+Fro46JSkNIF8VSlQ= + yargs-parser@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-3.2.0.tgz#5081355d19d9d0c8c5d81ada908cb4e6d186664f" @@ -10357,7 +10429,7 @@ yargs@^12.0.2: y18n "^3.2.1 || ^4.0.0" yargs-parser "^11.1.1" -yargs@^13.2.1, yargs@^13.3.0: +yargs@^13.3.0: version "13.3.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.0.tgz#4c657a55e07e5f2cf947f8a366567c04a0dedc83" integrity sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA== @@ -10407,6 +10479,19 @@ yargs@^15.3.1: y18n "^4.0.0" yargs-parser "^18.1.2" +yargs@^16.0.0, yargs@^16.0.3: + version "16.2.0" + resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" + integrity sha1-HIK/D2tqZur85+8w43b0mhJHf2Y= + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" + yargs@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-5.0.0.tgz#3355144977d05757dbb86d6e38ec056123b3a66e" From f4e22fbf80388f3b37505ad0ca1c5b48821d30ae Mon Sep 17 00:00:00 2001 From: Dan Caddigan Date: Mon, 15 Feb 2021 01:25:33 -0500 Subject: [PATCH 2/2] feat(replication): adds read replica functionality --- examples/12-replica-db-connection/.env | 4 +- .../generated/binding.ts | 1 + .../generated/schema.graphql | 1 + .../12-replica-db-connection/src/server.ts | 14 +++- .../src/user.resolver.ts | 6 ++ .../src/user.service.ts | 13 ++- src/core/BaseService.ts | 44 ++++++++-- src/core/server.test.ts | 10 ++- src/core/server.ts | 20 +---- src/test/functional/server.test.ts | 81 ++++++++----------- src/test/server-vars.ts | 3 - src/test/test-server.ts | 1 - src/torm/createConnection.ts | 68 ++++------------ yarn.lock | 42 +++++----- 14 files changed, 147 insertions(+), 161 deletions(-) diff --git a/examples/12-replica-db-connection/.env b/examples/12-replica-db-connection/.env index 1a7bbaf5..932a143e 100644 --- a/examples/12-replica-db-connection/.env +++ b/examples/12-replica-db-connection/.env @@ -10,4 +10,6 @@ WARTHOG_DB_HOST=localhost WARTHOG_DB_PORT=5432 WARTHOG_DB_REPLICA_HOST=localhost WARTHOG_DB_REPLICA_PORT=5432 -WARTHOG_DB_CONNECT_REPLICA=true +WARTHOG_DB_REPLICA_DATABASE=warthog-example-12 +WARTHOG_DB_REPLICA_USERNAME=postgres +WARTHOG_DB_REPLICA_PASSWORD= diff --git a/examples/12-replica-db-connection/generated/binding.ts b/examples/12-replica-db-connection/generated/binding.ts index 2f36ce89..7588af16 100644 --- a/examples/12-replica-db-connection/generated/binding.ts +++ b/examples/12-replica-db-connection/generated/binding.ts @@ -7,6 +7,7 @@ import * as schema from './schema.graphql' export interface Query { users: >(args: { offset?: Int | null, limit?: Int | null, where?: UserWhereInput | null, orderBy?: UserOrderByInput | null }, info?: GraphQLResolveInfo | string, options?: Options) => Promise , + usersFromMaster: >(args?: {}, info?: GraphQLResolveInfo | string, options?: Options) => Promise , user: (args: { where: UserWhereUniqueInput }, info?: GraphQLResolveInfo | string, options?: Options) => Promise } diff --git a/examples/12-replica-db-connection/generated/schema.graphql b/examples/12-replica-db-connection/generated/schema.graphql index 28f77acf..eed1d058 100644 --- a/examples/12-replica-db-connection/generated/schema.graphql +++ b/examples/12-replica-db-connection/generated/schema.graphql @@ -79,6 +79,7 @@ type PageInfo { type Query { users(offset: Int, limit: Int = 50, where: UserWhereInput, orderBy: UserOrderByInput): [User!]! + usersFromMaster: [User!]! user(where: UserWhereUniqueInput!): User! } diff --git a/examples/12-replica-db-connection/src/server.ts b/examples/12-replica-db-connection/src/server.ts index 3ca418b0..2c235e89 100644 --- a/examples/12-replica-db-connection/src/server.ts +++ b/examples/12-replica-db-connection/src/server.ts @@ -1,4 +1,5 @@ import 'reflect-metadata'; +import { AdvancedConsoleLogger, Logger, QueryRunner } from 'typeorm'; import { BaseContext, Server } from '../../../src'; @@ -10,6 +11,16 @@ interface Context extends BaseContext { }; } +export class CustomLogger extends AdvancedConsoleLogger implements Logger { + logQuery(query: string, parameters?: any[], queryRunner?: QueryRunner) { + if (!queryRunner) { + return console.log(query); + } + + console.log(`[${(queryRunner as any).mode}] ${query}`); + } +} + export function getServer(AppOptions = {}, dbOptions = {}) { return new Server( { @@ -23,9 +34,8 @@ export function getServer(AppOptions = {}, dbOptions = {}) { } }; }, - connectDBReplica: true, ...AppOptions }, - dbOptions + { ...dbOptions, logger: new CustomLogger() } ); } diff --git a/examples/12-replica-db-connection/src/user.resolver.ts b/examples/12-replica-db-connection/src/user.resolver.ts index fa121ba4..032a7c07 100644 --- a/examples/12-replica-db-connection/src/user.resolver.ts +++ b/examples/12-replica-db-connection/src/user.resolver.ts @@ -22,6 +22,12 @@ export class UserResolver { return this.userService.find(where, orderBy, limit, offset); } + // This query will use the "master" server, even though it would typically use "slave" by default for doing a find + @Query(() => [User]) + async usersFromMaster(): Promise { + return this.userService.findFromMaster(); + } + @Query(() => User) async user(@Arg('where') where: UserWhereUniqueInput): Promise { return this.userService.findOne(where); diff --git a/examples/12-replica-db-connection/src/user.service.ts b/examples/12-replica-db-connection/src/user.service.ts index cbd0869a..9b6350f3 100644 --- a/examples/12-replica-db-connection/src/user.service.ts +++ b/examples/12-replica-db-connection/src/user.service.ts @@ -1,5 +1,5 @@ import { Service } from 'typedi'; -import { DeepPartial, Repository } from 'typeorm'; +import { Repository } from 'typeorm'; import { InjectRepository } from 'typeorm-typedi-extensions'; import { BaseService } from '../../../src'; @@ -12,11 +12,10 @@ export class UserService extends BaseService { super(User, repository); } - async create(data: DeepPartial, userId: string): Promise { - const newUser = await super.create(data, userId); - - // Perform some side effects - - return newUser; + // This query will use the "master" server, even though it would typically use "slave" by default for doing a find + async findFromMaster(): Promise { + return super.find(undefined, undefined, undefined, undefined, undefined, { + replicationMode: 'master' + }); } } diff --git a/src/core/BaseService.ts b/src/core/BaseService.ts index 12159b59..af7e1d73 100644 --- a/src/core/BaseService.ts +++ b/src/core/BaseService.ts @@ -5,6 +5,8 @@ import { DeepPartial, EntityManager, getRepository, + QueryBuilder, + ReplicationMode, Repository, SelectQueryBuilder } from 'typeorm'; @@ -34,6 +36,10 @@ export interface BaseOptions { manager?: EntityManager; // Allows consumers to pass in a TransactionManager } +export interface AdvancedFindOptions { + replicationMode?: ReplicationMode; +} + interface WhereFilterAttributes { [key: string]: string | number | null; } @@ -114,12 +120,13 @@ export class BaseService { orderBy?: string, limit?: number, offset?: number, - fields?: string[] + fields?: string[], + options: AdvancedFindOptions = {} ): Promise { // TODO: FEATURE - make the default limit configurable limit = limit ?? 20; debugStatement('find:buildQuery'); - const qb = this.buildFindQuery(where, orderBy, { limit, offset }, fields); + const qb = this.buildFindQuery(where, orderBy, { limit, offset }, fields, options); try { debugStatement('find:gettingMany'); const records = await qb.getMany(); @@ -129,6 +136,8 @@ export class BaseService { debugStatement('find:error'); logger.error('failed on getMany', e); throw e; + } finally { + this.cleanUpQueryBuilder(qb); } } @@ -137,7 +146,8 @@ export class BaseService { whereUserInput: any = {}, // V3: WhereExpression = {}, orderBy?: string | string[], _pageOptions: RelayPageOptionsInput = {}, - fields?: ConnectionInputFields + fields?: ConnectionInputFields, + options: AdvancedFindOptions = {} ): Promise> { // TODO: if the orderby items aren't included in `fields`, should we automatically include? @@ -176,7 +186,8 @@ export class BaseService { whereCombined, this.relayService.effectiveOrderStrings(sorts, relayPageOptions), { limit: limit + 1 }, // We ask for 1 too many so that we know if there is an additional page - requestedFields.selectFields + requestedFields.selectFields, + options ); let rawData; @@ -189,6 +200,8 @@ export class BaseService { rawData = await qb.getMany(); } + this.cleanUpQueryBuilder(qb); + // If we got the n+1 that we requested, pluck the last item off const returnData = rawData.length > limit ? rawData.slice(0, limit) : rawData; @@ -209,13 +222,19 @@ export class BaseService { where: WhereExpression = {}, orderBy?: string | string[], pageOptions?: LimitOffset, - fields?: string[] + fields?: string[], + options: AdvancedFindOptions = {} ): SelectQueryBuilder { try { const DEFAULT_LIMIT = 50; - let qb = this.manager.connection - .createQueryBuilder(this.entityClass, this.klass) - .setQueryRunner(this.manager.connection.createQueryRunner('slave')); + let qb = this.manager.connection.createQueryBuilder(this.entityClass, this.klass); + if (options.replicationMode) { + const queryRunner = this.manager.connection.createQueryRunner(options.replicationMode); + qb.setQueryRunner(queryRunner); + (qb as any).warthogQueryRunnerOverride = queryRunner; + } + + // if (!pageOptions) { pageOptions = { limit: DEFAULT_LIMIT @@ -476,6 +495,15 @@ export class BaseService { return { id: found.id }; } + // This is really ugly. Shouldn't be attaching to the querybuilder, but need to keep track of whether this + // instance of the queryBuilder was created with a custom query runner so that it can be cleaned up + cleanUpQueryBuilder(qb: QueryBuilder) { + // console.log(qb); + if ((qb as any).warthogQueryRunnerOverride) { + (qb as any).warthogQueryRunnerOverride.release(); + } + } + attrsToDBColumns = (attrs: string[]): string[] => { return attrs.map(this.attrToDBColumn); }; diff --git a/src/core/server.test.ts b/src/core/server.test.ts index 73d05936..c0fac121 100644 --- a/src/core/server.test.ts +++ b/src/core/server.test.ts @@ -50,8 +50,14 @@ describe('Server', () => { const customExpressApp: express.Application = express(); const appListenSpy = jest.spyOn(customExpressApp, 'listen'); server = buildServer( - { expressApp: customExpressApp, connectDBReplica: true }, - { WARTHOG_DB_CONNECT_REPLICA: 'true' } + { expressApp: customExpressApp }, + { + WARTHOG_DB_REPLICA_HOST: 'localhost', + WARTHOG_DB_REPLICA_DATABASE: 'warthog-test', + WARTHOG_DB_REPLICA_PORT: '5432', + WARTHOG_DB_REPLICA_USERNAME: 'postgres', + WARTHOG_DB_REPLICA_PASSWORD: '' + } ); await server.start(); const binding = await server.getBinding(); diff --git a/src/core/server.ts b/src/core/server.ts index e46954db..0542dc67 100644 --- a/src/core/server.ts +++ b/src/core/server.ts @@ -17,7 +17,7 @@ import { Connection, ConnectionOptions, useContainer as TypeORMUseContainer } fr import { logger, Logger } from '../core/logger'; import { getRemoteBinding } from '../gql'; import { DataLoaderMiddleware, healthCheckMiddleware } from '../middleware'; -import { createDBConnection, createReplicatedDBConnection } from '../torm'; +import { createDBConnection, WarthogDBConnectionOptions } from '../torm'; import { CodeGenerator } from './code-generator'; import { Config } from './config'; @@ -47,7 +47,6 @@ export interface ServerOptions { bodyParserConfig?: OptionsJson; onBeforeGraphQLMiddleware?: (app: express.Application) => void; onAfterGraphQLMiddleware?: (app: express.Application) => void; - connectDBReplica?: boolean; } export class Server { @@ -66,8 +65,7 @@ export class Server { constructor( private appOptions: ServerOptions, - private dbOptions: Partial = {}, - private dbReplicaOptions: Partial = {} + private dbOptions: Partial = {} ) { if (typeof this.appOptions.host !== 'undefined') { process.env.WARTHOG_APP_HOST = this.appOptions.host; @@ -93,11 +91,6 @@ export class Server { ? 'true' : 'false'; } - if (typeof this.appOptions.connectDBReplica !== 'undefined') { - process.env.WARTHOG_DB_CONNECT_REPLICA = this.appOptions.connectDBReplica ? 'true' : 'false'; - } else { - process.env.WARTHOG_DB_CONNECT_REPLICA = 'false'; - } // Ensure that Warthog, TypeORM and TypeGraphQL are all using the same typedi container this.container = this.appOptions.container || Container; @@ -132,13 +125,8 @@ export class Server { async establishDBConnection(): Promise { if (!this.connection) { debug('establishDBConnection:start'); - if (this.config.get('WARTHOG_DB_CONNECT_REPLICA')) { - this.connection = await createReplicatedDBConnection(this.dbOptions); - this.allConnections = [this.connection]; - } else { - this.connection = await createDBConnection(this.dbOptions); - this.allConnections = [this.connection]; - } + this.connection = await createDBConnection(this.dbOptions); + this.allConnections = [this.connection]; debug('establishDBConnection:end'); } diff --git a/src/test/functional/server.test.ts b/src/test/functional/server.test.ts index 6e4b9485..b8443956 100644 --- a/src/test/functional/server.test.ts +++ b/src/test/functional/server.test.ts @@ -30,13 +30,10 @@ let onBeforeCalled = false; let onAfterCalled = false; let kitchenSink: KitchenSink; -const beforeAllLogic = async (connectDBReplica = true) => { - // setTestServerEnvironmentVariables(); - +const beforeAllLogic = async () => { runKey = String(new Date().getTime()); // used to ensure test runs create unique data - const WARTHOG_DB_CONNECT_REPLICA = connectDBReplica ? 'true' : 'false'; - setTestServerEnvironmentVariables({ WARTHOG_DB_CONNECT_REPLICA }); + setTestServerEnvironmentVariables(); // build a custom express app with a dummy endpoint customExpressApp = buildCustomExpressApp(); @@ -54,8 +51,7 @@ const beforeAllLogic = async (connectDBReplica = true) => { onAfterGraphQLMiddleware: (app: express.Application) => { app; onAfterCalled = true; - }, - connectDBReplica + } }); await server.start(); @@ -358,7 +354,7 @@ const runTests = () => { ); expect(result.length).toEqual(30); - expect(result[0].dateOnlyField!.length).toBe(10); + expect((result[0].dateOnlyField as string).length).toBe(10); expect(result).toMatchSnapshot(); }); @@ -369,7 +365,7 @@ const runTests = () => { ); expect(result.length).toEqual(69); - expect(result[0].dateTimeField!.length).toBe(24); + expect((result[0].dateTimeField as string).length).toBe(24); expect(result).toMatchSnapshot(); }); @@ -443,19 +439,6 @@ const runTests = () => { expect(result).toMatchSnapshot(); }); - // - // - - // jsonField: { - // foo: 'bar', - // quia: 'autem' - // }, - // arrayOfInts: [1], - // arrayOfStrings: [] - - // - // - test('findOne: consequuntur-94489@a.com', async () => { expect.assertions(1); @@ -769,41 +752,43 @@ const runTests = () => { }); }); }); +}; - describe('server', () => { - xdescribe('no replica', () => { - // Make sure to clean up server - beforeAll(async done => { - await beforeAllLogic(false); - done(); - }); +// TODO: FIX THESE TESTS +describe('server', () => { + xdescribe('no replica', () => { + // Make sure to clean up server + beforeAll(async done => { + await beforeAllLogic(); + done(); + }); - runTests(); + runTests(); - // Make sure to clean up server - afterAll(async done => { - await server.stop(); - done(); - }); + // Make sure to clean up server + afterAll(async done => { + await server.stop(); + done(); }); + }); - describe('with replica', () => { - // Make sure to clean up server - beforeAll(async done => { - await beforeAllLogic(true); - done(); - }); + describe('with replica', () => { + // Make sure to clean up server + beforeAll(async done => { + // TODO: FIX THIS TEST + await beforeAllLogic(); + done(); + }); - runTests(); + runTests(); - // Make sure to clean up server - afterAll(async done => { - await server.stop(); - done(); - }); + // Make sure to clean up server + afterAll(async done => { + await server.stop(); + done(); }); }); -}; +}); async function createKitchenSink( binding: any, diff --git a/src/test/server-vars.ts b/src/test/server-vars.ts index e7739b17..fa862564 100644 --- a/src/test/server-vars.ts +++ b/src/test/server-vars.ts @@ -27,9 +27,6 @@ export function getStandardEnvironmentVariables(): StringMap { WARTHOG_DB_DATABASE: 'warthog-test', WARTHOG_DB_ENTITIES: 'src/test/modules/**/*.model.ts', WARTHOG_DB_HOST: 'localhost', - WARTHOG_DB_REPLICA_HOST: 'localhost', - WARTHOG_DB_REPLICA_PORT: '5432', - WARTHOG_DB_CONNECT_REPLICA: 'false', WARTHOG_DB_LOGGING: 'none', WARTHOG_DB_MIGRATIONS_DIR: './tmp/test/migrations', WARTHOG_DB_OVERRIDE: 'true', // Set so that we can do DB stuff outside of NODE_ENV=development diff --git a/src/test/test-server.ts b/src/test/test-server.ts index e5f115a1..ff0b69ec 100644 --- a/src/test/test-server.ts +++ b/src/test/test-server.ts @@ -22,7 +22,6 @@ export function getTestServer(options: ServerOptions = {}) { }, introspection: true, openPlayground: false, - connectDBReplica: true, ...options }); } diff --git a/src/torm/createConnection.ts b/src/torm/createConnection.ts index b194d582..e0744a50 100644 --- a/src/torm/createConnection.ts +++ b/src/torm/createConnection.ts @@ -2,12 +2,13 @@ import { Connection, ConnectionOptions, createConnection } from 'typeorm'; import { SnakeNamingStrategy } from './SnakeNamingStrategy'; import { logger } from '../core/logger'; +import { PostgresConnectionOptions } from 'typeorm/driver/postgres/PostgresConnectionOptions'; -export const REPLICA_CONNECTION_NAME = 'replica'; +export type WarthogDBConnectionOptions = PostgresConnectionOptions; // TODO: Need to figure out a way for this and the generated ormconfig to be one and the same -export function getBaseConfig() { - return { +export function getBaseConfig(): WarthogDBConnectionOptions { + const config: PostgresConnectionOptions = { cli: { entitiesDir: process.env.WARTHOG_DB_ENTITIES_DIR, migrationsDir: process.env.WARTHOG_DB_MIGRATIONS_DIR, @@ -16,36 +17,20 @@ export function getBaseConfig() { database: process.env.WARTHOG_DB_DATABASE!, // eslint-disable-line @typescript-eslint/no-non-null-assertion entities: getDatabaseEntityPaths(), host: process.env.WARTHOG_DB_HOST!, // eslint-disable-line @typescript-eslint/no-non-null-assertion - logger: process.env.WARTHOG_DB_LOGGER, - logging: process.env.WARTHOG_DB_LOGGING!, // eslint-disable-line @typescript-eslint/no-non-null-assertion + logger: process.env.WARTHOG_DB_LOGGER as any, + logging: process.env.WARTHOG_DB_LOGGING! as any, // eslint-disable-line @typescript-eslint/no-non-null-assertion migrations: getDatabaseMigrationPaths(), namingStrategy: new SnakeNamingStrategy(), password: process.env.WARTHOG_DB_PASSWORD, port: parseInt(process.env.WARTHOG_DB_PORT || '', 10), subscribers: getDatabaseSubscriberPaths(), synchronize: process.env.WARTHOG_DB_SYNCHRONIZE === 'true', - type: process.env.WARTHOG_DB_CONNECTION!, // eslint-disable-line @typescript-eslint/no-non-null-assertion + type: 'postgres', username: process.env.WARTHOG_DB_USERNAME }; -} -export function getBaseReplicatedConfig() { - return { - cli: { - entitiesDir: process.env.WARTHOG_DB_ENTITIES_DIR, - migrationsDir: process.env.WARTHOG_DB_MIGRATIONS_DIR, - subscribersDir: process.env.WARTHOG_DB_SUBSCRIBERS_DIR - }, - entities: getDatabaseEntityPaths(), - logger: process.env.WARTHOG_DB_LOGGER, - logging: process.env.WARTHOG_DB_LOGGING!, // eslint-disable-line @typescript-eslint/no-non-null-assertion - migrations: getDatabaseMigrationPaths(), - namingStrategy: new SnakeNamingStrategy(), - subscribers: getDatabaseSubscriberPaths(), - synchronize: process.env.WARTHOG_DB_SYNCHRONIZE === 'true', - type: process.env.WARTHOG_DB_CONNECTION!, // eslint-disable-line @typescript-eslint/no-non-null-assertion - database: process.env.WARTHOG_DB_DATABASE!, // eslint-disable-line @typescript-eslint/no-non-null-assertion - replication: { + if (process.env.WARTHOG_DB_REPLICA_HOST) { + (config as any).replication = { master: { host: process.env.WARTHOG_DB_HOST!, // eslint-disable-line @typescript-eslint/no-non-null-assertion port: parseInt(process.env.WARTHOG_DB_PORT || '', 10), @@ -57,13 +42,15 @@ export function getBaseReplicatedConfig() { { host: process.env.WARTHOG_DB_REPLICA_HOST, port: parseInt(process.env.WARTHOG_DB_REPLICA_PORT || '', 10), - username: process.env.WARTHOG_DB_USERNAME, - password: process.env.WARTHOG_DB_PASSWORD, - database: process.env.WARTHOG_DB_DATABASE! // eslint-disable-line @typescript-eslint/no-non-null-assertion + username: process.env.WARTHOG_DB_REPLICA_USERNAME, + password: process.env.WARTHOG_DB_REPLICA_PASSWORD, + database: process.env.WARTHOG_DB_REPLICA_DATABASE! // eslint-disable-line @typescript-eslint/no-non-null-assertion } ] - } - }; + }; + } + + return config; } // Note: all DB options should be specified by environment variables @@ -85,29 +72,6 @@ export const createDBConnection = async ( return createConnection(config as any); // TODO: fix any. It is complaining about `type` }; -// Note: all DB options should be specified by environment variables -// Either using TYPEORM_ or WARTHOG_DB_ -export const createReplicatedDBConnection = async ( - dbOptions: Partial = {} -): Promise => { - const config = { - ...getBaseReplicatedConfig(), - ...dbOptions - }; - - if (!config.replication.master.database) { - throw new Error("createReplicatedDBConnection: 'database' is required on the master config"); - } - - if (!config.replication.slaves[0].database) { - throw new Error("createReplicatedDBConnection: 'database' is required on the slave config"); - } - - logger.debug('createReplicatedDBConnection', JSON.stringify(config)); - - return createConnection(config as any); // TODO: fix any. It is complaining about `type` -}; - function getDatabaseEntityPaths(): string[] { return process.env.WARTHOG_DB_ENTITIES ? process.env.WARTHOG_DB_ENTITIES.split(',') diff --git a/yarn.lock b/yarn.lock index 29b655e0..0bbf6106 100644 --- a/yarn.lock +++ b/yarn.lock @@ -678,7 +678,7 @@ "@sqltools/formatter@1.2.2": version "1.2.2" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/@sqltools/formatter/-/formatter-1.2.2.tgz#9390a8127c0dcba61ebd7fdcc748655e191bdd68" + resolved "https://registry.yarnpkg.com/@sqltools/formatter/-/formatter-1.2.2.tgz#9390a8127c0dcba61ebd7fdcc748655e191bdd68" integrity sha1-k5CoEnwNy6YevX/cx0hlXhkb3Wg= "@types/accepts@*", "@types/accepts@^1.3.5": @@ -1840,7 +1840,7 @@ balanced-match@^1.0.0: base64-js@^1.3.1: version "1.5.1" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha1-GxtEAWClv3rUC2UPCVljSBkDkwo= base@^0.11.1: @@ -2003,7 +2003,7 @@ buffer-writer@2.0.0: buffer@^5.5.0: version "5.7.1" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" integrity sha1-umLnwTEzBTWCGXFghRqPZI6Z7tA= dependencies: base64-js "^1.3.1" @@ -2198,7 +2198,7 @@ chalk@^3.0.0: chalk@^4.0.0, chalk@^4.1.0: version "4.1.0" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" integrity sha1-ThSHCmGNni7dl92DRf2dncMVZGo= dependencies: ansi-styles "^4.1.0" @@ -2304,7 +2304,7 @@ cli-cursor@^3.1.0: cli-highlight@^2.1.10: version "2.1.10" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/cli-highlight/-/cli-highlight-2.1.10.tgz#26a087da9209dce4fcb8cf5427dc97cd96ac173a" + resolved "https://registry.yarnpkg.com/cli-highlight/-/cli-highlight-2.1.10.tgz#26a087da9209dce4fcb8cf5427dc97cd96ac173a" integrity sha1-JqCH2pIJ3OT8uM9UJ9yXzZasFzo= dependencies: chalk "^4.0.0" @@ -2387,7 +2387,7 @@ cliui@^6.0.0: cliui@^7.0.2: version "7.0.4" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" integrity sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08= dependencies: string-width "^4.2.0" @@ -3243,7 +3243,7 @@ es6-promisify@^5.0.0: escalade@^3.1.1: version "3.1.1" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA= escape-html@~1.0.3: @@ -3985,7 +3985,7 @@ get-caller-file@^1.0.1: get-caller-file@^2.0.1, get-caller-file@^2.0.5: version "2.0.5" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34= get-own-enumerable-property-symbols@^3.0.0: @@ -4414,7 +4414,7 @@ has@^1.0.3: highlight.js@^10.0.0: version "10.6.0" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/highlight.js/-/highlight.js-10.6.0.tgz#0073aa71d566906965ba6e1b7be7b2682f5e18b6" + resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.6.0.tgz#0073aa71d566906965ba6e1b7be7b2682f5e18b6" integrity sha1-AHOqcdVmkGllum4be+eyaC9eGLY= hook-std@^2.0.0: @@ -4539,7 +4539,7 @@ iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@^0.4.4, iconv-lite@~0.4.13: ieee754@^1.1.13: version "1.2.1" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha1-jrehCmP/8l0VpXsAFYbRd9Gw01I= iferr@^0.1.5: @@ -5514,7 +5514,7 @@ js-yaml@^3.13.1: js-yaml@^3.14.0: version "3.14.1" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" integrity sha1-2ugS/bOCX6MGYJqHFzg8UMNqBTc= dependencies: argparse "^1.0.7" @@ -7580,7 +7580,7 @@ parse-json@^5.0.0: parse5-htmlparser2-tree-adapter@^6.0.0: version "6.0.1" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz#2cdf9ad823321140370d4dbf5d3e92c7c8ddc6e6" + resolved "https://registry.yarnpkg.com/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz#2cdf9ad823321140370d4dbf5d3e92c7c8ddc6e6" integrity sha1-LN+a2CMyEUA3DU2/XT6Sx8jdxuY= dependencies: parse5 "^6.0.1" @@ -7592,12 +7592,12 @@ parse5@4.0.0: parse5@^5.1.1: version "5.1.1" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/parse5/-/parse5-5.1.1.tgz#f68e4e5ba1852ac2cadc00f4555fff6c2abb6178" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.1.tgz#f68e4e5ba1852ac2cadc00f4555fff6c2abb6178" integrity sha1-9o5OW6GFKsLK3AD0VV//bCq7YXg= parse5@^6.0.1: version "6.0.1" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" integrity sha1-4aHAhcVps9wIMhGE8Zo5zCf3wws= parseurl@^1.3.2, parseurl@~1.3.3: @@ -9718,7 +9718,7 @@ tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: tslib@^1.13.0: version "1.14.1" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA= tsutils@^3.17.1: @@ -9802,7 +9802,7 @@ typeorm-typedi-extensions@^0.2.3: typeorm@^0.2.31: version "0.2.31" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/typeorm/-/typeorm-0.2.31.tgz#82b8a1b233224f81c738f53b0380386ccf360917" + resolved "https://registry.yarnpkg.com/typeorm/-/typeorm-0.2.31.tgz#82b8a1b233224f81c738f53b0380386ccf360917" integrity sha1-grihsjMiT4HHOPU7A4A4bM82CRc= dependencies: "@sqltools/formatter" "1.2.2" @@ -10194,7 +10194,7 @@ wrap-ansi@^6.2.0: wrap-ansi@^7.0.0: version "7.0.0" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM= dependencies: ansi-styles "^4.0.0" @@ -10257,7 +10257,7 @@ xml-name-validator@^3.0.0: xml2js@^0.4.23: version "0.4.23" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/xml2js/-/xml2js-0.4.23.tgz#a0c69516752421eb2ac758ee4d4ccf58843eac66" + resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.23.tgz#a0c69516752421eb2ac758ee4d4ccf58843eac66" integrity sha1-oMaVFnUkIesqx1juTUzPWIQ+rGY= dependencies: sax ">=0.6.0" @@ -10290,7 +10290,7 @@ y18n@^3.2.1: y18n@^5.0.5: version "5.0.5" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/y18n/-/y18n-5.0.5.tgz#8769ec08d03b1ea2df2500acef561743bbb9ab18" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.5.tgz#8769ec08d03b1ea2df2500acef561743bbb9ab18" integrity sha1-h2nsCNA7HqLfJQCs71YXQ7u5qxg= yallist@^2.1.2: @@ -10368,7 +10368,7 @@ yargs-parser@^18.1.2: yargs-parser@^20.2.2: version "20.2.4" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" integrity sha1-tCiQ8UVmeW+Fro46JSkNIF8VSlQ= yargs-parser@^3.2.0: @@ -10481,7 +10481,7 @@ yargs@^15.3.1: yargs@^16.0.0, yargs@^16.0.3: version "16.2.0" - resolved "https://indigoag.jfrog.io/indigoag/api/npm/npm/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" integrity sha1-HIK/D2tqZur85+8w43b0mhJHf2Y= dependencies: cliui "^7.0.2"