babel-plugin-react-relay
Advanced tools
Comparing version 0.9.2-3 to 0.9.2-4
@@ -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" |
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
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
5235
+ Addedbabel-relay-plugin@0.9.2(transitive)
- Removedbabel-relay-plugin@0.9.3(transitive)
Updatedbabel-relay-plugin@0.9.2