Socket
Socket
Sign inDemoInstall

@coding-blocks/jsonapi-server

Package Overview
Dependencies
112
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.4.2 to 5.4.3

7

lib/postProcessing/filter.js

@@ -25,3 +25,8 @@ 'use strict'

debug.filter('removed', JSON.stringify(filters), JSON.stringify(response.data.attributes))
response.data = null
return callback({ // eslint-disable-line standard/no-callback-literal
status: '404',
code: 'ENOTFOUND',
title: 'Requested resource does not exist',
detail: `There is no ${request.params.type} with id ${request.params.id} which satisfies ${request.params.filter}`
})
}

@@ -28,0 +33,0 @@ }

2

package.json
{
"name": "@coding-blocks/jsonapi-server",
"version": "5.4.2",
"version": "5.4.3",
"description": "A config driven NodeJS framework implementing json:api",

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

@@ -82,6 +82,6 @@ 'use strict'

assert.equal(err, null)
json = helpers.validateJson(json)
json = helpers.validateError(json)
assert.equal(res.statusCode, '200', 'Expecting 200 OK')
assert.deepEqual(json.data, null)
assert.equal(res.statusCode, '404', 'Expecting 404 NOT FOUND')
// assert.deepEqual(json.data, null)

@@ -88,0 +88,0 @@ done()

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc