bump version

This commit is contained in:
undefined committed 2024-11-13 11:31:34 +08:00
1 parent 4bf52b32fa
commit 7c98899987
8 files changed
+22 -14

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/framework",
"version": "0.1.2",
"version": "0.1.3",
"main": "index.ts",
"license": "MIT",
"peerDependencies": {
+5 -5
View File
@@ -141,8 +141,8 @@ export class HandlerCommon {
url(name: string, ...kwargsList: Record<string, any>[]) {
if (name === '#') return '#';
let res = '#';
const args: any = {};
const query: any = {};
const args: any = Object.create(null);
const query: any = Object.create(null);
for (const kwargs of kwargsList) {
for (const key in kwargs) {
args[key] = kwargs[key].toString().replace(/\//g, '%2F');
@@ -325,14 +325,14 @@ export interface WebServiceConfig {
}
export class WebService extends Service {
private registry: Record<string, any> = {};
private registry: Record<string, any> = Object.create(null);
private registrationCount = Counter();
private serverLayers = [];
private handlerLayers = [];
private wsLayers = [];
private captureAllRoutes = {};
private captureAllRoutes = Object.create(null);
renderers: Record<string, RendererFunction> = {};
renderers: Record<string, RendererFunction> = Object.create(null);
server = koa;
router = router;
HandlerCommon = HandlerCommon;