cloudcmd 19.21.2 → 19.21.3

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/dist/sw.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{var t={4299(t){"use strict";let e=(t,...n)=>{if(function(t){if("function"!=typeof t)throw Error("fn should be function!")}(t),n.length>=t.length)return t(...n);let r=(...r)=>e(t,...n,...r);return[function(t){return r(...arguments)},function(t,e){return r(...arguments)},function(t,e,n){return r(...arguments)},function(t,e,n,i){return r(...arguments)},function(t,e,n,i,o){return r(...arguments)}][t.length-n.length-1]||r};t.exports=e},5606(t){var e,n,r,i=t.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}function c(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}var u=[],s=!1,l=-1;function f(){s&&r&&(s=!1,r.length?u=r.concat(u):l=-1,u.length&&h())}function h(){if(!s){var t=c(f);s=!0;for(var e=u.length;e;){for(r=u,u=[];++l<e;)r&&r[l].run();l=-1,e=u.length}r=null,s=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}i.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||s||c(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(t){return[]},i.binding=function(t){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}(()=>{"use strict";n(5606);let t=async(t,...e)=>{var n=t;if("function"!=typeof n)throw Error("fn should be a function!");try{return[null,await t(...e)]}catch(t){return[t]}};var e=n(4299);let r=e((t,e)=>e.waitUntil(t())),i=e((t,e)=>{let{request:n}=e,{url:r}=n,i=o(r);r.endsWith("/")||/\^\/fs/.test(i)||"GET"===n.method&&("basic"!==n.type||i.startsWith("/api")||/^socket.io/.test(i)||e.respondWith(t(e)))}),o=t=>new URL(t).pathname,a="cloudcmd: Tue Oct 13 2026 22:42:08 GMT+0300 (Eastern European Summer Time)";async function c(){console.info(`cloudcmd: sw: activate: ${a}`),await globalThis.clients.claim();let t=await caches.keys(),e=caches.delete.bind(caches);await Promise.all(t.map(e))}async function u(e){var n,r;let{request:i}=e,{url:c}=i,u=(n=o(c),r=e.request,"/"!==n?r:new Request("/",{credentials:"same-origin"})),l=await caches.open(a),f=await l.match(i);if(f)return f;let[h,d]=await t(fetch,u,{credentials:"same-origin"});return h?new Response(h.message):(await s(i,d.clone()),d)}async function s(t,e){return(await caches.open(a)).put(t,e)}globalThis.addEventListener("install",r(async function t(){console.info(`cloudcmd: sw: install: ${a}`),await globalThis.skipWaiting()})),globalThis.addEventListener("fetch",i(u)),globalThis.addEventListener("activate",r(c))})()})();
1
+ (()=>{var t={4299(t){"use strict";let e=(t,...n)=>{if(function(t){if("function"!=typeof t)throw Error("fn should be function!")}(t),n.length>=t.length)return t(...n);let r=(...r)=>e(t,...n,...r);return[function(t){return r(...arguments)},function(t,e){return r(...arguments)},function(t,e,n){return r(...arguments)},function(t,e,n,i){return r(...arguments)},function(t,e,n,i,o){return r(...arguments)}][t.length-n.length-1]||r};t.exports=e},5606(t){var e,n,r,i=t.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}function c(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}var s=[],u=!1,l=-1;function f(){u&&r&&(u=!1,r.length?s=r.concat(s):l=-1,s.length&&h())}function h(){if(!u){var t=c(f);u=!0;for(var e=s.length;e;){for(r=s,s=[];++l<e;)r&&r[l].run();l=-1,e=s.length}r=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}i.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new d(t,e)),1!==s.length||u||c(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(t){return[]},i.binding=function(t){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}(()=>{"use strict";n(5606);let t=async(t,...e)=>{var n=t;if("function"!=typeof n)throw Error("fn should be a function!");try{return[null,await t(...e)]}catch(t){return[t]}};var e=n(4299);let r=e((t,e)=>e.waitUntil(t())),i=e((t,e)=>{let{request:n}=e,{url:r}=n,i=o(r);r.endsWith("/")||/\^\/fs/.test(i)||"GET"===n.method&&("basic"!==n.type||i.startsWith("/api")||/^socket.io/.test(i)||e.respondWith(t(e)))}),o=t=>new URL(t).pathname,a="cloudcmd: Sat Oct 24 2026 01:38:31 GMT+0300 (Eastern European Summer Time)";async function c(){console.info(`cloudcmd: sw: activate: ${a}`),await globalThis.clients.claim();let t=await caches.keys(),e=caches.delete.bind(caches);await Promise.all(t.map(e))}async function s(e){var n,r;let{request:i}=e,{url:c}=i,s=(n=o(c),r=e.request,"/"!==n?r:new Request("/",{credentials:"same-origin"})),l=await caches.open(a),f=await l.match(i);if(f)return f;let[h,d]=await t(fetch,s,{credentials:"same-origin"});return h?new Response(h.message):(await u(i,d.clone()),d)}async function u(t,e){return(await caches.open(a)).put(t,e)}globalThis.addEventListener("install",r(async function t(){console.info(`cloudcmd: sw: install: ${a}`),await globalThis.skipWaiting()})),globalThis.addEventListener("fetch",i(s)),globalThis.addEventListener("activate",r(c))})()})();
2
2
  //# sourceMappingURL=sw.js.map