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
@@ -1,7 +1,5 @@
1
1
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
2
2
 
3
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
4
-
5
3
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
6
4
 
7
5
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
@@ -12,6 +10,357 @@ var _ParseQuery = _interopRequireDefault(require("./ParseQuery"));
12
10
 
13
11
  var _LocalDatastoreUtils = require("./LocalDatastoreUtils");
14
12
 
13
+ function _regeneratorRuntime() {
14
+ "use strict";
15
+
16
+ _regeneratorRuntime = function () {
17
+ return exports;
18
+ };
19
+
20
+ var exports = {},
21
+ Op = Object.prototype,
22
+ hasOwn = Op.hasOwnProperty,
23
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
24
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
25
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
26
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
27
+
28
+ function define(obj, key, value) {
29
+ return Object.defineProperty(obj, key, {
30
+ value: value,
31
+ enumerable: !0,
32
+ configurable: !0,
33
+ writable: !0
34
+ }), obj[key];
35
+ }
36
+
37
+ try {
38
+ define({}, "");
39
+ } catch (err) {
40
+ define = function (obj, key, value) {
41
+ return obj[key] = value;
42
+ };
43
+ }
44
+
45
+ function wrap(innerFn, outerFn, self, tryLocsList) {
46
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
47
+ generator = Object.create(protoGenerator.prototype),
48
+ context = new Context(tryLocsList || []);
49
+ return generator._invoke = function (innerFn, self, context) {
50
+ var state = "suspendedStart";
51
+ return function (method, arg) {
52
+ if ("executing" === state) throw new Error("Generator is already running");
53
+
54
+ if ("completed" === state) {
55
+ if ("throw" === method) throw arg;
56
+ return doneResult();
57
+ }
58
+
59
+ for (context.method = method, context.arg = arg;;) {
60
+ var delegate = context.delegate;
61
+
62
+ if (delegate) {
63
+ var delegateResult = maybeInvokeDelegate(delegate, context);
64
+
65
+ if (delegateResult) {
66
+ if (delegateResult === ContinueSentinel) continue;
67
+ return delegateResult;
68
+ }
69
+ }
70
+
71
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
72
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
73
+ context.dispatchException(context.arg);
74
+ } else "return" === context.method && context.abrupt("return", context.arg);
75
+ state = "executing";
76
+ var record = tryCatch(innerFn, self, context);
77
+
78
+ if ("normal" === record.type) {
79
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
80
+ return {
81
+ value: record.arg,
82
+ done: context.done
83
+ };
84
+ }
85
+
86
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
87
+ }
88
+ };
89
+ }(innerFn, self, context), generator;
90
+ }
91
+
92
+ function tryCatch(fn, obj, arg) {
93
+ try {
94
+ return {
95
+ type: "normal",
96
+ arg: fn.call(obj, arg)
97
+ };
98
+ } catch (err) {
99
+ return {
100
+ type: "throw",
101
+ arg: err
102
+ };
103
+ }
104
+ }
105
+
106
+ exports.wrap = wrap;
107
+ var ContinueSentinel = {};
108
+
109
+ function Generator() {}
110
+
111
+ function GeneratorFunction() {}
112
+
113
+ function GeneratorFunctionPrototype() {}
114
+
115
+ var IteratorPrototype = {};
116
+ define(IteratorPrototype, iteratorSymbol, function () {
117
+ return this;
118
+ });
119
+ var getProto = Object.getPrototypeOf,
120
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
121
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
122
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
123
+
124
+ function defineIteratorMethods(prototype) {
125
+ ["next", "throw", "return"].forEach(function (method) {
126
+ define(prototype, method, function (arg) {
127
+ return this._invoke(method, arg);
128
+ });
129
+ });
130
+ }
131
+
132
+ function AsyncIterator(generator, PromiseImpl) {
133
+ function invoke(method, arg, resolve, reject) {
134
+ var record = tryCatch(generator[method], generator, arg);
135
+
136
+ if ("throw" !== record.type) {
137
+ var result = record.arg,
138
+ value = result.value;
139
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
140
+ invoke("next", value, resolve, reject);
141
+ }, function (err) {
142
+ invoke("throw", err, resolve, reject);
143
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
144
+ result.value = unwrapped, resolve(result);
145
+ }, function (error) {
146
+ return invoke("throw", error, resolve, reject);
147
+ });
148
+ }
149
+
150
+ reject(record.arg);
151
+ }
152
+
153
+ var previousPromise;
154
+
155
+ this._invoke = function (method, arg) {
156
+ function callInvokeWithMethodAndArg() {
157
+ return new PromiseImpl(function (resolve, reject) {
158
+ invoke(method, arg, resolve, reject);
159
+ });
160
+ }
161
+
162
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
163
+ };
164
+ }
165
+
166
+ function maybeInvokeDelegate(delegate, context) {
167
+ var method = delegate.iterator[context.method];
168
+
169
+ if (undefined === method) {
170
+ if (context.delegate = null, "throw" === context.method) {
171
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
172
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
173
+ }
174
+
175
+ return ContinueSentinel;
176
+ }
177
+
178
+ var record = tryCatch(method, delegate.iterator, context.arg);
179
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
180
+ var info = record.arg;
181
+ 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);
182
+ }
183
+
184
+ function pushTryEntry(locs) {
185
+ var entry = {
186
+ tryLoc: locs[0]
187
+ };
188
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
189
+ }
190
+
191
+ function resetTryEntry(entry) {
192
+ var record = entry.completion || {};
193
+ record.type = "normal", delete record.arg, entry.completion = record;
194
+ }
195
+
196
+ function Context(tryLocsList) {
197
+ this.tryEntries = [{
198
+ tryLoc: "root"
199
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
200
+ }
201
+
202
+ function values(iterable) {
203
+ if (iterable) {
204
+ var iteratorMethod = iterable[iteratorSymbol];
205
+ if (iteratorMethod) return iteratorMethod.call(iterable);
206
+ if ("function" == typeof iterable.next) return iterable;
207
+
208
+ if (!isNaN(iterable.length)) {
209
+ var i = -1,
210
+ next = function next() {
211
+ for (; ++i < iterable.length;) {
212
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
213
+ }
214
+
215
+ return next.value = undefined, next.done = !0, next;
216
+ };
217
+
218
+ return next.next = next;
219
+ }
220
+ }
221
+
222
+ return {
223
+ next: doneResult
224
+ };
225
+ }
226
+
227
+ function doneResult() {
228
+ return {
229
+ value: undefined,
230
+ done: !0
231
+ };
232
+ }
233
+
234
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
235
+ var ctor = "function" == typeof genFun && genFun.constructor;
236
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
237
+ }, exports.mark = function (genFun) {
238
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
239
+ }, exports.awrap = function (arg) {
240
+ return {
241
+ __await: arg
242
+ };
243
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
244
+ return this;
245
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
246
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
247
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
248
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
249
+ return result.done ? result.value : iter.next();
250
+ });
251
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
252
+ return this;
253
+ }), define(Gp, "toString", function () {
254
+ return "[object Generator]";
255
+ }), exports.keys = function (object) {
256
+ var keys = [];
257
+
258
+ for (var key in object) {
259
+ keys.push(key);
260
+ }
261
+
262
+ return keys.reverse(), function next() {
263
+ for (; keys.length;) {
264
+ var key = keys.pop();
265
+ if (key in object) return next.value = key, next.done = !1, next;
266
+ }
267
+
268
+ return next.done = !0, next;
269
+ };
270
+ }, exports.values = values, Context.prototype = {
271
+ constructor: Context,
272
+ reset: function (skipTempReset) {
273
+ 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) {
274
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
275
+ }
276
+ },
277
+ stop: function () {
278
+ this.done = !0;
279
+ var rootRecord = this.tryEntries[0].completion;
280
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
281
+ return this.rval;
282
+ },
283
+ dispatchException: function (exception) {
284
+ if (this.done) throw exception;
285
+ var context = this;
286
+
287
+ function handle(loc, caught) {
288
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
289
+ }
290
+
291
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
292
+ var entry = this.tryEntries[i],
293
+ record = entry.completion;
294
+ if ("root" === entry.tryLoc) return handle("end");
295
+
296
+ if (entry.tryLoc <= this.prev) {
297
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
298
+ hasFinally = hasOwn.call(entry, "finallyLoc");
299
+
300
+ if (hasCatch && hasFinally) {
301
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
302
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
303
+ } else if (hasCatch) {
304
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
305
+ } else {
306
+ if (!hasFinally) throw new Error("try statement without catch or finally");
307
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
308
+ }
309
+ }
310
+ }
311
+ },
312
+ abrupt: function (type, arg) {
313
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
314
+ var entry = this.tryEntries[i];
315
+
316
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
317
+ var finallyEntry = entry;
318
+ break;
319
+ }
320
+ }
321
+
322
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
323
+ var record = finallyEntry ? finallyEntry.completion : {};
324
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
325
+ },
326
+ complete: function (record, afterLoc) {
327
+ if ("throw" === record.type) throw record.arg;
328
+ 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;
329
+ },
330
+ finish: function (finallyLoc) {
331
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
332
+ var entry = this.tryEntries[i];
333
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
334
+ }
335
+ },
336
+ catch: function (tryLoc) {
337
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
338
+ var entry = this.tryEntries[i];
339
+
340
+ if (entry.tryLoc === tryLoc) {
341
+ var record = entry.completion;
342
+
343
+ if ("throw" === record.type) {
344
+ var thrown = record.arg;
345
+ resetTryEntry(entry);
346
+ }
347
+
348
+ return thrown;
349
+ }
350
+ }
351
+
352
+ throw new Error("illegal catch attempt");
353
+ },
354
+ delegateYield: function (iterable, resultName, nextLoc) {
355
+ return this.delegate = {
356
+ iterator: values(iterable),
357
+ resultName: resultName,
358
+ nextLoc: nextLoc
359
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
360
+ }
361
+ }, exports;
362
+ }
363
+
15
364
  function _createForOfIteratorHelperLoose(o, allowArrayLike) {
16
365
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
17
366
  if (it) return (it = it.call(o)).next.bind(it);
@@ -88,7 +437,7 @@ var LocalDatastore = {
88
437
  _handlePinAllWithName: function (name, objects) {
89
438
  var pinName, toPinPromises, objectKeys, _iterator, _step, parent, children, parentKey, json, objectKey, fromPinPromise, _await$Promise$all, _await$Promise$all2, pinned, toPin;
90
439
 
91
- return _regenerator.default.async(function (_context) {
440
+ return _regeneratorRuntime().async(function (_context) {
92
441
  while (1) {
93
442
  switch (_context.prev = _context.next) {
94
443
  case 0:
@@ -116,7 +465,7 @@ var LocalDatastore = {
116
465
 
117
466
  fromPinPromise = this.fromPinWithName(pinName);
118
467
  _context.next = 7;
119
- return _regenerator.default.awrap(Promise.all([fromPinPromise, toPinPromises]));
468
+ return _regeneratorRuntime().awrap(Promise.all([fromPinPromise, toPinPromises]));
120
469
 
121
470
  case 7:
122
471
  _await$Promise$all = _context.sent;
@@ -135,12 +484,12 @@ var LocalDatastore = {
135
484
  _handleUnPinAllWithName: function (name, objects) {
136
485
  var localDatastore, pinName, promises, objectKeys, _iterator2, _step2, _objectKeys, parent, children, parentKey, pinned, _iterator3, _step3, objectKey, hasReference, key, pinnedObjects;
137
486
 
138
- return _regenerator.default.async(function (_context2) {
487
+ return _regeneratorRuntime().async(function (_context2) {
139
488
  while (1) {
140
489
  switch (_context2.prev = _context2.next) {
141
490
  case 0:
142
491
  _context2.next = 2;
143
- return _regenerator.default.awrap(this._getAllContents());
492
+ return _regeneratorRuntime().awrap(this._getAllContents());
144
493
 
145
494
  case 2:
146
495
  localDatastore = _context2.sent;
@@ -180,7 +529,7 @@ var LocalDatastore = {
180
529
 
181
530
  objectKey = _step3.value;
182
531
  hasReference = false;
183
- _context2.t0 = _regenerator.default.keys(localDatastore);
532
+ _context2.t0 = _regeneratorRuntime().keys(localDatastore);
184
533
 
185
534
  case 16:
186
535
  if ((_context2.t1 = _context2.t0()).done) {
@@ -267,16 +616,15 @@ var LocalDatastore = {
267
616
  }
268
617
  },
269
618
  _serializeObjectsFromPinName: function (name) {
270
- var _this = this,
271
- _ref;
619
+ var _ref;
272
620
 
273
621
  var localDatastore, allObjects, key, pinName, pinned, promises, objects;
274
- return _regenerator.default.async(function (_context3) {
622
+ return _regeneratorRuntime().async(function (_context3) {
275
623
  while (1) {
276
624
  switch (_context3.prev = _context3.next) {
277
625
  case 0:
278
626
  _context3.next = 2;
279
- return _regenerator.default.awrap(this._getAllContents());
627
+ return _regeneratorRuntime().awrap(this._getAllContents());
280
628
 
281
629
  case 2:
282
630
  localDatastore = _context3.sent;
@@ -308,10 +656,10 @@ var LocalDatastore = {
308
656
 
309
657
  case 11:
310
658
  promises = pinned.map(function (objectKey) {
311
- return _this.fromPinWithName(objectKey);
659
+ return this.fromPinWithName(objectKey);
312
660
  });
313
661
  _context3.next = 14;
314
- return _regenerator.default.awrap(Promise.all(promises));
662
+ return _regeneratorRuntime().awrap(Promise.all(promises));
315
663
 
316
664
  case 14:
317
665
  objects = _context3.sent;
@@ -329,7 +677,7 @@ var LocalDatastore = {
329
677
  },
330
678
  _serializeObject: function (objectKey, localDatastore) {
331
679
  var LDS, root, queue, meta, uniqueId, nodeId, subTreeRoot, field, value, key, pointer;
332
- return _regenerator.default.async(function (_context4) {
680
+ return _regeneratorRuntime().async(function (_context4) {
333
681
  while (1) {
334
682
  switch (_context4.prev = _context4.next) {
335
683
  case 0:
@@ -341,7 +689,7 @@ var LocalDatastore = {
341
689
  }
342
690
 
343
691
  _context4.next = 4;
344
- return _regenerator.default.awrap(this._getAllContents());
692
+ return _regeneratorRuntime().awrap(this._getAllContents());
345
693
 
346
694
  case 4:
347
695
  LDS = _context4.sent;
@@ -394,7 +742,7 @@ var LocalDatastore = {
394
742
  },
395
743
  _updateObjectIfPinned: function (object) {
396
744
  var objectKey, pinned;
397
- return _regenerator.default.async(function (_context5) {
745
+ return _regeneratorRuntime().async(function (_context5) {
398
746
  while (1) {
399
747
  switch (_context5.prev = _context5.next) {
400
748
  case 0:
@@ -408,7 +756,7 @@ var LocalDatastore = {
408
756
  case 2:
409
757
  objectKey = this.getKeyForObject(object);
410
758
  _context5.next = 5;
411
- return _regenerator.default.awrap(this.fromPinWithName(objectKey));
759
+ return _regeneratorRuntime().awrap(this.fromPinWithName(objectKey));
412
760
 
413
761
  case 5:
414
762
  pinned = _context5.sent;
@@ -432,7 +780,7 @@ var LocalDatastore = {
432
780
  },
433
781
  _destroyObjectIfPinned: function (object) {
434
782
  var localDatastore, objectKey, pin, promises, key, pinned;
435
- return _regenerator.default.async(function (_context6) {
783
+ return _regeneratorRuntime().async(function (_context6) {
436
784
  while (1) {
437
785
  switch (_context6.prev = _context6.next) {
438
786
  case 0:
@@ -445,7 +793,7 @@ var LocalDatastore = {
445
793
 
446
794
  case 2:
447
795
  _context6.next = 4;
448
- return _regenerator.default.awrap(this._getAllContents());
796
+ return _regeneratorRuntime().awrap(this._getAllContents());
449
797
 
450
798
  case 4:
451
799
  localDatastore = _context6.sent;
@@ -494,7 +842,7 @@ var LocalDatastore = {
494
842
  },
495
843
  _updateLocalIdForObject: function (localId, object) {
496
844
  var localKey, objectKey, unsaved, promises, localDatastore, key, pinned;
497
- return _regenerator.default.async(function (_context7) {
845
+ return _regeneratorRuntime().async(function (_context7) {
498
846
  while (1) {
499
847
  switch (_context7.prev = _context7.next) {
500
848
  case 0:
@@ -509,7 +857,7 @@ var LocalDatastore = {
509
857
  localKey = "" + _LocalDatastoreUtils.OBJECT_PREFIX + object.className + "_" + localId;
510
858
  objectKey = this.getKeyForObject(object);
511
859
  _context7.next = 6;
512
- return _regenerator.default.awrap(this.fromPinWithName(localKey));
860
+ return _regeneratorRuntime().awrap(this.fromPinWithName(localKey));
513
861
 
514
862
  case 6:
515
863
  unsaved = _context7.sent;
@@ -524,7 +872,7 @@ var LocalDatastore = {
524
872
  case 9:
525
873
  promises = [this.unPinWithName(localKey), this.pinWithName(objectKey, unsaved)];
526
874
  _context7.next = 12;
527
- return _regenerator.default.awrap(this._getAllContents());
875
+ return _regeneratorRuntime().awrap(this._getAllContents());
528
876
 
529
877
  case 12:
530
878
  localDatastore = _context7.sent;
@@ -558,7 +906,7 @@ var LocalDatastore = {
558
906
 
559
907
  var localDatastore, keys, key, pointersHash, _i, _keys, _key, _key$split, _key$split2, className, objectId, queryPromises, responses, objects, pinPromises;
560
908
 
561
- return _regenerator.default.async(function (_context8) {
909
+ return _regeneratorRuntime().async(function (_context8) {
562
910
  while (1) {
563
911
  switch (_context8.prev = _context8.next) {
564
912
  case 0:
@@ -571,7 +919,7 @@ var LocalDatastore = {
571
919
 
572
920
  case 2:
573
921
  _context8.next = 4;
574
- return _regenerator.default.awrap(this._getAllContents());
922
+ return _regeneratorRuntime().awrap(this._getAllContents());
575
923
 
576
924
  case 4:
577
925
  localDatastore = _context8.sent;
@@ -644,7 +992,7 @@ var LocalDatastore = {
644
992
  });
645
993
  _context8.prev = 24;
646
994
  _context8.next = 27;
647
- return _regenerator.default.awrap(Promise.all(queryPromises));
995
+ return _regeneratorRuntime().awrap(Promise.all(queryPromises));
648
996
 
649
997
  case 27:
650
998
  responses = _context8.sent;
@@ -655,7 +1003,7 @@ var LocalDatastore = {
655
1003
  return _this2.pinWithName(objectKey, object._toFullJSON());
656
1004
  });
657
1005
  _context8.next = 32;
658
- return _regenerator.default.awrap(Promise.all(pinPromises));
1006
+ return _regeneratorRuntime().awrap(Promise.all(pinPromises));
659
1007
 
660
1008
  case 32:
661
1009
  this.isSyncing = false;