forked from sashin/sashinexists
run npm install to generate a package lock
This commit is contained in:
19
node_modules/@weborigami/origami/src/protocols/httptree.js
generated
vendored
Normal file
19
node_modules/@weborigami/origami/src/protocols/httptree.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { SiteTree } from "@weborigami/async-tree";
|
||||
import assertTreeIsDefined from "../common/assertTreeIsDefined.js";
|
||||
import constructSiteTree from "../common/constructSiteTree.js";
|
||||
|
||||
/**
|
||||
* Return a website tree via HTTP.
|
||||
*
|
||||
* @typedef {import("@weborigami/types").AsyncTree} AsyncTree
|
||||
* @typedef {import("@weborigami/async-tree").Treelike} Treelike
|
||||
* @typedef {import("../../index.ts").Invocable} Invocable
|
||||
*
|
||||
* @this {AsyncTree|null}
|
||||
* @param {string} host
|
||||
* @param {...string} keys
|
||||
*/
|
||||
export default function httptree(host, ...keys) {
|
||||
assertTreeIsDefined(this, "httptree:");
|
||||
return constructSiteTree("http:", SiteTree, this, host, ...keys);
|
||||
}
|
||||
Reference in New Issue
Block a user