mtxuilib 0.1.37 → 0.1.38
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/package.json +1 -1
- package/dist/lib/fetch-proxy/fetch-proxy.d.ts +0 -1
- package/dist/lib/fetch-proxy/fetch-proxy.js +0 -4
- package/dist/lib/service-worker.d.ts +0 -5
- package/dist/lib/service-worker.js +0 -29
- package/dist/lib/trpc/types.d.ts +0 -6
- package/dist/lib/trpc/types.js +0 -1
- package/dist/lib/trpc-query/TrpcComponents/TrpcDehydrate.d.ts +0 -5
- package/dist/lib/trpc-query/TrpcComponents/TrpcDehydrate.js +0 -7
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function simpleUrlProxy(url: string): Promise<Response>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const installEvent = () => {
|
|
3
|
-
self.addEventListener('install', () => {
|
|
4
|
-
console.log('service worker installed');
|
|
5
|
-
});
|
|
6
|
-
};
|
|
7
|
-
installEvent();
|
|
8
|
-
const activateEvent = () => {
|
|
9
|
-
self.addEventListener('activate', () => {
|
|
10
|
-
console.log('service worker activated');
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
activateEvent();
|
|
14
|
-
const cacheName = 'v2';
|
|
15
|
-
const cacheClone = async (e) => {
|
|
16
|
-
const res = await fetch(e.request);
|
|
17
|
-
const resClone = res.clone();
|
|
18
|
-
const cache = await caches.open(cacheName);
|
|
19
|
-
await cache.put(e.request, resClone);
|
|
20
|
-
return res;
|
|
21
|
-
};
|
|
22
|
-
const fetchEvent = () => {
|
|
23
|
-
self.addEventListener('fetch', (e) => {
|
|
24
|
-
e.respondWith(cacheClone(e)
|
|
25
|
-
.catch(() => caches.match(e.request))
|
|
26
|
-
.then((res) => res));
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
fetchEvent();
|
package/dist/lib/trpc/types.d.ts
DELETED
package/dist/lib/trpc/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { HydrationBoundary } from "@tanstack/react-query";
|
|
3
|
-
import { Suspense } from "react";
|
|
4
|
-
export async function TrpcDehydrate(props) {
|
|
5
|
-
const { callback, children } = props;
|
|
6
|
-
return _jsx(HydrationBoundary, { state: await callback(), children: _jsx(Suspense, { fallback: _jsx("div", { children: "loading dehydrate" }), children: children }) });
|
|
7
|
-
}
|