Skip to content

Commit 1e0b45a

Browse files
committed
remove circular dependency
1 parent d16f074 commit 1e0b45a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Parse.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import StorageController from './StorageController';
3838
import WebSocketController from './WebSocketController';
3939
import type { EventuallyQueue } from './CoreManager';
4040

41-
const Parse = {
41+
export const Parse = {
4242
ACL,
4343
Analytics,
4444
AnonymousUtils,
@@ -416,7 +416,5 @@ if (process.env.PARSE_BUILD === 'node') {
416416
if (process.env.PARSE_BUILD === 'browser') {
417417
(globalThis as any).Parse = Parse;
418418
}
419-
// For legacy requires, of the form `var Parse = require('parse').Parse`
420-
Parse.Parse = Parse;
421419

422420
export default Parse;

types/Parse.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import User from './ParseUser';
2020
import ParseLiveQuery from './ParseLiveQuery';
2121
import LiveQueryClient from './LiveQueryClient';
2222
import type { EventuallyQueue } from './CoreManager';
23-
declare const Parse: {
23+
export declare const Parse: {
2424
ACL: typeof ACL;
2525
Analytics: typeof Analytics;
2626
AnonymousUtils: {

0 commit comments

Comments
 (0)