keq 5.0.0-alpha.32 → 5.0.0-alpha.33
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/CHANGELOG.md +2 -0
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1632,8 +1632,8 @@ var Keq = class extends Core {
|
|
|
1632
1632
|
this.option("timeout", { millisecond: milliseconds });
|
|
1633
1633
|
return this;
|
|
1634
1634
|
}
|
|
1635
|
-
resolveWith(
|
|
1636
|
-
this.option("resolveWith",
|
|
1635
|
+
resolveWith(m) {
|
|
1636
|
+
this.option("resolveWith", m);
|
|
1637
1637
|
return this;
|
|
1638
1638
|
}
|
|
1639
1639
|
};
|
|
@@ -1676,10 +1676,11 @@ function keqModuleRoute(moduleName) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
|
|
1678
1678
|
// src/router/keq-pathname-route.ts
|
|
1679
|
-
var
|
|
1679
|
+
var import_picomatch = __toESM(require("picomatch"));
|
|
1680
1680
|
function keqPathnameRoute(pathname) {
|
|
1681
|
+
const isMatch = (0, import_picomatch.default)(pathname);
|
|
1681
1682
|
return (ctx) => {
|
|
1682
|
-
return
|
|
1683
|
+
return isMatch(ctx.request.url.pathname);
|
|
1683
1684
|
};
|
|
1684
1685
|
}
|
|
1685
1686
|
|