amos-tool 1.4.7 → 1.4.10

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.
Files changed (103) hide show
  1. package/.prettierignore +2 -2
  2. package/.prettierrc +50 -50
  3. package/README.md +3 -0
  4. package/apis/objectPath.md +129 -129
  5. package/docs/Logger.html +160 -2
  6. package/docs/global.html +529 -65
  7. package/docs/index.html +5 -2
  8. package/index.d.ts +11 -2
  9. package/index.js +3 -3
  10. package/lib/_browser.js +10 -8
  11. package/lib/_clone.js +68 -57
  12. package/lib/_cookie.js +50 -47
  13. package/lib/_deepCopy.js +14 -19
  14. package/lib/_deepEqual.js +7 -8
  15. package/lib/_fastDeepEqual.js +26 -34
  16. package/lib/_flashSupport.js +13 -10
  17. package/lib/_forOwn.js +8 -7
  18. package/lib/_funcThrottle.js +16 -15
  19. package/lib/_isnode.js +2 -1
  20. package/lib/_list.js +74 -79
  21. package/lib/_object.assign.js +19 -19
  22. package/lib/_object.entries.js +8 -7
  23. package/lib/_object.values.js +8 -7
  24. package/lib/_omit.js +12 -11
  25. package/lib/_parseJson.js +7 -6
  26. package/lib/_pick.js +8 -7
  27. package/lib/_queue.js +24 -21
  28. package/lib/_shallowCopy.js +24 -23
  29. package/lib/_stringify.js +13 -10
  30. package/lib/_supportWs.js +5 -5
  31. package/lib/_trim.js +5 -4
  32. package/lib/_typeOfList.js +22 -21
  33. package/lib/_uuids.js +30 -35
  34. package/lib/amostool.js +4 -66
  35. package/lib/array2tree.js +9 -9
  36. package/lib/arrayFilter.js +18 -19
  37. package/lib/arrayUtils.js +10 -8
  38. package/lib/browser/Cookie.js +35 -36
  39. package/lib/browser/indexDB.js +72 -71
  40. package/lib/browserSupport.js +76 -71
  41. package/lib/completeUnit.js +7 -4
  42. package/lib/consts.js +2 -1
  43. package/lib/dom/canvas2img.js +61 -72
  44. package/lib/dom/canvasTools.js +11 -16
  45. package/lib/dom/downloadFile.js +17 -12
  46. package/lib/dom/eventHelper.js +8 -6
  47. package/lib/dom/fileBlob.js +14 -14
  48. package/lib/dom/fileSaveAs.js +54 -61
  49. package/lib/dom/getFontSize.js +7 -10
  50. package/lib/dom/minfyImg.js +27 -24
  51. package/lib/encrypt/_base64.js +32 -25
  52. package/lib/encrypt/_md5.js +68 -31
  53. package/lib/encrypt/des.js +430 -366
  54. package/lib/extra/_common.js +120 -161
  55. package/lib/extra/filterNull.js +5 -4
  56. package/lib/extra/find.js +10 -11
  57. package/lib/extra/index.js +4 -3
  58. package/lib/extra/memo.js +18 -0
  59. package/lib/extra/pathToTree.js +49 -36
  60. package/lib/extra/pwdStrength.js +4 -2
  61. package/lib/extra/sortBy.js +28 -30
  62. package/lib/flat.js +9 -13
  63. package/lib/locationParams.js +93 -95
  64. package/lib/log.js +23 -26
  65. package/lib/math/_keyColor.js +3 -1
  66. package/lib/math/addition.js +9 -7
  67. package/lib/math/amountCase.js +8 -12
  68. package/lib/math/coinFormat.js +6 -4
  69. package/lib/math/colorUtil.js +91 -94
  70. package/lib/math/dateTime.js +79 -97
  71. package/lib/math/operations.js +33 -37
  72. package/lib/math/pwdStrength.js +4 -2
  73. package/lib/math/randomColor.js +17 -5
  74. package/lib/math/subtraction.js +10 -9
  75. package/lib/merged.js +9 -9
  76. package/lib/objectPath.js +81 -82
  77. package/lib/parseText.js +8 -7
  78. package/lib/png/Identicon.js +32 -28
  79. package/lib/png/pnglib.js +59 -34
  80. package/lib/png/randomPic.js +8 -14
  81. package/lib/positionFactory.js +28 -28
  82. package/lib/pwdPolicy.js +27 -31
  83. package/lib/qs/_assign.js +7 -5
  84. package/lib/qs/_merge.js +20 -23
  85. package/lib/qs/_tools.js +3 -2
  86. package/lib/qs/formats.js +6 -5
  87. package/lib/qs/index.js +4 -4
  88. package/lib/qs/parse.js +56 -51
  89. package/lib/qs/stringify.js +54 -69
  90. package/lib/qs/utils.js +70 -83
  91. package/lib/random.js +5 -4
  92. package/lib/shallowEqual.js +25 -29
  93. package/lib/store.js +93 -95
  94. package/lib/strUtils.js +52 -43
  95. package/lib/tableFilter.js +178 -169
  96. package/lib/throttleDebounce.js +18 -22
  97. package/lib/url/encodeUrl.js +5 -4
  98. package/lib/url/restfulUrl.js +8 -7
  99. package/lib/utils.js +170 -222
  100. package/lib/xss/htmlEncode.js +3 -2
  101. package/lib/xss/implementEncode.js +36 -37
  102. package/lib/xss/index.js +4 -3
  103. package/package.json +4 -4
package/.prettierignore CHANGED
@@ -1,2 +1,2 @@
1
- node_modules
2
- lib
1
+ node_modules
2
+ lib
package/.prettierrc CHANGED
@@ -1,50 +1,50 @@
1
- {
2
- "printWidth": 160,
3
- "tabWidth": 2,
4
- "useTabs": false,
5
- "semi": true,
6
- "singleQuote": true,
7
- "parser": "babel",
8
- "trailingComma": "none",
9
- "bracketSpacing": true,
10
- "jsxBracketSameLine": false,
11
- "arrowParens": "avoid",
12
- "requirePragma": false,
13
- "proseWrap": "preserve",
14
- "overrides": [
15
- {
16
- "files": ["*.json", ".eslintrc", ".tslintrc", ".prettierrc", ".tern-project", ".travis.yml"],
17
- "options": {
18
- "parser": "json",
19
- "tabWidth": 2
20
- }
21
- },
22
- {
23
- "files": "*.css",
24
- "options": {
25
- "parser": "css",
26
- "tabWidth": 2
27
- }
28
- },
29
- {
30
- "files": "*.{sass,scss}",
31
- "options": {
32
- "parser": "scss",
33
- "tabWidth": 2
34
- }
35
- },
36
- {
37
- "files": "*.less",
38
- "options": {
39
- "parser": "less",
40
- "tabWidth": 2
41
- }
42
- },
43
- {
44
- "files": "*.ts",
45
- "options": {
46
- "parser": "typescript"
47
- }
48
- }
49
- ]
50
- }
1
+ {
2
+ "printWidth": 160,
3
+ "tabWidth": 2,
4
+ "useTabs": false,
5
+ "semi": true,
6
+ "singleQuote": true,
7
+ "parser": "babel",
8
+ "trailingComma": "none",
9
+ "bracketSpacing": true,
10
+ "jsxBracketSameLine": false,
11
+ "arrowParens": "avoid",
12
+ "requirePragma": false,
13
+ "proseWrap": "preserve",
14
+ "overrides": [
15
+ {
16
+ "files": ["*.json", ".eslintrc", ".tslintrc", ".prettierrc", ".tern-project", ".travis.yml"],
17
+ "options": {
18
+ "parser": "json",
19
+ "tabWidth": 2
20
+ }
21
+ },
22
+ {
23
+ "files": "*.css",
24
+ "options": {
25
+ "parser": "css",
26
+ "tabWidth": 2
27
+ }
28
+ },
29
+ {
30
+ "files": "*.{sass,scss}",
31
+ "options": {
32
+ "parser": "scss",
33
+ "tabWidth": 2
34
+ }
35
+ },
36
+ {
37
+ "files": "*.less",
38
+ "options": {
39
+ "parser": "less",
40
+ "tabWidth": 2
41
+ }
42
+ },
43
+ {
44
+ "files": "*.ts",
45
+ "options": {
46
+ "parser": "typescript"
47
+ }
48
+ }
49
+ ]
50
+ }
package/README.md CHANGED
@@ -278,6 +278,9 @@ const result2 = browserSupport(paramsList, limit);
278
278
  Log.error()
279
279
  Log.fatal()
280
280
 
281
+ // 展示 pkg 信息,不受 LogConfig 配置影响
282
+ Log.pkgInfo(name, version)
283
+
281
284
  ```
282
285
 
283
286
  ### store
@@ -1,129 +1,129 @@
1
- # objectPath
2
-
3
- ## Usage
4
-
5
- ```js
6
- var {objectPath} from 'amos-tool';
7
-
8
- var obj = {
9
- a: {
10
- b: "d",
11
- c: ["e", "f"],
12
- '\u1200': 'unicode key',
13
- 'dot.dot': 'key'
14
- }
15
- };
16
-
17
- var objectPath = require("object-path");
18
-
19
- //get deep property
20
- objectPath.get(obj, "a.b"); //returns "d"
21
- objectPath.get(obj, ["a", "dot.dot"]); //returns "key"
22
- objectPath.get(obj, 'a.\u1200'); //returns "unicode key"
23
-
24
- //get the first non-undefined value
25
- objectPath.coalesce(obj, ['a.z', 'a.d', ['a','b']], 'default');
26
-
27
- //empty a given path (but do not delete it) depending on their type,so it retains reference to objects and arrays.
28
- //functions that are not inherited from prototype are set to null.
29
- //object instances are considered objects and just own property names are deleted
30
- objectPath.empty(obj, 'a.b'); // obj.a.b is now ''
31
- objectPath.empty(obj, 'a.c'); // obj.a.c is now []
32
- objectPath.empty(obj, 'a'); // obj.a is now {}
33
-
34
- //works also with arrays
35
- objectPath.get(obj, "a.c.1"); //returns "f"
36
- objectPath.get(obj, ["a","c","1"]); //returns "f"
37
-
38
- //can return a default value with get
39
- objectPath.get(obj, ["a.c.b"], "DEFAULT"); //returns "DEFAULT", since a.c.b path doesn't exists, if omitted, returns undefined
40
-
41
- //set
42
- objectPath.set(obj, "a.h", "m"); // or objectPath.set(obj, ["a","h"], "m");
43
- objectPath.get(obj, "a.h"); //returns "m"
44
-
45
- //set will create intermediate object/arrays
46
- objectPath.set(obj, "a.j.0.f", "m");
47
-
48
- //will insert values in array
49
- objectPath.insert(obj, "a.c", "m", 1); // obj.a.c = ["e", "m", "f"]
50
-
51
- //push into arrays (and create intermediate objects/arrays)
52
- objectPath.push(obj, "a.k", "o");
53
-
54
- //ensure a path exists (if it doesn't, set the default value you provide)
55
- objectPath.ensureExists(obj, "a.k.1", "DEFAULT");
56
- var oldVal = objectPath.ensureExists(obj, "a.b", "DEFAULT"); // oldval === "d"
57
-
58
- //deletes a path
59
- objectPath.del(obj, "a.b"); // obj.a.b is now undefined
60
- objectPath.del(obj, ["a","c",0]); // obj.a.c is now ['f']
61
-
62
- //tests path existence
63
- objectPath.has(obj, "a.b"); // true
64
- objectPath.has(obj, ["a","d"]); // false
65
-
66
- //bind object
67
- var model = objectPath({
68
- a: {
69
- b: "d",
70
- c: ["e", "f"]
71
- }
72
- });
73
-
74
- //now any method from above is supported directly w/o passing an object
75
- model.get("a.b"); //returns "d"
76
- model.get(["a.c.b"], "DEFAULT"); //returns "DEFAULT"
77
- model.del("a.b"); // obj.a.b is now undefined
78
- model.has("a.b"); // false
79
-
80
- ```
81
-
82
- ### How `object-path` deals with inherited properties
83
-
84
- By default `object-path` will only access an object's own properties. Look at the following example:
85
-
86
- ```js
87
- var proto = {
88
- notOwn: {prop: 'a'}
89
- }
90
- var obj = Object.create(proto);
91
-
92
- //This will return undefined (or the default value you specified), because notOwn is
93
- //an inherited property
94
- objectPath.get(obj, 'notOwn.prop');
95
-
96
- //This will set the property on the obj instance and not the prototype.
97
- //In other words proto.notOwn.prop === 'a' and obj.notOwn.prop === 'b'
98
- objectPath.set(obj, 'notOwn.prop', 'b');
99
- ```
100
-
101
- To configure `object-path` to also deal with inherited properties, you need to create a new instance and specify
102
- the `includeInheritedProps = true` in the options object:
103
-
104
- ```js
105
- var objectPath = require("object-path");
106
- var objectPathWithInheritedProps = objectPath.create({includeInheritedProps: true})
107
- ```
108
-
109
- Alternatively, `object-path` exposes an instance already configured to handle inherited properties (`objectPath.withInheritedProps`):
110
-
111
- ```js
112
- var objectPath = require("object-path");
113
- var objectPathWithInheritedProps = objectPath.withInheritedProps
114
- ```
115
-
116
- Once you have the new instance, you can access inherited properties as you access other properties:
117
-
118
- ```js
119
- var proto = {
120
- notOwn: {prop: 'a'}
121
- }
122
- var obj = Object.create(proto);
123
-
124
- //This will return 'a'
125
- objectPath.withInheritedProps.get(obj, 'notOwn.prop');
126
-
127
- //This will set proto.notOwn.prop to 'b'
128
- objectPath.set(obj, 'notOwn.prop', 'b');
129
- ```
1
+ # objectPath
2
+
3
+ ## Usage
4
+
5
+ ```js
6
+ var {objectPath} from 'amos-tool';
7
+
8
+ var obj = {
9
+ a: {
10
+ b: "d",
11
+ c: ["e", "f"],
12
+ '\u1200': 'unicode key',
13
+ 'dot.dot': 'key'
14
+ }
15
+ };
16
+
17
+ var objectPath = require("object-path");
18
+
19
+ //get deep property
20
+ objectPath.get(obj, "a.b"); //returns "d"
21
+ objectPath.get(obj, ["a", "dot.dot"]); //returns "key"
22
+ objectPath.get(obj, 'a.\u1200'); //returns "unicode key"
23
+
24
+ //get the first non-undefined value
25
+ objectPath.coalesce(obj, ['a.z', 'a.d', ['a','b']], 'default');
26
+
27
+ //empty a given path (but do not delete it) depending on their type,so it retains reference to objects and arrays.
28
+ //functions that are not inherited from prototype are set to null.
29
+ //object instances are considered objects and just own property names are deleted
30
+ objectPath.empty(obj, 'a.b'); // obj.a.b is now ''
31
+ objectPath.empty(obj, 'a.c'); // obj.a.c is now []
32
+ objectPath.empty(obj, 'a'); // obj.a is now {}
33
+
34
+ //works also with arrays
35
+ objectPath.get(obj, "a.c.1"); //returns "f"
36
+ objectPath.get(obj, ["a","c","1"]); //returns "f"
37
+
38
+ //can return a default value with get
39
+ objectPath.get(obj, ["a.c.b"], "DEFAULT"); //returns "DEFAULT", since a.c.b path doesn't exists, if omitted, returns undefined
40
+
41
+ //set
42
+ objectPath.set(obj, "a.h", "m"); // or objectPath.set(obj, ["a","h"], "m");
43
+ objectPath.get(obj, "a.h"); //returns "m"
44
+
45
+ //set will create intermediate object/arrays
46
+ objectPath.set(obj, "a.j.0.f", "m");
47
+
48
+ //will insert values in array
49
+ objectPath.insert(obj, "a.c", "m", 1); // obj.a.c = ["e", "m", "f"]
50
+
51
+ //push into arrays (and create intermediate objects/arrays)
52
+ objectPath.push(obj, "a.k", "o");
53
+
54
+ //ensure a path exists (if it doesn't, set the default value you provide)
55
+ objectPath.ensureExists(obj, "a.k.1", "DEFAULT");
56
+ var oldVal = objectPath.ensureExists(obj, "a.b", "DEFAULT"); // oldval === "d"
57
+
58
+ //deletes a path
59
+ objectPath.del(obj, "a.b"); // obj.a.b is now undefined
60
+ objectPath.del(obj, ["a","c",0]); // obj.a.c is now ['f']
61
+
62
+ //tests path existence
63
+ objectPath.has(obj, "a.b"); // true
64
+ objectPath.has(obj, ["a","d"]); // false
65
+
66
+ //bind object
67
+ var model = objectPath({
68
+ a: {
69
+ b: "d",
70
+ c: ["e", "f"]
71
+ }
72
+ });
73
+
74
+ //now any method from above is supported directly w/o passing an object
75
+ model.get("a.b"); //returns "d"
76
+ model.get(["a.c.b"], "DEFAULT"); //returns "DEFAULT"
77
+ model.del("a.b"); // obj.a.b is now undefined
78
+ model.has("a.b"); // false
79
+
80
+ ```
81
+
82
+ ### How `object-path` deals with inherited properties
83
+
84
+ By default `object-path` will only access an object's own properties. Look at the following example:
85
+
86
+ ```js
87
+ var proto = {
88
+ notOwn: {prop: 'a'}
89
+ }
90
+ var obj = Object.create(proto);
91
+
92
+ //This will return undefined (or the default value you specified), because notOwn is
93
+ //an inherited property
94
+ objectPath.get(obj, 'notOwn.prop');
95
+
96
+ //This will set the property on the obj instance and not the prototype.
97
+ //In other words proto.notOwn.prop === 'a' and obj.notOwn.prop === 'b'
98
+ objectPath.set(obj, 'notOwn.prop', 'b');
99
+ ```
100
+
101
+ To configure `object-path` to also deal with inherited properties, you need to create a new instance and specify
102
+ the `includeInheritedProps = true` in the options object:
103
+
104
+ ```js
105
+ var objectPath = require("object-path");
106
+ var objectPathWithInheritedProps = objectPath.create({includeInheritedProps: true})
107
+ ```
108
+
109
+ Alternatively, `object-path` exposes an instance already configured to handle inherited properties (`objectPath.withInheritedProps`):
110
+
111
+ ```js
112
+ var objectPath = require("object-path");
113
+ var objectPathWithInheritedProps = objectPath.withInheritedProps
114
+ ```
115
+
116
+ Once you have the new instance, you can access inherited properties as you access other properties:
117
+
118
+ ```js
119
+ var proto = {
120
+ notOwn: {prop: 'a'}
121
+ }
122
+ var obj = Object.create(proto);
123
+
124
+ //This will return 'a'
125
+ objectPath.withInheritedProps.get(obj, 'notOwn.prop');
126
+
127
+ //This will set proto.notOwn.prop to 'b'
128
+ objectPath.set(obj, 'notOwn.prop', 'b');
129
+ ```
package/docs/Logger.html CHANGED
@@ -27,7 +27,7 @@
27
27
 
28
28
  <nav >
29
29
 
30
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Logger.html">Logger</a></li></ul><h3>Global</h3><ul><li><a href="global.html#_boost">_boost</a></li><li><a href="global.html#_defaultBrowsers">_defaultBrowsers</a></li><li><a href="global.html#_muiltBrowsers">_muiltBrowsers</a></li><li><a href="global.html#_utils">_utils</a></li><li><a href="global.html#advancePolicy">advancePolicy</a></li><li><a href="global.html#amosCookie">amosCookie</a></li><li><a href="global.html#array2tree">array2tree</a></li><li><a href="global.html#arrayFilter">arrayFilter</a></li><li><a href="global.html#beautifyRoutes">beautifyRoutes</a></li><li><a href="global.html#browserSupport">browserSupport</a></li><li><a href="global.html#bt4ToHex">bt4ToHex</a></li><li><a href="global.html#byteToString">byteToString</a></li><li><a href="global.html#calcBrowserVersion">calcBrowserVersion</a></li><li><a href="global.html#checkFlash">checkFlash</a></li><li><a href="global.html#clone">clone</a></li><li><a href="global.html#colorKeyWordsHexStr">colorKeyWordsHexStr</a></li><li><a href="global.html#customEqual">customEqual</a></li><li><a href="global.html#debounce">debounce</a></li><li><a href="global.html#deepCopy">deepCopy</a></li><li><a href="global.html#deepEqual">deepEqual</a></li><li><a href="global.html#DesUtils">DesUtils</a></li><li><a href="global.html#divide">divide</a></li><li><a href="global.html#drawPolygon">drawPolygon</a></li><li><a href="global.html#enc">enc</a></li><li><a href="global.html#encodeLen">encodeLen</a></li><li><a href="global.html#encodeNumber">encodeNumber</a></li><li><a href="global.html#eq">eq</a></li><li><a href="global.html#fieldContentRegExp">fieldContentRegExp</a></li><li><a href="global.html#fileterAllMatchedData">fileterAllMatchedData</a></li><li><a href="global.html#filterAllCheckedData">filterAllCheckedData</a></li><li><a href="global.html#filterChilds">filterChilds</a></li><li><a href="global.html#filterTreeLevel">filterTreeLevel</a></li><li><a href="global.html#genBitmapImage">genBitmapImage</a></li><li><a href="global.html#generateKeys">generateKeys</a></li><li><a href="global.html#getFileExtension">getFileExtension</a></li><li><a href="global.html#getKeyBytes">getKeyBytes</a></li><li><a href="global.html#getTreeFlatKeys">getTreeFlatKeys</a></li><li><a href="global.html#gradientColor">gradientColor</a></li><li><a href="global.html#has">has</a></li><li><a href="global.html#hasOwnProperty">hasOwnProperty</a></li><li><a href="global.html#hexToBt4">hexToBt4</a></li><li><a href="global.html#imageCompress">imageCompress</a></li><li><a href="global.html#isArray">isArray</a></li><li><a href="global.html#isBoolean">isBoolean</a></li><li><a href="global.html#isBuiltInObject">isBuiltInObject</a></li><li><a href="global.html#isDom">isDom</a></li><li><a href="global.html#isElement">isElement</a></li><li><a href="global.html#isEmpty">isEmpty</a></li><li><a href="global.html#isEmptyObject">isEmptyObject</a></li><li><a href="global.html#isFloat">isFloat</a></li><li><a href="global.html#isHexColor">isHexColor</a></li><li><a href="global.html#isImageSrc">isImageSrc</a></li><li><a href="global.html#isJson">isJson</a></li><li><a href="global.html#isKeyColor">isKeyColor</a></li><li><a href="global.html#isKeyInObject">isKeyInObject</a></li><li><a href="global.html#isNil">isNil</a></li><li><a href="global.html#isNull">isNull</a></li><li><a href="global.html#isNumber">isNumber</a></li><li><a href="global.html#isObject">isObject</a></li><li><a href="global.html#isOnlyObject">isOnlyObject</a></li><li><a href="global.html#isOpacity">isOpacity</a></li><li><a href="global.html#isRgbColor">isRgbColor</a></li><li><a href="global.html#isUndefined">isUndefined</a></li><li><a href="global.html#isUrl">isUrl</a></li><li><a href="global.html#isValidDate">isValidDate</a></li><li><a href="global.html#keyColorToHex">keyColorToHex</a></li><li><a href="global.html#Log">Log</a></li><li><a href="global.html#merge">merge</a></li><li><a href="global.html#mergeAll">mergeAll</a></li><li><a href="global.html#mod">mod</a></li><li><a href="global.html#multiply">multiply</a></li><li><a href="global.html#normalPolicy">normalPolicy</a></li><li><a href="global.html#null2default">null2default</a></li><li><a href="global.html#objRGB2str">objRGB2str</a></li><li><a href="global.html#parse">parse</a></li><li><a href="global.html#plus">plus</a></li><li><a href="global.html#PNGlib">PNGlib</a></li><li><a href="global.html#Queue">Queue</a></li><li><a href="global.html#random">random</a></li><li><a href="global.html#randomInt">randomInt</a></li><li><a href="global.html#recursive">recursive</a></li><li><a href="global.html#recursiveGen">recursiveGen</a></li><li><a href="global.html#rgb2object">rgb2object</a></li><li><a href="global.html#saveAsImage">saveAsImage</a></li><li><a href="global.html#serialize">serialize</a></li><li><a href="global.html#shallowEqual">shallowEqual</a></li><li><a href="global.html#simpleEqual">simpleEqual</a></li><li><a href="global.html#simpleThrottle">simpleThrottle</a></li><li><a href="global.html#some">some</a></li><li><a href="global.html#stringIsJson">stringIsJson</a></li><li><a href="global.html#strToBt">strToBt</a></li><li><a href="global.html#subtract">subtract</a></li><li><a href="global.html#throttle">throttle</a></li><li><a href="global.html#toHexColor">toHexColor</a></li><li><a href="global.html#toRGBcolor">toRGBcolor</a></li><li><a href="global.html#toStringHexColor">toStringHexColor</a></li><li><a href="global.html#transformColor">transformColor</a></li><li><a href="global.html#useMd5Policy">useMd5Policy</a></li><li><a href="global.html#useMd5Policy2">useMd5Policy2</a></li><li><a href="global.html#utils">utils</a></li><li><a href="global.html#values">values</a></li></ul>
30
+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Logger.html">Logger</a><ul class='methods'><li data-type='method'><a href="Logger.html#pkgInfo">pkgInfo</a></li></ul></li></ul><h3>Global</h3><ul><li><a href="global.html#_boost">_boost</a></li><li><a href="global.html#_defaultBrowsers">_defaultBrowsers</a></li><li><a href="global.html#_muiltBrowsers">_muiltBrowsers</a></li><li><a href="global.html#_utils">_utils</a></li><li><a href="global.html#advancePolicy">advancePolicy</a></li><li><a href="global.html#amosCookie">amosCookie</a></li><li><a href="global.html#array2tree">array2tree</a></li><li><a href="global.html#arrayFilter">arrayFilter</a></li><li><a href="global.html#beautifyRoutes">beautifyRoutes</a></li><li><a href="global.html#browserSupport">browserSupport</a></li><li><a href="global.html#bt4ToHex">bt4ToHex</a></li><li><a href="global.html#byteToString">byteToString</a></li><li><a href="global.html#calcBrowserVersion">calcBrowserVersion</a></li><li><a href="global.html#checkFlash">checkFlash</a></li><li><a href="global.html#clone">clone</a></li><li><a href="global.html#colorKeyWordsHexStr">colorKeyWordsHexStr</a></li><li><a href="global.html#customEqual">customEqual</a></li><li><a href="global.html#debounce">debounce</a></li><li><a href="global.html#deepCopy">deepCopy</a></li><li><a href="global.html#deepEqual">deepEqual</a></li><li><a href="global.html#DesUtils">DesUtils</a></li><li><a href="global.html#divide">divide</a></li><li><a href="global.html#drawPolygon">drawPolygon</a></li><li><a href="global.html#enc">enc</a></li><li><a href="global.html#encodeLen">encodeLen</a></li><li><a href="global.html#encodeNumber">encodeNumber</a></li><li><a href="global.html#eq">eq</a></li><li><a href="global.html#fieldContentRegExp">fieldContentRegExp</a></li><li><a href="global.html#fileterAllMatchedData">fileterAllMatchedData</a></li><li><a href="global.html#filterAllCheckedData">filterAllCheckedData</a></li><li><a href="global.html#filterChilds">filterChilds</a></li><li><a href="global.html#filterTreeLevel">filterTreeLevel</a></li><li><a href="global.html#genBitmapImage">genBitmapImage</a></li><li><a href="global.html#generateKeys">generateKeys</a></li><li><a href="global.html#getFileExtension">getFileExtension</a></li><li><a href="global.html#getKeyBytes">getKeyBytes</a></li><li><a href="global.html#getTreeFlatKeys">getTreeFlatKeys</a></li><li><a href="global.html#gradientColor">gradientColor</a></li><li><a href="global.html#has">has</a></li><li><a href="global.html#hasOwnProperty">hasOwnProperty</a></li><li><a href="global.html#hexToBt4">hexToBt4</a></li><li><a href="global.html#imageCompress">imageCompress</a></li><li><a href="global.html#isArray">isArray</a></li><li><a href="global.html#isBoolean">isBoolean</a></li><li><a href="global.html#isBuiltInObject">isBuiltInObject</a></li><li><a href="global.html#isDom">isDom</a></li><li><a href="global.html#isElement">isElement</a></li><li><a href="global.html#isEmpty">isEmpty</a></li><li><a href="global.html#isEmptyObject">isEmptyObject</a></li><li><a href="global.html#isFloat">isFloat</a></li><li><a href="global.html#isHexColor">isHexColor</a></li><li><a href="global.html#isImageSrc">isImageSrc</a></li><li><a href="global.html#isInputEqual">isInputEqual</a></li><li><a href="global.html#isJson">isJson</a></li><li><a href="global.html#isKeyColor">isKeyColor</a></li><li><a href="global.html#isKeyInObject">isKeyInObject</a></li><li><a href="global.html#isNil">isNil</a></li><li><a href="global.html#isNull">isNull</a></li><li><a href="global.html#isNumber">isNumber</a></li><li><a href="global.html#isObject">isObject</a></li><li><a href="global.html#isOnlyObject">isOnlyObject</a></li><li><a href="global.html#isOpacity">isOpacity</a></li><li><a href="global.html#isRgbColor">isRgbColor</a></li><li><a href="global.html#isUndefined">isUndefined</a></li><li><a href="global.html#isUrl">isUrl</a></li><li><a href="global.html#isValidDate">isValidDate</a></li><li><a href="global.html#keyColorToHex">keyColorToHex</a></li><li><a href="global.html#Log">Log</a></li><li><a href="global.html#merge">merge</a></li><li><a href="global.html#mergeAll">mergeAll</a></li><li><a href="global.html#mod">mod</a></li><li><a href="global.html#multiply">multiply</a></li><li><a href="global.html#normalPolicy">normalPolicy</a></li><li><a href="global.html#null2default">null2default</a></li><li><a href="global.html#objRGB2str">objRGB2str</a></li><li><a href="global.html#parse">parse</a></li><li><a href="global.html#pathToTree">pathToTree</a></li><li><a href="global.html#plus">plus</a></li><li><a href="global.html#PNGlib">PNGlib</a></li><li><a href="global.html#Queue">Queue</a></li><li><a href="global.html#random">random</a></li><li><a href="global.html#randomInt">randomInt</a></li><li><a href="global.html#recursive">recursive</a></li><li><a href="global.html#recursiveGen">recursiveGen</a></li><li><a href="global.html#rgb2object">rgb2object</a></li><li><a href="global.html#saveAsImage">saveAsImage</a></li><li><a href="global.html#serialize">serialize</a></li><li><a href="global.html#shallowEqual">shallowEqual</a></li><li><a href="global.html#simpleEqual">simpleEqual</a></li><li><a href="global.html#simpleThrottle">simpleThrottle</a></li><li><a href="global.html#some">some</a></li><li><a href="global.html#stringIsJson">stringIsJson</a></li><li><a href="global.html#strToBt">strToBt</a></li><li><a href="global.html#subObjectEqual">subObjectEqual</a></li><li><a href="global.html#subtract">subtract</a></li><li><a href="global.html#throttle">throttle</a></li><li><a href="global.html#toHexColor">toHexColor</a></li><li><a href="global.html#toRGBcolor">toRGBcolor</a></li><li><a href="global.html#toStringHexColor">toStringHexColor</a></li><li><a href="global.html#transformColor">transformColor</a></li><li><a href="global.html#useMd5Policy">useMd5Policy</a></li><li><a href="global.html#useMd5Policy2">useMd5Policy2</a></li><li><a href="global.html#utils">utils</a></li><li><a href="global.html#values">values</a></li></ul>
31
31
  </nav>
32
32
 
33
33
  <div id="main">
@@ -157,6 +157,164 @@ isDebug: true
157
157
 
158
158
 
159
159
 
160
+
161
+ <h3 class="subsection-title">Methods</h3>
162
+
163
+
164
+
165
+
166
+
167
+
168
+ <h4 class="name" id="pkgInfo"><span class="type-signature"></span>pkgInfo<span class="signature">(name, version)</span><span class="type-signature"></span></h4>
169
+
170
+
171
+
172
+
173
+
174
+
175
+ <dl class="details">
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+ </dl>
209
+
210
+
211
+
212
+
213
+
214
+ <div class="description usertext">
215
+ <p>显示 pkg info 信息</p>
216
+ </div>
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+ <h5>Parameters:</h5>
229
+
230
+
231
+ <table class="params">
232
+ <thead>
233
+ <tr>
234
+
235
+ <th>Name</th>
236
+
237
+
238
+ <th>Type</th>
239
+
240
+
241
+
242
+
243
+
244
+ <th class="last">Description</th>
245
+ </tr>
246
+ </thead>
247
+
248
+ <tbody>
249
+
250
+
251
+ <tr>
252
+
253
+ <td class="name"><code>name</code></td>
254
+
255
+
256
+ <td class="type">
257
+
258
+
259
+ <span class="param-type">String</span>
260
+
261
+
262
+
263
+ </td>
264
+
265
+
266
+
267
+
268
+
269
+ <td class="description last"></td>
270
+ </tr>
271
+
272
+
273
+
274
+ <tr>
275
+
276
+ <td class="name"><code>version</code></td>
277
+
278
+
279
+ <td class="type">
280
+
281
+
282
+ <span class="param-type">String</span>
283
+
284
+
285
+
286
+ </td>
287
+
288
+
289
+
290
+
291
+
292
+ <td class="description last"></td>
293
+ </tr>
294
+
295
+
296
+ </tbody>
297
+ </table>
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
160
318
 
161
319
 
162
320
 
@@ -176,7 +334,7 @@ isDebug: true
176
334
  <br class="clear">
177
335
 
178
336
  <footer>
179
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Fri Mar 12 2021 11:22:03 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
337
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed Apr 27 2022 17:25:38 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
180
338
  </footer>
181
339
 
182
340
  <script>prettyPrint();</script>