🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@phero/server

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phero/server - npm Package Compare versions

Comparing version
0.10.5
to
0.10.6
+3
-0
dist/code-gen/generatePheroExecutionFile.js

@@ -146,2 +146,5 @@ "use strict";

init: core_1.tsx.expression.await(core_1.tsx.expression.call(`rpc_executor_${service.name}__${funcDef.name}__inner`, { args: ["input"] })),
}), core_1.tsx.statement.if({
expression: core_1.tsx.expression.binary(core_1.tsx.expression.identifier("result"), "===", core_1.tsx.literal.undefined),
then: core_1.tsx.statement.return(core_1.tsx.literal.object(core_1.tsx.property.assignment("status", core_1.tsx.literal.number(204)))),
}), core_1.tsx.statement.return(core_1.tsx.literal.object(core_1.tsx.property.assignment("status", core_1.tsx.literal.number(200)), core_1.tsx.property.shorthandAssignment("result"))))),

@@ -148,0 +151,0 @@ });

@@ -49,2 +49,5 @@ "use strict";

break;
case 204:
res.end();
break;
case 400:

@@ -51,0 +54,0 @@ res.end(JSON.stringify({ errors: response.errors }));

@@ -61,2 +61,5 @@ "use strict";

break;
case 204:
res.end();
break;
case 400:

@@ -63,0 +66,0 @@ res.end(JSON.stringify({ errors: response.errors }));

@@ -49,2 +49,5 @@ "use strict";

break;
case 204:
res.end();
break;
case 400:

@@ -51,0 +54,0 @@ res.end(JSON.stringify({ errors: response.errors }));

+2
-5

@@ -148,7 +148,4 @@ "use strict";

res.statusCode = rpcResult.status;
if (rpcResult.status === 200) {
if (rpcResult.result === undefined) {
res.statusCode = 204;
}
else {
if (rpcResult.status === 200 || rpcResult.status === 204) {
if (rpcResult.status !== 204) {
res.write(JSON.stringify(rpcResult.result));

@@ -155,0 +152,0 @@ }

{
"name": "@phero/server",
"version": "0.10.5",
"version": "0.10.6",
"main": "dist/index.js",

@@ -26,3 +26,3 @@ "description": "Server library for Phero",

"dependencies": {
"@phero/core": "^0.10.5",
"@phero/core": "^0.10.6",
"@phero/dev": "^0.10.5"

@@ -44,3 +44,3 @@ },

},
"gitHead": "a05c7a855dc3a8eebbc11dff3a3b9161afdb93e7"
"gitHead": "9fd64f90405c25e05524be618b214afef4f3f688"
}
{
"name": "@phero/server",
"version": "0.10.5",
"version": "0.10.6",
"main": "dist/index.js",

@@ -26,3 +26,3 @@ "description": "Server library for Phero",

"dependencies": {
"@phero/core": "^0.10.5",
"@phero/core": "^0.10.6",
"@phero/dev": "^0.10.5"

@@ -44,3 +44,3 @@ },

},
"gitHead": "a05c7a855dc3a8eebbc11dff3a3b9161afdb93e7"
"gitHead": "9fd64f90405c25e05524be618b214afef4f3f688"
}