🚀 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.0.4

9

index.js

@@ -5,2 +5,3 @@ var Vue // late bind

var isBrowserify = false
var initHookName = 'beforeCreate'

@@ -14,2 +15,7 @@ exports.install = function (vue, browserify) {

// compat with < 2.0.0-alpha.7
if (Vue.config._lifecycleHooks.indexOf('init') > -1) {
initHookName = 'init'
}
exports.compatible = Number(Vue.version.split('.')[0]) >= 2

@@ -54,3 +60,3 @@ if (!exports.compatible) {

function makeOptionsHot (id, options) {
injectHook(options, 'init', function () {
injectHook(options, initHookName, function () {
map[id].instances.push(this)

@@ -92,2 +98,3 @@ })

exports.rerender = tryWrap(function (id, fns) {
debugger
var record = map[id]

@@ -94,0 +101,0 @@ record.Ctor.options.render = fns.render

2

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

@@ -5,0 +5,0 @@ "main": "index.js",