@@ -1487,7 +1487,7 @@ function stubArray() {
1487
1487
return [ ] ;
1488
1488
}
1489
1489
1490
- var index = omit ;
1490
+ var lodash_omit = omit ;
1491
1491
1492
1492
/**
1493
1493
* lodash (Custom Build) <https://lodash.com/>
@@ -1927,7 +1927,7 @@ function toNumber(value) {
1927
1927
: ( reIsBadHex . test ( value ) ? NAN : + value ) ;
1928
1928
}
1929
1929
1930
- var index$1 = throttle$1 ;
1930
+ var lodash_throttle = throttle$1 ;
1931
1931
1932
1932
/**
1933
1933
* lodash (Custom Build) <https://lodash.com/>
@@ -2305,7 +2305,7 @@ function toNumber$1(value) {
2305
2305
: ( reIsBadHex$1 . test ( value ) ? NAN$1 : + value ) ;
2306
2306
}
2307
2307
2308
- var index$2 = debounce$2 ;
2308
+ var lodash_debounce = debounce$2 ;
2309
2309
2310
2310
var Globals = { } ;
2311
2311
@@ -2319,9 +2319,9 @@ function factory(action) {
2319
2319
} ;
2320
2320
}
2321
2321
2322
- var throttle = factory ( index$1 ) ;
2322
+ var throttle = factory ( lodash_throttle ) ;
2323
2323
2324
- var debounce = factory ( index$2 ) ;
2324
+ var debounce = factory ( lodash_debounce ) ;
2325
2325
2326
2326
function getMergedDefinition ( def ) {
2327
2327
return Globals . Vue . util . mergeOptions ( { } , def ) ;
@@ -2598,7 +2598,7 @@ var SmartApollo = function () {
2598
2598
} , {
2599
2599
key : 'generateApolloOptions' ,
2600
2600
value : function generateApolloOptions ( variables ) {
2601
- var apolloOptions = index ( this . options , this . vueApolloSpecialKeys ) ;
2601
+ var apolloOptions = lodash_omit ( this . options , this . vueApolloSpecialKeys ) ;
2602
2602
apolloOptions . variables = variables ;
2603
2603
return apolloOptions ;
2604
2604
}
@@ -3037,15 +3037,26 @@ var DollarApollo = function () {
3037
3037
} , {
3038
3038
key : 'addSmartQuery' ,
3039
3039
value : function addSmartQuery ( key , options ) {
3040
+ var _this3 = this ;
3041
+
3040
3042
options = reapply ( options , this . vm ) ;
3041
3043
3042
3044
var smart = this . queries [ key ] = new SmartQuery ( this . vm , key , options , false ) ;
3043
3045
smart . autostart ( ) ;
3044
3046
3045
- if ( options . subscribeToMore ) {
3046
- this . addSmartSubscription ( key , _extends ( { } , options . subscribeToMore , {
3047
- linkedQuery : smart
3048
- } ) ) ;
3047
+ var subs = options . subscribeToMore ;
3048
+ if ( subs ) {
3049
+ if ( Array . isArray ( subs ) ) {
3050
+ subs . forEach ( function ( sub , index ) {
3051
+ _this3 . addSmartSubscription ( '' + key + index , _extends ( { } , sub , {
3052
+ linkedQuery : smart
3053
+ } ) ) ;
3054
+ } ) ;
3055
+ } else {
3056
+ this . addSmartSubscription ( key , _extends ( { } , subs , {
3057
+ linkedQuery : smart
3058
+ } ) ) ;
3059
+ }
3049
3060
}
3050
3061
3051
3062
return smart ;
@@ -3063,10 +3074,10 @@ var DollarApollo = function () {
3063
3074
} , {
3064
3075
key : 'defineReactiveSetter' ,
3065
3076
value : function defineReactiveSetter ( key , func ) {
3066
- var _this3 = this ;
3077
+ var _this4 = this ;
3067
3078
3068
3079
this . _watchers . push ( this . vm . $watch ( func , function ( value ) {
3069
- _this3 [ key ] = value ;
3080
+ _this4 [ key ] = value ;
3070
3081
} , {
3071
3082
immediate : true
3072
3083
} ) ) ;
@@ -3286,7 +3297,7 @@ var ApolloProvider$1 = function () {
3286
3297
3287
3298
// Query
3288
3299
return new Promise ( function ( resolve , reject ) {
3289
- var options = index ( queryOptions , VUE_APOLLO_QUERY_KEYWORDS ) ;
3300
+ var options = lodash_omit ( queryOptions , VUE_APOLLO_QUERY_KEYWORDS ) ;
3290
3301
options . variables = variables ;
3291
3302
client . query ( options ) . then ( resolve , reject ) ;
3292
3303
} ) ;
@@ -3407,8 +3418,8 @@ function install(Vue, options) {
3407
3418
if ( ! toVal ) return fromVal ;
3408
3419
if ( ! fromVal ) return toVal ;
3409
3420
3410
- var toData = Object . assign ( { } , index ( toVal , keywords ) , toVal . data ) ;
3411
- var fromData = Object . assign ( { } , index ( fromVal , keywords ) , fromVal . data ) ;
3421
+ var toData = Object . assign ( { } , lodash_omit ( toVal , keywords ) , toVal . data ) ;
3422
+ var fromData = Object . assign ( { } , lodash_omit ( fromVal , keywords ) , fromVal . data ) ;
3412
3423
3413
3424
var map = { } ;
3414
3425
for ( var i = 0 ; i < keywords . length ; i ++ ) {
0 commit comments