@satorijs/satori
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -145,5 +145,6 @@ var __create = Object.create; | ||
this.callback = callback; | ||
this.clients = /* @__PURE__ */ new Set(); | ||
this.regexp = (0, import_path_to_regexp.pathToRegexp)(path); | ||
} | ||
clients = /* @__PURE__ */ new Set(); | ||
regexp; | ||
accept(socket, request) { | ||
@@ -170,7 +171,13 @@ var _a; | ||
var _Router = class _Router extends import_router.default { | ||
_http; | ||
_ws; | ||
wsStack = []; | ||
host; | ||
port; | ||
constructor(ctx) { | ||
super(); | ||
this.wsStack = []; | ||
const koa = new import_koa.default(); | ||
koa.use(require("koa-bodyparser")()); | ||
koa.use(require("koa-bodyparser")({ | ||
enableTypes: ["json", "form", "xml"] | ||
})); | ||
koa.use(this.routes()); | ||
@@ -177,0 +184,0 @@ koa.use(this.allowedMethods()); |
{ | ||
"name": "@satorijs/satori", | ||
"description": "Core components of Satorijs", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"engines": { | ||
"node": ">=12.0.0" | ||
}, | ||
"files": [ | ||
@@ -35,3 +32,3 @@ "lib" | ||
"@koa/router": "^10.1.1", | ||
"@satorijs/core": "2.6.0", | ||
"@satorijs/core": "2.6.1", | ||
"@types/koa": "*", | ||
@@ -38,0 +35,0 @@ "@types/koa__router": "*", |
Sorry, the diff of this file is not supported yet
37215
443
+ Added@satorijs/core@2.6.1(transitive)
- Removed@satorijs/core@2.6.0(transitive)
Updated@satorijs/core@2.6.1