@noirhare/dsh-host-webserver 0.0.1 → 0.0.3
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/lib/host/index.d.ts +5 -0
- package/lib/host/index.js +8 -0
- package/lib/host/invariant.d.ts +1 -0
- package/lib/{invariant.js → host/invariant.js} +0 -1
- package/package.json +13 -13
- package/lib/index.js +0 -11
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import z from "@deepseek-ai/schemastery";
|
|
2
|
+
import { WebServer } from "@deepseek-ai/dsh-host-webserver";
|
|
3
|
+
export default class NRWebServer extends WebServer {
|
|
4
|
+
static Config = z.object({
|
|
5
|
+
host: z.string().required(),
|
|
6
|
+
port: z.natural().max(65535).required()
|
|
7
|
+
});
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@deepseek-ai/dsh-host-webserver/invariant";
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noirhare/dsh-host-webserver",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"author": "NoirHare",
|
|
3
|
+
"version": "0.0.3",
|
|
5
4
|
"license": "MIT",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "NoirHare",
|
|
7
|
+
"url": "https://github.com/NoirHare"
|
|
8
|
+
},
|
|
6
9
|
"repository": {
|
|
7
10
|
"type": "git",
|
|
8
11
|
"url": "git+https://github.com/NoirHare/dsh-bundle.git",
|
|
9
12
|
"directory": "packages/host-webserver"
|
|
10
13
|
},
|
|
11
|
-
"type": "module",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": "./lib/index.js",
|
|
14
|
-
"./invariant": "./lib/invariant.js",
|
|
15
|
-
"./package.json": "./package.json"
|
|
16
|
-
},
|
|
17
14
|
"files": [
|
|
18
15
|
"lib"
|
|
19
16
|
],
|
|
20
17
|
"publishConfig": {
|
|
21
18
|
"access": "public"
|
|
22
19
|
},
|
|
20
|
+
"type": "module",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": "./lib/host/index.js",
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
23
25
|
"peerDependencies": {
|
|
24
|
-
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2",
|
|
25
26
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
26
|
-
"@deepseek-ai/
|
|
27
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2"
|
|
27
28
|
},
|
|
28
29
|
"scripts": {
|
|
29
|
-
"build": "
|
|
30
|
-
"
|
|
31
|
-
"typecheck": "tsc --noEmit"
|
|
30
|
+
"build": "tsc -b && node build.ts",
|
|
31
|
+
"prepublish": "pnpm build"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/lib/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import z from "@deepseek-ai/schemastery";
|
|
2
|
-
import { WebServer } from "@deepseek-ai/dsh-host-webserver";
|
|
3
|
-
//#region src/index.ts
|
|
4
|
-
var NRWebServer = class extends WebServer {
|
|
5
|
-
static Config = z.object({
|
|
6
|
-
host: z.string().required(),
|
|
7
|
-
port: z.natural().max(65535).required()
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { NRWebServer as default };
|