cloudcmd 16.16.0 → 16.16.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.
Files changed (58) hide show
  1. package/ChangeLog +7 -0
  2. package/HELP.md +2 -1
  3. package/README.md +1 -1
  4. package/bin/cloudcmd.mjs +2 -2
  5. package/bin/release.mjs +1 -1
  6. package/common/base64.js +2 -2
  7. package/common/cloudfunc.js +1 -1
  8. package/common/datetime.js +1 -1
  9. package/common/util.js +4 -3
  10. package/dist/cloudcmd.common.js +3 -3
  11. package/dist/cloudcmd.common.js.map +1 -1
  12. package/dist/cloudcmd.js +1 -1
  13. package/dist/cloudcmd.js.map +1 -1
  14. package/dist/modules/config.js +1 -1
  15. package/dist/modules/config.js.map +1 -1
  16. package/dist/modules/contact.js +1 -1
  17. package/dist/modules/contact.js.map +1 -1
  18. package/dist/modules/edit.js +2 -2
  19. package/dist/modules/edit.js.map +1 -1
  20. package/dist/modules/markdown.js +1 -1
  21. package/dist/modules/markdown.js.map +1 -1
  22. package/dist/modules/menu.js +1 -1
  23. package/dist/modules/menu.js.map +1 -1
  24. package/dist/modules/operation.js +1 -1
  25. package/dist/modules/operation.js.map +1 -1
  26. package/dist/modules/terminal-run.js +1 -1
  27. package/dist/modules/terminal-run.js.map +1 -1
  28. package/dist/modules/terminal.js +1 -1
  29. package/dist/modules/terminal.js.map +1 -1
  30. package/dist/modules/upload.js +1 -1
  31. package/dist/modules/upload.js.map +1 -1
  32. package/dist/modules/user-menu.js +1 -1
  33. package/dist/modules/user-menu.js.map +1 -1
  34. package/dist/modules/view.js +1 -1
  35. package/dist/modules/view.js.map +1 -1
  36. package/dist/sw.js +1 -1
  37. package/dist-dev/cloudcmd.common.js +13 -13
  38. package/dist-dev/cloudcmd.js +7 -7
  39. package/dist-dev/modules/config.js +1 -1
  40. package/dist-dev/modules/contact.js +1 -1
  41. package/dist-dev/modules/edit.js +1 -1
  42. package/dist-dev/modules/markdown.js +1 -1
  43. package/dist-dev/modules/menu.js +1 -1
  44. package/dist-dev/modules/operation.js +2 -2
  45. package/dist-dev/modules/terminal-run.js +1 -1
  46. package/dist-dev/modules/terminal.js +1 -1
  47. package/dist-dev/modules/upload.js +1 -1
  48. package/dist-dev/modules/user-menu.js +2 -2
  49. package/dist-dev/modules/view.js +1 -1
  50. package/dist-dev/sw.js +1 -1
  51. package/package.json +7 -6
  52. package/server/cloudcmd.js +2 -2
  53. package/server/config.js +1 -1
  54. package/server/markdown/index.js +2 -2
  55. package/server/prefixer.js +3 -1
  56. package/server/rest/index.js +9 -12
  57. package/server/validate.js +2 -1
  58. package/static/user-menu.js +1 -2
package/ChangeLog CHANGED
@@ -1,3 +1,10 @@
1
+ 2023.08.07, v16.16.1
2
+
3
+ feature:
4
+ - d63169cc package: @putout/babel v1.0.5
5
+ - bb9276be package: eslint-plugin-putout v19.0.3
6
+ - 9aed5f75 package: putout v31.0.3
7
+
1
8
  2023.07.09, v16.16.0
2
9
 
3
10
  feature:
package/HELP.md CHANGED
@@ -1,4 +1,4 @@
1
- # Cloud Commander v16.16.0
1
+ # Cloud Commander v16.16.1
2
2
 
3
3
  ### [Main][MainURL] [Blog][BlogURL] [Support][SupportURL] [Demo][DemoURL]
4
4
 
@@ -1093,6 +1093,7 @@ There are a lot of ways to be involved in `Cloud Commander` development:
1093
1093
 
1094
1094
  ## Version history
1095
1095
 
1096
+ - *2023.08.07*, **[v16.16.1](//github.com/coderaiser/cloudcmd/releases/tag/v16.16.1)**
1096
1097
  - *2023.07.09*, **[v16.16.0](//github.com/coderaiser/cloudcmd/releases/tag/v16.16.0)**
1097
1098
  - *2023.05.17*, **[v16.15.0](//github.com/coderaiser/cloudcmd/releases/tag/v16.15.0)**
1098
1099
  - *2023.03.21*, **[v16.14.1](//github.com/coderaiser/cloudcmd/releases/tag/v16.14.1)**
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Cloud Commander v16.16.0 [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Codacy][CodacyIMG]][CodacyURL] [![Gitter][GitterIMGURL]][GitterURL]
1
+ # Cloud Commander v16.16.1 [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Codacy][CodacyIMG]][CodacyURL] [![Gitter][GitterIMGURL]][GitterURL]
2
2
 
3
3
  ### [Main][MainURL] [Blog][BlogURL] [Support][SupportURL] [Demo][DemoURL]
4
4
 
package/bin/cloudcmd.mjs CHANGED
@@ -24,7 +24,7 @@ const simport = createSimport(import.meta.url);
24
24
  const choose = (a, b) => {
25
25
  if (a === undefined)
26
26
  return b;
27
-
27
+
28
28
  return a;
29
29
  };
30
30
 
@@ -37,7 +37,7 @@ const DIR_SERVER = '../server/';
37
37
  const maybeRoot = (a) => {
38
38
  if (a === '.')
39
39
  return process.cwd();
40
-
40
+
41
41
  return a;
42
42
  };
43
43
 
package/bin/release.mjs CHANGED
@@ -68,6 +68,6 @@ async function cl() {
68
68
  function getVersionNew(last, match) {
69
69
  if (match)
70
70
  return minor(match, Info.version);
71
-
71
+
72
72
  return last.substr(3);
73
73
  }
package/common/base64.js CHANGED
@@ -3,7 +3,7 @@
3
3
  module.exports.btoa = (str) => {
4
4
  if (typeof btoa === 'function')
5
5
  return btoa(str);
6
-
6
+
7
7
  return Buffer
8
8
  .from(str)
9
9
  .toString('base64');
@@ -12,7 +12,7 @@ module.exports.btoa = (str) => {
12
12
  module.exports.atob = (str) => {
13
13
  if (typeof atob === 'function')
14
14
  return atob(str);
15
-
15
+
16
16
  return Buffer
17
17
  .from(str, 'base64')
18
18
  .toString('binary');
@@ -249,7 +249,7 @@ function updateField(file) {
249
249
  function getAttribute(type) {
250
250
  if (type === 'directory')
251
251
  return '';
252
-
252
+
253
253
  return 'target="_blank" ';
254
254
  }
255
255
 
@@ -15,7 +15,7 @@ module.exports = (date) => {
15
15
  const addZero = (a) => {
16
16
  if (a > 9)
17
17
  return a;
18
-
18
+
19
19
  return `0${a}`;
20
20
  };
21
21
 
package/common/util.js CHANGED
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  const exec = require('execon');
4
+ const isString = (a) => typeof a === 'string';
4
5
 
5
6
  module.exports.escapeRegExp = (str) => {
6
- const isStr = typeof str === 'string';
7
+ const isStr = isString(str);
7
8
 
8
9
  if (isStr)
9
10
  str = str.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
@@ -33,7 +34,7 @@ module.exports.exec = exec;
33
34
  * @return ext
34
35
  */
35
36
  module.exports.getExt = (name) => {
36
- const isStr = typeof name === 'string';
37
+ const isStr = isString(name);
37
38
 
38
39
  if (!isStr)
39
40
  return '';
@@ -58,7 +59,7 @@ module.exports.findObjByNameInArr = (array, name) => {
58
59
  if (!Array.isArray(array))
59
60
  throw Error('array should be array!');
60
61
 
61
- if (typeof name !== 'string')
62
+ if (!isString(name))
62
63
  throw Error('name should be string!');
63
64
 
64
65
  array.some((item) => {