Welcome to mirror list, hosted at ThFree Co, Russian Federation.

vue-apollo+3.0.7.patch « patches - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c463150a4e31d9aa44fed67f5ebb7d3705c6cb5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff --git a/node_modules/vue-apollo/dist/vue-apollo.esm.js b/node_modules/vue-apollo/dist/vue-apollo.esm.js
index e4b4b15..6d3040b 100644
--- a/node_modules/vue-apollo/dist/vue-apollo.esm.js
+++ b/node_modules/vue-apollo/dist/vue-apollo.esm.js
@@ -1933,14 +1933,6 @@ function initProvider() {
     this.$apolloProvider = typeof optionValue === 'function' ? optionValue() : optionValue;
   } else if (options.parent && options.parent.$apolloProvider) {
     this.$apolloProvider = options.parent.$apolloProvider;
-  } else if (options.provide) {
-    // TODO remove
-    // Temporary retro-compatibility
-    var provided = typeof options.provide === 'function' ? options.provide.call(this) : options.provide;
-
-    if (provided && provided.$apolloProvider) {
-      this.$apolloProvider = provided.$apolloProvider;
-    }
   }
 }
 
diff --git a/node_modules/vue-apollo/dist/vue-apollo.umd.js b/node_modules/vue-apollo/dist/vue-apollo.umd.js
index 2310455..895f996 100644
--- a/node_modules/vue-apollo/dist/vue-apollo.umd.js
+++ b/node_modules/vue-apollo/dist/vue-apollo.umd.js
@@ -1939,14 +1939,6 @@
       this.$apolloProvider = typeof optionValue === 'function' ? optionValue() : optionValue;
     } else if (options.parent && options.parent.$apolloProvider) {
       this.$apolloProvider = options.parent.$apolloProvider;
-    } else if (options.provide) {
-      // TODO remove
-      // Temporary retro-compatibility
-      var provided = typeof options.provide === 'function' ? options.provide.call(this) : options.provide;
-
-      if (provided && provided.$apolloProvider) {
-        this.$apolloProvider = provided.$apolloProvider;
-      }
     }
   }