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

@@ -2,6 +2,7 @@ import ClassesRouter from './ClassesRouter';
import Parse from 'parse/node';
import rest from '../rest';
import Auth from '../Auth';
import RestWrite from '../RestWrite';
export class SessionsRouter extends ClassesRouter {
className() {
@@ -41,7 +42,7 @@ export class SessionsRouter extends ClassesRouter {
if (!user) {
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'invalid session');
}
const { sessionData, createSession } = Auth.createSession(config, {
const { sessionData, createSession } = RestWrite.createSession(config, {
userId: user.id,
createdWith: {
action: 'upgrade',