cloudcmd 16.16.0 → 16.16.2

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 (77) hide show
  1. package/ChangeLog +12 -0
  2. package/HELP.md +3 -1
  3. package/README.md +3 -5
  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/cloud.js +1 -1
  15. package/dist/modules/cloud.js.map +1 -1
  16. package/dist/modules/command-line.js +1 -1
  17. package/dist/modules/command-line.js.map +1 -1
  18. package/dist/modules/config.js +1 -1
  19. package/dist/modules/config.js.map +1 -1
  20. package/dist/modules/contact.js +1 -1
  21. package/dist/modules/contact.js.map +1 -1
  22. package/dist/modules/edit-file-vim.js +1 -1
  23. package/dist/modules/edit-file-vim.js.map +1 -1
  24. package/dist/modules/edit-file.js +1 -1
  25. package/dist/modules/edit-file.js.map +1 -1
  26. package/dist/modules/edit-names-vim.js +1 -1
  27. package/dist/modules/edit-names-vim.js.map +1 -1
  28. package/dist/modules/edit-names.js +1 -1
  29. package/dist/modules/edit-names.js.map +1 -1
  30. package/dist/modules/edit.js +2 -2
  31. package/dist/modules/edit.js.map +1 -1
  32. package/dist/modules/help.js +1 -1
  33. package/dist/modules/help.js.map +1 -1
  34. package/dist/modules/konsole.js +1 -1
  35. package/dist/modules/konsole.js.map +1 -1
  36. package/dist/modules/markdown.js +1 -1
  37. package/dist/modules/markdown.js.map +1 -1
  38. package/dist/modules/menu.js +1 -1
  39. package/dist/modules/menu.js.map +1 -1
  40. package/dist/modules/operation.js +1 -1
  41. package/dist/modules/operation.js.map +1 -1
  42. package/dist/modules/polyfill.js +1 -1
  43. package/dist/modules/polyfill.js.map +1 -1
  44. package/dist/modules/terminal-run.js +1 -1
  45. package/dist/modules/terminal-run.js.map +1 -1
  46. package/dist/modules/terminal.js +1 -1
  47. package/dist/modules/terminal.js.map +1 -1
  48. package/dist/modules/upload.js +1 -1
  49. package/dist/modules/upload.js.map +1 -1
  50. package/dist/modules/user-menu.js +1 -1
  51. package/dist/modules/user-menu.js.map +1 -1
  52. package/dist/modules/view.js +1 -1
  53. package/dist/modules/view.js.map +1 -1
  54. package/dist/sw.js +1 -1
  55. package/dist/sw.js.map +1 -1
  56. package/dist-dev/cloudcmd.common.js +63 -15
  57. package/dist-dev/cloudcmd.js +7 -7
  58. package/dist-dev/modules/config.js +1 -1
  59. package/dist-dev/modules/contact.js +1 -1
  60. package/dist-dev/modules/edit.js +1 -1
  61. package/dist-dev/modules/markdown.js +1 -1
  62. package/dist-dev/modules/menu.js +1 -1
  63. package/dist-dev/modules/operation.js +2 -2
  64. package/dist-dev/modules/terminal-run.js +1 -1
  65. package/dist-dev/modules/terminal.js +1 -1
  66. package/dist-dev/modules/upload.js +1 -1
  67. package/dist-dev/modules/user-menu.js +2 -2
  68. package/dist-dev/modules/view.js +1 -1
  69. package/dist-dev/sw.js +1 -1
  70. package/package.json +8 -7
  71. package/server/cloudcmd.js +2 -2
  72. package/server/config.js +1 -1
  73. package/server/markdown/index.js +2 -2
  74. package/server/prefixer.js +3 -1
  75. package/server/rest/index.js +9 -12
  76. package/server/validate.js +2 -1
  77. package/static/user-menu.js +1 -2
package/ChangeLog CHANGED
@@ -1,3 +1,15 @@
1
+ 2023.08.09, v16.16.2
2
+
3
+ feature:
4
+ - e353fff7 package: redzip v3.0.0
5
+
6
+ 2023.08.07, v16.16.1
7
+
8
+ feature:
9
+ - d63169cc package: @putout/babel v1.0.5
10
+ - bb9276be package: eslint-plugin-putout v19.0.3
11
+ - 9aed5f75 package: putout v31.0.3
12
+
1
13
  2023.07.09, v16.16.0
2
14
 
3
15
  feature:
package/HELP.md CHANGED
@@ -1,4 +1,4 @@
1
- # Cloud Commander v16.16.0
1
+ # Cloud Commander v16.16.2
2
2
 
3
3
  ### [Main][MainURL] [Blog][BlogURL] [Support][SupportURL] [Demo][DemoURL]
4
4
 
@@ -1093,6 +1093,8 @@ There are a lot of ways to be involved in `Cloud Commander` development:
1093
1093
 
1094
1094
  ## Version history
1095
1095
 
1096
+ - *2023.08.09*, **[v16.16.2](//github.com/coderaiser/cloudcmd/releases/tag/v16.16.2)**
1097
+ - *2023.08.07*, **[v16.16.1](//github.com/coderaiser/cloudcmd/releases/tag/v16.16.1)**
1096
1098
  - *2023.07.09*, **[v16.16.0](//github.com/coderaiser/cloudcmd/releases/tag/v16.16.0)**
1097
1099
  - *2023.05.17*, **[v16.15.0](//github.com/coderaiser/cloudcmd/releases/tag/v16.15.0)**
1098
1100
  - *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.2 [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Codacy][CodacyIMG]][CodacyURL] [![Gitter][GitterIMGURL]][GitterURL]
2
2
 
3
3
  ### [Main][MainURL] [Blog][BlogURL] [Support][SupportURL] [Demo][DemoURL]
4
4
 
@@ -7,10 +7,8 @@
7
7
  [SupportURL]: https://patreon.com/coderaiser "Patreon"
8
8
  [DemoURL]: https://cloudcmd.onrender.com/
9
9
  [NPM_INFO_IMG]: https://nodei.co/npm/cloudcmd.png
10
- [BuildStatusURL]: https://travis-ci.org/coderaiser/cloudcmd "Build Status"
11
- [BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/cloudcmd.svg?style=flat-squere&longCache=true
12
- [BuildAppveyorURL]: https://ci.appveyor.com/project/coderaiser/cloudcmd
13
- [BuildAppveyorIMGURL]: https://ci.appveyor.com/api/projects/status/tse6sc8dxrqxqehi?svg=true
10
+ [BuildStatusURL]: https://github.com/coderaiser/cloudcmd/actions/workflows/nodejs.yml "Build Status"
11
+ [BuildStatusIMGURL]: https://github.com/coderaiser/cloudcmd/actions/workflows/nodejs.yml/badge.svg
14
12
  [CodacyURL]: https://www.codacy.com/app/coderaiser/cloudcmd
15
13
  [CodacyIMG]: https://api.codacy.com/project/badge/Grade/ddda78be780549ce8754f8d47a8c0e36
16
14
  [GitterURL]: https://gitter.im/cloudcmd/hello
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) => {