Socket
Book a DemoInstallSign in
Socket

get-graphql-from-jsonschema

Package Overview
Dependencies
Maintainers
4
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-graphql-from-jsonschema - npm Package Compare versions

Comparing version

to
3.0.1

.releaserc.json

3

build/lib/handleObjectType.js

@@ -8,2 +8,3 @@ "use strict";

const handleObjectType = function ({ path, schema, direction }) {
var _a;
if (!schema.properties) {

@@ -26,3 +27,3 @@ throw new errors_1.errors.SchemaInvalid(`Property 'properties' at '${toBreadcrumb_1.toBreadcrumb(path)}' is missing.`);

for (const [propertyName, propertySchema] of Object.entries(schema.properties)) {
const isRequired = (schema.required && schema.required.includes(propertyName)) || false;
const isRequired = (_a = (schema.required && schema.required.includes(propertyName)), (_a !== null && _a !== void 0 ? _a : false));
const { typeName: propertyGraphqlTypeName, typeDefinitions: propertyGraphqlTypeDefinitions } = parseSchema_1.parseSchema({

@@ -29,0 +30,0 @@ path: [...path, propertyName],

@@ -36,3 +36,3 @@ import { Direction } from './Direction';

schema.required && schema.required.includes(propertyName)
) || false;
) ?? false;

@@ -39,0 +39,0 @@ const {

{
"name": "get-graphql-from-jsonschema",
"version": "3.0.0",
"version": "3.0.1",
"description": "get-graphql-from-jsonschema gets a GraphQL schema from a JSON schema.",

@@ -18,10 +18,11 @@ "contributors": [

"dependencies": {
"defekt": "5.0.0"
"defekt": "5.0.1"
},
"devDependencies": {
"@types/common-tags": "1.8.0",
"@types/json-schema": "7.0.3",
"assertthat": "5.0.2",
"@types/json-schema": "7.0.4",
"assertthat": "5.1.0",
"common-tags": "1.8.0",
"roboter": "9.2.0"
"roboter": "11.0.12",
"semantic-release-configuration": "1.0.16"
},

@@ -28,0 +29,0 @@ "repository": {

@@ -7,9 +7,9 @@ # get-graphql-from-jsonschema

| Category | Status |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Version | [![npm](https://img.shields.io/npm/v/get-graphql-from-jsonschema)](https://www.npmjs.com/package/get-graphql-from-jsonschema) |
| Dependencies | ![David](https://img.shields.io/david/thenativeweb/get-graphql-from-jsonschema) |
| Dev dependencies | ![David](https://img.shields.io/david/dev/thenativeweb/get-graphql-from-jsonschema) |
| Build | [![CircleCI](https://img.shields.io/circleci/build/github/thenativeweb/get-graphql-from-jsonschema)](https://circleci.com/gh/thenativeweb/get-graphql-from-jsonschema/tree/master) |
| License | ![GitHub](https://img.shields.io/github/license/thenativeweb/get-graphql-from-jsonschema) |
| Category | Status |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Version | [![npm](https://img.shields.io/npm/v/get-graphql-from-jsonschema)](https://www.npmjs.com/package/get-graphql-from-jsonschema) |
| Dependencies | ![David](https://img.shields.io/david/thenativeweb/get-graphql-from-jsonschema) |
| Dev dependencies | ![David](https://img.shields.io/david/dev/thenativeweb/get-graphql-from-jsonschema) |
| Build | ![GitHub Actions](https://github.com/thenativeweb/get-graphql-from-jsonschema/workflows/Release/badge.svg?branch=master) |
| License | ![GitHub](https://img.shields.io/github/license/thenativeweb/get-graphql-from-jsonschema) |

@@ -16,0 +16,0 @@ ## Installation

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.