wherever-dev 0.8.3 → 0.8.4

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 (24) hide show
  1. package/dist/index.js +16 -2
  2. package/dist/index.js.map +1 -1
  3. package/package.json +1 -1
  4. package/public/_app/immutable/chunks/{CFZwc5OM.js → Bs6e_yNr.js} +2 -2
  5. package/public/_app/immutable/chunks/{CFZwc5OM.js.map → Bs6e_yNr.js.map} +1 -1
  6. package/public/_app/immutable/chunks/{Ddnp1HFv.js → C3dty8_c.js} +2 -2
  7. package/public/_app/immutable/chunks/{Ddnp1HFv.js.map → C3dty8_c.js.map} +1 -1
  8. package/public/_app/immutable/chunks/{BpNdwm2g.js → Dpm8IW62.js} +2 -2
  9. package/public/_app/immutable/chunks/{BpNdwm2g.js.map → Dpm8IW62.js.map} +1 -1
  10. package/public/_app/immutable/entry/{app.B0UlJ8C-.js → app.CfEYnTXR.js} +3 -3
  11. package/public/_app/immutable/entry/{app.B0UlJ8C-.js.map → app.CfEYnTXR.js.map} +1 -1
  12. package/public/_app/immutable/entry/start.DeP-d0TI.js +2 -0
  13. package/public/_app/immutable/entry/start.DeP-d0TI.js.map +1 -0
  14. package/public/_app/immutable/nodes/{0.Cvg2hYtP.js → 0.BvSvDXrg.js} +2 -2
  15. package/public/_app/immutable/nodes/{0.Cvg2hYtP.js.map → 0.BvSvDXrg.js.map} +1 -1
  16. package/public/_app/immutable/nodes/{1.DLtAtyAb.js → 1.CWEPdQEw.js} +2 -2
  17. package/public/_app/immutable/nodes/{1.DLtAtyAb.js.map → 1.CWEPdQEw.js.map} +1 -1
  18. package/public/_app/immutable/nodes/{2.riO6dO81.js → 2.D-h8cHh0.js} +2 -2
  19. package/public/_app/immutable/nodes/{2.riO6dO81.js.map → 2.D-h8cHh0.js.map} +1 -1
  20. package/public/_app/version.json +1 -1
  21. package/public/index.html +10 -10
  22. package/public/service-worker.js +1 -1
  23. package/public/_app/immutable/entry/start.CmL4cMnM.js +0 -2
  24. package/public/_app/immutable/entry/start.CmL4cMnM.js.map +0 -1
@@ -1 +1 @@
1
- {"version":"9803512"}
1
+ {"version":"d927698"}
package/public/index.html CHANGED
@@ -47,17 +47,17 @@
47
47
  })();
48
48
  </script>
49
49
 
50
- <link href="./_app/immutable/entry/start.CmL4cMnM.js" rel="modulepreload">
51
- <link href="./_app/immutable/chunks/BpNdwm2g.js" rel="modulepreload">
50
+ <link href="./_app/immutable/entry/start.DeP-d0TI.js" rel="modulepreload">
51
+ <link href="./_app/immutable/chunks/Dpm8IW62.js" rel="modulepreload">
52
52
  <link href="./_app/immutable/chunks/CEg8tgYI.js" rel="modulepreload">
53
- <link href="./_app/immutable/entry/app.B0UlJ8C-.js" rel="modulepreload">
53
+ <link href="./_app/immutable/entry/app.CfEYnTXR.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.Cvg2hYtP.js" rel="modulepreload">
58
- <link href="./_app/immutable/chunks/Ddnp1HFv.js" rel="modulepreload">
59
- <link href="./_app/immutable/chunks/CFZwc5OM.js" rel="modulepreload">
60
- <link href="./_app/immutable/nodes/2.riO6dO81.js" rel="modulepreload">
57
+ <link href="./_app/immutable/nodes/0.BvSvDXrg.js" rel="modulepreload">
58
+ <link href="./_app/immutable/chunks/C3dty8_c.js" rel="modulepreload">
59
+ <link href="./_app/immutable/chunks/Bs6e_yNr.js" rel="modulepreload">
60
+ <link href="./_app/immutable/nodes/2.D-h8cHh0.js" rel="modulepreload">
61
61
 
62
62
  <link href="./_app/immutable/assets/0.CKKlv2WN.css" rel="stylesheet">
63
63
  </head>
@@ -65,15 +65,15 @@
65
65
  <div style="display: contents">
66
66
  <script>
67
67
  {
68
- __sveltekit_qcn635 = {
68
+ __sveltekit_78x6sq = {
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.CmL4cMnM.js"),
76
- import("./_app/immutable/entry/app.B0UlJ8C-.js")
75
+ import("./_app/immutable/entry/start.DeP-d0TI.js"),
76
+ import("./_app/immutable/entry/app.CfEYnTXR.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.CmL4cMnM.js",a+"/_app/immutable/entry/app.B0UlJ8C-.js",a+"/_app/immutable/nodes/0.Cvg2hYtP.js",a+"/_app/immutable/assets/0.CKKlv2WN.css",a+"/_app/immutable/nodes/1.DLtAtyAb.js",a+"/_app/immutable/nodes/2.riO6dO81.js",a+"/_app/immutable/chunks/BpNdwm2g.js",a+"/_app/immutable/chunks/CEg8tgYI.js",a+"/_app/immutable/chunks/CFZwc5OM.js",a+"/_app/immutable/chunks/Ddnp1HFv.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="9803512",$=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 O=["/sessions(\\?|$|/)","/models(\\?|$|/)","/config(\\?|$|/)","/check-path(\\?|$|/)","/autocomplete-path(\\?|$|/)","/session/","/health(\\?|$)"];for(const t of O)h.push(t);const k=[],C=[s.location.origin,"cdn",".*\\.png$",".*\\.svg$"],x=[];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:C},A={method:(t,i)=>(o(`Cache only: ${t.url}`),i||g(t,i)),regexes:x},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:k};async function j(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,_,A];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(j(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 L(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(L(i))});async function W(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(W(t.notification))});
1
+ const a=location.pathname.split("/").slice(0,-1).join("/"),b=[a+"/_app/immutable/entry/start.DeP-d0TI.js",a+"/_app/immutable/entry/app.CfEYnTXR.js",a+"/_app/immutable/nodes/0.BvSvDXrg.js",a+"/_app/immutable/assets/0.CKKlv2WN.css",a+"/_app/immutable/nodes/1.CWEPdQEw.js",a+"/_app/immutable/nodes/2.D-h8cHh0.js",a+"/_app/immutable/chunks/Bs6e_yNr.js",a+"/_app/immutable/chunks/C3dty8_c.js",a+"/_app/immutable/chunks/CEg8tgYI.js",a+"/_app/immutable/chunks/Dpm8IW62.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="d927698",$=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 _=["/sessions(\\?|$|/)","/models(\\?|$|/)","/config(\\?|$|/)","/check-path(\\?|$|/)","/autocomplete-path(\\?|$|/)","/session/","/health(\\?|$)"];for(const t of _)h.push(t);const k=[],E=[s.location.origin,"cdn",".*\\.png$",".*\\.svg$"],O=[];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 x={method:(t,i)=>{o(`Cache first: ${t.url}`);const e=g(t,i);return i||e},regexes:E},C={method:(t,i)=>(o(`Cache only: ${t.url}`),i||g(t,i)),regexes:O},f={method:(t,i)=>(o(`Online first: ${t.url}`),g(t,i)),regexes:h},j={method:t=>(o(`Online only: ${t.url}`),fetch(t)),regexes:k};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,j,x,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(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 W(){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 W(),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 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,2 +0,0 @@
1
- import{l as o,s as r}from"../chunks/BpNdwm2g.js";export{o as load_css,r as start};
2
- //# sourceMappingURL=start.CmL4cMnM.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.CmL4cMnM.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}