Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Sep 30, 2023
1 parent a18fa48 commit c7e6b40
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Documentation/_worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Documentation/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Documentation/modules/Build.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<li><a href="Build.html">Build</a></li></ul>
<h1>Module Build</h1></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/NikolaRHristov/TypeScriptESBuild/blob/main/Source/Interface/Build.ts#L1">Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Interface/Build.ts:1</a></li></ul></aside>
<li>Defined in <a href="https://github.com/NikolaRHristov/TypeScriptESBuild/blob/main/Source/Function/Build.ts#L1">Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Function/Build.ts:1</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<h3 class="tsd-index-heading uppercase">Index</h3>
Expand Down
2 changes: 1 addition & 1 deletion Documentation/modules/Exec.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<li><a href="Exec.html">Exec</a></li></ul>
<h1>Module Exec</h1></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/NikolaRHristov/TypeScriptESBuild/blob/main/Source/Interface/Exec.ts#L1">Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Interface/Exec.ts:1</a></li></ul></aside>
<li>Defined in <a href="https://github.com/NikolaRHristov/TypeScriptESBuild/blob/main/Source/Function/Exec.ts#L1">Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Function/Exec.ts:1</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<h3 class="tsd-index-heading uppercase">Index</h3>
Expand Down
2 changes: 1 addition & 1 deletion Documentation/modules/File.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<li><a href="File.html">File</a></li></ul>
<h1>Module File</h1></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/NikolaRHristov/TypeScriptESBuild/blob/main/Source/Interface/File.ts#L1">Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Interface/File.ts:1</a></li></ul></aside>
<li>Defined in <a href="https://github.com/NikolaRHristov/TypeScriptESBuild/blob/main/Source/Function/File.ts#L1">Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Function/File.ts:1</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<h3 class="tsd-index-heading uppercase">Index</h3>
Expand Down
2 changes: 1 addition & 1 deletion Documentation/modules/JSON.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<li><a href="JSON.html">JSON</a></li></ul>
<h1>Module JSON</h1></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/NikolaRHristov/TypeScriptESBuild/blob/main/Source/Interface/JSON.ts#L1">Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Interface/JSON.ts:1</a></li></ul></aside>
<li>Defined in <a href="https://github.com/NikolaRHristov/TypeScriptESBuild/blob/main/Source/Function/JSON.ts#L1">Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Function/JSON.ts:1</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<h3 class="tsd-index-heading uppercase">Index</h3>
Expand Down
7 changes: 5 additions & 2 deletions Source/Function/Worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ export default <ExportedHandler<Environment>>{
const url = new URL(request.url);

if (url.pathname.startsWith("/functions/")) {
const File = await import(url.pathname);
console.log(File);
// const File = await import(url.pathname);
console.log(process.cwd());

console.log((await import("fs/promises")).readFile(url.pathname));

return new Response(url.pathname);
}

Expand Down
2 changes: 1 addition & 1 deletion Target/Function/Worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c7e6b40

Please sign in to comment.