sliftutils 1.7.5 → 1.7.6

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.
@@ -0,0 +1,43 @@
1
+ process.env.NODE_ENV = "production";
2
+ import os from "os";
3
+ import path from "path";
4
+ import { SocketFunction } from "socket-function/SocketFunction";
5
+ import { RequireController } from "socket-function/require/RequireController";
6
+ import { hostServer } from "../misc/https/hostServer";
7
+ // Import browser code, so it is allowed to be required by the client
8
+ import "./browser";
9
+
10
+ // Static test site for the remote storage system (storage/remoteStorage). The browser talks to
11
+ // the storage server directly, so this server only serves the page.
12
+
13
+ const DOMAIN = "stest.vidgridweb.com";
14
+ const PORT = 4445;
15
+
16
+ process.on("unhandledRejection", (error) => {
17
+ console.error("Unhandled promise rejection:", error);
18
+ });
19
+ process.on("uncaughtException", (error) => {
20
+ console.error("Uncaught exception:", error);
21
+ });
22
+
23
+ async function main() {
24
+ RequireController.allowAllNodeModules();
25
+ SocketFunction.expose(RequireController);
26
+ SocketFunction.setDefaultHTTPCall(RequireController, "requireHTML", {
27
+ requireCalls: ["./teststorage/browser.tsx"],
28
+ });
29
+ RequireController.addStaticRoot(path.resolve("."));
30
+
31
+ await hostServer({
32
+ domain: DOMAIN,
33
+ port: PORT,
34
+ cloudflareApiTokenPath: os.homedir() + "/vidgridweb.com.key",
35
+ setDNSRecord: true,
36
+ });
37
+ console.log(`Storage test site running at https://${DOMAIN}:${PORT}`);
38
+ }
39
+
40
+ main().catch(e => {
41
+ console.error(e);
42
+ process.exit(1);
43
+ });
package/yarn.lock CHANGED
@@ -2105,9 +2105,9 @@ typenode@^6.6.1:
2105
2105
  typescript "5.3.3"
2106
2106
 
2107
2107
  typesafecss@*:
2108
- version "0.27.0"
2109
- resolved "https://registry.yarnpkg.com/typesafecss/-/typesafecss-0.27.0.tgz#b88df162f13abd7a0da8758f92ec4996170fe39a"
2110
- integrity sha512-YkcOw9eUv6VhBZ9d9MfVkHlCB1P6zqIw3DTp1PqEmfLZcFr72ZkSmQrnrRP/9wxbOJNhUK8/OvnpuYB2fcD5UQ==
2108
+ version "0.31.0"
2109
+ resolved "https://registry.yarnpkg.com/typesafecss/-/typesafecss-0.31.0.tgz#deac4a9b6bb95e0220b87f10b84648e55782d195"
2110
+ integrity sha512-DzRibU6BBb/v+3RYRO3grn+oLKUX3JwFWqH94cPhr2rFpGW3rEspUhnolBkoNzkiWPhlnjBK0a7kevtQUqe1bw==
2111
2111
 
2112
2112
  typescript@5.3.3:
2113
2113
  version "5.3.3"