Aktualisiere Importe auf Node.js-Module und passe .gitignore an
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1,2 +1,3 @@
 | 
				
			|||||||
node_modules
 | 
					node_modules
 | 
				
			||||||
package-log.json
 | 
					dist
 | 
				
			||||||
 | 
					package-lock.json
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
import http, { IncomingMessage, ServerResponse } from "http";
 | 
					import http, { IncomingMessage, ServerResponse } from "node:http";
 | 
				
			||||||
import { URL } from "url";
 | 
					import { URL } from "node:url";
 | 
				
			||||||
import { Buffer } from "buffer";
 | 
					import { Buffer } from "node:buffer";
 | 
				
			||||||
import querystring from "querystring";
 | 
					import querystring from "node:querystring";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import Router from "./router.js";
 | 
					import Router from "./router.js";
 | 
				
			||||||
import Tpl from "./template.js";
 | 
					import Tpl from "./template.js";
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,9 +1,9 @@
 | 
				
			|||||||
import fs from "fs";
 | 
					import fs from "node:fs";
 | 
				
			||||||
import path from "path";
 | 
					import path from "node:path";
 | 
				
			||||||
import Tpl from "./template.js";
 | 
					import Tpl from "./template.js";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { Request } from "./index.js";
 | 
					import { Request } from "./index.js";
 | 
				
			||||||
import { ServerResponse } from "http";
 | 
					import { ServerResponse } from "node:http";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type RouteCallback = (req: Request, res: ServerResponse) => void;
 | 
					type RouteCallback = (req: Request, res: ServerResponse) => void;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
import fs from "fs";
 | 
					import fs from "node:fs";
 | 
				
			||||||
import path from "path";
 | 
					import path from "node:path";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default class Template {
 | 
					export default class Template {
 | 
				
			||||||
  private views: string;
 | 
					  private views: string;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,8 @@
 | 
				
			|||||||
    "outDir": "./dist",
 | 
					    "outDir": "./dist",
 | 
				
			||||||
    "rootDir": "./src",
 | 
					    "rootDir": "./src",
 | 
				
			||||||
    "strict": true,
 | 
					    "strict": true,
 | 
				
			||||||
    "esModuleInterop": true
 | 
					    "esModuleInterop": true,
 | 
				
			||||||
 | 
					    "removeComments": true
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "include": ["src"],
 | 
					  "include": ["src"],
 | 
				
			||||||
  "exclude": ["node_modules"]
 | 
					  "exclude": ["node_modules"]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user