@bepalo/spine 2.6.18 → 2.7.19
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/cjs/generator.d.ts.map +1 -1
- package/dist/cjs/generator.js +1 -1
- package/dist/cjs/generator.js.map +1 -1
- package/dist/cjs/middlewares.d.ts +167 -21
- package/dist/cjs/middlewares.d.ts.map +1 -1
- package/dist/cjs/middlewares.js +578 -28
- package/dist/cjs/middlewares.js.map +1 -1
- package/dist/cjs/parsers.d.ts +32 -10
- package/dist/cjs/parsers.d.ts.map +1 -1
- package/dist/cjs/parsers.js +83 -46
- package/dist/cjs/parsers.js.map +1 -1
- package/dist/cjs/router.d.ts.map +1 -1
- package/dist/cjs/router.js +1 -1
- package/dist/cjs/router.js.map +1 -1
- package/dist/cjs/utils.d.ts +1 -0
- package/dist/cjs/utils.d.ts.map +1 -1
- package/dist/cjs/utils.js.map +1 -1
- package/dist/cjs/utils.node.d.ts +1 -1
- package/dist/cjs/utils.node.d.ts.map +1 -1
- package/dist/cjs/utils.node.js +30 -7
- package/dist/cjs/utils.node.js.map +1 -1
- package/dist/generator.d.ts.map +1 -1
- package/dist/generator.js +1 -1
- package/dist/generator.js.map +1 -1
- package/dist/middlewares.d.ts +167 -21
- package/dist/middlewares.d.ts.map +1 -1
- package/dist/middlewares.js +578 -28
- package/dist/middlewares.js.map +1 -1
- package/dist/parsers.d.ts +32 -10
- package/dist/parsers.d.ts.map +1 -1
- package/dist/parsers.js +83 -46
- package/dist/parsers.js.map +1 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +1 -1
- package/dist/router.js.map +1 -1
- package/dist/utils.d.ts +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js.map +1 -1
- package/dist/utils.node.d.ts +1 -1
- package/dist/utils.node.d.ts.map +1 -1
- package/dist/utils.node.js +30 -7
- package/dist/utils.node.js.map +1 -1
- package/package.json +6 -2
package/dist/utils.node.js
CHANGED
|
@@ -38,12 +38,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.dynamicImport = void 0;
|
|
39
39
|
exports.walk = walk;
|
|
40
40
|
const promises_1 = require("node:fs/promises");
|
|
41
|
+
const promises_2 = require("node:fs/promises");
|
|
41
42
|
const node_path_1 = require("node:path");
|
|
42
43
|
const node_url_1 = require("node:url");
|
|
43
44
|
function walk(dir, rootPath) {
|
|
44
45
|
return __asyncGenerator(this, arguments, function* walk_1() {
|
|
45
46
|
rootPath = rootPath || dir;
|
|
46
|
-
for (const entry of yield __await((0,
|
|
47
|
+
for (const entry of yield __await((0, promises_2.readdir)(dir, {
|
|
47
48
|
withFileTypes: true,
|
|
48
49
|
}))) {
|
|
49
50
|
const name = entry.name;
|
|
@@ -51,18 +52,40 @@ function walk(dir, rootPath) {
|
|
|
51
52
|
const path = (0, node_path_1.join)(dir, name).replace(/\\/g, "/");
|
|
52
53
|
const fullPath = (0, node_path_1.resolve)(dir, name).replace(/\\/g, "/");
|
|
53
54
|
const relativePath = (0, node_path_1.relative)(rootPath, path).replace(/\\/g, "/");
|
|
55
|
+
const { mtimeMs } = yield __await((0, promises_1.stat)(fullPath));
|
|
54
56
|
if (entry.isDirectory()) {
|
|
55
|
-
yield yield __await({
|
|
57
|
+
yield yield __await({
|
|
58
|
+
type: "dir",
|
|
59
|
+
name,
|
|
60
|
+
path,
|
|
61
|
+
parent,
|
|
62
|
+
fullPath,
|
|
63
|
+
relativePath,
|
|
64
|
+
mtimeMs,
|
|
65
|
+
});
|
|
56
66
|
yield __await(yield* __asyncDelegator(__asyncValues(walk(path, rootPath))));
|
|
57
67
|
}
|
|
58
68
|
else {
|
|
59
|
-
yield yield __await({
|
|
69
|
+
yield yield __await({
|
|
70
|
+
type: "file",
|
|
71
|
+
name,
|
|
72
|
+
path,
|
|
73
|
+
parent,
|
|
74
|
+
fullPath,
|
|
75
|
+
relativePath,
|
|
76
|
+
mtimeMs,
|
|
77
|
+
});
|
|
60
78
|
}
|
|
61
79
|
}
|
|
62
80
|
});
|
|
63
81
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
});
|
|
67
|
-
|
|
82
|
+
exports.dynamicImport = "Bun" in globalThis
|
|
83
|
+
? (fullPath, refreshQuery) => __awaiter(void 0, void 0, void 0, function* () {
|
|
84
|
+
return yield import(refreshQuery ? `${fullPath}?${refreshQuery}` : fullPath);
|
|
85
|
+
})
|
|
86
|
+
: (fullPath, refreshQuery) => __awaiter(void 0, void 0, void 0, function* () {
|
|
87
|
+
return yield import(refreshQuery
|
|
88
|
+
? `${(0, node_url_1.pathToFileURL)(fullPath).href}?${refreshQuery}`
|
|
89
|
+
: (0, node_url_1.pathToFileURL)(fullPath).href);
|
|
90
|
+
});
|
|
68
91
|
//# sourceMappingURL=utils.node.js.map
|
package/dist/utils.node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.node.js","sourceRoot":"","sources":["../src/utils.node.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"utils.node.js","sourceRoot":"","sources":["../src/utils.node.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQpB,oBAqCC;AA1CD,+CAAwC;AACxC,+CAA2C;AAC3C,yCAAoD;AACpD,uCAAyC;AAEzC,SAAuB,IAAI,CACzB,GAAW,EACX,QAAiB;;QAEjB,QAAQ,GAAG,QAAQ,IAAI,GAAG,CAAC;QAC3B,KAAK,MAAM,KAAK,IAAI,cAAM,IAAA,kBAAO,EAAC,GAAG,EAAE;YACrC,aAAa,EAAE,IAAI;SACpB,CAAC,CAAA,EAAE,CAAC;YACH,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;YACxB,MAAM,MAAM,GAAG,IAAA,oBAAQ,EAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,OAAO,C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AAE,YAAqB,EAAoB,EAAE;QAClE,OAAO,MAAM,MAAM,CACjB,YAAY;YACV,CAAC,CAAC,GAAG,IAAA,wBAAa,EAAC,QAAQ,CAAC,CAAC,IAAI,IAAI,YAAY,EAAE;YACnD,CAAC,CAAC,IAAA,wBAAa,EAAC,QAAQ,CAAC,CAAC,IAAI,CACjC,CAAC;IACJ,CAAC,CAAA,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bepalo/spine",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.19",
|
|
4
4
|
"description": "A fast and feature-rich javascript-runtime-agnostic HTTP request router.",
|
|
5
5
|
"author": "Natnael Eshetu",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,11 @@
|
|
|
40
40
|
"fast",
|
|
41
41
|
"efficient",
|
|
42
42
|
"modern",
|
|
43
|
-
"
|
|
43
|
+
"framework",
|
|
44
|
+
"bun",
|
|
45
|
+
"node",
|
|
46
|
+
"deno",
|
|
47
|
+
"workers"
|
|
44
48
|
],
|
|
45
49
|
"dependencies": {
|
|
46
50
|
"@bepalo/rjson": "^2.2.12"
|