amos-tool 1.6.9 → 1.6.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.
package/docs/Logger.html CHANGED
@@ -490,7 +490,7 @@ isDebug: true
490
490
  <br class="clear">
491
491
 
492
492
  <footer>
493
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Mon May 06 2024 18:31:26 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
493
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed May 15 2024 18:53:54 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
494
494
  </footer>
495
495
 
496
496
  <script>prettyPrint();</script>
package/docs/global.html CHANGED
@@ -16866,7 +16866,7 @@ schedule <code>callback</code> to execute after <code>delay</code> ms.</p></td>
16866
16866
  <br class="clear">
16867
16867
 
16868
16868
  <footer>
16869
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Mon May 06 2024 18:31:26 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
16869
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed May 15 2024 18:53:54 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
16870
16870
  </footer>
16871
16871
 
16872
16872
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -793,7 +793,7 @@ convert2BMP(canvas, width, height)</p>
793
793
  <br class="clear">
794
794
 
795
795
  <footer>
796
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Mon May 06 2024 18:31:26 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
796
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed May 15 2024 18:53:54 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
797
797
  </footer>
798
798
 
799
799
  <script>prettyPrint();</script>
package/lib/random.js CHANGED
@@ -1,16 +1,29 @@
1
1
  "use strict";
2
2
 
3
- function randomInt(n, r) {
4
- return null == r && (r = n, n = 0), n + Math.floor(Math.random() * (r - n + 1));
3
+ function randomInt(r, n) {
4
+ return null == n && (n = r, r = 0), r + Math.floor(Math.random() * (n - r + 1));
5
5
  }
6
6
 
7
- function random(n) {
8
- n || (n = 6);
9
- for (var r = "", o = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz", t = o.length, a = 0; a < n; a++) r += o.charAt(randomInt(0, t - 1));
10
- return r;
7
+ function random(r) {
8
+ r || (r = 6);
9
+ for (var n = "", o = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz", t = o.length, a = 0; a < r; a++) n += o.charAt(randomInt(0, t - 1));
10
+ return n;
11
+ }
12
+
13
+ function randomOrderNumber(r, n) {
14
+ if (!Array.from) {
15
+ for (var o = [], t = r; t < n + 1; t++) o.push(t);
16
+ return o;
17
+ }
18
+ return Array.from({
19
+ length: n - r + 1
20
+ }, (function(n, o) {
21
+ return r + o;
22
+ }));
11
23
  }
12
24
 
13
25
  module.exports = {
14
26
  random: random,
15
- randomInt: randomInt
27
+ randomInt: randomInt,
28
+ randomOrderNumber: randomOrderNumber
16
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amos-tool",
3
- "version": "1.6.9",
3
+ "version": "1.6.10",
4
4
  "description": "amos ui tool",
5
5
  "main": "index.js",
6
6
  "directories": {