diff --git a/flow-libs/atom.js.flow b/flow-libs/atom.js.flow index 8cd4bcdf..00cdeb02 100644 --- a/flow-libs/atom.js.flow +++ b/flow-libs/atom.js.flow @@ -54,6 +54,13 @@ type atom$Octicon = 'alert' | 'alignment-align' | 'alignment-aligned-to' | 'alig type atom$PaneLocation = 'left' | 'right' | 'bottom' | 'center'; +declare type atom$Color = { + // Returns a String in the form '#abcdef'. + toHexString(): string; + // Returns a String in the form 'rgba(25, 50, 75, .9)'. + toRGBAString(): string; +} + declare class atom$Model { destroy(): void, isDestroyed(): boolean, @@ -63,6 +70,7 @@ declare class atom$Package { path: string, activateTime: number, mainModule: any, + mainModulePath: string, metadata: Object, name: string, loadTime: number, @@ -75,6 +83,7 @@ declare class atom$Package { // Undocumented bundledPackage: boolean, getCanDeferMainModuleRequireStorageKey(): string, + initializeIfNeeded(): void, } /** @@ -143,14 +152,20 @@ declare class atom$Config { // Config Subscription observe( keyPath: string, - optionsOrCallback?: Object | (value: any) => void, - callback?: (value: any) => void + optionsOrCallback?: + | {scope?: atom$ScopeDescriptorLike} + | (value: mixed) => void, + callback?: (value: mixed) => mixed, ): IDisposable, onDidChange( - keyPathOrCallback: string | (event: Object) => void, - optionsOrCallback?: Object | (event: Object) => void, - callback?: (event: Object) => void + keyPathOrCallback: + | string + | (event: {oldValue: mixed, newValue: mixed}) => mixed, + optionsOrCallback?: + | {scope?: atom$ScopeDescriptorLike} + | (event: {oldValue: mixed, newValue: mixed}) => mixed, + callback?: (event: {oldValue: mixed, newValue: mixed}) => mixed ): IDisposable, // Managing Settings @@ -159,7 +174,7 @@ declare class atom$Config { options?: { excludeSources?: Array, sources?: Array, - scope?: Object, + scope?: atom$ScopeDescriptorLike, } ): mixed, @@ -229,7 +244,7 @@ declare class atom$Decoration { destroy(): void, onDidChangeProperties( callback: (event: {oldProperties: Object, newProperties: Object}) => mixed - ): IDisposable, + ): IDisposable, onDidDestroy(callback: () => mixed): IDisposable, getMarker(): atom$Marker, getProperties(): Object, @@ -241,18 +256,29 @@ declare class atom$DisplayMarkerLayer { clear(): void, isDestroyed(): boolean, markBufferPosition(position: atom$PointLike, options?: MarkerOptions): atom$Marker, - markBufferRange(range: atom$Range | atom$RangeLike, options: MarkerOptions): atom$Marker, + markBufferRange(range: atom$Range | atom$RangeLike, options?: MarkerOptions): atom$Marker, + findMarkers(options: MarkerOptions): Array, getMarkers(): Array, } +declare class atom$LayerDecoration { + destroy(): void, + isDestroyed(): boolean, + getProperties(): Object, + setProperties(properties: mixed): void, + setPropertiesForMarker(marker: atom$Marker, properties: mixed): void, +} + declare class atom$Disposable { constructor(disposalAction?: (...args: Array) => any): void, + disposed: boolean, dispose(): void, } declare class atom$Emitter { dispose(): void, on(name: string, callback: (v: any) => mixed): IDisposable, + once(name: string, callback: (v: any) => mixed): IDisposable, preempt(name: string, callback: (v: any) => void): IDisposable, // This is a flow hack to prevent emitting more than one value. // `EventEmitter` allows emitting any number of values - making this a land @@ -319,12 +345,15 @@ type atom$PackageMetadata = { }; declare class atom$PackageManager { + +initialPackagesActivated: boolean, + // Event Subscription onDidLoadInitialPackages(callback: () => void): IDisposable, onDidActivateInitialPackages(callback: () => void): IDisposable, onDidActivatePackage(callback: (pkg: atom$Package) => mixed): IDisposable, onDidDeactivatePackage(callback: (pkg: atom$Package) => mixed): IDisposable, onDidLoadPackage(callback: (pkg: atom$Package) => mixed): IDisposable, + onDidUnloadPackage(callback: (pkg: atom$Package) => mixed): IDisposable, onDidTriggerActivationHook(activationHook: string, callback: () => mixed): IDisposable, // Package system data @@ -443,7 +472,7 @@ declare class atom$Pane { onDidAddItem(cb: (event: {item: Object, index: number}) => void): IDisposable, onDidRemoveItem(cb: (event: {item: Object, index: number}) => void): IDisposable, onWillRemoveItem(cb: (event: {item: Object, index: number}) => void): IDisposable, - onDidDestroy(cb: () => void): IDisposable, + onDidDestroy(cb: () => mixed): IDisposable, onDidChangeFlexScale(cb: (newFlexScale: number) => void): IDisposable, onWillDestroy(cb: () => void): IDisposable, observeActiveItem(cb: (item: ?Object) => void): IDisposable, @@ -452,6 +481,7 @@ declare class atom$Pane { isActive(): boolean, activate(): void, destroy(): void, + isDestroyed(): void, // Splitting splitLeft(params?: atom$PaneSplitParams): atom$Pane, @@ -505,11 +535,11 @@ declare class atom$PaneAxis { // are typed here as AbstractPaneContainers and, in the current implementation, wrap these.) declare class atom$PaneContainer { constructor({ - config: atom$Config, - applicationDelegate: atom$applicationDelegate, - notificationManager: atom$NotificationManager, - deserializerManager: atom$DeserializerManager, - }): atom$PaneContainer, + config: atom$Config, + applicationDelegate: atom$applicationDelegate, + notificationManager: atom$NotificationManager, + deserializerManager: atom$DeserializerManager, + }): atom$PaneContainer, destroy(): void, getActivePane(): atom$Pane, getActivePaneItem(): ?Object, @@ -546,8 +576,8 @@ declare class atom$Panel { type atom$PointObject = {row: number, column: number}; type atom$PointLike = atom$Point -| [number, number] -| atom$PointObject; + | [number, number] + | atom$PointObject; declare class atom$Point { static fromObject(object: atom$PointLike, copy: ? boolean): atom$Point, @@ -583,9 +613,9 @@ type atom$RangeLike = atom$Range | atom$RangeObject // TODO: Flow doesn't really handle the real signature below... | [atom$PointLike, atom$PointLike] | { - start: atom$PointLike, - end: atom$PointLike, - }; + start: atom$PointLike, + end: atom$PointLike, +}; declare class atom$Range { static fromObject( @@ -624,6 +654,8 @@ declare class atom$ScopeDescriptor { getScopesArray(): Array, } +type atom$ScopeDescriptorLike = atom$ScopeDescriptor | Array; + /** * This API is defined at https://github.com/atom/status-bar. */ @@ -694,6 +726,7 @@ type atom$TooltipsAddOptions = { }; type atom$Tooltip = { + show(): void; hide(): void; getTooltipElement(): HTMLElement, }; @@ -704,6 +737,7 @@ declare class atom$TooltipManager { target: HTMLElement, options: atom$TooltipsAddOptions, ): IDisposable, + findTooltips(HTMLElement): Array, } type InsertTextOptions = { @@ -759,7 +793,7 @@ type MarkerOptions = { exclusive?: boolean, }; -type ChangeSelectionRangeEvent = {| +type atom$ChangeSelectionRangeEvent = {| oldBufferRange: atom$Range, oldScreenRange: atom$Range, newBufferRange: atom$Range, @@ -782,11 +816,11 @@ declare class atom$TextEditor extends atom$Model { getBuffer(): atom$TextBuffer, observeGrammar(callback: (grammar: atom$Grammar) => mixed): IDisposable, onWillInsertText(callback: (event: {cancel: () => void, text: string}) => void): - IDisposable, + IDisposable, // Note that the range property of the event is undocumented. onDidInsertText(callback: (event: {text: string, range: atom$Range}) => mixed): IDisposable, onDidChangeSoftWrapped(callback: (softWrapped: boolean) => mixed): IDisposable, - onDidChangeSelectionRange(callback: (event: ChangeSelectionRangeEvent) => mixed): IDisposable, + onDidChangeSelectionRange(callback: (event: atom$ChangeSelectionRangeEvent) => mixed): IDisposable, observeSelections(callback: (selection: atom$Selection) => mixed): IDisposable, // File Details @@ -824,7 +858,7 @@ declare class atom$TextEditor extends atom$Model { // Mutating Text setText(text: string, options?: InsertTextOptions): void, setTextInBufferRange( - range: atom$Range | Array, + range: atom$RangeLike, text: string, options?: { normalizeLineEndings?: boolean, @@ -869,6 +903,10 @@ declare class atom$TextEditor extends atom$Model { // Decorations decorateMarker(marker: atom$Marker, decorationParams: DecorateMarkerParams): atom$Decoration, + decorateMarkerLayer( + markerLayer: atom$DisplayMarkerLayer, + decorationParams: DecorateMarkerParams, + ): atom$LayerDecoration, decorationsForScreenRowRange( startScreenRow: number, endScreenRow: number, @@ -932,6 +970,7 @@ declare class atom$TextEditor extends atom$Model { preserveFolds?: boolean, }, ): void, + selectWordsContainingCursors(): void, // Folds unfoldAll(): void, @@ -979,6 +1018,7 @@ declare class atom$TextEditor extends atom$Model { copySelectedText: () => void, // Managing Syntax Scopes + getRootScopeDescriptor(): atom$ScopeDescriptor, scopeDescriptorForBufferPosition( bufferPosition: atom$PointLike, ): atom$ScopeDescriptor, @@ -1032,6 +1072,7 @@ declare class atom$TextEditor extends atom$Model { serialize(): Object, foldBufferRowRange(startRow: number, endRow: number): void, getNonWordCharacters(position?: atom$PointLike): string, + scheduleComponentUpdate(): void, } /** @@ -1345,6 +1386,13 @@ declare class atom$WorkspaceCenter extends atom$AbstractPaneContainer { observeActivePaneItem(callback: atom$PaneItem => mixed): IDisposable; onDidChangeActivePaneItem(callback: (item: mixed) => mixed): IDisposable; + onDidAddTextEditor( + callback: (item: { + textEditor: atom$TextEditor, + pane: atom$Pane, + index: number, + }) => mixed, + ): IDisposable; // This should be removed soon anyway, it's currently deprecated. paneContainer: Object; } @@ -1596,6 +1644,7 @@ declare class atom$KeymapManager { // Adding and Removing Bindings add(source: string, bindings: Object): IDisposable, + removeBindingsFromSource(source: string): void, // Accessing Bindings getKeyBindings(): Array, @@ -1634,16 +1683,19 @@ declare class atom$MenuManager { template: Array, } +type atom$ProjectSpecification = { + originPath: string, + paths?: Array, + config?: {[string]: mixed} +}; + declare class atom$Project { // Event Subscription onDidChangePaths(callback: (projectPaths: Array) => mixed): IDisposable, onDidAddBuffer(callback: (buffer: atom$TextBuffer) => mixed): IDisposable, + onDidReplace((settings: atom$ProjectSpecification) => mixed): IDisposable, observeBuffers(callback: (buffer: atom$TextBuffer) => mixed): IDisposable, - replace?: (newSettings: {| - originPath?: string, - paths?: Array, - config?: {[string]: mixed} - |}) => void, + replace?: (newSettings: atom$ProjectSpecification) => void, // Accessing the git repository getRepositories(): Array, repositoryForDirectory(directory: atom$Directory): Promise, @@ -1833,6 +1885,7 @@ declare class atom$Notification { getMessage(): string, getOptions(): Object, dismiss(): void, + isDismissed(): boolean, } type atom$NotificationButton = { @@ -1846,6 +1899,7 @@ type atom$NotificationOptions = { dismissable?: boolean, description?: string, icon?: string, + stack?: string, buttons?: Array, }; @@ -1989,6 +2043,7 @@ declare class atom$Repository { getType: () => string, getPath: () => string, getWorkingDirectory: () => string, + getProjectDirectory: () => string, isProjectAtRoot: () => boolean, relativize: (aPath: string) => string, getOriginURL: (aPath: ?string) => ?string, @@ -2041,13 +2096,14 @@ type atom$AutocompleteSuggestion = { className?: ?string, iconHTML?: ?string, description?: ?string, + descriptionMarkdown?: ?string, descriptionMoreURL?: ?string, }; type atom$AutocompleteRequest = { editor: TextEditor, bufferPosition: atom$Point, - scopeDescriptor: string, + scopeDescriptor: atom$ScopeDescriptor, prefix: string, activatedManually?: boolean, }; @@ -2077,6 +2133,12 @@ type atom$SuggestionInsertedRequest = { +suggestion: atom$AutocompleteSuggestion, }; +// https://github.com/atom/autocomplete-plus/blob/master/README.md#the-watcheditor-api +type atom$AutocompleteWatchEditor = ( + editor: atom$TextEditor, + labels?: Array, +) => IDisposable; + // Undocumented API. declare class atom$Token { value: string, diff --git a/flow-libs/electron.js.flow b/flow-libs/electron.js.flow index 4dd1270a..45569bc7 100644 --- a/flow-libs/electron.js.flow +++ b/flow-libs/electron.js.flow @@ -170,8 +170,8 @@ type electron$BrowserWindowOptions = { darkTheme?: boolean, transparent?: boolean, type?: 'desktop' | 'dock' | 'toolbar' | 'splash' | 'notification' | - /* macOS */ 'desktop' | 'textured' | - /* Windows */ 'toolbar', + /* macOS */ 'desktop' | 'textured' | + /* Windows */ 'toolbar', titleBarStyle?: 'default' | 'hidden' | 'hidden-inset', thickFrame?: boolean, webPreferences?: electron$BrowserWindowWebPreferences, @@ -343,7 +343,7 @@ declare class electron$BrowserWindow { click: Function, tooltip?: string, flags?: Array<'enabled' | 'disabled' | 'dismissonclick' | 'nobackground' | - 'hidden' | 'noninteractive'>, + 'hidden' | 'noninteractive'>, }>): void, // Windows setThumbnailClip(region: electron$rect): void, // Windows showDefinitionForSelection(): void, // macOS @@ -461,7 +461,7 @@ type electron$globalShortcut = { * https://github.com/electron/electron/blob/master/docs/api/ipc-main.md */ -declare class electron$IpcMain {} +declare class electron$IpcMain extends events$EventEmitter {} /** * https://github.com/electron/electron/blob/master/docs/api/menu.md @@ -472,13 +472,16 @@ declare class electron$Menu { static getApplicationMenu(): ?electron$Menu, static sendActionToFirstResponder(action: string): void, static buildFromTemplate(templates: Array): electron$Menu, - popup( - browserWindow: electron$BrowserWindow, - x?: number, - y?: number, - positioningItem?: number, - ): void, - popup(x?: number, y?: number, positioningItem?: number): void, + popup({| + window?: electron$BrowserWindow, + x?: number, + y?: number, + positioningItem?: number, + callback?: Function, + // Note: this is always true in Electron 2.0+. + async?: boolean, + |}): void, + closePopup(window?: electron$BrowserWindow): void, append(menuItem: electron$MenuItem): void, insert(pos: number, menuItem: electron$MenuItem): void, items: Array, @@ -495,10 +498,10 @@ type electron$MenuItemOptions = { event: Object ) => void, role?: 'undo' | 'redo' | 'cut' | 'copy' | 'paste' | 'pasteandmatchstyle' | - 'selectall' | 'delete' | 'minimize' | 'close' | 'quit' | 'togglefullscreen' | - // macOS-only - 'about' | 'hide' | 'hideothers' | 'unhide' | 'front' | 'zoom' | 'window' | - 'help' | 'services', + 'selectall' | 'delete' | 'minimize' | 'close' | 'quit' | 'togglefullscreen' | + // macOS-only + 'about' | 'hide' | 'hideothers' | 'unhide' | 'front' | 'zoom' | 'window' | + 'help' | 'services', type?: 'normal' | 'separator' | 'submenu' | 'checkbox' | 'radio', label?: string, sublabel?: string, @@ -561,8 +564,8 @@ declare class electron$Tray {} type electron$InputEventModifiers = Array<'shift' | 'control' | 'alt' | 'meta' | - 'isKeypad' | 'isAutoRepeat' | 'leftButtonDown' | 'middleButtonDown' | - 'rightButtonDown' | 'capsLock' | 'numLock' | 'left' | 'right'>; + 'isKeypad' | 'isAutoRepeat' | 'leftButtonDown' | 'middleButtonDown' | + 'rightButtonDown' | 'capsLock' | 'numLock' | 'left' | 'right'>; declare class electron$WebContents extends events$EventEmitter { loadURL( @@ -669,36 +672,36 @@ declare class electron$WebContents extends events$EventEmitter { modifiers?: electron$InputEventModifiers, keyCode: string, } | { - type: 'mouseDown' | 'mouseUp' | 'mouseEnter' | 'mouseLeave' | 'contextMenu', - modifiers?: electron$InputEventModifiers, - x: number, - y: number, - button: 'left' | 'middle' | 'right', - globalX: number, - globalY: number, - movementX: number, - movementY: number, - clickCount: number, - } | { - type: 'mouseWheel', - modifiers?: electron$InputEventModifiers, - x: number, - y: number, - button: 'left' | 'middle' | 'right', - globalX: number, - globalY: number, - movementX: number, - movementY: number, - clickCount: number, - deltaX: number, - deltaY: number, - wheelTicksX: number, - wheelTicksY: number, - accelerationRatioX: number, - accelerationRatioY: number, - hasPreciseScrollingDeltas: boolean, - canScroll: boolean, - }, + type: 'mouseDown' | 'mouseUp' | 'mouseEnter' | 'mouseLeave' | 'contextMenu', + modifiers?: electron$InputEventModifiers, + x: number, + y: number, + button: 'left' | 'middle' | 'right', + globalX: number, + globalY: number, + movementX: number, + movementY: number, + clickCount: number, + } | { + type: 'mouseWheel', + modifiers?: electron$InputEventModifiers, + x: number, + y: number, + button: 'left' | 'middle' | 'right', + globalX: number, + globalY: number, + movementX: number, + movementY: number, + clickCount: number, + deltaX: number, + deltaY: number, + wheelTicksX: number, + wheelTicksY: number, + accelerationRatioX: number, + accelerationRatioY: number, + hasPreciseScrollingDeltas: boolean, + canScroll: boolean, + }, ): void, beginFrameSubscription( callback: (frameBuffer: Buffer, dirtyRect: electron$rect) => void, @@ -771,6 +774,7 @@ declare class electron$IpcRenderer { removeAllListeners(channel?: string): electron$IpcRenderer, send(channel: string, ...args: Array): void, sendSync(channel: string, ...args: Array): void, + sendTo(windowId: number, channel: string, ...args: Array): void, sendToHost(channel: string, ...args: Array): void, } @@ -849,10 +853,6 @@ declare class electron$NativeImage { getSize(): {width: number, height: number}, setTemplateImage(option: boolean): void, isTemplateImage(): boolean, - // Deprecated, but Atom is behind - so keep them around. - toPng(): Uint8Array, - toJpeg(quality: number): Uint8Array, - toDataUrl(): string, } /** @@ -871,7 +871,7 @@ type electron$Display = { }; type electron$DisplayEvents = - 'display-added' + 'display-added' | 'display-removed' | 'display-metrics-changed'; diff --git a/flow-libs/vscode-jsonrpc.js.flow b/flow-libs/vscode-jsonrpc.js.flow new file mode 100644 index 00000000..ae22cbaf --- /dev/null +++ b/flow-libs/vscode-jsonrpc.js.flow @@ -0,0 +1,947 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the license found in the LICENSE file in + * the root directory of this source tree. + * + * @flow + * @format + */ + +// From https://github.com/Microsoft/vscode-languageserver-node/blob/master/jsonrpc/src/main.ts +// For v3.3.0 +// TODO: Contribute this back to flow-typed. + +declare module 'vscode-jsonrpc' { + // thenable.d.ts + + declare type Thenable = Promise; + + // events.d.ts + + declare export interface Disposable { + /** + * Dispose this object. + */ + dispose(): void; + } + + // declare var Disposable: { + // create(func: () => void): Disposable; + // } + /** + * Represents a typed event. + */ + declare export interface Event { + /** + * + * @param listener The listener function will be call when the event happens. + * @param thisArgs The 'this' which will be used when calling the event listener. + * @param disposables An array to which a {{IDisposable}} will be added. The + * @return + */ + ( + listener: (e: T) => any, + thisArgs?: any, + disposables?: Disposable[], + ): Disposable; + } + // declare export namespace Event = { + // const None: Event; + // } + declare export interface EmitterOptions { + onFirstListenerAdd?: Function; + onLastListenerRemove?: Function; + } + declare export class Emitter { + // private _options; + // private static _noop; + // private _event; + // private _callbacks; + constructor(_options?: EmitterOptions): void; + /** + * For the public to allow to subscribe + * to events from this Emitter + */ + +event: Event; + /** + * To be kept private to fire an event to + * subscribers + */ + fire(event: T): any; + dispose(): void; + } + + // cancellation.d.ts + + /** + * Defines a CancellationToken. This interface is not + * intended to be implemented. A CancellationToken must + * be created via a CancellationTokenSource. + */ + declare export interface CancellationToken { + /** + * Is `true` when the token has been cancelled, `false` otherwise. + */ + +isCancellationRequested: boolean; + /** + * An [event](#Event) which fires upon cancellation. + */ + +onCancellationRequested: Event; + } + // declare export namespace CancellationToken { + // const None: CancellationToken; + // const Cancelled: CancellationToken; + // is(value: any): boolean; + // } + declare export class CancellationTokenSource { + // private _token; + +token: CancellationToken; + cancel(): void; + dispose(): void; + } + + // messages.d.ts + + /** + * A language server message + */ + declare export interface Message { + jsonrpc: string; + } + /** + * Request message + */ + declare export interface RequestMessage extends Message { + /** + * The request id. + */ + id: number | string; + /** + * The method to be invoked. + */ + method: string; + /** + * The method's params. + */ + params?: any; + } + /** + * Predefined error codes. + */ + declare export var ErrorCodes: { + ParseError: number, + InvalidRequest: number, + MethodNotFound: number, + InvalidParams: number, + InternalError: number, + serverErrorStart: number, + serverErrorEnd: number, + ServerNotInitialized: number, + UnknownErrorCode: number, + RequestCancelled: number, + MessageWriteError: number, + MessageReadError: number, + }; + declare export interface ResponseErrorLiteral { + /** + * A number indicating the error type that occured. + */ + code: number; + /** + * A string providing a short decription of the error. + */ + message: string; + /** + * A Primitive or Structured value that contains additional + * information about the error. Can be omitted. + */ + data?: D; + } + /** + * A error object return in a response in case a request + * has failed. + */ + declare export class ResponseError extends Error { + +code: number; + +data: D; + constructor(code: number, message: string, data?: D): void; + toJson(): ResponseErrorLiteral; + } + /** + * A response message. + */ + declare export interface ResponseMessage extends Message { + /** + * The request id. + */ + id: number | string | null; + /** + * The result of a request. This can be omitted in + * the case of an error. + */ + result?: any; + /** + * The error object in case a request fails. + */ + error?: ResponseErrorLiteral; + } + /** + * An interface to type messages. + */ + declare export interface MessageType { + +method: string; + +numberOfParams: number; + } + /** + * An abstract implementation of a MessageType. + */ + declare class AbstractMessageType { + // private _method; + // private _numberOfParams; + constructor(_method: string, _numberOfParams: number): void; + +method: string; + +numberOfParams: number; + } + /** + * End marker interface for request and notification types. + */ + declare interface _EM { + _$endMarker$_: number; + } + /** + * Classes to type request response pairs + */ + declare export type RequestType0 = { + // private _?; + +method: string, + }; + declare export type RequestType = { + // private _?; + +method: string, + }; + declare export type RequestType1 = { + // private _?; + +method: string, + }; + declare export type RequestType2 = { + // private _?; + +method: string, + }; + declare export type RequestType3 = { + // private _?; + +method: string, + }; + declare export type RequestType4 = { + // private _?; + +method: string, + }; + declare export type RequestType5 = { + // private _?; + +method: string, + }; + declare export type RequestType6 = { + // private _?; + +method: string, + }; + declare export type RequestType7 = { + // private _?; + +method: string, + }; + declare export type RequestType8 = { + // private _?; + +method: string, + }; + declare export type RequestType9< + P1, + P2, + P3, + P4, + P5, + P6, + P7, + P8, + P9, + R, + E, + RO, + > = { + // private _?; + +method: string, + }; + /** + * Notification Message + */ + declare interface NotificationMessage extends Message { + /** + * The method to be invoked. + */ + method: string; + /** + * The notification's params. + */ + params?: any; + } + declare export type NotificationType = { + // private _?; + +method: string, + }; + declare export type NotificationType0 = { + // private _?; + +method: string, + }; + declare export type NotificationType1 = { + // private _?; + +method: string, + }; + declare export type NotificationType2 = { + // private _?; + +method: string, + }; + declare export type NotificationType3 = { + // private _?; + +method: string, + }; + declare export type NotificationType4 = { + // private _?; + +method: string, + }; + declare export type NotificationType5 = { + // private _?; + +method: string, + }; + declare export type NotificationType6 = { + // private _?; + +method: string, + }; + declare export type NotificationType7 = { + // private _?; + +method: string, + }; + declare export type NotificationType8 = { + // private _?; + +method: string, + }; + declare export type NotificationType9< + P1, + P2, + P3, + P4, + P5, + P6, + P7, + P8, + P9, + RO, + > = { + // private _?; + +method: string, + }; + /** + * Tests if the given message is a request message + */ + declare function isRequestMessage(message: Message | void): boolean; + /** + * Tests if the given message is a notification message + */ + declare function isNotificationMessage(message: Message | void): boolean; + /** + * Tests if the given message is a response message + */ + declare function isReponseMessage(message: Message | void): boolean; + + // messageReader.d.ts + + declare export interface DataCallback { + (data: Message): void; + } + declare export interface PartialMessageInfo { + +messageToken: number; + +waitingTime: number; + } + declare export interface MessageReader { + +onError: Event; + +onClose: Event; + +onPartialMessage: Event; + listen(callback: DataCallback): void; + dispose(): void; + } + declare class AbstractMessageReader { + // private errorEmitter; + // private closeEmitter; + // private partialMessageEmitter; + constructor(): void; + dispose(): void; + +onError: Event; + /* protected */ fireError(error: any): void; + +onClose: Event; + /* protected */ fireClose(): void; + +onPartialMessage: Event; + /* protected */ firePartialMessage(info: PartialMessageInfo): void; + /* private */ asError(error: any): any; + } + declare export class StreamMessageReader extends AbstractMessageReader { + readable: stream$Readable; + // private callback; + // private buffer; + // private nextMessageLength; + // private messageToken; + // private partialMessageTimer; + // private _partialMessageTimeout; + constructor(readable: stream$Readable, encoding?: string): void; + partialMessageTimeout: number; + listen(callback: DataCallback): void; + /* private */ onData(data: any): any; + // private clearPartialMessageTimer(); + // private setPartialMessageTimer(); + } + declare export class IPCMessageReader extends AbstractMessageReader { + // private process; + constructor(process: Process | child_process$ChildProcess): void; + listen(callback: DataCallback): void; + } + declare export class SocketMessageReader extends StreamMessageReader { + constructor(socket: net$Socket, encoding?: string): void; + } + + // messageWriter.d.ts + + declare export interface MessageWriter { + +onError: Event<[Error, Message | void, number | void]>; + +onClose: Event; + write(msg: Message): void; + dispose(): void; + } + declare class AbstractMessageWriter { + // private errorEmitter; + // private closeEmitter; + constructor(): void; + dispose(): void; + +onError: Event<[Error, Message | void, number | void]>; + // protected fireError(error: any, message?: Message, count?: number): void; + +onClose: Event; + // protected fireClose(): void; + // private asError(error); + } + declare export class StreamMessageWriter extends AbstractMessageWriter { + // private writable; + // private encoding; + // private errorCount; + constructor(writable: stream$Writable, encoding?: string): void; + write(msg: Message): void; + } + declare export class IPCMessageWriter extends AbstractMessageWriter { + // private process; + // private queue; + // private sending; + // private errorCount; + constructor(process: Process | child_process$ChildProcess): void; + write(msg: Message): void; + doWriteMessage(msg: Message): void; + } + declare export class SocketMessageWriter extends AbstractMessageWriter { + // private socket; + // private queue; + // private sending; + // private encoding; + // private errorCount; + constructor(socket: net$Socket, encoding?: string): void; + write(msg: Message): void; + doWriteMessage(msg: Message): void; + // private handleError(error, msg); + } + + // pipeSupport.d.ts + + declare export function generateRandomPipeName(): string; + declare export interface PipeTransport { + onConnected(): Thenable<[MessageReader, MessageWriter]>; + } + declare export function createClientPipeTransport( + pipeName: string, + encoding?: string, + ): Thenable; + declare export function createServerPipeTransport( + pipeName: string, + encoding?: string, + ): [MessageReader, MessageWriter]; + + // main.d.ts + + declare type HandlerResult = + | R + | ResponseError + | Thenable + | Thenable>; + declare interface StarRequestHandler { + (method: string, ...params: any[]): HandlerResult; + } + declare interface GenericRequestHandler { + (...params: any[]): HandlerResult; + } + declare interface RequestHandler0 { + (token: CancellationToken): HandlerResult; + } + declare interface RequestHandler { + (params: P, token: CancellationToken): HandlerResult; + } + declare interface RequestHandler1 { + (p1: P1, token: CancellationToken): HandlerResult; + } + declare interface RequestHandler2 { + (p1: P1, p2: P2, token: CancellationToken): HandlerResult; + } + declare interface RequestHandler3 { + (p1: P1, p2: P2, p3: P3, token: CancellationToken): HandlerResult; + } + declare interface RequestHandler4 { + ( + p1: P1, + p2: P2, + p3: P3, + p4: P4, + token: CancellationToken, + ): HandlerResult; + } + declare interface RequestHandler5 { + ( + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + token: CancellationToken, + ): HandlerResult; + } + declare interface RequestHandler6 { + ( + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + token: CancellationToken, + ): HandlerResult; + } + declare interface RequestHandler7 { + ( + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + p7: P7, + token: CancellationToken, + ): HandlerResult; + } + declare interface RequestHandler8 { + ( + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + p7: P7, + p8: P8, + token: CancellationToken, + ): HandlerResult; + } + declare interface RequestHandler9 { + ( + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + p7: P7, + p8: P8, + p9: P9, + token: CancellationToken, + ): HandlerResult; + } + declare interface StarNotificationHandler { + (method: string, ...params: any[]): void; + } + declare interface GenericNotificationHandler { + (...params: any[]): void; + } + declare interface NotificationHandler0 { + (): void; + } + declare interface NotificationHandler

{ + (params: P): void; + } + declare interface NotificationHandler1 { + (p1: P1): void; + } + declare interface NotificationHandler2 { + (p1: P1, p2: P2): void; + } + declare interface NotificationHandler3 { + (p1: P1, p2: P2, p3: P3): void; + } + declare interface NotificationHandler4 { + (p1: P1, p2: P2, p3: P3, p4: P4): void; + } + declare interface NotificationHandler5 { + (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5): void; + } + declare interface NotificationHandler6 { + (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6): void; + } + declare interface NotificationHandler7 { + (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7): void; + } + declare interface NotificationHandler8 { + (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8): void; + } + declare interface NotificationHandler9 { + ( + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + p7: P7, + p8: P8, + p9: P9, + ): void; + } + declare interface Logger { + error(message: string): void; + warn(message: string): void; + info(message: string): void; + log(message: string): void; + } + declare export var Trace: { + Off: 0, + Messages: 1, + Verbose: 2, + fromString(value: string): $Values, + toString(value: $Values): TraceValues, + }; + declare type TraceValues = 'off' | 'messages' | 'verbose'; + declare interface SetTraceParams { + value: TraceValues; + } + declare export var SetTraceNotification: { + type: NotificationType, + }; + declare interface LogTraceParams { + message: string; + verbose?: string; + } + declare export var LogTraceNotification: { + type: NotificationType, + }; + declare interface Tracer { + log(message: string, data?: string): void; + } + declare export var ConnectionErrors: { + /** + * The connection is closed. + */ + Closed: 1, + /** + * The connection got disposed. + */ + Disposed: 2, + /** + * The connection is already in listening mode. + */ + AlreadyListening: 3, + }; + declare export class ConnectionError extends Error { + +code: $Values; + constructor(code: $Values, message: string): void; + } + // declare type MessageQueue = LinkedMap; + declare type ConnectionStrategy = { + cancelUndispatched?: ( + message: Message, + next: (message: Message) => ResponseMessage | void, + ) => ResponseMessage | void, + }; + // declare export var ConnectionStrategy: { + // is(value: any): boolean, + // }; + declare export interface MessageConnection { + sendRequest( + type: RequestType0, + token?: CancellationToken, + ): Thenable; + sendRequest( + type: RequestType, + params: P, + token?: CancellationToken, + ): Thenable; + sendRequest( + type: RequestType1, + p1: P1, + token?: CancellationToken, + ): Thenable; + sendRequest( + type: RequestType2, + p1: P1, + p2: P2, + token?: CancellationToken, + ): Thenable; + sendRequest( + type: RequestType3, + p1: P1, + p2: P2, + p3: P3, + token?: CancellationToken, + ): Thenable; + sendRequest( + type: RequestType4, + p1: P1, + p2: P2, + p3: P3, + p4: P4, + token?: CancellationToken, + ): Thenable; + sendRequest( + type: RequestType5, + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + token?: CancellationToken, + ): Thenable; + sendRequest( + type: RequestType6, + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + token?: CancellationToken, + ): Thenable; + sendRequest( + type: RequestType7, + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + p7: P7, + token?: CancellationToken, + ): Thenable; + sendRequest( + type: RequestType8, + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + p7: P7, + p8: P8, + token?: CancellationToken, + ): Thenable; + sendRequest( + type: RequestType9, + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + p7: P7, + p8: P8, + p9: P9, + token?: CancellationToken, + ): Thenable; + sendRequest(method: string, ...params: any[]): Thenable; + onRequest( + type: RequestType0, + handler: RequestHandler0, + ): void; + onRequest( + type: RequestType1, + handler: RequestHandler1, + ): void; + onRequest( + type: RequestType2, + handler: RequestHandler2, + ): void; + onRequest( + type: RequestType3, + handler: RequestHandler3, + ): void; + onRequest( + type: RequestType4, + handler: RequestHandler4, + ): void; + onRequest( + type: RequestType5, + handler: RequestHandler5, + ): void; + onRequest( + type: RequestType6, + handler: RequestHandler6, + ): void; + onRequest( + type: RequestType7, + handler: RequestHandler7, + ): void; + onRequest( + type: RequestType8, + handler: RequestHandler8, + ): void; + onRequest( + type: RequestType9, + handler: RequestHandler9, + ): void; + onRequest(method: string, handler: GenericRequestHandler): void; + onRequest(handler: StarRequestHandler): void; + sendNotification(type: NotificationType0): void; + sendNotification(type: NotificationType, params?: P): void; + sendNotification(type: NotificationType1, p1: P1): void; + sendNotification( + type: NotificationType2, + p1: P1, + p2: P2, + ): void; + sendNotification( + type: NotificationType3, + p1: P1, + p2: P2, + p3: P3, + ): void; + sendNotification( + type: NotificationType4, + p1: P1, + p2: P2, + p3: P3, + p4: P4, + ): void; + sendNotification( + type: NotificationType5, + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + ): void; + sendNotification( + type: NotificationType6, + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + ): void; + sendNotification( + type: NotificationType7, + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + p7: P7, + ): void; + sendNotification( + type: NotificationType8, + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + p7: P7, + p8: P8, + ): void; + sendNotification( + type: NotificationType9, + p1: P1, + p2: P2, + p3: P3, + p4: P4, + p5: P5, + p6: P6, + p7: P7, + p8: P8, + p9: P9, + ): void; + sendNotification(method: string, ...params: any[]): void; + onNotification( + type: NotificationType0, + handler: NotificationHandler0, + ): void; + onNotification( + type: NotificationType1, + handler: NotificationHandler1, + ): void; + onNotification( + type: NotificationType2, + handler: NotificationHandler2, + ): void; + onNotification( + type: NotificationType3, + handler: NotificationHandler3, + ): void; + onNotification( + type: NotificationType4, + handler: NotificationHandler4, + ): void; + onNotification( + type: NotificationType5, + handler: NotificationHandler5, + ): void; + onNotification( + type: NotificationType6, + handler: NotificationHandler6, + ): void; + onNotification( + type: NotificationType7, + handler: NotificationHandler7, + ): void; + onNotification( + type: NotificationType8, + handler: NotificationHandler8, + ): void; + onNotification( + type: NotificationType9, + handler: NotificationHandler9, + ): void; + onNotification(method: string, handler: GenericNotificationHandler): void; + onNotification(handler: StarNotificationHandler): void; + trace( + value: $Values, + tracer: Tracer, + sendNotification?: boolean, + ): void; + onError: Event<[Error, Message, number]>; + onClose: Event; + onUnhandledNotification: Event; + listen(): void; + onDispose: Event; + dispose(): void; + inspect(): void; + } + declare export function createMessageConnection( + reader: MessageReader, + writer: MessageWriter, + logger: Logger, + strategy?: ConnectionStrategy, + ): MessageConnection; + declare export function createMessageConnection( + inputStream: stream$Readable, + outputStream: stream$Writable, + logger: Logger, + strategy?: ConnectionStrategy, + ): MessageConnection; +} diff --git a/flow-libs/vscode-uri.js.flow b/flow-libs/vscode-uri.js.flow new file mode 100644 index 00000000..952cd581 --- /dev/null +++ b/flow-libs/vscode-uri.js.flow @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the license found in the LICENSE file in + * the root directory of this source tree. + * + * @flow + * @format + */ + +declare module 'vscode-uri' { + /** + * Uniform Resource Identifier (URI) http://tools.ietf.org/html/rfc3986. + * This class is a simple parser which creates the basic component paths + * (http://tools.ietf.org/html/rfc3986#section-3) with minimal validation + * and encoding. + * + * foo://example.com:8042/over/there?name=ferret#nose + * \_/ \______________/\_________/ \_________/ \__/ + * | | | | | + * scheme authority path query fragment + * | _____________________|__ + * / \ / \ + * urn:example:animal:ferret:nose + * + * + */ + declare export default class URI { + static isUri(thing: mixed): boolean; + /** + * scheme is the 'http' part of 'http://www.msft.com/some/path?query#fragment'. + * The part before the first colon. + */ + +scheme: string; + /** + * authority is the 'www.msft.com' part of 'http://www.msft.com/some/path?query#fragment'. + * The part between the first double slashes and the next slash. + */ + +authority: string; + /** + * path is the '/some/path' part of 'http://www.msft.com/some/path?query#fragment'. + */ + +path: string; + /** + * query is the 'query' part of 'http://www.msft.com/some/path?query#fragment'. + */ + +query: string; + /** + * fragment is the 'fragment' part of 'http://www.msft.com/some/path?query#fragment'. + */ + +fragment: string; + /** + * Returns a string representing the corresponding file system path of this URI. + * Will handle UNC paths and normalize windows drive letters to lower-case. Also + * uses the platform specific path separator. Will *not* validate the path for + * invalid characters and semantics. Will *not* look at the scheme of this URI. + */ + +fsPath: string; + with(change: { + scheme?: string, + authority?: string, + path?: string, + query?: string, + fragment?: string, + }): URI; + static parse(value: string): URI; + static file(path: string): URI; + static from(components: { + scheme?: string, + authority?: string, + path?: string, + query?: string, + fragment?: string, + }): URI; + /** + * + * @param skipEncoding Do not encode the result, default is `false` + */ + toString(skipEncoding?: boolean): string; + toJSON(): any; + static revive(data: any): URI; + } +} diff --git a/flow-typed/npm/@kadira/storybook_vx.x.x.js b/flow-typed/npm/@kadira/storybook_vx.x.x.js deleted file mode 100644 index d46a0e75..00000000 --- a/flow-typed/npm/@kadira/storybook_vx.x.x.js +++ /dev/null @@ -1,263 +0,0 @@ -// flow-typed signature: 3e4b7aa59f6683f3193b02020a3a524c -// flow-typed version: <>/@kadira/storybook_v^2.18.1/flow_v0.59.0 - -/** - * This is an autogenerated libdef stub for: - * - * '@kadira/storybook' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module '@kadira/storybook' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module '@kadira/storybook/addons' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/index' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/manager/index' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/manager/preview' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/manager/provider' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/preview/actions' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/preview/client_api' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/preview/config_api' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/preview/error_display' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/preview/index' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/preview/init' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/preview/reducer' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/preview/render' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/client/preview/story_store' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/addons' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/babel_config' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/build' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/config' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/config/babel' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/config/babel.prod' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/config/defaults/webpack.config' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/config/globals' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/config/polyfills' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/config/utils' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/config/WatchMissingNodeModulesPlugin' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/config/webpack.config' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/config/webpack.config.prod' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/iframe.html' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/index.html' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/index' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/middleware' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/track_usage' { - declare module.exports: any; -} - -declare module '@kadira/storybook/dist/server/utils' { - declare module.exports: any; -} - -declare module '@kadira/storybook/scripts/mocha_runner' { - declare module.exports: any; -} - -// Filename aliases -declare module '@kadira/storybook/addons.js' { - declare module.exports: $Exports<'@kadira/storybook/addons'>; -} -declare module '@kadira/storybook/dist/client/index.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/index'>; -} -declare module '@kadira/storybook/dist/client/manager/index.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/manager/index'>; -} -declare module '@kadira/storybook/dist/client/manager/preview.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/manager/preview'>; -} -declare module '@kadira/storybook/dist/client/manager/provider.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/manager/provider'>; -} -declare module '@kadira/storybook/dist/client/preview/actions.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/actions'>; -} -declare module '@kadira/storybook/dist/client/preview/client_api.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/client_api'>; -} -declare module '@kadira/storybook/dist/client/preview/config_api.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/config_api'>; -} -declare module '@kadira/storybook/dist/client/preview/error_display.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/error_display'>; -} -declare module '@kadira/storybook/dist/client/preview/index.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/index'>; -} -declare module '@kadira/storybook/dist/client/preview/init.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/init'>; -} -declare module '@kadira/storybook/dist/client/preview/reducer.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/reducer'>; -} -declare module '@kadira/storybook/dist/client/preview/render.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/render'>; -} -declare module '@kadira/storybook/dist/client/preview/story_store.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/client/preview/story_store'>; -} -declare module '@kadira/storybook/dist/server/addons.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/addons'>; -} -declare module '@kadira/storybook/dist/server/babel_config.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/babel_config'>; -} -declare module '@kadira/storybook/dist/server/build.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/build'>; -} -declare module '@kadira/storybook/dist/server/config.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/config'>; -} -declare module '@kadira/storybook/dist/server/config/babel.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/config/babel'>; -} -declare module '@kadira/storybook/dist/server/config/babel.prod.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/config/babel.prod'>; -} -declare module '@kadira/storybook/dist/server/config/defaults/webpack.config.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/config/defaults/webpack.config'>; -} -declare module '@kadira/storybook/dist/server/config/globals.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/config/globals'>; -} -declare module '@kadira/storybook/dist/server/config/polyfills.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/config/polyfills'>; -} -declare module '@kadira/storybook/dist/server/config/utils.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/config/utils'>; -} -declare module '@kadira/storybook/dist/server/config/WatchMissingNodeModulesPlugin.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/config/WatchMissingNodeModulesPlugin'>; -} -declare module '@kadira/storybook/dist/server/config/webpack.config.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/config/webpack.config'>; -} -declare module '@kadira/storybook/dist/server/config/webpack.config.prod.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/config/webpack.config.prod'>; -} -declare module '@kadira/storybook/dist/server/iframe.html.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/iframe.html'>; -} -declare module '@kadira/storybook/dist/server/index.html.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/index.html'>; -} -declare module '@kadira/storybook/dist/server/index.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/index'>; -} -declare module '@kadira/storybook/dist/server/middleware.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/middleware'>; -} -declare module '@kadira/storybook/dist/server/track_usage.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/track_usage'>; -} -declare module '@kadira/storybook/dist/server/utils.js' { - declare module.exports: $Exports<'@kadira/storybook/dist/server/utils'>; -} -declare module '@kadira/storybook/scripts/mocha_runner.js' { - declare module.exports: $Exports<'@kadira/storybook/scripts/mocha_runner'>; -} diff --git a/flow-typed/npm/enzyme_v2.3.x.js b/flow-typed/npm/enzyme_v3.x.x.js similarity index 76% rename from flow-typed/npm/enzyme_v2.3.x.js rename to flow-typed/npm/enzyme_v3.x.x.js index 47e8112b..abf43308 100644 --- a/flow-typed/npm/enzyme_v2.3.x.js +++ b/flow-typed/npm/enzyme_v3.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: ac18e8756b9f77851123c33e78aaa670 -// flow-typed version: 792f604e07/enzyme_v2.3.x/flow_>=v0.53.x +// flow-typed signature: 7be2af8800fdadaea6ac0404d256bafc +// flow-typed version: 6ce6a0467c/enzyme_v3.x.x/flow_>=v0.53.x import * as React from "react"; @@ -20,12 +20,14 @@ declare module "enzyme" { findWhere(predicate: PredicateFunction): this, filter(selector: EnzymeSelector): this, filterWhere(predicate: PredicateFunction): this, + hostNodes(): this, contains(nodeOrNodes: NodeOrNodes): boolean, containsMatchingElement(node: React.Node): boolean, containsAllMatchingElements(nodes: NodeOrNodes): boolean, containsAnyMatchingElements(nodes: NodeOrNodes): boolean, dive(option?: { context?: Object }): this, exists(): boolean, + isEmptyRender(): boolean, matchesElement(node: React.Node): boolean, hasClass(className: string): boolean, is(selector: EnzymeSelector): boolean, @@ -41,8 +43,6 @@ declare module "enzyme" { text(): string, html(): string, get(index: number): React.Node, - getNode(): React.Node, - getNodes(): Array, getDOMNode(): HTMLElement | HTMLInputElement, at(index: number): this, first(): this, @@ -78,24 +78,30 @@ declare module "enzyme" { length: number } - declare export class ReactWrapper extends Wrapper { + declare class ReactWrapper extends Wrapper { constructor(nodes: NodeOrNodes, root: any, options?: ?Object): ReactWrapper, mount(): this, ref(refName: string): this, detach(): void } - declare export class ShallowWrapper extends Wrapper { - constructor(nodes: NodeOrNodes, root: any, options?: ?Object): ShallowWrapper; + declare class ShallowWrapper extends Wrapper { + constructor( + nodes: NodeOrNodes, + root: any, + options?: ?Object + ): ShallowWrapper, equals(node: React.Node): boolean, - shallow(options?: { context?: Object }): ShallowWrapper + shallow(options?: { context?: Object }): ShallowWrapper, + getElement(): React.Node, + getElements(): Array } - declare export function shallow( + declare function shallow( node: React.Node, - options?: { context?: Object } + options?: { context?: Object, disableLifecycleMethods?: boolean } ): ShallowWrapper; - declare export function mount( + declare function mount( node: React.Node, options?: { context?: Object, @@ -103,8 +109,20 @@ declare module "enzyme" { childContextTypes?: Object } ): ReactWrapper; - declare export function render( + declare function render( node: React.Node, options?: { context?: Object } ): CheerioWrapper; + + declare module.exports: { + configure(options: { + Adapter?: any, + disableLifecycleMethods?: boolean + }): void, + render: typeof render, + mount: typeof mount, + shallow: typeof shallow, + ShallowWrapper: typeof ShallowWrapper, + ReactWrapper: typeof ReactWrapper + }; } diff --git a/flow-typed/npm/jest_v21.x.x.js b/flow-typed/npm/jest_v22.x.x.js similarity index 57% rename from flow-typed/npm/jest_v21.x.x.js rename to flow-typed/npm/jest_v22.x.x.js index daaeda70..d1ffdad8 100644 --- a/flow-typed/npm/jest_v21.x.x.js +++ b/flow-typed/npm/jest_v22.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 107cf7068b8835594e97f938e8848244 -// flow-typed version: 8b4dd96654/jest_v21.x.x/flow_>=v0.39.x +// flow-typed signature: 5f6b80ba0fa4571aac1e7ea6e5fea425 +// flow-typed version: f4a7859cd3/jest_v22.x.x/flow_>=v0.39.x type JestMockFn, TReturn> = { (...args: TArguments): TReturn, @@ -55,6 +55,11 @@ type JestMockFn, TReturn> = { mockImplementationOnce( fn: (...args: TArguments) => TReturn ): JestMockFn, + /** + * Accepts a string to use in test result output in place of "jest.fn()" to + * indicate which mock function is being referenced. + */ + mockName(name: string): JestMockFn, /** * Just a simple sugar function for returning `this` */ @@ -113,6 +118,12 @@ type JestPromiseType = { resolves: JestExpectType }; +/** + * Jest allows functions and classes to be used as test names in test() and + * describe() + */ +type JestTestName = string | Function; + /** * Plugin: jest-enzyme */ @@ -120,14 +131,16 @@ type EnzymeMatchersType = { toBeChecked(): void, toBeDisabled(): void, toBeEmpty(): void, + toBeEmptyRender(): void, toBePresent(): void, toContainReact(element: React$Element): void, + toExist(): void, toHaveClassName(className: string): void, toHaveHTML(html: string): void, - toHaveProp(propKey: string, propValue?: any): void, + toHaveProp: ((propKey: string, propValue?: any) => void) & ((props: Object) => void), toHaveRef(refName: string): void, - toHaveState(stateKey: string, stateValue?: any): void, - toHaveStyle(styleKey: string, styleValue?: any): void, + toHaveState: ((stateKey: string, stateValue?: any) => void) & ((state: Object) => void), + toHaveStyle: ((styleKey: string, styleValue?: any) => void) & ((style: Object) => void), toHaveTagName(tagName: string): void, toHaveText(text: string): void, toIncludeText(text: string): void, @@ -136,8 +149,342 @@ type EnzymeMatchersType = { toMatchSelector(selector: string): void }; +// DOM testing library extensions https://github.com/kentcdodds/dom-testing-library#custom-jest-matchers +type DomTestingLibraryType = { + toBeInTheDOM(): void, + toHaveTextContent(content: string): void, + toHaveAttribute(name: string, expectedValue?: string): void +}; + +// Jest JQuery Matchers: https://github.com/unindented/custom-jquery-matchers +type JestJQueryMatchersType = { + toExist(): void, + toHaveLength(len: number): void, + toHaveId(id: string): void, + toHaveClass(className: string): void, + toHaveTag(tag: string): void, + toHaveAttr(key: string, val?: any): void, + toHaveProp(key: string, val?: any): void, + toHaveText(text: string | RegExp): void, + toHaveData(key: string, val?: any): void, + toHaveValue(val: any): void, + toHaveCss(css: {[key: string]: any}): void, + toBeChecked(): void, + toBeDisabled(): void, + toBeEmpty(): void, + toBeHidden(): void, + toBeSelected(): void, + toBeVisible(): void, + toBeFocused(): void, + toBeInDom(): void, + toBeMatchedBy(sel: string): void, + toHaveDescendant(sel: string): void, + toHaveDescendantWithText(sel: string, text: string | RegExp): void +}; + + +// Jest Extended Matchers: https://github.com/jest-community/jest-extended +type JestExtendedMatchersType = { + /** + * Note: Currently unimplemented + * Passing assertion + * + * @param {String} message + */ + // pass(message: string): void; + + /** + * Note: Currently unimplemented + * Failing assertion + * + * @param {String} message + */ + // fail(message: string): void; + + /** + * Use .toBeEmpty when checking if a String '', Array [] or Object {} is empty. + */ + toBeEmpty(): void; + + /** + * Use .toBeOneOf when checking if a value is a member of a given Array. + * @param {Array.<*>} members + */ + toBeOneOf(members: any[]): void; + + /** + * Use `.toBeNil` when checking a value is `null` or `undefined`. + */ + toBeNil(): void; + + /** + * Use `.toSatisfy` when you want to use a custom matcher by supplying a predicate function that returns a `Boolean`. + * @param {Function} predicate + */ + toSatisfy(predicate: (n: any) => boolean): void; + + /** + * Use `.toBeArray` when checking if a value is an `Array`. + */ + toBeArray(): void; + + /** + * Use `.toBeArrayOfSize` when checking if a value is an `Array` of size x. + * @param {Number} x + */ + toBeArrayOfSize(x: number): void; + + /** + * Use `.toIncludeAllMembers` when checking if an `Array` contains all of the same members of a given set. + * @param {Array.<*>} members + */ + toIncludeAllMembers(members: any[]): void; + + /** + * Use `.toIncludeAnyMembers` when checking if an `Array` contains any of the members of a given set. + * @param {Array.<*>} members + */ + toIncludeAnyMembers(members: any[]): void; + + /** + * Use `.toSatisfyAll` when you want to use a custom matcher by supplying a predicate function that returns a `Boolean` for all values in an array. + * @param {Function} predicate + */ + toSatisfyAll(predicate: (n: any) => boolean): void; + + /** + * Use `.toBeBoolean` when checking if a value is a `Boolean`. + */ + toBeBoolean(): void; + + /** + * Use `.toBeTrue` when checking a value is equal (===) to `true`. + */ + toBeTrue(): void; + + /** + * Use `.toBeFalse` when checking a value is equal (===) to `false`. + */ + toBeFalse(): void; + + /** + * Use .toBeDate when checking if a value is a Date. + */ + toBeDate(): void; + + /** + * Use `.toBeFunction` when checking if a value is a `Function`. + */ + toBeFunction(): void; + + /** + * Use `.toHaveBeenCalledBefore` when checking if a `Mock` was called before another `Mock`. + * + * Note: Required Jest version >22 + * Note: Your mock functions will have to be asynchronous to cause the timestamps inside of Jest to occur in a differentJS event loop, otherwise the mock timestamps will all be the same + * + * @param {Mock} mock + */ + toHaveBeenCalledBefore(mock: JestMockFn): void; + + /** + * Use `.toBeNumber` when checking if a value is a `Number`. + */ + toBeNumber(): void; + + /** + * Use `.toBeNaN` when checking a value is `NaN`. + */ + toBeNaN(): void; + + /** + * Use `.toBeFinite` when checking if a value is a `Number`, not `NaN` or `Infinity`. + */ + toBeFinite(): void; + + /** + * Use `.toBePositive` when checking if a value is a positive `Number`. + */ + toBePositive(): void; + + /** + * Use `.toBeNegative` when checking if a value is a negative `Number`. + */ + toBeNegative(): void; + + /** + * Use `.toBeEven` when checking if a value is an even `Number`. + */ + toBeEven(): void; + + /** + * Use `.toBeOdd` when checking if a value is an odd `Number`. + */ + toBeOdd(): void; + + /** + * Use `.toBeWithin` when checking if a number is in between the given bounds of: start (inclusive) and end (exclusive). + * + * @param {Number} start + * @param {Number} end + */ + toBeWithin(start: number, end: number): void; + + /** + * Use `.toBeObject` when checking if a value is an `Object`. + */ + toBeObject(): void; + + /** + * Use `.toContainKey` when checking if an object contains the provided key. + * + * @param {String} key + */ + toContainKey(key: string): void; + + /** + * Use `.toContainKeys` when checking if an object has all of the provided keys. + * + * @param {Array.} keys + */ + toContainKeys(keys: string[]): void; + + /** + * Use `.toContainAllKeys` when checking if an object only contains all of the provided keys. + * + * @param {Array.} keys + */ + toContainAllKeys(keys: string[]): void; + + /** + * Use `.toContainAnyKeys` when checking if an object contains at least one of the provided keys. + * + * @param {Array.} keys + */ + toContainAnyKeys(keys: string[]): void; + + /** + * Use `.toContainValue` when checking if an object contains the provided value. + * + * @param {*} value + */ + toContainValue(value: any): void; + + /** + * Use `.toContainValues` when checking if an object contains all of the provided values. + * + * @param {Array.<*>} values + */ + toContainValues(values: any[]): void; + + /** + * Use `.toContainAllValues` when checking if an object only contains all of the provided values. + * + * @param {Array.<*>} values + */ + toContainAllValues(values: any[]): void; + + /** + * Use `.toContainAnyValues` when checking if an object contains at least one of the provided values. + * + * @param {Array.<*>} values + */ + toContainAnyValues(values: any[]): void; + + /** + * Use `.toContainEntry` when checking if an object contains the provided entry. + * + * @param {Array.} entry + */ + toContainEntry(entry: [string, string]): void; + + /** + * Use `.toContainEntries` when checking if an object contains all of the provided entries. + * + * @param {Array.>} entries + */ + toContainEntries(entries: [string, string][]): void; + + /** + * Use `.toContainAllEntries` when checking if an object only contains all of the provided entries. + * + * @param {Array.>} entries + */ + toContainAllEntries(entries: [string, string][]): void; + + /** + * Use `.toContainAnyEntries` when checking if an object contains at least one of the provided entries. + * + * @param {Array.>} entries + */ + toContainAnyEntries(entries: [string, string][]): void; + + /** + * Use `.toBeExtensible` when checking if an object is extensible. + */ + toBeExtensible(): void; + + /** + * Use `.toBeFrozen` when checking if an object is frozen. + */ + toBeFrozen(): void; + + /** + * Use `.toBeSealed` when checking if an object is sealed. + */ + toBeSealed(): void; + + /** + * Use `.toBeString` when checking if a value is a `String`. + */ + toBeString(): void; + + /** + * Use `.toEqualCaseInsensitive` when checking if a string is equal (===) to another ignoring the casing of both strings. + * + * @param {String} string + */ + toEqualCaseInsensitive(string: string): void; + + /** + * Use `.toStartWith` when checking if a `String` starts with a given `String` prefix. + * + * @param {String} prefix + */ + toStartWith(prefix: string): void; + + /** + * Use `.toEndWith` when checking if a `String` ends with a given `String` suffix. + * + * @param {String} suffix + */ + toEndWith(suffix: string): void; + + /** + * Use `.toInclude` when checking if a `String` includes the given `String` substring. + * + * @param {String} substring + */ + toInclude(substring: string): void; + + /** + * Use `.toIncludeRepeated` when checking if a `String` includes the given `String` substring the correct number of times. + * + * @param {String} substring + * @param {Number} times + */ + toIncludeRepeated(substring: string, times: number): void; + + /** + * Use `.toIncludeMultiple` when checking if a `String` includes all of the given substrings. + * + * @param {Array.} substring + */ + toIncludeMultiple(substring: string[]): void; +}; + type JestExpectType = { - not: JestExpectType & EnzymeMatchersType, + not: JestExpectType & EnzymeMatchersType & DomTestingLibraryType & JestJQueryMatchersType & JestExtendedMatchersType, /** * If you have a mock function, you can use .lastCalledWith to test what * arguments it was last called with. @@ -310,6 +657,10 @@ type JestObjectType = { * mocked function. */ resetAllMocks(): JestObjectType, + /** + * Restores all mocks back to their original value. + */ + restoreAllMocks(): JestObjectType, /** * Removes any pending timers from the timer system. */ @@ -387,6 +738,13 @@ type JestObjectType = { * Executes only the macro task queue (i.e. all tasks queued by setTimeout() * or setInterval() and setImmediate()). */ + advanceTimersByTime(msToRun: number): void, + /** + * Executes only the macro task queue (i.e. all tasks queued by setTimeout() + * or setInterval() and setImmediate()). + * + * Renamed to `advanceTimersByTime`. + */ runTimersToTime(msToRun: number): void, /** * Executes only the macro-tasks that are currently pending (i.e., only the @@ -420,7 +778,7 @@ type JestObjectType = { * Creates a mock function similar to jest.fn but also tracks calls to * object[methodName]. */ - spyOn(object: Object, methodName: string): JestMockFn, + spyOn(object: Object, methodName: string, accessType?: "get" | "set"): JestMockFn, /** * Set the default timeout interval for tests and before/after hooks in milliseconds. * Note: The default timeout interval is 5 seconds if this method is not called. @@ -458,17 +816,17 @@ declare var describe: { /** * Creates a block that groups together several related tests in one "test suite" */ - (name: string, fn: () => void): void, + (name: JestTestName, fn: () => void): void, /** * Only run this describe block */ - only(name: string, fn: () => void): void, + only(name: JestTestName, fn: () => void): void, /** * Skip running this describe block */ - skip(name: string, fn: () => void): void + skip(name: JestTestName, fn: () => void): void }; /** An individual test unit */ @@ -476,54 +834,54 @@ declare var it: { /** * An individual test unit * - * @param {string} Name of Test + * @param {JestTestName} Name of Test * @param {Function} Test * @param {number} Timeout for the test, in milliseconds. */ ( - name: string, + name: JestTestName, fn?: (done: () => void) => ?Promise, timeout?: number ): void, /** * Only run this test * - * @param {string} Name of Test + * @param {JestTestName} Name of Test * @param {Function} Test * @param {number} Timeout for the test, in milliseconds. */ only( - name: string, + name: JestTestName, fn?: (done: () => void) => ?Promise, timeout?: number ): void, /** * Skip running this test * - * @param {string} Name of Test + * @param {JestTestName} Name of Test * @param {Function} Test * @param {number} Timeout for the test, in milliseconds. */ skip( - name: string, + name: JestTestName, fn?: (done: () => void) => ?Promise, timeout?: number ): void, /** * Run the test concurrently * - * @param {string} Name of Test + * @param {JestTestName} Name of Test * @param {Function} Test * @param {number} Timeout for the test, in milliseconds. */ concurrent( - name: string, + name: JestTestName, fn?: (done: () => void) => ?Promise, timeout?: number ): void }; declare function fit( - name: string, + name: JestTestName, fn: (done: () => void) => ?Promise, timeout?: number ): void; @@ -538,23 +896,69 @@ declare var xit: typeof it; /** A disabled individual test */ declare var xtest: typeof it; +type JestPrettyFormatColors = { + comment: { close: string, open: string }, + content: { close: string, open: string }, + prop: { close: string, open: string }, + tag: { close: string, open: string }, + value: { close: string, open: string }, +}; + +type JestPrettyFormatIndent = string => string; +type JestPrettyFormatRefs = Array; +type JestPrettyFormatPrint = any => string; +type JestPrettyFormatStringOrNull = string | null; + +type JestPrettyFormatOptions = {| + callToJSON: boolean, + edgeSpacing: string, + escapeRegex: boolean, + highlight: boolean, + indent: number, + maxDepth: number, + min: boolean, + plugins: JestPrettyFormatPlugins, + printFunctionName: boolean, + spacing: string, + theme: {| + comment: string, + content: string, + prop: string, + tag: string, + value: string, + |}, +|}; + +type JestPrettyFormatPlugin = { + print: ( + val: any, + serialize: JestPrettyFormatPrint, + indent: JestPrettyFormatIndent, + opts: JestPrettyFormatOptions, + colors: JestPrettyFormatColors, + ) => string, + test: any => boolean, +}; + +type JestPrettyFormatPlugins = Array; + /** The expect function is used every time you want to test a value */ declare var expect: { /** The object that you want to make assertions against */ - (value: any): JestExpectType & JestPromiseType & EnzymeMatchersType, + (value: any): JestExpectType & JestPromiseType & EnzymeMatchersType & DomTestingLibraryType & JestJQueryMatchersType & JestExtendedMatchersType, /** Add additional Jasmine matchers to Jest's roster */ extend(matchers: { [name: string]: JestMatcher }): void, /** Add a module that formats application-specific data structures. */ - addSnapshotSerializer(serializer: (input: Object) => string): void, + addSnapshotSerializer(pluginModule: JestPrettyFormatPlugin): void, assertions(expectedAssertions: number): void, hasAssertions(): void, any(value: mixed): JestAsymmetricEqualityType, - anything(): void, - arrayContaining(value: Array): void, - objectContaining(value: Object): void, + anything(): any, + arrayContaining(value: Array): Array, + objectContaining(value: Object): Object, /** Matches any received string that contains the exact expected string. */ - stringContaining(value: string): void, - stringMatching(value: string | RegExp): void + stringContaining(value: string): string, + stringMatching(value: string | RegExp): string }; // TODO handle return type @@ -571,14 +975,14 @@ declare var jest: JestObjectType; declare var jasmine: { DEFAULT_TIMEOUT_INTERVAL: number, any(value: mixed): JestAsymmetricEqualityType, - anything(): void, - arrayContaining(value: Array): void, + anything(): any, + arrayContaining(value: Array): Array, clock(): JestClockType, createSpy(name: string): JestSpyType, createSpyObj( baseName: string, methodNames: Array ): { [methodName: string]: JestSpyType }, - objectContaining(value: Object): void, - stringMatching(value: string): void + objectContaining(value: Object): Object, + stringMatching(value: string): string }; diff --git a/flow-typed/npm/mocha_v5.x.x.js b/flow-typed/npm/mocha_v5.x.x.js new file mode 100644 index 00000000..29edea86 --- /dev/null +++ b/flow-typed/npm/mocha_v5.x.x.js @@ -0,0 +1,221 @@ +// flow-typed signature: f58bffa67453f8927660cb5f142b2c7f +// flow-typed version: 03669c2773/mocha_v5.x.x/flow_>=v0.28.x + +declare interface $npm$mocha$SetupOptions { + slow?: number; + timeout?: number; + ui?: string; + globals?: Array; + reporter?: any; + bail?: boolean; + ignoreLeaks?: boolean; + grep?: any; +} + +declare type $npm$mocha$done = (error?: any) => any; + +// declare interface $npm$mocha$SuiteCallbackContext { +// timeout(ms: number): void; +// retries(n: number): void; +// slow(ms: number): void; +// } + +// declare interface $npm$mocha$TestCallbackContext { +// skip(): void; +// timeout(ms: number): void; +// retries(n: number): void; +// slow(ms: number): void; +// [index: string]: any; +// } + +declare interface $npm$mocha$Suite { + parent: $npm$mocha$Suite; + title: string; + fullTitle(): string; +} + +declare interface $npm$mocha$ContextDefinition { + (description: string, callback: (/* this: $npm$mocha$SuiteCallbackContext */) => void): $npm$mocha$Suite; + only(description: string, callback: (/* this: $npm$mocha$SuiteCallbackContext */) => void): $npm$mocha$Suite; + skip(description: string, callback: (/* this: $npm$mocha$SuiteCallbackContext */) => void): void; + timeout(ms: number): void; +} + +declare interface $npm$mocha$TestDefinition { + (expectation: string, callback?: (/* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done) => mixed): $npm$mocha$Test; + only(expectation: string, callback?: (/* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done) => mixed): $npm$mocha$Test; + skip(expectation: string, callback?: (/* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done) => mixed): void; + timeout(ms: number): void; + state: 'failed' | 'passed'; +} + +declare interface $npm$mocha$Runner {} + +declare class $npm$mocha$BaseReporter { + stats: { + suites: number; + tests: number; + passes: number; + pending: number; + failures: number; + }; + + constructor(runner: $npm$mocha$Runner): $npm$mocha$BaseReporter; +} + +declare class $npm$mocha$DocReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$DotReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$HTMLReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$HTMLCovReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$JSONReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$JSONCovReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$JSONStreamReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$LandingReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$ListReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$MarkdownReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$MinReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$NyanReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$ProgressReporter extends $npm$mocha$BaseReporter { + constructor(runner: $npm$mocha$Runner, options?: { + open?: string; + complete?: string; + incomplete?: string; + close?: string; + }): $npm$mocha$ProgressReporter; +} +declare class $npm$mocha$SpecReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$TAPReporter extends $npm$mocha$BaseReporter {} +declare class $npm$mocha$XUnitReporter extends $npm$mocha$BaseReporter { + constructor(runner: $npm$mocha$Runner, options?: any): $npm$mocha$XUnitReporter; +} + +declare class $npm$mocha$Mocha { + currentTest: $npm$mocha$TestDefinition; + constructor(options?: { + grep?: RegExp; + ui?: string; + reporter?: string; + timeout?: number; + reporterOptions?: any; + slow?: number; + bail?: boolean; + }): $npm$mocha$Mocha; + setup(options: $npm$mocha$SetupOptions): this; + bail(value?: boolean): this; + addFile(file: string): this; + reporter(name: string): this; + reporter(reporter: (runner: $npm$mocha$Runner, options: any) => any): this; + ui(value: string): this; + grep(value: string): this; + grep(value: RegExp): this; + invert(): this; + ignoreLeaks(value: boolean): this; + checkLeaks(): this; + throwError(error: Error): void; + growl(): this; + globals(value: string): this; + globals(values: Array): this; + useColors(value: boolean): this; + useInlineDiffs(value: boolean): this; + timeout(value: number): this; + slow(value: number): this; + enableTimeouts(value: boolean): this; + asyncOnly(value: boolean): this; + noHighlighting(value: boolean): this; + run(onComplete?: (failures: number) => void): $npm$mocha$Runner; + + static reporters: { + Doc: $npm$mocha$DocReporter, + Dot: $npm$mocha$DotReporter, + HTML: $npm$mocha$HTMLReporter, + HTMLCov: $npm$mocha$HTMLCovReporter, + JSON: $npm$mocha$JSONReporter, + JSONCov: $npm$mocha$JSONCovReporter, + JSONStream: $npm$mocha$JSONStreamReporter, + Landing: $npm$mocha$LandingReporter, + List: $npm$mocha$ListReporter, + Markdown: $npm$mocha$MarkdownReporter, + Min: $npm$mocha$MinReporter, + Nyan: $npm$mocha$NyanReporter, + Progress: $npm$mocha$ProgressReporter, + }; +} + +// declare interface $npm$mocha$HookCallbackContext { +// skip(): void; +// timeout(ms: number): void; +// [index: string]: any; +// } + +declare interface $npm$mocha$Runnable { + title: string; + fn: Function; + async: boolean; + sync: boolean; + timedOut: boolean; +} + +declare interface $npm$mocha$Test extends $npm$mocha$Runnable { + parent: $npm$mocha$Suite; + pending: boolean; + state: 'failed' | 'passed' | void; + fullTitle(): string; +} + +// declare interface $npm$mocha$BeforeAndAfterContext extends $npm$mocha$HookCallbackContext { +// currentTest: $npm$mocha$Test; +// } + +declare var mocha: $npm$mocha$Mocha; +declare var describe: $npm$mocha$ContextDefinition; +declare var xdescribe: $npm$mocha$ContextDefinition; +declare var context: $npm$mocha$ContextDefinition; +declare var suite: $npm$mocha$ContextDefinition; +declare var it: $npm$mocha$TestDefinition; +declare var xit: $npm$mocha$TestDefinition; +declare var test: $npm$mocha$TestDefinition; +declare var specify: $npm$mocha$TestDefinition; + +declare function run(): void; + +declare function setup(callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed): void; +declare function teardown(callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed): void; +declare function suiteSetup(callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed): void; +declare function suiteTeardown(callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed): void; +declare function before(callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed): void; +declare function before(description: string, callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed): void; +declare function after(callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed): void; +declare function after(description: string, callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed): void; +declare function beforeEach(callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed): void; +declare function beforeEach(description: string, callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed): void; +declare function afterEach(callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed): void; +declare function afterEach(description: string, callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed): void; + +declare module "mocha" { + declare export var mocha: typeof mocha; + declare export var describe: typeof describe; + declare export var xdescribe: typeof xdescribe; + declare export var context: typeof context; + declare export var suite: typeof suite; + declare export var it: typeof it; + declare export var xit: typeof xit; + declare export var test: typeof test; + declare export var specify: typeof specify; + + declare export var run: typeof run; + + declare export var setup: typeof setup; + declare export var teardown: typeof teardown; + declare export var suiteSetup: typeof suiteSetup; + declare export var suiteTeardown: typeof suiteTeardown; + declare export var before: typeof before; + declare export var before: typeof before; + declare export var after: typeof after; + declare export var after: typeof after; + declare export var beforeEach: typeof beforeEach; + declare export var beforeEach: typeof beforeEach; + declare export var afterEach: typeof afterEach; + declare export var afterEach: typeof afterEach; + + declare export default $npm$mocha$Mocha; +} diff --git a/flow-typed/npm/moment_v2.3.x.js b/flow-typed/npm/moment_v2.3.x.js index c03d2ff2..c9177b02 100644 --- a/flow-typed/npm/moment_v2.3.x.js +++ b/flow-typed/npm/moment_v2.3.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: a56215e90c2cb9a5f9e106edd857208f -// flow-typed version: 057d3e81b5/moment_v2.3.x/flow_>=v0.34.x +// flow-typed signature: c30aa20539f52183d4d30dd36d8ab9c2 +// flow-typed version: 886cf7c002/moment_v2.3.x/flow_>=v0.63.x type moment$MomentOptions = { y?: number | string, @@ -263,7 +263,9 @@ declare class moment$Moment { toDate(): Date, toArray(): Array, toJSON(): string, - toISOString(): string, + toISOString( + keepOffset?: boolean + ): string, toObject(): moment$MomentObject, isBefore( date?: moment$Moment | string | number | Date | Array, diff --git a/flow-typed/npm/react-dnd_v2.x.x.js b/flow-typed/npm/react-dnd_v2.x.x.js index 277ed414..e272fbe8 100644 --- a/flow-typed/npm/react-dnd_v2.x.x.js +++ b/flow-typed/npm/react-dnd_v2.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 127954d01aa89a07e16464c0db385046 -// flow-typed version: 010c66895a/react-dnd_v2.x.x/flow_>=v0.53.x +// flow-typed signature: 6457154c7e96ef3ce4b654781625f315 +// flow-typed version: 7bc41826e1/react-dnd_v2.x.x/flow_>=v0.53.x declare module "react-dnd" { declare type Identifier = string; @@ -45,7 +45,7 @@ declare module "react-dnd" { ) => Class< ConnectedComponent, { ...CP } & $Diff> >) & - (>( + (>( component: C ) => Class>>); diff --git a/flow-typed/npm/react-redux_v5.x.x.js b/flow-typed/npm/react-redux_v5.x.x.js index 3080c656..0c3e7d0c 100644 --- a/flow-typed/npm/react-redux_v5.x.x.js +++ b/flow-typed/npm/react-redux_v5.x.x.js @@ -1,132 +1,192 @@ -// flow-typed signature: 9a12aedd08545d50c2069919fdd910b9 -// flow-typed version: dcd1531faf/react-redux_v5.x.x/flow_>=v0.54.x <=v0.61.x +// flow-typed signature: d4e793bc07ef1dc9906a244b12960f7b +// flow-typed version: cf33ff8762/react-redux_v5.x.x/flow_>=v0.63.0 import type { Dispatch, Store } from "redux"; declare module "react-redux" { - /* - - S = State - A = Action - OP = OwnProps - SP = StateProps - DP = DispatchProps - - */ - - declare type MapStateToProps = ( - state: S, - ownProps: OP - ) => ((state: S, ownProps: OP) => SP) | SP; + import type { ComponentType, ElementConfig } from 'react'; - declare type MapDispatchToProps = - | ((dispatch: Dispatch, ownProps: OP) => DP) - | DP; - - declare type MergeProps = ( - stateProps: SP, - dispatchProps: DP, - ownProps: OP - ) => P; - - declare type Context = { store: Store<*, *> }; - - declare type ComponentWithDefaultProps = Class< - React$Component - > & { defaultProps: DP }; - - declare class ConnectedComponentWithDefaultProps< - OP, - DP, - CP - > extends React$Component { - static defaultProps: DP, // <= workaround for https://github.com/facebook/flow/issues/4644 - static WrappedComponent: Class>, - getWrappedInstance(): React$Component, - props: OP, - state: void - } - - declare class ConnectedComponent extends React$Component { - static WrappedComponent: Class>, - getWrappedInstance(): React$Component

, - props: OP, - state: void - } - - declare type ConnectedComponentWithDefaultPropsClass = Class< - ConnectedComponentWithDefaultProps - >; - - declare type ConnectedComponentClass = Class< - ConnectedComponent - >; - - declare type Connector = (( - component: ComponentWithDefaultProps - ) => ConnectedComponentWithDefaultPropsClass) & - ((component: React$ComponentType

) => ConnectedComponentClass); - - declare class Provider extends React$Component<{ + declare export class Provider extends React$Component<{ store: Store, children?: any }> {} - declare function createProvider( + declare export function createProvider( storeKey?: string, subKey?: string ): Provider<*, *>; - declare type ConnectOptions = { + /* + + S = State + A = Action + OP = OwnProps + SP = StateProps + DP = DispatchProps + MP = Merge props + MDP = Map dispatch to props object + RSP = Returned state props + RDP = Returned dispatch props + RMP = Returned merge props + CP = Props for returned component + Com = React Component + */ + + declare type MapStateToProps = (state: S, props: SP) => RSP; + + declare type MapDispatchToProps = (dispatch: Dispatch, ownProps: OP) => RDP; + + declare type MergeProps = ( + stateProps: SP, + dispatchProps: DP, + ownProps: MP + ) => RMP; + + declare type ConnectOptions = {| pure?: boolean, - withRef?: boolean + withRef?: boolean, + areStatesEqual?: (next: S, prev: S) => boolean, + areOwnPropsEqual?: (next: OP, prev: OP) => boolean, + areStatePropsEqual?: (next: RSP, prev: RSP) => boolean, + areMergedPropsEqual?: (next: RMP, prev: RMP) => boolean, + storeKey?: string + |}; + + declare type OmitDispatch = $Diff}>; + + declare export function connect< + Com: ComponentType<*>, + S: Object, + DP: Object, + RSP: Object, + CP: $Diff>, RSP> + >( + mapStateToProps: MapStateToProps, + mapDispatchToProps?: null + ): (component: Com) => ComponentType; + + declare export function connect>( + mapStateToProps?: null, + mapDispatchToProps?: null + ): (component: Com) => ComponentType>>; + + declare export function connect< + Com: ComponentType<*>, + A, + S: Object, + DP: Object, + SP: Object, + RSP: Object, + RDP: Object, + CP: $Diff<$Diff, RSP>, RDP> + >( + mapStateToProps: MapStateToProps, + mapDispatchToProps: MapDispatchToProps + ): (component: Com) => ComponentType; + + declare export function connect< + Com: ComponentType<*>, + A, + OP: Object, + DP: Object, + PR: Object, + CP: $Diff, DP> + >( + mapStateToProps?: null, + mapDispatchToProps: MapDispatchToProps + ): (Com) => ComponentType; + + declare export function connect< + Com: ComponentType<*>, + MDP: Object + >( + mapStateToProps?: null, + mapDispatchToProps: MDP + ): (component: Com) => ComponentType<$Diff, MDP>>; + + declare export function connect< + Com: ComponentType<*>, + S: Object, + SP: Object, + RSP: Object, + MDP: Object, + CP: $Diff, RSP> + >( + mapStateToProps: MapStateToProps, + mapDispatchToPRops: MDP + ): (component: Com) => ComponentType<$Diff & SP>; + + declare export function connect< + Com: ComponentType<*>, + A, + S: Object, + DP: Object, + SP: Object, + RSP: Object, + RDP: Object, + MP: Object, + RMP: Object, + CP: $Diff, RMP> + >( + mapStateToProps: MapStateToProps, + mapDispatchToProps: ?MapDispatchToProps, + mergeProps: MergeProps + ): (component: Com) => ComponentType; + + declare export function connect< + Com: ComponentType<*>, + A, + S: Object, + DP: Object, + SP: Object, + RSP: Object, + RDP: Object, + MDP: Object, + MP: Object, + RMP: Object, + CP: $Diff, RMP> + >( + mapStateToProps: MapStateToProps, + mapDispatchToProps: MDP, + mergeProps: MergeProps + ): (component: Com) => ComponentType; + + declare export function connect, + A, + S: Object, + DP: Object, + SP: Object, + RSP: Object, + RDP: Object, + MP: Object, + RMP: Object + >( + mapStateToProps: ?MapStateToProps, + mapDispatchToProps: ?MapDispatchToProps, + mergeProps: ?MergeProps, + options: ConnectOptions + ): (component: Com) => ComponentType<$Diff, RMP> & SP & DP & MP>; + + declare export function connect, + A, + S: Object, + DP: Object, + SP: Object, + RSP: Object, + RDP: Object, + MDP: Object, + MP: Object, + RMP: Object + >( + mapStateToProps: ?MapStateToProps, + mapDispatchToProps: ?MapDispatchToProps, + mergeProps: MDP, + options: ConnectOptions + ): (component: Com) => ComponentType<$Diff, RMP> & SP & DP & MP>; + + declare export default { + Provider: typeof Provider, + createProvider: typeof createProvider, + connect: typeof connect, }; - - declare type Null = null | void; - - declare function connect( - ...rest: Array // <= workaround for https://github.com/facebook/flow/issues/2360 - ): Connector } & OP>>; - - declare function connect( - mapStateToProps: Null, - mapDispatchToProps: Null, - mergeProps: Null, - options: ConnectOptions - ): Connector } & OP>>; - - declare function connect( - mapStateToProps: MapStateToProps, - mapDispatchToProps: Null, - mergeProps: Null, - options?: ConnectOptions - ): Connector } & OP>>; - - declare function connect( - mapStateToProps: Null, - mapDispatchToProps: MapDispatchToProps, - mergeProps: Null, - options?: ConnectOptions - ): Connector>; - - declare function connect( - mapStateToProps: MapStateToProps, - mapDispatchToProps: MapDispatchToProps, - mergeProps: Null, - options?: ConnectOptions - ): Connector>; - - declare function connect( - mapStateToProps: MapStateToProps, - mapDispatchToProps: Null, - mergeProps: MergeProps, - options?: ConnectOptions - ): Connector; - - declare function connect( - mapStateToProps: MapStateToProps, - mapDispatchToProps: MapDispatchToProps, - mergeProps: MergeProps, - options?: ConnectOptions - ): Connector; } diff --git a/flow-typed/npm/react-test-renderer_v16.x.x.js b/flow-typed/npm/react-test-renderer_v16.x.x.js new file mode 100644 index 00000000..62ed9a2d --- /dev/null +++ b/flow-typed/npm/react-test-renderer_v16.x.x.js @@ -0,0 +1,73 @@ +// flow-typed signature: cd91208a3c81125a801eb305516651a1 +// flow-typed version: 6b56f6033e/react-test-renderer_v16.x.x/flow_>=v0.47.x + +// Type definitions for react-test-renderer 16.x.x +// Ported from: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-test-renderer + +type ReactTestRendererJSON = { + type: string, + props: { [propName: string]: any }, + children: null | ReactTestRendererJSON[] +}; + +type ReactTestRendererTree = ReactTestRendererJSON & { + nodeType: "component" | "host", + instance: any, + rendered: null | ReactTestRendererTree +}; + +type ReactTestInstance = { + instance: any, + type: string, + props: { [propName: string]: any }, + parent: null | ReactTestInstance, + children: Array, + + find(predicate: (node: ReactTestInstance) => boolean): ReactTestInstance, + findByType(type: React$ElementType): ReactTestInstance, + findByProps(props: { [propName: string]: any }): ReactTestInstance, + + findAll( + predicate: (node: ReactTestInstance) => boolean, + options?: { deep: boolean } + ): ReactTestInstance[], + findAllByType( + type: React$ElementType, + options?: { deep: boolean } + ): ReactTestInstance[], + findAllByProps( + props: { [propName: string]: any }, + options?: { deep: boolean } + ): ReactTestInstance[] +}; + +type ReactTestRenderer = { + toJSON(): null | ReactTestRendererJSON, + toTree(): null | ReactTestRendererTree, + unmount(nextElement?: React$Element): void, + update(nextElement: React$Element): void, + getInstance(): null | ReactTestInstance, + root: ReactTestInstance +}; + +type TestRendererOptions = { + createNodeMock(element: React$Element): any +}; + +declare module "react-test-renderer" { + declare function create( + nextElement: React$Element, + options?: TestRendererOptions + ): ReactTestRenderer; +} + +declare module "react-test-renderer/shallow" { + declare export default class ShallowRenderer { + static createRenderer(): ShallowRenderer; + getMountedInstance(): ReactTestInstance; + getRenderOutput>(): E; + getRenderOutput(): React$Element; + render(element: React$Element, context?: any): void; + unmount(): void; + } +} diff --git a/flow-typed/npm/rxjs_v5.0.x.js b/flow-typed/npm/rxjs_v5.0.x.js index 03a0fe78..fb19474e 100644 --- a/flow-typed/npm/rxjs_v5.0.x.js +++ b/flow-typed/npm/rxjs_v5.0.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 05918b9457bf84507ab712b4d1bcbc62 -// flow-typed version: e1a981be2f/rxjs_v5.0.x/flow_>=v0.34.x +// flow-typed signature: ba8bd69b3b15ca5144e860a8ed7c2c4e +// flow-typed version: 5cce1617ae/rxjs_v5.0.x/flow_>=v0.34.x type rxjs$PartialObserver<-T> = | { @@ -373,7 +373,7 @@ declare class rxjs$Observable<+T> { catch( selector: (err: any, caught: rxjs$Observable) => rxjs$Observable - ): rxjs$Observable; + ): rxjs$Observable; concat(...sources: rxjs$Observable[]): rxjs$Observable; @@ -441,6 +441,7 @@ declare class rxjs$Observable<+T> { scheduler?: rxjs$SchedulerClass ): rxjs$Observable; + filter(predicate: typeof Boolean): rxjs$Observable<$NonMaybeType>; filter( predicate: (value: T, index: number) => boolean, thisArg?: any diff --git a/flow-typed/npm/styled-components_v2.x.x.js b/flow-typed/npm/styled-components_v3.x.x.js similarity index 88% rename from flow-typed/npm/styled-components_v2.x.x.js rename to flow-typed/npm/styled-components_v3.x.x.js index 9979862c..175d1752 100644 --- a/flow-typed/npm/styled-components_v2.x.x.js +++ b/flow-typed/npm/styled-components_v3.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 2d5d2167b399d10e16ddc719ea6fc62e -// flow-typed version: 1be5dad600/styled-components_v2.x.x/flow_>=v0.53.x +// flow-typed signature: 8e8f10c16b7f1b7249a269ae3938551e +// flow-typed version: b0f6644f4d/styled-components_v3.x.x/flow_>=v0.57.x // @flow @@ -125,6 +125,7 @@ class Npm$StyledComponents$ServerStyleSheet { collectStyles: (children: any) => React$Node getStyleTags: () => string getStyleElement: () => React$Node + interleaveWithNodeStream: (readableStream: stream$Readable) => stream$Readable } type $npm$styledComponents$StyledComponentsComponentListKeys = @@ -271,39 +272,6 @@ type $npm$styledComponents$StyledComponentsComponentList = {| tspan: $npm$styledComponents$StyledComponentsComponentListValue, |} -declare module 'styled-components' { - declare type Interpolation = $npm$styledComponents$Interpolation; - declare type NameGenerator = $npm$styledComponents$NameGenerator; - declare type Theme = $npm$styledComponents$Theme; - declare type ThemeProviderProps = $npm$styledComponents$ThemeProviderProps; - declare type TaggedTemplateLiteral = $npm$styledComponents$TaggedTemplateLiteral; - declare type ComponentListKeys = $npm$styledComponents$StyledComponentsComponentListKeys; - - declare type ReactComponentFunctional = $npm$styledComponents$ReactComponentFunctional; - declare type ReactComponentFunctionalUndefinedDefaultProps = $npm$styledComponents$ReactComponentFunctionalUndefinedDefaultProps; - declare type ReactComponentClass = $npm$styledComponents$ReactComponentClass; - declare type ReactComponentClassUndefinedDefaultProps = $npm$styledComponents$ReactComponentClassUndefinedDefaultProps; - declare type ReactComponentUnion = $npm$styledComponents$ReactComponentUnion; - declare type ReactComponentIntersection = $npm$styledComponents$ReactComponentIntersection; - declare type ReactComponentStyledStaticProps = $npm$styledComponents$ReactComponentStyledStaticPropsWithComponent; - declare type ReactComponentStyled = $npm$styledComponents$ReactComponentStyled; - declare type ReactComponentStyledTaggedTemplateLiteral = $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteralWithComponent; - - declare module.exports: { - $call: $npm$styledComponents$Call, - - injectGlobal: TaggedTemplateLiteral, - css: TaggedTemplateLiteral>, - keyframes: TaggedTemplateLiteral, - withTheme: $npm$styledComponents$WithTheme, - ServerStyleSheet: typeof Npm$StyledComponents$ServerStyleSheet, - StyleSheetManager: typeof Npm$StyledComponents$StyleSheetManager, - ThemeProvider: typeof Npm$StyledComponents$ThemeProvider, - - ...$npm$styledComponents$StyledComponentsComponentList, - }; -} - type $npm$styledComponents$StyledComponentsNativeComponentListKeys = $Subtype<$Keys<$npm$styledComponents$StyledComponentsNativeComponentList>> @@ -319,6 +287,7 @@ type $npm$styledComponents$StyledComponentsNativeComponentList = {| DrawerLayoutAndroid: $npm$styledComponents$StyledComponentsNativeComponentListValue, FlatList: $npm$styledComponents$StyledComponentsNativeComponentListValue, Image: $npm$styledComponents$StyledComponentsNativeComponentListValue, + ImageBackground: $npm$styledComponents$StyledComponentsNativeComponentListValue, ImageEditor: $npm$styledComponents$StyledComponentsNativeComponentListValue, ImageStore: $npm$styledComponents$StyledComponentsNativeComponentListValue, KeyboardAvoidingView: $npm$styledComponents$StyledComponentsNativeComponentListValue, @@ -360,6 +329,40 @@ type $npm$styledComponents$StyledComponentsNativeComponentList = {| WebView: $npm$styledComponents$StyledComponentsNativeComponentListValue, |} +declare module 'styled-components' { + declare export type Interpolation = $npm$styledComponents$Interpolation; + declare export type NameGenerator = $npm$styledComponents$NameGenerator; + declare export type Theme = $npm$styledComponents$Theme; + declare export type ThemeProviderProps = $npm$styledComponents$ThemeProviderProps; + declare export type TaggedTemplateLiteral = $npm$styledComponents$TaggedTemplateLiteral; + declare export type ComponentListKeys = $npm$styledComponents$StyledComponentsComponentListKeys; + + declare export type ReactComponentFunctional = $npm$styledComponents$ReactComponentFunctional; + declare export type ReactComponentFunctionalUndefinedDefaultProps = $npm$styledComponents$ReactComponentFunctionalUndefinedDefaultProps; + declare export type ReactComponentClass = $npm$styledComponents$ReactComponentClass; + declare export type ReactComponentClassUndefinedDefaultProps = $npm$styledComponents$ReactComponentClassUndefinedDefaultProps; + declare export type ReactComponentUnion = $npm$styledComponents$ReactComponentUnion; + declare export type ReactComponentIntersection = $npm$styledComponents$ReactComponentIntersection; + declare export type ReactComponentStyledStaticProps = $npm$styledComponents$ReactComponentStyledStaticPropsWithComponent; + declare export type ReactComponentStyled = $npm$styledComponents$ReactComponentStyled; + declare export type ReactComponentStyledTaggedTemplateLiteral = $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteralWithComponent; + + declare export var css: TaggedTemplateLiteral>; + declare export var injectGlobal: TaggedTemplateLiteral; + declare export var keyframes: TaggedTemplateLiteral; + declare export var withTheme: $npm$styledComponents$WithTheme; + declare export var ServerStyleSheet: typeof Npm$StyledComponents$ServerStyleSheet; + declare export var StyleSheetManager: typeof Npm$StyledComponents$StyleSheetManager; + declare export var ThemeProvider: typeof Npm$StyledComponents$ThemeProvider; + + declare export default { + $call: $npm$styledComponents$Call, + css: TaggedTemplateLiteral>, + ...$npm$styledComponents$StyledComponentsComponentList, + ...$npm$styledComponents$StyledComponentsNativeComponentList, + } +} + declare module 'styled-components/native' { declare type Interpolation = $npm$styledComponents$Interpolation; declare type NameGenerator = $npm$styledComponents$NameGenerator; @@ -378,14 +381,12 @@ declare module 'styled-components/native' { declare type ReactComponentStyled = $npm$styledComponents$ReactComponentStyled; declare type ReactComponentStyledTaggedTemplateLiteral = $npm$styledComponents$ReactComponentStyledTaggedTemplateLiteralWithComponent; - declare module.exports: { + declare export var keyframes: TaggedTemplateLiteral; + declare export var withTheme: $npm$styledComponents$WithTheme; + declare export var ThemeProvider: typeof Npm$StyledComponents$ThemeProvider; + declare export default { $call: $npm$styledComponents$Call, - css: TaggedTemplateLiteral>, - keyframes: TaggedTemplateLiteral, - withTheme: $npm$styledComponents$WithTheme, - ThemeProvider: typeof Npm$StyledComponents$ThemeProvider, - ...$npm$styledComponents$StyledComponentsNativeComponentList, - }; + } } diff --git a/lib/ExecutionControlEpic/ConsoleFeature/Containers/ConsoleLogsDetails.js b/lib/ExecutionControlEpic/ConsoleFeature/Containers/ConsoleLogsDetails.js index b28d2162..ee5c4786 100644 --- a/lib/ExecutionControlEpic/ConsoleFeature/Containers/ConsoleLogsDetails.js +++ b/lib/ExecutionControlEpic/ConsoleFeature/Containers/ConsoleLogsDetails.js @@ -23,6 +23,9 @@ export function mapDispatchToProps() { return {}; } -export var Connecter = connect(mapStateToProps, mapDispatchToProps); +export var Connecter = connect( + mapStateToProps, + mapDispatchToProps, +); export default Connecter(ConsoleTraveller); diff --git a/lib/ExecutionControlEpic/ControlPanelFeature/Containers/Panel.js b/lib/ExecutionControlEpic/ControlPanelFeature/Containers/Panel.js index 91bd6d21..06f22bfe 100644 --- a/lib/ExecutionControlEpic/ControlPanelFeature/Containers/Panel.js +++ b/lib/ExecutionControlEpic/ControlPanelFeature/Containers/Panel.js @@ -160,10 +160,14 @@ const getTypeSelection = (plan: PlanConfig, state) => { }; export default compose( - withState("selection", "setSelection", (): DisplayParams => ({ - plan: null, - mode: null, - })), + withState( + "selection", + "setSelection", + (): DisplayParams => ({ + plan: null, + mode: null, + }), + ), withProps(({ selection }) => ({ plan: selection.plan, getExecution: selectedTask => diff --git a/lib/ExecutionControlEpic/ControlPanelFeature/Presenters/Panel.js b/lib/ExecutionControlEpic/ControlPanelFeature/Presenters/Panel.js index 64c8eb2e..4a579db6 100644 --- a/lib/ExecutionControlEpic/ControlPanelFeature/Presenters/Panel.js +++ b/lib/ExecutionControlEpic/ControlPanelFeature/Presenters/Panel.js @@ -91,4 +91,7 @@ const Panel = ({ ); }; -export default compose(withMouseOverPanel, withToggleControl)(Panel); +export default compose( + withMouseOverPanel, + withToggleControl, +)(Panel); diff --git a/lib/ExecutionControlEpic/DevToolsSummaryFeature/Containers/DevToolsWithDiagnostics.js b/lib/ExecutionControlEpic/DevToolsSummaryFeature/Containers/DevToolsWithDiagnostics.js index 38026338..b79737b6 100644 --- a/lib/ExecutionControlEpic/DevToolsSummaryFeature/Containers/DevToolsWithDiagnostics.js +++ b/lib/ExecutionControlEpic/DevToolsSummaryFeature/Containers/DevToolsWithDiagnostics.js @@ -214,6 +214,9 @@ export function mapDispatchToProps( }; } -export var Connecter = connect(mapStateToProps, mapDispatchToProps); +export var Connecter = connect( + mapStateToProps, + mapDispatchToProps, +); export default compose(Connecter)(DevToolsWithDiagnostics); diff --git a/lib/ExecutionControlEpic/DevToolsSummaryFeature/Containers/PinnedPlans.js b/lib/ExecutionControlEpic/DevToolsSummaryFeature/Containers/PinnedPlans.js index 00d84e0c..803431f6 100644 --- a/lib/ExecutionControlEpic/DevToolsSummaryFeature/Containers/PinnedPlans.js +++ b/lib/ExecutionControlEpic/DevToolsSummaryFeature/Containers/PinnedPlans.js @@ -152,6 +152,9 @@ export function mapDispatchToProps( }; } -export const Connecter = connect(mapStateToProps, mapDispatchToProps); +export const Connecter = connect( + mapStateToProps, + mapDispatchToProps, +); export default compose(Connecter)(DevToolsWithDiagnostics); diff --git a/lib/ExecutionControlEpic/DevToolsSummaryFeature/Presenters/ParticleSystem.js b/lib/ExecutionControlEpic/DevToolsSummaryFeature/Presenters/ParticleSystem.js index 05bbaba1..e1d14843 100644 --- a/lib/ExecutionControlEpic/DevToolsSummaryFeature/Presenters/ParticleSystem.js +++ b/lib/ExecutionControlEpic/DevToolsSummaryFeature/Presenters/ParticleSystem.js @@ -86,4 +86,7 @@ export function ParticleSystem({ ); } -export default compose(particlesStore, particleLifecycle)(ParticleSystem); +export default compose( + particlesStore, + particleLifecycle, +)(ParticleSystem); diff --git a/lib/ExecutionControlEpic/DiagnosticsFeature/Containers/DiagnosticDetails.js b/lib/ExecutionControlEpic/DiagnosticsFeature/Containers/DiagnosticDetails.js index 72110ae8..75273339 100644 --- a/lib/ExecutionControlEpic/DiagnosticsFeature/Containers/DiagnosticDetails.js +++ b/lib/ExecutionControlEpic/DiagnosticsFeature/Containers/DiagnosticDetails.js @@ -26,6 +26,9 @@ export function mapDispatchToProps() { return {}; } -export var Connecter = connect(mapStateToProps, mapDispatchToProps); +export var Connecter = connect( + mapStateToProps, + mapDispatchToProps, +); export default Connecter(DiagnosticDetails); diff --git a/lib/ExecutionControlEpic/LanguageServerProtocolFeature/Model/NodeProcessStrategy.js b/lib/ExecutionControlEpic/LanguageServerProtocolFeature/Model/NodeProcessStrategy.js index ab30a566..3eb98f6f 100644 --- a/lib/ExecutionControlEpic/LanguageServerProtocolFeature/Model/NodeProcessStrategy.js +++ b/lib/ExecutionControlEpic/LanguageServerProtocolFeature/Model/NodeProcessStrategy.js @@ -31,12 +31,13 @@ export default class NodeProcessStrategy extends Strategy { ); if (this.child != null) { - this.child.on("message", data => this.emit("data", { data })); - this.child.on("close", exitCode => this.emit("exit", { code: exitCode })); - this.child.on("error", err => this.emit("error", { error: err })); + let child = this.child; + child.on("message", data => this.emit("data", { data })); + child.on("close", exitCode => this.emit("exit", { code: exitCode })); + child.on("error", err => this.emit("error", { error: err })); this.setupLanguageClient({ - inStream: this.child.stdout, - outStream: this.child.stdin, + inStream: child.stdout, + outStream: child.stdin, }); } } diff --git a/lib/ExecutionControlEpic/LanguageServerProtocolFeature/Model/ShellStrategy.js b/lib/ExecutionControlEpic/LanguageServerProtocolFeature/Model/ShellStrategy.js index 5d68bd36..4c390876 100644 --- a/lib/ExecutionControlEpic/LanguageServerProtocolFeature/Model/ShellStrategy.js +++ b/lib/ExecutionControlEpic/LanguageServerProtocolFeature/Model/ShellStrategy.js @@ -33,13 +33,14 @@ export default class ShellStrategy extends Strategy { ); if (this.child != null) { - this.child.stdout.on("data", data => this.emit("data", { data })); - this.child.stderr.on("data", data => this.emit("data", { data })); - this.child.on("close", exitCode => this.emit("exit", { code: exitCode })); - this.child.on("error", err => this.emit("error", { error: err })); + let child = this.child; + child.stdout.on("data", data => this.emit("data", { data })); + child.stderr.on("data", data => this.emit("data", { data })); + child.on("close", exitCode => this.emit("exit", { code: exitCode })); + child.on("error", err => this.emit("error", { error: err })); this.setupLanguageClient({ - inStream: this.child.stdout, - outStream: this.child.stdin, + inStream: child.stdout, + outStream: child.stdin, }); } } diff --git a/lib/ExecutionControlEpic/LanguageServerProtocolFeature/Model/TerminalStrategy.js b/lib/ExecutionControlEpic/LanguageServerProtocolFeature/Model/TerminalStrategy.js index ec90eceb..0d22b7e8 100644 --- a/lib/ExecutionControlEpic/LanguageServerProtocolFeature/Model/TerminalStrategy.js +++ b/lib/ExecutionControlEpic/LanguageServerProtocolFeature/Model/TerminalStrategy.js @@ -34,22 +34,32 @@ export default class TerminalStrategy extends Strategy { ); if (this.child != null) { - this.child.on("data", (data: any): void => { - this.emit("data", { data }); - }); - this.child.on("exit", (exitCode: number): void => { - this.emit("exit", { code: exitCode }); - }); - this.child.on("error", (err: any): void => { - this.emit("error", { error: err }); - }); + let child = this.child; + child.on( + "data", + (data: any): void => { + this.emit("data", { data }); + }, + ); + child.on( + "exit", + (exitCode: number): void => { + this.emit("exit", { code: exitCode }); + }, + ); + child.on( + "error", + (err: any): void => { + this.emit("error", { error: err }); + }, + ); this.on("terminal/input", ({ data }) => { - this.child.write(data); + child.write(data); }); this.on("terminal/resize", ({ cols, rows }) => { - this.child.resize(cols, rows); + child.resize(cols, rows); }); } } diff --git a/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/DevToolPlans.js b/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/DevToolPlans.js index 2705e38a..4036ddb2 100644 --- a/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/DevToolPlans.js +++ b/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/DevToolPlans.js @@ -63,6 +63,9 @@ export function mapDispatchToProps( }; } -export var Connecter = connect(mapStateToProps, mapDispatchToProps); +export var Connecter = connect( + mapStateToProps, + mapDispatchToProps, +); export default Connecter(Plans); diff --git a/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/PinnedPlans.js b/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/PinnedPlans.js index 9736792d..ea32d4c7 100644 --- a/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/PinnedPlans.js +++ b/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/PinnedPlans.js @@ -59,6 +59,9 @@ export function mapDispatchToProps( }; } -export var Connecter = connect(mapStateToProps, mapDispatchToProps); +export var Connecter = connect( + mapStateToProps, + mapDispatchToProps, +); export default Connecter(Plans); diff --git a/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/PlanConfigFileInputField.js b/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/PlanConfigFileInputField.js index d0c6ea9b..71b88ba4 100644 --- a/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/PlanConfigFileInputField.js +++ b/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/PlanConfigFileInputField.js @@ -36,6 +36,9 @@ export function mapDispatchToProps( }; } -export var Connecter = connect(mapStateToProps, mapDispatchToProps); +export var Connecter = connect( + mapStateToProps, + mapDispatchToProps, +); export default Connecter(PlanConfigFileInputField); diff --git a/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/PlanConfigurer.js b/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/PlanConfigurer.js index d3f77697..c0f04965 100644 --- a/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/PlanConfigurer.js +++ b/lib/ExecutionControlEpic/PlanConfigurationFeature/Containers/PlanConfigurer.js @@ -90,7 +90,10 @@ export function mapDispatchToProps( }; } -export var Connecter = connect(mapStateToProps, mapDispatchToProps); +export var Connecter = connect( + mapStateToProps, + mapDispatchToProps, +); const ValidationUtils = { composeValidation, diff --git a/lib/ExecutionControlEpic/PlanConfigurationFeature/Fake/fakeElectron.js b/lib/ExecutionControlEpic/PlanConfigurationFeature/Fake/fakeElectron.js index 07c67510..daa82a27 100644 --- a/lib/ExecutionControlEpic/PlanConfigurationFeature/Fake/fakeElectron.js +++ b/lib/ExecutionControlEpic/PlanConfigurationFeature/Fake/fakeElectron.js @@ -17,16 +17,16 @@ class MyMenuItem { let Menu = MyMenu; Menu.prototype.listReturn = []; -Menu.prototype.append = jest.genMockFn(); +Menu.prototype.append = jest.fn(); Menu.prototype.append.mockImplementation(function(menuItem) { listReturn.push(menuItem); this.listReturn.push(menuItem); }); -Menu.prototype.popup = jest.genMockFn(); +Menu.prototype.popup = jest.fn(); Menu.prototype.popup.mockImplementation(function() { return this.listReturn; }); -Menu.prototype.reset = jest.genMockFn(); +Menu.prototype.reset = jest.fn(); Menu.prototype.reset.mockImplementation(function() { this.listReturn = []; listReturn = []; diff --git a/package.json b/package.json index ed3c1929..68668487 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "repository": "https://github.com/alanzanattadev/atom-molecule-dev-environment", "license": "MIT", "engines": { - "atom": ">=1.17.0 <2.0.0" + "atom": ">=1.27.0", + "node": ">=7.9.0" }, "package-deps": [ "linter" @@ -42,20 +43,20 @@ "babel-jest": "^21.2.0", "babel-loader": "^7.1.2", "babel-plugin-add-module-exports": "^0.2.1", + "babel-plugin-syntax-object-rest-spread": "^6.13.0", + "babel-plugin-transform-do-expressions": "^6.22.0", + "babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-polyfill": "^6.26.0", "babel-preset-env": "^1.6.1", "babel-preset-flow": "^6.23.0", "babel-preset-react": "^6.23.0", - "babel-plugin-syntax-object-rest-spread": "^6.13.0", - "babel-plugin-transform-do-expressions": "^6.22.0", - "babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-register": "^6.26.0", "classnames": "^2.2.5", "color-hash": "^1.0.3", "fb-watchman": "^2.0.0", "flow-language-server": "^0.5.0", "immutable": "^3.8.1", - "jest-cli": "^22.4.4", + "jest-cli": "^23.1.0", "less": "^3.0.4", "mocha": "^5.1.1", "moment": "^2.19.2", @@ -65,8 +66,6 @@ "nullthrows": "^1.0.1", "radium": "^0.23.0", "react": "^16.4.0", - "react-dnd": "^2.6.0", - "react-dnd-html5-backend": "^2.6.0", "react-dom": "^16.4.0", "react-forms-state": "github:alanzanattadev/react-forms-state", "react-image-fallback": "^7.0.1", @@ -94,10 +93,8 @@ "eslint-plugin-flowtype": "^2.39.1", "eslint-plugin-prettier": "^2.3.1", "eslint-plugin-react": "^7.4.0", - "flow-bin": "^0.72.0", - "flow-typed": "^2.4.0", - "jest": "^22.4.4", - "prettier": "^1.12.1", + "flow-bin": "^0.75.0", + "prettier": "^1.13.5", "react-test-renderer": "^16.2.0", "redux-mock-store": "^1.3.0", "spectron": "^3.8.0", diff --git a/yarn.lock b/yarn.lock index 82c08f50..c97674f5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -135,7 +135,7 @@ ajv-keywords@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762" -ajv-keywords@^3.0.0, ajv-keywords@^3.1.0: +ajv-keywords@^3.1.0: version "3.2.0" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.2.0.tgz#e86b819c602cf8821ad637413698f1dec021847a" @@ -155,7 +155,7 @@ ajv@^5.1.0, ajv@^5.2.3, ajv@^5.3.0: fast-json-stable-stringify "^2.0.0" json-schema-traverse "^0.3.0" -ajv@^6.0.1, ajv@^6.1.0: +ajv@^6.1.0: version "6.5.0" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.5.0.tgz#4c8affdf80887d8f132c9c52ab8a2dc4d0b7b24c" dependencies: @@ -332,7 +332,7 @@ arrify@^1.0.0, arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" -asap@^2.0.6, asap@~2.0.3: +asap@~2.0.3: version "2.0.6" resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" @@ -657,12 +657,12 @@ babel-jest@^21.2.0: babel-plugin-istanbul "^4.0.0" babel-preset-jest "^21.2.0" -babel-jest@^22.4.4: - version "22.4.4" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-22.4.4.tgz#977259240420e227444ebe49e226a61e49ea659d" +babel-jest@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-23.0.1.tgz#bbad3bf523fb202da05ed0a6540b48c84eed13a6" dependencies: - babel-plugin-istanbul "^4.1.5" - babel-preset-jest "^22.4.4" + babel-plugin-istanbul "^4.1.6" + babel-preset-jest "^23.0.1" babel-loader@^7.1.2: version "7.1.2" @@ -688,7 +688,7 @@ babel-plugin-check-es2015-constants@^6.22.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-istanbul@^4.0.0, babel-plugin-istanbul@^4.1.5: +babel-plugin-istanbul@^4.0.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" dependencies: @@ -701,9 +701,9 @@ babel-plugin-jest-hoist@^21.2.0: version "21.2.0" resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-21.2.0.tgz#2cef637259bd4b628a6cace039de5fcd14dbb006" -babel-plugin-jest-hoist@^22.4.4: - version "22.4.4" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-22.4.4.tgz#b9851906eab34c7bf6f8c895a2b08bea1a844c0b" +babel-plugin-jest-hoist@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.0.1.tgz#eaa11c964563aea9c21becef2bdf7853f7f3c148" babel-plugin-syntax-async-functions@^6.8.0: version "6.13.0" @@ -1035,11 +1035,11 @@ babel-preset-jest@^21.2.0: babel-plugin-jest-hoist "^21.2.0" babel-plugin-syntax-object-rest-spread "^6.13.0" -babel-preset-jest@^22.4.4: - version "22.4.4" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-22.4.4.tgz#ec9fbd8bcd7dfd24b8b5320e0e688013235b7c39" +babel-preset-jest@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-23.0.1.tgz#631cc545c6cf021943013bcaf22f45d87fe62198" dependencies: - babel-plugin-jest-hoist "^22.4.4" + babel-plugin-jest-hoist "^23.0.1" babel-plugin-syntax-object-rest-spread "^6.13.0" babel-preset-react@^6.23.0: @@ -1143,10 +1143,6 @@ bcrypt-pbkdf@^1.0.0: dependencies: tweetnacl "^0.14.3" -big-integer@^1.6.17: - version "1.6.28" - resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.28.tgz#8cef0fda3ccde8759c2c66efcfacc35aea658283" - big.js@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.1.3.tgz#4cada2193652eb3ca9ec8e55c9015669c9806978" @@ -1155,13 +1151,6 @@ binary-extensions@^1.0.0: version "1.8.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.8.0.tgz#48ec8d16df4377eae5fa5884682480af4d95c774" -binary@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/binary/-/binary-0.3.0.tgz#9f60553bc5ce8c3386f3b553cff47462adecaa79" - dependencies: - buffers "~0.1.1" - chainsaw "~0.1.0" - bl@^1.0.0: version "1.2.2" resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.2.tgz#a160911717103c07410cef63ef51b397c025af9c" @@ -1175,10 +1164,6 @@ block-stream@*: dependencies: inherits "~2.0.0" -bluebird@~3.4.1: - version "3.4.7" - resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.4.7.tgz#f72d760be09b7f76d08ed8fae98b289a8d05fab3" - bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: version "4.11.8" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" @@ -1356,14 +1341,6 @@ buffer-from@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.0.0.tgz#4cb8832d23612589b0406e9e2956c17f06fdf531" -buffer-indexof-polyfill@~1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/buffer-indexof-polyfill/-/buffer-indexof-polyfill-1.0.1.tgz#a9fb806ce8145d5428510ce72f278bb363a638bf" - -buffer-shims@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" - buffer-xor@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" @@ -1383,10 +1360,6 @@ buffer@^5.0.3: base64-js "^1.0.2" ieee754 "^1.1.4" -buffers@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/buffers/-/buffers-0.1.1.tgz#b24579c3bed4d6d396aeee6d9a8ae7f5482ab7bb" - builtin-modules@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" @@ -1442,10 +1415,6 @@ camelcase@^2.0.0, camelcase@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" -camelcase@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" - camelcase@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" @@ -1478,12 +1447,6 @@ chai-nightwatch@~0.1.x: assertion-error "1.0.0" deep-eql "0.1.3" -chainsaw@~0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/chainsaw/-/chainsaw-0.1.0.tgz#5eab50b28afe58074d0d58291388828b5e5fbc98" - dependencies: - traverse ">=0.3.0 <0.4" - chalk@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" @@ -1524,10 +1487,6 @@ chardet@^0.4.0: version "0.4.2" resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2" -charenc@~0.0.1: - version "0.0.2" - resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667" - cheerio@^1.0.0-rc.2: version "1.0.0-rc.2" resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-1.0.0-rc.2.tgz#4b9f53a81b27e4d5dac31c0ffd0cfa03cc6830db" @@ -1686,10 +1645,6 @@ colors@0.5.x: version "0.5.1" resolved "https://registry.yarnpkg.com/colors/-/colors-0.5.1.tgz#7d0023eaeb154e8ee9fce75dcb923d0ed1667774" -colors@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" - combined-stream@1.0.6, combined-stream@^1.0.5, combined-stream@~1.0.5: version "1.0.6" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" @@ -1845,10 +1800,6 @@ cross-spawn@^5.0.1, cross-spawn@^5.1.0: shebang-command "^1.2.0" which "^1.2.9" -crypt@~0.0.1: - version "0.0.2" - resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b" - cryptiles@2.x.x: version "2.0.5" resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" @@ -2011,12 +1962,6 @@ 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" -decompress-response@^3.2.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" - dependencies: - mimic-response "^1.0.0" - deep-eql@0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-0.1.3.tgz#ef558acab8de25206cd713906d74e56930eb69f2" @@ -2144,19 +2089,6 @@ discontinuous-range@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/discontinuous-range/-/discontinuous-range-1.0.0.tgz#e38331f0844bba49b9a9cb71c771585aab1bc65a" -disposables@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/disposables/-/disposables-1.0.1.tgz#064727a25b54f502bd82b89aa2dfb8df9f1b39e3" - -dnd-core@^2.6.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/dnd-core/-/dnd-core-2.6.0.tgz#12bad66d58742c6e5f7cf2943fb6859440f809c4" - dependencies: - asap "^2.0.6" - invariant "^2.0.0" - lodash "^4.2.0" - redux "^3.7.1" - doctrine@^2.0.0, doctrine@^2.0.2: version "2.1.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" @@ -2205,16 +2137,6 @@ domutils@1.5.1, domutils@^1.5.1: dom-serializer "0" domelementtype "1" -duplexer2@~0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" - dependencies: - readable-stream "^2.0.2" - -duplexer3@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" - ecc-jsbn@~0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" @@ -2686,16 +2608,16 @@ expand-range@^1.8.1: dependencies: fill-range "^2.1.0" -expect@^22.4.0: - version "22.4.3" - resolved "https://registry.yarnpkg.com/expect/-/expect-22.4.3.tgz#d5a29d0a0e1fb2153557caef2674d4547e914674" +expect@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-23.1.0.tgz#bfdfd57a2a20170d875999ee9787cc71f01c205f" dependencies: ansi-styles "^3.2.0" - jest-diff "^22.4.3" - jest-get-type "^22.4.3" - jest-matcher-utils "^22.4.3" - jest-message-util "^22.4.3" - jest-regex-util "^22.4.3" + jest-diff "^23.0.1" + jest-get-type "^22.1.0" + jest-matcher-utils "^23.0.1" + jest-message-util "^23.1.0" + jest-regex-util "^23.0.0" extend-shallow@^2.0.1: version "2.0.1" @@ -2897,9 +2819,9 @@ flat-cache@^1.2.1: graceful-fs "^4.1.2" write "^0.2.1" -flow-bin@^0.72.0: - version "0.72.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.72.0.tgz#12051180fb2db7ccb728fefe67c77e955e92a44d" +flow-bin@^0.75.0: + version "0.75.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.75.0.tgz#b96d1ee99d3b446a3226be66b4013224ce9df260" flow-language-server@^0.5.0: version "0.5.0" @@ -2920,26 +2842,6 @@ flow-language-server@^0.5.0: vscode-uri "^1.0.1" yargs "^8.0.2" -flow-typed@^2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/flow-typed/-/flow-typed-2.4.0.tgz#3d2f48cf85df29df3bca6745b623726496ff4788" - dependencies: - babel-polyfill "^6.26.0" - colors "^1.1.2" - fs-extra "^5.0.0" - github "0.2.4" - glob "^7.1.2" - got "^7.1.0" - md5 "^2.1.0" - mkdirp "^0.5.1" - rimraf "^2.6.2" - semver "^5.5.0" - table "^4.0.2" - through "^2.3.8" - unzipper "^0.8.11" - which "^1.3.0" - yargs "^4.2.0" - flow-versions@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/flow-versions/-/flow-versions-0.3.1.tgz#99e3f4ea97a8e97ae2d81194e80812b0c6562be2" @@ -3009,14 +2911,6 @@ fs-extra@^2.0.0: graceful-fs "^4.1.2" jsonfile "^2.1.0" -fs-extra@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-5.0.0.tgz#414d0110cdd06705734d055652c5411260c31abd" - dependencies: - graceful-fs "^4.1.2" - jsonfile "^4.0.0" - universalify "^0.1.0" - fs-minipass@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d" @@ -3062,7 +2956,7 @@ fstream-ignore@^1.0.5: inherits "2" minimatch "^3.0.0" -fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2, fstream@~1.0.10: +fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: version "1.0.11" resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" dependencies: @@ -3158,12 +3052,6 @@ getpass@^0.1.1: dependencies: assert-plus "^1.0.0" -github@0.2.4: - version "0.2.4" - resolved "https://registry.yarnpkg.com/github/-/github-0.2.4.tgz#24fa7f0e13fa11b946af91134c51982a91ce538b" - dependencies: - mime "^1.2.11" - glob-base@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" @@ -3254,25 +3142,6 @@ globule@^1.0.0: lodash "~4.17.4" minimatch "~3.0.2" -got@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/got/-/got-7.1.0.tgz#05450fd84094e6bbea56f451a43a9c289166385a" - dependencies: - decompress-response "^3.2.0" - duplexer3 "^0.1.4" - get-stream "^3.0.0" - is-plain-obj "^1.1.0" - is-retry-allowed "^1.0.0" - is-stream "^1.0.0" - isurl "^1.0.0-alpha5" - lowercase-keys "^1.0.0" - p-cancelable "^0.3.0" - p-timeout "^1.1.1" - safe-buffer "^5.0.1" - timed-out "^4.0.0" - url-parse-lax "^1.0.0" - url-to-options "^1.0.1" - graceful-fs@^4.1.0, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.4, graceful-fs@^4.1.6: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" @@ -3343,20 +3212,10 @@ has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" -has-symbol-support-x@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/has-symbol-support-x/-/has-symbol-support-x-1.4.1.tgz#66ec2e377e0c7d7ccedb07a3a84d77510ff1bc4c" - has-symbols@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" -has-to-string-tag-x@^1.2.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz#a045ab383d7b4b2012a00148ab0aa5f290044d4d" - dependencies: - has-symbol-support-x "^1.4.1" - has-unicode@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" @@ -3446,14 +3305,14 @@ hoek@4.x.x: version "4.2.1" resolved "https://registry.yarnpkg.com/hoek/-/hoek-4.2.1.tgz#9634502aa12c445dd5a7c5734b572bb8738aacbb" -hoist-non-react-statics@^2.1.0, hoist-non-react-statics@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.0.tgz#d2ca2dfc19c5a91c5a6615ce8e564ef0347e2a40" - hoist-non-react-statics@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.3.1.tgz#343db84c6018c650778898240135a1420ee22ce0" +hoist-non-react-statics@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.0.tgz#d2ca2dfc19c5a91c5a6615ce8e564ef0347e2a40" + 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" @@ -3644,7 +3503,7 @@ interpret@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614" -invariant@2.2.2, invariant@^2.0.0, invariant@^2.1.0, invariant@^2.2.0: +invariant@2.2.2, invariant@^2.0.0, invariant@^2.2.0: version "2.2.2" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" dependencies: @@ -3698,10 +3557,6 @@ is-buffer@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" -is-buffer@~1.1.1: - version "1.1.5" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc" - is-builtin-module@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" @@ -3850,10 +3705,6 @@ is-number@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" -is-object@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.1.tgz#8952688c5ec2ffd6b03ecc85e769e02903083470" - is-odd@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-odd/-/is-odd-2.0.0.tgz#7646624671fd7ea558ccd9a2795182f2958f1b24" @@ -3876,10 +3727,6 @@ is-path-inside@^1.0.0: dependencies: path-is-inside "^1.0.1" -is-plain-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" - is-plain-object@^2.0.1, 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" @@ -3908,11 +3755,7 @@ is-resolvable@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.0.1.tgz#acca1cd36dbe44b974b924321555a70ba03b1cf4" -is-retry-allowed@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" - -is-stream@^1.0.0, is-stream@^1.0.1, is-stream@^1.1.0: +is-stream@^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" @@ -3973,7 +3816,7 @@ isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" -istanbul-api@^1.1.14: +istanbul-api@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.3.1.tgz#4c3b05d18c0016d1022e079b98dc82c40f488954" dependencies: @@ -3990,7 +3833,7 @@ istanbul-api@^1.1.14: mkdirp "^0.5.1" once "^1.4.0" -istanbul-lib-coverage@^1.1.1, istanbul-lib-coverage@^1.1.2, istanbul-lib-coverage@^1.2.0: +istanbul-lib-coverage@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.0.tgz#f7d8f2e42b97e37fe796114cb0f9d68b5e3a4341" @@ -4000,7 +3843,7 @@ istanbul-lib-hook@^1.2.0: dependencies: append-transform "^0.4.0" -istanbul-lib-instrument@^1.10.1, istanbul-lib-instrument@^1.8.0: +istanbul-lib-instrument@^1.10.1: version "1.10.1" resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.1.tgz#724b4b6caceba8692d3f1f9d0727e279c401af7b" dependencies: @@ -4021,16 +3864,6 @@ istanbul-lib-report@^1.1.4: path-parse "^1.0.5" supports-color "^3.1.2" -istanbul-lib-source-maps@^1.2.1: - version "1.2.3" - resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.3.tgz#20fb54b14e14b3fb6edb6aca3571fd2143db44e6" - dependencies: - debug "^3.1.0" - istanbul-lib-coverage "^1.1.2" - mkdirp "^0.5.1" - rimraf "^2.6.1" - source-map "^0.5.3" - istanbul-lib-source-maps@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.4.tgz#cc7ccad61629f4efff8e2f78adb8c522c9976ec7" @@ -4047,22 +3880,15 @@ istanbul-reports@^1.3.0: dependencies: handlebars "^4.0.3" -isurl@^1.0.0-alpha5: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isurl/-/isurl-1.0.0.tgz#b27f4f49f3cdaa3ea44a0a5b7f3462e6edc39d67" - dependencies: - has-to-string-tag-x "^1.2.0" - is-object "^1.0.1" - -jest-changed-files@^22.2.0: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-22.4.3.tgz#8882181e022c38bd46a2e4d18d44d19d90a90fb2" +jest-changed-files@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-23.0.1.tgz#f79572d0720844ea5df84c2a448e862c2254f60c" dependencies: throat "^4.0.0" -jest-cli@^22.4.4: - version "22.4.4" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-22.4.4.tgz#68cd2a2aae983adb1e6638248ca21082fd6d9e90" +jest-cli@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-23.1.0.tgz#eb8bdd4ce0d15250892e31ad9b69bc99d2a8f6bf" dependencies: ansi-escapes "^3.0.0" chalk "^2.0.1" @@ -4071,24 +3897,25 @@ jest-cli@^22.4.4: graceful-fs "^4.1.11" import-local "^1.0.0" is-ci "^1.0.10" - istanbul-api "^1.1.14" - istanbul-lib-coverage "^1.1.1" - istanbul-lib-instrument "^1.8.0" - istanbul-lib-source-maps "^1.2.1" - jest-changed-files "^22.2.0" - jest-config "^22.4.4" - jest-environment-jsdom "^22.4.1" + 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.0.1" + jest-config "^23.1.0" + jest-environment-jsdom "^23.1.0" jest-get-type "^22.1.0" - jest-haste-map "^22.4.2" - jest-message-util "^22.4.0" - jest-regex-util "^22.1.0" - jest-resolve-dependencies "^22.1.0" - jest-runner "^22.4.4" - jest-runtime "^22.4.4" - jest-snapshot "^22.4.0" - jest-util "^22.4.1" - jest-validate "^22.4.4" - jest-worker "^22.2.2" + jest-haste-map "^23.1.0" + jest-message-util "^23.1.0" + jest-regex-util "^23.0.0" + jest-resolve-dependencies "^23.0.1" + jest-runner "^23.1.0" + jest-runtime "^23.1.0" + jest-snapshot "^23.0.1" + jest-util "^23.1.0" + jest-validate "^23.0.1" + jest-watcher "^23.1.0" + jest-worker "^23.0.1" micromatch "^2.3.11" node-notifier "^5.2.1" realpath-native "^1.0.0" @@ -4097,107 +3924,116 @@ jest-cli@^22.4.4: string-length "^2.0.0" strip-ansi "^4.0.0" which "^1.2.12" - yargs "^10.0.3" + yargs "^11.0.0" -jest-config@^22.4.4: - version "22.4.4" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-22.4.4.tgz#72a521188720597169cd8b4ff86934ef5752d86a" +jest-config@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-23.1.0.tgz#708ca0f431d356ee424fb4895d3308006bdd8241" dependencies: + babel-core "^6.0.0" + babel-jest "^23.0.1" chalk "^2.0.1" glob "^7.1.1" - jest-environment-jsdom "^22.4.1" - jest-environment-node "^22.4.1" + jest-environment-jsdom "^23.1.0" + jest-environment-node "^23.1.0" jest-get-type "^22.1.0" - jest-jasmine2 "^22.4.4" - jest-regex-util "^22.1.0" - jest-resolve "^22.4.2" - jest-util "^22.4.1" - jest-validate "^22.4.4" - pretty-format "^22.4.0" - -jest-diff@^22.4.0, jest-diff@^22.4.3: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-22.4.3.tgz#e18cc3feff0aeef159d02310f2686d4065378030" + jest-jasmine2 "^23.1.0" + jest-regex-util "^23.0.0" + jest-resolve "^23.1.0" + jest-util "^23.1.0" + jest-validate "^23.0.1" + pretty-format "^23.0.1" + +jest-diff@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-23.0.1.tgz#3d49137cee12c320a4b4d2b4a6fa6e82d491a16a" dependencies: chalk "^2.0.1" diff "^3.2.0" - jest-get-type "^22.4.3" - pretty-format "^22.4.3" + jest-get-type "^22.1.0" + pretty-format "^23.0.1" jest-docblock@^21.0.0: version "21.2.0" resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-21.2.0.tgz#51529c3b30d5fd159da60c27ceedc195faf8d414" -jest-docblock@^22.4.0, jest-docblock@^22.4.3: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-22.4.3.tgz#50886f132b42b280c903c592373bb6e93bb68b19" +jest-docblock@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-23.0.1.tgz#deddd18333be5dc2415260a04ef3fce9276b5725" dependencies: detect-newline "^2.1.0" -jest-environment-jsdom@^22.4.1: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-22.4.3.tgz#d67daa4155e33516aecdd35afd82d4abf0fa8a1e" +jest-each@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-23.1.0.tgz#16146b592c354867a5ae5e13cdf15c6c65b696c6" + dependencies: + chalk "^2.0.1" + pretty-format "^23.0.1" + +jest-environment-jsdom@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-23.1.0.tgz#85929914e23bed3577dac9755f4106d0697c479c" dependencies: - jest-mock "^22.4.3" - jest-util "^22.4.3" + jest-mock "^23.1.0" + jest-util "^23.1.0" jsdom "^11.5.1" -jest-environment-node@^22.4.1: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-22.4.3.tgz#54c4eaa374c83dd52a9da8759be14ebe1d0b9129" +jest-environment-node@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-23.1.0.tgz#452c0bf949cfcbbacda1e1762eeed70bc784c7d5" dependencies: - jest-mock "^22.4.3" - jest-util "^22.4.3" + jest-mock "^23.1.0" + jest-util "^23.1.0" -jest-get-type@^22.1.0, jest-get-type@^22.4.3: +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" -jest-haste-map@^22.4.2: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-22.4.3.tgz#25842fa2ba350200767ac27f658d58b9d5c2e20b" +jest-haste-map@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-23.1.0.tgz#18e6c7d5a8d27136f91b7d9852f85de0c7074c49" dependencies: fb-watchman "^2.0.0" graceful-fs "^4.1.11" - jest-docblock "^22.4.3" - jest-serializer "^22.4.3" - jest-worker "^22.4.3" + jest-docblock "^23.0.1" + jest-serializer "^23.0.1" + jest-worker "^23.0.1" micromatch "^2.3.11" sane "^2.0.0" -jest-jasmine2@^22.4.4: - version "22.4.4" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-22.4.4.tgz#c55f92c961a141f693f869f5f081a79a10d24e23" +jest-jasmine2@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-23.1.0.tgz#4afab31729b654ddcd2b074add849396f13b30b8" dependencies: chalk "^2.0.1" co "^4.6.0" - expect "^22.4.0" - graceful-fs "^4.1.11" + expect "^23.1.0" is-generator-fn "^1.0.0" - jest-diff "^22.4.0" - jest-matcher-utils "^22.4.0" - jest-message-util "^22.4.0" - jest-snapshot "^22.4.0" - jest-util "^22.4.1" - source-map-support "^0.5.0" - -jest-leak-detector@^22.4.0: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-22.4.3.tgz#2b7b263103afae8c52b6b91241a2de40117e5b35" + jest-diff "^23.0.1" + jest-each "^23.1.0" + jest-matcher-utils "^23.0.1" + jest-message-util "^23.1.0" + jest-snapshot "^23.0.1" + jest-util "^23.1.0" + pretty-format "^23.0.1" + +jest-leak-detector@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-23.0.1.tgz#9dba07505ac3495c39d3ec09ac1e564599e861a0" dependencies: - pretty-format "^22.4.3" + pretty-format "^23.0.1" -jest-matcher-utils@^22.4.0, jest-matcher-utils@^22.4.3: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-22.4.3.tgz#4632fe428ebc73ebc194d3c7b65d37b161f710ff" +jest-matcher-utils@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-23.0.1.tgz#0c6c0daedf9833c2a7f36236069efecb4c3f6e5f" dependencies: chalk "^2.0.1" - jest-get-type "^22.4.3" - pretty-format "^22.4.3" + jest-get-type "^22.1.0" + pretty-format "^23.0.1" -jest-message-util@^22.4.0, jest-message-util@^22.4.3: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-22.4.3.tgz#cf3d38aafe4befddbfc455e57d65d5239e399eb7" +jest-message-util@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-23.1.0.tgz#9a809ba487ecac5ce511d4e698ee3b5ee2461ea9" dependencies: "@babel/code-frame" "^7.0.0-beta.35" chalk "^2.0.1" @@ -4205,117 +4041,123 @@ jest-message-util@^22.4.0, jest-message-util@^22.4.3: slash "^1.0.0" stack-utils "^1.0.1" -jest-mock@^22.4.3: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-22.4.3.tgz#f63ba2f07a1511772cdc7979733397df770aabc7" +jest-mock@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-23.1.0.tgz#a381c31b121ab1f60c462a2dadb7b86dcccac487" -jest-regex-util@^22.1.0, jest-regex-util@^22.4.3: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-22.4.3.tgz#a826eb191cdf22502198c5401a1fc04de9cef5af" +jest-regex-util@^23.0.0: + version "23.0.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-23.0.0.tgz#dd5c1fde0c46f4371314cf10f7a751a23f4e8f76" -jest-resolve-dependencies@^22.1.0: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-22.4.3.tgz#e2256a5a846732dc3969cb72f3c9ad7725a8195e" +jest-resolve-dependencies@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-23.0.1.tgz#d01a10ddad9152c4cecdf5eac2b88571c4b6a64d" dependencies: - jest-regex-util "^22.4.3" + jest-regex-util "^23.0.0" + jest-snapshot "^23.0.1" -jest-resolve@^22.4.2: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-22.4.3.tgz#0ce9d438c8438229aa9b916968ec6b05c1abb4ea" +jest-resolve@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-23.1.0.tgz#b9e316eecebd6f00bc50a3960d1527bae65792d2" dependencies: browser-resolve "^1.11.2" chalk "^2.0.1" + realpath-native "^1.0.0" -jest-runner@^22.4.4: - version "22.4.4" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-22.4.4.tgz#dfca7b7553e0fa617e7b1291aeb7ce83e540a907" +jest-runner@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-23.1.0.tgz#fa20a933fff731a5432b3561e7f6426594fa29b5" dependencies: exit "^0.1.2" - jest-config "^22.4.4" - jest-docblock "^22.4.0" - jest-haste-map "^22.4.2" - jest-jasmine2 "^22.4.4" - jest-leak-detector "^22.4.0" - jest-message-util "^22.4.0" - jest-runtime "^22.4.4" - jest-util "^22.4.1" - jest-worker "^22.2.2" + graceful-fs "^4.1.11" + jest-config "^23.1.0" + jest-docblock "^23.0.1" + jest-haste-map "^23.1.0" + jest-jasmine2 "^23.1.0" + jest-leak-detector "^23.0.1" + jest-message-util "^23.1.0" + jest-runtime "^23.1.0" + jest-util "^23.1.0" + jest-worker "^23.0.1" + source-map-support "^0.5.6" throat "^4.0.0" -jest-runtime@^22.4.4: - version "22.4.4" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-22.4.4.tgz#9ba7792fc75582a5be0f79af6f8fe8adea314048" +jest-runtime@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-23.1.0.tgz#b4ae0e87259ecacfd4a884b639db07cf4dd620af" dependencies: babel-core "^6.0.0" - babel-jest "^22.4.4" - babel-plugin-istanbul "^4.1.5" + 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 "^22.4.4" - jest-haste-map "^22.4.2" - jest-regex-util "^22.1.0" - jest-resolve "^22.4.2" - jest-util "^22.4.1" - jest-validate "^22.4.4" - json-stable-stringify "^1.0.1" + jest-config "^23.1.0" + jest-haste-map "^23.1.0" + jest-message-util "^23.1.0" + jest-regex-util "^23.0.0" + jest-resolve "^23.1.0" + jest-snapshot "^23.0.1" + jest-util "^23.1.0" + jest-validate "^23.0.1" 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 "^10.0.3" + yargs "^11.0.0" -jest-serializer@^22.4.3: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-22.4.3.tgz#a679b81a7f111e4766235f4f0c46d230ee0f7436" +jest-serializer@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-23.0.1.tgz#a3776aeb311e90fe83fab9e533e85102bd164165" -jest-snapshot@^22.4.0: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-22.4.3.tgz#b5c9b42846ffb9faccb76b841315ba67887362d2" +jest-snapshot@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-23.0.1.tgz#6674fa19b9eb69a99cabecd415bddc42d6af3e7e" dependencies: chalk "^2.0.1" - jest-diff "^22.4.3" - jest-matcher-utils "^22.4.3" + jest-diff "^23.0.1" + jest-matcher-utils "^23.0.1" mkdirp "^0.5.1" natural-compare "^1.4.0" - pretty-format "^22.4.3" + pretty-format "^23.0.1" -jest-util@^22.4.1, jest-util@^22.4.3: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-22.4.3.tgz#c70fec8eec487c37b10b0809dc064a7ecf6aafac" +jest-util@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-23.1.0.tgz#c0251baf34644c6dd2fea78a962f4263ac55772d" dependencies: callsites "^2.0.0" chalk "^2.0.1" graceful-fs "^4.1.11" is-ci "^1.0.10" - jest-message-util "^22.4.3" + jest-message-util "^23.1.0" mkdirp "^0.5.1" + slash "^1.0.0" source-map "^0.6.0" -jest-validate@^22.4.4: - version "22.4.4" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-22.4.4.tgz#1dd0b616ef46c995de61810d85f57119dbbcec4d" +jest-validate@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-23.0.1.tgz#cd9f01a89d26bb885f12a8667715e9c865a5754f" dependencies: chalk "^2.0.1" - jest-config "^22.4.4" jest-get-type "^22.1.0" leven "^2.1.0" - pretty-format "^22.4.0" + pretty-format "^23.0.1" -jest-worker@^22.2.2, jest-worker@^22.4.3: - version "22.4.3" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-22.4.3.tgz#5c421417cba1c0abf64bf56bd5fb7968d79dd40b" +jest-watcher@^23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-23.1.0.tgz#a8d5842e38d9fb4afff823df6abb42a58ae6cdbd" dependencies: - merge-stream "^1.0.1" + ansi-escapes "^3.0.0" + chalk "^2.0.1" + string-length "^2.0.0" -jest@^22.4.4: - version "22.4.4" - resolved "https://registry.yarnpkg.com/jest/-/jest-22.4.4.tgz#ffb36c9654b339a13e10b3d4b338eb3e9d49f6eb" +jest-worker@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-23.0.1.tgz#9e649dd963ff4046026f91c4017f039a6aa4a7bc" dependencies: - import-local "^1.0.0" - jest-cli "^22.4.4" + merge-stream "^1.0.1" js-stringify@^1.0.1: version "1.0.2" @@ -4430,12 +4272,6 @@ jsonfile@^2.1.0: optionalDependencies: graceful-fs "^4.1.6" -jsonfile@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" - optionalDependencies: - graceful-fs "^4.1.6" - jsonify@~0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" @@ -4530,10 +4366,6 @@ linked-list@0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/linked-list/-/linked-list-0.1.0.tgz#798b0ff97d1b92a4fd08480f55aea4e9d49d37bf" -listenercount@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/listenercount/-/listenercount-1.0.1.tgz#84c8a72ab59c4725321480c975e6508342e70937" - 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" @@ -4647,10 +4479,6 @@ lodash._stack@^4.0.0: version "4.1.3" resolved "https://registry.yarnpkg.com/lodash._stack/-/lodash._stack-4.1.3.tgz#751aa76c1b964b047e76d14fc72a093fcb5e2dd0" -lodash.assign@^4.0.3, lodash.assign@^4.0.6: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7" - lodash.clone@3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/lodash.clone/-/lodash.clone-3.0.3.tgz#84688c73d32b5a90ca25616963f189252a997043" @@ -4755,10 +4583,6 @@ loud-rejection@^1.0.0: currently-unhandled "^0.4.1" signal-exit "^3.0.0" -lowercase-keys@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306" - lru-cache@4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.0.2.tgz#1d17679c069cda5d040991a09dbc2c0db377e55e" @@ -4814,14 +4638,6 @@ md5.js@^1.3.4: hash-base "^3.0.0" inherits "^2.0.1" -md5@^2.1.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/md5/-/md5-2.2.1.tgz#53ab38d5fe3c8891ba465329ea23fac0540126f9" - dependencies: - charenc "~0.0.1" - crypt "~0.0.1" - is-buffer "~1.1.1" - mem@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" @@ -4923,10 +4739,6 @@ mime-types@^2.1.12, mime-types@~2.1.17, mime-types@~2.1.7: dependencies: mime-db "~1.33.0" -mime@^1.2.11: - version "1.3.6" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.6.tgz#591d84d3653a6b0b4a3b9df8de5aa8108e72e5e0" - mime@^1.4.1: version "1.6.0" resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" @@ -4935,10 +4747,6 @@ mimic-fn@^1.0.0: version "1.2.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" -mimic-response@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.0.tgz#df3d3652a73fded6b9b0b24146e6fd052353458e" - minimalistic-assert@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" @@ -5524,10 +5332,6 @@ output-file-sync@^1.1.2: mkdirp "^0.5.1" object-assign "^4.1.0" -p-cancelable@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-0.3.0.tgz#b9e123800bcebb7ac13a479be195b507b98d30fa" - p-finally@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" @@ -5544,12 +5348,6 @@ p-locate@^2.0.0: dependencies: p-limit "^1.1.0" -p-timeout@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-1.2.0.tgz#9820f99434c5817868b4f34809ee5291660d5b6c" - dependencies: - p-finally "^1.0.0" - p-try@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" @@ -5748,17 +5546,13 @@ prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" -prepend-http@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" - preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" -prettier@^1.12.1: - version "1.12.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.12.1.tgz#c1ad20e803e7749faf905a409d2367e06bbe7325" +prettier@^1.13.5: + version "1.13.5" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.5.tgz#7ae2076998c8edce79d63834e9b7b09fead6bfd0" pretty-bytes@^1.0.2: version "1.0.4" @@ -5767,9 +5561,9 @@ pretty-bytes@^1.0.2: get-stdin "^4.0.1" meow "^3.1.0" -pretty-format@^22.4.0, pretty-format@^22.4.3: - version "22.4.3" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-22.4.3.tgz#f873d780839a9c02e9664c8a082e9ee79eaac16f" +pretty-format@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.0.1.tgz#d61d065268e4c759083bccbca27a01ad7c7601f4" dependencies: ansi-regex "^3.0.0" ansi-styles "^3.2.0" @@ -6063,23 +5857,6 @@ rc@^1.1.2, rc@^1.1.7: minimist "^1.2.0" strip-json-comments "~2.0.1" -react-dnd-html5-backend@^2.6.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/react-dnd-html5-backend/-/react-dnd-html5-backend-2.6.0.tgz#590cd1cca78441bb274edd571fef4c0b16ddcf8e" - dependencies: - lodash "^4.2.0" - -react-dnd@^2.6.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/react-dnd/-/react-dnd-2.6.0.tgz#7fa25676cf827d58a891293e3c1ab59da002545a" - dependencies: - disposables "^1.0.1" - dnd-core "^2.6.0" - hoist-non-react-statics "^2.1.0" - invariant "^2.1.0" - lodash "^4.2.0" - prop-types "^15.5.10" - react-dom@^16.4.0: version "16.4.0" resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.4.0.tgz#099f067dd5827ce36a29eaf9a6cdc7cbf6216b1e" @@ -6242,18 +6019,6 @@ readable-stream@^2.0.5: string_decoder "~1.0.3" util-deprecate "~1.0.1" -readable-stream@~2.1.5: - version "2.1.5" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.1.5.tgz#66fa8b720e1438b364681f2ad1a63c618448c9d0" - dependencies: - buffer-shims "^1.0.0" - core-util-is "~1.0.0" - inherits "~2.0.1" - isarray "~1.0.0" - process-nextick-args "~1.0.6" - string_decoder "~0.10.x" - util-deprecate "~1.0.1" - readdirp@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" @@ -6304,7 +6069,7 @@ redux-thunk@^2.1.0: version "2.2.0" resolved "https://registry.yarnpkg.com/redux-thunk/-/redux-thunk-2.2.0.tgz#e615a16e16b47a19a515766133d1e3e99b7852e5" -redux@^3.6.0, redux@^3.7.1: +redux@^3.6.0: version "3.7.2" resolved "https://registry.yarnpkg.com/redux/-/redux-3.7.2.tgz#06b73123215901d25d065be342eb026bc1c8537b" dependencies: @@ -6593,7 +6358,7 @@ right-align@^0.1.1: dependencies: align-text "^0.1.1" -rimraf@2, rimraf@2.6.2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2: +rimraf@2, rimraf@2.6.2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.5.4, rimraf@^2.6.1: version "2.6.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" dependencies: @@ -6730,7 +6495,7 @@ secure-keys@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/secure-keys/-/secure-keys-1.0.0.tgz#f0c82d98a3b139a8776a8808050b824431087fca" -"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0: +"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1: version "5.5.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" @@ -6768,7 +6533,7 @@ set-value@^2.0.0: is-plain-object "^2.0.3" split-string "^3.0.1" -setimmediate@^1.0.4, setimmediate@^1.0.5, setimmediate@~1.0.4: +setimmediate@^1.0.4, setimmediate@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" @@ -6936,7 +6701,7 @@ source-map-support@^0.4.15: dependencies: source-map "^0.5.6" -source-map-support@^0.5.0: +source-map-support@^0.5.6: version "0.5.6" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.6.tgz#4435cee46b1aab62b8e8610ce60f788091c51c13" dependencies: @@ -7270,17 +7035,6 @@ table@^4.0.1: slice-ansi "1.0.0" string-width "^2.1.1" -table@^4.0.2: - version "4.0.3" - resolved "https://registry.yarnpkg.com/table/-/table-4.0.3.tgz#00b5e2b602f1794b9acaf9ca908a76386a7813bc" - dependencies: - ajv "^6.0.1" - ajv-keywords "^3.0.0" - chalk "^2.1.0" - lodash "^4.17.4" - slice-ansi "1.0.0" - string-width "^2.1.1" - tapable@^0.2.7: version "0.2.8" resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.8.tgz#99372a5c999bf2df160afc0d74bed4f47948cd22" @@ -7366,7 +7120,7 @@ through2@~0.2.3: readable-stream "~1.1.9" xtend "~2.1.1" -through@2, through@2.3.8, through@^2.3.6, through@^2.3.8: +through@2, through@2.3.8, through@^2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" @@ -7374,10 +7128,6 @@ thunkify@~2.1.1: version "2.1.2" resolved "https://registry.yarnpkg.com/thunkify/-/thunkify-2.1.2.tgz#faa0e9d230c51acc95ca13a361ac05ca7e04553d" -timed-out@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" - timers-browserify@^2.0.4: version "2.0.10" resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.10.tgz#1d28e3d2aadf1d5a5996c4e9f95601cd053480ae" @@ -7448,10 +7198,6 @@ tr46@^1.0.1: dependencies: punycode "^2.1.0" -"traverse@>=0.3.0 <0.4": - version "0.3.9" - resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.3.9.tgz#717b8f220cc0bb7b44e40514c22b2e8bbc70d8b9" - tree-kill@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.0.tgz#5846786237b4239014f05db156b643212d4c6f36" @@ -7548,10 +7294,6 @@ union-value@^1.0.0: is-extendable "^0.1.1" set-value "^0.4.3" -universalify@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7" - unpipe@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" @@ -7563,20 +7305,6 @@ unset-value@^1.0.0: has-value "^0.3.1" isobject "^3.0.0" -unzipper@^0.8.11: - version "0.8.14" - resolved "https://registry.yarnpkg.com/unzipper/-/unzipper-0.8.14.tgz#ade0524cd2fc14d11b8de258be22f9d247d3f79b" - dependencies: - big-integer "^1.6.17" - binary "~0.3.0" - bluebird "~3.4.1" - buffer-indexof-polyfill "~1.0.0" - duplexer2 "~0.1.4" - fstream "~1.0.10" - listenercount "~1.0.1" - readable-stream "~2.1.5" - setimmediate "~1.0.4" - upath@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.0.tgz#35256597e46a581db4793d0ce47fa9aebfc9fabd" @@ -7591,16 +7319,6 @@ urix@^0.1.0, urix@~0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" -url-parse-lax@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" - dependencies: - prepend-http "^1.0.1" - -url-to-options@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/url-to-options/-/url-to-options-1.0.1.tgz#1505a03a289a48cbd7a434efbaeec5055f5633a9" - url@^0.11.0, url@~0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" @@ -7829,10 +7547,6 @@ whatwg-url@^6.4.0, whatwg-url@^6.4.1: tr46 "^1.0.1" webidl-conversions "^4.0.2" -which-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" - which-module@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" @@ -7857,10 +7571,6 @@ window-size@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.4.tgz#f8e1aa1ee5a53ec5bf151ffa09742a6ad7697876" -window-size@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.2.0.tgz#b4315bb4214a3d7058ebeee892e13fa24d98b075" - with@^5.0.0: version "5.1.1" resolved "https://registry.yarnpkg.com/with/-/with-5.1.1.tgz#fa4daa92daf32c4ea94ed453c81f04686b575dfe" @@ -7966,28 +7676,21 @@ yallist@^3.0.0, yallist@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9" -yargs-parser@^2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-2.4.1.tgz#85568de3cf150ff49fa51825f03a8c880ddcc5c4" - dependencies: - camelcase "^3.0.0" - lodash.assign "^4.0.6" - yargs-parser@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" dependencies: camelcase "^4.1.0" -yargs-parser@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-8.1.0.tgz#f1376a33b6629a5d063782944da732631e966950" +yargs-parser@^9.0.2: + version "9.0.2" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-9.0.2.tgz#9ccf6a43460fe4ed40a9bb68f48d43b8a68cc077" dependencies: camelcase "^4.1.0" -yargs@^10.0.3: - version "10.1.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-10.1.2.tgz#454d074c2b16a51a43e2fb7807e4f9de69ccb5c5" +yargs@^11.0.0: + version "11.0.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.0.0.tgz#c052931006c5eee74610e5fc0354bedfd08a201b" dependencies: cliui "^4.0.0" decamelize "^1.1.1" @@ -8000,7 +7703,7 @@ yargs@^10.0.3: string-width "^2.0.0" which-module "^2.0.0" y18n "^3.2.1" - yargs-parser "^8.1.0" + yargs-parser "^9.0.2" yargs@^3.19.0: version "3.32.0" @@ -8014,25 +7717,6 @@ yargs@^3.19.0: window-size "^0.1.4" y18n "^3.2.0" -yargs@^4.2.0: - version "4.8.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-4.8.1.tgz#c0c42924ca4aaa6b0e6da1739dfb216439f9ddc0" - dependencies: - cliui "^3.2.0" - decamelize "^1.1.1" - get-caller-file "^1.0.1" - lodash.assign "^4.0.3" - os-locale "^1.4.0" - read-pkg-up "^1.0.1" - require-directory "^2.1.1" - require-main-filename "^1.0.1" - set-blocking "^2.0.0" - string-width "^1.0.1" - which-module "^1.0.0" - window-size "^0.2.0" - y18n "^3.2.1" - yargs-parser "^2.4.1" - yargs@^8.0.2: version "8.0.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360"