cloudcmd 19.0.16 → 19.1.0

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 (113) hide show
  1. package/ChangeLog +14 -0
  2. package/HELP.md +3 -1
  3. package/README.md +1 -1
  4. package/bin/cloudcmd.mjs +1 -1
  5. package/common/try-to-promise-all.js +1 -1
  6. package/dist/cloudcmd.common.js +2 -2
  7. package/dist/cloudcmd.common.js.map +1 -1
  8. package/dist/cloudcmd.js +1 -1
  9. package/dist/cloudcmd.js.map +1 -1
  10. package/dist/columns/name-size-date.js +0 -7
  11. package/dist/columns/name-size.js +0 -7
  12. package/dist/config.js +0 -7
  13. package/dist/help.js +0 -7
  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 +1 -1
  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/nojs.js +0 -7
  55. package/dist/sw.js +1 -1
  56. package/dist/sw.js.map +1 -1
  57. package/dist/terminal.js +0 -7
  58. package/dist/themes/dark.js +0 -7
  59. package/dist/themes/light.js +0 -7
  60. package/dist/user-menu.js +0 -7
  61. package/dist/view.js +0 -7
  62. package/dist-dev/cloudcmd.common.js +463 -430
  63. package/dist-dev/cloudcmd.js +12 -6
  64. package/dist-dev/columns/name-size-date.js +3 -3
  65. package/dist-dev/columns/name-size.js +3 -3
  66. package/dist-dev/config.js +3 -3
  67. package/dist-dev/help.js +3 -3
  68. package/dist-dev/modules/cloud.js +6 -0
  69. package/dist-dev/modules/command-line.js +6 -0
  70. package/dist-dev/modules/config.js +6 -0
  71. package/dist-dev/modules/contact.js +6 -0
  72. package/dist-dev/modules/edit-file-vim.js +6 -0
  73. package/dist-dev/modules/edit-file.js +6 -0
  74. package/dist-dev/modules/edit-names-vim.js +6 -0
  75. package/dist-dev/modules/edit-names.js +6 -0
  76. package/dist-dev/modules/edit.js +6 -0
  77. package/dist-dev/modules/help.js +6 -0
  78. package/dist-dev/modules/konsole.js +6 -0
  79. package/dist-dev/modules/markdown.js +6 -0
  80. package/dist-dev/modules/menu.js +6 -0
  81. package/dist-dev/modules/operation.js +6 -0
  82. package/dist-dev/modules/polyfill.js +6 -0
  83. package/dist-dev/modules/terminal-run.js +6 -0
  84. package/dist-dev/modules/terminal.js +6 -0
  85. package/dist-dev/modules/upload.js +6 -0
  86. package/dist-dev/modules/user-menu.js +6 -0
  87. package/dist-dev/modules/view.js +6 -0
  88. package/dist-dev/nojs.js +3 -3
  89. package/dist-dev/sw.js +60 -14
  90. package/dist-dev/terminal.js +3 -3
  91. package/dist-dev/themes/dark.js +3 -3
  92. package/dist-dev/themes/light.js +3 -3
  93. package/dist-dev/user-menu.js +3 -3
  94. package/dist-dev/view.js +3 -3
  95. package/package.json +5 -5
  96. package/server/columns.mjs +3 -2
  97. package/server/config.js +2 -2
  98. package/server/route.mjs +1 -1
  99. package/server/server.mjs +1 -1
  100. package/server/terminal.js +1 -1
  101. package/server/theme.mjs +2 -3
  102. package/server/user-menu.mjs +1 -1
  103. package/server/validate.mjs +1 -1
  104. package/dist/columns/name-size-date.js.map +0 -1
  105. package/dist/columns/name-size.js.map +0 -1
  106. package/dist/config.js.map +0 -1
  107. package/dist/help.js.map +0 -1
  108. package/dist/nojs.js.map +0 -1
  109. package/dist/terminal.js.map +0 -1
  110. package/dist/themes/dark.js.map +0 -1
  111. package/dist/themes/light.js.map +0 -1
  112. package/dist/user-menu.js.map +0 -1
  113. package/dist/view.js.map +0 -1
@@ -10,15 +10,15 @@
10
10
  /******/ "use strict";
11
11
  /******/ var __webpack_modules__ = ({
12
12
 
13
- /***/ "./css/themes/light.css":
13
+ /***/ "./css/themes/light.css"
14
14
  /*!******************************!*\
15
15
  !*** ./css/themes/light.css ***!
16
16
  \******************************/
17
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
18
18
 
19
19
  eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=file://cloudcmd/css/themes/light.css\n}");
20
20
 
21
- /***/ })
21
+ /***/ }
22
22
 
23
23
  /******/ });
24
24
  /************************************************************************/
@@ -10,15 +10,15 @@
10
10
  /******/ "use strict";
11
11
  /******/ var __webpack_modules__ = ({
12
12
 
13
- /***/ "./css/user-menu.css":
13
+ /***/ "./css/user-menu.css"
14
14
  /*!***************************!*\
15
15
  !*** ./css/user-menu.css ***!
16
16
  \***************************/
17
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
18
18
 
19
19
  eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=file://cloudcmd/css/user-menu.css\n}");
20
20
 
21
- /***/ })
21
+ /***/ }
22
22
 
23
23
  /******/ });
24
24
  /************************************************************************/
package/dist-dev/view.js CHANGED
@@ -10,15 +10,15 @@
10
10
  /******/ "use strict";
11
11
  /******/ var __webpack_modules__ = ({
12
12
 
13
- /***/ "./css/view.css":
13
+ /***/ "./css/view.css"
14
14
  /*!**********************!*\
15
15
  !*** ./css/view.css ***!
16
16
  \**********************/
17
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
18
18
 
19
19
  eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=file://cloudcmd/css/view.css\n}");
20
20
 
21
- /***/ })
21
+ /***/ }
22
22
 
23
23
  /******/ });
24
24
  /************************************************************************/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcmd",
3
- "version": "19.0.16",
3
+ "version": "19.1.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "File manager for the web with console and editor",
@@ -140,8 +140,8 @@
140
140
  "socket.io-client": "^4.0.1",
141
141
  "squad": "^3.0.0",
142
142
  "table": "^6.0.1",
143
- "try-catch": "^3.0.0",
144
- "try-to-catch": "^3.0.0",
143
+ "try-catch": "^4.0.4",
144
+ "try-to-catch": "^4.0.0",
145
145
  "tryrequire": "^3.0.0",
146
146
  "win32": "^7.0.0",
147
147
  "wraptile": "^3.0.0",
@@ -176,7 +176,7 @@
176
176
  "eslint-plugin-n": "^17.0.0-4",
177
177
  "eslint-plugin-putout": "^29.0.2",
178
178
  "globals": "^16.3.0",
179
- "gritty": "^8.0.0",
179
+ "gritty": "^9.0.0",
180
180
  "gunzip-maybe": "^1.3.1",
181
181
  "html-webpack-plugin": "^5.6.3",
182
182
  "inherits": "^2.0.3",
@@ -199,7 +199,7 @@
199
199
  "postcss": "^8.5.3",
200
200
  "process": "^0.11.10",
201
201
  "readjson": "^2.0.1",
202
- "redlint": "^4.1.1",
202
+ "redlint": "^5.0.0",
203
203
  "request": "^2.76.0",
204
204
  "rimraf": "^6.0.1",
205
205
  "scroll-into-view-if-needed": "^3.0.4",
@@ -3,10 +3,11 @@ import {fileURLToPath} from 'node:url';
3
3
  import process from 'node:process';
4
4
  import fs from 'node:fs';
5
5
  import fullstore from 'fullstore';
6
- import nanomemoizeDefault from 'nano-memoize';
6
+ import * as nanomemoizeDefault from 'nano-memoize';
7
7
  import readFilesSync from '@cloudcmd/read-files-sync';
8
8
 
9
- const {nanomemoize} = nanomemoizeDefault;
9
+ const nanomemoize = nanomemoizeDefault.default.nanomemoize || nanomemoizeDefault.default;
10
+
10
11
  const __filename = fileURLToPath(import.meta.url);
11
12
  const __dirname = dirname(__filename);
12
13
  const isMap = (a) => /\.(map|js)$/.test(a);
package/server/config.js CHANGED
@@ -11,13 +11,13 @@ const {homedir} = require('node:os');
11
11
  const currify = require('currify');
12
12
 
13
13
  const wraptile = require('wraptile');
14
- const tryToCatch = require('try-to-catch');
14
+ const {tryToCatch} = require('try-to-catch');
15
15
  const pullout = require('pullout');
16
16
  const ponse = require('ponse');
17
17
  const jonny = require('jonny');
18
18
  const jju = require('jju');
19
19
  const writejson = require('writejson');
20
- const tryCatch = require('try-catch');
20
+ const {tryCatch} = require('try-catch');
21
21
  const criton = require('criton');
22
22
  const exit = require(`${DIR_SERVER}exit`);
23
23
 
package/server/route.mjs CHANGED
@@ -6,7 +6,7 @@ import rendy from 'rendy';
6
6
  import format from 'format-io';
7
7
  import currify from 'currify';
8
8
  import wraptile from 'wraptile';
9
- import tryToCatch from 'try-to-catch';
9
+ import {tryToCatch} from 'try-to-catch';
10
10
  import once from 'once';
11
11
  import pipe from 'pipe-io';
12
12
  import {contentType} from 'mime-types';
package/server/server.mjs CHANGED
@@ -3,7 +3,7 @@ import {promisify} from 'node:util';
3
3
  import process from 'node:process';
4
4
  import currify from 'currify';
5
5
  import squad from 'squad';
6
- import tryToCatch from 'try-to-catch';
6
+ import {tryToCatch} from 'try-to-catch';
7
7
  import opn from 'open';
8
8
  import express from 'express';
9
9
  import {Server} from 'socket.io';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const tryCatch = require('try-catch');
3
+ const {tryCatch} = require('try-catch');
4
4
 
5
5
  const noop = (req, res, next) => {
6
6
  next && next();
package/server/theme.mjs CHANGED
@@ -3,9 +3,10 @@ import {fileURLToPath} from 'node:url';
3
3
  import process from 'node:process';
4
4
  import fs from 'node:fs';
5
5
  import fullstore from 'fullstore';
6
- import nanomemoizeDefault from 'nano-memoize';
6
+ import * as nanomemoizeDefault from 'nano-memoize';
7
7
  import readFilesSync from '@cloudcmd/read-files-sync';
8
8
 
9
+ const nanomemoize = nanomemoizeDefault.default.nanomemoize || nanomemoizeDefault.default;
9
10
  const __filename = fileURLToPath(import.meta.url);
10
11
  const __dirname = dirname(__filename);
11
12
  const isMap = (a) => /\.(map|js)$/.test(a);
@@ -20,8 +21,6 @@ export const getThemes = ({isDev = _isDev()} = {}) => {
20
21
  return readFilesSyncMemo(isDev);
21
22
  };
22
23
 
23
- const {nanomemoize} = nanomemoizeDefault;
24
-
25
24
  const readFilesSyncMemo = nanomemoize((isDev) => {
26
25
  const dist = getDist(isDev);
27
26
  const themesDir = path.join(__dirname, '..', dist, 'themes');
@@ -2,7 +2,7 @@ import {homedir} from 'node:os';
2
2
  import {readFile as _readFile} from 'node:fs/promises';
3
3
  import {join} from 'node:path';
4
4
  import montag from 'montag';
5
- import tryToCatch from 'try-to-catch';
5
+ import {tryToCatch} from 'try-to-catch';
6
6
  import currify from 'currify';
7
7
  import {putout, codeframe} from 'putout';
8
8
 
@@ -1,5 +1,5 @@
1
1
  import {statSync as _statSync} from 'node:fs';
2
- import tryCatch from 'try-catch';
2
+ import {tryCatch} from 'try-catch';
3
3
  import _exit from './exit.js';
4
4
  import {getColumns as _getColumns} from './columns.mjs';
5
5
  import {getThemes as _getThemes} from './theme.mjs';
@@ -1 +0,0 @@
1
- {"version":3,"file":"columns/name-size-date.js","mappings":";;AAAA","sources":["file://cloudcmd/css/columns/name-size-date.css"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"ignoreList":[],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"columns/name-size.js","mappings":";;AAAA","sources":["file://cloudcmd/css/columns/name-size.css"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"ignoreList":[],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","mappings":";;AAAA","sources":["file://cloudcmd/css/config.css"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"ignoreList":[],"sourceRoot":""}
package/dist/help.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"help.js","mappings":";;AAAA","sources":["file://cloudcmd/css/help.css"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"ignoreList":[],"sourceRoot":""}
package/dist/nojs.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"nojs.js","mappings":";;AAAA","sources":["file://cloudcmd/css/nojs.css"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"ignoreList":[],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"terminal.js","mappings":";;AAAA","sources":["file://cloudcmd/css/terminal.css"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"ignoreList":[],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"themes/dark.js","mappings":";;AAAA","sources":["file://cloudcmd/css/themes/dark.css"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"ignoreList":[],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"themes/light.js","mappings":";;AAAA","sources":["file://cloudcmd/css/themes/light.css"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"ignoreList":[],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-menu.js","mappings":";;AAAA","sources":["file://cloudcmd/css/user-menu.css"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"ignoreList":[],"sourceRoot":""}
package/dist/view.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"view.js","mappings":";;AAAA","sources":["file://cloudcmd/css/view.css"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"ignoreList":[],"sourceRoot":""}