File tree 4 files changed +5
-8
lines changed 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change
1
+ 4.6
2
+
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const LOG_PREFIX = 'parse-server-push-adapter APNS';
19
19
* @param {String } args.bundleId The bundleId for cert
20
20
* @param {Boolean } args.production Specifies which environment to connect to: Production (if true) or Sandbox
21
21
*/
22
- function APNS ( args ) {
22
+ export default function APNS ( args ) {
23
23
// typePushConfig can be an array.
24
24
let apnsArgsList = [ ] ;
25
25
if ( Array . isArray ( args ) ) {
@@ -260,5 +260,3 @@ if (process.env.TESTING) {
260
260
APNS . chooseConns = chooseConns ;
261
261
APNS . handleTransmissionError = handleTransmissionError ;
262
262
}
263
-
264
- export default APNS ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const LOG_PREFIX = 'parse-server-push-adapter GCM';
9
9
const GCMTimeToLiveMax = 4 * 7 * 24 * 60 * 60 ; // GCM allows a max of 4 weeks
10
10
const GCMRegistrationTokensMax = 1000 ;
11
11
12
- function GCM ( args ) {
12
+ export default function GCM ( args ) {
13
13
if ( typeof args !== 'object' || ! args . apiKey ) {
14
14
throw new Parse . Error ( Parse . Error . PUSH_MISCONFIGURED ,
15
15
'GCM Configuration is invalid' ) ;
@@ -172,5 +172,3 @@ GCM.generateGCMPayload = generateGCMPayload;
172
172
if ( process . env . TESTING ) {
173
173
GCM . sliceDevices = sliceDevices ;
174
174
}
175
-
176
- export default GCM ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { classifyInstallations } from './PushAdapterUtils';
7
7
8
8
const LOG_PREFIX = 'parse-server-push-adapter' ;
9
9
10
- export class ParsePushAdapter {
10
+ export default class ParsePushAdapter {
11
11
12
12
supportsPushTracking = true ;
13
13
@@ -76,4 +76,3 @@ export class ParsePushAdapter {
76
76
} )
77
77
}
78
78
}
79
- export default ParsePushAdapter ;
You can’t perform that action at this time.
0 commit comments