wherever-dev 0.15.2 → 0.16.0

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 (27) hide show
  1. package/dist/commands/install.d.ts.map +1 -1
  2. package/dist/commands/install.js +20 -0
  3. package/dist/commands/install.js.map +1 -1
  4. package/dist/index.js +294 -9
  5. package/dist/index.js.map +1 -1
  6. package/package.json +1 -1
  7. package/public/_app/immutable/chunks/{GsxEkebq.js → CL1IiFPX.js} +2 -2
  8. package/public/_app/immutable/chunks/{GsxEkebq.js.map → CL1IiFPX.js.map} +1 -1
  9. package/public/_app/immutable/chunks/{3zeFojTv.js → EJHE1g3U.js} +2 -2
  10. package/public/_app/immutable/chunks/{3zeFojTv.js.map → EJHE1g3U.js.map} +1 -1
  11. package/public/_app/immutable/chunks/{Bpr39rfQ.js → vI97EmaY.js} +2 -2
  12. package/public/_app/immutable/chunks/{Bpr39rfQ.js.map → vI97EmaY.js.map} +1 -1
  13. package/public/_app/immutable/entry/{app.BErKadgE.js → app.tGQ27-uR.js} +3 -3
  14. package/public/_app/immutable/entry/{app.BErKadgE.js.map → app.tGQ27-uR.js.map} +1 -1
  15. package/public/_app/immutable/entry/start.DsqdmxNo.js +2 -0
  16. package/public/_app/immutable/entry/start.DsqdmxNo.js.map +1 -0
  17. package/public/_app/immutable/nodes/{0.C17tWp9Z.js → 0.DcKNbQrU.js} +2 -2
  18. package/public/_app/immutable/nodes/{0.C17tWp9Z.js.map → 0.DcKNbQrU.js.map} +1 -1
  19. package/public/_app/immutable/nodes/{1.BJS7gXOu.js → 1.TK7FGwGI.js} +2 -2
  20. package/public/_app/immutable/nodes/{1.BJS7gXOu.js.map → 1.TK7FGwGI.js.map} +1 -1
  21. package/public/_app/immutable/nodes/{2.C8VPPAI7.js → 2.Bj45Z-NA.js} +2 -2
  22. package/public/_app/immutable/nodes/{2.C8VPPAI7.js.map → 2.Bj45Z-NA.js.map} +1 -1
  23. package/public/_app/version.json +1 -1
  24. package/public/index.html +10 -10
  25. package/public/service-worker.js +1 -1
  26. package/public/_app/immutable/entry/start.BcmPw-69.js +0 -2
  27. package/public/_app/immutable/entry/start.BcmPw-69.js.map +0 -1
@@ -1 +1 @@
1
- {"version":"11725c2"}
1
+ {"version":"7f631bd"}
package/public/index.html CHANGED
@@ -49,17 +49,17 @@
49
49
  })();
50
50
  </script>
51
51
 
52
- <link href="./_app/immutable/entry/start.BcmPw-69.js" rel="modulepreload">
53
- <link href="./_app/immutable/chunks/3zeFojTv.js" rel="modulepreload">
52
+ <link href="./_app/immutable/entry/start.DsqdmxNo.js" rel="modulepreload">
53
+ <link href="./_app/immutable/chunks/EJHE1g3U.js" rel="modulepreload">
54
54
  <link href="./_app/immutable/chunks/Cum3gQOV.js" rel="modulepreload">
55
- <link href="./_app/immutable/entry/app.BErKadgE.js" rel="modulepreload">
55
+ <link href="./_app/immutable/entry/app.tGQ27-uR.js" rel="modulepreload">
56
56
  <link href="./_app/immutable/chunks/D5t5dKgW.js" rel="modulepreload">
57
57
  <link href="./_app/immutable/chunks/BeRKnBIj.js" rel="modulepreload">
58
58
  <link href="./_app/immutable/chunks/C8CBGqeA.js" rel="modulepreload">
59
- <link href="./_app/immutable/nodes/0.C17tWp9Z.js" rel="modulepreload">
60
- <link href="./_app/immutable/chunks/Bpr39rfQ.js" rel="modulepreload">
61
- <link href="./_app/immutable/chunks/GsxEkebq.js" rel="modulepreload">
62
- <link href="./_app/immutable/nodes/2.C8VPPAI7.js" rel="modulepreload">
59
+ <link href="./_app/immutable/nodes/0.DcKNbQrU.js" rel="modulepreload">
60
+ <link href="./_app/immutable/chunks/vI97EmaY.js" rel="modulepreload">
61
+ <link href="./_app/immutable/chunks/CL1IiFPX.js" rel="modulepreload">
62
+ <link href="./_app/immutable/nodes/2.Bj45Z-NA.js" rel="modulepreload">
63
63
 
64
64
  <link href="./_app/immutable/assets/0.BnOlDJL_.css" rel="stylesheet">
65
65
  </head>
@@ -67,15 +67,15 @@
67
67
  <div style="display: contents">
68
68
  <script>
69
69
  {
70
- __sveltekit_1seypms = {
70
+ __sveltekit_14p6a1y = {
71
71
  base: new URL(".", location).pathname.slice(0, -1)
72
72
  };
73
73
 
74
74
  const element = document.currentScript.parentElement;
75
75
 
76
76
  Promise.all([
77
- import("./_app/immutable/entry/start.BcmPw-69.js"),
78
- import("./_app/immutable/entry/app.BErKadgE.js")
77
+ import("./_app/immutable/entry/start.DsqdmxNo.js"),
78
+ import("./_app/immutable/entry/app.tGQ27-uR.js")
79
79
  ]).then(([kit, app]) => {
80
80
  kit.start(app, element);
81
81
  });
@@ -1 +1 @@
1
- const a=location.pathname.split("/").slice(0,-1).join("/"),b=[a+"/_app/immutable/entry/start.BcmPw-69.js",a+"/_app/immutable/entry/app.BErKadgE.js",a+"/_app/immutable/nodes/0.C17tWp9Z.js",a+"/_app/immutable/assets/0.BnOlDJL_.css",a+"/_app/immutable/nodes/1.BJS7gXOu.js",a+"/_app/immutable/nodes/2.C8VPPAI7.js",a+"/_app/immutable/chunks/3zeFojTv.js",a+"/_app/immutable/chunks/BeRKnBIj.js",a+"/_app/immutable/chunks/Bpr39rfQ.js",a+"/_app/immutable/chunks/C8CBGqeA.js",a+"/_app/immutable/chunks/Cum3gQOV.js",a+"/_app/immutable/chunks/D5t5dKgW.js",a+"/_app/immutable/chunks/GsxEkebq.js"],y=[a+"/logo.svg",a+"/pwa/apple-touch-icon.png",a+"/pwa/favicon-192.png",a+"/pwa/favicon-512.png",a+"/pwa/favicon-maskable-192.png",a+"/pwa/favicon-maskable-512.png",a+"/pwa/favicon.ico",a+"/pwa/favicon.svg",a+"/pwa/manifest.webmanifest",a+"/pwa/screenshot-desktop.png",a+"/pwa/screenshot-mobile.png",a+"/robots.txt"],v=[a+"/"],m="11725c2",k=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 #${k}] ${t[0]}`,...t.slice(1))}const d=`cache-${m}`,g=[];g.push("localhost");const $=["/sessions(\\?|$|/)","/models(\\?|$|/)","/config(\\?|$|/)","/check-path(\\?|$|/)","/autocomplete-path(\\?|$|/)","/session/","/health(\\?|$)"];for(const t of $)g.push(t);const O=[],x=[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 h(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 C={method:(t,i)=>{o(`Cache first: ${t.url}`);const e=h(t,i);return i||e},regexes:x},j={method:(t,i)=>(o(`Cache only: ${t.url}`),i||h(t,i)),regexes:_},f={method:(t,i)=>(o(`Online first: ${t.url}`),h(t,i)),regexes:g},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,C,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 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
+ const a=location.pathname.split("/").slice(0,-1).join("/"),b=[a+"/_app/immutable/entry/start.DsqdmxNo.js",a+"/_app/immutable/entry/app.tGQ27-uR.js",a+"/_app/immutable/nodes/0.DcKNbQrU.js",a+"/_app/immutable/assets/0.BnOlDJL_.css",a+"/_app/immutable/nodes/1.TK7FGwGI.js",a+"/_app/immutable/nodes/2.Bj45Z-NA.js",a+"/_app/immutable/chunks/BeRKnBIj.js",a+"/_app/immutable/chunks/C8CBGqeA.js",a+"/_app/immutable/chunks/CL1IiFPX.js",a+"/_app/immutable/chunks/Cum3gQOV.js",a+"/_app/immutable/chunks/D5t5dKgW.js",a+"/_app/immutable/chunks/EJHE1g3U.js",a+"/_app/immutable/chunks/vI97EmaY.js"],y=[a+"/logo.svg",a+"/pwa/apple-touch-icon.png",a+"/pwa/favicon-192.png",a+"/pwa/favicon-512.png",a+"/pwa/favicon-maskable-192.png",a+"/pwa/favicon-maskable-512.png",a+"/pwa/favicon.ico",a+"/pwa/favicon.svg",a+"/pwa/manifest.webmanifest",a+"/pwa/screenshot-desktop.png",a+"/pwa/screenshot-mobile.png",a+"/robots.txt"],v=[a+"/"],m="7f631bd",$=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}`,g=[];g.push("localhost");const k=["/sessions(\\?|$|/)","/models(\\?|$|/)","/config(\\?|$|/)","/check-path(\\?|$|/)","/autocomplete-path(\\?|$|/)","/session/","/health(\\?|$)"];for(const t of k)g.push(t);const O=[],x=[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 h(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=h(t,i);return i||e},regexes:x},C={method:(t,i)=>(o(`Cache only: ${t.url}`),i||h(t,i)),regexes:_},f={method:(t,i)=>(o(`Online first: ${t.url}`),h(t,i)),regexes:g},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,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 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,2 +0,0 @@
1
- import{l as o,s as r}from"../chunks/3zeFojTv.js";export{o as load_css,r as start};
2
- //# sourceMappingURL=start.BcmPw-69.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.BcmPw-69.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}