graphql-anywhere
Advanced tools
Comparing version 0.2.4 to 0.3.0
# Change log | ||
### v0.3.0 | ||
Add a set of utilities for easily filtering objects with fragments and queries. | ||
This is essentially the code that lived in https://www.npmjs.com/package/graphql-fragments | ||
### v0.2.4 | ||
@@ -4,0 +10,0 @@ |
@@ -0,1 +1,2 @@ | ||
/// <reference types="typed-graphql" /> | ||
import { Selection } from 'graphql'; | ||
@@ -2,0 +3,0 @@ export declare function shouldInclude(selection: Selection, variables?: { |
@@ -0,1 +1,2 @@ | ||
/// <reference types="typed-graphql" /> | ||
import { Document, OperationDefinition, FragmentDefinition } from 'graphql'; | ||
@@ -2,0 +3,0 @@ export declare function getMutationDefinition(doc: Document): OperationDefinition; |
@@ -0,3 +1,5 @@ | ||
/// <reference types="typed-graphql" /> | ||
import { Document } from 'graphql'; | ||
import { FragmentMap } from './getFromAST'; | ||
export { filter, check, propType } from './utilities'; | ||
export declare type Resolver = (fieldName: string, rootValue: any, args: any, context: any, info: ExecInfo) => any; | ||
@@ -4,0 +6,0 @@ export declare type VariableMap = { |
@@ -5,2 +5,6 @@ "use strict"; | ||
var storeUtils_1 = require('./storeUtils'); | ||
var utilities_1 = require('./utilities'); | ||
exports.filter = utilities_1.filter; | ||
exports.check = utilities_1.check; | ||
exports.propType = utilities_1.propType; | ||
var isNull = require('lodash.isnull'); | ||
@@ -7,0 +11,0 @@ var isUndefined = require('lodash.isundefined'); |
@@ -0,1 +1,3 @@ | ||
/// <reference types="typed-graphql" /> | ||
/// <reference types="chai" /> | ||
import { Field, InlineFragment, Selection, GraphQLResult } from 'graphql'; | ||
@@ -2,0 +4,0 @@ export declare function argumentsObjectFromField(field: Field, variables: Object): Object; |
{ | ||
"name": "graphql-anywhere", | ||
"version": "0.2.4", | ||
"version": "0.3.0", | ||
"description": "Run GraphQL queries with no schema and just one resolver", | ||
@@ -54,2 +54,9 @@ "main": "./lib/src/index.js", | ||
"devDependencies": { | ||
"@types/chai": "^3.4.34", | ||
"@types/isomorphic-fetch": "0.0.31", | ||
"@types/lodash": "^4.14.37", | ||
"@types/mocha": "^2.2.32", | ||
"@types/node": "^6.0.46", | ||
"@types/react": "^0.14.43", | ||
"@types/react-dom": "^0.14.18", | ||
"async": "^2.0.0", | ||
@@ -73,5 +80,5 @@ "chai": "^3.5.0", | ||
"tslint": "3.15.1", | ||
"typescript": "^2.0.0", | ||
"typings": "^1.0.0" | ||
"typed-graphql": "^1.0.2", | ||
"typescript": "^2.0.0" | ||
} | ||
} |
@@ -21,3 +21,3 @@ # graphql-anywhere | ||
graphql(resolver, document, rootValue?, context?, variables?, resultMapper?) | ||
graphql(resolver, document, rootValue?, context?, variables?, options?) | ||
``` | ||
@@ -24,0 +24,0 @@ |
@@ -144,5 +144,5 @@ import { | ||
} catch (e) { | ||
throw new Error(`Expected a parsed GraphQL query with a query or a fragment.`) | ||
throw new Error(`Expected a parsed GraphQL query with a query or a fragment.`); | ||
} | ||
} | ||
} |
@@ -27,2 +27,8 @@ import { | ||
export { | ||
filter, | ||
check, | ||
propType, | ||
} from './utilities'; | ||
import isNull = require('lodash.isnull'); | ||
@@ -29,0 +35,0 @@ import isUndefined = require('lodash.isundefined'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70444
31
1242
27
1