imweb-badjs
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -19,3 +19,3 @@ /** | ||
// AMD loading: define module named "badjs" with dependencies and build it | ||
define(['simple'], factory); | ||
define(['badjs'], factory); | ||
} else { | ||
@@ -22,0 +22,0 @@ // traditional browser loading: build badjs object with dependencies and inject it into window object |
{ | ||
"name": "imweb-badjs", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "report with badjs based on simple!", | ||
@@ -26,11 +26,23 @@ "main": "index.js", | ||
"homepage": "https://github.com/herbertliuhb/badjs", | ||
"readme": "Simple\n================\n * @author herbertliu\n * @date 2013-02-25 version 0.2\n * @description badjs上报\n * @param msg {String} 上报错误信息\n * @param url {String} 该上报信息所属的文件路径\n * @param line {Number} 上报信息所属的文件行号,没有为0\n * @param smid {Number} 上报对应的monitor id,如果smid ===0 ,则只统计badjs,不上报monitor;如果没有该参数,则上报通用monitor id;如果smid === -1,window.onerror专用,会增加Script Error字段头\n * @param level {Number} 上报对应的级别 1 => debug(调试日志); 2 = > info(流水日志); 4 => error(错误日志)(默认值) ; 8 => fail(致命错误日志)\n * @example Badjs.init(bid,mid,min) 初始化badjs一些参数,mid,默认的业务上报Monitor id,min 是否上报浏览器简化信息;或者Badjs.init(bid,{'1' : 0,'2' : 0,'4' : 0, '8' : 0},min)\n * @example Badjs.check(o,mid) 检查页面是否存在某些文件辅助方法\n * @example Badjs.info(type) 获取badjs上报的头信息字符串,其中type为类型,不同的类型上报采用不同的字符串\n * @example Badjs(msg,url,line,smid,level,min) badjs上报,上报字符串,地址,行号,Monitor属性id(可为空,即不报Monitor),上报级别;min,是否上报简略信息\n * @example Badjs.report(retry,total,src,name,loaded) 文件加载失败时候,辅助上报方法", | ||
"readmeFilename": "README.md", | ||
"_id": "imweb-badjs@0.0.5", | ||
"_id": "imweb-badjs@0.2.0", | ||
"dist": { | ||
"shasum": "d8337208d7954e28b0473b3b6ae0f41761026603" | ||
"shasum": "6375be4bf0c9195a1c619edd13d4ae878e3fecdb", | ||
"tarball": "http://registry.npmjs.org/imweb-badjs/-/imweb-badjs-0.2.0.tgz" | ||
}, | ||
"_from": "imweb-badjs@", | ||
"_resolved": "https://registry.npmjs.org/imweb-badjs/-/imweb-badjs-0.0.1.tgz", | ||
"_shasum": "527e539656b8da4a53afa16d8e63cd9fe5f93856" | ||
"_resolved": "https://registry.npmjs.org/imweb-badjs/-/imweb-badjs-0.2.0.tgz", | ||
"_shasum": "527e539656b8da4a53afa16d8e63cd9fe5f93856", | ||
"_npmVersion": "1.4.9", | ||
"_npmUser": { | ||
"name": "herbertliu", | ||
"email": "herbertliuhb@gmail.com" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "herbertliu", | ||
"email": "herbertliuhb@gmail.com" | ||
} | ||
], | ||
"directories": {}, | ||
"readme": "ERROR: No README data found!" | ||
} |
10460