Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsonapi-server

Package Overview
Dependencies
Maintainers
5
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 2.0.1 to 2.0.2

2

CHANGELOG.md

@@ -0,1 +1,3 @@

- 2016-09-29 - v2.0.2
- 2016-09-29 - Better Joi to GraphQL type conversion
- 2016-09-29 - v2.0.1

@@ -2,0 +4,0 @@ - 2016-09-29 - Adding use-strict to all files

@@ -8,2 +8,6 @@ 'use strict'

let type = joiScheme._type
if (type === 'any') {
// { _valids: { _set: [ 'M', 'F' ] } }
type = typeof (joiScheme._valids._set || [ ])[0]
}
if (type === 'date') {

@@ -15,4 +19,9 @@ type = 'string'

}
const uType = type[0].toUpperCase() + type.substring(1)
type = graphQl[`GraphQL${uType}`]
if (!type) {
throw new Error('Unable to parse Joi type, got ' + JSON.stringify(joiScheme))
}
return type

@@ -19,0 +28,0 @@ }

2

package.json
{
"name": "jsonapi-server",
"version": "2.0.1",
"version": "2.0.2",
"description": "A config driven NodeJS framework implementing json: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