@nkzw/fate-devtools 0.0.0-stage → 2.0.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Nakazawa Tech
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,19 @@
1
+ import { FateClient } from "@nkzw/fate";
2
+ export type FateDevtoolsOptions = Readonly<{
3
+ /** Number of network operations and cache changes kept in the log. Defaults to 300. */
4
+ logSize?: number;
5
+ /** Shown in the panel when more than one client is connected. Defaults to `fate`. */
6
+ name?: string;
7
+ }>;
8
+ /**
9
+ * Connects a fate client to the devtools panel. Returns a function that
10
+ * disconnects it again and restores the client's original transport.
11
+ *
12
+ * Connecting the same client more than once is safe; the client stays
13
+ * connected until every returned disposer has been called.
14
+ *
15
+ * The devtools are intended for development. Guard the call with
16
+ * `import.meta.env.DEV` (or your bundler's equivalent) to keep them out of
17
+ * production bundles.
18
+ */
19
+ export declare function connectFateDevtools(client: FateClient<any, any, any>, options?: FateDevtoolsOptions): () => void;
package/lib/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export { t as connectFateDevtools } from "./src-BAd3o4sS.mjs";