File tree Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 47
47
"@types/graphql" : " ^0.12.3" ,
48
48
"@types/inflection" : " ^1.5.28" ,
49
49
"@types/lodash-es" : " ^4.17.0" ,
50
- "@vuex-orm/core" : " ^0.25.4 " ,
50
+ "@vuex-orm/core" : " ^0.25.5 " ,
51
51
"apollo-cache-inmemory" : " ^1.1.7" ,
52
52
"apollo-client" : " ^2.2.2" ,
53
53
"apollo-link" : " ^1.2.0" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Context from '../common/context';
3
3
import { Store } from '../orm/store' ;
4
4
import { Arguments , Data , DispatchFunction } from '../support/interfaces' ;
5
5
import Model from '../orm/model' ;
6
- import State from '@vuex-orm/core/lib/modules/State ' ;
6
+ import RootState from '@vuex-orm/core/lib/modules/contracts/RootState ' ;
7
7
import Transformer from '../graphql/transformer' ;
8
8
import NameGenerator from '../graphql/name-generator' ;
9
9
import Schema from '../graphql/schema' ;
@@ -63,10 +63,10 @@ export default class Action {
63
63
64
64
/**
65
65
* Convenience method to get the model from the state.
66
- * @param {State } state Vuex state
66
+ * @param {RootState } state Vuex state
67
67
* @returns {Model }
68
68
*/
69
- protected static getModelFromState ( state : State ) : Model {
69
+ protected static getModelFromState ( state : RootState ) : Model {
70
70
return Context . getInstance ( ) . getModel ( state . $name ) ;
71
71
}
72
72
Original file line number Diff line number Diff line change 1
1
import ORMModel from '@vuex-orm/core/lib/model/Model' ;
2
2
import Database from '@vuex-orm/core/lib/database/Database' ;
3
- import State from '@vuex-orm/core/lib/modules/State ' ;
3
+ import RootState from '@vuex-orm/core/lib/modules/contracts/RootState ' ;
4
4
import { ApolloLink } from 'apollo-link' ;
5
5
6
6
export type DispatchFunction = ( action : string , data : Data ) => Promise < any > ;
@@ -22,7 +22,7 @@ export interface ActionParams {
22
22
getters : any ;
23
23
rootGetters : any ;
24
24
rootState : any ;
25
- state : State ;
25
+ state : RootState ;
26
26
filter ?: Filter ;
27
27
id ?: number ;
28
28
data ?: Data ;
Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ export default class VuexORMGraphQL {
28
28
private static setupActions ( ) {
29
29
const context = Context . getInstance ( ) ;
30
30
31
- context . components . rootActions . simpleQuery = SimpleQuery . call . bind ( SimpleQuery ) ;
32
- context . components . rootActions . simpleMutation = SimpleMutation . call . bind ( SimpleMutation ) ;
31
+ context . components . RootActions . simpleQuery = SimpleQuery . call . bind ( SimpleQuery ) ;
32
+ context . components . RootActions . simpleMutation = SimpleMutation . call . bind ( SimpleMutation ) ;
33
33
34
- context . components . subActions . fetch = Fetch . call . bind ( Fetch ) ;
35
- context . components . subActions . persist = Persist . call . bind ( Persist ) ;
36
- context . components . subActions . push = Push . call . bind ( Push ) ;
37
- context . components . subActions . destroy = Destroy . call . bind ( Destroy ) ;
38
- context . components . subActions . mutate = Mutate . call . bind ( Mutate ) ;
39
- context . components . subActions . query = Query . call . bind ( Query ) ;
34
+ context . components . Actions . fetch = Fetch . call . bind ( Fetch ) ;
35
+ context . components . Actions . persist = Persist . call . bind ( Persist ) ;
36
+ context . components . Actions . push = Push . call . bind ( Push ) ;
37
+ context . components . Actions . destroy = Destroy . call . bind ( Destroy ) ;
38
+ context . components . Actions . mutate = Mutate . call . bind ( Mutate ) ;
39
+ context . components . Actions . query = Query . call . bind ( Query ) ;
40
40
}
41
41
42
42
/**
Original file line number Diff line number Diff line change 185
185
source-map "^0.5.6"
186
186
vue-template-es2015-compiler "^1.6.0"
187
187
188
- " @vuex-orm/core@^0.25.4 " :
189
- version "0.25.4 "
190
- resolved "https://registry.yarnpkg.com/@vuex-orm/core/-/core-0.25.4 .tgz#0609e0df8a2ab2b614d53b8ce25e2c2bd562d0d3 "
188
+ " @vuex-orm/core@^0.25.5 " :
189
+ version "0.25.5 "
190
+ resolved "https://registry.yarnpkg.com/@vuex-orm/core/-/core-0.25.5 .tgz#ebdcfbbdb19195fff76309c1a8d4c1a708a23b38 "
191
191
192
192
" @webassemblyjs/[email protected] " :
193
193
version "1.4.3"
You can’t perform that action at this time.
0 commit comments