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.30 to 1.0.31

13

dist/globalStore.d.ts
import Vue from "vue";
import { Store } from "vuex";
export interface IComponentInfo {
module: string;
name: string;
page: string;
icon: string;
index: number;
accessGroup: [string];
Instance: Vue;
}
export interface IModuleInfo {

@@ -10,6 +19,6 @@ name: string;

pages: {
[p: string]: Vue;
[p: string]: IComponentInfo;
};
components: {
[c: string]: Vue;
[c: string]: IComponentInfo;
};

@@ -16,0 +25,0 @@ }

4

dist/globalStore.js

@@ -46,3 +46,3 @@ "use strict";

_d("register page:", mod, pg);
state.moduleRegister[mod].pages[pg] = value.components;
state.moduleRegister[mod].pages[pg] = value;
}

@@ -52,3 +52,3 @@ else {

_d("register components:", mod, pg);
state.moduleRegister[mod].components[pg] = value.components;
state.moduleRegister[mod].components[pg] = value;
}

@@ -55,0 +55,0 @@ }

@@ -18,3 +18,3 @@ "use strict";

function _extend(options) {
const vue = vue_1.default.extend.apply(vue_1.default, arguments);
const VueInstance = vue_1.default.extend.apply(vue_1.default, arguments);
if (options && options.module && options.name) {

@@ -24,7 +24,10 @@ globalStore_1.store.commit(`registerVueComponents`, {

name: options.name,
components: vue,
page: options.page
Instance: VueInstance,
page: options.page,
icon: options.icon,
index: options.index,
accessGroup: options.accessGroup
});
}
return vue;
return VueInstance;
}

@@ -31,0 +34,0 @@ exports._extend = _extend;

{
"name": "@tslib/vue-ext",
"version": "1.0.30",
"version": "1.0.31",
"private": false,

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

@@ -12,2 +12,11 @@ import Vue, { VueConstructor } from "vue";

export interface IComponentInfo {
module: string;
name: string;
page: string;
icon: string;
index: number;
accessGroup: [string];
Instance: Vue;
}
export interface IModuleInfo {

@@ -20,6 +29,6 @@ name: string;

pages: {
[p: string]: Vue;
[p: string]: IComponentInfo;
};
components: {
[c: string]: Vue;
[c: string]: IComponentInfo;
};

@@ -50,11 +59,3 @@ }

},
registerVueComponents(
state,
value: {
module: string;
name: string;
components: Vue;
page: string;
}
) {
registerVueComponents(state, value: IComponentInfo) {
const mod = _.camelCase(value.module);

@@ -75,7 +76,7 @@ const pg = _.camelCase(value.name);

_d("register page:", mod, pg);
state.moduleRegister[mod].pages[pg] = value.components;
state.moduleRegister[mod].pages[pg] = value;
} else {
// 注册为通用组件
_d("register components:", mod, pg);
state.moduleRegister[mod].components[pg] = value.components;
state.moduleRegister[mod].components[pg] = value;
}

@@ -82,0 +83,0 @@ }

@@ -21,3 +21,3 @@ import Vue, { VueConstructor, FunctionalComponentOptions } from "vue";

export function _extend(options: any) {
const vue = Vue.extend.apply(Vue, arguments);
const VueInstance = Vue.extend.apply(Vue, arguments);

@@ -28,7 +28,10 @@ if (options && options.module && options.name) {

name: options.name,
components: vue,
page: options.page
Instance: VueInstance,
page: options.page,
icon: options.icon,
index: options.index,
accessGroup: options.accessGroup
});
}
return vue;
return VueInstance;
}

@@ -35,0 +38,0 @@ // 初始化vue扩展

Sorry, the diff of this file is not supported yet

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