parse 3.5.0-alpha.3 → 3.5.0-alpha.5

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.
Files changed (51) hide show
  1. package/dist/parse.js +5732 -2377
  2. package/dist/parse.min.js +2 -2
  3. package/dist/parse.weapp.js +5730 -2375
  4. package/dist/parse.weapp.min.js +2 -2
  5. package/lib/browser/CoreManager.js +1 -1
  6. package/lib/browser/EventuallyQueue.js +395 -29
  7. package/lib/browser/LiveQueryClient.js +2 -6
  8. package/lib/browser/LocalDatastore.js +392 -18
  9. package/lib/browser/LocalDatastoreController.js +391 -21
  10. package/lib/browser/LocalDatastoreController.react-native.js +387 -23
  11. package/lib/browser/OfflineQuery.js +29 -8
  12. package/lib/browser/ParseFile.js +388 -22
  13. package/lib/browser/ParseLiveQuery.js +381 -18
  14. package/lib/browser/ParseObject.js +405 -41
  15. package/lib/browser/ParseOp.js +1 -3
  16. package/lib/browser/ParseQuery.js +396 -47
  17. package/lib/browser/ParseUser.js +388 -14
  18. package/lib/browser/StorageController.react-native.js +6 -18
  19. package/lib/node/CoreManager.js +1 -1
  20. package/lib/node/OfflineQuery.js +18 -3
  21. package/lib/node/ParseObject.js +6 -6
  22. package/lib/node/ParseQuery.js +1 -3
  23. package/lib/react-native/CoreManager.js +1 -1
  24. package/lib/react-native/EventuallyQueue.js +376 -27
  25. package/lib/react-native/LiveQueryClient.js +2 -6
  26. package/lib/react-native/LocalDatastore.js +374 -26
  27. package/lib/react-native/LocalDatastoreController.js +365 -16
  28. package/lib/react-native/LocalDatastoreController.react-native.js +363 -14
  29. package/lib/react-native/OfflineQuery.js +28 -7
  30. package/lib/react-native/ParseFile.js +359 -16
  31. package/lib/react-native/ParseLiveQuery.js +357 -8
  32. package/lib/react-native/ParseObject.js +385 -38
  33. package/lib/react-native/ParseOp.js +1 -3
  34. package/lib/react-native/ParseQuery.js +374 -39
  35. package/lib/react-native/ParseUser.js +368 -19
  36. package/lib/react-native/StorageController.react-native.js +6 -18
  37. package/lib/weapp/CoreManager.js +1 -1
  38. package/lib/weapp/EventuallyQueue.js +395 -29
  39. package/lib/weapp/LiveQueryClient.js +2 -6
  40. package/lib/weapp/LocalDatastore.js +392 -18
  41. package/lib/weapp/LocalDatastoreController.js +391 -21
  42. package/lib/weapp/LocalDatastoreController.react-native.js +387 -23
  43. package/lib/weapp/OfflineQuery.js +29 -8
  44. package/lib/weapp/ParseFile.js +388 -22
  45. package/lib/weapp/ParseLiveQuery.js +381 -18
  46. package/lib/weapp/ParseObject.js +405 -41
  47. package/lib/weapp/ParseOp.js +1 -3
  48. package/lib/weapp/ParseQuery.js +396 -47
  49. package/lib/weapp/ParseUser.js +388 -14
  50. package/lib/weapp/StorageController.react-native.js +6 -18
  51. package/package.json +1 -1
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
-
10
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
9
 
12
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
@@ -31,6 +29,357 @@ var _ParseSession = _interopRequireDefault(require("./ParseSession"));
31
29
 
32
30
  var _Storage = _interopRequireDefault(require("./Storage"));
33
31
 
32
+ function _regeneratorRuntime() {
33
+ "use strict";
34
+
35
+ _regeneratorRuntime = function () {
36
+ return exports;
37
+ };
38
+
39
+ var exports = {},
40
+ Op = Object.prototype,
41
+ hasOwn = Op.hasOwnProperty,
42
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
43
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
44
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
45
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
46
+
47
+ function define(obj, key, value) {
48
+ return Object.defineProperty(obj, key, {
49
+ value: value,
50
+ enumerable: !0,
51
+ configurable: !0,
52
+ writable: !0
53
+ }), obj[key];
54
+ }
55
+
56
+ try {
57
+ define({}, "");
58
+ } catch (err) {
59
+ define = function (obj, key, value) {
60
+ return obj[key] = value;
61
+ };
62
+ }
63
+
64
+ function wrap(innerFn, outerFn, self, tryLocsList) {
65
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
66
+ generator = Object.create(protoGenerator.prototype),
67
+ context = new Context(tryLocsList || []);
68
+ return generator._invoke = function (innerFn, self, context) {
69
+ var state = "suspendedStart";
70
+ return function (method, arg) {
71
+ if ("executing" === state) throw new Error("Generator is already running");
72
+
73
+ if ("completed" === state) {
74
+ if ("throw" === method) throw arg;
75
+ return doneResult();
76
+ }
77
+
78
+ for (context.method = method, context.arg = arg;;) {
79
+ var delegate = context.delegate;
80
+
81
+ if (delegate) {
82
+ var delegateResult = maybeInvokeDelegate(delegate, context);
83
+
84
+ if (delegateResult) {
85
+ if (delegateResult === ContinueSentinel) continue;
86
+ return delegateResult;
87
+ }
88
+ }
89
+
90
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
91
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
92
+ context.dispatchException(context.arg);
93
+ } else "return" === context.method && context.abrupt("return", context.arg);
94
+ state = "executing";
95
+ var record = tryCatch(innerFn, self, context);
96
+
97
+ if ("normal" === record.type) {
98
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
99
+ return {
100
+ value: record.arg,
101
+ done: context.done
102
+ };
103
+ }
104
+
105
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
106
+ }
107
+ };
108
+ }(innerFn, self, context), generator;
109
+ }
110
+
111
+ function tryCatch(fn, obj, arg) {
112
+ try {
113
+ return {
114
+ type: "normal",
115
+ arg: fn.call(obj, arg)
116
+ };
117
+ } catch (err) {
118
+ return {
119
+ type: "throw",
120
+ arg: err
121
+ };
122
+ }
123
+ }
124
+
125
+ exports.wrap = wrap;
126
+ var ContinueSentinel = {};
127
+
128
+ function Generator() {}
129
+
130
+ function GeneratorFunction() {}
131
+
132
+ function GeneratorFunctionPrototype() {}
133
+
134
+ var IteratorPrototype = {};
135
+ define(IteratorPrototype, iteratorSymbol, function () {
136
+ return this;
137
+ });
138
+ var getProto = Object.getPrototypeOf,
139
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
140
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
141
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
142
+
143
+ function defineIteratorMethods(prototype) {
144
+ ["next", "throw", "return"].forEach(function (method) {
145
+ define(prototype, method, function (arg) {
146
+ return this._invoke(method, arg);
147
+ });
148
+ });
149
+ }
150
+
151
+ function AsyncIterator(generator, PromiseImpl) {
152
+ function invoke(method, arg, resolve, reject) {
153
+ var record = tryCatch(generator[method], generator, arg);
154
+
155
+ if ("throw" !== record.type) {
156
+ var result = record.arg,
157
+ value = result.value;
158
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
159
+ invoke("next", value, resolve, reject);
160
+ }, function (err) {
161
+ invoke("throw", err, resolve, reject);
162
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
163
+ result.value = unwrapped, resolve(result);
164
+ }, function (error) {
165
+ return invoke("throw", error, resolve, reject);
166
+ });
167
+ }
168
+
169
+ reject(record.arg);
170
+ }
171
+
172
+ var previousPromise;
173
+
174
+ this._invoke = function (method, arg) {
175
+ function callInvokeWithMethodAndArg() {
176
+ return new PromiseImpl(function (resolve, reject) {
177
+ invoke(method, arg, resolve, reject);
178
+ });
179
+ }
180
+
181
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
182
+ };
183
+ }
184
+
185
+ function maybeInvokeDelegate(delegate, context) {
186
+ var method = delegate.iterator[context.method];
187
+
188
+ if (undefined === method) {
189
+ if (context.delegate = null, "throw" === context.method) {
190
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
191
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
192
+ }
193
+
194
+ return ContinueSentinel;
195
+ }
196
+
197
+ var record = tryCatch(method, delegate.iterator, context.arg);
198
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
199
+ var info = record.arg;
200
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
201
+ }
202
+
203
+ function pushTryEntry(locs) {
204
+ var entry = {
205
+ tryLoc: locs[0]
206
+ };
207
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
208
+ }
209
+
210
+ function resetTryEntry(entry) {
211
+ var record = entry.completion || {};
212
+ record.type = "normal", delete record.arg, entry.completion = record;
213
+ }
214
+
215
+ function Context(tryLocsList) {
216
+ this.tryEntries = [{
217
+ tryLoc: "root"
218
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
219
+ }
220
+
221
+ function values(iterable) {
222
+ if (iterable) {
223
+ var iteratorMethod = iterable[iteratorSymbol];
224
+ if (iteratorMethod) return iteratorMethod.call(iterable);
225
+ if ("function" == typeof iterable.next) return iterable;
226
+
227
+ if (!isNaN(iterable.length)) {
228
+ var i = -1,
229
+ next = function next() {
230
+ for (; ++i < iterable.length;) {
231
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
232
+ }
233
+
234
+ return next.value = undefined, next.done = !0, next;
235
+ };
236
+
237
+ return next.next = next;
238
+ }
239
+ }
240
+
241
+ return {
242
+ next: doneResult
243
+ };
244
+ }
245
+
246
+ function doneResult() {
247
+ return {
248
+ value: undefined,
249
+ done: !0
250
+ };
251
+ }
252
+
253
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
254
+ var ctor = "function" == typeof genFun && genFun.constructor;
255
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
256
+ }, exports.mark = function (genFun) {
257
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
258
+ }, exports.awrap = function (arg) {
259
+ return {
260
+ __await: arg
261
+ };
262
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
263
+ return this;
264
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
265
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
266
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
267
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
268
+ return result.done ? result.value : iter.next();
269
+ });
270
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
271
+ return this;
272
+ }), define(Gp, "toString", function () {
273
+ return "[object Generator]";
274
+ }), exports.keys = function (object) {
275
+ var keys = [];
276
+
277
+ for (var key in object) {
278
+ keys.push(key);
279
+ }
280
+
281
+ return keys.reverse(), function next() {
282
+ for (; keys.length;) {
283
+ var key = keys.pop();
284
+ if (key in object) return next.value = key, next.done = !1, next;
285
+ }
286
+
287
+ return next.done = !0, next;
288
+ };
289
+ }, exports.values = values, Context.prototype = {
290
+ constructor: Context,
291
+ reset: function (skipTempReset) {
292
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
293
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
294
+ }
295
+ },
296
+ stop: function () {
297
+ this.done = !0;
298
+ var rootRecord = this.tryEntries[0].completion;
299
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
300
+ return this.rval;
301
+ },
302
+ dispatchException: function (exception) {
303
+ if (this.done) throw exception;
304
+ var context = this;
305
+
306
+ function handle(loc, caught) {
307
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
308
+ }
309
+
310
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
311
+ var entry = this.tryEntries[i],
312
+ record = entry.completion;
313
+ if ("root" === entry.tryLoc) return handle("end");
314
+
315
+ if (entry.tryLoc <= this.prev) {
316
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
317
+ hasFinally = hasOwn.call(entry, "finallyLoc");
318
+
319
+ if (hasCatch && hasFinally) {
320
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
321
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
322
+ } else if (hasCatch) {
323
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
324
+ } else {
325
+ if (!hasFinally) throw new Error("try statement without catch or finally");
326
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
327
+ }
328
+ }
329
+ }
330
+ },
331
+ abrupt: function (type, arg) {
332
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
333
+ var entry = this.tryEntries[i];
334
+
335
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
336
+ var finallyEntry = entry;
337
+ break;
338
+ }
339
+ }
340
+
341
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
342
+ var record = finallyEntry ? finallyEntry.completion : {};
343
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
344
+ },
345
+ complete: function (record, afterLoc) {
346
+ if ("throw" === record.type) throw record.arg;
347
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
348
+ },
349
+ finish: function (finallyLoc) {
350
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
351
+ var entry = this.tryEntries[i];
352
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
353
+ }
354
+ },
355
+ catch: function (tryLoc) {
356
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
357
+ var entry = this.tryEntries[i];
358
+
359
+ if (entry.tryLoc === tryLoc) {
360
+ var record = entry.completion;
361
+
362
+ if ("throw" === record.type) {
363
+ var thrown = record.arg;
364
+ resetTryEntry(entry);
365
+ }
366
+
367
+ return thrown;
368
+ }
369
+ }
370
+
371
+ throw new Error("illegal catch attempt");
372
+ },
373
+ delegateYield: function (iterable, resultName, nextLoc) {
374
+ return this.delegate = {
375
+ iterator: values(iterable),
376
+ resultName: resultName,
377
+ nextLoc: nextLoc
378
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
379
+ }
380
+ }, exports;
381
+ }
382
+
34
383
  function _createSuper(Derived) {
35
384
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
36
385
 
@@ -307,12 +656,12 @@ var ParseUser = function (_ParseObject) {
307
656
  key: "isCurrentAsync",
308
657
  value: function () {
309
658
  var current;
310
- return _regenerator.default.async(function (_context) {
659
+ return _regeneratorRuntime().async(function (_context) {
311
660
  while (1) {
312
661
  switch (_context.prev = _context.next) {
313
662
  case 0:
314
663
  _context.next = 2;
315
- return _regenerator.default.awrap(ParseUser.currentAsync());
664
+ return _regeneratorRuntime().awrap(ParseUser.currentAsync());
316
665
 
317
666
  case 2:
318
667
  current = _context.sent;
@@ -440,7 +789,7 @@ var ParseUser = function (_ParseObject) {
440
789
  current,
441
790
  _args2 = arguments;
442
791
 
443
- return _regenerator.default.async(function (_context2) {
792
+ return _regeneratorRuntime().async(function (_context2) {
444
793
  while (1) {
445
794
  switch (_context2.prev = _context2.next) {
446
795
  case 0:
@@ -449,11 +798,11 @@ var ParseUser = function (_ParseObject) {
449
798
  }
450
799
 
451
800
  _context2.next = 3;
452
- return _regenerator.default.awrap((0, _get2.default)((0, _getPrototypeOf2.default)(ParseUser.prototype), "save", this).apply(this, args));
801
+ return _regeneratorRuntime().awrap((0, _get2.default)((0, _getPrototypeOf2.default)(ParseUser.prototype), "save", this).apply(this, args));
453
802
 
454
803
  case 3:
455
804
  _context2.next = 5;
456
- return _regenerator.default.awrap(this.isCurrentAsync());
805
+ return _regeneratorRuntime().awrap(this.isCurrentAsync());
457
806
 
458
807
  case 5:
459
808
  current = _context2.sent;
@@ -484,7 +833,7 @@ var ParseUser = function (_ParseObject) {
484
833
  current,
485
834
  _args3 = arguments;
486
835
 
487
- return _regenerator.default.async(function (_context3) {
836
+ return _regeneratorRuntime().async(function (_context3) {
488
837
  while (1) {
489
838
  switch (_context3.prev = _context3.next) {
490
839
  case 0:
@@ -493,11 +842,11 @@ var ParseUser = function (_ParseObject) {
493
842
  }
494
843
 
495
844
  _context3.next = 3;
496
- return _regenerator.default.awrap((0, _get2.default)((0, _getPrototypeOf2.default)(ParseUser.prototype), "destroy", this).apply(this, args));
845
+ return _regeneratorRuntime().awrap((0, _get2.default)((0, _getPrototypeOf2.default)(ParseUser.prototype), "destroy", this).apply(this, args));
497
846
 
498
847
  case 3:
499
848
  _context3.next = 5;
500
- return _regenerator.default.awrap(this.isCurrentAsync());
849
+ return _regeneratorRuntime().awrap(this.isCurrentAsync());
501
850
 
502
851
  case 5:
503
852
  current = _context3.sent;
@@ -528,7 +877,7 @@ var ParseUser = function (_ParseObject) {
528
877
  current,
529
878
  _args4 = arguments;
530
879
 
531
- return _regenerator.default.async(function (_context4) {
880
+ return _regeneratorRuntime().async(function (_context4) {
532
881
  while (1) {
533
882
  switch (_context4.prev = _context4.next) {
534
883
  case 0:
@@ -537,11 +886,11 @@ var ParseUser = function (_ParseObject) {
537
886
  }
538
887
 
539
888
  _context4.next = 3;
540
- return _regenerator.default.awrap((0, _get2.default)((0, _getPrototypeOf2.default)(ParseUser.prototype), "fetch", this).apply(this, args));
889
+ return _regeneratorRuntime().awrap((0, _get2.default)((0, _getPrototypeOf2.default)(ParseUser.prototype), "fetch", this).apply(this, args));
541
890
 
542
891
  case 3:
543
892
  _context4.next = 5;
544
- return _regenerator.default.awrap(this.isCurrentAsync());
893
+ return _regeneratorRuntime().awrap(this.isCurrentAsync());
545
894
 
546
895
  case 5:
547
896
  current = _context4.sent;
@@ -572,7 +921,7 @@ var ParseUser = function (_ParseObject) {
572
921
  current,
573
922
  _args5 = arguments;
574
923
 
575
- return _regenerator.default.async(function (_context5) {
924
+ return _regeneratorRuntime().async(function (_context5) {
576
925
  while (1) {
577
926
  switch (_context5.prev = _context5.next) {
578
927
  case 0:
@@ -581,11 +930,11 @@ var ParseUser = function (_ParseObject) {
581
930
  }
582
931
 
583
932
  _context5.next = 3;
584
- return _regenerator.default.awrap((0, _get2.default)((0, _getPrototypeOf2.default)(ParseUser.prototype), "fetchWithInclude", this).apply(this, args));
933
+ return _regeneratorRuntime().awrap((0, _get2.default)((0, _getPrototypeOf2.default)(ParseUser.prototype), "fetchWithInclude", this).apply(this, args));
585
934
 
586
935
  case 3:
587
936
  _context5.next = 5;
588
- return _regenerator.default.awrap(this.isCurrentAsync());
937
+ return _regeneratorRuntime().awrap(this.isCurrentAsync());
589
938
 
590
939
  case 5:
591
940
  current = _context5.sent;
@@ -1148,7 +1497,7 @@ var DefaultController = {
1148
1497
  },
1149
1498
  upgradeToRevocableSession: function (user, options) {
1150
1499
  var token, RESTController, result, session, current;
1151
- return _regenerator.default.async(function (_context6) {
1500
+ return _regeneratorRuntime().async(function (_context6) {
1152
1501
  while (1) {
1153
1502
  switch (_context6.prev = _context6.next) {
1154
1503
  case 0:
@@ -1165,7 +1514,7 @@ var DefaultController = {
1165
1514
  options.sessionToken = token;
1166
1515
  RESTController = _CoreManager.default.getRESTController();
1167
1516
  _context6.next = 7;
1168
- return _regenerator.default.awrap(RESTController.request('POST', 'upgradeToRevocableSession', {}, options));
1517
+ return _regeneratorRuntime().awrap(RESTController.request('POST', 'upgradeToRevocableSession', {}, options));
1169
1518
 
1170
1519
  case 7:
1171
1520
  result = _context6.sent;
@@ -1178,7 +1527,7 @@ var DefaultController = {
1178
1527
  });
1179
1528
 
1180
1529
  _context6.next = 13;
1181
- return _regenerator.default.awrap(user.isCurrentAsync());
1530
+ return _regeneratorRuntime().awrap(user.isCurrentAsync());
1182
1531
 
1183
1532
  case 13:
1184
1533
  current = _context6.sent;
@@ -8,10 +8,8 @@ var StorageController = {
8
8
  return _CoreManager.default.getAsyncStorage();
9
9
  },
10
10
  getItemAsync: function (path) {
11
- var _this = this;
12
-
13
11
  return new Promise(function (resolve, reject) {
14
- _this.getAsyncStorage().getItem(path, function (err, value) {
12
+ this.getAsyncStorage().getItem(path, function (err, value) {
15
13
  if (err) {
16
14
  reject(err);
17
15
  } else {
@@ -21,10 +19,8 @@ var StorageController = {
21
19
  });
22
20
  },
23
21
  setItemAsync: function (path, value) {
24
- var _this2 = this;
25
-
26
22
  return new Promise(function (resolve, reject) {
27
- _this2.getAsyncStorage().setItem(path, value, function (err, value) {
23
+ this.getAsyncStorage().setItem(path, value, function (err, value) {
28
24
  if (err) {
29
25
  reject(err);
30
26
  } else {
@@ -34,10 +30,8 @@ var StorageController = {
34
30
  });
35
31
  },
36
32
  removeItemAsync: function (path) {
37
- var _this3 = this;
38
-
39
33
  return new Promise(function (resolve, reject) {
40
- _this3.getAsyncStorage().removeItem(path, function (err) {
34
+ this.getAsyncStorage().removeItem(path, function (err) {
41
35
  if (err) {
42
36
  reject(err);
43
37
  } else {
@@ -47,10 +41,8 @@ var StorageController = {
47
41
  });
48
42
  },
49
43
  getAllKeysAsync: function () {
50
- var _this4 = this;
51
-
52
44
  return new Promise(function (resolve, reject) {
53
- _this4.getAsyncStorage().getAllKeys(function (err, keys) {
45
+ this.getAsyncStorage().getAllKeys(function (err, keys) {
54
46
  if (err) {
55
47
  reject(err);
56
48
  } else {
@@ -60,10 +52,8 @@ var StorageController = {
60
52
  });
61
53
  },
62
54
  multiGet: function (keys) {
63
- var _this5 = this;
64
-
65
55
  return new Promise(function (resolve, reject) {
66
- _this5.getAsyncStorage().multiGet(keys, function (err, result) {
56
+ this.getAsyncStorage().multiGet(keys, function (err, result) {
67
57
  if (err) {
68
58
  reject(err);
69
59
  } else {
@@ -73,10 +63,8 @@ var StorageController = {
73
63
  });
74
64
  },
75
65
  multiRemove: function (keys) {
76
- var _this6 = this;
77
-
78
66
  return new Promise(function (resolve, reject) {
79
- _this6.getAsyncStorage().multiRemove(keys, function (err) {
67
+ this.getAsyncStorage().multiRemove(keys, function (err) {
80
68
  if (err) {
81
69
  reject(err);
82
70
  } else {
@@ -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' + "3.5.0-alpha.3",
227
+ VERSION: 'js' + "3.5.0-alpha.5",
228
228
  APPLICATION_ID: null,
229
229
  JAVASCRIPT_KEY: null,
230
230
  MASTER_KEY: null,