Skip to content

Commit

Permalink
deps: update flow-bin to version 0.38.0 (#647)
Browse files Browse the repository at this point in the history
* chore(package): update flow-bin to version 0.38.0

https://greenkeeper.io/

* fix: flow errors
  • Loading branch information
greenkeeperio-bot authored and zacharygolba committed Jan 19, 2017
1 parent 4e40c2b commit cdebc08
Show file tree
Hide file tree
Showing 44 changed files with 100 additions and 107 deletions.
4 changes: 3 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ decl/
flow-typed/

[options]
emoji=true
strip_root=true
suppress_comment=\\(.\\|\n\\)*\\$FlowIgnore

module.name_mapper='LUX_LOCAL' -> '<PROJECT_ROOT>'
Expand All @@ -27,4 +29,4 @@ esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable

[version]
^0.37.4
^0.38.0
4 changes: 2 additions & 2 deletions flow-typed/npm/ansi-regex_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 9b3aecebef31bed240b9f09d539603dc
// flow-typed version: <<STUB>>/ansi-regex_v2.1.1/flow_v0.37.4
// flow-typed signature: 452607e6dbda94270a8b97dbdfb66685
// flow-typed version: <<STUB>>/ansi-regex_v2.1.1/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-core_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 5408c66b269ff83d3d212b0de75abf73
// flow-typed version: <<STUB>>/babel-core_v6.21.0/flow_v0.37.4
// flow-typed signature: d692dba6c579c5b69dea0df77cde52c0
// flow-typed version: <<STUB>>/babel-core_v6.21.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-eslint_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 19bae530d943112a4c3a8c24dc4ee26b
// flow-typed version: <<STUB>>/babel-eslint_v7.1.1/flow_v0.37.4
// flow-typed signature: 55742293112dd22f8984209529124482
// flow-typed version: <<STUB>>/babel-eslint_v7.1.1/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-plugin-istanbul_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: b5285f464d367e850dd916f9ae452562
// flow-typed version: <<STUB>>/babel-plugin-istanbul_v3.1.2/flow_v0.37.4
// flow-typed signature: d80a7b586bbec974855825e2b0f4b8f6
// flow-typed version: <<STUB>>/babel-plugin-istanbul_v3.1.2/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 7ca39869ede6768f3a3f4f63cc2d0f19
// flow-typed version: <<STUB>>/babel-plugin-transform-es2015-modules-commonjs_v6.18.0/flow_v0.37.4
// flow-typed signature: 1d90db81b4452cd3f99ec09d578fc314
// flow-typed version: <<STUB>>/babel-plugin-transform-es2015-modules-commonjs_v6.18.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-preset-lux_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 155bc92269e2113855adc0aa5fb615e3
// flow-typed version: <<STUB>>/babel-preset-lux_v2.0.1/flow_v0.37.4
// flow-typed signature: afb738bb6c1e550f0a7e656014d1abbe
// flow-typed version: <<STUB>>/babel-preset-lux_v2.0.1/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/eslint-config-airbnb-base_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 4135f954a32de9c94dae9aca777deca4
// flow-typed version: <<STUB>>/eslint-config-airbnb-base_v11.0.1/flow_v0.37.4
// flow-typed signature: f37a26d405e7a350c52b574de4074168
// flow-typed version: <<STUB>>/eslint-config-airbnb-base_v11.0.1/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: a23cb6d68879631d4f2cbc2194993c79
// flow-typed version: <<STUB>>/eslint-plugin-flowtype_v2.30.0/flow_v0.37.4
// flow-typed signature: d06b43c0f6e48b0ab0c1cbf0379b6fcf
// flow-typed version: <<STUB>>/eslint-plugin-flowtype_v2.30.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/eslint-plugin-import_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 974a529062530f35fa4a84bc2c6bd7f3
// flow-typed version: <<STUB>>/eslint-plugin-import_v2.2.0/flow_v0.37.4
// flow-typed signature: 36e62fb84e0abea792aa052ba3eb8b0c
// flow-typed version: <<STUB>>/eslint-plugin-import_v2.2.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/eslint_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 0214478b11475749d03c1a26b4fc24c9
// flow-typed version: <<STUB>>/eslint_v3.13.1/flow_v0.37.4
// flow-typed signature: 39c719d3a8ef136e1ba183a7d663f2b4
// flow-typed version: <<STUB>>/eslint_v3.13.1/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/faker_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: d26f8ca54ec05cae0455702549167b55
// flow-typed version: <<STUB>>/faker_v3.1.0/flow_v0.37.4
// flow-typed signature: 6f749627aaa80fc489129ba2f69c0e74
// flow-typed version: <<STUB>>/faker_v3.1.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/fb-watchman_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 15d3999c696529679ce12e1e7dde5f82
// flow-typed version: <<STUB>>/fb-watchman_v1.9.0/flow_v0.37.4
// flow-typed signature: 1872b556b019ed1e1c4cb5b36d663dfc
// flow-typed version: <<STUB>>/fb-watchman_v1.9.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/flow-typed_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: ee823e933d64c9273ee186e4f07741b4
// flow-typed version: <<STUB>>/flow-typed_v2.0.0/flow_v0.37.4
// flow-typed signature: 3dba6be297539bc738d6117475bc2cb3
// flow-typed version: <<STUB>>/flow-typed_v2.0.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/inflection_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: b857fc16e0a4f8e2c97563df5b6e3dbd
// flow-typed version: <<STUB>>/inflection_v1.10.0/flow_v0.37.4
// flow-typed signature: 4b00291a429acb5009c0e635c612b7da
// flow-typed version: <<STUB>>/inflection_v1.10.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/knex_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: bcacf85678bfb29b01a6eb3b465ae8a2
// flow-typed version: <<STUB>>/knex_v0.12.6/flow_v0.37.4
// flow-typed signature: 2a3732dd3a8e69fb1f9fa91a5dc8adda
// flow-typed version: <<STUB>>/knex_v0.12.6/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/mocha-junit-reporter_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: fb594485a8922c0c9f7af828ca88909b
// flow-typed version: <<STUB>>/mocha-junit-reporter_v1.13.0/flow_v0.37.4
// flow-typed signature: 23db411854e376cc41c30904b2a7dcb7
// flow-typed version: <<STUB>>/mocha-junit-reporter_v1.13.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/node-fetch_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 3093d0b369a1f8053b937e67782ef7fa
// flow-typed version: <<STUB>>/node-fetch_v1.6.3/flow_v0.37.4
// flow-typed signature: 6ef7b2d8d69a8c94b0bca2c9c92071b4
// flow-typed version: <<STUB>>/node-fetch_v1.6.3/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/nyc_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: a64deef67989ede615b081912aa88e4a
// flow-typed version: <<STUB>>/nyc_v10.0.0/flow_v0.37.4
// flow-typed signature: 60025bde4e74f11c19497dd2b22b80b4
// flow-typed version: <<STUB>>/nyc_v10.1.2/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/ora_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 9beb90fa1e742c051ba8c0706cf0190a
// flow-typed version: <<STUB>>/ora_v0.4.1/flow_v0.37.4
// flow-typed signature: 5247f23d1d5e04431d931fb72cde82c7
// flow-typed version: <<STUB>>/ora_v1.0.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/remark-cli_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 220b9a83bd415c1757a1a814c918d740
// flow-typed version: <<STUB>>/remark-cli_v2.1.0/flow_v0.37.4
// flow-typed signature: 874f86bb1fd3b256fd22b101cc7c49d9
// flow-typed version: <<STUB>>/remark-cli_v2.1.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/remark-lint_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 472f73896e15dd81e8cba88d4866d89b
// flow-typed version: <<STUB>>/remark-lint_v5.4.0/flow_v0.37.4
// flow-typed signature: e63505d366e4ccbf4d93a1a8a324c940
// flow-typed version: <<STUB>>/remark-lint_v5.4.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/remark-preset-lint-recommended_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 3ee7e3ab11db69843340916ea720bbcc
// flow-typed version: <<STUB>>/remark-preset-lint-recommended_v1.0.0/flow_v0.37.4
// flow-typed signature: 9795e498c7d5012466199f76d25118f0
// flow-typed version: <<STUB>>/remark-preset-lint-recommended_v1.0.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/rollup-plugin-alias_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 0842c9f6bc666344788cf346fab52cbe
// flow-typed version: <<STUB>>/rollup-plugin-alias_v1.2.0/flow_v0.37.4
// flow-typed signature: f690b64455dd559925e1167c4ae35753
// flow-typed version: <<STUB>>/rollup-plugin-alias_v1.2.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/rollup-plugin-babel_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: abb5699c4bc060d6191b9a78612664a3
// flow-typed version: <<STUB>>/rollup-plugin-babel_v2.7.1/flow_v0.37.4
// flow-typed signature: 8db89a282c24932f2ea9956386edc8e2
// flow-typed version: <<STUB>>/rollup-plugin-babel_v2.7.1/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/rollup-plugin-eslint_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: c1a79170120b5b11bb6b8aad967ae61d
// flow-typed version: <<STUB>>/rollup-plugin-eslint_v3.0.0/flow_v0.37.4
// flow-typed signature: 14540a968670ab30e50e04fe48322cf3
// flow-typed version: <<STUB>>/rollup-plugin-eslint_v3.0.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/rollup-plugin-json_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 3961843fca066a4b4d9a1a99751fa6e5
// flow-typed version: <<STUB>>/rollup-plugin-json_v2.0.2/flow_v0.37.4
// flow-typed signature: 9732b5b9ddc7803620d47ddb16d2a108
// flow-typed version: <<STUB>>/rollup-plugin-json_v2.0.2/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/rollup-plugin-lux_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 08b63102f9d84900bbfc2fb4066d1b08
// flow-typed version: <<STUB>>/rollup-plugin-lux_v3.0.0/flow_v0.37.4
// flow-typed signature: 909e8534269a646264f04853a7b2397f
// flow-typed version: <<STUB>>/rollup-plugin-lux_v3.0.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/rollup-plugin-multi-entry_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 047070d67812005361f8353411215c23
// flow-typed version: <<STUB>>/rollup-plugin-multi-entry_v2.0.1/flow_v0.37.4
// flow-typed signature: 2d9ca705a1b02b5e8d967102e4060690
// flow-typed version: <<STUB>>/rollup-plugin-multi-entry_v2.0.1/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/rollup-plugin-node-resolve_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 32f69a82227c079d39861205abff3d6a
// flow-typed version: <<STUB>>/rollup-plugin-node-resolve_v2.0.0/flow_v0.37.4
// flow-typed signature: d82331e3b74f5830e7cf49a570eaf8c9
// flow-typed version: <<STUB>>/rollup-plugin-node-resolve_v2.0.0/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/rollup_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: df08aac39264a7edb2f3989349b8bfe6
// flow-typed version: <<STUB>>/rollup_v0.41.4/flow_v0.37.4
// flow-typed signature: 6e70a13a5078052df9c10e4501267cfb
// flow-typed version: <<STUB>>/rollup_v0.41.4/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/shx_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 4c6e370fd5b1ec5d8f0caa119e8478ba
// flow-typed version: <<STUB>>/shx_v0.2.2/flow_v0.37.4
// flow-typed signature: 4d1872b9258c322405383245fcd9b511
// flow-typed version: <<STUB>>/shx_v0.2.2/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/sinon_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 0e1bf5241d587cdd95459c832262a1f1
// flow-typed version: <<STUB>>/sinon_v1.17.7/flow_v0.37.4
// flow-typed signature: d6244e61bc4d3f66af2d9fe508b5d4f5
// flow-typed version: <<STUB>>/sinon_v1.17.7/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/source-map-support_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 652c4fcd5f3e99062a3867a2eabb0f3d
// flow-typed version: <<STUB>>/source-map-support_v0.4.9/flow_v0.37.4
// flow-typed signature: 484270ae3534b05cdf5cb108c6a904be
// flow-typed version: <<STUB>>/source-map-support_v0.4.10/flow_v0.38.0

/**
* This is an autogenerated libdef stub for:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"eslint-plugin-flowtype": "2.30.0",
"eslint-plugin-import": "2.2.0",
"faker": "3.1.0",
"flow-bin": "0.37.4",
"flow-bin": "0.38.0",
"flow-typed": "2.0.0",
"mocha": "3.2.0",
"mocha-junit-reporter": "1.13.0",
Expand Down
7 changes: 4 additions & 3 deletions src/packages/controller/test/controller.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ describe('module "controller"', () => {

before(async () => {
const app = await getTestApp();
const model = app.models.get('post');

// $FlowIgnore
Post = app.models.get('post');
if (model) {
Post = model;
}

subject = new Controller({
model: Post,
namespace: '',
serializer: new Serializer({
// $FlowIgnore
model: Post,
parent: null,
namespace: ''
Expand Down
6 changes: 3 additions & 3 deletions src/packages/database/model/utils/persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import getColumns from './get-columns';
/**
* @private
*/
export function create(record: Model, trx: Object): [Object] {
export function create(record: Model, trx: Object): Array<Object> {
const timestamp = new Date();

Object.assign(record, {
Expand All @@ -35,7 +35,7 @@ export function create(record: Model, trx: Object): [Object] {
/**
* @private
*/
export function update(record: Model, trx: Object): [Object] {
export function update(record: Model, trx: Object): Array<Object> {
Reflect.set(record, 'updatedAt', new Date());

return [
Expand All @@ -53,7 +53,7 @@ export function update(record: Model, trx: Object): [Object] {
/**
* @private
*/
export function destroy(record: Model, trx: Object): [Object] {
export function destroy(record: Model, trx: Object): Array<Object> {
return [
record.constructor
.table()
Expand Down
2 changes: 1 addition & 1 deletion src/packages/database/query/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Query<+T: any> extends Promise {
/**
* @private
*/
snapshots: Array<[string, mixed]>;
snapshots: Array<Array<any>>;

/**
* @private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import type { Controller$builtIn } from '../../../../controller'; // eslint-disa
/**
* @private
*/
export default function normalizeResourceArgs(args: [
string,
{ path: string, only: Array<Controller$builtIn> },
Function
]): [{
export default function normalizeResourceArgs(args: Array<any>): [{
name: string,
path: string,
only: Array<Controller$builtIn>
Expand All @@ -18,12 +14,18 @@ export default function normalizeResourceArgs(args: [
let [, opts, builder] = args;

if (!opts) {
opts = {};
opts = {
path: '',
only: undefined
};
}

if (typeof opts === 'function') {
builder = opts;
opts = {};
opts = {
path: '',
only: undefined
};
}

if (typeof builder !== 'function') {
Expand Down
Loading

0 comments on commit cdebc08

Please sign in to comment.