Socket
Socket
Sign inDemoInstall

bettem-micro-utils

Package Overview
Dependencies
75
Maintainers
1
Versions
311
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.6 to 2.0.7

dist/src/components/MvEmpty/MvEmpty.d.ts

7

dist/es/api/apiConfig.js

@@ -21,3 +21,8 @@ const e = {

tokenName: "token",
safeOrigin: ""
safeOrigin: "",
responseCodeRange: {
min: 1e4,
max: 11e3,
arr: []
}
};

@@ -24,0 +29,0 @@ export {

117

dist/es/api/index.js
import m from "axios";
import { ElMessage as g, ElMessageBox as d, ElNotification as h } from "element-plus";
import { apiConfig as r } from "./apiConfig.js";
import { apiConfig as a } from "./apiConfig.js";
import f from "../utils/microAuth.js";

@@ -9,9 +9,9 @@ import { downloadFile as w, viewPdf as E } from "../utils/downloadFile.js";

(e) => {
const t = localStorage.getItem(r.tokenName) || sessionStorage.getItem(r.tokenName);
let o = null;
return t !== null && (o = JSON.parse(t).token), e.timeout = r.timeout, e.baseURL = r.baseURL, e.headers = Object.assign(
const o = localStorage.getItem(a.tokenName) || sessionStorage.getItem(a.tokenName);
let t = null;
return o !== null && (t = JSON.parse(o).token), e.timeout = a.timeout, e.baseURL = a.baseURL, e.headers = Object.assign(
{
"Content-Type": "application/json; charset=UTF-8",
// ["Content-Type"]: "application/x-www-form-urlencoded"
Authorization: o ?? ""
Authorization: t ?? ""
},

@@ -25,27 +25,28 @@ e.headers

(e) => {
var t;
var o;
if (e.status >= 200 && e.status < 400) {
if (e.request.responseType === "blob")
return e;
if (e.data.code === 1 || e.data.code === 0)
const t = e.data.code;
if ([0, 1, ...a.responseCodeRange.arr].includes(t) || t >= a.responseCodeRange.min && t <= a.responseCodeRange.max)
return e.data;
}
return r.customError || (g.error(e.data.msg || r.defaultErrorMsg), r.customError = !1), r.debug && console.log(`%c错误接口:${(t = e.config) == null ? void 0 : t.url}`, "color: red"), Promise.reject(e.data);
return a.customError || (g.error(e.data.msg || a.defaultErrorMsg), a.customError = !1), a.debug && console.log(`%c错误接口:${(o = e.config) == null ? void 0 : o.url}`, "color: red"), Promise.reject(e.data);
},
(e) => {
var o, a, s, l;
let t = "";
var t, s, r, l;
let o = "";
if (e && e.response)
switch (e.response.status) {
case 404:
t = "接口不存在404";
o = "接口不存在404";
break;
case 401:
t = "令牌已失效,请重新登录";
o = "令牌已失效,请重新登录";
break;
case 403:
t = "服务器错误,请耐心等待修复";
o = "服务器错误,请耐心等待修复";
break;
default:
t = r.defaultErrorMsg;
o = a.defaultErrorMsg;
}

@@ -55,7 +56,7 @@ if (e.response.responseType === "blob") {

n.onloadend = () => {
["application/json", "text/html"].includes(e.response.data.type) && (e.response.data = JSON.parse(n.result), t = e.response.data.msg);
["application/json", "text/html"].includes(e.response.data.type) && (e.response.data = JSON.parse(n.result), o = e.response.data.msg);
}, n.readAsText(e.response.data);
}
if (((o = e.response) == null ? void 0 : o.status) === 401) {
const n = localStorage.getItem(r.tokenName) || sessionStorage.getItem(r.tokenName);
if (((t = e.response) == null ? void 0 : t.status) === 401) {
const n = localStorage.getItem(a.tokenName) || sessionStorage.getItem(a.tokenName);
let i = null;

@@ -68,7 +69,7 @@ n !== null && (i = JSON.parse(n).token);

window.__REPEAT_ERROR__ = !0;
}, 5e3), i) {
}, 3e3), i) {
const u = `/oAuth?redirect=${encodeURIComponent(
location.pathname + location.search
)}`;
d.alert(r.loginOutMessage, "温馨提示", {
d.alert(a.loginOutMessage, "温馨提示", {
callback: (R) => {

@@ -85,3 +86,3 @@ localStorage.clear(), window.self === window.top ? location.href = u : window.parent.location.href = u;

window.__REPEAT_ERROR__ = !1;
}, 5e3), i ? d.alert(r.loginOutMessage, "温馨提示", {
}, 3e3), i ? d.alert(a.loginOutMessage, "温馨提示", {
callback: (u) => {

@@ -92,7 +93,7 @@ localStorage.clear(), f();

} else
r.customError || (h({
a.customError || (h({
title: "温馨提示",
message: ((s = (a = e.response) == null ? void 0 : a.data) == null ? void 0 : s.msg) || t,
message: ((r = (s = e.response) == null ? void 0 : s.data) == null ? void 0 : r.msg) || o,
type: "error"
}), r.customError = !1), r.debug && console.log(`%c错误接口:${(l = e.response) == null ? void 0 : l.config.url}`, "color: red");
}), a.customError = !1), a.debug && console.log(`%c错误接口:${(l = e.response) == null ? void 0 : l.config.url}`, "color: red");
return Promise.reject(e);

@@ -102,9 +103,9 @@ }

class _ {
request(t, o, a = {}, s = !1) {
return r.customError = s, new Promise((l, n) => {
request(o, t, s = {}, r = !1) {
return a.customError = r, new Promise((l, n) => {
p.request({
url: t,
...o,
url: o,
...t,
headers: {
...a
...s
}

@@ -124,11 +125,11 @@ }).then((i) => {

*/
get(t, o = {}, a = {}, s = !1) {
get(o, t = {}, s = {}, r = !1) {
return this.request(
t,
o,
{
method: "get",
params: o
params: t
},
a,
s
s,
r
);

@@ -142,11 +143,11 @@ }

*/
post(t, o = {}, a = {}, s = !1) {
post(o, t = {}, s = {}, r = !1) {
return this.request(
t,
o,
{
method: "post",
data: o
data: t
},
a,
s
s,
r
);

@@ -159,11 +160,11 @@ }

*/
upload(t, o = {}, a) {
const s = new FormData();
for (const l in o)
s.append(l, o[l]);
return s.append("file", a), this.request(
t,
upload(o, t = {}, s) {
const r = new FormData();
for (const l in t)
r.append(l, t[l]);
return r.append("file", s), this.request(
o,
{
method: "post",
data: s
data: r
},

@@ -182,10 +183,10 @@ {

*/
async download(t, o = {}, a = "post", s = !1, l = !1) {
async download(o, t = {}, s = "post", r = !1, l = !1) {
const n = {
method: a,
method: s,
responseType: "blob"
};
a === "post" && (n.data = o), a === "get" && (n.params = o), r.customError = s;
s === "post" && (n.data = t), s === "get" && (n.params = t), a.customError = r;
try {
const i = await this.request(t, n, {}, s);
const i = await this.request(o, n, {}, r);
return w(

@@ -214,9 +215,9 @@ i.data,

*/
async blobToUrl(t, o = {}, a = {}) {
const s = a.method || "post", l = a.customError || !1, n = a.fileType || "pdf", i = {
method: s,
async blobToUrl(o, t = {}, s = {}) {
const r = s.method || "post", l = s.customError || !1, n = s.fileType || "pdf", i = {
method: r,
responseType: "blob"
};
s === "post" && (i.data = o), s === "get" && (i.params = o), r.customError = l || !1;
const c = await this.request(t, i, {}, l);
r === "post" && (i.data = t), r === "get" && (i.params = t), a.customError = l || !1;
const c = await this.request(o, i, {}, l);
return E(c.data, n);

@@ -230,9 +231,9 @@ }

*/
async blobToBuffer(t, o = {}, a = "post", s = !1) {
async blobToBuffer(o, t = {}, s = "post", r = !1) {
const l = {
method: a,
method: s,
responseType: "blob"
};
a === "post" && (l.data = o), a === "get" && (l.params = o);
const n = await this.request(t, l, {}, s);
s === "post" && (l.data = t), s === "get" && (l.params = t);
const n = await this.request(o, l, {}, r);
return console.log(n.data), await new Blob([n.data], { type: n.data.type }).arrayBuffer();

@@ -239,0 +240,0 @@ }

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={baseURL:"",timeout:1e3*60*5,debug:!1,testUrl:"http://10.10.22.31:4001",defaultErrorMsg:"服务器错误,请联系管理员",project:{projectId:0,projectCode:"",projectName:""},dictUrl:"/api/dict/dictItem/getDictItemByCode",dictArrUrl:"/api/dict/dictItem/getDictItemTree",customError:!1,microLoginPaddingTime:1e3,fileTypes:{pdf:"application/pdf"},loginOutMessage:"用户登录已失效,请重新登录!",tokenName:"token",safeOrigin:""};exports.apiConfig=e;
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={baseURL:"",timeout:1e3*60*5,debug:!1,testUrl:"http://10.10.22.31:4001",defaultErrorMsg:"服务器错误,请联系管理员",project:{projectId:0,projectCode:"",projectName:""},dictUrl:"/api/dict/dictItem/getDictItemByCode",dictArrUrl:"/api/dict/dictItem/getDictItemTree",customError:!1,microLoginPaddingTime:1e3,fileTypes:{pdf:"application/pdf"},loginOutMessage:"用户登录已失效,请重新登录!",tokenName:"token",safeOrigin:"",responseCodeRange:{min:1e4,max:11e3,arr:[]}};exports.apiConfig=e;

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("axios"),p=require("element-plus"),n=require("./apiConfig.js"),d=require("../utils/microAuth.js"),g=require("../utils/downloadFile.js"),f=m.create();f.interceptors.request.use(e=>{const t=localStorage.getItem(n.apiConfig.tokenName)||sessionStorage.getItem(n.apiConfig.tokenName);let o=null;return t!==null&&(o=JSON.parse(t).token),e.timeout=n.apiConfig.timeout,e.baseURL=n.apiConfig.baseURL,e.headers=Object.assign({"Content-Type":"application/json; charset=UTF-8",Authorization:o??""},e.headers),e},e=>(console.error(e),Promise.reject(e)));f.interceptors.response.use(e=>{var t;if(e.status>=200&&e.status<400){if(e.request.responseType==="blob")return e;if(e.data.code===1||e.data.code===0)return e.data}return n.apiConfig.customError||(p.ElMessage.error(e.data.msg||n.apiConfig.defaultErrorMsg),n.apiConfig.customError=!1),n.apiConfig.debug&&console.log(`%c错误接口:${(t=e.config)==null?void 0:t.url}`,"color: red"),Promise.reject(e.data)},e=>{var o,a,s,l;let t="";if(e&&e.response)switch(e.response.status){case 404:t="接口不存在404";break;case 401:t="令牌已失效,请重新登录";break;case 403:t="服务器错误,请耐心等待修复";break;default:t=n.apiConfig.defaultErrorMsg}if(e.response.responseType==="blob"){const r=new FileReader;r.onloadend=()=>{["application/json","text/html"].includes(e.response.data.type)&&(e.response.data=JSON.parse(r.result),t=e.response.data.msg)},r.readAsText(e.response.data)}if(((o=e.response)==null?void 0:o.status)===401){const r=localStorage.getItem(n.apiConfig.tokenName)||sessionStorage.getItem(n.apiConfig.tokenName);let i=null;r!==null&&(i=JSON.parse(r).token);const c=window.__REPEAT_ERROR__;if(window.__BETTEM_BY_QIANKUN__){if(c&&!location.pathname.startsWith("/oAuth"))if(window.__REPEAT_ERROR__=!1,setTimeout(()=>{window.__REPEAT_ERROR__=!0},5e3),i){const u=`/oAuth?redirect=${encodeURIComponent(location.pathname+location.search)}`;p.ElMessageBox.alert(n.apiConfig.loginOutMessage,"温馨提示",{callback:b=>{localStorage.clear(),window.self===window.top?location.href=u:window.parent.location.href=u}})}else location.href=`/oAuth?redirect=${encodeURIComponent(location.pathname+location.search)}`}else c||(window.__REPEAT_ERROR__=!0,setTimeout(()=>{window.__REPEAT_ERROR__=!1},5e3),i?p.ElMessageBox.alert(n.apiConfig.loginOutMessage,"温馨提示",{callback:u=>{localStorage.clear(),d()}}):d())}else n.apiConfig.customError||(p.ElNotification({title:"温馨提示",message:((s=(a=e.response)==null?void 0:a.data)==null?void 0:s.msg)||t,type:"error"}),n.apiConfig.customError=!1),n.apiConfig.debug&&console.log(`%c错误接口:${(l=e.response)==null?void 0:l.config.url}`,"color: red");return Promise.reject(e)});class h{request(t,o,a={},s=!1){return n.apiConfig.customError=s,new Promise((l,r)=>{f.request({url:t,...o,headers:{...a}}).then(i=>{l(i)}).catch(i=>{r(i)})})}get(t,o={},a={},s=!1){return this.request(t,{method:"get",params:o},a,s)}post(t,o={},a={},s=!1){return this.request(t,{method:"post",data:o},a,s)}upload(t,o={},a){const s=new FormData;for(const l in o)s.append(l,o[l]);return s.append("file",a),this.request(t,{method:"post",data:s},{"Content-Type":"multipart/form-data"},!0)}async download(t,o={},a="post",s=!1,l=!1){const r={method:a,responseType:"blob"};a==="post"&&(r.data=o),a==="get"&&(r.params=o),n.apiConfig.customError=s;try{const i=await this.request(t,r,{},s);return g.downloadFile(i.data,i.data.type,i.headers["content-disposition"],l),{code:1,data:i.data,message:"获取成功!"}}catch{return{code:0,data:null,message:"获取失败"}}}async blobToUrl(t,o={},a={}){const s=a.method||"post",l=a.customError||!1,r=a.fileType||"pdf",i={method:s,responseType:"blob"};s==="post"&&(i.data=o),s==="get"&&(i.params=o),n.apiConfig.customError=l||!1;const c=await this.request(t,i,{},l);return g.viewPdf(c.data,r)}async blobToBuffer(t,o={},a="post",s=!1){const l={method:a,responseType:"blob"};a==="post"&&(l.data=o),a==="get"&&(l.params=o);const r=await this.request(t,l,{},s);return console.log(r.data),await new Blob([r.data],{type:r.data.type}).arrayBuffer()}}const w=new h;exports.client=w;
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("axios"),p=require("element-plus"),s=require("./apiConfig.js"),d=require("../utils/microAuth.js"),g=require("../utils/downloadFile.js"),f=m.create();f.interceptors.request.use(e=>{const o=localStorage.getItem(s.apiConfig.tokenName)||sessionStorage.getItem(s.apiConfig.tokenName);let t=null;return o!==null&&(t=JSON.parse(o).token),e.timeout=s.apiConfig.timeout,e.baseURL=s.apiConfig.baseURL,e.headers=Object.assign({"Content-Type":"application/json; charset=UTF-8",Authorization:t??""},e.headers),e},e=>(console.error(e),Promise.reject(e)));f.interceptors.response.use(e=>{var o;if(e.status>=200&&e.status<400){if(e.request.responseType==="blob")return e;const t=e.data.code;if([0,1,...s.apiConfig.responseCodeRange.arr].includes(t)||t>=s.apiConfig.responseCodeRange.min&&t<=s.apiConfig.responseCodeRange.max)return e.data}return s.apiConfig.customError||(p.ElMessage.error(e.data.msg||s.apiConfig.defaultErrorMsg),s.apiConfig.customError=!1),s.apiConfig.debug&&console.log(`%c错误接口:${(o=e.config)==null?void 0:o.url}`,"color: red"),Promise.reject(e.data)},e=>{var t,a,n,l;let o="";if(e&&e.response)switch(e.response.status){case 404:o="接口不存在404";break;case 401:o="令牌已失效,请重新登录";break;case 403:o="服务器错误,请耐心等待修复";break;default:o=s.apiConfig.defaultErrorMsg}if(e.response.responseType==="blob"){const i=new FileReader;i.onloadend=()=>{["application/json","text/html"].includes(e.response.data.type)&&(e.response.data=JSON.parse(i.result),o=e.response.data.msg)},i.readAsText(e.response.data)}if(((t=e.response)==null?void 0:t.status)===401){const i=localStorage.getItem(s.apiConfig.tokenName)||sessionStorage.getItem(s.apiConfig.tokenName);let r=null;i!==null&&(r=JSON.parse(i).token);const c=window.__REPEAT_ERROR__;if(window.__BETTEM_BY_QIANKUN__){if(c&&!location.pathname.startsWith("/oAuth"))if(window.__REPEAT_ERROR__=!1,setTimeout(()=>{window.__REPEAT_ERROR__=!0},3e3),r){const u=`/oAuth?redirect=${encodeURIComponent(location.pathname+location.search)}`;p.ElMessageBox.alert(s.apiConfig.loginOutMessage,"温馨提示",{callback:b=>{localStorage.clear(),window.self===window.top?location.href=u:window.parent.location.href=u}})}else location.href=`/oAuth?redirect=${encodeURIComponent(location.pathname+location.search)}`}else c||(window.__REPEAT_ERROR__=!0,setTimeout(()=>{window.__REPEAT_ERROR__=!1},3e3),r?p.ElMessageBox.alert(s.apiConfig.loginOutMessage,"温馨提示",{callback:u=>{localStorage.clear(),d()}}):d())}else s.apiConfig.customError||(p.ElNotification({title:"温馨提示",message:((n=(a=e.response)==null?void 0:a.data)==null?void 0:n.msg)||o,type:"error"}),s.apiConfig.customError=!1),s.apiConfig.debug&&console.log(`%c错误接口:${(l=e.response)==null?void 0:l.config.url}`,"color: red");return Promise.reject(e)});class h{request(o,t,a={},n=!1){return s.apiConfig.customError=n,new Promise((l,i)=>{f.request({url:o,...t,headers:{...a}}).then(r=>{l(r)}).catch(r=>{i(r)})})}get(o,t={},a={},n=!1){return this.request(o,{method:"get",params:t},a,n)}post(o,t={},a={},n=!1){return this.request(o,{method:"post",data:t},a,n)}upload(o,t={},a){const n=new FormData;for(const l in t)n.append(l,t[l]);return n.append("file",a),this.request(o,{method:"post",data:n},{"Content-Type":"multipart/form-data"},!0)}async download(o,t={},a="post",n=!1,l=!1){const i={method:a,responseType:"blob"};a==="post"&&(i.data=t),a==="get"&&(i.params=t),s.apiConfig.customError=n;try{const r=await this.request(o,i,{},n);return g.downloadFile(r.data,r.data.type,r.headers["content-disposition"],l),{code:1,data:r.data,message:"获取成功!"}}catch{return{code:0,data:null,message:"获取失败"}}}async blobToUrl(o,t={},a={}){const n=a.method||"post",l=a.customError||!1,i=a.fileType||"pdf",r={method:n,responseType:"blob"};n==="post"&&(r.data=t),n==="get"&&(r.params=t),s.apiConfig.customError=l||!1;const c=await this.request(o,r,{},l);return g.viewPdf(c.data,i)}async blobToBuffer(o,t={},a="post",n=!1){const l={method:a,responseType:"blob"};a==="post"&&(l.data=t),a==="get"&&(l.params=t);const i=await this.request(o,l,{},n);return console.log(i.data),await new Blob([i.data],{type:i.data.type}).arrayBuffer()}}const w=new h;exports.client=w;

@@ -7,2 +7,7 @@ interface ProjectInfoConfig {

}
interface ApiResponseCodeRange {
min: number;
max: number;
arr: number[];
}
export interface ApiConfigInstance {

@@ -21,3 +26,5 @@ baseURL: string;

safeOrigin: string;
[x: string]: any;
dictUrl: string;
dictArrUrl: string;
responseCodeRange: ApiResponseCodeRange;
}

@@ -24,0 +31,0 @@ export interface ResponseData {

@@ -1,4 +0,6 @@

declare const _sfc_main: import("vue").DefineComponent<{
import type { ExtractPropTypes, PropType } from "vue";
import type { UserInfoInstance } from "./types";
export declare const microLayoutProps: {
routes: {
type: import("vue").PropType<Record<string, any>>;
type: PropType<Record<string, any>>;
required: boolean;

@@ -8,3 +10,3 @@ default: never[];

userInfo: {
type: import("vue").PropType<import("./types").UserInfoInstance>;
type: PropType<UserInfoInstance>;
required: boolean;

@@ -17,5 +19,9 @@ default: () => {};

};
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
};
export type MicroLayoutProps = ExtractPropTypes<typeof microLayoutProps>;
export declare const microLayoutEmits: {
back: () => boolean;
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
};
export type MicroLayoutEmits = typeof microLayoutEmits;
y<import("vue").ExtractPropTypes<{
routes: {

@@ -22,0 +28,0 @@ type: import("vue").PropType<Record<string, any>>;

@@ -1,2 +0,4 @@

declare const _sfc_main: import("vue").DefineComponent<{
import type { ExtractPropTypes, PropType } from "vue";
import type { CountsInstance } from "./types";
export declare const mvCountsItemProps: {
unitEqual: {

@@ -11,3 +13,3 @@ type: BooleanConstructor;

data: {
type: import("vue").PropType<import("./types").CountsInstance>;
type: PropType<CountsInstance>;
default: () => never[];

@@ -19,3 +21,5 @@ };

};
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
};
export type MvCountsItemProps = ExtractPropTypes<typeof mvCountsItemProps>;
& import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
unitEqual: {

@@ -22,0 +26,0 @@ type: BooleanConstructor;

@@ -1,2 +0,4 @@

declare const _sfc_main: import("vue").DefineComponent<{
import type { ExtractPropTypes, PropType } from "vue";
import type { MvIconButtonIconType } from "./types";
export declare const mvIconButtonProps: {
icon: {

@@ -7,3 +9,3 @@ type: StringConstructor;

iconType: {
type: import("vue").PropType<import("./types").MvIconButtonIconType>;
type: PropType<MvIconButtonIconType>;
default: string;

@@ -19,3 +21,7 @@ };

};
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
};
export type MvIconButtonProps = ExtractPropTypes<typeof mvIconButtonProps>;
export declare const mvIconButtonEmits: {};
export type MvIconButtonEmits = typeof mvIconButtonEmits;
ropTypes<{
icon: {

@@ -22,0 +28,0 @@ type: StringConstructor;

@@ -1,6 +0,9 @@

declare const _sfc_main: import("vue").DefineComponent<{
import type { ExtractPropTypes, PropType } from "vue";
export declare const mvMenuItemPorps: {
list: {
type: import("vue").PropType<Record<string, any>>;
type: PropType<Record<string, any>>;
};
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
};
export type MvMenuItemProps = ExtractPropTypes<typeof mvMenuItemPorps>;
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
list: {

@@ -7,0 +10,0 @@ type: import("vue").PropType<Record<string, any>>;

@@ -1,2 +0,1 @@

import type { DefineComponent } from "vue";
import type { HeaderPosition, InsertHeaderProps, QiankunProps, ResetPasswordInstance, RouterQuery } from "./types";

@@ -13,3 +12,3 @@ declare class Actions {

}): void;
insertHeader(position: HeaderPosition, component: DefineComponent, props?: InsertHeaderProps): void;
insertHeader(position: HeaderPosition, component: any, props?: InsertHeaderProps): void;
router(path: string, query?: RouterQuery): void;

@@ -16,0 +15,0 @@ resetPwd(data: ResetPasswordInstance): void;

{
"name": "bettem-micro-utils",
"version": "2.0.6",
"version": "2.0.7",
"description": "bettem micro app utils",

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc