Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-class-component

Package Overview
Dependencies
Maintainers
2
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 7.0.1 to 7.0.2

12

dist/vue-class-component.common.js
/**
* vue-class-component v7.0.1
* vue-class-component v7.0.2
* (c) 2015-present Evan You

@@ -214,7 +214,13 @@ * @license MIT

];
var shouldIgnore = {
prototype: true,
arguments: true,
callee: true,
caller: true
};
function forwardStaticMembers(Extended, Original, Super) {
// We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
Object.getOwnPropertyNames(Original).forEach(function (key) {
// `prototype` should not be overwritten
if (key === 'prototype') {
// Skip the properties that should not be overwritten
if (shouldIgnore[key]) {
return;

@@ -221,0 +227,0 @@ }

/**
* vue-class-component v7.0.1
* vue-class-component v7.0.2
* (c) 2015-present Evan You

@@ -214,7 +214,13 @@ * @license MIT

];
var shouldIgnore = {
prototype: true,
arguments: true,
callee: true,
caller: true
};
function forwardStaticMembers(Extended, Original, Super) {
// We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
Object.getOwnPropertyNames(Original).forEach(function (key) {
// `prototype` should not be overwritten
if (key === 'prototype') {
// Skip the properties that should not be overwritten
if (shouldIgnore[key]) {
return;

@@ -221,0 +227,0 @@ }

/**
* vue-class-component v7.0.1
* vue-class-component v7.0.2
* (c) 2015-present Evan You
* @license MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t(e.VueClassComponent={},e.Vue)}(this,function(e,d){"use strict";d=d&&d.hasOwnProperty("default")?d.default:d;var y="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function v(r,o,n){(n?Reflect.getOwnMetadataKeys(o,n):Reflect.getOwnMetadataKeys(o)).forEach(function(e){var t=n?Reflect.getOwnMetadata(e,o,n):Reflect.getOwnMetadata(e,o);n?Reflect.defineMetadata(e,t,r,n):Reflect.defineMetadata(e,t,r)})}var O={__proto__:[]}instanceof Array;var l=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function r(e,o){void 0===o&&(o={}),o.name=o.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach(function(t){if("constructor"!==t)if(-1<l.indexOf(t))o[t]=n[t];else{var r=Object.getOwnPropertyDescriptor(n,t);void 0!==r.value?"function"==typeof r.value?(o.methods||(o.methods={}))[t]=r.value:(o.mixins||(o.mixins=[])).push({data:function(){var e;return(e={})[t]=r.value,e}}):(r.get||r.set)&&((o.computed||(o.computed={}))[t]={get:r.get,set:r.set})}}),(o.mixins||(o.mixins=[])).push({data:function(){return function(o,e){var t=e.prototype._init;e.prototype._init=function(){var e=this,t=Object.getOwnPropertyNames(o);if(o.$options.props)for(var r in o.$options.props)o.hasOwnProperty(r)||t.push(r);t.forEach(function(t){"_"!==t.charAt(0)&&Object.defineProperty(e,t,{get:function(){return o[t]},set:function(e){o[t]=e},configurable:!0})})};var r=new e;e.prototype._init=t;var n={};return Object.keys(r).forEach(function(e){void 0!==r[e]&&(n[e]=r[e])}),n}(this,e)}});var t=e.__decorators__;t&&(t.forEach(function(e){return e(o)}),delete e.__decorators__);var c,i,f,r,a,u=Object.getPrototypeOf(e.prototype),p=u instanceof d?u.constructor:d,s=p.extend(o);return c=s,i=e,f=p,Object.getOwnPropertyNames(i).forEach(function(e){if("prototype"!==e){var t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.configurable){var r,o,n=Object.getOwnPropertyDescriptor(i,e);if(!O){if("cid"===e)return;var a=Object.getOwnPropertyDescriptor(f,e);if(r=n.value,o=typeof r,null!=r&&("object"===o||"function"===o)&&a&&a.value===n.value)return}Object.defineProperty(c,e,n)}}}),y&&(v(r=s,a=e),Object.getOwnPropertyNames(a.prototype).forEach(function(e){v(r.prototype,a.prototype,e)}),Object.getOwnPropertyNames(a).forEach(function(e){v(r,a,e)})),s}function t(t){return"function"==typeof t?r(t):function(e){return r(e,t)}}t.registerHooks=function(e){l.push.apply(l,e)},e.default=t,e.createDecorator=function(n){return function(e,t,r){var o="function"==typeof e?e:e.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof r&&(r=void 0),o.__decorators__.push(function(e){return n(e,t,r)})}},e.mixins=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return d.extend({mixins:e})},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t(e.VueClassComponent={},e.Vue)}(this,function(e,d){"use strict";d=d&&d.hasOwnProperty("default")?d.default:d;var y="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function v(r,o,n){(n?Reflect.getOwnMetadataKeys(o,n):Reflect.getOwnMetadataKeys(o)).forEach(function(e){var t=n?Reflect.getOwnMetadata(e,o,n):Reflect.getOwnMetadata(e,o);n?Reflect.defineMetadata(e,t,r,n):Reflect.defineMetadata(e,t,r)})}var l={__proto__:[]}instanceof Array;var O=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function r(e,o){void 0===o&&(o={}),o.name=o.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach(function(t){if("constructor"!==t)if(-1<O.indexOf(t))o[t]=n[t];else{var r=Object.getOwnPropertyDescriptor(n,t);void 0!==r.value?"function"==typeof r.value?(o.methods||(o.methods={}))[t]=r.value:(o.mixins||(o.mixins=[])).push({data:function(){var e;return(e={})[t]=r.value,e}}):(r.get||r.set)&&((o.computed||(o.computed={}))[t]={get:r.get,set:r.set})}}),(o.mixins||(o.mixins=[])).push({data:function(){return function(o,e){var t=e.prototype._init;e.prototype._init=function(){var e=this,t=Object.getOwnPropertyNames(o);if(o.$options.props)for(var r in o.$options.props)o.hasOwnProperty(r)||t.push(r);t.forEach(function(t){"_"!==t.charAt(0)&&Object.defineProperty(e,t,{get:function(){return o[t]},set:function(e){o[t]=e},configurable:!0})})};var r=new e;e.prototype._init=t;var n={};return Object.keys(r).forEach(function(e){void 0!==r[e]&&(n[e]=r[e])}),n}(this,e)}});var t=e.__decorators__;t&&(t.forEach(function(e){return e(o)}),delete e.__decorators__);var c,i,f,r,a,u=Object.getPrototypeOf(e.prototype),p=u instanceof d?u.constructor:d,s=p.extend(o);return c=s,i=e,f=p,Object.getOwnPropertyNames(i).forEach(function(e){if(!_[e]){var t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.configurable){var r,o,n=Object.getOwnPropertyDescriptor(i,e);if(!l){if("cid"===e)return;var a=Object.getOwnPropertyDescriptor(f,e);if(r=n.value,o=typeof r,null!=r&&("object"===o||"function"===o)&&a&&a.value===n.value)return}Object.defineProperty(c,e,n)}}}),y&&(v(r=s,a=e),Object.getOwnPropertyNames(a.prototype).forEach(function(e){v(r.prototype,a.prototype,e)}),Object.getOwnPropertyNames(a).forEach(function(e){v(r,a,e)})),s}var _={prototype:!0,arguments:!0,callee:!0,caller:!0};function t(t){return"function"==typeof t?r(t):function(e){return r(e,t)}}t.registerHooks=function(e){O.push.apply(O,e)},e.default=t,e.createDecorator=function(n){return function(e,t,r){var o="function"==typeof e?e:e.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof r&&(r=void 0),o.__decorators__.push(function(e){return n(e,t,r)})}},e.mixins=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return d.extend({mixins:e})},Object.defineProperty(e,"__esModule",{value:!0})});

@@ -97,7 +97,13 @@ import Vue from 'vue';

];
var shouldIgnore = {
prototype: true,
arguments: true,
callee: true,
caller: true
};
function forwardStaticMembers(Extended, Original, Super) {
// We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
Object.getOwnPropertyNames(Original).forEach(function (key) {
// `prototype` should not be overwritten
if (key === 'prototype') {
// Skip the properties that should not be overwritten
if (shouldIgnore[key]) {
return;

@@ -104,0 +110,0 @@ }

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

@@ -5,0 +5,0 @@ "main": "dist/vue-class-component.common.js",

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