New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@midwayjs/process-agent

Package Overview
Dependencies
Maintainers
6
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@midwayjs/process-agent - npm Package Compare versions

Comparing version 2.14.2 to 2.14.3

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [2.14.3](https://github.com/midwayjs/midway/compare/v2.14.2...v2.14.3) (2022-01-12)
**Note:** Version bump only for package @midwayjs/process-agent
## [2.14.2](https://github.com/midwayjs/midway/compare/v2.14.1...v2.14.2) (2021-12-28)

@@ -8,0 +16,0 @@

14

dist/configuration.js

@@ -38,4 +38,14 @@ "use strict";

const params = JSON.parse(query.params);
handlers[`${query.path}`](...params).then(result => {
res.end(result);
handlers[`${query.path}`](...params)
.then(result => {
res.end(JSON.stringify(result));
})
.catch(e => {
res.statusCode = 500;
res.end(JSON.stringify({
midwayError: true,
name: e.name,
message: e.message,
stack: e.stack,
}));
});

@@ -42,0 +52,0 @@ })

@@ -28,3 +28,12 @@ "use strict";

}
resolve(body);
const res2 = JSON.parse(body);
if (res2.midwayError) {
const error = new Error();
error.name = res2.name;
error.message = res2.message;
error.stack = res2.stack;
reject(error);
return;
}
resolve(res2);
});

@@ -31,0 +40,0 @@ });

4

package.json
{
"name": "@midwayjs/process-agent",
"version": "2.14.2",
"version": "2.14.3",
"description": "",

@@ -36,3 +36,3 @@ "main": "dist/index.js",

},
"gitHead": "68b7fd9182619e8428f353f24a52254abce6e5bf"
"gitHead": "d7ca169aec933e24070e494e530419781524369e"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc