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

@therms/rpc-server

Package Overview
Dependencies
Maintainers
2
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@therms/rpc-server - npm Package Compare versions

Comparing version 1.7.3 to 1.7.4

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.7.4](http://bitbucket.org/thermsio/rpc-server-ts/compare/v1.7.3...v1.7.4) (2021-04-30)
### Bug Fixes
* **LocalHandler:** trycatch on ajv json-schema compilation ([cfde8ba](http://bitbucket.org/thermsio/rpc-server-ts/commits/cfde8badffd04a0bd74550111fc1bbc2e5904e28))
## [1.7.3](http://bitbucket.org/thermsio/rpc-server-ts/compare/v1.7.2...v1.7.3) (2021-04-28)

@@ -2,0 +9,0 @@

33

dist/index.js

@@ -264,15 +264,22 @@ 'use strict';

if (typeof request.args === 'object' && ((_a = request.args) === null || _a === void 0 ? void 0 : _a.type)) {
var validate_1 = ajv.compile(request.args);
_this.handlerRequestValidationsByHandlerRequestKey[key] = function (request) {
var valid = validate_1(request.args);
if (!valid) {
throw new CallResponse({
code: 422,
data: validate_1.errors,
message: 'args validation failed',
success: false,
}, request);
}
return undefined;
};
try {
var validate_1 = ajv.compile(request.args);
_this.handlerRequestValidationsByHandlerRequestKey[key] = function (request) {
var valid = validate_1(request.args);
if (!valid) {
throw new CallResponse({
code: 422,
data: validate_1.errors,
message: 'args validation failed',
success: false,
}, request);
}
return undefined;
};
}
catch (e) {
console.log("ERROR: Unable to compile JSON-schema for \"" + key + "\"");
console.log(" " + e.message);
process.exit(1);
}
}

@@ -279,0 +286,0 @@ };

{
"name": "@therms/rpc-server",
"version": "1.7.3",
"version": "1.7.4",
"description": "RPC framework, Node.js lib",

@@ -5,0 +5,0 @@ "private": false,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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