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

graphql-anywhere

Package Overview
Dependencies
Maintainers
2
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-anywhere - npm Package Compare versions

Comparing version 0.2.4 to 0.3.0

lib/src/fragments.d.ts

6

CHANGELOG.md
# 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 @@

1

lib/src/directives.d.ts

@@ -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;

13

package.json
{
"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

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