Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Upgraded flow to 0.37.4

Flow is now an official NPM dependency for this package. This new
version wasn't happy with my ad-hoc interface for Express so, after
spending an hour or so battling it, I decided to install flow-typed
which has a very verbose interface for Express (hence all the changes
in server/charted and other files).

Also, Flow doesn't understand the non-standard `unescape` function
in JavaScript so I've decided to simply suppress that warning.

I also spent way too much time trying to type-check req.body and then
gave up and converted it to `any`. In future, it'd be nice to have
something like proto-bufs for request bodies.
  • Loading branch information...
valueof committed Dec 21, 2016
1 parent 2c6a5ba commit ba49d6c14ba1bea2f95421a46069f27d42617bd4
@@ -7,3 +7,4 @@
lib/interfaces/

[options]
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
@@ -0,0 +1,150 @@
// flow-typed signature: dfe0099d0a8b972d07246fc18128f8ff
// flow-typed version: <<STUB>>/babel-cli_v6.3.x

/**
* This is an autogenerated libdef stub for:
*
* 'babel-cli'
*
* 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 'babel-cli' {
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 'babel-cli/bin/babel-doctor' {
declare module.exports: any;
}

declare module 'babel-cli/bin/babel-external-helpers' {
declare module.exports: any;
}

declare module 'babel-cli/bin/babel-node' {
declare module.exports: any;
}

declare module 'babel-cli/bin/babel' {
declare module.exports: any;
}

declare module 'babel-cli/lib/_babel-node' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel-doctor/index' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel-doctor/rules/deduped' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel-doctor/rules/has-config' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel-doctor/rules/index' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel-doctor/rules/latest-packages' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel-doctor/rules/npm-3' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel-external-helpers' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel-node' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel/dir' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel/file' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel/index' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel/util' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-cli/bin/babel-doctor.js' {
declare module.exports: $Exports<'babel-cli/bin/babel-doctor'>;
}
declare module 'babel-cli/bin/babel-external-helpers.js' {
declare module.exports: $Exports<'babel-cli/bin/babel-external-helpers'>;
}
declare module 'babel-cli/bin/babel-node.js' {
declare module.exports: $Exports<'babel-cli/bin/babel-node'>;
}
declare module 'babel-cli/bin/babel.js' {
declare module.exports: $Exports<'babel-cli/bin/babel'>;
}
declare module 'babel-cli/index' {
declare module.exports: $Exports<'babel-cli'>;
}
declare module 'babel-cli/index.js' {
declare module.exports: $Exports<'babel-cli'>;
}
declare module 'babel-cli/lib/_babel-node.js' {
declare module.exports: $Exports<'babel-cli/lib/_babel-node'>;
}
declare module 'babel-cli/lib/babel-doctor/index.js' {
declare module.exports: $Exports<'babel-cli/lib/babel-doctor/index'>;
}
declare module 'babel-cli/lib/babel-doctor/rules/deduped.js' {
declare module.exports: $Exports<'babel-cli/lib/babel-doctor/rules/deduped'>;
}
declare module 'babel-cli/lib/babel-doctor/rules/has-config.js' {
declare module.exports: $Exports<'babel-cli/lib/babel-doctor/rules/has-config'>;
}
declare module 'babel-cli/lib/babel-doctor/rules/index.js' {
declare module.exports: $Exports<'babel-cli/lib/babel-doctor/rules/index'>;
}
declare module 'babel-cli/lib/babel-doctor/rules/latest-packages.js' {
declare module.exports: $Exports<'babel-cli/lib/babel-doctor/rules/latest-packages'>;
}
declare module 'babel-cli/lib/babel-doctor/rules/npm-3.js' {
declare module.exports: $Exports<'babel-cli/lib/babel-doctor/rules/npm-3'>;
}
declare module 'babel-cli/lib/babel-external-helpers.js' {
declare module.exports: $Exports<'babel-cli/lib/babel-external-helpers'>;
}
declare module 'babel-cli/lib/babel-node.js' {
declare module.exports: $Exports<'babel-cli/lib/babel-node'>;
}
declare module 'babel-cli/lib/babel/dir.js' {
declare module.exports: $Exports<'babel-cli/lib/babel/dir'>;
}
declare module 'babel-cli/lib/babel/file.js' {
declare module.exports: $Exports<'babel-cli/lib/babel/file'>;
}
declare module 'babel-cli/lib/babel/index.js' {
declare module.exports: $Exports<'babel-cli/lib/babel/index'>;
}
declare module 'babel-cli/lib/babel/util.js' {
declare module.exports: $Exports<'babel-cli/lib/babel/util'>;
}
@@ -0,0 +1,178 @@
// flow-typed signature: e02aaf4fbce54e684ce6a93a46fe9f52
// flow-typed version: <<STUB>>/babel-core_v6.3.x

/**
* This is an autogenerated libdef stub for:
*
* 'babel-core'
*
* 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 'babel-core' {
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 'babel-core/lib/api/browser' {
declare module.exports: any;
}

declare module 'babel-core/lib/api/node' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/merge' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/normalize-ast' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/resolve' {
declare module.exports: any;
}

declare module 'babel-core/lib/store' {
declare module.exports: any;
}

declare module 'babel-core/lib/tools/build-external-helpers' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/file/index' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/file/logger' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/file/metadata' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/file/options/config' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/file/options/index' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/file/options/option-manager' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/file/options/parsers' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/internal-plugins/block-hoist' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/internal-plugins/shadow-functions' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/pipeline' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/plugin-pass' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/plugin' {
declare module.exports: any;
}

declare module 'babel-core/lib/util' {
declare module.exports: any;
}

declare module 'babel-core/register' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-core/index' {
declare module.exports: $Exports<'babel-core'>;
}
declare module 'babel-core/index.js' {
declare module.exports: $Exports<'babel-core'>;
}
declare module 'babel-core/lib/api/browser.js' {
declare module.exports: $Exports<'babel-core/lib/api/browser'>;
}
declare module 'babel-core/lib/api/node.js' {
declare module.exports: $Exports<'babel-core/lib/api/node'>;
}
declare module 'babel-core/lib/helpers/merge.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/merge'>;
}
declare module 'babel-core/lib/helpers/normalize-ast.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/normalize-ast'>;
}
declare module 'babel-core/lib/helpers/resolve.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/resolve'>;
}
declare module 'babel-core/lib/store.js' {
declare module.exports: $Exports<'babel-core/lib/store'>;
}
declare module 'babel-core/lib/tools/build-external-helpers.js' {
declare module.exports: $Exports<'babel-core/lib/tools/build-external-helpers'>;
}
declare module 'babel-core/lib/transformation/file/index.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/file/index'>;
}
declare module 'babel-core/lib/transformation/file/logger.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/file/logger'>;
}
declare module 'babel-core/lib/transformation/file/metadata.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/file/metadata'>;
}
declare module 'babel-core/lib/transformation/file/options/config.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/file/options/config'>;
}
declare module 'babel-core/lib/transformation/file/options/index.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/file/options/index'>;
}
declare module 'babel-core/lib/transformation/file/options/option-manager.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/file/options/option-manager'>;
}
declare module 'babel-core/lib/transformation/file/options/parsers.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/file/options/parsers'>;
}
declare module 'babel-core/lib/transformation/internal-plugins/block-hoist.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/internal-plugins/block-hoist'>;
}
declare module 'babel-core/lib/transformation/internal-plugins/shadow-functions.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/internal-plugins/shadow-functions'>;
}
declare module 'babel-core/lib/transformation/pipeline.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/pipeline'>;
}
declare module 'babel-core/lib/transformation/plugin-pass.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/plugin-pass'>;
}
declare module 'babel-core/lib/transformation/plugin.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/plugin'>;
}
declare module 'babel-core/lib/util.js' {
declare module.exports: $Exports<'babel-core/lib/util'>;
}
declare module 'babel-core/register.js' {
declare module.exports: $Exports<'babel-core/register'>;
}
@@ -0,0 +1,32 @@
// flow-typed signature: 94790f3accf8e47677c55cc7d7aabb7f
// flow-typed version: <<STUB>>/babel-plugin-transform-es2015-modules-amd_v6.3.x

/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-transform-es2015-modules-amd'
*
* 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 'babel-plugin-transform-es2015-modules-amd' {
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 'babel-plugin-transform-es2015-modules-amd/lib/index' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-plugin-transform-es2015-modules-amd/lib/index.js' {
declare module.exports: $Exports<'babel-plugin-transform-es2015-modules-amd/lib/index'>;
}

0 comments on commit ba49d6c

Please sign in to comment.
You can’t perform that action at this time.