@kanjijs/platform-hono 0.2.0-beta.28 → 0.2.0-beta.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +24 -24
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1363,7 +1363,7 @@ class HttpException extends Error {
|
|
|
1363
1363
|
// ../core/src/index.ts
|
|
1364
1364
|
var GLOBAL_MIDDLEWARE_TOKEN = Symbol("GLOBAL_MIDDLEWARE_TOKEN");
|
|
1365
1365
|
|
|
1366
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1366
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/compose.js
|
|
1367
1367
|
var compose = (middleware, onError, onNotFound) => {
|
|
1368
1368
|
return (context2, next) => {
|
|
1369
1369
|
let index = -1;
|
|
@@ -1407,7 +1407,7 @@ var compose = (middleware, onError, onNotFound) => {
|
|
|
1407
1407
|
};
|
|
1408
1408
|
};
|
|
1409
1409
|
|
|
1410
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1410
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/http-exception.js
|
|
1411
1411
|
var HTTPException = class extends Error {
|
|
1412
1412
|
res;
|
|
1413
1413
|
status;
|
|
@@ -1430,10 +1430,10 @@ var HTTPException = class extends Error {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
};
|
|
1432
1432
|
|
|
1433
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1433
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/request/constants.js
|
|
1434
1434
|
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
|
|
1435
1435
|
|
|
1436
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1436
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/utils/body.js
|
|
1437
1437
|
var parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {
|
|
1438
1438
|
const { all = false, dot = false } = options;
|
|
1439
1439
|
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
|
|
@@ -1501,7 +1501,7 @@ var handleParsingNestedValues = (form, key, value) => {
|
|
|
1501
1501
|
});
|
|
1502
1502
|
};
|
|
1503
1503
|
|
|
1504
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1504
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/utils/url.js
|
|
1505
1505
|
var splitPath = (path) => {
|
|
1506
1506
|
const paths = path.split("/");
|
|
1507
1507
|
if (paths[0] === "") {
|
|
@@ -1699,7 +1699,7 @@ var getQueryParams = (url, key) => {
|
|
|
1699
1699
|
};
|
|
1700
1700
|
var decodeURIComponent_ = decodeURIComponent;
|
|
1701
1701
|
|
|
1702
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1702
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/request.js
|
|
1703
1703
|
var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_);
|
|
1704
1704
|
var HonoRequest = class {
|
|
1705
1705
|
raw;
|
|
@@ -1810,7 +1810,7 @@ var HonoRequest = class {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
};
|
|
1812
1812
|
|
|
1813
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1813
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/utils/html.js
|
|
1814
1814
|
var HtmlEscapedCallbackPhase = {
|
|
1815
1815
|
Stringify: 1,
|
|
1816
1816
|
BeforeStream: 2,
|
|
@@ -1848,7 +1848,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context2, buffer) =>
|
|
|
1848
1848
|
}
|
|
1849
1849
|
};
|
|
1850
1850
|
|
|
1851
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1851
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/context.js
|
|
1852
1852
|
var TEXT_PLAIN = "text/plain; charset=UTF-8";
|
|
1853
1853
|
var setDefaultContentType = (contentType, headers) => {
|
|
1854
1854
|
return {
|
|
@@ -2014,7 +2014,7 @@ var Context = class {
|
|
|
2014
2014
|
};
|
|
2015
2015
|
};
|
|
2016
2016
|
|
|
2017
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2017
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router.js
|
|
2018
2018
|
var METHOD_NAME_ALL = "ALL";
|
|
2019
2019
|
var METHOD_NAME_ALL_LOWERCASE = "all";
|
|
2020
2020
|
var METHODS = ["get", "post", "put", "delete", "options", "patch"];
|
|
@@ -2022,10 +2022,10 @@ var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is
|
|
|
2022
2022
|
var UnsupportedPathError = class extends Error {
|
|
2023
2023
|
};
|
|
2024
2024
|
|
|
2025
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2025
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/utils/constants.js
|
|
2026
2026
|
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
|
|
2027
2027
|
|
|
2028
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2028
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/hono-base.js
|
|
2029
2029
|
var notFoundHandler = (c) => {
|
|
2030
2030
|
return c.text("404 Not Found", 404);
|
|
2031
2031
|
};
|
|
@@ -2244,7 +2244,7 @@ var Hono = class _Hono {
|
|
|
2244
2244
|
};
|
|
2245
2245
|
};
|
|
2246
2246
|
|
|
2247
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2247
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
|
2248
2248
|
var emptyParam = [];
|
|
2249
2249
|
function match(method, path) {
|
|
2250
2250
|
const matchers = this.buildAllMatchers();
|
|
@@ -2265,7 +2265,7 @@ function match(method, path) {
|
|
|
2265
2265
|
return match2(method, path);
|
|
2266
2266
|
}
|
|
2267
2267
|
|
|
2268
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2268
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/reg-exp-router/node.js
|
|
2269
2269
|
var LABEL_REG_EXP_STR = "[^/]+";
|
|
2270
2270
|
var ONLY_WILDCARD_REG_EXP_STR = ".*";
|
|
2271
2271
|
var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
|
@@ -2369,7 +2369,7 @@ var Node = class _Node {
|
|
|
2369
2369
|
}
|
|
2370
2370
|
};
|
|
2371
2371
|
|
|
2372
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2372
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/reg-exp-router/trie.js
|
|
2373
2373
|
var Trie = class {
|
|
2374
2374
|
#context = { varIndex: 0 };
|
|
2375
2375
|
#root = new Node;
|
|
@@ -2425,7 +2425,7 @@ var Trie = class {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
};
|
|
2427
2427
|
|
|
2428
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2428
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/reg-exp-router/router.js
|
|
2429
2429
|
var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)];
|
|
2430
2430
|
var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
|
|
2431
2431
|
function buildWildcardRegExp(path) {
|
|
@@ -2590,7 +2590,7 @@ var RegExpRouter = class {
|
|
|
2590
2590
|
}
|
|
2591
2591
|
};
|
|
2592
2592
|
|
|
2593
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2593
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/reg-exp-router/prepared-router.js
|
|
2594
2594
|
var PreparedRegExpRouter = class {
|
|
2595
2595
|
name = "PreparedRegExpRouter";
|
|
2596
2596
|
#matchers;
|
|
@@ -2662,7 +2662,7 @@ var PreparedRegExpRouter = class {
|
|
|
2662
2662
|
match = match;
|
|
2663
2663
|
};
|
|
2664
2664
|
|
|
2665
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2665
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/smart-router/router.js
|
|
2666
2666
|
var SmartRouter = class {
|
|
2667
2667
|
name = "SmartRouter";
|
|
2668
2668
|
#routers = [];
|
|
@@ -2717,7 +2717,7 @@ var SmartRouter = class {
|
|
|
2717
2717
|
}
|
|
2718
2718
|
};
|
|
2719
2719
|
|
|
2720
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2720
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/trie-router/node.js
|
|
2721
2721
|
var emptyParams = /* @__PURE__ */ Object.create(null);
|
|
2722
2722
|
var Node2 = class _Node2 {
|
|
2723
2723
|
#methods;
|
|
@@ -2871,7 +2871,7 @@ var Node2 = class _Node2 {
|
|
|
2871
2871
|
}
|
|
2872
2872
|
};
|
|
2873
2873
|
|
|
2874
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2874
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/trie-router/router.js
|
|
2875
2875
|
var TrieRouter = class {
|
|
2876
2876
|
name = "TrieRouter";
|
|
2877
2877
|
#node;
|
|
@@ -2893,7 +2893,7 @@ var TrieRouter = class {
|
|
|
2893
2893
|
}
|
|
2894
2894
|
};
|
|
2895
2895
|
|
|
2896
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2896
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/hono.js
|
|
2897
2897
|
var Hono2 = class extends Hono {
|
|
2898
2898
|
constructor(options = {}) {
|
|
2899
2899
|
super(options);
|
|
@@ -2903,7 +2903,7 @@ var Hono2 = class extends Hono {
|
|
|
2903
2903
|
}
|
|
2904
2904
|
};
|
|
2905
2905
|
|
|
2906
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2906
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/middleware/cors/index.js
|
|
2907
2907
|
var cors = (options) => {
|
|
2908
2908
|
const defaults = {
|
|
2909
2909
|
origin: "*",
|
|
@@ -2988,7 +2988,7 @@ var cors = (options) => {
|
|
|
2988
2988
|
};
|
|
2989
2989
|
};
|
|
2990
2990
|
|
|
2991
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2991
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/utils/color.js
|
|
2992
2992
|
function getColorEnabled() {
|
|
2993
2993
|
const { process, Deno } = globalThis;
|
|
2994
2994
|
const isNoColor = typeof Deno?.noColor === "boolean" ? Deno.noColor : process !== undefined ? "NO_COLOR" in process?.env : false;
|
|
@@ -3007,7 +3007,7 @@ async function getColorEnabledAsync() {
|
|
|
3007
3007
|
return !isNoColor;
|
|
3008
3008
|
}
|
|
3009
3009
|
|
|
3010
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
3010
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/middleware/logger/index.js
|
|
3011
3011
|
var humanize = (times) => {
|
|
3012
3012
|
const [delimiter, separator] = [",", "."];
|
|
3013
3013
|
const orderTimes = times.map((v) => v.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1" + delimiter));
|
|
@@ -3048,7 +3048,7 @@ var logger = (fn = console.log) => {
|
|
|
3048
3048
|
};
|
|
3049
3049
|
};
|
|
3050
3050
|
|
|
3051
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
3051
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/middleware/secure-headers/secure-headers.js
|
|
3052
3052
|
var HEADERS_MAP = {
|
|
3053
3053
|
crossOriginEmbedderPolicy: ["Cross-Origin-Embedder-Policy", "require-corp"],
|
|
3054
3054
|
crossOriginResourcePolicy: ["Cross-Origin-Resource-Policy", "same-origin"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanjijs/platform-hono",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"build": "bun build src/index.ts --outdir dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@kanjijs/common": "^0.2.0-beta.
|
|
17
|
-
"@kanjijs/contracts": "^0.2.0-beta.
|
|
16
|
+
"@kanjijs/common": "^0.2.0-beta.29",
|
|
17
|
+
"@kanjijs/contracts": "^0.2.0-beta.29",
|
|
18
18
|
"hono": "^4.0.0",
|
|
19
19
|
"reflect-metadata": "^0.2.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@kanjijs/core": "^0.2.0-beta.
|
|
22
|
+
"@kanjijs/core": "^0.2.0-beta.29"
|
|
23
23
|
}
|
|
24
24
|
}
|