-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mike dupont
committed
Oct 16, 2024
1 parent
ddd5881
commit 74ac652
Showing
18 changed files
with
448 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
lint: | ||
deno lint | ||
test: | ||
deno run --allow-env --allow-read main_test1.ts | ||
|
||
test3: | ||
deno test --allow-read --trace-leaks | ||
filter: | ||
npx ts-node ./filter.ts | ||
|
||
test: | ||
test2: | ||
npx ts-node ./process.ts | ||
process_files: | ||
npx ts-node ./process_files.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
// | ||
export function associate_cache(url: string, | ||
export interface Struct { | ||
newpath : string; | ||
}; | ||
|
||
export function associate_cache(_url: string, | ||
hostname: string, | ||
url_parts :string[], | ||
fn_parts:string[]): any { | ||
const alen = url_parts.length-1; | ||
fn_parts:string[]): Struct { | ||
// const alen = url_parts.length-1; | ||
//const filename = url_parts[url_parts.length-1]; | ||
//console.log("cache url: " + url); | ||
//console.log("cache: parts:" + url_parts.slice(6,alen +1)); | ||
const hostname_base = hostname.split(".")[0] | ||
const newpath = "../inputs/" + hostname_base + url_parts.slice(0,4).join("/") + "/"+ fn_parts.join("."); | ||
//console.log("cache: slice:" + newpath); | ||
//const htmlStream = fs.createReadStream(newpath); | ||
return { | ||
"newpath" : newpath | ||
}; | ||
} | ||
|
||
export function save_cache(url:string, | ||
hostname: string, | ||
url_parts:string[], | ||
fn_parts: string[], | ||
cached:any, | ||
results:any) {} | ||
export function save_cache(_url:string, | ||
_hostname: string, | ||
_url_parts:string[], | ||
_fn_parts: string[], | ||
_cached:Struct, | ||
_results:Struct):void {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.