
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@firesoon/common
Advanced tools
前端工具库
npm install @firesoon/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 '@firesoon/common';
import request from '@firesoon/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 '@firesoon/common/lib/theme';
export default defineConfig({
...,
theme
})
FAQs
@firesoon/common
We found that @firesoon/common demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.