@ccci/micro-server 1.0.83 → 1.0.85
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 +13 -0
- package/dist/utils/BaseSocketHandler.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -119710,6 +119710,19 @@ class BaseSocketHandler {
|
|
|
119710
119710
|
async disconnect(ws, code, reason) {
|
|
119711
119711
|
throw new Error("disconnect(ws:ServerWebSocket, code:number, reason: string) - not yet implemented!");
|
|
119712
119712
|
}
|
|
119713
|
+
static parse(url) {
|
|
119714
|
+
let params = {};
|
|
119715
|
+
const urlObject = new URL(url);
|
|
119716
|
+
const path5 = urlObject.search.replaceAll("?", "");
|
|
119717
|
+
let queries = path5.split("&");
|
|
119718
|
+
queries.forEach((query) => {
|
|
119719
|
+
let pair = query.split("=");
|
|
119720
|
+
let key = pair[0].trim();
|
|
119721
|
+
let value = pair[1].trim();
|
|
119722
|
+
params[key] = value;
|
|
119723
|
+
});
|
|
119724
|
+
return params;
|
|
119725
|
+
}
|
|
119713
119726
|
}
|
|
119714
119727
|
// src/decorators/Endpoints.ts
|
|
119715
119728
|
var endpoint = (target, methodName, descriptor) => {
|