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.
- package/dist/parse.js +5732 -2377
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +5730 -2375
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/CoreManager.js +1 -1
- package/lib/browser/EventuallyQueue.js +395 -29
- package/lib/browser/LiveQueryClient.js +2 -6
- package/lib/browser/LocalDatastore.js +392 -18
- package/lib/browser/LocalDatastoreController.js +391 -21
- package/lib/browser/LocalDatastoreController.react-native.js +387 -23
- package/lib/browser/OfflineQuery.js +29 -8
- package/lib/browser/ParseFile.js +388 -22
- package/lib/browser/ParseLiveQuery.js +381 -18
- package/lib/browser/ParseObject.js +405 -41
- package/lib/browser/ParseOp.js +1 -3
- package/lib/browser/ParseQuery.js +396 -47
- package/lib/browser/ParseUser.js +388 -14
- package/lib/browser/StorageController.react-native.js +6 -18
- package/lib/node/CoreManager.js +1 -1
- package/lib/node/OfflineQuery.js +18 -3
- package/lib/node/ParseObject.js +6 -6
- package/lib/node/ParseQuery.js +1 -3
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/react-native/EventuallyQueue.js +376 -27
- package/lib/react-native/LiveQueryClient.js +2 -6
- package/lib/react-native/LocalDatastore.js +374 -26
- package/lib/react-native/LocalDatastoreController.js +365 -16
- package/lib/react-native/LocalDatastoreController.react-native.js +363 -14
- package/lib/react-native/OfflineQuery.js +28 -7
- package/lib/react-native/ParseFile.js +359 -16
- package/lib/react-native/ParseLiveQuery.js +357 -8
- package/lib/react-native/ParseObject.js +385 -38
- package/lib/react-native/ParseOp.js +1 -3
- package/lib/react-native/ParseQuery.js +374 -39
- package/lib/react-native/ParseUser.js +368 -19
- package/lib/react-native/StorageController.react-native.js +6 -18
- package/lib/weapp/CoreManager.js +1 -1
- package/lib/weapp/EventuallyQueue.js +395 -29
- package/lib/weapp/LiveQueryClient.js +2 -6
- package/lib/weapp/LocalDatastore.js +392 -18
- package/lib/weapp/LocalDatastoreController.js +391 -21
- package/lib/weapp/LocalDatastoreController.react-native.js +387 -23
- package/lib/weapp/OfflineQuery.js +29 -8
- package/lib/weapp/ParseFile.js +388 -22
- package/lib/weapp/ParseLiveQuery.js +381 -18
- package/lib/weapp/ParseObject.js +405 -41
- package/lib/weapp/ParseOp.js +1 -3
- package/lib/weapp/ParseQuery.js +396 -47
- package/lib/weapp/ParseUser.js +388 -14
- package/lib/weapp/StorageController.react-native.js +6 -18
- package/package.json +1 -1
|
@@ -2,8 +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 _Promise2 = 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
|
+
|
|
5
21
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
6
22
|
|
|
23
|
+
var _Symbol = require("@babel/runtime-corejs3/core-js-stable/symbol");
|
|
24
|
+
|
|
7
25
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
26
|
value: true
|
|
9
27
|
});
|
|
@@ -16,8 +34,6 @@ var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-st
|
|
|
16
34
|
|
|
17
35
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
|
18
36
|
|
|
19
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs3/regenerator"));
|
|
20
|
-
|
|
21
37
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));
|
|
22
38
|
|
|
23
39
|
var _EventEmitter = _interopRequireDefault(require("./EventEmitter"));
|
|
@@ -25,17 +41,364 @@ var _EventEmitter = _interopRequireDefault(require("./EventEmitter"));
|
|
|
25
41
|
var _LiveQueryClient = _interopRequireDefault(require("./LiveQueryClient"));
|
|
26
42
|
|
|
27
43
|
var _CoreManager = _interopRequireDefault(require("./CoreManager"));
|
|
28
|
-
/**
|
|
29
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
30
|
-
* All rights reserved.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the BSD-style license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
34
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
35
|
-
*
|
|
36
|
-
* @flow
|
|
37
|
-
*/
|
|
38
44
|
|
|
45
|
+
function _regeneratorRuntime() {
|
|
46
|
+
"use strict";
|
|
47
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
48
|
+
|
|
49
|
+
_regeneratorRuntime = function () {
|
|
50
|
+
return exports;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
var exports = {},
|
|
54
|
+
Op = Object.prototype,
|
|
55
|
+
hasOwn = Op.hasOwnProperty,
|
|
56
|
+
$Symbol = "function" == typeof _Symbol ? _Symbol : {},
|
|
57
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
58
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
59
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
60
|
+
|
|
61
|
+
function define(obj, key, value) {
|
|
62
|
+
return _Object$defineProperty(obj, key, {
|
|
63
|
+
value: value,
|
|
64
|
+
enumerable: !0,
|
|
65
|
+
configurable: !0,
|
|
66
|
+
writable: !0
|
|
67
|
+
}), obj[key];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
try {
|
|
71
|
+
define({}, "");
|
|
72
|
+
} catch (err) {
|
|
73
|
+
define = function (obj, key, value) {
|
|
74
|
+
return obj[key] = value;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
79
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
80
|
+
generator = _Object$create(protoGenerator.prototype),
|
|
81
|
+
context = new Context(tryLocsList || []);
|
|
82
|
+
|
|
83
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
84
|
+
var state = "suspendedStart";
|
|
85
|
+
return function (method, arg) {
|
|
86
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
87
|
+
|
|
88
|
+
if ("completed" === state) {
|
|
89
|
+
if ("throw" === method) throw arg;
|
|
90
|
+
return doneResult();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
for (context.method = method, context.arg = arg;;) {
|
|
94
|
+
var delegate = context.delegate;
|
|
95
|
+
|
|
96
|
+
if (delegate) {
|
|
97
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
98
|
+
|
|
99
|
+
if (delegateResult) {
|
|
100
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
101
|
+
return delegateResult;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
106
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
107
|
+
context.dispatchException(context.arg);
|
|
108
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
109
|
+
state = "executing";
|
|
110
|
+
var record = tryCatch(innerFn, self, context);
|
|
111
|
+
|
|
112
|
+
if ("normal" === record.type) {
|
|
113
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
114
|
+
return {
|
|
115
|
+
value: record.arg,
|
|
116
|
+
done: context.done
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}(innerFn, self, context), generator;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function tryCatch(fn, obj, arg) {
|
|
127
|
+
try {
|
|
128
|
+
return {
|
|
129
|
+
type: "normal",
|
|
130
|
+
arg: fn.call(obj, arg)
|
|
131
|
+
};
|
|
132
|
+
} catch (err) {
|
|
133
|
+
return {
|
|
134
|
+
type: "throw",
|
|
135
|
+
arg: err
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
exports.wrap = wrap;
|
|
141
|
+
var ContinueSentinel = {};
|
|
142
|
+
|
|
143
|
+
function Generator() {}
|
|
144
|
+
|
|
145
|
+
function GeneratorFunction() {}
|
|
146
|
+
|
|
147
|
+
function GeneratorFunctionPrototype() {}
|
|
148
|
+
|
|
149
|
+
var IteratorPrototype = {};
|
|
150
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
151
|
+
return this;
|
|
152
|
+
});
|
|
153
|
+
var getProto = _Object$getPrototypeOf,
|
|
154
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
155
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
156
|
+
|
|
157
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype);
|
|
158
|
+
|
|
159
|
+
function defineIteratorMethods(prototype) {
|
|
160
|
+
var _context4;
|
|
161
|
+
|
|
162
|
+
_forEachInstanceProperty(_context4 = ["next", "throw", "return"]).call(_context4, function (method) {
|
|
163
|
+
define(prototype, method, function (arg) {
|
|
164
|
+
return this._invoke(method, arg);
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
170
|
+
function invoke(method, arg, resolve, reject) {
|
|
171
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
172
|
+
|
|
173
|
+
if ("throw" !== record.type) {
|
|
174
|
+
var result = record.arg,
|
|
175
|
+
value = result.value;
|
|
176
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
177
|
+
invoke("next", value, resolve, reject);
|
|
178
|
+
}, function (err) {
|
|
179
|
+
invoke("throw", err, resolve, reject);
|
|
180
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
181
|
+
result.value = unwrapped, resolve(result);
|
|
182
|
+
}, function (error) {
|
|
183
|
+
return invoke("throw", error, resolve, reject);
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
reject(record.arg);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
var previousPromise;
|
|
191
|
+
|
|
192
|
+
this._invoke = function (method, arg) {
|
|
193
|
+
function callInvokeWithMethodAndArg() {
|
|
194
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
195
|
+
invoke(method, arg, resolve, reject);
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
204
|
+
var method = delegate.iterator[context.method];
|
|
205
|
+
|
|
206
|
+
if (undefined === method) {
|
|
207
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
208
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
209
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return ContinueSentinel;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
216
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
217
|
+
var info = record.arg;
|
|
218
|
+
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);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
function pushTryEntry(locs) {
|
|
222
|
+
var entry = {
|
|
223
|
+
tryLoc: locs[0]
|
|
224
|
+
};
|
|
225
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
function resetTryEntry(entry) {
|
|
229
|
+
var record = entry.completion || {};
|
|
230
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function Context(tryLocsList) {
|
|
234
|
+
this.tryEntries = [{
|
|
235
|
+
tryLoc: "root"
|
|
236
|
+
}], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
function values(iterable) {
|
|
240
|
+
if (iterable) {
|
|
241
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
242
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
243
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
244
|
+
|
|
245
|
+
if (!isNaN(iterable.length)) {
|
|
246
|
+
var i = -1,
|
|
247
|
+
next = function next() {
|
|
248
|
+
for (; ++i < iterable.length;) {
|
|
249
|
+
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
return next.value = undefined, next.done = !0, next;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
return next.next = next;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
return {
|
|
260
|
+
next: doneResult
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
function doneResult() {
|
|
265
|
+
return {
|
|
266
|
+
value: undefined,
|
|
267
|
+
done: !0
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
272
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
273
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
274
|
+
}, exports.mark = function (genFun) {
|
|
275
|
+
return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = _Object$create(Gp), genFun;
|
|
276
|
+
}, exports.awrap = function (arg) {
|
|
277
|
+
return {
|
|
278
|
+
__await: arg
|
|
279
|
+
};
|
|
280
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
281
|
+
return this;
|
|
282
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
283
|
+
void 0 === PromiseImpl && (PromiseImpl = _Promise2);
|
|
284
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
285
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
286
|
+
return result.done ? result.value : iter.next();
|
|
287
|
+
});
|
|
288
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
289
|
+
return this;
|
|
290
|
+
}), define(Gp, "toString", function () {
|
|
291
|
+
return "[object Generator]";
|
|
292
|
+
}), exports.keys = function (object) {
|
|
293
|
+
var keys = [];
|
|
294
|
+
|
|
295
|
+
for (var key in object) {
|
|
296
|
+
keys.push(key);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return _reverseInstanceProperty(keys).call(keys), function next() {
|
|
300
|
+
for (; keys.length;) {
|
|
301
|
+
var key = keys.pop();
|
|
302
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
return next.done = !0, next;
|
|
306
|
+
};
|
|
307
|
+
}, exports.values = values, Context.prototype = {
|
|
308
|
+
constructor: Context,
|
|
309
|
+
reset: function (skipTempReset) {
|
|
310
|
+
var _context5;
|
|
311
|
+
|
|
312
|
+
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(_context5 = this.tryEntries).call(_context5, resetTryEntry), !skipTempReset) for (var name in this) {
|
|
313
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty(name).call(name, 1)) && (this[name] = undefined);
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
stop: function () {
|
|
317
|
+
this.done = !0;
|
|
318
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
319
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
320
|
+
return this.rval;
|
|
321
|
+
},
|
|
322
|
+
dispatchException: function (exception) {
|
|
323
|
+
if (this.done) throw exception;
|
|
324
|
+
var context = this;
|
|
325
|
+
|
|
326
|
+
function handle(loc, caught) {
|
|
327
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
331
|
+
var entry = this.tryEntries[i],
|
|
332
|
+
record = entry.completion;
|
|
333
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
334
|
+
|
|
335
|
+
if (entry.tryLoc <= this.prev) {
|
|
336
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
337
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
338
|
+
|
|
339
|
+
if (hasCatch && hasFinally) {
|
|
340
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
341
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
342
|
+
} else if (hasCatch) {
|
|
343
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
344
|
+
} else {
|
|
345
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
346
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
abrupt: function (type, arg) {
|
|
352
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
353
|
+
var entry = this.tryEntries[i];
|
|
354
|
+
|
|
355
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
356
|
+
var finallyEntry = entry;
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
362
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
363
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
364
|
+
},
|
|
365
|
+
complete: function (record, afterLoc) {
|
|
366
|
+
if ("throw" === record.type) throw record.arg;
|
|
367
|
+
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;
|
|
368
|
+
},
|
|
369
|
+
finish: function (finallyLoc) {
|
|
370
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
371
|
+
var entry = this.tryEntries[i];
|
|
372
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
catch: function (tryLoc) {
|
|
376
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
377
|
+
var entry = this.tryEntries[i];
|
|
378
|
+
|
|
379
|
+
if (entry.tryLoc === tryLoc) {
|
|
380
|
+
var record = entry.completion;
|
|
381
|
+
|
|
382
|
+
if ("throw" === record.type) {
|
|
383
|
+
var thrown = record.arg;
|
|
384
|
+
resetTryEntry(entry);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
return thrown;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
throw new Error("illegal catch attempt");
|
|
392
|
+
},
|
|
393
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
394
|
+
return this.delegate = {
|
|
395
|
+
iterator: values(iterable),
|
|
396
|
+
resultName: resultName,
|
|
397
|
+
nextLoc: nextLoc
|
|
398
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
399
|
+
}
|
|
400
|
+
}, exports;
|
|
401
|
+
}
|
|
39
402
|
|
|
40
403
|
function getLiveQueryClient()
|
|
41
404
|
/*: LiveQueryClient*/
|
|
@@ -77,9 +440,9 @@ var LiveQuery = new _EventEmitter.default();
|
|
|
77
440
|
* to the LiveQuery server.
|
|
78
441
|
*/
|
|
79
442
|
|
|
80
|
-
LiveQuery.open = /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
443
|
+
LiveQuery.open = /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
81
444
|
var liveQueryClient;
|
|
82
|
-
return
|
|
445
|
+
return _regeneratorRuntime().wrap(function (_context) {
|
|
83
446
|
while (1) {
|
|
84
447
|
switch (_context.prev = _context.next) {
|
|
85
448
|
case 0:
|
|
@@ -105,9 +468,9 @@ LiveQuery.open = /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_reg
|
|
|
105
468
|
* connection to the LiveQuery server.
|
|
106
469
|
*/
|
|
107
470
|
|
|
108
|
-
LiveQuery.close = /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
471
|
+
LiveQuery.close = /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
109
472
|
var liveQueryClient;
|
|
110
|
-
return
|
|
473
|
+
return _regeneratorRuntime().wrap(function (_context2) {
|
|
111
474
|
while (1) {
|
|
112
475
|
switch (_context2.prev = _context2.next) {
|
|
113
476
|
case 0:
|
|
@@ -139,10 +502,10 @@ var DefaultLiveQueryController = {
|
|
|
139
502
|
getDefaultLiveQueryClient: function ()
|
|
140
503
|
/*: Promise<LiveQueryClient>*/
|
|
141
504
|
{
|
|
142
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
505
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
143
506
|
var _yield$Promise$all, _yield$Promise$all2, currentUser, installationId, sessionToken, liveQueryServerURL, serverURL, protocol, host, applicationId, javascriptKey, masterKey;
|
|
144
507
|
|
|
145
|
-
return
|
|
508
|
+
return _regeneratorRuntime().wrap(function (_context3) {
|
|
146
509
|
while (1) {
|
|
147
510
|
switch (_context3.prev = _context3.next) {
|
|
148
511
|
case 0:
|