util-helpers 5.5.0 → 5.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/VERSION.js CHANGED
@@ -1,3 +1,3 @@
1
- var VERSION = "5.5.0";
1
+ var VERSION = "5.5.1";
2
2
 
3
3
  export { VERSION as default };
package/esm/isBankCard.js CHANGED
@@ -24,5 +24,6 @@ function isBankCard(value, options) {
24
24
  }
25
25
  return validateResult;
26
26
  }
27
+ isBankCard.sumCheckCode = sumCheckCode;
27
28
 
28
29
  export { isBankCard as default };
@@ -32,5 +32,6 @@ function isBusinessLicense(value, options) {
32
32
  var checkCode = sumCheckCode(preCode);
33
33
  return lastCode === String(checkCode);
34
34
  }
35
+ isBusinessLicense.sumCheckCode = sumCheckCode;
35
36
 
36
37
  export { isBusinessLicense as default };
@@ -28,5 +28,6 @@ function isSocialCreditCode(value, options) {
28
28
  var checkCode = sumCheckCode(preCode);
29
29
  return lastCode === checkCode;
30
30
  }
31
+ isSocialCreditCode.sumCheckCode = sumCheckCode;
31
32
 
32
33
  export { isSocialCreditCode as default };
package/lib/VERSION.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var VERSION = "5.5.0";
3
+ var VERSION = "5.5.1";
4
4
 
5
5
  module.exports = VERSION;
package/lib/isBankCard.js CHANGED
@@ -26,5 +26,6 @@ function isBankCard(value, options) {
26
26
  }
27
27
  return validateResult;
28
28
  }
29
+ isBankCard.sumCheckCode = sumCheckCode;
29
30
 
30
31
  module.exports = isBankCard;
@@ -34,5 +34,6 @@ function isBusinessLicense(value, options) {
34
34
  var checkCode = sumCheckCode(preCode);
35
35
  return lastCode === String(checkCode);
36
36
  }
37
+ isBusinessLicense.sumCheckCode = sumCheckCode;
37
38
 
38
39
  module.exports = isBusinessLicense;
@@ -30,5 +30,6 @@ function isSocialCreditCode(value, options) {
30
30
  var checkCode = sumCheckCode(preCode);
31
31
  return lastCode === checkCode;
32
32
  }
33
+ isSocialCreditCode.sumCheckCode = sumCheckCode;
33
34
 
34
35
  module.exports = isSocialCreditCode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "util-helpers",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "description": "一个基于业务场景的工具方法库",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",
@@ -24,4 +24,7 @@ type Options = {
24
24
  *
25
25
  */
26
26
  declare function isBankCard(value: any, options?: Options): boolean;
27
+ declare namespace isBankCard {
28
+ var sumCheckCode: (numStr: string) => number;
29
+ }
27
30
  export default isBankCard;
@@ -23,4 +23,7 @@ type Options = {
23
23
  *
24
24
  */
25
25
  declare function isBusinessLicense(value: any, options?: Options): boolean;
26
+ declare namespace isBusinessLicense {
27
+ var sumCheckCode: (preCode: string) => number;
28
+ }
26
29
  export default isBusinessLicense;
@@ -23,4 +23,7 @@ type Options = {
23
23
  *
24
24
  */
25
25
  declare function isSocialCreditCode(value: any, options?: Options): boolean;
26
+ declare namespace isSocialCreditCode {
27
+ var sumCheckCode: (preCode: string) => string;
28
+ }
26
29
  export default isSocialCreditCode;