ship 1.4.33:Arcrun@eebb691
This commit is contained in:
+36
-36
@@ -13,10 +13,10 @@ var __export = (target, all) => {
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/@jitl/quickjs-ffi-types/dist/index.mjs
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-ffi-types/dist/index.mjs
|
||||
var EvalFlags, IntrinsicsFlags, JSPromiseStateEnum, GetOwnPropertyNamesFlags, IsEqualOp;
|
||||
var init_dist = __esm({
|
||||
"../arcrun/registry/components/code/node_modules/@jitl/quickjs-ffi-types/dist/index.mjs"() {
|
||||
"../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-ffi-types/dist/index.mjs"() {
|
||||
EvalFlags = { JS_EVAL_TYPE_GLOBAL: 0, JS_EVAL_TYPE_MODULE: 1, JS_EVAL_TYPE_DIRECT: 2, JS_EVAL_TYPE_INDIRECT: 3, JS_EVAL_TYPE_MASK: 3, JS_EVAL_FLAG_STRICT: 8, JS_EVAL_FLAG_STRIP: 16, JS_EVAL_FLAG_COMPILE_ONLY: 32, JS_EVAL_FLAG_BACKTRACE_BARRIER: 64 };
|
||||
IntrinsicsFlags = { BaseObjects: 1, Date: 2, Eval: 4, StringNormalize: 8, RegExp: 16, RegExpCompiler: 32, JSON: 64, Proxy: 128, MapSet: 256, TypedArrays: 512, Promise: 1024, BigInt: 2048, BigFloat: 4096, BigDecimal: 8192, OperatorOverloading: 16384, BignumExt: 32768 };
|
||||
JSPromiseStateEnum = { Pending: 0, Fulfilled: 1, Rejected: 2 };
|
||||
@@ -25,7 +25,7 @@ var init_dist = __esm({
|
||||
}
|
||||
});
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs
|
||||
function debugLog(...args) {
|
||||
QTS_DEBUG && console.log("quickjs-emscripten:", ...args);
|
||||
}
|
||||
@@ -109,7 +109,7 @@ function applyModuleEvalRuntimeOptions(runtime, options) {
|
||||
}
|
||||
var __defProp2, __export2, QTS_DEBUG, errors_exports, QuickJSUnwrapError, QuickJSWrongOwner, QuickJSUseAfterFree, QuickJSNotImplemented, QuickJSAsyncifyError, QuickJSAsyncifySuspended, QuickJSMemoryLeakDetected, QuickJSEmscriptenModuleError, QuickJSUnknownIntrinsic, QuickJSPromisePending, QuickJSEmptyGetOwnPropertyNames, AwaitYield, UsingDisposable, SymbolDispose, prototypeAsAny, Lifetime, StaticLifetime, WeakLifetime, Scope, AbstractDisposableResult, DisposableSuccess, DisposableFail, DisposableResult, QuickJSDeferredPromise, ModuleMemory, DefaultIntrinsics, QuickJSIterator, ContextMemory, QuickJSContext, QuickJSRuntime, QuickJSEmscriptenModuleCallbacks, QuickJSModuleCallbacks, QuickJSWASMModule;
|
||||
var init_chunk_JTKJZQYV = __esm({
|
||||
"../arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs"() {
|
||||
"../../matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs"() {
|
||||
init_dist();
|
||||
init_dist();
|
||||
__defProp2 = Object.defineProperty;
|
||||
@@ -1041,7 +1041,7 @@ Attempted to suspend at:`);
|
||||
}
|
||||
});
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs
|
||||
var module_6F3E5H7Y_exports = {};
|
||||
__export(module_6F3E5H7Y_exports, {
|
||||
QuickJSModuleCallbacks: () => QuickJSModuleCallbacks,
|
||||
@@ -1050,19 +1050,19 @@ __export(module_6F3E5H7Y_exports, {
|
||||
applyModuleEvalRuntimeOptions: () => applyModuleEvalRuntimeOptions
|
||||
});
|
||||
var init_module_6F3E5H7Y = __esm({
|
||||
"../arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs"() {
|
||||
"../../matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs"() {
|
||||
init_chunk_JTKJZQYV();
|
||||
}
|
||||
});
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs
|
||||
var ffi_exports = {};
|
||||
__export(ffi_exports, {
|
||||
QuickJSFFI: () => QuickJSFFI
|
||||
});
|
||||
var QuickJSFFI;
|
||||
var init_ffi = __esm({
|
||||
"../arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs"() {
|
||||
"../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs"() {
|
||||
QuickJSFFI = class {
|
||||
constructor(module) {
|
||||
this.module = module;
|
||||
@@ -1140,7 +1140,7 @@ var init_ffi = __esm({
|
||||
}
|
||||
});
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.browser.mjs
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.browser.mjs
|
||||
var emscripten_module_browser_exports = {};
|
||||
__export(emscripten_module_browser_exports, {
|
||||
default: () => emscripten_module_browser_default
|
||||
@@ -1587,12 +1587,12 @@ async function QuickJSRaw(moduleArg = {}) {
|
||||
}
|
||||
var emscripten_module_browser_default;
|
||||
var init_emscripten_module_browser = __esm({
|
||||
"../arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.browser.mjs"() {
|
||||
"../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.browser.mjs"() {
|
||||
emscripten_module_browser_default = QuickJSRaw;
|
||||
}
|
||||
});
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/compose.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/compose.js
|
||||
var compose = (middleware, onError, onNotFound) => {
|
||||
return (context, next) => {
|
||||
let index = -1;
|
||||
@@ -1636,10 +1636,10 @@ var compose = (middleware, onError, onNotFound) => {
|
||||
};
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/request/constants.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/request/constants.js
|
||||
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/utils/body.js
|
||||
// ../../matrix/arcrun/registry/components/code/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;
|
||||
@@ -1711,7 +1711,7 @@ var handleParsingNestedValues = (form, key, value) => {
|
||||
});
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/utils/url.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/utils/url.js
|
||||
var splitPath = (path) => {
|
||||
const paths = path.split("/");
|
||||
if (paths[0] === "") {
|
||||
@@ -1915,7 +1915,7 @@ var getQueryParams = (url, key) => {
|
||||
};
|
||||
var decodeURIComponent_ = decodeURIComponent;
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/request.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/request.js
|
||||
var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_);
|
||||
var HonoRequest = class {
|
||||
/**
|
||||
@@ -2198,7 +2198,7 @@ var HonoRequest = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/utils/html.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/utils/html.js
|
||||
var HtmlEscapedCallbackPhase = {
|
||||
Stringify: 1,
|
||||
BeforeStream: 2,
|
||||
@@ -2240,7 +2240,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
|
||||
}
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/context.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/context.js
|
||||
var TEXT_PLAIN = "text/plain; charset=UTF-8";
|
||||
var setDefaultContentType = (contentType, headers) => {
|
||||
return {
|
||||
@@ -2647,7 +2647,7 @@ var Context = class {
|
||||
};
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/router.js
|
||||
// ../../matrix/arcrun/registry/components/code/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"];
|
||||
@@ -2655,10 +2655,10 @@ var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is
|
||||
var UnsupportedPathError = class extends Error {
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/utils/constants.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/utils/constants.js
|
||||
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/hono-base.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/hono-base.js
|
||||
var notFoundHandler = (c) => {
|
||||
return c.text("404 Not Found", 404);
|
||||
};
|
||||
@@ -3034,7 +3034,7 @@ var Hono = class _Hono {
|
||||
};
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
||||
var emptyParam = [];
|
||||
function match(method, path) {
|
||||
const matchers = this.buildAllMatchers();
|
||||
@@ -3055,7 +3055,7 @@ function match(method, path) {
|
||||
return match2(method, path);
|
||||
}
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/router/reg-exp-router/node.js
|
||||
// ../../matrix/arcrun/registry/components/code/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 = "(?:|/.*)";
|
||||
@@ -3163,7 +3163,7 @@ var Node = class _Node {
|
||||
}
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/router/reg-exp-router/trie.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router/reg-exp-router/trie.js
|
||||
var Trie = class {
|
||||
#context = { varIndex: 0 };
|
||||
#root = new Node();
|
||||
@@ -3219,7 +3219,7 @@ var Trie = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/router/reg-exp-router/router.js
|
||||
// ../../matrix/arcrun/registry/components/code/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) {
|
||||
@@ -3398,7 +3398,7 @@ var RegExpRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/router/smart-router/router.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router/smart-router/router.js
|
||||
var SmartRouter = class {
|
||||
name = "SmartRouter";
|
||||
#routers = [];
|
||||
@@ -3453,7 +3453,7 @@ var SmartRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/router/trie-router/node.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router/trie-router/node.js
|
||||
var emptyParams = /* @__PURE__ */ Object.create(null);
|
||||
var hasChildren = (children) => {
|
||||
for (const _ in children) {
|
||||
@@ -3628,7 +3628,7 @@ var Node2 = class _Node2 {
|
||||
}
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/router/trie-router/router.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router/trie-router/router.js
|
||||
var TrieRouter = class {
|
||||
name = "TrieRouter";
|
||||
#node;
|
||||
@@ -3650,7 +3650,7 @@ var TrieRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/hono.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/hono.js
|
||||
var Hono2 = class extends Hono {
|
||||
/**
|
||||
* Creates an instance of the Hono class.
|
||||
@@ -3665,7 +3665,7 @@ var Hono2 = class extends Hono {
|
||||
}
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/hono/dist/middleware/cors/index.js
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/middleware/cors/index.js
|
||||
var cors = (options) => {
|
||||
const opts = {
|
||||
origin: "*",
|
||||
@@ -3747,7 +3747,7 @@ var cors = (options) => {
|
||||
};
|
||||
};
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/index.mjs
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/index.mjs
|
||||
init_chunk_JTKJZQYV();
|
||||
init_dist();
|
||||
async function newQuickJSWASMModuleFromVariant(variantOrPromise) {
|
||||
@@ -3810,14 +3810,14 @@ function newMockExtensions(log) {
|
||||
} };
|
||||
}
|
||||
|
||||
// ../arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs
|
||||
var variant = { type: "sync", importFFI: () => Promise.resolve().then(() => (init_ffi(), ffi_exports)).then((mod) => mod.QuickJSFFI), importModuleLoader: () => Promise.resolve().then(() => (init_emscripten_module_browser(), emscripten_module_browser_exports)).then((mod) => mod.default) };
|
||||
var src_default = variant;
|
||||
|
||||
// ../arcrun/registry/components/code/index.ts
|
||||
// ../../matrix/arcrun/registry/components/code/index.ts
|
||||
import wasmModule from "./quickjs.wasm";
|
||||
|
||||
// ../arcrun/registry/components/code/sandbox.mjs
|
||||
// ../../matrix/arcrun/registry/components/code/sandbox.mjs
|
||||
var _variant = null;
|
||||
function setVariant(v) {
|
||||
_variant = v;
|
||||
@@ -3987,7 +3987,7 @@ function err(message, error_type) {
|
||||
return { success: false, error: message, error_type };
|
||||
}
|
||||
|
||||
// ../arcrun/registry/components/code/index.ts
|
||||
// ../../matrix/arcrun/registry/components/code/index.ts
|
||||
setVariant(newVariant(src_default, { wasmModule }));
|
||||
var app = new Hono2();
|
||||
app.use("*", cors());
|
||||
@@ -4012,7 +4012,7 @@ app.post("/", async (c) => {
|
||||
);
|
||||
}
|
||||
});
|
||||
var code_default = app;
|
||||
var index_default = app;
|
||||
export {
|
||||
code_default as default
|
||||
index_default as default
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user