You've already forked uniapp-error-monitor
✨ 主要更新: - 全面重写README.md,增强文档完整性和易读性 - 新增完整的使用示例和高级用法说明 - 重构代码架构,删除冗余文件,提升代码质量 - 添加TypeScript支持,增强类型安全 - 优化构建配置,支持多种输出格式(ESM/CJS/UMD) - 改进错误捕获机制,支持更多错误类型 📋 具体变更: - README: 从基础文档升级为完整的API参考和使用指南 - 构建: 删除build.sh,构建配置移至rollup.config.js - 类型: 添加index.d.ts,实现完整的TypeScript支持 - 示例: 新增USAGE_EXAMPLES.js提供详细使用示例 - 配置: 优化package.json脚本和依赖管理 🎯 技术提升: - 代码结构更清晰,维护性更好 - 类型安全性显著增强 - 文档质量和用户体验大幅提升 - 支持更多模块格式,兼容性更好 🔖 版本: 1.0.1 -> 1.1.0
77 lines
1.8 KiB
JSON
77 lines
1.8 KiB
JSON
{
|
||
"name": "uniapp-error-monitor",
|
||
"version": "1.1.0",
|
||
"description": "专门为UniApp环境设计的错误监控和上报工具,支持全局错误捕获、Promise错误捕获、网络错误捕获等",
|
||
"main": "dist/index.js",
|
||
"module": "dist/index.esm.js",
|
||
"browser": "dist/index.umd.js",
|
||
"types": "dist/index.d.ts",
|
||
"files": [
|
||
"dist",
|
||
"README.md",
|
||
"LICENSE"
|
||
],
|
||
"keywords": [
|
||
"uniapp",
|
||
"error",
|
||
"monitor",
|
||
"tracking",
|
||
"wechat-miniprogram",
|
||
"vue3",
|
||
"error-reporting",
|
||
"javascript",
|
||
"error-handling"
|
||
],
|
||
"author": {
|
||
"name": "yuantao",
|
||
"email": "work@pandorastudio.cn"
|
||
},
|
||
"license": "MIT",
|
||
"repository": {
|
||
"type": "git",
|
||
"url": "https://git.pandorastudio.cn/product/uniapp-error-monitor.git"
|
||
},
|
||
"homepage": "https://git.pandorastudio.cn",
|
||
"engines": {
|
||
"node": ">=14.0.0",
|
||
"npm": ">=6.0.0"
|
||
},
|
||
"scripts": {
|
||
"build": "rollup -c",
|
||
"dev": "rollup -c -w",
|
||
"clean": "rimraf dist",
|
||
"type-check": "tsc --noEmit",
|
||
"prepublishOnly": "npm run clean && npm run type-check && npm run build",
|
||
"prepare": "npm run build"
|
||
},
|
||
"devDependencies": {
|
||
"@babel/core": "^7.28.5",
|
||
"@babel/preset-env": "^7.28.5",
|
||
"@rollup/plugin-babel": "^6.1.0",
|
||
"@rollup/plugin-commonjs": "^25.0.0",
|
||
"@rollup/plugin-node-resolve": "^15.0.0",
|
||
"@rollup/plugin-typescript": "^11.0.0",
|
||
"eslint": "^8.0.0",
|
||
"rimraf": "^5.0.0",
|
||
"rollup": "^2.0.0",
|
||
"rollup-plugin-terser": "^7.0.0",
|
||
"tslib": "^2.8.1",
|
||
"typescript": "^5.0.0"
|
||
},
|
||
"peerDependencies": {
|
||
"@dcloudio/uni-app": "^3.0.0"
|
||
},
|
||
"peerDependenciesMeta": {
|
||
"@dcloudio/uni-app": {
|
||
"optional": true
|
||
}
|
||
},
|
||
"browserslist": [
|
||
"defaults",
|
||
"not IE 11",
|
||
"last 2 versions",
|
||
"iOS >= 10",
|
||
"Android >= 6"
|
||
]
|
||
}
|