Skip to content

Commit 7415127

Browse files
committed
use circular-json-es6 instead
1 parent a598a34 commit 7415127

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"webpack-dev-server": "^1.12.1"
5050
},
5151
"dependencies": {
52-
"circular-json": "^0.3.0",
53-
"vue": "^1.0.10"
52+
"circular-json-es6": "^1.0.0",
53+
"vue": "^1.0.17"
5454
}
5555
}

shells/dev/target/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ for (var i = 0; i < 100; i++) {
99
items.push({ id: i })
1010
}
1111

12+
let circular = {}
13+
circular.self = circular
14+
1215
new Vue({
1316
store,
1417
template: `
@@ -21,7 +24,8 @@ new Vue({
2124
components: { Target, Other, Counter },
2225
data: {
2326
obj: {
24-
items: items
27+
items: items,
28+
circular
2529
}
2630
}
2731
}).$mount().$appendTo('body')

src/backend/vuex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import CircularJSON from 'circular-json'
1+
import CircularJSON from 'circular-json-es6'
22
import { stringify } from '../util'
33

44
export function initVuexBackend (hook, bridge) {

src/devtools/components/VuexStateInspector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</template>
1212

1313
<script>
14-
import CircularJSON from 'circular-json'
14+
import CircularJSON from 'circular-json-es6'
1515
import DataField from './DataField.vue'
1616
1717
export default {

src/devtools/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Vue from 'vue'
22
import App from './components/App.vue'
33
import store from './vuex/store'
4-
import CircularJSON from 'circular-json'
4+
import CircularJSON from 'circular-json-es6'
55

66
Vue.config.debug = true
77

src/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import CircularJSON from 'circular-json'
1+
import CircularJSON from 'circular-json-es6'
22

33
/**
44
* Stringify data using CircularJSON.

0 commit comments

Comments
 (0)