@bitblit/ratchet-epsilon-common 5.0.528-alpha → 5.0.529-alpha
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.
|
@@ -4,10 +4,12 @@ import { TestErrorServer } from '../sample/test-error-server.js';
|
|
|
4
4
|
import { LocalContainerServer } from '../local-container-server.js';
|
|
5
5
|
import { RatchetEpsilonCommonInfo } from '../build/ratchet-epsilon-common-info.js';
|
|
6
6
|
import { LocalServer } from '../local-server.js';
|
|
7
|
+
import { LocalFileServer } from "../local-file-server.js";
|
|
7
8
|
export class RatchetCliHandler extends AbstractRatchetCliHandler {
|
|
8
9
|
fetchHandlerMap() {
|
|
9
10
|
return {
|
|
10
11
|
'run-background-process': RunBackgroundProcessFromCommandLine.runFromCliArgs,
|
|
12
|
+
'run-file-server': LocalFileServer.runLocalFileServerFromCliArgs,
|
|
11
13
|
'run-test-error-server': TestErrorServer.runFromCliArgs,
|
|
12
14
|
'run-local-container-server': LocalContainerServer.runFromCliArgs,
|
|
13
15
|
'run-sample-local-server': LocalServer.runSampleLocalServerFromCliArgs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ratchet-cli-handler.js","sourceRoot":"","sources":["../../src/cli/ratchet-cli-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6DAA6D,CAAC;AAExG,OAAO,EAAE,mCAAmC,EAAE,MAAM,+CAA+C,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ratchet-cli-handler.js","sourceRoot":"","sources":["../../src/cli/ratchet-cli-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6DAA6D,CAAC;AAExG,OAAO,EAAE,mCAAmC,EAAE,MAAM,+CAA+C,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,OAAO,iBAAkB,SAAQ,yBAAyB;IAC9D,eAAe;QACb,OAAO;YACL,wBAAwB,EAAE,mCAAmC,CAAC,cAAc;YAC5E,iBAAiB,EAAE,eAAe,CAAC,6BAA6B;YAChE,uBAAuB,EAAE,eAAe,CAAC,cAAc;YACvD,4BAA4B,EAAE,oBAAoB,CAAC,cAAc;YACjE,yBAAyB,EAAE,WAAW,CAAC,+BAA+B;YACtE,+BAA+B,EAAE,WAAW,CAAC,+BAA+B;SAC7E,CAAC;IACJ,CAAC;IAED,gBAAgB;QACd,OAAO,wBAAwB,CAAC,gBAAgB,EAAE,CAAC;IACrD,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IncomingMessage, ServerResponse } from "http";
|
|
2
|
+
export declare class LocalFileServer {
|
|
3
|
+
private port;
|
|
4
|
+
private https;
|
|
5
|
+
private fileRoot;
|
|
6
|
+
private server;
|
|
7
|
+
private urlRoot;
|
|
8
|
+
constructor(port?: number, https?: boolean, fileRoot?: string);
|
|
9
|
+
runServer(): Promise<boolean>;
|
|
10
|
+
requestHandler(request: IncomingMessage, response: ServerResponse): Promise<any>;
|
|
11
|
+
writeFolderListToResponse(rootpth: string, pth: string, response: ServerResponse): void;
|
|
12
|
+
static runLocalFileServerFromCliArgs(args: string[]): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Logger } from "@bitblit/ratchet-common/logger/logger";
|
|
2
|
+
import { LoggerLevelName } from "@bitblit/ratchet-common/logger/logger-level-name";
|
|
3
|
+
import http from "http";
|
|
4
|
+
import https from "https";
|
|
5
|
+
import { LocalServerCert } from "./local-server-cert.js";
|
|
6
|
+
import { EsmRatchet } from "@bitblit/ratchet-common/lang/esm-ratchet";
|
|
7
|
+
import path from "path";
|
|
8
|
+
import fs from 'fs';
|
|
9
|
+
import mime from 'mime-types';
|
|
10
|
+
import { SimpleArgRatchet } from "@bitblit/ratchet-common/lang/simple-arg-ratchet";
|
|
11
|
+
import { ErrorRatchet } from "@bitblit/ratchet-common/lang/error-ratchet";
|
|
12
|
+
import { NumberRatchet } from "@bitblit/ratchet-common/lang/number-ratchet";
|
|
13
|
+
import { BooleanRatchet } from "@bitblit/ratchet-common/lang/boolean-ratchet";
|
|
14
|
+
export class LocalFileServer {
|
|
15
|
+
port;
|
|
16
|
+
https;
|
|
17
|
+
fileRoot;
|
|
18
|
+
server;
|
|
19
|
+
urlRoot;
|
|
20
|
+
constructor(port = 8888, https = false, fileRoot = EsmRatchet.fetchDirName(import.meta.url)) {
|
|
21
|
+
this.port = port;
|
|
22
|
+
this.https = https;
|
|
23
|
+
this.fileRoot = fileRoot;
|
|
24
|
+
if (fs.existsSync(fileRoot)) {
|
|
25
|
+
if (!fs.statSync(fileRoot).isDirectory()) {
|
|
26
|
+
throw ErrorRatchet.fErr('Cannot start with %s - it is not a directory', fileRoot);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
throw ErrorRatchet.fErr('Cannot start with %s - it does not exist', fileRoot);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
async runServer() {
|
|
34
|
+
return new Promise((res, rej) => {
|
|
35
|
+
try {
|
|
36
|
+
Logger.info('Starting file server on port %d at root %s', this.port, this.fileRoot);
|
|
37
|
+
if (this.https) {
|
|
38
|
+
const options = {
|
|
39
|
+
key: LocalServerCert.CLIENT_KEY_PEM,
|
|
40
|
+
cert: LocalServerCert.CLIENT_CERT_PEM,
|
|
41
|
+
};
|
|
42
|
+
Logger.info('Starting https server - THIS SERVER IS NOT SECURE! The KEYS are in the code! Testing Server Only - Use at your own risk!');
|
|
43
|
+
this.server = https.createServer(options, this.requestHandler.bind(this)).listen(this.port);
|
|
44
|
+
this.urlRoot = 'https://localhost:' + this.port;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.server = http.createServer(this.requestHandler.bind(this)).listen(this.port);
|
|
48
|
+
this.urlRoot = 'http://localhost:' + this.port;
|
|
49
|
+
}
|
|
50
|
+
Logger.info('File server is listening');
|
|
51
|
+
process.on('SIGINT', () => {
|
|
52
|
+
Logger.info('Caught SIGINT - shutting down test server...');
|
|
53
|
+
this.server.close();
|
|
54
|
+
res(true);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
catch (err) {
|
|
58
|
+
Logger.error('Local server failed : %s', err, err);
|
|
59
|
+
rej(err);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
async requestHandler(request, response) {
|
|
64
|
+
let reqPath = request.url.includes('?') ? request.url.substring(0, request.url.indexOf('?')) : request.url;
|
|
65
|
+
let filePath = path.join(this.fileRoot, reqPath);
|
|
66
|
+
if (fs.existsSync(filePath)) {
|
|
67
|
+
let stats = fs.statSync(filePath);
|
|
68
|
+
if (stats.isFile()) {
|
|
69
|
+
let mimetype = mime.contentType(filePath);
|
|
70
|
+
if (mimetype === 'video/mp2t') {
|
|
71
|
+
mimetype = 'text/x-typescript';
|
|
72
|
+
}
|
|
73
|
+
const buf = fs.readFileSync(filePath);
|
|
74
|
+
response.setHeader('Content-Type', mimetype);
|
|
75
|
+
response.statusCode = 200;
|
|
76
|
+
response.end(buf);
|
|
77
|
+
}
|
|
78
|
+
else if (stats.isDirectory()) {
|
|
79
|
+
this.writeFolderListToResponse(reqPath, filePath, response);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
response.statusCode = 404;
|
|
84
|
+
response.setHeader('Content-Type', 'text/html');
|
|
85
|
+
response.end(`<html><body>No such file: ${reqPath}</body></html>`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
writeFolderListToResponse(rootpth, pth, response) {
|
|
89
|
+
response.statusCode = 200;
|
|
90
|
+
response.setHeader('Content-Type', 'text/html');
|
|
91
|
+
let body = '<html><body><h1>Files in ' + pth + '</h1><ul>';
|
|
92
|
+
if (rootpth !== '/') {
|
|
93
|
+
let sub = rootpth.substring(0, rootpth.lastIndexOf('/'));
|
|
94
|
+
sub = sub.length === 0 ? '/' : sub;
|
|
95
|
+
body += '<li><a href="' + sub + '">..</a></li>';
|
|
96
|
+
}
|
|
97
|
+
fs.readdirSync(pth).forEach(file => {
|
|
98
|
+
let fullUrl = this.urlRoot + rootpth;
|
|
99
|
+
fullUrl += fullUrl.endsWith('/') ? file : '/' + file;
|
|
100
|
+
body += `<li><a href="${fullUrl}">${file}</a></li>`;
|
|
101
|
+
});
|
|
102
|
+
body += '</ul></body></html>';
|
|
103
|
+
response.end(body);
|
|
104
|
+
}
|
|
105
|
+
static async runLocalFileServerFromCliArgs(args) {
|
|
106
|
+
Logger.setLevel(LoggerLevelName.debug);
|
|
107
|
+
const pArgs = SimpleArgRatchet.parseSingleArgs(args, ['root', 'port', 'https']);
|
|
108
|
+
const port = pArgs['port'] ? NumberRatchet.safeNumber(pArgs['port']) : 8888;
|
|
109
|
+
const https = pArgs['https'] ? BooleanRatchet.parseBool(pArgs['https']) : false;
|
|
110
|
+
const root = pArgs['root'] ?? EsmRatchet.fetchDirName(import.meta.url);
|
|
111
|
+
const testServer = new LocalFileServer(port, https, root);
|
|
112
|
+
const res = await testServer.runServer();
|
|
113
|
+
Logger.info('Res was : %s', res);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=local-file-server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"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B,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAErB,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,IAAc;QAC9D,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QACvC,MAAM,KAAK,GAA0B,gBAAgB,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,MAAM,EAAC,MAAM,EAAC,OAAO,CAAC,CAAC,CAAC;QACrG,MAAM,IAAI,GAAU,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACnF,MAAM,KAAK,GAAW,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QACxF,MAAM,IAAI,GAAW,KAAK,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC/E,MAAM,UAAU,GAAoB,IAAI,eAAe,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;QAC3E,MAAM,GAAG,GAAY,MAAM,UAAU,CAAC,SAAS,EAAE,CAAC;QAClD,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;CAIF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitblit/ratchet-epsilon-common",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.529-alpha",
|
|
4
4
|
"description": "Tiny adapter to simplify building API gateway Lambda APIS",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"bin": {
|
|
@@ -39,6 +39,8 @@
|
|
|
39
39
|
"scripts": {
|
|
40
40
|
"run-local-container-server": "yarn mod:build && node bin/cli.js run-local-container-server",
|
|
41
41
|
"run-build-sample-server": "yarn mod:build && node bin/cli.js run-sample-local-server",
|
|
42
|
+
"run-file-server": "node bin/cli.js run-file-server",
|
|
43
|
+
"run-a": "yarn mod:build && yarn run-file-server --root c:/ --https true",
|
|
42
44
|
"run-sample-server": "node bin/cli.js run-sample-local-server",
|
|
43
45
|
"run-test-error-server": "yarn mod:build && node bin/cli.js run-test-error-server",
|
|
44
46
|
"run-batch-sample-server": "yarn mod:build && node bin/cli.js run-sample-local-batch-server",
|
|
@@ -66,10 +68,10 @@
|
|
|
66
68
|
"@aws-sdk/client-sns": "3.679.0",
|
|
67
69
|
"@aws-sdk/client-sqs": "3.679.0",
|
|
68
70
|
"@aws-sdk/types": "3.679.0",
|
|
69
|
-
"@bitblit/ratchet-aws": "5.0.
|
|
70
|
-
"@bitblit/ratchet-common": "5.0.
|
|
71
|
-
"@bitblit/ratchet-misc": "5.0.
|
|
72
|
-
"@bitblit/ratchet-node-only": "5.0.
|
|
71
|
+
"@bitblit/ratchet-aws": "5.0.529-alpha",
|
|
72
|
+
"@bitblit/ratchet-common": "5.0.529-alpha",
|
|
73
|
+
"@bitblit/ratchet-misc": "5.0.529-alpha",
|
|
74
|
+
"@bitblit/ratchet-node-only": "5.0.529-alpha",
|
|
73
75
|
"@smithy/abort-controller": "3.1.6",
|
|
74
76
|
"@smithy/smithy-client": "3.4.2",
|
|
75
77
|
"@smithy/util-waiter": "3.1.7",
|
|
@@ -79,6 +81,7 @@
|
|
|
79
81
|
"js-yaml": "4.1.0",
|
|
80
82
|
"jwks-rsa": "3.1.0",
|
|
81
83
|
"luxon": "3.5.0",
|
|
84
|
+
"mime-types": "3.0.0",
|
|
82
85
|
"route-parser": "0.0.5",
|
|
83
86
|
"rxjs": "7.8.1",
|
|
84
87
|
"strip-js": "1.2.0",
|
|
@@ -86,10 +89,10 @@
|
|
|
86
89
|
},
|
|
87
90
|
"peerDependencies": {
|
|
88
91
|
"@apollo/server": "^4.11.0",
|
|
89
|
-
"@bitblit/ratchet-aws": "5.0.
|
|
90
|
-
"@bitblit/ratchet-common": "5.0.
|
|
91
|
-
"@bitblit/ratchet-misc": "5.0.
|
|
92
|
-
"@bitblit/ratchet-node-only": "5.0.
|
|
92
|
+
"@bitblit/ratchet-aws": "5.0.529-alpha",
|
|
93
|
+
"@bitblit/ratchet-common": "5.0.529-alpha",
|
|
94
|
+
"@bitblit/ratchet-misc": "5.0.529-alpha",
|
|
95
|
+
"@bitblit/ratchet-node-only": "5.0.529-alpha",
|
|
93
96
|
"graphql": "^16.9.0"
|
|
94
97
|
},
|
|
95
98
|
"peerDependenciesMeta": {
|