Comparing version 0.5.3 to 0.5.4
@@ -52,4 +52,2 @@ "use strict"; | ||
// TODO: | ||
// 有缓存时,不重新请求,获取缓存时判断params是否相同,长缓存? | ||
// 空函数 | ||
@@ -171,3 +169,3 @@ var noop = function noop() {}; // 异步方法hooks | ||
onSuccess(fmtData, args); | ||
resolve(fmtData, args); | ||
resolve(fmtData); | ||
} | ||
@@ -187,3 +185,3 @@ })["catch"](function (error) { | ||
onError(error, args); | ||
reject(error, args); | ||
reject(error); | ||
} | ||
@@ -190,0 +188,0 @@ })["finally"](function () { |
{ | ||
"name": "rc-hooks", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "React Hooks Library.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36592
21
721