瀏覽代碼

Upgrade NPM dependencies/packages

j8
Lyubo Marinov 8 年之前
父節點
當前提交
1f16233afa
共有 3 個檔案被更改,包括 11 行新增45 行删除
  1. 0
    36
      flow-typed/npm/react-i18next_v2.x.x.js
  2. 5
    3
      flow-typed/npm/redux_v3.x.x.js
  3. 6
    6
      package.json

+ 0
- 36
flow-typed/npm/react-i18next_v2.x.x.js 查看文件

@@ -1,36 +0,0 @@
1
-// flow-typed signature: 57cf34196930be78935a42e5c8ac3cb6
2
-// flow-typed version: ae6284e7b7/react-i18next_v2.x.x/flow_>=v0.36.x_<=v0.39.x
3
-
4
-declare module 'react-i18next' {
5
-  declare type TFunction = (key?: ?string, data?: ?Object) => string;
6
-  declare type Locales = string | Array<string>;
7
-
8
-  declare type StatelessComponent<P> = (props: P) => ?React$Element<any>;
9
-
10
-  declare type Comp<P> = StatelessComponent<P> | Class<React$Component<*, P, *>>;
11
-
12
-  declare type Translator<OP, P> = {
13
-    (component: StatelessComponent<P>): Class<React$Component<void, OP, void>>;
14
-    <Def, St>(component: Class<React$Component<Def, P, St>>): Class<React$Component<Def, OP, St>>;
15
-  }
16
-
17
-  declare function translate<OP, P>(locales: Locales): Translator<OP, P>;
18
-
19
-  declare type NamespacesProps = {
20
-    components: Array<Comp<*>>,
21
-    i18n: { loadNamespaces: Function },
22
-  };
23
-
24
-  declare function loadNamespaces(props: NamespacesProps): Promise<void>;
25
-
26
-  declare type ProviderProps = { i18n: Object, children: React$Element<any> };
27
-
28
-  declare var I18nextProvider: Class<React$Component<void, ProviderProps, void>>;
29
-
30
-  declare type InterpolateProps = {
31
-    children?: React$Element<any>,
32
-    className?: string,
33
-  };
34
-
35
-  declare var Interpolate: Class<React$Component<void, InterpolateProps, void>>;
36
-}

+ 5
- 3
flow-typed/npm/redux_v3.x.x.js 查看文件

@@ -1,5 +1,5 @@
1
-// flow-typed signature: ba132c96664f1a05288f3eb2272a3c35
2
-// flow-typed version: c4bbd91cfc/redux_v3.x.x/flow_>=v0.33.x
1
+// flow-typed signature: 7f1a115f75043c44385071ea3f33c586
2
+// flow-typed version: 358375125e/redux_v3.x.x/flow_>=v0.33.x
3 3
 
4 4
 declare module 'redux' {
5 5
 
@@ -27,6 +27,8 @@ declare module 'redux' {
27 27
 
28 28
   declare type Reducer<S, A> = (state: S, action: A) => S;
29 29
 
30
+  declare type CombinedReducer<S, A> = (state: $Shape<S> & {} | void, action: A) => S;
31
+
30 32
   declare type Middleware<S, A> =
31 33
     (api: MiddlewareAPI<S, A>) =>
32 34
       (next: Dispatch<A>) => Dispatch<A>;
@@ -49,7 +51,7 @@ declare module 'redux' {
49 51
   declare function bindActionCreators<A, C: ActionCreator<A, any>>(actionCreator: C, dispatch: Dispatch<A>): C;
50 52
   declare function bindActionCreators<A, K, C: ActionCreators<K, A>>(actionCreators: C, dispatch: Dispatch<A>): C;
51 53
 
52
-  declare function combineReducers<O: Object, A>(reducers: O): Reducer<$ObjMap<O, <S>(r: Reducer<S, any>) => S>, A>;
54
+  declare function combineReducers<O: Object, A>(reducers: O): CombinedReducer<$ObjMap<O, <S>(r: Reducer<S, any>) => S>, A>;
53 55
 
54 56
   declare function compose<S, A>(...fns: Array<StoreEnhancer<S, A>>): Function;
55 57
 

+ 6
- 6
package.json 查看文件

@@ -29,7 +29,7 @@
29 29
     "bootstrap": "3.1.1",
30 30
     "es6-iterator": "2.0.1",
31 31
     "es6-symbol": "3.1.1",
32
-    "i18next": "7.1.3",
32
+    "i18next": "8.0.0",
33 33
     "i18next-browser-languagedetector": "1.0.1",
34 34
     "i18next-xhr-backend": "1.4.1",
35 35
     "jitsi-meet-logger": "jitsi/jitsi-meet-logger",
@@ -44,7 +44,7 @@
44 44
     "postis": "2.2.0",
45 45
     "react": "15.4.2",
46 46
     "react-dom": "15.4.2",
47
-    "react-i18next": "2.2.3",
47
+    "react-i18next": "3.1.0",
48 48
     "react-native": "0.42.3",
49 49
     "react-native-background-timer": "1.0.0",
50 50
     "react-native-immersive": "0.0.4",
@@ -66,8 +66,8 @@
66 66
   },
67 67
   "devDependencies": {
68 68
     "babel-core": "6.24.1",
69
-    "babel-eslint": "7.2.1",
70
-    "babel-loader": "6.4.1",
69
+    "babel-eslint": "7.2.3",
70
+    "babel-loader": "7.0.0",
71 71
     "babel-polyfill": "6.23.0",
72 72
     "babel-preset-es2015": "6.24.1",
73 73
     "babel-preset-react": "6.24.1",
@@ -77,9 +77,9 @@
77 77
     "eslint": "3.19.0",
78 78
     "eslint-plugin-flowtype": "2.30.4",
79 79
     "eslint-plugin-import": "2.2.0",
80
-    "eslint-plugin-jsdoc": "3.0.0",
80
+    "eslint-plugin-jsdoc": "3.0.2",
81 81
     "eslint-plugin-react": "6.10.3",
82
-    "eslint-plugin-react-native": "2.3.1",
82
+    "eslint-plugin-react-native": "2.3.2",
83 83
     "expose-loader": "0.7.3",
84 84
     "file-loader": "0.11.1",
85 85
     "flow-bin": "0.38.0",

Loading…
取消
儲存