ship 1.4.37:Arcrun@d8bbf2241bd6
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// ../../matrix/arcrun/.component-builds/http_request/src/index.ts
|
||||
// .component-builds/http_request/src/index.ts
|
||||
import componentWasm from "./component.wasm";
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/compose.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/compose.js
|
||||
var compose = (middleware, onError, onNotFound) => {
|
||||
return (context, next) => {
|
||||
let index = -1;
|
||||
@@ -45,10 +45,10 @@ var compose = (middleware, onError, onNotFound) => {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request/constants.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request/constants.js
|
||||
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/body.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/body.js
|
||||
var parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {
|
||||
const { all = false, dot = false } = options;
|
||||
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
|
||||
@@ -120,7 +120,7 @@ var handleParsingNestedValues = (form, key, value) => {
|
||||
});
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/url.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/url.js
|
||||
var splitPath = (path) => {
|
||||
const paths = path.split("/");
|
||||
if (paths[0] === "") {
|
||||
@@ -324,7 +324,7 @@ var getQueryParams = (url, key) => {
|
||||
};
|
||||
var decodeURIComponent_ = decodeURIComponent;
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request.js
|
||||
var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_);
|
||||
var HonoRequest = class {
|
||||
/**
|
||||
@@ -592,7 +592,7 @@ var HonoRequest = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/html.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/html.js
|
||||
var HtmlEscapedCallbackPhase = {
|
||||
Stringify: 1,
|
||||
BeforeStream: 2,
|
||||
@@ -634,7 +634,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/context.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/context.js
|
||||
var TEXT_PLAIN = "text/plain; charset=UTF-8";
|
||||
var setDefaultContentType = (contentType, headers) => {
|
||||
return {
|
||||
@@ -1041,7 +1041,7 @@ var Context = class {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router.js
|
||||
var METHOD_NAME_ALL = "ALL";
|
||||
var METHOD_NAME_ALL_LOWERCASE = "all";
|
||||
var METHODS = ["get", "post", "put", "delete", "options", "patch"];
|
||||
@@ -1049,10 +1049,10 @@ var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is
|
||||
var UnsupportedPathError = class extends Error {
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/constants.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/constants.js
|
||||
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono-base.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono-base.js
|
||||
var notFoundHandler = (c) => {
|
||||
return c.text("404 Not Found", 404);
|
||||
};
|
||||
@@ -1423,11 +1423,11 @@ var Hono = class _Hono {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
||||
var emptyParam = [];
|
||||
function match(method, path) {
|
||||
const matchers = this.buildAllMatchers();
|
||||
const match2 = ((method2, path2) => {
|
||||
const match2 = (method2, path2) => {
|
||||
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
|
||||
const staticMatch = matcher[2][path2];
|
||||
if (staticMatch) {
|
||||
@@ -1439,12 +1439,12 @@ function match(method, path) {
|
||||
}
|
||||
const index = match3.indexOf("", 1);
|
||||
return [matcher[1][index], match3];
|
||||
});
|
||||
};
|
||||
this.match = match2;
|
||||
return match2(method, path);
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/node.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/node.js
|
||||
var LABEL_REG_EXP_STR = "[^/]+";
|
||||
var ONLY_WILDCARD_REG_EXP_STR = ".*";
|
||||
var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
||||
@@ -1552,7 +1552,7 @@ var Node = class _Node {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/trie.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/trie.js
|
||||
var Trie = class {
|
||||
#context = { varIndex: 0 };
|
||||
#root = new Node();
|
||||
@@ -1608,7 +1608,7 @@ var Trie = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/router.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/router.js
|
||||
var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)];
|
||||
var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
|
||||
function buildWildcardRegExp(path) {
|
||||
@@ -1787,7 +1787,7 @@ var RegExpRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/smart-router/router.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/smart-router/router.js
|
||||
var SmartRouter = class {
|
||||
name = "SmartRouter";
|
||||
#routers = [];
|
||||
@@ -1842,7 +1842,7 @@ var SmartRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/node.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/node.js
|
||||
var emptyParams = /* @__PURE__ */ Object.create(null);
|
||||
var hasChildren = (children) => {
|
||||
for (const _ in children) {
|
||||
@@ -2017,7 +2017,7 @@ var Node2 = class _Node2 {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/router.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/router.js
|
||||
var TrieRouter = class {
|
||||
name = "TrieRouter";
|
||||
#node;
|
||||
@@ -2039,7 +2039,7 @@ var TrieRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono.js
|
||||
var Hono2 = class extends Hono {
|
||||
/**
|
||||
* Creates an instance of the Hono class.
|
||||
@@ -2054,7 +2054,7 @@ var Hono2 = class extends Hono {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/middleware/cors/index.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/middleware/cors/index.js
|
||||
var cors = (options) => {
|
||||
const defaults = {
|
||||
origin: "*",
|
||||
@@ -2142,7 +2142,7 @@ var cors = (options) => {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/cypher-executor/src/lib/wasi-shim.ts
|
||||
// cypher-executor/src/lib/wasi-shim.ts
|
||||
var WASI_ESUCCESS = 0;
|
||||
var WASI_ENOSYS = 76;
|
||||
var FD_STDIN = 0;
|
||||
@@ -2501,7 +2501,7 @@ function createWasiShim(stdinData, hostFunctions) {
|
||||
return shim;
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/src/index.ts
|
||||
// .component-builds/http_request/src/index.ts
|
||||
var app = new Hono2();
|
||||
app.use("*", cors());
|
||||
app.get("/", (c) => c.json({ ok: true, component: "http_request" }));
|
||||
@@ -2522,7 +2522,7 @@ app.post("/", async (c) => {
|
||||
);
|
||||
}
|
||||
});
|
||||
var index_default = app;
|
||||
var src_default = app;
|
||||
async function runWasm(input) {
|
||||
const hostFunctions = {
|
||||
http_request: async (url, method, headersJson, body) => {
|
||||
@@ -2568,5 +2568,5 @@ async function runWasm(input) {
|
||||
return JSON.parse(stdout);
|
||||
}
|
||||
export {
|
||||
index_default as default
|
||||
src_default as default
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user