Skip to content

Commit 42b2e0a

Browse files
committed
nits
1 parent 3b2adec commit 42b2e0a

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

.nvmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
4.6
2+

src/APNS.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const LOG_PREFIX = 'parse-server-push-adapter APNS';
1919
* @param {String} args.bundleId The bundleId for cert
2020
* @param {Boolean} args.production Specifies which environment to connect to: Production (if true) or Sandbox
2121
*/
22-
function APNS(args) {
22+
export default function APNS(args) {
2323
// typePushConfig can be an array.
2424
let apnsArgsList = [];
2525
if (Array.isArray(args)) {
@@ -260,5 +260,3 @@ if (process.env.TESTING) {
260260
APNS.chooseConns = chooseConns;
261261
APNS.handleTransmissionError = handleTransmissionError;
262262
}
263-
264-
export default APNS;

src/GCM.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const LOG_PREFIX = 'parse-server-push-adapter GCM';
99
const GCMTimeToLiveMax = 4 * 7 * 24 * 60 * 60; // GCM allows a max of 4 weeks
1010
const GCMRegistrationTokensMax = 1000;
1111

12-
function GCM(args) {
12+
export default function GCM(args) {
1313
if (typeof args !== 'object' || !args.apiKey) {
1414
throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED,
1515
'GCM Configuration is invalid');
@@ -172,5 +172,3 @@ GCM.generateGCMPayload = generateGCMPayload;
172172
if (process.env.TESTING) {
173173
GCM.sliceDevices = sliceDevices;
174174
}
175-
176-
export default GCM;

src/ParsePushAdapter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { classifyInstallations } from './PushAdapterUtils';
77

88
const LOG_PREFIX = 'parse-server-push-adapter';
99

10-
export class ParsePushAdapter {
10+
export default class ParsePushAdapter {
1111

1212
supportsPushTracking = true;
1313

@@ -76,4 +76,3 @@ export class ParsePushAdapter {
7676
})
7777
}
7878
}
79-
export default ParsePushAdapter;

0 commit comments

Comments
 (0)