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

babel-plugin-react-relay

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-react-relay - npm Package Compare versions

Comparing version 0.9.2-3 to 0.9.2-4

42

lib/index.js

@@ -8,2 +8,23 @@ 'use strict';

exports.default = function (babel) {
var wait = true;
var schema = void 0,
error = void 0;
(0, _graphqlConfigParser.resolveSchema)(config).then(function (result) {
schema = result;
wait = false;
}).catch(function (err) {
error = err;
wait = false;
});
// TODO find a cleaner way to do this
(0, _deasync.loopWhile)(function () {
return wait;
});
if (error) {
throw error;
}
if (schema.data) {

@@ -29,22 +50,1 @@ return (0, _babelRelayPlugin2.default)(schema.data)(babel);

var config = (0, _graphqlConfigParser.parse)();
var wait = true;
var schema = void 0,
error = void 0;
(0, _graphqlConfigParser.resolveSchema)(config).then(function (result) {
schema = result;
wait = false;
}).catch(function (err) {
error = err;
wait = false;
});
// TODO find a cleaner way to do this
(0, _deasync.loopWhile)(function () {
return wait;
});
if (error) {
throw error;
}
{
"name": "babel-plugin-react-relay",
"version": "0.9.2-3",
"version": "0.9.2-4",
"description": "Babel plugin for Relay (react-relay) with easy schema configuration in .babelrc",

@@ -42,3 +42,3 @@ "main": "lib/index.js",

"dependencies": {
"babel-relay-plugin": "^0.9.2",
"babel-relay-plugin": "0.9.2",
"deasync": "^0.1.7",

@@ -45,0 +45,0 @@ "graphql-config-parser": "^1.1.0"

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