Socket
Socket
Sign inDemoInstall

vue-class-component

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-class-component - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

9

index.js

@@ -47,6 +47,7 @@ var Vue = require('vue')

// find super
var Super = proto.__proto__.constructor
if (!(Super instanceof Vue)) {
Super = Vue
}
var Super
var superProto = Object.getPrototypeOf(Component.prototype)
var Super = superProto instanceof Vue
? superProto.constructor
: Vue
return Super.extend(options)

@@ -53,0 +54,0 @@ }

{
"name": "vue-class-component",
"version": "3.1.0",
"version": "3.1.1",
"description": "ES201X/TypeScript class decorator for Vue components",

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

@@ -84,2 +84,22 @@ import Component from '../index'

})
it('extending', function () {
@Component
class Base {
data () {
return { a: 1 }
}
}
@Component
class A extends Base {
data () {
return { b: 2 }
}
}
const a = new A()
expect(a.a).to.equal(1)
expect(a.b).to.equal(2)
})
})

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc