
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@appthen/utils
Advanced tools
一个独立的工具函数库,从 appthen-react/src/utils 迁移而来,便于多项目复用。
pnpm add @appthen/utils
setItem - 设置存储项getItem - 获取存储项removeItem - 删除存储项getItemSync - 同步获取存储项$storage - 存储工具对象preload / $preload - 全局数据预加载dayjs - dayjs 实例moment / $moment - dayjs 别名dataSource - 低代码数据源引擎ENV_TYPE - 环境类型常量getEnv - 获取当前环境navigateTo - 页面跳转request - 网络请求import { preload, setItem, getItem, dayjs } from '@appthen/utils';
// 数据预加载
preload('userInfo', { name: 'John', age: 30 });
const userInfo = preload('userInfo');
// 存储操作
await setItem('token', 'abc123');
const token = await getItem('token');
// 时间处理
const now = dayjs().format('YYYY-MM-DD');
本包使用 peerDependencies 模式,需要在主项目中安装以下依赖:
@tarojs/taro - Taro 框架(或使用 @appthen/tarojs 模拟包)react - React 框架axios - HTTP 客户端dayjs - 时间处理库pnpm run build
详细的迁移过程和问题解决记录请参考 迁移与构建问题记录.md。
FAQs
一个独立的工具函数库,从 `appthen-react/src/utils` 迁移而来,便于多项目复用。
We found that @appthen/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.