Skip to content

Commit ca8239b

Browse files
committed
re add legacy export
1 parent 1a52e10 commit ca8239b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Parse.ts

+3-1
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-
export const Parse = {
41+
const Parse = {
4242
ACL,
4343
Analytics,
4444
AnonymousUtils,
@@ -416,5 +416,7 @@ 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;
419421

420422
export default Parse;

types/Parse.d.ts

+1-1
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-
export declare const Parse: {
23+
declare const Parse: {
2424
ACL: typeof ACL;
2525
Analytics: typeof Analytics;
2626
AnonymousUtils: {

0 commit comments

Comments
 (0)