Socket
Socket
Sign inDemoInstall

graphql-compose-json

Package Overview
Dependencies
4
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.1.0 to 5.2.0

lib/InputObjectParser.d.ts

4

lib/index.d.ts
import ObjectParser from './ObjectParser';
import InputObjectParser from './InputObjectParser';
declare const composeWithJson: typeof ObjectParser.createTC;
declare const composeInputWithJson: typeof InputObjectParser.createITC;
export default composeWithJson;
export { composeWithJson };
export { composeWithJson, composeInputWithJson };
//# sourceMappingURL=index.d.ts.map

@@ -7,4 +7,7 @@ "use strict";

var ObjectParser_1 = __importDefault(require("./ObjectParser"));
var InputObjectParser_1 = __importDefault(require("./InputObjectParser"));
var composeWithJson = ObjectParser_1.default.createTC.bind(ObjectParser_1.default);
exports.composeWithJson = composeWithJson;
var composeInputWithJson = InputObjectParser_1.default.createITC.bind(InputObjectParser_1.default);
exports.composeInputWithJson = composeInputWithJson;
exports.default = composeWithJson;
{
"name": "graphql-compose-json",
"version": "5.1.0",
"version": "5.2.0",
"description": "This is a plugin for `graphql-compose`, which generates GraphQLTypes from any JSON.",

@@ -28,28 +28,28 @@ "files": [

"devDependencies": {
"@types/express": "^4.17.3",
"@types/express": "4.17.4",
"@types/express-graphql": "^0.9.0",
"@types/graphql": "^14.5.0",
"@types/jest": "^25.1.4",
"@types/node": "^13.9.0",
"@types/node-fetch": "^2.5.5",
"@typescript-eslint/eslint-plugin": "^2.23.0",
"@typescript-eslint/parser": "^2.23.0",
"@types/jest": "25.2.1",
"@types/node": "13.13.5",
"@types/node-fetch": "2.5.7",
"@typescript-eslint/eslint-plugin": "2.31.0",
"@typescript-eslint/parser": "2.31.0",
"cross-env": "7.0.2",
"eslint": "6.8.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "6.10.0",
"eslint-plugin-flowtype": "4.6.0",
"eslint-plugin-import": "2.20.1",
"eslint-plugin-prettier": "3.1.2",
"eslint": "7.0.0",
"eslint-config-airbnb-base": "14.1.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-flowtype": "4.7.0",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-prettier": "3.1.3",
"express": "^4.17.1",
"express-graphql": "^0.9.0",
"graphql": "14.6.0",
"graphql-compose": "7.14.0",
"jest": "25.1.0",
"graphql": "15.0.0",
"graphql-compose": "7.14.4",
"jest": "26.0.1",
"node-fetch": "^2.6.0",
"prettier": "1.19.1",
"prettier": "2.0.5",
"rimraf": "3.0.2",
"semantic-release": "17.0.4",
"ts-jest": "^25.2.1",
"ts-node": "^8.6.2",
"semantic-release": "17.0.7",
"ts-jest": "25.5.1",
"ts-node": "8.10.1",
"typescript": "^3.8.3"

@@ -56,0 +56,0 @@ },

@@ -30,3 +30,3 @@ # graphql-compose-json

import composeWithJson from 'graphql-compose-json';
import { composeWithJson, composeInputWithJson } from 'graphql-compose-json';

@@ -53,3 +53,6 @@ const restApiResponse = {

export const PersonTC = composeWithJson('Person', restApiResponse);
export const PersonGraphQLType = PersonTC.getType();
export const PersonGraphQLType = PersonTC.getType(); // GraphQLObjectType
export const PersonITC = composeInputWithJson('PersonInput', restApiResponse);
export const PersonGraphQLInput = PersonITC.getType(); // GraphQLInputObjectType
```

@@ -62,3 +65,3 @@

```js
import composeWithJson from 'graphql-compose-json';
import { composeWithJson } from 'graphql-compose-json';

@@ -65,0 +68,0 @@ const restApiResponse = {

Sorry, the diff of this file is not supported yet

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