Skip to content

Commit fee31d7

Browse files
author
Guillaume Chau
committed
Merge branch 'master' into dev
2 parents ecc097f + 475cc51 commit fee31d7

File tree

7 files changed

+38
-23
lines changed

7 files changed

+38
-23
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-devtools",
3-
"version": "4.1.5-beta.2",
3+
"version": "4.1.5",
44
"description": "devtools for Vue.js!",
55
"main": "index.js",
66
"scripts": {
@@ -13,7 +13,7 @@
1313
"zip": "npm run zip:chrome && npm run zip:firefox",
1414
"zip:chrome": "cd shells && zip -r -FS ../dist/chrome.zip chrome -x *src/* -x *webpack.config.js",
1515
"zip:firefox": "web-ext build -s shells/chrome -a dist -i src --overwrite-dest",
16-
"sign:firefox": "web-ext sign -s shells/chrome -a dist -i src --id {f0beaa66-17d0-42e9-b1c9-c52da6252db8}",
16+
"sign:firefox": "cross-env WEB_EXT_API_KEY=VUE_DEVTOOLS_AMO_KEY WEB_EXT_API_SECRET=VUE_DEVTOOLS_AMO_SECRET web-ext sign -s shells/chrome -a dist -i src --id {f0beaa66-17d0-42e9-b1c9-c52da6252db8}",
1717
"release": "node release.js && npm run test && npm run build && npm run zip",
1818
"release:beta": "cross-env RELEASE_CHANNEL=beta npm run release && npm run sign:firefox",
1919
"test": "npm run lint && npm run test:e2e",

shells/chrome/manifest.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "Vue.js devtools",
3-
"version": "4.1.5.2",
4-
"version_name": "4.1.5 beta",
3+
"version": "4.1.5",
4+
"version_name": "4.1.5",
55
"description": "Chrome and Firefox DevTools extension for debugging Vue.js applications.",
66
"manifest_version": 2,
77
"icons": {
8-
"16": "icons/16-beta.png",
9-
"48": "icons/48-beta.png",
10-
"128": "icons/128-beta.png"
8+
"16": "icons/16.png",
9+
"48": "icons/48.png",
10+
"128": "icons/128.png"
1111
},
1212
"browser_action": {
1313
"default_icon": {

shells/electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/devtools",
3-
"version": "1.1.0",
3+
"version": "4.1.5",
44
"description": "StandAlone vue-devtools",
55
"repository": {
66
"url": "https://github.com/vuejs/vue-devtools.git",

src/.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
rules: {
3+
'no-restricted-syntax': [
4+
'error',
5+
{
6+
selector: 'ForOfStatement',
7+
message: 'Not supported by bublé'
8+
}
9+
]
10+
}
11+
}

src/devtools/.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
rules: {
3+
'no-restricted-syntax': 'off'
4+
}
5+
}

src/shared-data.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,16 @@ export function watch (...args) {
8989
vm.$watch(...args)
9090
}
9191

92-
// Proxy traps
93-
const traps = {
94-
get (target, key) {
95-
return vm && vm.$data[key]
96-
},
97-
set (target, key, value) {
98-
sendValue(key, value)
99-
return setValue(key, value)
100-
}
101-
}
102-
103-
const SharedDataProxy = new Proxy({}, traps)
92+
const proxy = {}
93+
Object.keys(internalSharedData).forEach(key => {
94+
Object.defineProperty(proxy, key, {
95+
configurable: false,
96+
get: () => vm && vm.$data[key],
97+
set: (value) => {
98+
sendValue(key, value)
99+
setValue(key, value)
100+
}
101+
})
102+
})
104103

105-
export default SharedDataProxy
104+
export default proxy

src/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ export function set (object, path, value, cb = null) {
480480

481481
export function get (object, path) {
482482
const sections = path.split('.')
483-
for (const section of sections) {
484-
object = object[section]
483+
for (let i = 0; i < sections.length; i++) {
484+
object = object[sections[i]]
485485
if (!object) {
486486
return undefined
487487
}

0 commit comments

Comments
 (0)