New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tslib/vue-ext

Package Overview
Dependencies
Maintainers
3
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tslib/vue-ext - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

package.json
{
"name": "@tslib/vue-ext",
"version": "1.0.7",
"version": "1.0.8",
"private": false,

@@ -5,0 +5,0 @@ "description": "config file loader for typescript",

@@ -67,15 +67,12 @@ import Vue, { VueConstructor } from "vue";

// 初始化
Vue.extendVue = function (options: any){
Vue.extendVue = function (options?: ExtOptions & ComponentOptions<Vue>){
// 如果option中有page选项,则注册为page,否则注册为component
const VueExt = Vue.extend(options);
if (_.isEmpty(options.name)) {
console.error('define vue Component error', options);
throw new Error('export Component MUST have name :');
if(options){
if (options.page) {
console.log('----', options.page);
} else {
store.commit(`${options.module}/registerComponent`, VueExt);
}
}
if (options.page) {
console.log('----', options.page);
store.commit(`${options.module}/registerPage`, VueExt);
} else {
store.commit(`${options.module}/registerComponent`, VueExt);
}
return VueExt;

@@ -130,10 +127,2 @@

interface VueConstructor<V extends Vue> {
extendVue<Data, Methods, Computed, PropNames extends string = never>
(options?: ExtOptions & ThisTypedComponentOptionsWithArrayProps<V, Data, Methods, Computed, PropNames>): ExtendedVue<V, Data, Methods, Computed, Record<PropNames, any>>;
extendVue<Data, Methods, Computed, Props>
(options?: ExtOptions & ThisTypedComponentOptionsWithRecordProps<V, Data, Methods, Computed, Props>): ExtendedVue<V, Data, Methods, Computed, Props>;
extendVue<PropNames extends string = never>
(definition: FunctionalComponentOptions<Record<PropNames, any>, PropNames[]>): ExtendedVue<V, {}, {}, {}, Record<PropNames, any>>;
extendVue<Props>
(definition: FunctionalComponentOptions<Props, RecordPropsDefinition<Props>>): ExtendedVue<V, {}, {}, {}, Props>;
extendVue(options?: ExtOptions & ComponentOptions<V>): ExtendedVue<V, {}, {}, {}, {}>;

@@ -140,0 +129,0 @@ }

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