mtxuilib 0.1.36 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mtxuilib",
3
3
  "private": false,
4
- "version": "0.1.36",
4
+ "version": "0.1.38",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export declare function simpleUrlProxy(url: string): Promise<Response>;
@@ -1,4 +0,0 @@
1
- export function simpleUrlProxy(url) {
2
- const response = fetch(url);
3
- return response;
4
- }
@@ -1,5 +0,0 @@
1
- declare function installEvent(): void;
2
- declare function activateEvent(): void;
3
- declare const cacheName: "v2";
4
- declare function cacheClone(e: any): Promise<Response>;
5
- declare function fetchEvent(): void;
@@ -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();
@@ -1,6 +0,0 @@
1
- export type ResolverDef = {
2
- input: any;
3
- output: any;
4
- transformer: boolean;
5
- errorShape: any;
6
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- import { DehydratedState } from "@tanstack/react-query";
2
- import { PropsWithChildren } from "react";
3
- export declare function TrpcDehydrate(props: {
4
- callback: () => Promise<DehydratedState>;
5
- } & PropsWithChildren): Promise<import("react/jsx-runtime").JSX.Element>;
@@ -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
- }