cloudcmd 19.3.7 → 19.3.9
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 +10 -0
- package/HELP.md +3 -1
- package/README.md +1 -1
- package/dist/cloudcmd.common.css +2 -1
- package/dist/cloudcmd.common.css.map +1 -0
- package/dist/cloudcmd.common.js +15013 -2
- package/dist/cloudcmd.common.js.map +1 -1
- package/dist/cloudcmd.js +184 -1
- package/dist/cloudcmd.js.map +1 -1
- package/dist/columns/name-size-date.css +2 -1
- package/dist/columns/name-size-date.css.map +1 -0
- package/dist/columns/name-size-date.js +7 -0
- package/dist/columns/name-size-date.js.map +1 -0
- package/dist/columns/name-size.css +2 -1
- package/dist/columns/name-size.css.map +1 -0
- package/dist/columns/name-size.js +7 -0
- package/dist/columns/name-size.js.map +1 -0
- package/dist/config.css +2 -1
- package/dist/config.css.map +1 -0
- package/dist/config.js +7 -0
- package/dist/config.js.map +1 -0
- package/dist/help.css +2 -1
- package/dist/help.css.map +1 -0
- package/dist/help.js +7 -0
- package/dist/help.js.map +1 -0
- package/dist/modules/cloud.js +168 -1
- package/dist/modules/cloud.js.map +1 -1
- package/dist/modules/command-line.js +168 -1
- package/dist/modules/command-line.js.map +1 -1
- package/dist/modules/config.js +168 -1
- package/dist/modules/config.js.map +1 -1
- package/dist/modules/contact.js +168 -1
- package/dist/modules/contact.js.map +1 -1
- package/dist/modules/edit-file-vim.js +168 -1
- package/dist/modules/edit-file-vim.js.map +1 -1
- package/dist/modules/edit-file.js +168 -1
- package/dist/modules/edit-file.js.map +1 -1
- package/dist/modules/edit-names-vim.js +168 -1
- package/dist/modules/edit-names-vim.js.map +1 -1
- package/dist/modules/edit-names.js +168 -1
- package/dist/modules/edit-names.js.map +1 -1
- package/dist/modules/edit.js +168 -1
- package/dist/modules/edit.js.map +1 -1
- package/dist/modules/help.js +168 -1
- package/dist/modules/help.js.map +1 -1
- package/dist/modules/konsole.js +168 -1
- package/dist/modules/konsole.js.map +1 -1
- package/dist/modules/markdown.js +168 -1
- package/dist/modules/markdown.js.map +1 -1
- package/dist/modules/menu.js +168 -1
- package/dist/modules/menu.js.map +1 -1
- package/dist/modules/operation.js +168 -1
- package/dist/modules/operation.js.map +1 -1
- package/dist/modules/polyfill.js +168 -1
- package/dist/modules/polyfill.js.map +1 -1
- package/dist/modules/terminal-run.js +168 -1
- package/dist/modules/terminal-run.js.map +1 -1
- package/dist/modules/terminal.js +168 -1
- package/dist/modules/terminal.js.map +1 -1
- package/dist/modules/upload.js +168 -1
- package/dist/modules/upload.js.map +1 -1
- package/dist/modules/user-menu.js +168 -1
- package/dist/modules/user-menu.js.map +1 -1
- package/dist/modules/view.js +168 -1
- package/dist/modules/view.js.map +1 -1
- package/dist/nojs.css +2 -1
- package/dist/nojs.css.map +1 -0
- package/dist/nojs.js +7 -0
- package/dist/nojs.js.map +1 -0
- package/dist/sw.js +363 -1
- package/dist/sw.js.map +1 -1
- package/dist/terminal.css +2 -1
- package/dist/terminal.css.map +1 -0
- package/dist/terminal.js +7 -0
- package/dist/terminal.js.map +1 -0
- package/dist/themes/dark.css +2 -1
- package/dist/themes/dark.css.map +1 -0
- package/dist/themes/dark.js +7 -0
- package/dist/themes/dark.js.map +1 -0
- package/dist/themes/light.css +2 -1
- package/dist/themes/light.css.map +1 -0
- package/dist/themes/light.js +7 -0
- package/dist/themes/light.js.map +1 -0
- package/dist/user-menu.css +2 -1
- package/dist/user-menu.css.map +1 -0
- package/dist/user-menu.js +7 -0
- package/dist/user-menu.js.map +1 -0
- package/dist/view.css +2 -1
- package/dist/view.css.map +1 -0
- package/dist/view.js +7 -0
- package/dist/view.js.map +1 -0
- package/dist-dev/sw.js +1 -1
- package/package.json +3 -2
- package/server/rest/index.js +1 -1
package/dist/sw.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sw.js","mappings":"kCAEA,MASMA,EAAU,CAACC,KAAOC,KAGpB,GAeJ,SAAeD,G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GpB,aAAaH,KAAKH,IAGtBrE,EAAEkE,YAAYjE,EAAED,OAGdsE,EAAeF,GAAQ,IAAIQ,IAAIR,GAAKC,SAGpCQ,EAAO,+EAabC,WAAWC,iBAAiB,UAAWf,EAcvCgB,iBACIC,QAAQC,KAAK,0BAA0BL,WAEjCC,WAAWK,aACrB,IAjBAL,WAAWC,iBAAiB,QAASb,EAmBrCc,eAAuBI,GACnB,MAAM,QAACjB,GAAWiB,GACZ,IAAChB,GAAOD,EAERkB,EA/BSC,EAAC3F,EAAGwE,IACT,MAANxE,EACOwE,EANc,IAAIoB,QAQR,IARmB,CACxCC,YAAa,gBAkCMF,CADFhB,EAAYF,GACWgB,EAAMjB,SAExCsB,QAAcC,OAAOC,KAAKd,GAC1Be,QAAiBH,EAAMI,MAAM1B,GAEnC,GAAcyB,EACV,OAAOA,EAEX,MAAO5F,EAAG8F,QChFYd,OAAO9F,KAAOC,MAUxC,SAAeD,GACX,GAb6B,mBAanBA,EACN,MAAME,MAAM,2BACpB,CAZIC,CAAMH,GAEN,IACI,MAAO,CAAC,WAAYA,KAAMC,GAC9B,CAAE,MAAMa,GACJ,MAAO,CAACA,EACZ,GDyEwB+F,CAAWC,MAAOX,EAAY,CAClDG,YAAa,gBAGjB,OAAIxF,EACO,IAAIiG,SAASjG,EAAEkG,gBAO9BlB,eAA0Bb,EAASyB,GAE/B,aADoBF,OAAOC,KAAKd,IACnBsB,IAAIhC,EAASyB,EAC9B,CARUQ,CAAWjC,EAAS2B,EAAKO,SAExBP,EACX,IAxCAhB,WAAWC,iBAAiB,WAAYf,EAExCgB,iBACIC,QAAQC,KAAK,2BAA2BL,WAElCC,WAAWwB,QAAQC,QACzB,MAAMC,QAAad,OAAOc,OACpBC,EAAcf,OAAOgB,OAAOC,KAAKjB,cAEjCkB,QAAQC,IAAIL,EAAKM,IAAIL,GAC/B,G","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/currify/lib/currify.js","file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/process/browser.js","file://cloudcmd/webpack/bootstrap","file://cloudcmd//Users/coderaiser/cloudcmd/client/sw/sw.js","file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/try-to-catch/lib/try-to-catch.js"],"sourcesContent":["'use strict';\n\nconst f = (fn) => [\n /*eslint no-unused-vars: 0*/\n function (a) {return fn(...arguments);},\n function (a, b) {return fn(...arguments);},\n function (a, b, c) {return fn(...arguments);},\n function (a, b, c, d) {return fn(...arguments);},\n function (a, b, c, d, e) {return fn(...arguments);},\n];\n\nconst currify = (fn, ...args) => {\n check(fn);\n \n if (args.length >= fn.length)\n return fn(...args);\n \n const again = (...args2) => {\n return currify(fn, ...[...args, ...args2]);\n };\n \n const count = fn.length - args.length - 1;\n const func = f(again)[count];\n \n return func || again;\n};\n\nmodule.exports = currify;\n\nfunction check(fn) {\n if (typeof fn !== 'function')\n throw Error('fn should be function!');\n}\n\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","import process from 'node:process';\nimport codegen from 'codegen.macro';\nimport {tryToCatch} from 'try-to-catch';\nimport currify from 'currify';\n\nconst isDev = process.env.NODE_ENV === 'development';\n\nconst isGet = (a) => a.method === 'GET';\nconst isBasic = (a) => a.type === 'basic';\n\nconst wait = currify((f, e) => e.waitUntil(f()));\nconst respondWith = currify((f, e) => {\n const {request} = e;\n const {url} = request;\n const pathname = getPathName(url);\n \n if (url.endsWith('/') || /\\^\\/fs/.test(pathname))\n return;\n \n if (!isGet(request))\n return;\n \n if (!isBasic(request))\n return;\n \n if (pathname.startsWith('/api'))\n return;\n \n if (/^socket.io/.test(pathname))\n return;\n \n e.respondWith(f(e));\n});\n\nconst getPathName = (url) => new URL(url).pathname;\n\nconst date = codegen`module.exports = '\"' + Date() + '\"'`;\nconst NAME = `cloudcmd: ${date}`;\n\nconst createRequest = (a) => new Request(a, {\n credentials: 'same-origin',\n});\n\nconst getRequest = (a, request) => {\n if (a !== '/')\n return request;\n \n return createRequest('/');\n};\n\nglobalThis.addEventListener('install', wait(onInstall));\nglobalThis.addEventListener('fetch', respondWith(onFetch));\nglobalThis.addEventListener('activate', wait(onActivate));\n\nasync function onActivate() {\n console.info(`cloudcmd: sw: activate: ${NAME}`);\n \n await globalThis.clients.claim();\n const keys = await caches.keys();\n const deleteCache = caches.delete.bind(caches);\n \n await Promise.all(keys.map(deleteCache));\n}\n\nasync function onInstall() {\n console.info(`cloudcmd: sw: install: ${NAME}`);\n \n await globalThis.skipWaiting();\n}\n\nasync function onFetch(event) {\n const {request} = event;\n const {url} = request;\n const pathname = getPathName(url);\n const newRequest = getRequest(pathname, event.request);\n \n const cache = await caches.open(NAME);\n const response = await cache.match(request);\n \n if (!isDev && response)\n return response;\n \n const [e, resp] = await tryToCatch(fetch, newRequest, {\n credentials: 'same-origin',\n });\n \n if (e)\n return new Response(e.message);\n \n await addToCache(request, resp.clone());\n \n return resp;\n}\n\nasync function addToCache(request, response) {\n const cache = await caches.open(NAME);\n return cache.put(request, response);\n}\n","const isFn = (a) => typeof a === 'function';\n\nexport const tryToCatch = async (fn, ...args) => {\n check(fn);\n \n try {\n return [null, await fn(...args)];\n } catch(e) {\n return [e];\n }\n};\n\nfunction check(fn) {\n if (!isFn(fn))\n throw Error('fn should be a function!');\n}\n"],"names":["currify","fn","args","Error","check","length","again","args2","count","func","a","arguments","b","c","d","e","f","module","exports","cachedSetTimeout","cachedClearTimeout","process","defaultSetTimout","defaultClearTimeout","runTimeout","fun","setTimeout","call","this","clearTimeout","currentQueue","queue","draining","queueIndex","cleanUpNextTick","concat","drainQueue","timeout","len","run","marker","runClearTimeout","Item","array","noop","nextTick","Array","i","push","prototype","apply","title","browser","env","argv","version","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","name","binding","cwd","chdir","dir","umask","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","wait","waitUntil","respondWith","request","url","pathname","getPathName","endsWith","test","method","type","startsWith","URL","NAME","globalThis","addEventListener","async","console","info","skipWaiting","event","newRequest","getRequest","Request","credentials","cache","caches","open","response","match","resp","tryToCatch","fetch","Response","message","put","addToCache","clone","clients","claim","keys","deleteCache","delete","bind","Promise","all","map"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"sw.js","mappings":";;;;;;;AAAa;;AAEb;AACA;AACA,kBAAkB,yBAAyB;AAC3C,qBAAqB,yBAAyB;AAC9C,wBAAwB,yBAAyB;AACjD,2BAA2B,yBAAyB;AACpD,8BAA8B,yBAAyB;AACvD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;;;;;;;;AChCA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,MAAM;AACN;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;;AAEtC;AACA;AACA;;AAEA,4BAA4B;AAC5B;AACA;AACA;AACA,6BAA6B;;;;;;;UCvL7B;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;;ACtBA;;AAEO;AACP;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;ACfmC;AAEK;AACV;AAE9B,MAAMG,KAAK,GAAGH,YAAoB,KAAK,aAAa;AAEpD,MAAMM,KAAK,GAAIC,CAAC,IAAKA,CAAC,CAACC,MAAM,KAAK,KAAK;AACvC,MAAMC,OAAO,GAAIF,CAAC,IAAKA,CAAC,CAACG,IAAI,KAAK,OAAO;AAEzC,MAAMC,IAAI,GAAGT,OAAO,CAAC,CAACU,CAAC,EAAEC,CAAC,KAAKA,CAAC,CAACC,SAAS,CAACF,CAAC,CAAC,CAAC,CAAC,CAAC;AAChD,MAAMG,WAAW,GAAGb,OAAO,CAAC,CAACU,CAAC,EAAEC,C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ACK,KAAK,CAAC,CAAC,CAAC;EAEvC,OAAOL,IAAI;AACf;AAEA,eAAeI,UAAUA,CAAC1C,OAAO,EAAEoC,QAAQ,EAAE;EACzC,MAAMF,KAAK,GAAG,MAAMV,MAAM,CAACW,IAAI,CAAC1B,IAAI,CAAC;EACrC,OAAOyB,KAAK,CAACU,GAAG,CAAC5C,OAAO,EAAEoC,QAAQ,CAAC;AACvC,C","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/currify/lib/currify.js","file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/process/browser.js","file://cloudcmd/webpack/bootstrap","file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/try-to-catch/lib/try-to-catch.js","file://cloudcmd//Users/coderaiser/cloudcmd/client/sw/sw.js"],"sourcesContent":["'use strict';\n\nconst f = (fn) => [\n /*eslint no-unused-vars: 0*/\n function (a) {return fn(...arguments);},\n function (a, b) {return fn(...arguments);},\n function (a, b, c) {return fn(...arguments);},\n function (a, b, c, d) {return fn(...arguments);},\n function (a, b, c, d, e) {return fn(...arguments);},\n];\n\nconst currify = (fn, ...args) => {\n check(fn);\n \n if (args.length >= fn.length)\n return fn(...args);\n \n const again = (...args2) => {\n return currify(fn, ...[...args, ...args2]);\n };\n \n const count = fn.length - args.length - 1;\n const func = f(again)[count];\n \n return func || again;\n};\n\nmodule.exports = currify;\n\nfunction check(fn) {\n if (typeof fn !== 'function')\n throw Error('fn should be function!');\n}\n\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","const isFn = (a) => typeof a === 'function';\n\nexport const tryToCatch = async (fn, ...args) => {\n check(fn);\n \n try {\n return [null, await fn(...args)];\n } catch(e) {\n return [e];\n }\n};\n\nfunction check(fn) {\n if (!isFn(fn))\n throw Error('fn should be a function!');\n}\n","import process from 'node:process';\nimport codegen from 'codegen.macro';\nimport {tryToCatch} from 'try-to-catch';\nimport currify from 'currify';\n\nconst isDev = process.env.NODE_ENV === 'development';\n\nconst isGet = (a) => a.method === 'GET';\nconst isBasic = (a) => a.type === 'basic';\n\nconst wait = currify((f, e) => e.waitUntil(f()));\nconst respondWith = currify((f, e) => {\n const {request} = e;\n const {url} = request;\n const pathname = getPathName(url);\n \n if (url.endsWith('/') || /\\^\\/fs/.test(pathname))\n return;\n \n if (!isGet(request))\n return;\n \n if (!isBasic(request))\n return;\n \n if (pathname.startsWith('/api'))\n return;\n \n if (/^socket.io/.test(pathname))\n return;\n \n e.respondWith(f(e));\n});\n\nconst getPathName = (url) => new URL(url).pathname;\n\nconst date = codegen`module.exports = '\"' + Date() + '\"'`;\nconst NAME = `cloudcmd: ${date}`;\n\nconst createRequest = (a) => new Request(a, {\n credentials: 'same-origin',\n});\n\nconst getRequest = (a, request) => {\n if (a !== '/')\n return request;\n \n return createRequest('/');\n};\n\nglobalThis.addEventListener('install', wait(onInstall));\nglobalThis.addEventListener('fetch', respondWith(onFetch));\nglobalThis.addEventListener('activate', wait(onActivate));\n\nasync function onActivate() {\n console.info(`cloudcmd: sw: activate: ${NAME}`);\n \n await globalThis.clients.claim();\n const keys = await caches.keys();\n const deleteCache = caches.delete.bind(caches);\n \n await Promise.all(keys.map(deleteCache));\n}\n\nasync function onInstall() {\n console.info(`cloudcmd: sw: install: ${NAME}`);\n \n await globalThis.skipWaiting();\n}\n\nasync function onFetch(event) {\n const {request} = event;\n const {url} = request;\n const pathname = getPathName(url);\n const newRequest = getRequest(pathname, event.request);\n \n const cache = await caches.open(NAME);\n const response = await cache.match(request);\n \n if (!isDev && response)\n return response;\n \n const [e, resp] = await tryToCatch(fetch, newRequest, {\n credentials: 'same-origin',\n });\n \n if (e)\n return new Response(e.message);\n \n await addToCache(request, resp.clone());\n \n return resp;\n}\n\nasync function addToCache(request, response) {\n const cache = await caches.open(NAME);\n return cache.put(request, response);\n}\n"],"names":["process","tryToCatch","currify","isDev","env","NODE_ENV","isGet","a","method","isBasic","type","wait","f","e","waitUntil","respondWith","request","url","pathname","getPathName","endsWith","test","startsWith","URL","date","NAME","createRequest","Request","credentials","getRequest","globalThis","addEventListener","onInstall","onFetch","onActivate","console","info","clients","claim","keys","caches","deleteCache","delete","bind","Promise","all","map","skipWaiting","event","newRequest","cache","open","response","match","resp","fetch","Response","message","addToCache","clone","put"],"sourceRoot":""}
|
package/dist/terminal.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.terminal{height:100%}
|
|
1
|
+
.terminal{height:100%}
|
|
2
|
+
/*# sourceMappingURL=terminal.css.map*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal.css","mappings":"AAAA,UACI,WACJ","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/css/terminal.css"],"sourcesContent":[".terminal {\n height: 100%;\n}\n"],"names":[],"sourceRoot":""}
|
package/dist/terminal.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal.js","mappings":";;AAAA","sources":["webpack://cloudcmd/./css/terminal.css?63bb"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"sourceRoot":""}
|
package/dist/themes/dark.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
:root{--link-color:#317bf9;--border-color:#317bf966;--background:#22272e;--column-color:#727e8c;--icon-color:#478be6;--button-background:#22272e;--internal-background:#373e47}.view{background:var(--internal-background)!important;color:var(--column-color)!important}.view a{color:var(--link-color)!important}.smalltalk .button-strip button,.smalltalk .page,.smalltalk header,.smalltalk input{background:var(--internal-background)!important;color:var(--link-color)!important;text-shadow:none!important}.cloudcmd-user-menu,.cloudcmd-user-menu-button{background:var(--internal-background)!important;color:var(--link-color)!important}.jqconsole{background:#373e47!important}.jqconsole-prompt,.log-msg{color:var(--column-color)!important}.menu{background:var(--internal-background)!important;color:var(--link-color)!important}
|
|
1
|
+
:root{--link-color:#317bf9;--border-color:#317bf966;--background:#22272e;--column-color:#727e8c;--icon-color:#478be6;--button-background:#22272e;--internal-background:#373e47}.view{background:var(--internal-background)!important;color:var(--column-color)!important}.view a{color:var(--link-color)!important}.smalltalk .button-strip button,.smalltalk .page,.smalltalk header,.smalltalk input{background:var(--internal-background)!important;color:var(--link-color)!important;text-shadow:none!important}.cloudcmd-user-menu,.cloudcmd-user-menu-button{background:var(--internal-background)!important;color:var(--link-color)!important}.jqconsole{background:#373e47!important}.jqconsole-prompt,.log-msg{color:var(--column-color)!important}.menu{background:var(--internal-background)!important;color:var(--link-color)!important}
|
|
2
|
+
/*# sourceMappingURL=dark.css.map*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themes/dark.css","mappings":"AAAA,MACI,oBAAqB,CACrB,wBAAqC,CACrC,oBAAqB,CACrB,sBAAuB,CACvB,oBAAqB,CACrB,2BAA4B,CAC5B,6BACJ,CAEA,MACI,+CAAiD,CACjD,mCACJ,CACA,QACI,iCACJ,CAEA,oFAII,+CAAiD,CACjD,iCAAmC,CACnC,0BACJ,CAEA,+CAEI,+CAAiD,CACjD,iCACJ,CAEA,WACI,4BACJ,CAMA,2BACI,mCACJ,CAEA,MAEI,+CAAiD,CADjD,iCAEJ","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/css/themes/dark.css"],"sourcesContent":[":root {\n --link-color: #317bf9;\n --border-color: rgb(49 123 249 / 40%);\n --background: #22272e;\n --column-color: #727e8c;\n --icon-color: #478be6;\n --button-background: #22272e;\n --internal-background: #373e47;\n}\n\n.view {\n background: var(--internal-background) !important;\n color: var(--column-color) !important;\n}\n.view a {\n color: var(--link-color) !important;\n}\n\n.smalltalk .page,\n.smalltalk header,\n.smalltalk .button-strip button,\n.smalltalk input {\n background: var(--internal-background) !important;\n color: var(--link-color) !important;\n text-shadow: none !important;\n}\n\n.cloudcmd-user-menu,\n.cloudcmd-user-menu-button {\n background: var(--internal-background) !important;\n color: var(--link-color) !important;\n}\n\n.jqconsole {\n background: #373e47 !important;\n}\n\n.jqconsole-prompt {\n color: var(--column-color) !important;\n}\n\n.log-msg {\n color: var(--column-color) !important;\n}\n\n.menu {\n color: var(--link-color) !important;\n background: var(--internal-background) !important;\n}\n"],"names":[],"sourceRoot":""}
|
package/dist/themes/dark.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themes/dark.js","mappings":";;AAAA","sources":["webpack://cloudcmd/./css/themes/dark.css?317b"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"sourceRoot":""}
|
package/dist/themes/light.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
:root{--link-color:blue;--selected-menu-item-color:#317bf9;--border-color:#317bf966;--background:#fff;--column-color:#000;--icon-color:#222;--button-background:#fff}
|
|
1
|
+
:root{--link-color:blue;--selected-menu-item-color:#317bf9;--border-color:#317bf966;--background:#fff;--column-color:#000;--icon-color:#222;--button-background:#fff}
|
|
2
|
+
/*# sourceMappingURL=light.css.map*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themes/light.css","mappings":"AAAA,MACI,iBAAkB,CAClB,kCAAmC,CACnC,wBAAqC,CACrC,iBAAmB,CACnB,mBAAqB,CACrB,iBAAkB,CAClB,wBACJ","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/css/themes/light.css"],"sourcesContent":[":root {\n --link-color: blue;\n --selected-menu-item-color: #317bf9;\n --border-color: rgb(49 123 249 / 40%);\n --background: white;\n --column-color: black;\n --icon-color: #222;\n --button-background: white;\n}\n"],"names":[],"sourceRoot":""}
|
package/dist/themes/light.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themes/light.js","mappings":";;AAAA","sources":["webpack://cloudcmd/./css/themes/light.css?1989"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"sourceRoot":""}
|
package/dist/user-menu.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.cloudcmd-user-menu{border:0;font-family:Droid Sans Mono,Ubuntu Mono,Consolas,monospace;font-size:16px}.cloudcmd-user-menu:focus{outline:0}.cloudcmd-user-menu>option:checked{box-shadow:20px -20px 0 2px var(--selected-menu-item-color) inset}.cloudcmd-user-menu-button{-webkit-appearance:none;border:0;display:block;font-size:16px;overflow:auto;padding:2px;width:100%}
|
|
1
|
+
.cloudcmd-user-menu{border:0;font-family:Droid Sans Mono,Ubuntu Mono,Consolas,monospace;font-size:16px}.cloudcmd-user-menu:focus{outline:0}.cloudcmd-user-menu>option:checked{box-shadow:20px -20px 0 2px var(--selected-menu-item-color) inset}.cloudcmd-user-menu-button{-webkit-appearance:none;border:0;display:block;font-size:16px;overflow:auto;padding:2px;width:100%}
|
|
2
|
+
/*# sourceMappingURL=user-menu.css.map*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-menu.css","mappings":"AAAA,oBAGI,QAAS,CADT,0DAAoE,CADpE,cAGJ,CAEA,0BACI,SACJ,CAEA,mCACI,iEACJ,CAEA,2BAKI,uBAAwB,CACxB,QAAS,CALT,aAAc,CAEd,cAAe,CAIf,aAAc,CAHd,WAAY,CAFZ,UAMJ","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/css/user-menu.css"],"sourcesContent":[".cloudcmd-user-menu {\n font-size: 16px;\n font-family: 'Droid Sans Mono', 'Ubuntu Mono', 'Consolas', monospace;\n border: 0;\n}\n\n.cloudcmd-user-menu:focus {\n outline: 0;\n}\n\n.cloudcmd-user-menu > option:checked {\n box-shadow: 20px -20px 0 2px var(--selected-menu-item-color) inset;\n}\n\n.cloudcmd-user-menu-button {\n display: block;\n width: 100%;\n font-size: 16px;\n padding: 2px;\n -webkit-appearance: none;\n border: 0;\n overflow: auto;\n}\n"],"names":[],"sourceRoot":""}
|
package/dist/user-menu.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-menu.js","mappings":";;AAAA","sources":["webpack://cloudcmd/./css/user-menu.css?2af3"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"sourceRoot":""}
|
package/dist/view.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.view{font-size:16px;height:100%;overflow:auto;white-space:pre}.view:focus{outline:0}.view::selection{background:#b3d4fc;text-shadow:none}.view-overlay{background:#ffffff1a;display:block}.media,video{width:100%}audio{margin-top:10px}
|
|
1
|
+
.view{font-size:16px;height:100%;overflow:auto;white-space:pre}.view:focus{outline:0}.view::selection{background:#b3d4fc;text-shadow:none}.view-overlay{background:#ffffff1a;display:block}.media,video{width:100%}audio{margin-top:10px}
|
|
2
|
+
/*# sourceMappingURL=view.css.map*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.css","mappings":"AAAA,MACI,cAAe,CAEf,WAAY,CACZ,aAAc,CAFd,eAGJ,CAEA,YACI,SACJ,CAEA,iBAEI,kBAAmB,CADnB,gBAEJ,CAEA,cAEI,oBAAkC,CADlC,aAEJ,CAEA,aAEI,UACJ,CAEA,MACI,eACJ","sources":["file://cloudcmd//Users/coderaiser/cloudcmd/css/view.css"],"sourcesContent":[".view {\n font-size: 16px;\n white-space: pre;\n height: 100%;\n overflow: auto;\n}\n\n.view:focus {\n outline: 0;\n}\n\n.view::selection {\n text-shadow: none;\n background: #b3d4fc;\n}\n\n.view-overlay {\n display: block;\n background: rgb(255 255 255 / 10%);\n}\n\n.media,\nvideo {\n width: 100%;\n}\n\naudio {\n margin-top: 10px;\n}\n"],"names":[],"sourceRoot":""}
|
package/dist/view.js
CHANGED
package/dist/view.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.js","mappings":";;AAAA","sources":["webpack://cloudcmd/./css/view.css?43f3"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"sourceRoot":""}
|
package/dist-dev/sw.js
CHANGED
|
@@ -37,7 +37,7 @@ eval("{// shim for using process in browser\nvar process = module.exports = {};\
|
|
|
37
37
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
38
38
|
|
|
39
39
|
"use strict";
|
|
40
|
-
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 = \"
|
|
40
|
+
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 = \"Sun Feb 15 2026 23:46:53 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.js\n}");
|
|
41
41
|
|
|
42
42
|
/***/ },
|
|
43
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcmd",
|
|
3
|
-
"version": "19.3.
|
|
3
|
+
"version": "19.3.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "File manager for the web with console and editor",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"chalk": "^5.3.0",
|
|
96
96
|
"compression": "^1.7.4",
|
|
97
97
|
"console-io": "^15.0.1",
|
|
98
|
-
"copymitter": "^
|
|
98
|
+
"copymitter": "^10.0.0",
|
|
99
99
|
"criton": "^2.0.0",
|
|
100
100
|
"currify": "^4.0.0",
|
|
101
101
|
"deepmerge": "^4.0.0",
|
|
@@ -170,6 +170,7 @@
|
|
|
170
170
|
"clean-css-loader": "^4.2.1",
|
|
171
171
|
"codegen.macro": "^4.0.0",
|
|
172
172
|
"css-loader": "^7.1.2",
|
|
173
|
+
"css-minimizer-webpack-plugin": "^7.0.4",
|
|
173
174
|
"css-modules-require-hook": "^4.2.3",
|
|
174
175
|
"cssnano-preset-default": "^7.0.10",
|
|
175
176
|
"domtokenlist-shim": "^1.2.0",
|
package/server/rest/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import currify from 'currify';
|
|
|
9
9
|
import pullout from 'pullout';
|
|
10
10
|
import json from 'jonny';
|
|
11
11
|
import ponse from 'ponse';
|
|
12
|
-
import copymitter from 'copymitter';
|
|
12
|
+
import {copymitter} from 'copymitter';
|
|
13
13
|
import _moveFiles from '@cloudcmd/move-files';
|
|
14
14
|
import * as CloudFunc from '#common/cloudfunc';
|
|
15
15
|
import root from '../root.js';
|