@kanjijs/testing 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 +3 -3
package/dist/index.js
CHANGED
|
@@ -1378,7 +1378,7 @@ class HttpException extends Error {
|
|
|
1378
1378
|
// ../core/src/index.ts
|
|
1379
1379
|
var GLOBAL_MIDDLEWARE_TOKEN = Symbol("GLOBAL_MIDDLEWARE_TOKEN");
|
|
1380
1380
|
|
|
1381
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1381
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/compose.js
|
|
1382
1382
|
var compose = (middleware, onError, onNotFound) => {
|
|
1383
1383
|
return (context2, next) => {
|
|
1384
1384
|
let index = -1;
|
|
@@ -1422,7 +1422,7 @@ var compose = (middleware, onError, onNotFound) => {
|
|
|
1422
1422
|
};
|
|
1423
1423
|
};
|
|
1424
1424
|
|
|
1425
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1425
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/http-exception.js
|
|
1426
1426
|
var HTTPException = class extends Error {
|
|
1427
1427
|
res;
|
|
1428
1428
|
status;
|
|
@@ -1445,10 +1445,10 @@ var HTTPException = class extends Error {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
};
|
|
1447
1447
|
|
|
1448
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1448
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/request/constants.js
|
|
1449
1449
|
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
|
|
1450
1450
|
|
|
1451
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1451
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/utils/body.js
|
|
1452
1452
|
var parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {
|
|
1453
1453
|
const { all = false, dot = false } = options;
|
|
1454
1454
|
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
|
|
@@ -1516,7 +1516,7 @@ var handleParsingNestedValues = (form, key, value) => {
|
|
|
1516
1516
|
});
|
|
1517
1517
|
};
|
|
1518
1518
|
|
|
1519
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1519
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/utils/url.js
|
|
1520
1520
|
var splitPath = (path) => {
|
|
1521
1521
|
const paths = path.split("/");
|
|
1522
1522
|
if (paths[0] === "") {
|
|
@@ -1714,7 +1714,7 @@ var getQueryParams = (url, key) => {
|
|
|
1714
1714
|
};
|
|
1715
1715
|
var decodeURIComponent_ = decodeURIComponent;
|
|
1716
1716
|
|
|
1717
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1717
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/request.js
|
|
1718
1718
|
var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_);
|
|
1719
1719
|
var HonoRequest = class {
|
|
1720
1720
|
raw;
|
|
@@ -1825,7 +1825,7 @@ var HonoRequest = class {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
};
|
|
1827
1827
|
|
|
1828
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1828
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/utils/html.js
|
|
1829
1829
|
var HtmlEscapedCallbackPhase = {
|
|
1830
1830
|
Stringify: 1,
|
|
1831
1831
|
BeforeStream: 2,
|
|
@@ -1863,7 +1863,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context2, buffer) =>
|
|
|
1863
1863
|
}
|
|
1864
1864
|
};
|
|
1865
1865
|
|
|
1866
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
1866
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/context.js
|
|
1867
1867
|
var TEXT_PLAIN = "text/plain; charset=UTF-8";
|
|
1868
1868
|
var setDefaultContentType = (contentType, headers) => {
|
|
1869
1869
|
return {
|
|
@@ -2029,7 +2029,7 @@ var Context = class {
|
|
|
2029
2029
|
};
|
|
2030
2030
|
};
|
|
2031
2031
|
|
|
2032
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2032
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router.js
|
|
2033
2033
|
var METHOD_NAME_ALL = "ALL";
|
|
2034
2034
|
var METHOD_NAME_ALL_LOWERCASE = "all";
|
|
2035
2035
|
var METHODS = ["get", "post", "put", "delete", "options", "patch"];
|
|
@@ -2037,10 +2037,10 @@ var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is
|
|
|
2037
2037
|
var UnsupportedPathError = class extends Error {
|
|
2038
2038
|
};
|
|
2039
2039
|
|
|
2040
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2040
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/utils/constants.js
|
|
2041
2041
|
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
|
|
2042
2042
|
|
|
2043
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2043
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/hono-base.js
|
|
2044
2044
|
var notFoundHandler = (c) => {
|
|
2045
2045
|
return c.text("404 Not Found", 404);
|
|
2046
2046
|
};
|
|
@@ -2259,7 +2259,7 @@ var Hono = class _Hono {
|
|
|
2259
2259
|
};
|
|
2260
2260
|
};
|
|
2261
2261
|
|
|
2262
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2262
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
|
2263
2263
|
var emptyParam = [];
|
|
2264
2264
|
function match(method, path) {
|
|
2265
2265
|
const matchers = this.buildAllMatchers();
|
|
@@ -2280,7 +2280,7 @@ function match(method, path) {
|
|
|
2280
2280
|
return match2(method, path);
|
|
2281
2281
|
}
|
|
2282
2282
|
|
|
2283
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2283
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/reg-exp-router/node.js
|
|
2284
2284
|
var LABEL_REG_EXP_STR = "[^/]+";
|
|
2285
2285
|
var ONLY_WILDCARD_REG_EXP_STR = ".*";
|
|
2286
2286
|
var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
|
@@ -2384,7 +2384,7 @@ var Node = class _Node {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
};
|
|
2386
2386
|
|
|
2387
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2387
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/reg-exp-router/trie.js
|
|
2388
2388
|
var Trie = class {
|
|
2389
2389
|
#context = { varIndex: 0 };
|
|
2390
2390
|
#root = new Node;
|
|
@@ -2440,7 +2440,7 @@ var Trie = class {
|
|
|
2440
2440
|
}
|
|
2441
2441
|
};
|
|
2442
2442
|
|
|
2443
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2443
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/reg-exp-router/router.js
|
|
2444
2444
|
var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)];
|
|
2445
2445
|
var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
|
|
2446
2446
|
function buildWildcardRegExp(path) {
|
|
@@ -2605,7 +2605,7 @@ var RegExpRouter = class {
|
|
|
2605
2605
|
}
|
|
2606
2606
|
};
|
|
2607
2607
|
|
|
2608
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2608
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/reg-exp-router/prepared-router.js
|
|
2609
2609
|
var PreparedRegExpRouter = class {
|
|
2610
2610
|
name = "PreparedRegExpRouter";
|
|
2611
2611
|
#matchers;
|
|
@@ -2677,7 +2677,7 @@ var PreparedRegExpRouter = class {
|
|
|
2677
2677
|
match = match;
|
|
2678
2678
|
};
|
|
2679
2679
|
|
|
2680
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2680
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/smart-router/router.js
|
|
2681
2681
|
var SmartRouter = class {
|
|
2682
2682
|
name = "SmartRouter";
|
|
2683
2683
|
#routers = [];
|
|
@@ -2732,7 +2732,7 @@ var SmartRouter = class {
|
|
|
2732
2732
|
}
|
|
2733
2733
|
};
|
|
2734
2734
|
|
|
2735
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2735
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/trie-router/node.js
|
|
2736
2736
|
var emptyParams = /* @__PURE__ */ Object.create(null);
|
|
2737
2737
|
var Node2 = class _Node2 {
|
|
2738
2738
|
#methods;
|
|
@@ -2886,7 +2886,7 @@ var Node2 = class _Node2 {
|
|
|
2886
2886
|
}
|
|
2887
2887
|
};
|
|
2888
2888
|
|
|
2889
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2889
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/router/trie-router/router.js
|
|
2890
2890
|
var TrieRouter = class {
|
|
2891
2891
|
name = "TrieRouter";
|
|
2892
2892
|
#node;
|
|
@@ -2908,7 +2908,7 @@ var TrieRouter = class {
|
|
|
2908
2908
|
}
|
|
2909
2909
|
};
|
|
2910
2910
|
|
|
2911
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2911
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/hono.js
|
|
2912
2912
|
var Hono2 = class extends Hono {
|
|
2913
2913
|
constructor(options = {}) {
|
|
2914
2914
|
super(options);
|
|
@@ -2918,7 +2918,7 @@ var Hono2 = class extends Hono {
|
|
|
2918
2918
|
}
|
|
2919
2919
|
};
|
|
2920
2920
|
|
|
2921
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
2921
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/middleware/cors/index.js
|
|
2922
2922
|
var cors = (options) => {
|
|
2923
2923
|
const defaults = {
|
|
2924
2924
|
origin: "*",
|
|
@@ -3003,7 +3003,7 @@ var cors = (options) => {
|
|
|
3003
3003
|
};
|
|
3004
3004
|
};
|
|
3005
3005
|
|
|
3006
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
3006
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/utils/color.js
|
|
3007
3007
|
function getColorEnabled() {
|
|
3008
3008
|
const { process, Deno } = globalThis;
|
|
3009
3009
|
const isNoColor = typeof Deno?.noColor === "boolean" ? Deno.noColor : process !== undefined ? "NO_COLOR" in process?.env : false;
|
|
@@ -3022,7 +3022,7 @@ async function getColorEnabledAsync() {
|
|
|
3022
3022
|
return !isNoColor;
|
|
3023
3023
|
}
|
|
3024
3024
|
|
|
3025
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
3025
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/middleware/logger/index.js
|
|
3026
3026
|
var humanize = (times) => {
|
|
3027
3027
|
const [delimiter, separator] = [",", "."];
|
|
3028
3028
|
const orderTimes = times.map((v) => v.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1" + delimiter));
|
|
@@ -3063,7 +3063,7 @@ var logger = (fn = console.log) => {
|
|
|
3063
3063
|
};
|
|
3064
3064
|
};
|
|
3065
3065
|
|
|
3066
|
-
// ../../node_modules/.bun/hono@4.11.
|
|
3066
|
+
// ../../node_modules/.bun/hono@4.11.5/node_modules/hono/dist/middleware/secure-headers/secure-headers.js
|
|
3067
3067
|
var HEADERS_MAP = {
|
|
3068
3068
|
crossOriginEmbedderPolicy: ["Cross-Origin-Embedder-Policy", "require-corp"],
|
|
3069
3069
|
crossOriginResourcePolicy: ["Cross-Origin-Resource-Policy", "same-origin"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanjijs/testing",
|
|
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,8 +13,8 @@
|
|
|
13
13
|
"build": "bun build src/index.ts --outdir dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@kanjijs/core": "^0.2.0-beta.
|
|
17
|
-
"@kanjijs/platform-hono": "^0.2.0-beta.
|
|
16
|
+
"@kanjijs/core": "^0.2.0-beta.29",
|
|
17
|
+
"@kanjijs/platform-hono": "^0.2.0-beta.29",
|
|
18
18
|
"hono": "^4.0.0"
|
|
19
19
|
}
|
|
20
20
|
}
|