parse 4.0.0-alpha.2 → 4.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -224,7 +224,7 @@ var config
224
224
  SERVER_AUTH_TOKEN: null,
225
225
  LIVEQUERY_SERVER_URL: null,
226
226
  ENCRYPTED_KEY: null,
227
- VERSION: 'js' + "4.0.0-alpha.2",
227
+ VERSION: 'js' + "4.0.0-alpha.3",
228
228
  APPLICATION_ID: null,
229
229
  JAVASCRIPT_KEY: null,
230
230
  MASTER_KEY: null,
@@ -255,8 +255,8 @@ var RESTController = {
255
255
  headers[key] = customHeaders[key];
256
256
  }
257
257
 
258
- function handleProgress(type, event) {
259
- if (options && typeof options.progress === 'function') {
258
+ if (options && typeof options.progress === 'function') {
259
+ var handleProgress = function handleProgress(type, event) {
260
260
  if (event.lengthComputable) {
261
261
  options.progress(event.loaded / event.total, event.loaded, event.total, {
262
262
  type: type
@@ -266,17 +266,17 @@ var RESTController = {
266
266
  type: type
267
267
  });
268
268
  }
269
- }
270
- }
271
-
272
- xhr.onprogress = function (event) {
273
- handleProgress('download', event);
274
- };
269
+ };
275
270
 
276
- if (xhr.upload) {
277
- xhr.upload.onprogress = function (event) {
278
- handleProgress('upload', event);
271
+ xhr.onprogress = function (event) {
272
+ handleProgress('download', event);
279
273
  };
274
+
275
+ if (xhr.upload) {
276
+ xhr.upload.onprogress = function (event) {
277
+ handleProgress('upload', event);
278
+ };
279
+ }
280
280
  }
281
281
 
282
282
  xhr.open(method, url, true);
@@ -217,7 +217,7 @@ const config
217
217
  SERVER_AUTH_TOKEN: null,
218
218
  LIVEQUERY_SERVER_URL: null,
219
219
  ENCRYPTED_KEY: null,
220
- VERSION: 'js' + "4.0.0-alpha.2",
220
+ VERSION: 'js' + "4.0.0-alpha.3",
221
221
  APPLICATION_ID: null,
222
222
  JAVASCRIPT_KEY: null,
223
223
  MASTER_KEY: null,
@@ -199,8 +199,8 @@ const RESTController = {
199
199
  headers[key] = customHeaders[key];
200
200
  }
201
201
 
202
- function handleProgress(type, event) {
203
- if (options && typeof options.progress === 'function') {
202
+ if (options && typeof options.progress === 'function') {
203
+ const handleProgress = function (type, event) {
204
204
  if (event.lengthComputable) {
205
205
  options.progress(event.loaded / event.total, event.loaded, event.total, {
206
206
  type
@@ -210,17 +210,17 @@ const RESTController = {
210
210
  type
211
211
  });
212
212
  }
213
- }
214
- }
215
-
216
- xhr.onprogress = event => {
217
- handleProgress('download', event);
218
- };
213
+ };
219
214
 
220
- if (xhr.upload) {
221
- xhr.upload.onprogress = event => {
222
- handleProgress('upload', event);
215
+ xhr.onprogress = event => {
216
+ handleProgress('download', event);
223
217
  };
218
+
219
+ if (xhr.upload) {
220
+ xhr.upload.onprogress = event => {
221
+ handleProgress('upload', event);
222
+ };
223
+ }
224
224
  }
225
225
 
226
226
  xhr.open(method, url, true);
@@ -8,7 +8,7 @@ var config = {
8
8
  SERVER_AUTH_TOKEN: null,
9
9
  LIVEQUERY_SERVER_URL: null,
10
10
  ENCRYPTED_KEY: null,
11
- VERSION: 'js' + "4.0.0-alpha.2",
11
+ VERSION: 'js' + "4.0.0-alpha.3",
12
12
  APPLICATION_ID: null,
13
13
  JAVASCRIPT_KEY: null,
14
14
  MASTER_KEY: null,
@@ -183,8 +183,8 @@ var RESTController = {
183
183
  headers[key] = customHeaders[key];
184
184
  }
185
185
 
186
- function handleProgress(type, event) {
187
- if (options && typeof options.progress === 'function') {
186
+ if (options && typeof options.progress === 'function') {
187
+ var handleProgress = function handleProgress(type, event) {
188
188
  if (event.lengthComputable) {
189
189
  options.progress(event.loaded / event.total, event.loaded, event.total, {
190
190
  type: type
@@ -194,17 +194,17 @@ var RESTController = {
194
194
  type: type
195
195
  });
196
196
  }
197
- }
198
- }
199
-
200
- xhr.onprogress = function (event) {
201
- handleProgress('download', event);
202
- };
197
+ };
203
198
 
204
- if (xhr.upload) {
205
- xhr.upload.onprogress = function (event) {
206
- handleProgress('upload', event);
199
+ xhr.onprogress = function (event) {
200
+ handleProgress('download', event);
207
201
  };
202
+
203
+ if (xhr.upload) {
204
+ xhr.upload.onprogress = function (event) {
205
+ handleProgress('upload', event);
206
+ };
207
+ }
208
208
  }
209
209
 
210
210
  xhr.open(method, url, true);
@@ -224,7 +224,7 @@ var config
224
224
  SERVER_AUTH_TOKEN: null,
225
225
  LIVEQUERY_SERVER_URL: null,
226
226
  ENCRYPTED_KEY: null,
227
- VERSION: 'js' + "4.0.0-alpha.2",
227
+ VERSION: 'js' + "4.0.0-alpha.3",
228
228
  APPLICATION_ID: null,
229
229
  JAVASCRIPT_KEY: null,
230
230
  MASTER_KEY: null,
@@ -256,8 +256,8 @@ var RESTController = {
256
256
  headers[key] = customHeaders[key];
257
257
  }
258
258
 
259
- function handleProgress(type, event) {
260
- if (options && typeof options.progress === 'function') {
259
+ if (options && typeof options.progress === 'function') {
260
+ var handleProgress = function handleProgress(type, event) {
261
261
  if (event.lengthComputable) {
262
262
  options.progress(event.loaded / event.total, event.loaded, event.total, {
263
263
  type: type
@@ -267,17 +267,17 @@ var RESTController = {
267
267
  type: type
268
268
  });
269
269
  }
270
- }
271
- }
272
-
273
- xhr.onprogress = function (event) {
274
- handleProgress('download', event);
275
- };
270
+ };
276
271
 
277
- if (xhr.upload) {
278
- xhr.upload.onprogress = function (event) {
279
- handleProgress('upload', event);
272
+ xhr.onprogress = function (event) {
273
+ handleProgress('download', event);
280
274
  };
275
+
276
+ if (xhr.upload) {
277
+ xhr.upload.onprogress = function (event) {
278
+ handleProgress('upload', event);
279
+ };
280
+ }
281
281
  }
282
282
 
283
283
  xhr.open(method, url, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse",
3
- "version": "4.0.0-alpha.2",
3
+ "version": "4.0.0-alpha.3",
4
4
  "description": "The Parse JavaScript SDK",
5
5
  "homepage": "https://parseplatform.org/",
6
6
  "keywords": [