diff --git a/package-lock.json b/package-lock.json index 23e4926ac6..80579aa6e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,8 +13,8 @@ "express": "^4.17.1", "fs-extra": "^9.1.0", "jsonwebtoken": "^8.5.1", - "less-api": "^1.4.6", - "less-api-database": "^0.3.10", + "less-api": "^1.4.9", + "less-api-database": "^0.3.13", "lodash": "^4.17.21", "log4js": "^6.3.0", "moment": "^2.29.1", @@ -2009,11 +2009,11 @@ } }, "node_modules/less-api": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/less-api/-/less-api-1.4.6.tgz", - "integrity": "sha512-MTMI8tQZJpEtfkSftksdS41Y6QAFWEz6W4pVPLmVSghNVnfOLG6Gh3qkhJ/Lx+4dm0/17Mcqo91/VbFNo6FKpw==", + "version": "1.4.9", + "resolved": "https://registry.npmjs.org/less-api/-/less-api-1.4.9.tgz", + "integrity": "sha512-D2CJ96tQejmgFYAUilSD2XL3DQfBgBrfHzevtYMcCSatqprdy1BckoLlwcx1OJes6hWADoOzfR84PskWIzwmLg==", "dependencies": { - "less-api-database": "^0.3.10", + "less-api-database": "^0.3.13", "lodash": "^4.17.21", "mongodb": "^3.6.3", "mysql2": "^2.2.5", @@ -2021,9 +2021,9 @@ } }, "node_modules/less-api-database": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/less-api-database/-/less-api-database-0.3.10.tgz", - "integrity": "sha512-bvav+kIyt1u/9kt6C12nSeGZgjl21EmJqt2o5NBq+xQKMzpNVN9xJkI2hYjmmzH2lL/qOc8M7Fo5mRhINjutWQ==", + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/less-api-database/-/less-api-database-0.3.13.tgz", + "integrity": "sha512-tPTzuCTslSRWXXg2IURqkGndSHADle4WfGnhK21JSRPis/e8gFFVinmLUAh7svoqav5FXEAQ7DP+FCbI2mV37w==", "dependencies": { "bson": "^4.0.2", "lodash.clonedeep": "4.5.0", @@ -5268,11 +5268,11 @@ "dev": true }, "less-api": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/less-api/-/less-api-1.4.6.tgz", - "integrity": "sha512-MTMI8tQZJpEtfkSftksdS41Y6QAFWEz6W4pVPLmVSghNVnfOLG6Gh3qkhJ/Lx+4dm0/17Mcqo91/VbFNo6FKpw==", + "version": "1.4.9", + "resolved": "https://registry.npmjs.org/less-api/-/less-api-1.4.9.tgz", + "integrity": "sha512-D2CJ96tQejmgFYAUilSD2XL3DQfBgBrfHzevtYMcCSatqprdy1BckoLlwcx1OJes6hWADoOzfR84PskWIzwmLg==", "requires": { - "less-api-database": "^0.3.10", + "less-api-database": "^0.3.13", "lodash": "^4.17.21", "mongodb": "^3.6.3", "mysql2": "^2.2.5", @@ -5280,9 +5280,9 @@ } }, "less-api-database": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/less-api-database/-/less-api-database-0.3.10.tgz", - "integrity": "sha512-bvav+kIyt1u/9kt6C12nSeGZgjl21EmJqt2o5NBq+xQKMzpNVN9xJkI2hYjmmzH2lL/qOc8M7Fo5mRhINjutWQ==", + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/less-api-database/-/less-api-database-0.3.13.tgz", + "integrity": "sha512-tPTzuCTslSRWXXg2IURqkGndSHADle4WfGnhK21JSRPis/e8gFFVinmLUAh7svoqav5FXEAQ7DP+FCbI2mV37w==", "requires": { "bson": "^4.0.2", "lodash.clonedeep": "4.5.0", diff --git a/package.json b/package.json index ed10df65cd..7b4ceb1a9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "less-framework", - "version": "0.1.6", + "version": "0.1.7", "description": "less framework base on less-api", "main": "./dist/index.js", "scripts": { @@ -31,8 +31,8 @@ "express": "^4.17.1", "fs-extra": "^9.1.0", "jsonwebtoken": "^8.5.1", - "less-api": "^1.4.6", - "less-api-database": "^0.3.10", + "less-api": "^1.4.9", + "less-api-database": "^0.3.13", "lodash": "^4.17.21", "log4js": "^6.3.0", "moment": "^2.29.1", diff --git a/src/router/function/index.ts b/src/router/function/index.ts index 706620e53b..aacaf887ae 100644 --- a/src/router/function/index.ts +++ b/src/router/function/index.ts @@ -92,7 +92,7 @@ async function handleInvokeFunction(req: Request, res: Response) { if (result.error) { logger.info(`[${requestId}] /func/${func_name} invoke error: `, result.error.message) logger.error(`[${requestId}] /func/${func_name} invoke error: `, result) - return res.status(400).send({ + return res.send({ error: 'invoke function occurs error', logs: debug ? result.logs : undefined, time_usage: debug ? result.time_usage : undefined,