File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " jsonapi-vuex" ,
3
- "version" : " 5.13.0 " ,
3
+ "version" : " 5.13.1 " ,
4
4
"description" : " Access restructured JSONAPI data from a Vuex Store." ,
5
5
"author" : " Matthew Richardson <M.Richardson@ed.ac.uk>" ,
6
6
"scripts" : {
37
37
"babel-polyfill" : " ^6.26.0" ,
38
38
"chai" : " ^4.3.7" ,
39
39
"chai-as-promised" : " ^7.1.1" ,
40
- "chromedriver" : " ^113 .0.0" ,
40
+ "chromedriver" : " ^118 .0.0" ,
41
41
"concurrently" : " ^7.6.0" ,
42
42
"core-js" : " ^3.29.1" ,
43
43
"eslint" : " ^8.36.0" ,
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ const actions = (api, conf) => {
125
125
* @return {object } Restructured representation of the requested item(s)
126
126
*/
127
127
getRelated : async ( context , args ) => {
128
- const data = utils . unpackArgs ( args ) [ 0 ]
128
+ const [ data , config ] = utils . unpackArgs ( args )
129
129
let [ type , id , relName ] = utils . getTypeId ( data )
130
130
if ( ! type || ! id ) {
131
131
throw 'No type/id specified'
@@ -156,7 +156,7 @@ const actions = (api, conf) => {
156
156
// so fetch relationships resource linkage for these
157
157
if ( ! relItems ) {
158
158
try {
159
- const resLink = await api . get ( `${ type } /${ id } /relationships/${ relName } ` )
159
+ const resLink = await api . get ( `${ type } /${ id } /relationships/${ relName } ` , config )
160
160
relItems = resLink . data
161
161
} catch ( error ) {
162
162
throw `No such relationship: ${ relName } `
@@ -185,7 +185,7 @@ const actions = (api, conf) => {
185
185
entry = { [ jvtag ] : entry }
186
186
}
187
187
relNames . push ( relName )
188
- relPromises . push ( context . dispatch ( 'get' , entry ) )
188
+ relPromises . push ( context . dispatch ( 'get' , [ entry , config ] ) )
189
189
}
190
190
} else {
191
191
// Empty to-one rels should have a relName but no data
You can’t perform that action at this time.
0 commit comments