File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ import StorageController from './StorageController';
3838import WebSocketController from './WebSocketController' ;
3939import type { EventuallyQueue } from './CoreManager' ;
4040
41- export const Parse = {
41+ const Parse = {
4242 ACL ,
4343 Analytics,
4444 AnonymousUtils,
@@ -416,5 +416,7 @@ if (process.env.PARSE_BUILD === 'node') {
416416if ( 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 ;
419421
420422export default Parse ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import User from './ParseUser';
2020import ParseLiveQuery from './ParseLiveQuery' ;
2121import LiveQueryClient from './LiveQueryClient' ;
2222import type { EventuallyQueue } from './CoreManager' ;
23- export declare const Parse : {
23+ declare const Parse : {
2424 ACL : typeof ACL ;
2525 Analytics : typeof Analytics ;
2626 AnonymousUtils : {
You can’t perform that action at this time.
0 commit comments