Skip to content

Commit 64799c4

Browse files
committed
Removed meteor imports
1 parent c55a4df commit 64799c4

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-meteor-tracker",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Use Meteor Tracker reactivity inside Vue components",
55
"main": "index.js",
66
"scripts": {

src/vue-plugin.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Meteor } from 'meteor/meteor';
2-
import { Tracker } from 'meteor/tracker';
31
import omit from 'lodash.omit';
42

53
function defaultSubscription(...args) {
@@ -8,7 +6,7 @@ function defaultSubscription(...args) {
86

97
export default {
108
install(Vue, options) {
11-
9+
1210
const vueVersion = parseInt(Vue.version.charAt(0));
1311

1412
const { defineReactive } = Vue.util;
@@ -21,12 +19,12 @@ export default {
2119
for(const k in options) {
2220
Vue.config.meteor[k] = options[k];
2321
}
24-
22+
2523
const merge = Vue.config.optionMergeStrategies.methods
2624
Vue.config.optionMergeStrategies.meteor = function (toVal, fromVal, vm) {
2725
if (!toVal) return fromVal
2826
if (!fromVal) return toVal
29-
27+
3028
const toData = Object.assign({}, omit(toVal, [
3129
'subscribe',
3230
'data',
@@ -35,7 +33,7 @@ export default {
3533
'subscribe',
3634
'data',
3735
]), fromVal.data);
38-
36+
3937
return Object.assign({
4038
subscribe: merge(toVal.subscribe, fromVal.subscribe),
4139
}, merge(toData, fromData))

0 commit comments

Comments
 (0)