wherever-dev 0.4.2 → 0.4.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.
Files changed (26) hide show
  1. package/dist/session-pool.d.ts +25 -3
  2. package/dist/session-pool.d.ts.map +1 -1
  3. package/dist/session-pool.js +49 -5
  4. package/dist/session-pool.js.map +1 -1
  5. package/package.json +3 -3
  6. package/public/_app/immutable/chunks/{BKllHISW.js → BjCiLgSk.js} +2 -2
  7. package/public/_app/immutable/chunks/{BKllHISW.js.map → BjCiLgSk.js.map} +1 -1
  8. package/public/_app/immutable/chunks/{BmVuM2Y1.js → DVBwLY30.js} +2 -2
  9. package/public/_app/immutable/chunks/{BmVuM2Y1.js.map → DVBwLY30.js.map} +1 -1
  10. package/public/_app/immutable/chunks/{C2DN7QTd.js → hZZHHBcZ.js} +2 -2
  11. package/public/_app/immutable/chunks/{C2DN7QTd.js.map → hZZHHBcZ.js.map} +1 -1
  12. package/public/_app/immutable/entry/{app.C7mkeSFC.js → app.CbtUyz23.js} +3 -3
  13. package/public/_app/immutable/entry/{app.C7mkeSFC.js.map → app.CbtUyz23.js.map} +1 -1
  14. package/public/_app/immutable/entry/start.DUrKnLFM.js +2 -0
  15. package/public/_app/immutable/entry/start.DUrKnLFM.js.map +1 -0
  16. package/public/_app/immutable/nodes/{0.DKCWYVkQ.js → 0.9pbC6lHm.js} +2 -2
  17. package/public/_app/immutable/nodes/{0.DKCWYVkQ.js.map → 0.9pbC6lHm.js.map} +1 -1
  18. package/public/_app/immutable/nodes/{1.DvX6nGK9.js → 1.s4Y7xjL3.js} +2 -2
  19. package/public/_app/immutable/nodes/{1.DvX6nGK9.js.map → 1.s4Y7xjL3.js.map} +1 -1
  20. package/public/_app/immutable/nodes/{2.Z4jvbTfo.js → 2.jv_uwe0e.js} +2 -2
  21. package/public/_app/immutable/nodes/{2.Z4jvbTfo.js.map → 2.jv_uwe0e.js.map} +1 -1
  22. package/public/_app/version.json +1 -1
  23. package/public/index.html +10 -10
  24. package/public/service-worker.js +1 -1
  25. package/public/_app/immutable/entry/start.QqipYq-r.js +0 -2
  26. package/public/_app/immutable/entry/start.QqipYq-r.js.map +0 -1
@@ -1 +1 @@
1
- {"version":"aca90cb"}
1
+ {"version":"4f9ba4f"}
package/public/index.html CHANGED
@@ -47,17 +47,17 @@
47
47
  })();
48
48
  </script>
49
49
 
50
- <link href="./_app/immutable/entry/start.QqipYq-r.js" rel="modulepreload">
51
- <link href="./_app/immutable/chunks/BKllHISW.js" rel="modulepreload">
50
+ <link href="./_app/immutable/entry/start.DUrKnLFM.js" rel="modulepreload">
51
+ <link href="./_app/immutable/chunks/BjCiLgSk.js" rel="modulepreload">
52
52
  <link href="./_app/immutable/chunks/CEg8tgYI.js" rel="modulepreload">
53
- <link href="./_app/immutable/entry/app.C7mkeSFC.js" rel="modulepreload">
53
+ <link href="./_app/immutable/entry/app.CbtUyz23.js" rel="modulepreload">
54
54
  <link href="./_app/immutable/chunks/ylfInSZr.js" rel="modulepreload">
55
55
  <link href="./_app/immutable/chunks/vMsF8lo6.js" rel="modulepreload">
56
56
  <link href="./_app/immutable/chunks/MtE7VtNZ.js" rel="modulepreload">
57
- <link href="./_app/immutable/nodes/0.DKCWYVkQ.js" rel="modulepreload">
58
- <link href="./_app/immutable/chunks/BmVuM2Y1.js" rel="modulepreload">
59
- <link href="./_app/immutable/chunks/C2DN7QTd.js" rel="modulepreload">
60
- <link href="./_app/immutable/nodes/2.Z4jvbTfo.js" rel="modulepreload">
57
+ <link href="./_app/immutable/nodes/0.9pbC6lHm.js" rel="modulepreload">
58
+ <link href="./_app/immutable/chunks/DVBwLY30.js" rel="modulepreload">
59
+ <link href="./_app/immutable/chunks/hZZHHBcZ.js" rel="modulepreload">
60
+ <link href="./_app/immutable/nodes/2.jv_uwe0e.js" rel="modulepreload">
61
61
 
62
62
  <link href="./_app/immutable/assets/0.f5UPHX1k.css" rel="stylesheet">
63
63
  </head>
@@ -65,15 +65,15 @@
65
65
  <div style="display: contents">
66
66
  <script>
67
67
  {
68
- __sveltekit_10luffy = {
68
+ __sveltekit_1ruwd5r = {
69
69
  base: new URL(".", location).pathname.slice(0, -1)
70
70
  };
71
71
 
72
72
  const element = document.currentScript.parentElement;
73
73
 
74
74
  Promise.all([
75
- import("./_app/immutable/entry/start.QqipYq-r.js"),
76
- import("./_app/immutable/entry/app.C7mkeSFC.js")
75
+ import("./_app/immutable/entry/start.DUrKnLFM.js"),
76
+ import("./_app/immutable/entry/app.CbtUyz23.js")
77
77
  ]).then(([kit, app]) => {
78
78
  kit.start(app, element);
79
79
  });
@@ -1 +1 @@
1
- const a=location.pathname.split("/").slice(0,-1).join("/"),b=[a+"/_app/immutable/entry/start.QqipYq-r.js",a+"/_app/immutable/entry/app.C7mkeSFC.js",a+"/_app/immutable/nodes/0.DKCWYVkQ.js",a+"/_app/immutable/assets/0.f5UPHX1k.css",a+"/_app/immutable/nodes/1.DvX6nGK9.js",a+"/_app/immutable/nodes/2.Z4jvbTfo.js",a+"/_app/immutable/chunks/BKllHISW.js",a+"/_app/immutable/chunks/BmVuM2Y1.js",a+"/_app/immutable/chunks/C2DN7QTd.js",a+"/_app/immutable/chunks/CEg8tgYI.js",a+"/_app/immutable/chunks/MtE7VtNZ.js",a+"/_app/immutable/chunks/vMsF8lo6.js",a+"/_app/immutable/chunks/ylfInSZr.js"],y=[a+"/logo.svg",a+"/pwa/apple-touch-icon.png",a+"/pwa/favicon-192.png",a+"/pwa/favicon-512.png",a+"/pwa/favicon.ico",a+"/pwa/favicon.svg",a+"/pwa/manifest.webmanifest",a+"/robots.txt"],v=[a+"/"],m="aca90cb",$=m,s=self;let w=[];w=b.concat(v).concat(y.filter(t=>t.indexOf("pwa/")===-1));let u=!0;function o(...t){u&&console.debug(`[Service Worker #${$}] ${t[0]}`,...t.slice(1))}const d=`cache-${m}`,h=[];h.push("localhost");const k=["/sessions(\\?|$|/)","/models(\\?|$|/)","/config(\\?|$|/)","/check-path(\\?|$|/)","/autocomplete-path(\\?|$|/)","/session/","/health(\\?|$)"];for(const t of k)h.push(t);const O=[],x=[s.location.origin,"cdn",".*\\.png$",".*\\.svg$"],C=[];o(`Origin: ${s.location.origin}`);s.addEventListener("install",t=>{o("Install"),t.waitUntil(caches.open(d).then(i=>(o(`Creating cache: ${d}`),i.addAll(w))).then(()=>{o("cache fully fetched!")}))});s.addEventListener("activate",t=>{o("Activate"),t.waitUntil(caches.keys().then(i=>Promise.all(i.map(e=>{if(e!==d)return o(`Deleting: ${e}`),caches.delete(e)})).then(()=>s.clients.claim())))});async function g(t,i){try{const e=await fetch(t);try{const c=await caches.open(d);return t.method==="GET"&&t.url.startsWith("http")&&c.put(t,e.clone()),e}catch(c){return o(`error: ${c}`),e}}catch{return i||new Response(`Could Not fetch ${t.url}`,{status:503,headers:{"Content-Type":"text/plain"}})}}const _={method:(t,i)=>{o(`Cache first: ${t.url}`);const e=g(t,i);return i||e},regexes:x},j={method:(t,i)=>(o(`Cache only: ${t.url}`),i||g(t,i)),regexes:C},f={method:(t,i)=>(o(`Online first: ${t.url}`),g(t,i)),regexes:h},E={method:t=>(o(`Online only: ${t.url}`),fetch(t)),regexes:O};async function A(t){const i=t.request,e=s.registration;if(t.request.mode==="navigate"&&t.request.method==="GET"&&e.waiting&&(await s.clients.matchAll()).length<2)return o("only one client, skipWaiting as we navigate the page"),e.waiting.postMessage("skipWaiting"),new Response("",{headers:{Refresh:"0"}});if(t.request.mode==="navigate"&&t.request.method==="GET"){const n=await caches.match(i);return f.method(i,n)}return await caches.match(i).then(n=>{const l=[f,E,_,j];for(const r of l)for(const p of r.regexes)if(RegExp(p).test(i.url))return r.method(i,n);return f.method(i,n)})}s.addEventListener("fetch",t=>{t.respondWith(A(t))});s.addEventListener("message",async function(t){t.data&&t.data.type==="debug"?(u=t.data.enabled&&t.data.level>=5,u&&o(`log enabled ${t.data.level}`)):t.data&&t.data.type==="ping"?o("pong"):t.data==="skipWaiting"&&(o("skipWaiting received"),t.waitUntil(s.skipWaiting()))});async function F(){const t=await s.clients.matchAll({type:"window",includeUncontrolled:!0});let i,e,c;for(var n=0;n<t.length;n++){const l=t[n],r=l.visibilityState==="visible",p=l.focused;if(r&&!i&&(i=l),p&&!e&&(e=l),p&&r){c=l;break}}return{atLeastOneFocused:e,atLeastOneVisible:i,atLeastOneVisibleAndFocused:c}}async function W(t){const i=await F(),e={title:"Notification",options:{body:"You have a new notification",icon:"/favicon.png",badge:"/favicon.png"}};if(t)try{const c=JSON.parse(t);if(c.web_push===8030){const n=c.notification;e.options={badge:n.badge,body:n.body,data:n.data,dir:n.dir,icon:n.icon,lang:n.lang,requireInteraction:n.requireInteraction,silent:n.silent,tag:n.tag},e.title=n.title,e.options.icon||(e.options.icon=n.image),n.navigate&&(e.options.data?typeof e.options.data=="object"&&!e.options.data.navigate&&(e.options.data={...e.options.data,navigate:n.navigate}):e.options.data={navigate:n.navigate})}else e.title=c.notification?.title||c.title||"Notification",e.options=c.notification||c.options}catch{e.options.body=t}o("handlePush",t,e),i.atLeastOneVisibleAndFocused?(o("posting notification to active app",e),i.atLeastOneVisibleAndFocused.postMessage({type:"notification",notification:{title:e.title,options:e.options}})):await s.registration.showNotification(e.title,e.options)}s.addEventListener("push",function(t){const i=t.data?.text();t.waitUntil(W(i))});async function L(t){const i=await s.clients.matchAll({type:"window",includeUncontrolled:!0}),e=location.pathname,c=e.substring(0,e.lastIndexOf("/")+1);let n=t.data?.navigate;n&&!n.startsWith("/")&&n.indexOf(":/")==-1&&(n=c+n);for(const l of i)if(o(`${"focus"in l?"focus-available: ":""}: ${l.url}`),"focus"in l)return n&&"navigate"in l?l.focus().then(()=>l.navigate(n)):l.focus();if(s.clients.openWindow)return s.clients.openWindow(n||"/")}s.addEventListener("notificationclick",function(t){t.notification.close(),t.waitUntil(L(t.notification))});
1
+ const a=location.pathname.split("/").slice(0,-1).join("/"),b=[a+"/_app/immutable/entry/start.DUrKnLFM.js",a+"/_app/immutable/entry/app.CbtUyz23.js",a+"/_app/immutable/nodes/0.9pbC6lHm.js",a+"/_app/immutable/assets/0.f5UPHX1k.css",a+"/_app/immutable/nodes/1.s4Y7xjL3.js",a+"/_app/immutable/nodes/2.jv_uwe0e.js",a+"/_app/immutable/chunks/BjCiLgSk.js",a+"/_app/immutable/chunks/CEg8tgYI.js",a+"/_app/immutable/chunks/DVBwLY30.js",a+"/_app/immutable/chunks/MtE7VtNZ.js",a+"/_app/immutable/chunks/hZZHHBcZ.js",a+"/_app/immutable/chunks/vMsF8lo6.js",a+"/_app/immutable/chunks/ylfInSZr.js"],y=[a+"/logo.svg",a+"/pwa/apple-touch-icon.png",a+"/pwa/favicon-192.png",a+"/pwa/favicon-512.png",a+"/pwa/favicon.ico",a+"/pwa/favicon.svg",a+"/pwa/manifest.webmanifest",a+"/robots.txt"],v=[a+"/"],m="4f9ba4f",$=m,s=self;let w=[];w=b.concat(v).concat(y.filter(t=>t.indexOf("pwa/")===-1));let u=!0;function o(...t){u&&console.debug(`[Service Worker #${$}] ${t[0]}`,...t.slice(1))}const d=`cache-${m}`,h=[];h.push("localhost");const k=["/sessions(\\?|$|/)","/models(\\?|$|/)","/config(\\?|$|/)","/check-path(\\?|$|/)","/autocomplete-path(\\?|$|/)","/session/","/health(\\?|$)"];for(const t of k)h.push(t);const x=[],O=[s.location.origin,"cdn",".*\\.png$",".*\\.svg$"],_=[];o(`Origin: ${s.location.origin}`);s.addEventListener("install",t=>{o("Install"),t.waitUntil(caches.open(d).then(i=>(o(`Creating cache: ${d}`),i.addAll(w))).then(()=>{o("cache fully fetched!")}))});s.addEventListener("activate",t=>{o("Activate"),t.waitUntil(caches.keys().then(i=>Promise.all(i.map(e=>{if(e!==d)return o(`Deleting: ${e}`),caches.delete(e)})).then(()=>s.clients.claim())))});async function g(t,i){try{const e=await fetch(t);try{const c=await caches.open(d);return t.method==="GET"&&t.url.startsWith("http")&&c.put(t,e.clone()),e}catch(c){return o(`error: ${c}`),e}}catch{return i||new Response(`Could Not fetch ${t.url}`,{status:503,headers:{"Content-Type":"text/plain"}})}}const j={method:(t,i)=>{o(`Cache first: ${t.url}`);const e=g(t,i);return i||e},regexes:O},C={method:(t,i)=>(o(`Cache only: ${t.url}`),i||g(t,i)),regexes:_},f={method:(t,i)=>(o(`Online first: ${t.url}`),g(t,i)),regexes:h},E={method:t=>(o(`Online only: ${t.url}`),fetch(t)),regexes:x};async function L(t){const i=t.request,e=s.registration;if(t.request.mode==="navigate"&&t.request.method==="GET"&&e.waiting&&(await s.clients.matchAll()).length<2)return o("only one client, skipWaiting as we navigate the page"),e.waiting.postMessage("skipWaiting"),new Response("",{headers:{Refresh:"0"}});if(t.request.mode==="navigate"&&t.request.method==="GET"){const n=await caches.match(i);return f.method(i,n)}return await caches.match(i).then(n=>{const l=[f,E,j,C];for(const r of l)for(const p of r.regexes)if(RegExp(p).test(i.url))return r.method(i,n);return f.method(i,n)})}s.addEventListener("fetch",t=>{t.respondWith(L(t))});s.addEventListener("message",async function(t){t.data&&t.data.type==="debug"?(u=t.data.enabled&&t.data.level>=5,u&&o(`log enabled ${t.data.level}`)):t.data&&t.data.type==="ping"?o("pong"):t.data==="skipWaiting"&&(o("skipWaiting received"),t.waitUntil(s.skipWaiting()))});async function A(){const t=await s.clients.matchAll({type:"window",includeUncontrolled:!0});let i,e,c;for(var n=0;n<t.length;n++){const l=t[n],r=l.visibilityState==="visible",p=l.focused;if(r&&!i&&(i=l),p&&!e&&(e=l),p&&r){c=l;break}}return{atLeastOneFocused:e,atLeastOneVisible:i,atLeastOneVisibleAndFocused:c}}async function F(t){const i=await A(),e={title:"Notification",options:{body:"You have a new notification",icon:"/favicon.png",badge:"/favicon.png"}};if(t)try{const c=JSON.parse(t);if(c.web_push===8030){const n=c.notification;e.options={badge:n.badge,body:n.body,data:n.data,dir:n.dir,icon:n.icon,lang:n.lang,requireInteraction:n.requireInteraction,silent:n.silent,tag:n.tag},e.title=n.title,e.options.icon||(e.options.icon=n.image),n.navigate&&(e.options.data?typeof e.options.data=="object"&&!e.options.data.navigate&&(e.options.data={...e.options.data,navigate:n.navigate}):e.options.data={navigate:n.navigate})}else e.title=c.notification?.title||c.title||"Notification",e.options=c.notification||c.options}catch{e.options.body=t}o("handlePush",t,e),i.atLeastOneVisibleAndFocused?(o("posting notification to active app",e),i.atLeastOneVisibleAndFocused.postMessage({type:"notification",notification:{title:e.title,options:e.options}})):await s.registration.showNotification(e.title,e.options)}s.addEventListener("push",function(t){const i=t.data?.text();t.waitUntil(F(i))});async function U(t){const i=await s.clients.matchAll({type:"window",includeUncontrolled:!0}),e=location.pathname,c=e.substring(0,e.lastIndexOf("/")+1);let n=t.data?.navigate;n&&!n.startsWith("/")&&n.indexOf(":/")==-1&&(n=c+n);for(const l of i)if(o(`${"focus"in l?"focus-available: ":""}: ${l.url}`),"focus"in l)return n&&"navigate"in l?l.focus().then(()=>l.navigate(n)):l.focus();if(s.clients.openWindow)return s.clients.openWindow(n||"/")}s.addEventListener("notificationclick",function(t){t.notification.close(),t.waitUntil(U(t.notification))});
@@ -1,2 +0,0 @@
1
- import{l as o,s as r}from"../chunks/BKllHISW.js";export{o as load_css,r as start};
2
- //# sourceMappingURL=start.QqipYq-r.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.QqipYq-r.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}