cloudcmd 19.1.21 → 19.2.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.
- package/ChangeLog +15 -0
- package/HELP.md +2 -1
- package/README.md +1 -1
- package/dist/cloudcmd.common.js +2 -2
- package/dist/cloudcmd.common.js.map +1 -1
- package/dist/modules/edit-file-vim.js +1 -1
- package/dist/modules/edit-file-vim.js.map +1 -1
- package/dist/modules/edit-file.js +1 -1
- package/dist/modules/edit-file.js.map +1 -1
- package/dist/modules/edit-names-vim.js +1 -1
- package/dist/modules/edit-names-vim.js.map +1 -1
- package/dist/modules/edit-names.js +1 -1
- package/dist/modules/edit-names.js.map +1 -1
- package/dist/modules/help.js +1 -1
- package/dist/modules/help.js.map +1 -1
- package/dist/modules/markdown.js +1 -1
- package/dist/modules/markdown.js.map +1 -1
- package/dist/modules/polyfill.js +1 -1
- package/dist/modules/polyfill.js.map +1 -1
- package/dist/modules/terminal.js +1 -1
- package/dist/modules/terminal.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist-dev/cloudcmd.common.js +77 -87
- package/dist-dev/modules/edit-file-vim.js +1 -1
- package/dist-dev/modules/edit-file.js +1 -1
- package/dist-dev/modules/edit-names-vim.js +1 -1
- package/dist-dev/modules/edit-names.js +1 -1
- package/dist-dev/modules/help.js +1 -1
- package/dist-dev/modules/markdown.js +1 -1
- package/dist-dev/modules/polyfill.js +1 -1
- package/dist-dev/modules/terminal.js +1 -1
- package/dist-dev/sw.js +1 -1
- package/package.json +3 -2
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
/******/ // startup
|
|
171
171
|
/******/ // Load entry module and return exports
|
|
172
172
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
173
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/edit-file-vim.
|
|
173
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/edit-file-vim.mjs")))
|
|
174
174
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
175
175
|
/******/
|
|
176
176
|
/******/ })()
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
/******/ // startup
|
|
171
171
|
/******/ // Load entry module and return exports
|
|
172
172
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
173
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/edit-file.
|
|
173
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/edit-file.mjs")))
|
|
174
174
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
175
175
|
/******/
|
|
176
176
|
/******/ })()
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
/******/ // startup
|
|
171
171
|
/******/ // Load entry module and return exports
|
|
172
172
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
173
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/edit-names-vim.
|
|
173
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/edit-names-vim.mjs")))
|
|
174
174
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
175
175
|
/******/
|
|
176
176
|
/******/ })()
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
/******/ // startup
|
|
171
171
|
/******/ // Load entry module and return exports
|
|
172
172
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
173
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/edit-names.
|
|
173
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/edit-names.mjs")))
|
|
174
174
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
175
175
|
/******/
|
|
176
176
|
/******/ })()
|
package/dist-dev/modules/help.js
CHANGED
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
/******/ // startup
|
|
171
171
|
/******/ // Load entry module and return exports
|
|
172
172
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
173
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/help.
|
|
173
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/help.mjs")))
|
|
174
174
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
175
175
|
/******/
|
|
176
176
|
/******/ })()
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
/******/ // startup
|
|
171
171
|
/******/ // Load entry module and return exports
|
|
172
172
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
173
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/markdown.
|
|
173
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/markdown.mjs")))
|
|
174
174
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
175
175
|
/******/
|
|
176
176
|
/******/ })()
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
/******/ // startup
|
|
171
171
|
/******/ // Load entry module and return exports
|
|
172
172
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
173
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/polyfill.
|
|
173
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/polyfill.mjs")))
|
|
174
174
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
175
175
|
/******/
|
|
176
176
|
/******/ })()
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
/******/ // startup
|
|
171
171
|
/******/ // Load entry module and return exports
|
|
172
172
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
173
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/terminal.
|
|
173
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/terminal.mjs")))
|
|
174
174
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
175
175
|
/******/
|
|
176
176
|
/******/ })()
|
package/dist-dev/sw.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
17
17
|
|
|
18
18
|
"use strict";
|
|
19
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var node_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:process */ \"./node_modules/process/browser.js\");\n/* harmony import */ var try_to_catch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.js\");\n/* harmony import */ var currify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! currify */ \"./node_modules/currify/lib/currify.js\");\n\n\n\nconst isDev = \"development\" === 'development';\nconst isGet = a => a.method === 'GET';\nconst isBasic = a => a.type === 'basic';\nconst wait = currify__WEBPACK_IMPORTED_MODULE_2__((f, e) => e.waitUntil(f()));\nconst respondWith = currify__WEBPACK_IMPORTED_MODULE_2__((f, e) => {\n const {\n request\n } = e;\n const {\n url\n } = request;\n const pathname = getPathName(url);\n if (url.endsWith('/') || /\\^\\/fs/.test(pathname)) return;\n if (!isGet(request)) return;\n if (!isBasic(request)) return;\n if (pathname.startsWith('/api')) return;\n if (/^socket.io/.test(pathname)) return;\n e.respondWith(f(e));\n});\nconst getPathName = url => new URL(url).pathname;\nconst date = \"
|
|
19
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var node_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:process */ \"./node_modules/process/browser.js\");\n/* harmony import */ var try_to_catch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.js\");\n/* harmony import */ var currify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! currify */ \"./node_modules/currify/lib/currify.js\");\n\n\n\nconst isDev = \"development\" === 'development';\nconst isGet = a => a.method === 'GET';\nconst isBasic = a => a.type === 'basic';\nconst wait = currify__WEBPACK_IMPORTED_MODULE_2__((f, e) => e.waitUntil(f()));\nconst respondWith = currify__WEBPACK_IMPORTED_MODULE_2__((f, e) => {\n const {\n request\n } = e;\n const {\n url\n } = request;\n const pathname = getPathName(url);\n if (url.endsWith('/') || /\\^\\/fs/.test(pathname)) return;\n if (!isGet(request)) return;\n if (!isBasic(request)) return;\n if (pathname.startsWith('/api')) return;\n if (/^socket.io/.test(pathname)) return;\n e.respondWith(f(e));\n});\nconst getPathName = url => new URL(url).pathname;\nconst date = \"Tue Feb 03 2026 14:06:36 GMT+0200 (Eastern European Standard Time)\";\nconst NAME = `cloudcmd: ${date}`;\nconst createRequest = a => new Request(a, {\n credentials: 'same-origin'\n});\nconst getRequest = (a, request) => {\n if (a !== '/') return request;\n return createRequest('/');\n};\nglobalThis.addEventListener('install', wait(onInstall));\nglobalThis.addEventListener('fetch', respondWith(onFetch));\nglobalThis.addEventListener('activate', wait(onActivate));\nasync function onActivate() {\n console.info(`cloudcmd: sw: activate: ${NAME}`);\n await globalThis.clients.claim();\n const keys = await caches.keys();\n const deleteCache = caches.delete.bind(caches);\n await Promise.all(keys.map(deleteCache));\n}\nasync function onInstall() {\n console.info(`cloudcmd: sw: install: ${NAME}`);\n await globalThis.skipWaiting();\n}\nasync function onFetch(event) {\n const {\n request\n } = event;\n const {\n url\n } = request;\n const pathname = getPathName(url);\n const newRequest = getRequest(pathname, event.request);\n const cache = await caches.open(NAME);\n const response = await cache.match(request);\n if (!isDev && response) return response;\n const [e, resp] = await (0,try_to_catch__WEBPACK_IMPORTED_MODULE_1__.tryToCatch)(fetch, newRequest, {\n credentials: 'same-origin'\n });\n if (e) return new Response(e.message);\n await addToCache(request, resp.clone());\n return resp;\n}\nasync function addToCache(request, response) {\n const cache = await caches.open(NAME);\n return cache.put(request, response);\n}\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/sw/sw.mjs\n}");
|
|
20
20
|
|
|
21
21
|
/***/ },
|
|
22
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcmd",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.2.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",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"@cloudcmd/stub": "^5.0.0",
|
|
161
161
|
"@iocmd/wait": "^2.1.0",
|
|
162
162
|
"@putout/eslint-flat": "^4.0.0",
|
|
163
|
-
"@putout/plugin-cloudcmd": "^
|
|
163
|
+
"@putout/plugin-cloudcmd": "^5.2.0",
|
|
164
164
|
"@types/node-fetch": "^2.6.11",
|
|
165
165
|
"auto-globals": "^4.0.0",
|
|
166
166
|
"babel-loader": "^10.0.0",
|
|
@@ -221,6 +221,7 @@
|
|
|
221
221
|
},
|
|
222
222
|
"imports": {
|
|
223
223
|
"#css/": "./css/",
|
|
224
|
+
"#dom": "./client/dom/index.mjs",
|
|
224
225
|
"#dom/events": "./client/dom/events/index.mjs",
|
|
225
226
|
"#dom/load": "./client/dom/load.mjs",
|
|
226
227
|
"#dom/dialog": "./client/dom/dialog.mjs",
|