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

babel-relay-plugin

Package Overview
Dependencies
Maintainers
8
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-relay-plugin - npm Package Compare versions

Comparing version 0.8.1 to 0.9.0

3

lib/GraphQL.js

@@ -22,3 +22,6 @@ // @generated

type: require('graphql/type'),
type_definition: require('graphql/type/definition'),
type_directives: require('graphql/type/directives'),
type_introspection: require('graphql/type/introspection'),
type_scalars: require('graphql/type/scalars'),
utilities: require('graphql/utilities'),

@@ -25,0 +28,0 @@ utilities_buildClientSchema: require('graphql/utilities/buildClientSchema'),

68

lib/GraphQLRelayDirective.js

@@ -16,13 +16,10 @@ // @generated

var TypeKind = require('./GraphQL').type_introspection.TypeKind;
var _require = require('./GraphQL');
var BOOLEAN = {
kind: TypeKind.SCALAR,
name: 'Boolean'
};
var DirectiveLocation = _require.type_directives.DirectiveLocation;
var GraphQLList = _require.type_definition.GraphQLList;
var _require$type_scalars = _require.type_scalars;
var GraphQLBoolean = _require$type_scalars.GraphQLBoolean;
var GraphQLString = _require$type_scalars.GraphQLString;
var STRING = {
kind: TypeKind.SCALAR,
name: 'String'
};

@@ -32,34 +29,25 @@ module.exports = {

description: 'The @relay directive.',
args: [{
name: 'isConnectionWithoutNodeID',
description: 'Marks a connection field as containing nodes without `id` fields. ' + 'This is used to silence the warning when diffing connections.',
type: BOOLEAN,
defaultValue: null
}, {
name: 'isStaticFragment',
description: 'Marks a fragment as static. A static fragment will share the same ' + 'identity regardless of how many times the expression is evaluated.',
type: BOOLEAN,
defaultValue: null
}, {
name: 'pattern',
description: 'Marks a fragment as intended for pattern matching (as opposed to ' + 'fetching).',
type: BOOLEAN,
defaultValue: null
}, {
name: 'plural',
description: 'Marks a fragment as being backed by a GraphQLList',
type: BOOLEAN,
defaultValue: null
}, {
name: 'variables',
description: 'Selectively pass variables down into a fragment.',
type: {
kind: TypeKind.LIST,
ofType: STRING
args: {
isConnectionWithoutNodeID: {
description: 'Marks a connection field as containing nodes without `id` fields. ' + 'This is used to silence the warning when diffing connections.',
type: GraphQLBoolean
},
defaultValue: null
}],
onOperation: false,
onFragment: true,
onField: true
isStaticFragment: {
description: 'Marks a fragment as static. A static fragment will share the same ' + 'identity regardless of how many times the expression is evaluated.',
type: GraphQLBoolean
},
pattern: {
description: 'Marks a fragment as intended for pattern matching (as opposed to ' + 'fetching).',
type: GraphQLBoolean
},
plural: {
description: 'Marks a fragment as being backed by a GraphQLList',
type: GraphQLBoolean
},
variables: {
description: 'Selectively pass variables down into a fragment.',
type: new GraphQLList(GraphQLString)
}
},
locations: [DirectiveLocation.FIELD, DirectiveLocation.FRAGMENT_DEFINITION]
};

@@ -29,2 +29,3 @@ // @generated

var types = _require.type;
var GraphQLDirectiveClass = _require.type_directives.GraphQLDirective;
var _require$type_introsp = _require.type_introspection;

@@ -37,7 +38,6 @@ var SchemaMetaFieldDef = _require$type_introsp.SchemaMetaFieldDef;

var buildDirective = require('./buildDirective');
var find = require('./find');
var invariant = require('./invariant');
var GraphQLRelayDirectiveInstance = buildDirective(GraphQLRelayDirective);
var GraphQLRelayDirectiveInstance = new GraphQLDirectiveClass(GraphQLRelayDirective);

@@ -544,3 +544,3 @@ // TODO: Import types from `graphql`.

})) {
var possibleTypes = type.getPossibleTypes();
var possibleTypes = this.context.schema.getPossibleTypes(type);

@@ -595,3 +595,3 @@ var _loop = function _loop(ii) {

invariant(this.isAbstract(), 'Cannot get concrete types of a concrete type.');
return this.schemaUnmodifiedType.getPossibleTypes().map(function (concreteType) {
return this.context.schema.getPossibleTypes(this.schemaUnmodifiedType).map(function (concreteType) {
return new RelayQLType(_this16.context, concreteType);

@@ -698,13 +698,5 @@ });

}
},
selectionSet: {
selections: [{
kind: 'Field',
name: {
name: 'Name',
value: 'id'
}
}]
}
};
// ID field will be generated by the printer; we won't declare it here.
return new RelayQLFragment(this.context, generatedFragmentAST, this);

@@ -711,0 +703,0 @@ }

@@ -34,3 +34,3 @@ // @generated

var ast = language.parse(body);
var astSchema = utilities.buildASTSchema(ast, 'Root', 'Mutation', 'Subscription');
var astSchema = utilities.buildASTSchema(ast);
graphql.graphql(astSchema, utilities.introspectionQuery).then(function (result) {

@@ -37,0 +37,0 @@ var out = JSON.stringify(result, null, 2);

{
"name": "babel-relay-plugin",
"version": "0.8.1",
"version": "0.9.0",
"description": "Babel Relay Plugin for transpiling GraphQL queries for use with Relay.",

@@ -25,23 +25,23 @@ "license": "BSD-3-Clause",

"devDependencies": {
"babel-cli": "^6.7.5",
"babel-core": "^6.6.4",
"babel-eslint": "^4.1.1",
"babel-jest": "^11.0.2",
"babel-plugin-syntax-flow": "^6.5.0",
"babel-plugin-syntax-object-rest-spread": "^6.5.0",
"babel-plugin-syntax-trailing-function-commas": "^6.5.0",
"babel-plugin-transform-class-properties": "^6.6.0",
"babel-plugin-transform-flow-strip-types": "^6.7.0",
"babel-plugin-transform-object-rest-spread": "^6.6.5",
"babel-preset-es2015": "^6.6.0",
"eslint": "^1.3.1",
"flow-bin": "0.23.0",
"babel-cli": "^6.9.0",
"babel-core": "^6.9.0",
"babel-eslint": "^6.0.4",
"babel-jest": "^12.1.0",
"babel-plugin-syntax-flow": "^6.8.0",
"babel-plugin-syntax-object-rest-spread": "^6.8.0",
"babel-plugin-syntax-trailing-function-commas": "^6.8.0",
"babel-plugin-transform-class-properties": "^6.9.0",
"babel-plugin-transform-flow-strip-types": "^6.8.0",
"babel-plugin-transform-object-rest-spread": "^6.8.0",
"babel-preset-es2015": "^6.9.0",
"eslint": "^2.10.2",
"flow-bin": "^0.25.0",
"glob": "^7.0.3",
"jest-cli": "^11.0.2",
"minimist": "^1.1.3",
"jest-cli": "^12.1.1",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"rimraf": "^2.5"
"rimraf": "^2.5.2"
},
"dependencies": {
"graphql": "^0.4.18"
"graphql": "^0.6.0"
},

@@ -48,0 +48,0 @@ "jest": {

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