
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@aolie/common
Advanced tools
pnpm install @aolie/common --save-dev
isDeepEqual:深度比较对象是否相等;isNil:是否为 null 或 undefinednumberFormat:千分位格式化的数字uuidFast:生成 uuidtrim:去除字符串头尾空格或指定字符trimStart:去除字符串头部空格或指定字符trimEnd:去除字符串尾部空格或指定字符phoneEncrypt:手机号码脱敏isEmptyObject:判断obj是否为空randomNum:生成指定范围[min, max]的随机数isEmail:判断是否为邮箱地址isIdCard:判断是否为身份证号isPhoneNum:判断是否为手机号isUrl:判断是否为 URL 地址getUrlParam:获取 url 参数treeToArray:平铺树形结构theme:默认主题色 less 变量downloadFile:文件下载方法request:接口请求方法import { downloadFile } from "@aolie/common";
import request from "@aolie/common/lib/request";
import { prefix, appPlatform } from "@/utils/config";
// 修改默认配置
request.extendOptions({
headers: {
"Content-Type": "application/json; charset=utf-8",
},
prefix,
});
// 平台接口配置prefix
export function getUserInfo() {
return request("user/toUserInfo", {
prefix: appPlatform,
method: "POST",
});
}
// post请求
export function postRuleTypeDict(params) {
return request.post(`audit/exec/postRuleTypeDict`, {
data: params,
});
}
// get请求
export function getRuleTypeDict(params) {
return request(`audit/exec/getRuleTypeDict`, {
params,
});
}
/**
* 文件下载
* @param param
* @returns
*/
export function exportRuleExecDetail(params) {
return downloadFile("audit/exec/exportRuleExecDetail", prefix, params);
}
import theme from '@aolie/common/lib/theme';
export default defineConfig({
...,
theme
})
FAQs
基于 TypeScript 的工具函数库
We found that @aolie/common demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.