Add circular dependency detection to CI (#7316)

* add circular dependency detection to CI

* fixed Auth-RestWrite circular dependency

* updated package lock

* fixed Logger circular dependency

* fix lint
This commit is contained in:
Manuel
2021-04-08 03:47:57 +02:00
committed by GitHub
parent 0becb0cc9f
commit c56d326b17
9 changed files with 1226 additions and 88 deletions

View File

@@ -10,7 +10,6 @@ based on the parameters passed
// _adapter is private, use Symbol
var _adapter = Symbol();
import Config from '../Config';
export class AdaptableController {
constructor(adapter, appId, options) {
@@ -28,10 +27,6 @@ export class AdaptableController {
return this[_adapter];
}
get config() {
return Config.get(this.appId);
}
expectedAdapterType() {
throw new Error('Subclasses should implement expectedAdapterType()');
}

View File

@@ -5,6 +5,7 @@ import MailAdapter from '../Adapters/Email/MailAdapter';
import rest from '../rest';
import Parse from 'parse/node';
import AccountLockout from '../AccountLockout';
import Config from '../Config';
var RestQuery = require('../RestQuery');
var Auth = require('../Auth');
@@ -14,6 +15,10 @@ export class UserController extends AdaptableController {
super(adapter, appId, options);
}
get config() {
return Config.get(this.appId);
}
validateAdapter(adapter) {
// Allow no adapter
if (!adapter && !this.shouldVerifyEmails) {