Permalink
Browse files

Update non-critical deps (#3700)

* update non-critical dependencies

* add new lint rules

* flow doesn't like reading own property functions from a class object via computed property
  • Loading branch information...
1 parent 3f01e9c commit d62c1b8c46c58b9240d6fa37dd86ccfab01618b1 @erikdesjardins erikdesjardins committed on GitHub Dec 2, 2016
Showing with 272 additions and 280 deletions.
  1. +4 −0 .eslintrc.json
  2. +1 −1 .flowconfig
  3. +4 −4 flow/lib/core.js
  4. +1 −1 flow/lib/lodash.js
  5. +2 −1 lib/core/init.js
  6. +1 −1 lib/environment/__tests__/messaging.js
  7. +7 −7 package.json
  8. +1 −1 safari/background.entry.js
  9. +251 −264 yarn.lock
View
@@ -39,10 +39,13 @@
"flowtype/delimiter-dangle": [2, "always-multiline"],
"flowtype/generic-spacing": 2,
"flowtype/no-dupe-keys": 2,
+ "flowtype/no-primitive-constructor-types": 2,
"flowtype/no-weak-types": [2, { "any": false }],
+ "flowtype/object-type-delimiter": 0,
"flowtype/require-parameter-type": 0,
"flowtype/require-return-type": 0,
"flowtype/require-valid-file-annotation": 2,
+ "flowtype/require-variable-type": 0,
"flowtype/semi": 2,
"flowtype/sort-keys": 0,
"flowtype/space-after-type-colon": 2,
@@ -147,6 +150,7 @@
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"callback-return": 0,
"camelcase": [2, { "properties": "never" }],
+ "capitalized-comments": 0,
"class-methods-use-this": 0,
"comma-dangle": [2, "always-multiline"],
"complexity": [0, 11],
View
@@ -25,4 +25,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowIgnore
unsafe.enable_getters_and_setters=true
[version]
-0.35.0
+0.36.0
View
@@ -6,9 +6,9 @@
declare class Object {
static (o: ?void): {[key: any]: any};
- static (o: boolean): Boolean;
- static (o: number): Number;
- static (o: string): String;
+ static (o: boolean): Boolean; // eslint-disable-line flowtype/no-primitive-constructor-types
+ static (o: number): Number; // eslint-disable-line flowtype/no-primitive-constructor-types
+ static (o: string): String; // eslint-disable-line flowtype/no-primitive-constructor-types
static <T: Object>(o: T): T;
static assign: Object$Assign;
static create(o: any, properties?: any): any; // compiler magic
@@ -36,5 +36,5 @@ declare class Object {
toLocaleString(): string;
toString(): string;
valueOf(): Object;
- [key:any]: any;
+ [key: any]: any;
}
View
@@ -301,7 +301,7 @@ declare module 'lodash' {
cloneDeep<T>(value: T): T;
cloneDeepWith<T, U>(value: T, customizer?: ?(value: T, key: number | string, object: T, stack: any) => U): U;
cloneWith<T, U>(value: T, customizer?: ?(value: T, key: number | string, object: T, stack: any) => U): U;
- conformsTo<T:{[key:string]:mixed}>(source: T, predicates: T & {[key:string]:(x: any)=>boolean}): boolean;
+ conformsTo<T: { [key: string]: mixed }>(source: T, predicates: T & { [key: string]: (x: any) => boolean }): boolean;
eq(value: any, other: any): bool;
gt(value: any, other: any): bool;
gte(value: any, other: any): bool;
View
@@ -109,7 +109,8 @@ async function allModules(key, { skipEnabledCheck = false }: { skipEnabledCheck?
.map(async module => {
moduleStageStart(key, module.moduleID);
try {
- await module[key]();
+ const stage = module[key];
+ await stage();
} catch (e) {
module[ERRORED_KEY] = true;
console.error('Error in module:', module.moduleID, 'during:', key);
@@ -98,7 +98,7 @@ test('mixed backend handler and interceptors', async t => {
t.is(await sendMessage('addTwo', 3), 5);
});
-test('interceptor preempts backend listener', async t => {
+test('interceptor preempts backend listener', t => {
t.plan(1);
const { a: { addInterceptor, sendMessage }, b: { addListener } } = createPair();
addListener('foo', () => t.fail());
View
@@ -72,7 +72,7 @@
"autoprefixer": "6.5.3",
"ava": "0.15.2",
"babel-core": "6.18.2",
- "babel-eslint": "7.1.0",
+ "babel-eslint": "7.1.1",
"babel-loader": "6.2.7",
"babel-plugin-lodash": "3.2.9",
"babel-plugin-syntax-trailing-function-commas": "6.13.0",
@@ -95,21 +95,21 @@
"cross-env": "3.1.3",
"css-loader": "0.25.0",
"deep-equal": "1.0.1",
- "eslint": "3.10.0",
+ "eslint": "3.11.1",
"eslint-import-resolver-webpack": "0.7.0",
"eslint-plugin-ava": "4.0.0",
"eslint-plugin-babel": "3.3.0",
"eslint-plugin-dollar-sign": "1.0.0",
"eslint-plugin-filenames": "1.1.0",
- "eslint-plugin-flowtype": "2.19.0",
+ "eslint-plugin-flowtype": "2.29.1",
"eslint-plugin-import": "2.2.0",
"eslint-plugin-no-useless-assign": "1.0.2",
"eslint-plugin-prefer-spread": "1.0.3",
"exec-loader": "1.0.0",
"extricate-loader": "0.0.2",
"file-loader": "0.9.0",
"firefox-extension-deploy": "0.0.2",
- "flow-bin": "0.35.0",
+ "flow-bin": "0.36.0",
"html-loader": "0.4.4",
"inert-entry-webpack-plugin": "1.1.4",
"interpolate-loader": "0.0.6",
@@ -118,9 +118,9 @@
"json-loader": "0.5.4",
"jszip": "2.6.1",
"mustache-loader": "0.4.0",
- "nightwatch": "0.9.8",
+ "nightwatch": "0.9.9",
"node-sass": "3.11.3",
- "nyc": "8.4.0",
+ "nyc": "10.0.0",
"postcss-loader": "1.1.1",
"progress-bar-webpack-plugin": "1.9.0",
"prop-loader": "0.0.5",
@@ -131,7 +131,7 @@
"spawn-loader": "0.1.0",
"url-loader": "0.5.7",
"webpack": "1.13.3",
- "yargs": "6.3.0",
+ "yargs": "6.5.0",
"zip-webpack-plugin": "0.2.0"
}
}
@@ -119,7 +119,7 @@ addListener('openNewTabs', ({ urls, focusIndex }, tab) => {
addListener('isPrivateBrowsing', (request, tab) => tab.private);
-addListener('multicast', async (request, senderTab) =>
+addListener('multicast', (request, senderTab) =>
Promise.all(
Array.from(safari.application.browserWindows)
.map(w => Array.from(w.tabs))
Oops, something went wrong.

0 comments on commit d62c1b8

Please sign in to comment.