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