🚀 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
1.2.2

15

index.js

@@ -107,10 +107,9 @@ var Vue // late bind

exports.createRecord = function (id, options) {
var Component = typeof options === 'function'
? options
: Vue.extend(options)
options = Component.options
if (typeof options === 'function') {
options = options.options
}
if (typeof options.el !== 'string' && typeof options.data !== 'object') {
makeOptionsHot(id, options)
map[id] = {
Component: Component,
Component: null,
views: [],

@@ -132,3 +131,7 @@ instances: []

injectHook(options, 'created', function () {
map[id].instances.push(this)
var record = map[id]
if (!record.Component) {
record.Component = this.constructor
}
record.instances.push(this)
})

@@ -135,0 +138,0 @@ injectHook(options, 'beforeDestroy', function () {

2

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

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