File tree 4 files changed +9
-8
lines changed 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,6 @@ package-lock.json
5
5
dist
6
6
lib
7
7
.vscode
8
+ .idea
8
9
.rpt2_cache
9
10
TODO.md
Original file line number Diff line number Diff line change 40
40
"rollup-plugin-replace" : " ^2.2.0" ,
41
41
"rollup-plugin-terser" : " ^4.0.4" ,
42
42
"rollup-plugin-typescript2" : " ^0.21.0" ,
43
- "typescript" : " ^3.4.5"
43
+ "typescript" : " ^3.4.5" ,
44
+ "vue" : " ^2.6.10"
44
45
},
45
46
"peerDependencies" : {
46
47
"vue" : " ^2.0.0"
Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ import { value } from './functions/state';
7
7
8
8
export function mixin ( Vue : VueConstructor ) {
9
9
Vue . mixin ( {
10
- created : vuexInit ,
10
+ created : functionApiInit ,
11
11
} ) ;
12
12
13
13
/**
14
14
* Vuex init hook, injected into each instances init hooks list.
15
15
*/
16
- function vuexInit ( this : any ) {
16
+ function functionApiInit ( this : any ) {
17
17
const vm = this ;
18
18
const { setup } = vm . $options ;
19
19
if ( ! setup ) {
@@ -58,8 +58,7 @@ export function mixin(Vue: VueConstructor) {
58
58
59
59
Object . keys ( binding ) . forEach ( name => {
60
60
let bindingValue = binding [ name ] ;
61
- if ( bindingValue === undefined )
62
- return ;
61
+ if ( bindingValue === undefined ) return ;
63
62
// make plain value reactive
64
63
if ( ! isWrapper ( bindingValue ) && ! isFunction ( bindingValue ) && ! Object . isFrozen ( bindingValue ) ) {
65
64
bindingValue = value ( bindingValue ) ;
Original file line number Diff line number Diff line change @@ -4201,10 +4201,10 @@ verror@1.10.0:
4201
4201
core-util-is "1.0.2"
4202
4202
extsprintf "^1.2.0"
4203
4203
4204
- vue@^2.0.0 :
4204
+ vue@^2.6.10 :
4205
4205
version "2.6.10"
4206
- resolved "https://registry.npm.taobao.org /vue/download /vue-2.6.10.tgz#a72b1a42a4d82a721ea438d1b6bf55e66195c637"
4207
- integrity sha1-pysaQqTYKnIepDjRtr9V5mGVxjc =
4206
+ resolved "https://registry.yarnpkg.com /vue/- /vue-2.6.10.tgz#a72b1a42a4d82a721ea438d1b6bf55e66195c637"
4207
+ integrity sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ= =
4208
4208
4209
4209
w3c-hr-time@^1.0.1 :
4210
4210
version "1.0.1"
You can’t perform that action at this time.
0 commit comments