@webtypen/webframez-core 0.0.38 → 0.0.40

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.
@@ -220,7 +220,9 @@ class RouterFacade {
220
220
  (bodyPlain.trim().substring(0, 1) === "[" || bodyPlain.trim().substring(0, 1) === "{")
221
221
  ? JSON.parse(bodyPlain)
222
222
  : bodyPlain
223
- ? qs_1.default.parse(bodyPlain)
223
+ ? qs_1.default.parse(options && options.event && options.event.isBase64Encoded
224
+ ? Buffer.from(bodyPlain, "base64").toString("utf-8")
225
+ : bodyPlain)
224
226
  : {},
225
227
  bodyPlain: bodyPlain,
226
228
  params: route && route.params ? route.params : {},
@@ -245,6 +247,7 @@ class RouterFacade {
245
247
  rawHeaders: req.rawHeaders,
246
248
  url: req.url,
247
249
  method: req.method,
250
+ socket: req.socket,
248
251
  }
249
252
  : null;
250
253
  // Check-Middleware
package/lib/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./Config";
2
2
  export * from "./Functions/StringFunctions";
3
3
  export * from "./Functions/NumericFunctions";
4
+ export * from "./Commands/ConsoleCommand";
4
5
  export * from "./BaseKernelWeb";
5
6
  export * from "./BaseKernelConsole";
6
7
  export * from "./Controller/Controller";
package/lib/index.js CHANGED
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Config"), exports);
18
18
  __exportStar(require("./Functions/StringFunctions"), exports);
19
19
  __exportStar(require("./Functions/NumericFunctions"), exports);
20
+ __exportStar(require("./Commands/ConsoleCommand"), exports);
20
21
  __exportStar(require("./BaseKernelWeb"), exports);
21
22
  __exportStar(require("./BaseKernelConsole"), exports);
22
23
  __exportStar(require("./Controller/Controller"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",
@@ -256,8 +256,13 @@ class RouterFacade {
256
256
  (bodyPlain.trim().substring(0, 1) === "[" || bodyPlain.trim().substring(0, 1) === "{")
257
257
  ? JSON.parse(bodyPlain)
258
258
  : bodyPlain
259
- ? qs.parse(bodyPlain)
259
+ ? qs.parse(
260
+ options && options.event && options.event.isBase64Encoded
261
+ ? Buffer.from(bodyPlain, "base64").toString("utf-8")
262
+ : bodyPlain
263
+ )
260
264
  : {},
265
+
261
266
  bodyPlain: bodyPlain,
262
267
  params: route && route.params ? route.params : {},
263
268
  headers: customRequest.headers,
@@ -282,6 +287,7 @@ class RouterFacade {
282
287
  rawHeaders: req.rawHeaders,
283
288
  url: req.url,
284
289
  method: req.method,
290
+ socket: req.socket,
285
291
  }
286
292
  : null;
287
293
 
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./Config";
2
2
  export * from "./Functions/StringFunctions";
3
3
  export * from "./Functions/NumericFunctions";
4
+ export * from "./Commands/ConsoleCommand";
4
5
  export * from "./BaseKernelWeb";
5
6
  export * from "./BaseKernelConsole";
6
7
  export * from "./Controller/Controller";