parse 3.5.0-alpha.2 → 3.5.0-alpha.4

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 +5816 -2480
  2. package/dist/parse.min.js +2 -2
  3. package/dist/parse.weapp.js +5814 -2478
  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/ParseFile.js +388 -22
  12. package/lib/browser/ParseLiveQuery.js +381 -18
  13. package/lib/browser/ParseObject.js +405 -41
  14. package/lib/browser/ParseOp.js +1 -3
  15. package/lib/browser/ParseQuery.js +396 -47
  16. package/lib/browser/ParseSchema.js +9 -7
  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/ParseObject.js +6 -6
  21. package/lib/node/ParseQuery.js +1 -3
  22. package/lib/node/ParseSchema.js +9 -7
  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/ParseFile.js +359 -16
  30. package/lib/react-native/ParseLiveQuery.js +357 -8
  31. package/lib/react-native/ParseObject.js +385 -38
  32. package/lib/react-native/ParseOp.js +1 -3
  33. package/lib/react-native/ParseQuery.js +374 -39
  34. package/lib/react-native/ParseSchema.js +9 -7
  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/ParseFile.js +388 -22
  44. package/lib/weapp/ParseLiveQuery.js +381 -18
  45. package/lib/weapp/ParseObject.js +405 -41
  46. package/lib/weapp/ParseOp.js +1 -3
  47. package/lib/weapp/ParseQuery.js +396 -47
  48. package/lib/weapp/ParseSchema.js +9 -7
  49. package/lib/weapp/ParseUser.js +388 -14
  50. package/lib/weapp/StorageController.react-native.js +6 -18
  51. package/package.json +1 -1
@@ -2,6 +2,26 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
4
 
5
+ var _sliceInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/slice");
6
+
7
+ var _reverseInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/reverse");
8
+
9
+ var _Promise = require("@babel/runtime-corejs3/core-js-stable/promise");
10
+
11
+ var _Object$setPrototypeOf = require("@babel/runtime-corejs3/core-js-stable/object/set-prototype-of");
12
+
13
+ var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
14
+
15
+ var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
16
+
17
+ var _Object$getPrototypeOf = require("@babel/runtime-corejs3/core-js-stable/object/get-prototype-of");
18
+
19
+ var _Object$create = require("@babel/runtime-corejs3/core-js-stable/object/create");
20
+
21
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
22
+
23
+ var _Symbol = require("@babel/runtime-corejs3/core-js-stable/symbol");
24
+
5
25
  var _find = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find"));
6
26
 
7
27
  var _setInterval2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/set-interval"));
@@ -14,8 +34,6 @@ var _splice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-sta
14
34
 
15
35
  var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/json/stringify"));
16
36
 
17
- var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs3/regenerator"));
18
-
19
37
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));
20
38
 
21
39
  var _CoreManager = _interopRequireDefault(require("./CoreManager"));
@@ -25,12 +43,364 @@ var _ParseObject = _interopRequireDefault(require("./ParseObject"));
25
43
  var _ParseQuery = _interopRequireDefault(require("./ParseQuery"));
26
44
 
27
45
  var _Storage = _interopRequireDefault(require("./Storage"));
28
- /**
29
- * https://github.com/francimedia/parse-js-local-storage
30
- *
31
- * @flow
32
- */
33
46
 
47
+ function _regeneratorRuntime() {
48
+ "use strict";
49
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
50
+
51
+ _regeneratorRuntime = function () {
52
+ return exports;
53
+ };
54
+
55
+ var exports = {},
56
+ Op = Object.prototype,
57
+ hasOwn = Op.hasOwnProperty,
58
+ $Symbol = "function" == typeof _Symbol ? _Symbol : {},
59
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
60
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
61
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
62
+
63
+ function define(obj, key, value) {
64
+ return _Object$defineProperty(obj, key, {
65
+ value: value,
66
+ enumerable: !0,
67
+ configurable: !0,
68
+ writable: !0
69
+ }), obj[key];
70
+ }
71
+
72
+ try {
73
+ define({}, "");
74
+ } catch (err) {
75
+ define = function (obj, key, value) {
76
+ return obj[key] = value;
77
+ };
78
+ }
79
+
80
+ function wrap(innerFn, outerFn, self, tryLocsList) {
81
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
82
+ generator = _Object$create(protoGenerator.prototype),
83
+ context = new Context(tryLocsList || []);
84
+
85
+ return generator._invoke = function (innerFn, self, context) {
86
+ var state = "suspendedStart";
87
+ return function (method, arg) {
88
+ if ("executing" === state) throw new Error("Generator is already running");
89
+
90
+ if ("completed" === state) {
91
+ if ("throw" === method) throw arg;
92
+ return doneResult();
93
+ }
94
+
95
+ for (context.method = method, context.arg = arg;;) {
96
+ var delegate = context.delegate;
97
+
98
+ if (delegate) {
99
+ var delegateResult = maybeInvokeDelegate(delegate, context);
100
+
101
+ if (delegateResult) {
102
+ if (delegateResult === ContinueSentinel) continue;
103
+ return delegateResult;
104
+ }
105
+ }
106
+
107
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
108
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
109
+ context.dispatchException(context.arg);
110
+ } else "return" === context.method && context.abrupt("return", context.arg);
111
+ state = "executing";
112
+ var record = tryCatch(innerFn, self, context);
113
+
114
+ if ("normal" === record.type) {
115
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
116
+ return {
117
+ value: record.arg,
118
+ done: context.done
119
+ };
120
+ }
121
+
122
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
123
+ }
124
+ };
125
+ }(innerFn, self, context), generator;
126
+ }
127
+
128
+ function tryCatch(fn, obj, arg) {
129
+ try {
130
+ return {
131
+ type: "normal",
132
+ arg: fn.call(obj, arg)
133
+ };
134
+ } catch (err) {
135
+ return {
136
+ type: "throw",
137
+ arg: err
138
+ };
139
+ }
140
+ }
141
+
142
+ exports.wrap = wrap;
143
+ var ContinueSentinel = {};
144
+
145
+ function Generator() {}
146
+
147
+ function GeneratorFunction() {}
148
+
149
+ function GeneratorFunctionPrototype() {}
150
+
151
+ var IteratorPrototype = {};
152
+ define(IteratorPrototype, iteratorSymbol, function () {
153
+ return this;
154
+ });
155
+ var getProto = _Object$getPrototypeOf,
156
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
157
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
158
+
159
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype);
160
+
161
+ function defineIteratorMethods(prototype) {
162
+ var _context9;
163
+
164
+ _forEachInstanceProperty(_context9 = ["next", "throw", "return"]).call(_context9, function (method) {
165
+ define(prototype, method, function (arg) {
166
+ return this._invoke(method, arg);
167
+ });
168
+ });
169
+ }
170
+
171
+ function AsyncIterator(generator, PromiseImpl) {
172
+ function invoke(method, arg, resolve, reject) {
173
+ var record = tryCatch(generator[method], generator, arg);
174
+
175
+ if ("throw" !== record.type) {
176
+ var result = record.arg,
177
+ value = result.value;
178
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
179
+ invoke("next", value, resolve, reject);
180
+ }, function (err) {
181
+ invoke("throw", err, resolve, reject);
182
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
183
+ result.value = unwrapped, resolve(result);
184
+ }, function (error) {
185
+ return invoke("throw", error, resolve, reject);
186
+ });
187
+ }
188
+
189
+ reject(record.arg);
190
+ }
191
+
192
+ var previousPromise;
193
+
194
+ this._invoke = function (method, arg) {
195
+ function callInvokeWithMethodAndArg() {
196
+ return new PromiseImpl(function (resolve, reject) {
197
+ invoke(method, arg, resolve, reject);
198
+ });
199
+ }
200
+
201
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
202
+ };
203
+ }
204
+
205
+ function maybeInvokeDelegate(delegate, context) {
206
+ var method = delegate.iterator[context.method];
207
+
208
+ if (undefined === method) {
209
+ if (context.delegate = null, "throw" === context.method) {
210
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
211
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
212
+ }
213
+
214
+ return ContinueSentinel;
215
+ }
216
+
217
+ var record = tryCatch(method, delegate.iterator, context.arg);
218
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
219
+ var info = record.arg;
220
+ 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);
221
+ }
222
+
223
+ function pushTryEntry(locs) {
224
+ var entry = {
225
+ tryLoc: locs[0]
226
+ };
227
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
228
+ }
229
+
230
+ function resetTryEntry(entry) {
231
+ var record = entry.completion || {};
232
+ record.type = "normal", delete record.arg, entry.completion = record;
233
+ }
234
+
235
+ function Context(tryLocsList) {
236
+ this.tryEntries = [{
237
+ tryLoc: "root"
238
+ }], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0);
239
+ }
240
+
241
+ function values(iterable) {
242
+ if (iterable) {
243
+ var iteratorMethod = iterable[iteratorSymbol];
244
+ if (iteratorMethod) return iteratorMethod.call(iterable);
245
+ if ("function" == typeof iterable.next) return iterable;
246
+
247
+ if (!isNaN(iterable.length)) {
248
+ var i = -1,
249
+ next = function next() {
250
+ for (; ++i < iterable.length;) {
251
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
252
+ }
253
+
254
+ return next.value = undefined, next.done = !0, next;
255
+ };
256
+
257
+ return next.next = next;
258
+ }
259
+ }
260
+
261
+ return {
262
+ next: doneResult
263
+ };
264
+ }
265
+
266
+ function doneResult() {
267
+ return {
268
+ value: undefined,
269
+ done: !0
270
+ };
271
+ }
272
+
273
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
274
+ var ctor = "function" == typeof genFun && genFun.constructor;
275
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
276
+ }, exports.mark = function (genFun) {
277
+ return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = _Object$create(Gp), genFun;
278
+ }, exports.awrap = function (arg) {
279
+ return {
280
+ __await: arg
281
+ };
282
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
283
+ return this;
284
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
285
+ void 0 === PromiseImpl && (PromiseImpl = _Promise);
286
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
287
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
288
+ return result.done ? result.value : iter.next();
289
+ });
290
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
291
+ return this;
292
+ }), define(Gp, "toString", function () {
293
+ return "[object Generator]";
294
+ }), exports.keys = function (object) {
295
+ var keys = [];
296
+
297
+ for (var key in object) {
298
+ keys.push(key);
299
+ }
300
+
301
+ return _reverseInstanceProperty(keys).call(keys), function next() {
302
+ for (; keys.length;) {
303
+ var key = keys.pop();
304
+ if (key in object) return next.value = key, next.done = !1, next;
305
+ }
306
+
307
+ return next.done = !0, next;
308
+ };
309
+ }, exports.values = values, Context.prototype = {
310
+ constructor: Context,
311
+ reset: function (skipTempReset) {
312
+ var _context10;
313
+
314
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, _forEachInstanceProperty(_context10 = this.tryEntries).call(_context10, resetTryEntry), !skipTempReset) for (var name in this) {
315
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty(name).call(name, 1)) && (this[name] = undefined);
316
+ }
317
+ },
318
+ stop: function () {
319
+ this.done = !0;
320
+ var rootRecord = this.tryEntries[0].completion;
321
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
322
+ return this.rval;
323
+ },
324
+ dispatchException: function (exception) {
325
+ if (this.done) throw exception;
326
+ var context = this;
327
+
328
+ function handle(loc, caught) {
329
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
330
+ }
331
+
332
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
333
+ var entry = this.tryEntries[i],
334
+ record = entry.completion;
335
+ if ("root" === entry.tryLoc) return handle("end");
336
+
337
+ if (entry.tryLoc <= this.prev) {
338
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
339
+ hasFinally = hasOwn.call(entry, "finallyLoc");
340
+
341
+ if (hasCatch && hasFinally) {
342
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
343
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
344
+ } else if (hasCatch) {
345
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
346
+ } else {
347
+ if (!hasFinally) throw new Error("try statement without catch or finally");
348
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
349
+ }
350
+ }
351
+ }
352
+ },
353
+ abrupt: function (type, arg) {
354
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
355
+ var entry = this.tryEntries[i];
356
+
357
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
358
+ var finallyEntry = entry;
359
+ break;
360
+ }
361
+ }
362
+
363
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
364
+ var record = finallyEntry ? finallyEntry.completion : {};
365
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
366
+ },
367
+ complete: function (record, afterLoc) {
368
+ if ("throw" === record.type) throw record.arg;
369
+ 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;
370
+ },
371
+ finish: function (finallyLoc) {
372
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
373
+ var entry = this.tryEntries[i];
374
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
375
+ }
376
+ },
377
+ catch: function (tryLoc) {
378
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
379
+ var entry = this.tryEntries[i];
380
+
381
+ if (entry.tryLoc === tryLoc) {
382
+ var record = entry.completion;
383
+
384
+ if ("throw" === record.type) {
385
+ var thrown = record.arg;
386
+ resetTryEntry(entry);
387
+ }
388
+
389
+ return thrown;
390
+ }
391
+ }
392
+
393
+ throw new Error("illegal catch attempt");
394
+ },
395
+ delegateYield: function (iterable, resultName, nextLoc) {
396
+ return this.delegate = {
397
+ iterator: values(iterable),
398
+ resultName: resultName,
399
+ nextLoc: nextLoc
400
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
401
+ }
402
+ }, exports;
403
+ }
34
404
 
35
405
  var QUEUE_KEY = 'Parse/Eventually/Queue';
36
406
  var queueCache = [];
@@ -137,9 +507,9 @@ var EventuallyQueue = {
137
507
  {
138
508
  var _this = this;
139
509
 
140
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
510
+ return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
141
511
  var queueData, queueId, index, prop;
142
- return _regenerator.default.wrap(function (_context) {
512
+ return _regeneratorRuntime().wrap(function (_context) {
143
513
  while (1) {
144
514
  switch (_context.prev = _context.next) {
145
515
  case 0:
@@ -200,10 +570,8 @@ var EventuallyQueue = {
200
570
  getQueue: function ()
201
571
  /*: Promise<Array>*/
202
572
  {
203
- var _this2 = this;
204
-
205
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
206
- return _regenerator.default.wrap(function (_context2) {
573
+ return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
574
+ return _regeneratorRuntime().wrap(function (_context2) {
207
575
  while (1) {
208
576
  switch (_context2.prev = _context2.next) {
209
577
  case 0:
@@ -214,7 +582,7 @@ var EventuallyQueue = {
214
582
 
215
583
  _context2.t0 = JSON;
216
584
  _context2.next = 4;
217
- return _this2.load();
585
+ return this.load();
218
586
 
219
587
  case 4:
220
588
  _context2.t1 = _context2.sent;
@@ -275,9 +643,9 @@ var EventuallyQueue = {
275
643
  {
276
644
  var _this3 = this;
277
645
 
278
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
646
+ return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
279
647
  var queueData, index;
280
- return _regenerator.default.wrap(function (_context3) {
648
+ return _regeneratorRuntime().wrap(function (_context3) {
281
649
  while (1) {
282
650
  switch (_context3.prev = _context3.next) {
283
651
  case 0:
@@ -353,16 +721,14 @@ var EventuallyQueue = {
353
721
  length: function ()
354
722
  /*: number*/
355
723
  {
356
- var _this4 = this;
357
-
358
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
724
+ return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
359
725
  var queueData;
360
- return _regenerator.default.wrap(function (_context4) {
726
+ return _regeneratorRuntime().wrap(function (_context4) {
361
727
  while (1) {
362
728
  switch (_context4.prev = _context4.next) {
363
729
  case 0:
364
730
  _context4.next = 2;
365
- return _this4.getQueue();
731
+ return this.getQueue();
366
732
 
367
733
  case 2:
368
734
  queueData = _context4.sent;
@@ -390,9 +756,9 @@ var EventuallyQueue = {
390
756
  {
391
757
  var _this5 = this;
392
758
 
393
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
759
+ return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
394
760
  var queue, queueData, i, queueObject, id, hash, className, ObjectType;
395
- return _regenerator.default.wrap(function (_context5) {
761
+ return _regeneratorRuntime().wrap(function (_context5) {
396
762
  while (1) {
397
763
  switch (_context5.prev = _context5.next) {
398
764
  case 0:
@@ -487,8 +853,8 @@ var EventuallyQueue = {
487
853
  {
488
854
  var _this6 = this;
489
855
 
490
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
491
- return _regenerator.default.wrap(function (_context6) {
856
+ return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
857
+ return _regeneratorRuntime().wrap(function (_context6) {
492
858
  while (1) {
493
859
  switch (_context6.prev = _context6.next) {
494
860
  case 0:
@@ -650,9 +1016,9 @@ var EventuallyQueue = {
650
1016
  return EventuallyQueue.sendQueueCallback(object, queueObject);
651
1017
  },
652
1018
  byId: function (ObjectType, queueObject) {
653
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
1019
+ return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
654
1020
  var sessionToken, query, results;
655
- return _regenerator.default.wrap(function (_context7) {
1021
+ return _regeneratorRuntime().wrap(function (_context7) {
656
1022
  while (1) {
657
1023
  switch (_context7.prev = _context7.next) {
658
1024
  case 0:
@@ -677,9 +1043,9 @@ var EventuallyQueue = {
677
1043
  }))();
678
1044
  },
679
1045
  byHash: function (ObjectType, queueObject) {
680
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
1046
+ return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
681
1047
  var sessionToken, query, results;
682
- return _regenerator.default.wrap(function (_context8) {
1048
+ return _regeneratorRuntime().wrap(function (_context8) {
683
1049
  while (1) {
684
1050
  switch (_context8.prev = _context8.next) {
685
1051
  case 0:
@@ -367,8 +367,6 @@ var LiveQueryClient = /*#__PURE__*/function (_EventEmitter) {
367
367
  )
368
368
  /*: LiveQuerySubscription*/
369
369
  {
370
- var _this2 = this;
371
-
372
370
  if (!query) {
373
371
  return;
374
372
  }
@@ -395,7 +393,7 @@ var LiveQueryClient = /*#__PURE__*/function (_EventEmitter) {
395
393
  this.subscriptions.set(this.requestId, subscription);
396
394
  this.requestId += 1;
397
395
  this.connectPromise.then(function () {
398
- _this2.socket.send((0, _stringify.default)(subscribeRequest));
396
+ this.socket.send((0, _stringify.default)(subscribeRequest));
399
397
  });
400
398
  return subscription;
401
399
  }
@@ -410,8 +408,6 @@ var LiveQueryClient = /*#__PURE__*/function (_EventEmitter) {
410
408
  value: function (subscription
411
409
  /*: Object*/
412
410
  ) {
413
- var _this3 = this;
414
-
415
411
  if (!subscription) {
416
412
  return;
417
413
  }
@@ -422,7 +418,7 @@ var LiveQueryClient = /*#__PURE__*/function (_EventEmitter) {
422
418
  requestId: subscription.id
423
419
  };
424
420
  this.connectPromise.then(function () {
425
- _this3.socket.send((0, _stringify.default)(unsubscribeRequest));
421
+ this.socket.send((0, _stringify.default)(unsubscribeRequest));
426
422
  });
427
423
  }
428
424
  /**