@less-is-more/less-js 1.4.27-2 → 1.4.27-4
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/package.json +1 -1
- package/src/router.js +2 -3
package/package.json
CHANGED
package/src/router.js
CHANGED
|
@@ -4,7 +4,6 @@ const qs = require("qs");
|
|
|
4
4
|
const body = require("body");
|
|
5
5
|
const multiparty = require("multiparty");
|
|
6
6
|
const { promisify } = require("util");
|
|
7
|
-
const { log } = require("console");
|
|
8
7
|
|
|
9
8
|
module.exports = class Router {
|
|
10
9
|
static #defaultFormat = true;
|
|
@@ -18,8 +17,8 @@ module.exports = class Router {
|
|
|
18
17
|
* @returns 设置了useDefaultFormat为true,会返回错误信息
|
|
19
18
|
*/
|
|
20
19
|
static async routeEvent(targets, event, context, callback) {
|
|
21
|
-
log("event:", event);
|
|
22
|
-
const eventObj = JSON.parse(event);
|
|
20
|
+
console.log("event:", event.toString());
|
|
21
|
+
const eventObj = JSON.parse(event.toString());
|
|
23
22
|
const req = {
|
|
24
23
|
path: eventObj.rawPath,
|
|
25
24
|
queries: Param.isBlank(rawQueryString)
|