@tui-sandbox/library 9.0.0 → 9.0.1
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/CHANGELOG.md +7 -0
- package/dist/browser/assets/{index-_30KjjEK.js → index-DroaKLT0.js} +7 -7
- package/dist/browser/index.html +1 -1
- package/dist/src/server/connection/trpc.d.ts +6 -14
- package/dist/src/server/neovim/environment/createTempDir.test.js +3 -2
- package/dist/src/server/neovim/index.js +6 -1
- package/dist/src/server/server.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/server/neovim/environment/createTempDir.test.ts +3 -2
- package/src/server/neovim/index.ts +6 -1
package/dist/browser/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<title>tui-sandbox integration tests</title>
|
|
6
|
-
<script type="module" crossorigin src="/assets/index-
|
|
6
|
+
<script type="module" crossorigin src="/assets/index-DroaKLT0.js"></script>
|
|
7
7
|
<link rel="stylesheet" crossorigin href="/assets/index-D6fBrqAi.css">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
@@ -7,20 +7,12 @@ export declare const trpc: {
|
|
|
7
7
|
}>;
|
|
8
8
|
procedure: import("@trpc/server/unstable-core-do-not-import").ProcedureBuilder<object, object, object, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, false>;
|
|
9
9
|
middleware: <$ContextOverrides>(fn: import("@trpc/server/unstable-core-do-not-import").MiddlewareFunction<object, object, object, $ContextOverrides, unknown>) => import("@trpc/server/unstable-core-do-not-import").MiddlewareBuilder<object, object, $ContextOverrides, unknown>;
|
|
10
|
-
router: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}, TInput>;
|
|
17
|
-
<TInput extends import("@trpc/server/unstable-core-do-not-import").CreateRouterOptions>(input: TInput): import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
18
|
-
ctx: object;
|
|
19
|
-
meta: object;
|
|
20
|
-
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
21
|
-
transformer: false;
|
|
22
|
-
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
|
|
23
|
-
};
|
|
10
|
+
router: <TInput extends import("@trpc/server/unstable-core-do-not-import").CreateRouterOptions>(input: TInput) => import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
11
|
+
ctx: object;
|
|
12
|
+
meta: object;
|
|
13
|
+
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
14
|
+
transformer: false;
|
|
15
|
+
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
|
|
24
16
|
mergeRouters: typeof import("@trpc/server/unstable-core-do-not-import").mergeRouters;
|
|
25
17
|
createCallerFactory: <TRecord extends import("@trpc/server").RouterRecord>(router: Pick<import("@trpc/server/unstable-core-do-not-import").Router<{
|
|
26
18
|
ctx: object;
|
|
@@ -50,7 +50,7 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres
|
|
|
50
50
|
var e = new Error(message);
|
|
51
51
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
52
52
|
});
|
|
53
|
-
import fs
|
|
53
|
+
import fs from "fs";
|
|
54
54
|
import nodePath from "path";
|
|
55
55
|
import { expect, it } from "vitest";
|
|
56
56
|
import { createTempDir } from "./createTempDir.js";
|
|
@@ -65,7 +65,8 @@ class TempDirectory {
|
|
|
65
65
|
return new TempDirectory(tmp);
|
|
66
66
|
}
|
|
67
67
|
[Symbol.dispose]() {
|
|
68
|
-
|
|
68
|
+
// eslint-disable-next-line no-empty-function
|
|
69
|
+
fs.rm(this.path, { recursive: true }, () => { });
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
it("should create a temp dir with no contents", async () => {
|
|
@@ -78,11 +78,16 @@ export async function installDependencies(testEnvironmentPath, config) {
|
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
console.log(`🚀 Running Neovim prepareFilePath ${prepareFilePath}...`);
|
|
81
|
+
let output = "";
|
|
81
82
|
app.events.on("stdout", data => {
|
|
82
|
-
|
|
83
|
+
assert(data);
|
|
84
|
+
assert(typeof data === "string");
|
|
85
|
+
output += data;
|
|
83
86
|
});
|
|
84
87
|
await app.startNextAndKillCurrent(testDirectory, { filename: "empty.txt", headlessCmd: `lua dofile("${prepareFilePath}")` }, { cols: 80, rows: 24 });
|
|
85
88
|
await app.application.untilExit();
|
|
89
|
+
console.log(`🚀 Neovim installDependencies output:`);
|
|
90
|
+
console.log(output);
|
|
86
91
|
}
|
|
87
92
|
catch (e_1) {
|
|
88
93
|
env_1.error = e_1;
|
|
@@ -103,7 +103,7 @@ export declare function createAppRouter(config: DirectoriesConfig): Promise<impo
|
|
|
103
103
|
meta: object;
|
|
104
104
|
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
105
105
|
transformer: false;
|
|
106
|
-
}, {
|
|
106
|
+
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
|
|
107
107
|
start: import("@trpc/server").TRPCMutationProcedure<{
|
|
108
108
|
input: {
|
|
109
109
|
tabId: {
|
|
@@ -174,7 +174,7 @@ export declare function createAppRouter(config: DirectoriesConfig): Promise<impo
|
|
|
174
174
|
};
|
|
175
175
|
output: import("./types.js").RunExCommandOutput;
|
|
176
176
|
}>;
|
|
177
|
-
}
|
|
177
|
+
}>>;
|
|
178
178
|
}>>>;
|
|
179
179
|
export type AppRouter = Awaited<ReturnType<typeof createAppRouter>>;
|
|
180
180
|
export type RouterInput = inferRouterInputs<AppRouter>;
|