vue-class-component
Advanced tools
Comparing version 8.0.0-alpha.6 to 8.0.0-beta.1
@@ -0,1 +1,10 @@ | ||
# [8.0.0-beta.1](https://github.com/vuejs/vue-class-component/compare/v8.0.0-alpha.6...v8.0.0-beta.1) (2020-09-12) | ||
### Features | ||
Added `props` and `emits` mixin helpers to define corresponding component options with type safety. | ||
You can see the detailed proposal at [#447](https://github.com/vuejs/vue-class-component/issues/447) | ||
# [8.0.0-alpha.6](https://github.com/vuejs/vue-class-component/compare/v8.0.0-alpha.5...v8.0.0-alpha.6) (2020-05-20) | ||
@@ -2,0 +11,0 @@ |
/** | ||
* vue-class-component v8.0.0-alpha.6 | ||
* vue-class-component v8.0.0-beta.1 | ||
* (c) 2015-present Evan You | ||
@@ -127,2 +127,19 @@ * @license MIT | ||
function _construct(Parent, args, Class) { | ||
if (_isNativeReflectConstruct()) { | ||
_construct = Reflect.construct; | ||
} else { | ||
_construct = function _construct(Parent, args, Class) { | ||
var a = [null]; | ||
a.push.apply(a, args); | ||
var Constructor = Function.bind.apply(Parent, a); | ||
var instance = new Constructor(); | ||
if (Class) _setPrototypeOf(instance, Class.prototype); | ||
return instance; | ||
}; | ||
} | ||
return _construct.apply(null, arguments); | ||
} | ||
function _assertThisInitialized(self) { | ||
@@ -147,3 +164,3 @@ if (self === void 0) { | ||
return function () { | ||
return function _createSuperInternal() { | ||
var Super = _getPrototypeOf(Derived), | ||
@@ -218,3 +235,3 @@ result; | ||
function getSuperOptions(Ctor) { | ||
function getSuper(Ctor) { | ||
var superProto = Object.getPrototypeOf(Ctor.prototype); | ||
@@ -226,4 +243,3 @@ | ||
var Super = superProto.constructor; | ||
return Super.__vccOpts; | ||
return superProto.constructor; | ||
} | ||
@@ -262,2 +278,10 @@ | ||
_createClass(VueImpl, null, [{ | ||
key: "__vccExtend", | ||
value: function __vccExtend(options) { | ||
options.mixins = options.mixins || []; | ||
options.mixins.push(this.__vccOpts); | ||
} | ||
/** @internal */ | ||
}, { | ||
key: "registerHooks", | ||
@@ -287,8 +311,6 @@ value: function registerHooks(keys) { | ||
options["extends"] = getSuperOptions(Ctor); // Handle mixins | ||
var Super = getSuper(Ctor); | ||
var mixins = this.hasOwnProperty('__vccMixins') && this.__vccMixins; | ||
if (mixins) { | ||
options.mixins = options.mixins ? options.mixins.concat(mixins) : mixins; | ||
if (Super) { | ||
Super.__vccExtend(options); | ||
} | ||
@@ -406,5 +428,3 @@ | ||
var _a; | ||
return _a = /*#__PURE__*/function (_Vue) { | ||
return /*#__PURE__*/function (_Vue) { | ||
_inherits(MixedVue, _Vue); | ||
@@ -414,10 +434,24 @@ | ||
function MixedVue(props, ctx) { | ||
_createClass(MixedVue, null, [{ | ||
key: "__vccExtend", | ||
value: function __vccExtend(options) { | ||
Ctors.forEach(function (Ctor) { | ||
return Ctor.__vccExtend(options); | ||
}); | ||
} | ||
}]); | ||
function MixedVue() { | ||
var _this; | ||
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
args[_key2] = arguments[_key2]; | ||
} | ||
_classCallCheck(this, MixedVue); | ||
_this = _super.call(this, props, ctx); | ||
_this = _super.call.apply(_super, [this].concat(args)); | ||
Ctors.forEach(function (Ctor) { | ||
var data = new Ctor(props, ctx); | ||
var data = _construct(Ctor, args); | ||
Object.keys(data).forEach(function (key) { | ||
@@ -431,6 +465,52 @@ _this[key] = data[key]; | ||
return MixedVue; | ||
}(Vue), _a.__vccMixins = Ctors.map(function (Ctor) { | ||
return Ctor.__vccOpts; | ||
}), _a; | ||
}(Vue); | ||
} | ||
function props(propsOptions) { | ||
var PropsMixin = /*#__PURE__*/function (_Vue2) { | ||
_inherits(PropsMixin, _Vue2); | ||
var _super2 = _createSuper(PropsMixin); | ||
function PropsMixin() { | ||
_classCallCheck(this, PropsMixin); | ||
return _super2.apply(this, arguments); | ||
} | ||
_createClass(PropsMixin, null, [{ | ||
key: "__vccExtend", | ||
value: function __vccExtend(options) { | ||
options.props = propsOptions; | ||
} | ||
}]); | ||
return PropsMixin; | ||
}(Vue); | ||
return PropsMixin; | ||
} | ||
function emits(emitsOptions) { | ||
var EmitsMixin = /*#__PURE__*/function (_Vue3) { | ||
_inherits(EmitsMixin, _Vue3); | ||
var _super3 = _createSuper(EmitsMixin); | ||
function EmitsMixin() { | ||
_classCallCheck(this, EmitsMixin); | ||
return _super3.apply(this, arguments); | ||
} | ||
_createClass(EmitsMixin, null, [{ | ||
key: "__vccExtend", | ||
value: function __vccExtend(options) { | ||
options.emits = emitsOptions; | ||
} | ||
}]); | ||
return EmitsMixin; | ||
}(Vue); | ||
return EmitsMixin; | ||
} | ||
function setup(setupFn) { | ||
@@ -447,3 +527,5 @@ // Hack to delay the invocation of setup function. | ||
exports.createDecorator = createDecorator; | ||
exports.emits = emits; | ||
exports.mixins = mixins; | ||
exports.props = props; | ||
exports.setup = setup; |
@@ -0,4 +1,5 @@ | ||
import { ComponentObjectPropsOptions } from 'vue'; | ||
import { ComponentOptions } from 'vue'; | ||
import { ComponentPublicInstance } from 'vue'; | ||
import { SetupContext } from 'vue'; | ||
import { ExtractPropTypes } from 'vue'; | ||
import { UnwrapRef } from 'vue'; | ||
@@ -26,10 +27,24 @@ import { VNode } from 'vue'; | ||
export declare function emits<EmitNames extends string>(emitNames: EmitNames[]): VueConstructor<Vue<unknown, EmitNames[]>>; | ||
export declare function emits<EmitsOptions extends ObjectEmitsOptions>(emitsOptions: EmitsOptions): VueConstructor<Vue<unknown, EmitsOptions>>; | ||
export declare type EmitsOptions = ObjectEmitsOptions | string[]; | ||
export declare type ExtractInstance<T> = T extends VueMixin<infer V> ? V : never; | ||
export declare type MixedVueBase<Mixins extends VueMixin[]> = Mixins extends (infer T)[] ? VueBase<UnionToIntersection<ExtractInstance<T>> & Vue> & PropsMixin : never; | ||
export declare type MixedVueBase<Mixins extends VueMixin[]> = Mixins extends (infer T)[] ? VueConstructor<UnionToIntersection<ExtractInstance<T>> & Vue> & PropsMixin : never; | ||
export declare function mixins<T extends VueMixin[]>(...Ctors: T): MixedVueBase<T>; | ||
export declare function Options<V extends Vue>(options: ComponentOptions & ThisType<V>): <VC extends VueBase>(target: VC) => VC; | ||
export declare type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>; | ||
export declare function Options<V extends Vue>(options: ComponentOptions & ThisType<V>): <VC extends VueConstructor>(target: VC) => VC; | ||
export declare function props<PropNames extends string, Props = Readonly<{ | ||
[key in PropNames]?: any; | ||
}>>(propNames: PropNames[]): VueConstructor<Vue<Props> & Props>; | ||
export declare function props<PropsOptions extends ComponentObjectPropsOptions, Props = Readonly<ExtractPropTypes<PropsOptions>>>(propsOptions: PropsOptions): VueConstructor<Vue<Props> & Props>; | ||
export declare interface PropsMixin { | ||
@@ -45,14 +60,14 @@ new <Props = unknown>(...args: any[]): { | ||
export declare type Vue<Props = unknown> = ComponentPublicInstance<{}, {}, {}, {}, {}, Record<string, any>, Props> & ClassComponentHooks; | ||
export declare type Vue<Props = unknown, Emits extends EmitsOptions = {}> = ComponentPublicInstance<{}, {}, {}, {}, {}, Emits, Props> & ClassComponentHooks; | ||
export declare const Vue: VueConstructor; | ||
export declare type VueBase<V extends Vue = Vue> = VueMixin<V> & (new (...args: any[]) => V); | ||
export declare type VueBase = Vue<unknown, never[]>; | ||
export declare interface VueConstructor extends VueStatic { | ||
new <Props = unknown>(prop: Props, ctx: SetupContext): Vue<Props>; | ||
export declare interface VueConstructor<V extends VueBase = Vue> extends VueStatic { | ||
new (...args: any[]): V; | ||
} | ||
export declare interface VueDecorator { | ||
(Ctor: VueBase): void; | ||
(Ctor: VueConstructor): void; | ||
(target: Vue, key: string): void; | ||
@@ -62,3 +77,3 @@ (target: Vue, key: string, index: number): void; | ||
export declare type VueMixin<V extends Vue = Vue> = VueStatic & { | ||
export declare type VueMixin<V extends VueBase = Vue> = VueStatic & { | ||
prototype: V; | ||
@@ -71,3 +86,3 @@ }; | ||
/* Excluded from this release type: __vccDecorators */ | ||
/* Excluded from this release type: __vccMixins */ | ||
/* Excluded from this release type: __vccExtend */ | ||
/* Excluded from this release type: __vccHooks */ | ||
@@ -74,0 +89,0 @@ /* Excluded from this release type: __vccOpts */ |
/** | ||
* vue-class-component v8.0.0-alpha.6 | ||
* vue-class-component v8.0.0-beta.1 | ||
* (c) 2015-present Evan You | ||
@@ -76,3 +76,3 @@ * @license MIT | ||
function getSuperOptions(Ctor) { | ||
function getSuper(Ctor) { | ||
var superProto = Object.getPrototypeOf(Ctor.prototype); | ||
@@ -84,4 +84,3 @@ | ||
var Super = superProto.constructor; | ||
return Super.__vccOpts; | ||
return superProto.constructor; | ||
} | ||
@@ -107,2 +106,9 @@ | ||
static __vccExtend(options) { | ||
options.mixins = options.mixins || []; | ||
options.mixins.push(this.__vccOpts); | ||
} | ||
/** @internal */ | ||
static get __vccOpts() { | ||
@@ -124,8 +130,6 @@ // Early return if `this` is base class as it does not have any options | ||
options.extends = getSuperOptions(Ctor); // Handle mixins | ||
var Super = getSuper(Ctor); | ||
var mixins = this.hasOwnProperty('__vccMixins') && this.__vccMixins; | ||
if (mixins) { | ||
options.mixins = options.mixins ? options.mixins.concat(mixins) : mixins; | ||
if (Super) { | ||
Super.__vccExtend(options); | ||
} | ||
@@ -241,9 +245,15 @@ | ||
var _a; | ||
return class MixedVue extends Vue { | ||
static __vccExtend(options) { | ||
Ctors.forEach(Ctor => Ctor.__vccExtend(options)); | ||
} | ||
return _a = class MixedVue extends Vue { | ||
constructor(props, ctx) { | ||
super(props, ctx); | ||
constructor() { | ||
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
args[_key2] = arguments[_key2]; | ||
} | ||
super(...args); | ||
Ctors.forEach(Ctor => { | ||
var data = new Ctor(props, ctx); | ||
var data = new Ctor(...args); | ||
Object.keys(data).forEach(key => { | ||
@@ -255,4 +265,24 @@ this[key] = data[key]; | ||
}, _a.__vccMixins = Ctors.map(Ctor => Ctor.__vccOpts), _a; | ||
}; | ||
} | ||
function props(propsOptions) { | ||
class PropsMixin extends Vue { | ||
static __vccExtend(options) { | ||
options.props = propsOptions; | ||
} | ||
} | ||
return PropsMixin; | ||
} | ||
function emits(emitsOptions) { | ||
class EmitsMixin extends Vue { | ||
static __vccExtend(options) { | ||
options.emits = emitsOptions; | ||
} | ||
} | ||
return EmitsMixin; | ||
} | ||
function setup(setupFn) { | ||
@@ -266,2 +296,2 @@ // Hack to delay the invocation of setup function. | ||
export { Options, Vue, createDecorator, mixins, setup }; | ||
export { Options, Vue, createDecorator, emits, mixins, props, setup }; |
/** | ||
* vue-class-component v8.0.0-alpha.6 | ||
* vue-class-component v8.0.0-beta.1 | ||
* (c) 2015-present Evan You | ||
* @license MIT | ||
*/ | ||
import{reactive}from"vue";function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,c)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function defineGetter(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!1,configurable:!0})}function defineProxy(e,t,r){Object.defineProperty(e,t,{get:()=>r[t],set:e=>{r[t]=e},enumerable:!0,configurable:!0})}function getSuperOptions(e){var t=Object.getPrototypeOf(e.prototype);if(t)return t.constructor.__vccOpts}class VueImpl{constructor(e,t){defineGetter(this,"$props",()=>e),defineGetter(this,"$attrs",()=>t.attrs),defineGetter(this,"$slots",()=>t.slots),defineGetter(this,"$emit",()=>t.emit),Object.keys(e).forEach(t=>{Object.defineProperty(this,t,{enumerable:!1,configurable:!0,writable:!0,value:e[t]})})}static get __vccOpts(){if(this===Vue)return{};var e=this.hasOwnProperty("__vccCache")&&this.__vccCache;if(e)return e;var t=this,r=this.__vccCache=this.hasOwnProperty("__vccBase")?_objectSpread2({},this.__vccBase):{};r.extends=getSuperOptions(t);var c=this.hasOwnProperty("__vccMixins")&&this.__vccMixins;c&&(r.mixins=r.mixins?r.mixins.concat(c):c),r.methods=_objectSpread2({},r.methods),r.computed=_objectSpread2({},r.computed);var o=t.prototype;Object.getOwnPropertyNames(o).forEach(e=>{if("constructor"!==e)if(t.__vccHooks.indexOf(e)>-1)r[e]=o[e];else{var c=Object.getOwnPropertyDescriptor(o,e);"function"!=typeof c.value?(c.get||c.set)&&(r.computed[e]={get:c.get,set:c.set}):r.methods[e]=c.value}}),r.setup=function(e,r){var c=new t(e,r),o=Object.keys(c),n=reactive({});return o.forEach(e=>{void 0===c[e]||c[e]&&c[e].__s||(n[e]=c[e],defineProxy(c,e,n))}),o.forEach(e=>{c[e]&&c[e].__s&&(n[e]=c[e].__s())}),n};var n=this.hasOwnProperty("__vccDecorators")&&this.__vccDecorators;n&&n.forEach(e=>e(r));return["render","ssrRender","__file","__cssModules","__scopeId","__hmrId"].forEach(e=>{t[e]&&(r[e]=t[e])}),r}static registerHooks(e){this.__vccHooks.push(...e)}}VueImpl.__vccHooks=["data","beforeCreate","created","beforeMount","mounted","beforeUnmount","unmounted","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];var Vue;function Options(e){return t=>(t.__vccBase=e,t)}function createDecorator(e){return(t,r,c)=>{var o="function"==typeof t?t:t.constructor;o.__vccDecorators||(o.__vccDecorators=[]),"number"!=typeof c&&(c=void 0),o.__vccDecorators.push(t=>e(t,r,c))}}function mixins(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var c;return(c=class extends Vue{constructor(e,r){super(e,r),t.forEach(t=>{var c=new t(e,r);Object.keys(c).forEach(e=>{this[e]=c[e]})})}}).__vccMixins=t.map(e=>e.__vccOpts),c}function setup(e){return{__s:e}}export{Options,VueImpl as Vue,createDecorator,mixins,setup}; | ||
import{reactive}from"vue";function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,c)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function defineGetter(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!1,configurable:!0})}function defineProxy(e,t,r){Object.defineProperty(e,t,{get:()=>r[t],set:e=>{r[t]=e},enumerable:!0,configurable:!0})}function getSuper(e){var t=Object.getPrototypeOf(e.prototype);if(t)return t.constructor}class VueImpl{constructor(e,t){defineGetter(this,"$props",()=>e),defineGetter(this,"$attrs",()=>t.attrs),defineGetter(this,"$slots",()=>t.slots),defineGetter(this,"$emit",()=>t.emit),Object.keys(e).forEach(t=>{Object.defineProperty(this,t,{enumerable:!1,configurable:!0,writable:!0,value:e[t]})})}static __vccExtend(e){e.mixins=e.mixins||[],e.mixins.push(this.__vccOpts)}static get __vccOpts(){if(this===Vue)return{};var e=this.hasOwnProperty("__vccCache")&&this.__vccCache;if(e)return e;var t=this,r=this.__vccCache=this.hasOwnProperty("__vccBase")?_objectSpread2({},this.__vccBase):{},c=getSuper(t);c&&c.__vccExtend(r),r.methods=_objectSpread2({},r.methods),r.computed=_objectSpread2({},r.computed);var o=t.prototype;Object.getOwnPropertyNames(o).forEach(e=>{if("constructor"!==e)if(t.__vccHooks.indexOf(e)>-1)r[e]=o[e];else{var c=Object.getOwnPropertyDescriptor(o,e);"function"!=typeof c.value?(c.get||c.set)&&(r.computed[e]={get:c.get,set:c.set}):r.methods[e]=c.value}}),r.setup=function(e,r){var c=new t(e,r),o=Object.keys(c),n=reactive({});return o.forEach(e=>{void 0===c[e]||c[e]&&c[e].__s||(n[e]=c[e],defineProxy(c,e,n))}),o.forEach(e=>{c[e]&&c[e].__s&&(n[e]=c[e].__s())}),n};var n=this.hasOwnProperty("__vccDecorators")&&this.__vccDecorators;n&&n.forEach(e=>e(r));return["render","ssrRender","__file","__cssModules","__scopeId","__hmrId"].forEach(e=>{t[e]&&(r[e]=t[e])}),r}static registerHooks(e){this.__vccHooks.push(...e)}}VueImpl.__vccHooks=["data","beforeCreate","created","beforeMount","mounted","beforeUnmount","unmounted","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];var Vue;function Options(e){return t=>(t.__vccBase=e,t)}function createDecorator(e){return(t,r,c)=>{var o="function"==typeof t?t:t.constructor;o.__vccDecorators||(o.__vccDecorators=[]),"number"!=typeof c&&(c=void 0),o.__vccDecorators.push(t=>e(t,r,c))}}function mixins(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return class extends Vue{static __vccExtend(e){t.forEach(t=>t.__vccExtend(e))}constructor(){for(var e=arguments.length,r=new Array(e),c=0;c<e;c++)r[c]=arguments[c];super(...r),t.forEach(e=>{var t=new e(...r);Object.keys(t).forEach(e=>{this[e]=t[e]})})}}}function props(e){return class extends Vue{static __vccExtend(t){t.props=e}}}function emits(e){return class extends Vue{static __vccExtend(t){t.emits=e}}}function setup(e){return{__s:e}}export{Options,VueImpl as Vue,createDecorator,emits,mixins,props,setup}; |
/** | ||
* vue-class-component v8.0.0-alpha.6 | ||
* vue-class-component v8.0.0-beta.1 | ||
* (c) 2015-present Evan You | ||
@@ -123,2 +123,19 @@ * @license MIT | ||
function _construct(Parent, args, Class) { | ||
if (_isNativeReflectConstruct()) { | ||
_construct = Reflect.construct; | ||
} else { | ||
_construct = function _construct(Parent, args, Class) { | ||
var a = [null]; | ||
a.push.apply(a, args); | ||
var Constructor = Function.bind.apply(Parent, a); | ||
var instance = new Constructor(); | ||
if (Class) _setPrototypeOf(instance, Class.prototype); | ||
return instance; | ||
}; | ||
} | ||
return _construct.apply(null, arguments); | ||
} | ||
function _assertThisInitialized(self) { | ||
@@ -143,3 +160,3 @@ if (self === void 0) { | ||
return function () { | ||
return function _createSuperInternal() { | ||
var Super = _getPrototypeOf(Derived), | ||
@@ -214,3 +231,3 @@ result; | ||
function getSuperOptions(Ctor) { | ||
function getSuper(Ctor) { | ||
var superProto = Object.getPrototypeOf(Ctor.prototype); | ||
@@ -222,4 +239,3 @@ | ||
var Super = superProto.constructor; | ||
return Super.__vccOpts; | ||
return superProto.constructor; | ||
} | ||
@@ -258,2 +274,10 @@ | ||
_createClass(VueImpl, null, [{ | ||
key: "__vccExtend", | ||
value: function __vccExtend(options) { | ||
options.mixins = options.mixins || []; | ||
options.mixins.push(this.__vccOpts); | ||
} | ||
/** @internal */ | ||
}, { | ||
key: "registerHooks", | ||
@@ -283,8 +307,6 @@ value: function registerHooks(keys) { | ||
options["extends"] = getSuperOptions(Ctor); // Handle mixins | ||
var Super = getSuper(Ctor); | ||
var mixins = this.hasOwnProperty('__vccMixins') && this.__vccMixins; | ||
if (mixins) { | ||
options.mixins = options.mixins ? options.mixins.concat(mixins) : mixins; | ||
if (Super) { | ||
Super.__vccExtend(options); | ||
} | ||
@@ -402,5 +424,3 @@ | ||
var _a; | ||
return _a = /*#__PURE__*/function (_Vue) { | ||
return /*#__PURE__*/function (_Vue) { | ||
_inherits(MixedVue, _Vue); | ||
@@ -410,10 +430,24 @@ | ||
function MixedVue(props, ctx) { | ||
_createClass(MixedVue, null, [{ | ||
key: "__vccExtend", | ||
value: function __vccExtend(options) { | ||
Ctors.forEach(function (Ctor) { | ||
return Ctor.__vccExtend(options); | ||
}); | ||
} | ||
}]); | ||
function MixedVue() { | ||
var _this; | ||
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
args[_key2] = arguments[_key2]; | ||
} | ||
_classCallCheck(this, MixedVue); | ||
_this = _super.call(this, props, ctx); | ||
_this = _super.call.apply(_super, [this].concat(args)); | ||
Ctors.forEach(function (Ctor) { | ||
var data = new Ctor(props, ctx); | ||
var data = _construct(Ctor, args); | ||
Object.keys(data).forEach(function (key) { | ||
@@ -427,6 +461,52 @@ _this[key] = data[key]; | ||
return MixedVue; | ||
}(Vue), _a.__vccMixins = Ctors.map(function (Ctor) { | ||
return Ctor.__vccOpts; | ||
}), _a; | ||
}(Vue); | ||
} | ||
function props(propsOptions) { | ||
var PropsMixin = /*#__PURE__*/function (_Vue2) { | ||
_inherits(PropsMixin, _Vue2); | ||
var _super2 = _createSuper(PropsMixin); | ||
function PropsMixin() { | ||
_classCallCheck(this, PropsMixin); | ||
return _super2.apply(this, arguments); | ||
} | ||
_createClass(PropsMixin, null, [{ | ||
key: "__vccExtend", | ||
value: function __vccExtend(options) { | ||
options.props = propsOptions; | ||
} | ||
}]); | ||
return PropsMixin; | ||
}(Vue); | ||
return PropsMixin; | ||
} | ||
function emits(emitsOptions) { | ||
var EmitsMixin = /*#__PURE__*/function (_Vue3) { | ||
_inherits(EmitsMixin, _Vue3); | ||
var _super3 = _createSuper(EmitsMixin); | ||
function EmitsMixin() { | ||
_classCallCheck(this, EmitsMixin); | ||
return _super3.apply(this, arguments); | ||
} | ||
_createClass(EmitsMixin, null, [{ | ||
key: "__vccExtend", | ||
value: function __vccExtend(options) { | ||
options.emits = emitsOptions; | ||
} | ||
}]); | ||
return EmitsMixin; | ||
}(Vue); | ||
return EmitsMixin; | ||
} | ||
function setup(setupFn) { | ||
@@ -440,2 +520,2 @@ // Hack to delay the invocation of setup function. | ||
export { Options, Vue, createDecorator, mixins, setup }; | ||
export { Options, Vue, createDecorator, emits, mixins, props, setup }; |
/** | ||
* vue-class-component v8.0.0-alpha.6 | ||
* vue-class-component v8.0.0-beta.1 | ||
* (c) 2015-present Evan You | ||
@@ -124,2 +124,19 @@ * @license MIT | ||
function _construct(Parent, args, Class) { | ||
if (_isNativeReflectConstruct()) { | ||
_construct = Reflect.construct; | ||
} else { | ||
_construct = function _construct(Parent, args, Class) { | ||
var a = [null]; | ||
a.push.apply(a, args); | ||
var Constructor = Function.bind.apply(Parent, a); | ||
var instance = new Constructor(); | ||
if (Class) _setPrototypeOf(instance, Class.prototype); | ||
return instance; | ||
}; | ||
} | ||
return _construct.apply(null, arguments); | ||
} | ||
function _assertThisInitialized(self) { | ||
@@ -144,3 +161,3 @@ if (self === void 0) { | ||
return function () { | ||
return function _createSuperInternal() { | ||
var Super = _getPrototypeOf(Derived), | ||
@@ -215,3 +232,3 @@ result; | ||
function getSuperOptions(Ctor) { | ||
function getSuper(Ctor) { | ||
var superProto = Object.getPrototypeOf(Ctor.prototype); | ||
@@ -223,4 +240,3 @@ | ||
var Super = superProto.constructor; | ||
return Super.__vccOpts; | ||
return superProto.constructor; | ||
} | ||
@@ -259,2 +275,10 @@ | ||
_createClass(VueImpl, null, [{ | ||
key: "__vccExtend", | ||
value: function __vccExtend(options) { | ||
options.mixins = options.mixins || []; | ||
options.mixins.push(this.__vccOpts); | ||
} | ||
/** @internal */ | ||
}, { | ||
key: "registerHooks", | ||
@@ -284,8 +308,6 @@ value: function registerHooks(keys) { | ||
options["extends"] = getSuperOptions(Ctor); // Handle mixins | ||
var Super = getSuper(Ctor); | ||
var mixins = this.hasOwnProperty('__vccMixins') && this.__vccMixins; | ||
if (mixins) { | ||
options.mixins = options.mixins ? options.mixins.concat(mixins) : mixins; | ||
if (Super) { | ||
Super.__vccExtend(options); | ||
} | ||
@@ -403,5 +425,3 @@ | ||
var _a; | ||
return _a = /*#__PURE__*/function (_Vue) { | ||
return /*#__PURE__*/function (_Vue) { | ||
_inherits(MixedVue, _Vue); | ||
@@ -411,10 +431,24 @@ | ||
function MixedVue(props, ctx) { | ||
_createClass(MixedVue, null, [{ | ||
key: "__vccExtend", | ||
value: function __vccExtend(options) { | ||
Ctors.forEach(function (Ctor) { | ||
return Ctor.__vccExtend(options); | ||
}); | ||
} | ||
}]); | ||
function MixedVue() { | ||
var _this; | ||
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
args[_key2] = arguments[_key2]; | ||
} | ||
_classCallCheck(this, MixedVue); | ||
_this = _super.call(this, props, ctx); | ||
_this = _super.call.apply(_super, [this].concat(args)); | ||
Ctors.forEach(function (Ctor) { | ||
var data = new Ctor(props, ctx); | ||
var data = _construct(Ctor, args); | ||
Object.keys(data).forEach(function (key) { | ||
@@ -428,6 +462,52 @@ _this[key] = data[key]; | ||
return MixedVue; | ||
}(Vue), _a.__vccMixins = Ctors.map(function (Ctor) { | ||
return Ctor.__vccOpts; | ||
}), _a; | ||
}(Vue); | ||
} | ||
function props(propsOptions) { | ||
var PropsMixin = /*#__PURE__*/function (_Vue2) { | ||
_inherits(PropsMixin, _Vue2); | ||
var _super2 = _createSuper(PropsMixin); | ||
function PropsMixin() { | ||
_classCallCheck(this, PropsMixin); | ||
return _super2.apply(this, arguments); | ||
} | ||
_createClass(PropsMixin, null, [{ | ||
key: "__vccExtend", | ||
value: function __vccExtend(options) { | ||
options.props = propsOptions; | ||
} | ||
}]); | ||
return PropsMixin; | ||
}(Vue); | ||
return PropsMixin; | ||
} | ||
function emits(emitsOptions) { | ||
var EmitsMixin = /*#__PURE__*/function (_Vue3) { | ||
_inherits(EmitsMixin, _Vue3); | ||
var _super3 = _createSuper(EmitsMixin); | ||
function EmitsMixin() { | ||
_classCallCheck(this, EmitsMixin); | ||
return _super3.apply(this, arguments); | ||
} | ||
_createClass(EmitsMixin, null, [{ | ||
key: "__vccExtend", | ||
value: function __vccExtend(options) { | ||
options.emits = emitsOptions; | ||
} | ||
}]); | ||
return EmitsMixin; | ||
}(Vue); | ||
return EmitsMixin; | ||
} | ||
function setup(setupFn) { | ||
@@ -444,3 +524,5 @@ // Hack to delay the invocation of setup function. | ||
exports.createDecorator = createDecorator; | ||
exports.emits = emits; | ||
exports.mixins = mixins; | ||
exports.props = props; | ||
exports.setup = setup; | ||
@@ -447,0 +529,0 @@ |
/** | ||
* vue-class-component v8.0.0-alpha.6 | ||
* vue-class-component v8.0.0-beta.1 | ||
* (c) 2015-present Evan You | ||
* @license MIT | ||
*/ | ||
var VueClassComponent=function(t,e){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){o(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=u(t);if(e){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}function p(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function y(t,e,r){Object.defineProperty(t,e,{get:r,enumerable:!1,configurable:!0})}var v=function(){function t(e,n){var o=this;r(this,t),y(this,"$props",function(){return e}),y(this,"$attrs",function(){return n.attrs}),y(this,"$slots",function(){return n.slots}),y(this,"$emit",function(){return n.emit}),Object.keys(e).forEach(function(t){Object.defineProperty(o,t,{enumerable:!1,configurable:!0,writable:!0,value:e[t]})})}var o,c,u;return o=t,u=[{key:"registerHooks",value:function(t){var e;(e=this.__vccHooks).push.apply(e,p(t))}},{key:"__vccOpts",get:function(){if(this===b)return{};var t=this.hasOwnProperty("__vccCache")&&this.__vccCache;if(t)return t;var r=this,n=this.__vccCache=this.hasOwnProperty("__vccBase")?i({},this.__vccBase):{};n.extends=function(t){var e=Object.getPrototypeOf(t.prototype);if(e)return e.constructor.__vccOpts}(r);var o=this.hasOwnProperty("__vccMixins")&&this.__vccMixins;o&&(n.mixins=n.mixins?n.mixins.concat(o):o),n.methods=i({},n.methods),n.computed=i({},n.computed);var c=r.prototype;Object.getOwnPropertyNames(c).forEach(function(t){if("constructor"!==t)if(r.__vccHooks.indexOf(t)>-1)n[t]=c[t];else{var e=Object.getOwnPropertyDescriptor(c,t);"function"!=typeof e.value?(e.get||e.set)&&(n.computed[t]={get:e.get,set:e.set}):n.methods[t]=e.value}}),n.setup=function(t,n){var o=new r(t,n),c=Object.keys(o),i=e.reactive({});return c.forEach(function(t){void 0===o[t]||o[t]&&o[t].__s||(i[t]=o[t],function(t,e,r){Object.defineProperty(t,e,{get:function(){return r[e]},set:function(t){r[e]=t},enumerable:!0,configurable:!0})}(o,t,i))}),c.forEach(function(t){o[t]&&o[t].__s&&(i[t]=o[t].__s())}),i};var u=this.hasOwnProperty("__vccDecorators")&&this.__vccDecorators;u&&u.forEach(function(t){return t(n)});return["render","ssrRender","__file","__cssModules","__scopeId","__hmrId"].forEach(function(t){r[t]&&(n[t]=r[t])}),n}}],(c=null)&&n(o.prototype,c),u&&n(o,u),t}();v.__vccHooks=["data","beforeCreate","created","beforeMount","mounted","beforeUnmount","unmounted","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];var b=v;return t.Options=function(t){return function(e){return e.__vccBase=t,e}},t.Vue=b,t.createDecorator=function(t){return function(e,r,n){var o="function"==typeof e?e:e.constructor;o.__vccDecorators||(o.__vccDecorators=[]),"number"!=typeof n&&(n=void 0),o.__vccDecorators.push(function(e){return t(e,r,n)})}},t.mixins=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o;return(o=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(o,b);var n=s(o);function o(t,c){var i;return r(this,o),i=n.call(this,t,c),e.forEach(function(e){var r=new e(t,c);Object.keys(r).forEach(function(t){i[t]=r[t]})}),i}return o}()).__vccMixins=e.map(function(t){return t.__vccOpts}),o},t.setup=function(t){return{__s:t}},t}({},Vue); | ||
var VueClassComponent=function(t,e){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function l(t,e,r){return(l=p()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&s(o,r.prototype),o}).apply(null,arguments)}function y(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){var e=p();return function(){var r,n=a(t);if(e){var o=a(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function h(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e,r){Object.defineProperty(t,e,{get:r,enumerable:!1,configurable:!0})}var d=function(){function t(e,n){var o=this;r(this,t),b(this,"$props",function(){return e}),b(this,"$attrs",function(){return n.attrs}),b(this,"$slots",function(){return n.slots}),b(this,"$emit",function(){return n.emit}),Object.keys(e).forEach(function(t){Object.defineProperty(o,t,{enumerable:!1,configurable:!0,writable:!0,value:e[t]})})}return o(t,null,[{key:"__vccExtend",value:function(t){t.mixins=t.mixins||[],t.mixins.push(this.__vccOpts)}},{key:"registerHooks",value:function(t){var e;(e=this.__vccHooks).push.apply(e,h(t))}},{key:"__vccOpts",get:function(){if(this===O)return{};var t=this.hasOwnProperty("__vccCache")&&this.__vccCache;if(t)return t;var r=this,n=this.__vccCache=this.hasOwnProperty("__vccBase")?i({},this.__vccBase):{},o=function(t){var e=Object.getPrototypeOf(t.prototype);if(e)return e.constructor}(r);o&&o.__vccExtend(n),n.methods=i({},n.methods),n.computed=i({},n.computed);var c=r.prototype;Object.getOwnPropertyNames(c).forEach(function(t){if("constructor"!==t)if(r.__vccHooks.indexOf(t)>-1)n[t]=c[t];else{var e=Object.getOwnPropertyDescriptor(c,t);"function"!=typeof e.value?(e.get||e.set)&&(n.computed[t]={get:e.get,set:e.set}):n.methods[t]=e.value}}),n.setup=function(t,n){var o=new r(t,n),c=Object.keys(o),u=e.reactive({});return c.forEach(function(t){void 0===o[t]||o[t]&&o[t].__s||(u[t]=o[t],function(t,e,r){Object.defineProperty(t,e,{get:function(){return r[e]},set:function(t){r[e]=t},enumerable:!0,configurable:!0})}(o,t,u))}),c.forEach(function(t){o[t]&&o[t].__s&&(u[t]=o[t].__s())}),u};var u=this.hasOwnProperty("__vccDecorators")&&this.__vccDecorators;u&&u.forEach(function(t){return t(n)});return["render","ssrRender","__file","__cssModules","__scopeId","__hmrId"].forEach(function(t){r[t]&&(n[t]=r[t])}),n}}]),t}();d.__vccHooks=["data","beforeCreate","created","beforeMount","mounted","beforeUnmount","unmounted","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];var O=d;return t.Options=function(t){return function(e){return e.__vccBase=t,e}},t.Vue=O,t.createDecorator=function(t){return function(e,r,n){var o="function"==typeof e?e:e.constructor;o.__vccDecorators||(o.__vccDecorators=[]),"number"!=typeof n&&(n=void 0),o.__vccDecorators.push(function(e){return t(e,r,n)})}},t.emits=function(t){return function(e){f(c,O);var n=v(c);function c(){return r(this,c),n.apply(this,arguments)}return o(c,null,[{key:"__vccExtend",value:function(e){e.emits=t}}]),c}()},t.mixins=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){f(c,O);var n=v(c);function c(){for(var t,o=arguments.length,u=new Array(o),i=0;i<o;i++)u[i]=arguments[i];return r(this,c),t=n.call.apply(n,[this].concat(u)),e.forEach(function(e){var r=l(e,u);Object.keys(r).forEach(function(e){t[e]=r[e]})}),t}return o(c,null,[{key:"__vccExtend",value:function(t){e.forEach(function(e){return e.__vccExtend(t)})}}]),c}()},t.props=function(t){return function(e){f(c,O);var n=v(c);function c(){return r(this,c),n.apply(this,arguments)}return o(c,null,[{key:"__vccExtend",value:function(e){e.props=t}}]),c}()},t.setup=function(t){return{__s:t}},t}({},Vue); |
{ | ||
"name": "vue-class-component", | ||
"version": "8.0.0-alpha.6", | ||
"version": "8.0.0-beta.1", | ||
"description": "ES201X/TypeScript class decorator for Vue components", | ||
@@ -52,31 +52,31 @@ "main": "dist/vue-class-component.cjs.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.9.6", | ||
"@babel/plugin-proposal-class-properties": "^7.8.3", | ||
"@babel/plugin-proposal-decorators": "^7.8.3", | ||
"@babel/preset-env": "^7.9.6", | ||
"@babel/preset-typescript": "^7.9.0", | ||
"@microsoft/api-extractor": "^7.7.13", | ||
"@types/jest": "^25.2.1", | ||
"@types/node": "^13.13.5", | ||
"@vue/compiler-sfc": "^3.0.0-beta.9", | ||
"babel-jest": "^26.0.1", | ||
"@babel/core": "^7.11.4", | ||
"@babel/plugin-proposal-class-properties": "^7.10.4", | ||
"@babel/plugin-proposal-decorators": "^7.10.5", | ||
"@babel/preset-env": "^7.11.0", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"@microsoft/api-extractor": "^7.9.9", | ||
"@types/jest": "^26.0.10", | ||
"@types/node": "^14.6.0", | ||
"@vue/compiler-sfc": "^3.0.0-rc.8", | ||
"babel-jest": "^26.3.0", | ||
"babel-loader": "^8.1.0", | ||
"conventional-changelog-cli": "^2.0.31", | ||
"css-loader": "^3.5.3", | ||
"jest": "^26.0.1", | ||
"conventional-changelog-cli": "^2.1.0", | ||
"css-loader": "^4.2.1", | ||
"jest": "^26.4.2", | ||
"prettier": "^2.0.5", | ||
"reflect-metadata": "^0.1.13", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.8.0", | ||
"rollup": "^2.26.5", | ||
"rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"ts-jest": "^25.4.0", | ||
"ts-loader": "^7.0.2", | ||
"typescript": "^3.8.3", | ||
"ts-jest": "^26.2.0", | ||
"ts-loader": "^8.0.2", | ||
"typescript": "^4.0.2", | ||
"uglify-es": "^3.3.9", | ||
"vue": "^3.0.0-beta.9", | ||
"vue-loader": "^16.0.0-alpha.3", | ||
"webpack": "^4.43.0", | ||
"webpack-cli": "^3.3.11" | ||
"vue": "^3.0.0-rc.8", | ||
"vue-loader": "^16.0.0-beta.5", | ||
"webpack": "^4.44.1", | ||
"webpack-cli": "^3.3.12" | ||
} | ||
} |
@@ -7,3 +7,3 @@ # Vue Class Component v8 | ||
Alpha | ||
Beta | ||
@@ -10,0 +10,0 @@ ## Documentation |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69858
1569