@p2pmodels/connect-round-robin
Advanced tools
Comparing version 1.0.0-beta.7 to 1.0.0-beta.8
@@ -10,6 +10,5 @@ "use strict"; | ||
function parseConfig(result, connector) { | ||
const configs = result.data.configs; | ||
if (!configs) | ||
const config = result.data.config; | ||
if (!config) | ||
throw new errors_1.ErrorUnexpectedResult('Unable to parse config.'); | ||
const config = configs[0]; | ||
return config ? new Config_1.default(config, connector) : null; | ||
@@ -16,0 +15,0 @@ } |
@@ -10,6 +10,5 @@ "use strict"; | ||
function parseUser(result, connector) { | ||
const users = result.data.users; | ||
if (!users) | ||
const user = result.data.user; | ||
if (!user) | ||
throw new errors_1.ErrorUnexpectedResult('Unable to parse user.'); | ||
const user = users[0]; | ||
return user ? new User_1.default(user, connector) : null; | ||
@@ -16,0 +15,0 @@ } |
@@ -30,6 +30,4 @@ "use strict"; | ||
exports.USER = (type) => graphql_tag_1.default ` | ||
${type} Users($id: String!) { | ||
users(where: { | ||
id: $id | ||
}) { | ||
${type} User($id: String!) { | ||
user(id: $id) { | ||
id | ||
@@ -36,0 +34,0 @@ benefits |
@@ -10,6 +10,5 @@ "use strict"; | ||
function parseConfig(result, connector) { | ||
const configs = result.data.configs; | ||
if (!configs) | ||
const config = result.data.config; | ||
if (!config) | ||
throw new errors_1.ErrorUnexpectedResult('Unable to parse config.'); | ||
const config = configs[0]; | ||
return config ? new Config_1.default(config, connector) : null; | ||
@@ -16,0 +15,0 @@ } |
@@ -10,6 +10,5 @@ "use strict"; | ||
function parseUser(result, connector) { | ||
const users = result.data.users; | ||
if (!users) | ||
const user = result.data.user; | ||
if (!user) | ||
throw new errors_1.ErrorUnexpectedResult('Unable to parse user.'); | ||
const user = users[0]; | ||
return user ? new User_1.default(user, connector) : null; | ||
@@ -16,0 +15,0 @@ } |
@@ -30,6 +30,4 @@ "use strict"; | ||
exports.USER = (type) => graphql_tag_1.default ` | ||
${type} Users($id: String!) { | ||
users(where: { | ||
id: $id | ||
}) { | ||
${type} User($id: String!) { | ||
user(id: $id) { | ||
id | ||
@@ -36,0 +34,0 @@ benefits |
{ | ||
"name": "@p2pmodels/connect-round-robin", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-beta.8", | ||
"license": "LGPL-3.0-or-later", | ||
@@ -5,0 +5,0 @@ "description": "Aragon connector to access and interact with Round Robin task allocation app", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
631330
1410