cloudcmd 19.1.0 → 19.1.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.
- package/ChangeLog +20 -0
- package/HELP.md +3 -1
- package/README.md +1 -1
- package/bin/cloudcmd.mjs +14 -14
- package/dist/cloudcmd.common.js +2 -2
- package/dist/cloudcmd.common.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist-dev/cloudcmd.common.js +54 -22
- package/dist-dev/sw.js +1 -1
- package/package.json +6 -6
- package/server/cloudcmd.mjs +1 -1
- package/server/columns.mjs +1 -1
- package/server/distribute/import.mjs +2 -2
- package/server/env.js +1 -1
- package/server/theme.mjs +1 -1
package/dist-dev/sw.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
17
17
|
|
|
18
18
|
"use strict";
|
|
19
|
-
eval("{\n\nconst process = __webpack_require__(/*! node:process */ \"./node_modules/process/browser.js\");\nconst {\n tryToCatch\n} = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.cjs\");\nconst currify = __webpack_require__(/*! currify */ \"./node_modules/currify/lib/currify.js\");\nconst isDev = process.env.NODE_ENV === 'development';\nconst isGet = a => a.method === 'GET';\nconst isBasic = a => a.type === 'basic';\nconst wait = currify((f, e) => e.waitUntil(f()));\nconst respondWith = currify((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 = \"Wed
|
|
19
|
+
eval("{\n\nconst process = __webpack_require__(/*! node:process */ \"./node_modules/process/browser.js\");\nconst {\n tryToCatch\n} = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.cjs\");\nconst currify = __webpack_require__(/*! currify */ \"./node_modules/currify/lib/currify.js\");\nconst isDev = process.env.NODE_ENV === 'development';\nconst isGet = a => a.method === 'GET';\nconst isBasic = a => a.type === 'basic';\nconst wait = currify((f, e) => e.waitUntil(f()));\nconst respondWith = currify((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 = \"Wed Jan 14 2026 14:38:37 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};\nself.addEventListener('install', wait(onInstall));\nself.addEventListener('fetch', respondWith(onFetch));\nself.addEventListener('activate', wait(onActivate));\nasync function onActivate() {\n console.info(`cloudcmd: sw: activate: ${NAME}`);\n await self.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 self.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 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/client/sw/sw.js\n}");
|
|
20
20
|
|
|
21
21
|
/***/ },
|
|
22
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcmd",
|
|
3
|
-
"version": "19.1.
|
|
3
|
+
"version": "19.1.2",
|
|
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",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"find-up": "^8.0.0",
|
|
109
109
|
"for-each-key": "^2.0.0",
|
|
110
110
|
"format-io": "^2.0.0",
|
|
111
|
-
"fullstore": "^
|
|
111
|
+
"fullstore": "^4.0.0",
|
|
112
112
|
"http-auth": "^4.2.1",
|
|
113
113
|
"inly": "^5.0.0",
|
|
114
114
|
"jaguar": "^6.0.0",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"@cloudcmd/create-element": "^2.0.0",
|
|
157
157
|
"@cloudcmd/modal": "^3.0.0",
|
|
158
158
|
"@cloudcmd/olark": "^3.0.2",
|
|
159
|
-
"@cloudcmd/stub": "^
|
|
159
|
+
"@cloudcmd/stub": "^5.0.0",
|
|
160
160
|
"@iocmd/wait": "^2.1.0",
|
|
161
161
|
"@putout/eslint-flat": "^3.0.1",
|
|
162
162
|
"@putout/plugin-cloudcmd": "^4.0.0",
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"eslint": "^9.23.0",
|
|
176
176
|
"eslint-plugin-n": "^17.0.0-4",
|
|
177
177
|
"eslint-plugin-putout": "^29.0.2",
|
|
178
|
-
"globals": "^
|
|
178
|
+
"globals": "^17.0.0",
|
|
179
179
|
"gritty": "^9.0.0",
|
|
180
180
|
"gunzip-maybe": "^1.3.1",
|
|
181
181
|
"html-webpack-plugin": "^5.6.3",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"just-pascal-case": "^3.2.0",
|
|
185
185
|
"limier": "^3.0.0",
|
|
186
186
|
"load.js": "^3.0.0",
|
|
187
|
-
"madrun": "^
|
|
187
|
+
"madrun": "^12.1.0",
|
|
188
188
|
"memfs": "^4.2.0",
|
|
189
189
|
"mini-css-extract-plugin": "^2.9.2",
|
|
190
190
|
"minor": "^1.2.2",
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"smalltalk": "^4.0.0",
|
|
208
208
|
"style-loader": "^4.0.0",
|
|
209
209
|
"supermenu": "^4.0.1",
|
|
210
|
-
"supertape": "^
|
|
210
|
+
"supertape": "^12.0.0",
|
|
211
211
|
"tar-stream": "^3.0.0",
|
|
212
212
|
"unionfs": "^4.0.0",
|
|
213
213
|
"url-loader": "^4.0.0",
|
package/server/cloudcmd.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import path, {dirname, join} from 'node:path';
|
|
|
2
2
|
import {fileURLToPath} from 'node:url';
|
|
3
3
|
import process from 'node:process';
|
|
4
4
|
import fs from 'node:fs';
|
|
5
|
-
import fullstore from 'fullstore';
|
|
5
|
+
import {fullstore} from 'fullstore';
|
|
6
6
|
import currify from 'currify';
|
|
7
7
|
import apart from 'apart';
|
|
8
8
|
import ponse from 'ponse';
|
package/server/columns.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import path, {dirname} from 'node:path';
|
|
|
2
2
|
import {fileURLToPath} from 'node:url';
|
|
3
3
|
import process from 'node:process';
|
|
4
4
|
import fs from 'node:fs';
|
|
5
|
-
import fullstore from 'fullstore';
|
|
5
|
+
import {fullstore} from 'fullstore';
|
|
6
6
|
import * as nanomemoizeDefault from 'nano-memoize';
|
|
7
7
|
import readFilesSync from '@cloudcmd/read-files-sync';
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import currify from 'currify';
|
|
2
2
|
import wraptile from 'wraptile';
|
|
3
3
|
import squad from 'squad';
|
|
4
|
-
import fullstore from 'fullstore';
|
|
4
|
+
import {fullstore} from 'fullstore';
|
|
5
5
|
import io from 'socket.io-client';
|
|
6
6
|
import _forEachKey from 'for-each-key';
|
|
7
7
|
import log from './log.mjs';
|
|
@@ -58,7 +58,7 @@ const emitAuth = wraptile((importUrl, config, socket) => {
|
|
|
58
58
|
|
|
59
59
|
const updateConfig = currify((config, data) => {
|
|
60
60
|
for (const [key, value] of entries(data)) {
|
|
61
|
-
if (typeof env(key) !== 'undefined')
|
|
61
|
+
if (typeof env.parse(key) !== 'undefined')
|
|
62
62
|
continue;
|
|
63
63
|
|
|
64
64
|
config(key, value);
|
package/server/env.js
CHANGED
package/server/theme.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import path, {dirname} from 'node:path';
|
|
|
2
2
|
import {fileURLToPath} from 'node:url';
|
|
3
3
|
import process from 'node:process';
|
|
4
4
|
import fs from 'node:fs';
|
|
5
|
-
import fullstore from 'fullstore';
|
|
5
|
+
import {fullstore} from 'fullstore';
|
|
6
6
|
import * as nanomemoizeDefault from 'nano-memoize';
|
|
7
7
|
import readFilesSync from '@cloudcmd/read-files-sync';
|
|
8
8
|
|