
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@gsp-sys/utils
Advanced tools
通用工具函数库,为微应用框架提供各种常用工具函数。
├── src/
│ ├── auth/ # 认证相关工具函数
│ ├── common/ # 通用工具函数
│ ├── network/ # 网络请求工具
│ ├── storage/ # 存储相关工具
│ ├── theme/ # 主题相关工具
│ └── index.ts # 导出文件
getToken() - 获取认证TokensetToken(token) - 设置认证TokenremoveToken() - 移除认证TokendateFormat(fmt, date) - 日期格式化addZero(num) - 数字补零formatDateTime(date) - 时间格式化getPrecision(value) - 获取数值精度numberFormat(value, precision) - 数字精度控制getWeekStartDate(val, firstDayOfWeek) - 获取周起始日期downloadFile(res, fileName) - 文件下载evil(fn) - 安全执行代码字符串getSearchCondValueByName(name) - 获取保存的查询条件encryption(sourceData) - AES加密decryption(sourceData) - AES解密request(options) - 基础请求函数get(url, params, config) - GET请求post(url, data, config) - POST请求put(url, data, config) - PUT请求del(url, params, config) - DELETE请求getCssVariableValue(variableName) - 获取CSS变量值setCssVariableValue(variableName, newValue) - 设置CSS变量值setCssVariables(variables) - 批量设置CSS变量getCssVariables(variableNames) - 获取多个CSS变量在项目中导入所需的工具函数:
// 导入单个函数
import { getToken, setToken } from '@gsp-sys/utils';
// 导入请求模块
import { request, get, post } from '@gsp-sys/utils';
// 使用示例
const token = getToken();
setToken('new-token-value');
// 发送请求
const data = await get('/api/data', { id: 1 });
window.webConfig.serviceAddressFAQs
We found that @gsp-sys/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.