wherever-dev 0.18.4 → 0.18.5
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/index.js +372 -33
- package/dist/index.js.map +1 -1
- package/dist/protocol.d.ts +22 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/session-pool.d.ts +25 -0
- package/dist/session-pool.d.ts.map +1 -1
- package/dist/session-pool.js +37 -0
- package/dist/session-pool.js.map +1 -1
- package/dist/upload-gate.d.ts +96 -0
- package/dist/upload-gate.d.ts.map +1 -0
- package/dist/upload-gate.js +109 -0
- package/dist/upload-gate.js.map +1 -0
- package/dist/upload-staging.d.ts +172 -0
- package/dist/upload-staging.d.ts.map +1 -0
- package/dist/upload-staging.js +368 -0
- package/dist/upload-staging.js.map +1 -0
- package/package.json +1 -1
- package/public/_app/immutable/assets/{0.BnOlDJL_.css → 0.Cb5vRzMp.css} +1 -1
- package/public/_app/immutable/chunks/{Ds-VJGnt.js → BdyEwvKM.js} +2 -2
- package/public/_app/immutable/chunks/{Ds-VJGnt.js.map → BdyEwvKM.js.map} +1 -1
- package/public/_app/immutable/chunks/{wEbpki5g.js → BgfVtPUY.js} +2 -2
- package/public/_app/immutable/chunks/{wEbpki5g.js.map → BgfVtPUY.js.map} +1 -1
- package/public/_app/immutable/chunks/{D7qz2w2U.js → CO_n26iD.js} +2 -2
- package/public/_app/immutable/chunks/{D7qz2w2U.js.map → CO_n26iD.js.map} +1 -1
- package/public/_app/immutable/entry/{app.DTMeXTQG.js → app.Cd34rZl-.js} +3 -3
- package/public/_app/immutable/entry/{app.DTMeXTQG.js.map → app.Cd34rZl-.js.map} +1 -1
- package/public/_app/immutable/entry/start.Cs0K02Bg.js +2 -0
- package/public/_app/immutable/entry/start.Cs0K02Bg.js.map +1 -0
- package/public/_app/immutable/nodes/{0.CCTuxjIi.js → 0.CbsSRnKE.js} +2 -2
- package/public/_app/immutable/nodes/{0.CCTuxjIi.js.map → 0.CbsSRnKE.js.map} +1 -1
- package/public/_app/immutable/nodes/{1.5ZhRu6ko.js → 1.FIugR_jQ.js} +2 -2
- package/public/_app/immutable/nodes/{1.5ZhRu6ko.js.map → 1.FIugR_jQ.js.map} +1 -1
- package/public/_app/immutable/nodes/2.B8lR6Ytl.js +120 -0
- package/public/_app/immutable/nodes/2.B8lR6Ytl.js.map +1 -0
- package/public/_app/version.json +1 -1
- package/public/index.html +11 -11
- package/public/service-worker.js +1 -1
- package/public/_app/immutable/entry/start.CwhL7q0v.js +0 -2
- package/public/_app/immutable/entry/start.CwhL7q0v.js.map +0 -1
- package/public/_app/immutable/nodes/2.DOUZvKq4.js +0 -120
- package/public/_app/immutable/nodes/2.DOUZvKq4.js.map +0 -1
package/public/_app/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"a2977cb"}
|
package/public/index.html
CHANGED
|
@@ -49,33 +49,33 @@
|
|
|
49
49
|
})();
|
|
50
50
|
</script>
|
|
51
51
|
|
|
52
|
-
<link href="./_app/immutable/entry/start.
|
|
53
|
-
<link href="./_app/immutable/chunks/
|
|
52
|
+
<link href="./_app/immutable/entry/start.Cs0K02Bg.js" rel="modulepreload">
|
|
53
|
+
<link href="./_app/immutable/chunks/CO_n26iD.js" rel="modulepreload">
|
|
54
54
|
<link href="./_app/immutable/chunks/CAL8yDNt.js" rel="modulepreload">
|
|
55
|
-
<link href="./_app/immutable/entry/app.
|
|
55
|
+
<link href="./_app/immutable/entry/app.Cd34rZl-.js" rel="modulepreload">
|
|
56
56
|
<link href="./_app/immutable/chunks/BORm3wtc.js" rel="modulepreload">
|
|
57
57
|
<link href="./_app/immutable/chunks/DsnmJJEf.js" rel="modulepreload">
|
|
58
58
|
<link href="./_app/immutable/chunks/Cjaz9aih.js" rel="modulepreload">
|
|
59
|
-
<link href="./_app/immutable/nodes/0.
|
|
60
|
-
<link href="./_app/immutable/chunks/
|
|
61
|
-
<link href="./_app/immutable/chunks/
|
|
62
|
-
<link href="./_app/immutable/nodes/2.
|
|
59
|
+
<link href="./_app/immutable/nodes/0.CbsSRnKE.js" rel="modulepreload">
|
|
60
|
+
<link href="./_app/immutable/chunks/BdyEwvKM.js" rel="modulepreload">
|
|
61
|
+
<link href="./_app/immutable/chunks/BgfVtPUY.js" rel="modulepreload">
|
|
62
|
+
<link href="./_app/immutable/nodes/2.B8lR6Ytl.js" rel="modulepreload">
|
|
63
63
|
|
|
64
|
-
<link href="./_app/immutable/assets/0.
|
|
64
|
+
<link href="./_app/immutable/assets/0.Cb5vRzMp.css" rel="stylesheet">
|
|
65
65
|
</head>
|
|
66
66
|
<body data-sveltekit-preload-data="hover">
|
|
67
67
|
<div style="display: contents">
|
|
68
68
|
<script>
|
|
69
69
|
{
|
|
70
|
-
|
|
70
|
+
__sveltekit_10me572 = {
|
|
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.
|
|
78
|
-
import("./_app/immutable/entry/app.
|
|
77
|
+
import("./_app/immutable/entry/start.Cs0K02Bg.js"),
|
|
78
|
+
import("./_app/immutable/entry/app.Cd34rZl-.js")
|
|
79
79
|
]).then(([kit, app]) => {
|
|
80
80
|
kit.start(app, element);
|
|
81
81
|
});
|
package/public/service-worker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a=location.pathname.split("/").slice(0,-1).join("/"),b=[a+"/_app/immutable/entry/start.
|
|
1
|
+
const a=location.pathname.split("/").slice(0,-1).join("/"),b=[a+"/_app/immutable/entry/start.Cs0K02Bg.js",a+"/_app/immutable/entry/app.Cd34rZl-.js",a+"/_app/immutable/nodes/0.CbsSRnKE.js",a+"/_app/immutable/assets/0.Cb5vRzMp.css",a+"/_app/immutable/nodes/1.FIugR_jQ.js",a+"/_app/immutable/nodes/2.B8lR6Ytl.js",a+"/_app/immutable/chunks/BORm3wtc.js",a+"/_app/immutable/chunks/BdyEwvKM.js",a+"/_app/immutable/chunks/BgfVtPUY.js",a+"/_app/immutable/chunks/CAL8yDNt.js",a+"/_app/immutable/chunks/CO_n26iD.js",a+"/_app/immutable/chunks/Cjaz9aih.js",a+"/_app/immutable/chunks/DsnmJJEf.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="a2977cb",$=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=[],C=[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 x={method:(t,i)=>{o(`Cache first: ${t.url}`);const e=g(t,i);return i||e},regexes:C},j={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: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,x,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 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"start.CwhL7q0v.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|