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

jsonapi-server

Package Overview
Dependencies
Maintainers
3
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonapi-server - npm Package Compare versions

Comparing version 0.15.1 to 0.15.2

2

CHANGELOG.md

@@ -47,1 +47,3 @@ 2015-06-29 - Initial release

2015-11-18 - v0.15.1
2015-11-19 - Validate filter params before handing over to resourceHandler.search
2015-11-19 - v0.15.2

@@ -52,2 +52,25 @@ "use strict";

},
function validateFilterParams(callback) {
var allFilters = request.params.filter;
if (!allFilters) return callback();
var filters = { };
for (var i in allFilters) {
if (!request.resourceConfig.attributes[i]) {
return callback({
status: "403",
code: "EFORBIDDEN",
title: "Invalid filter",
detail: request.resourceConfig.resource + " do not have property " + i
});
}
if (allFilters[i] instanceof Array) {
allFilters[i] = allFilters[i].join(",");
}
filters[i] = allFilters[i];
}
request.params.filter = filters;
return callback();
},
function(callback) {

@@ -54,0 +77,0 @@ resourceConfig.handlers.search(request, callback);

2

package.json
{
"name": "jsonapi-server",
"version": "0.15.1",
"version": "0.15.2",
"description": "A fully featured NodeJS sever implementation of json:api. You provide the resources, we provide the api.",

@@ -5,0 +5,0 @@ "keywords": [

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