@p2pmodels/connect-round-robin
Advanced tools
Comparing version 1.0.0-beta.6 to 1.0.0-beta.7
@@ -29,10 +29,9 @@ "use strict"; | ||
const connector_1 = __importStar(require("./thegraph/connector")); | ||
exports.default = connect_core_1.createAppConnector(({ app, config }) => { | ||
exports.default = connect_core_1.createAppConnector(({ app, config, connector, network, orgConnector, verbose }) => { | ||
var _a, _b, _c, _d, _e; | ||
const { name, address, organization: { connection: { network, orgConnector, verbose }, }, } = app; | ||
if (orgConnector.name !== 'thegraph') { | ||
throw new errors_1.ErrorInvalidConnector(`Connector unsupported: ${orgConnector.name}. Please use thegraph.`); | ||
if (connector !== 'thegraph') { | ||
throw new errors_1.ErrorInvalidConnector(`Connector unsupported: ${connector}. Please use thegraph.`); | ||
} | ||
if (name !== 'ta-round-robin') { | ||
throw new errors_1.ErrorInvalidApp(`This app (${name}) is not compatible with this round robin connector. ` + | ||
if (app.name !== 'ta-round-robin') { | ||
throw new errors_1.ErrorInvalidApp(`This app (${app.name}) is not compatible with this round robin connector. ` + | ||
`Please use an app instance of the ta-round-robin.open.aragonpm.eth repo.`); | ||
@@ -54,4 +53,4 @@ } | ||
}); | ||
return new RoundRobin_1.default(connectorTheGraph, address); | ||
return new RoundRobin_1.default(connectorTheGraph, app.address); | ||
}); | ||
//# sourceMappingURL=connect.js.map |
@@ -29,10 +29,9 @@ "use strict"; | ||
const connector_1 = __importStar(require("./thegraph/connector")); | ||
exports.default = connect_core_1.createAppConnector(({ app, config }) => { | ||
exports.default = connect_core_1.createAppConnector(({ app, config, connector, network, orgConnector, verbose }) => { | ||
var _a, _b, _c, _d, _e; | ||
const { name, address, organization: { connection: { network, orgConnector, verbose }, }, } = app; | ||
if (orgConnector.name !== 'thegraph') { | ||
throw new errors_1.ErrorInvalidConnector(`Connector unsupported: ${orgConnector.name}. Please use thegraph.`); | ||
if (connector !== 'thegraph') { | ||
throw new errors_1.ErrorInvalidConnector(`Connector unsupported: ${connector}. Please use thegraph.`); | ||
} | ||
if (name !== 'ta-round-robin') { | ||
throw new errors_1.ErrorInvalidApp(`This app (${name}) is not compatible with this round robin connector. ` + | ||
if (app.name !== 'ta-round-robin') { | ||
throw new errors_1.ErrorInvalidApp(`This app (${app.name}) is not compatible with this round robin connector. ` + | ||
`Please use an app instance of the ta-round-robin.open.aragonpm.eth repo.`); | ||
@@ -54,4 +53,4 @@ } | ||
}); | ||
return new RoundRobin_1.default(connectorTheGraph, address); | ||
return new RoundRobin_1.default(connectorTheGraph, app.address); | ||
}); | ||
//# sourceMappingURL=connect.js.map |
{ | ||
"name": "@p2pmodels/connect-round-robin", | ||
"version": "1.0.0-beta.6", | ||
"version": "1.0.0-beta.7", | ||
"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
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
631692
1418