🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vue-hot-reload-api

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-hot-reload-api - npm Package Compare versions

Comparing version

to
2.3.2

20

dist/index.js

@@ -170,6 +170,12 @@ var Vue // late bind

}
// post 2.5.4: v-once trees are cached on instance._staticTrees.
// Pure static trees are cached on the staticRenderFns array
// (both already reset above)
// 2.6: temporarily mark rendered scoped slots as unstable so that
// child components can be forced to update
var restore = patchScopedSlots(instance)
instance.$forceUpdate()
instance.$nextTick(restore)
})

@@ -245,1 +251,15 @@ } else {

})
// 2.6 optimizes template-compiled scoped slots and skips updates if child
// only uses scoped slots. We need to patch the scoped slots resolving helper
// to temporarily mark all scoped slots as unstable in order to force child
// updates.
function patchScopedSlots (instance) {
if (!instance._u) { return }
// https://github.com/vuejs/vue/blob/dev/src/core/instance/render-helpers/resolve-scoped-slots.js
var original = instance._u
instance._u = function (slots) { return original(slots, true); }
return function () {
instance._u = original
}
}

8

package.json
{
"name": "vue-hot-reload-api",
"version": "2.3.1",
"version": "2.3.2",
"description": "hot reload api for *.vue components",

@@ -30,6 +30,6 @@ "main": "dist/index.js",

"devDependencies": {
"buble": "^0.16.0",
"jest": "^21.2.1",
"vue": "^2.4.4"
"buble": "^0.19.6",
"jest": "^23.6.0",
"vue": "^2.5.21"
}
}