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,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
+
var _reverseInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/reverse");
|
|
6
|
+
|
|
7
|
+
var _Promise2 = require("@babel/runtime-corejs3/core-js-stable/promise");
|
|
8
|
+
|
|
9
|
+
var _Object$setPrototypeOf = require("@babel/runtime-corejs3/core-js-stable/object/set-prototype-of");
|
|
10
|
+
|
|
11
|
+
var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
|
|
12
|
+
|
|
13
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
|
14
|
+
|
|
15
|
+
var _Object$getPrototypeOf = require("@babel/runtime-corejs3/core-js-stable/object/get-prototype-of");
|
|
16
|
+
|
|
17
|
+
var _Object$create = require("@babel/runtime-corejs3/core-js-stable/object/create");
|
|
18
|
+
|
|
19
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
20
|
+
|
|
5
21
|
var _Array$isArray2 = require("@babel/runtime-corejs3/core-js-stable/array/is-array");
|
|
6
22
|
|
|
7
23
|
var _getIteratorMethod = require("@babel/runtime-corejs3/core-js/get-iterator-method");
|
|
@@ -20,6 +36,8 @@ var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable
|
|
|
20
36
|
|
|
21
37
|
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
|
|
22
38
|
|
|
39
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs3/regenerator"));
|
|
40
|
+
|
|
23
41
|
var _keys2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/keys"));
|
|
24
42
|
|
|
25
43
|
var _startsWith = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/starts-with"));
|
|
@@ -30,8 +48,6 @@ var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-s
|
|
|
30
48
|
|
|
31
49
|
var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
|
|
32
50
|
|
|
33
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs3/regenerator"));
|
|
34
|
-
|
|
35
51
|
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
36
52
|
|
|
37
53
|
var _set = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/set"));
|
|
@@ -50,6 +66,364 @@ var _ParseQuery = _interopRequireDefault(require("./ParseQuery"));
|
|
|
50
66
|
|
|
51
67
|
var _LocalDatastoreUtils = require("./LocalDatastoreUtils");
|
|
52
68
|
|
|
69
|
+
function _regeneratorRuntime() {
|
|
70
|
+
"use strict";
|
|
71
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
72
|
+
|
|
73
|
+
_regeneratorRuntime = function () {
|
|
74
|
+
return exports;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
var exports = {},
|
|
78
|
+
Op = Object.prototype,
|
|
79
|
+
hasOwn = Op.hasOwnProperty,
|
|
80
|
+
$Symbol = "function" == typeof _Symbol ? _Symbol : {},
|
|
81
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
82
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
83
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
84
|
+
|
|
85
|
+
function define(obj, key, value) {
|
|
86
|
+
return _Object$defineProperty(obj, key, {
|
|
87
|
+
value: value,
|
|
88
|
+
enumerable: !0,
|
|
89
|
+
configurable: !0,
|
|
90
|
+
writable: !0
|
|
91
|
+
}), obj[key];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
try {
|
|
95
|
+
define({}, "");
|
|
96
|
+
} catch (err) {
|
|
97
|
+
define = function (obj, key, value) {
|
|
98
|
+
return obj[key] = value;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
103
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
104
|
+
generator = _Object$create(protoGenerator.prototype),
|
|
105
|
+
context = new Context(tryLocsList || []);
|
|
106
|
+
|
|
107
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
108
|
+
var state = "suspendedStart";
|
|
109
|
+
return function (method, arg) {
|
|
110
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
111
|
+
|
|
112
|
+
if ("completed" === state) {
|
|
113
|
+
if ("throw" === method) throw arg;
|
|
114
|
+
return doneResult();
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
for (context.method = method, context.arg = arg;;) {
|
|
118
|
+
var delegate = context.delegate;
|
|
119
|
+
|
|
120
|
+
if (delegate) {
|
|
121
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
122
|
+
|
|
123
|
+
if (delegateResult) {
|
|
124
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
125
|
+
return delegateResult;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
130
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
131
|
+
context.dispatchException(context.arg);
|
|
132
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
133
|
+
state = "executing";
|
|
134
|
+
var record = tryCatch(innerFn, self, context);
|
|
135
|
+
|
|
136
|
+
if ("normal" === record.type) {
|
|
137
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
138
|
+
return {
|
|
139
|
+
value: record.arg,
|
|
140
|
+
done: context.done
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
}(innerFn, self, context), generator;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function tryCatch(fn, obj, arg) {
|
|
151
|
+
try {
|
|
152
|
+
return {
|
|
153
|
+
type: "normal",
|
|
154
|
+
arg: fn.call(obj, arg)
|
|
155
|
+
};
|
|
156
|
+
} catch (err) {
|
|
157
|
+
return {
|
|
158
|
+
type: "throw",
|
|
159
|
+
arg: err
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
exports.wrap = wrap;
|
|
165
|
+
var ContinueSentinel = {};
|
|
166
|
+
|
|
167
|
+
function Generator() {}
|
|
168
|
+
|
|
169
|
+
function GeneratorFunction() {}
|
|
170
|
+
|
|
171
|
+
function GeneratorFunctionPrototype() {}
|
|
172
|
+
|
|
173
|
+
var IteratorPrototype = {};
|
|
174
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
175
|
+
return this;
|
|
176
|
+
});
|
|
177
|
+
var getProto = _Object$getPrototypeOf,
|
|
178
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
179
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
180
|
+
|
|
181
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype);
|
|
182
|
+
|
|
183
|
+
function defineIteratorMethods(prototype) {
|
|
184
|
+
var _context19;
|
|
185
|
+
|
|
186
|
+
_forEachInstanceProperty(_context19 = ["next", "throw", "return"]).call(_context19, function (method) {
|
|
187
|
+
define(prototype, method, function (arg) {
|
|
188
|
+
return this._invoke(method, arg);
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
194
|
+
function invoke(method, arg, resolve, reject) {
|
|
195
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
196
|
+
|
|
197
|
+
if ("throw" !== record.type) {
|
|
198
|
+
var result = record.arg,
|
|
199
|
+
value = result.value;
|
|
200
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
201
|
+
invoke("next", value, resolve, reject);
|
|
202
|
+
}, function (err) {
|
|
203
|
+
invoke("throw", err, resolve, reject);
|
|
204
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
205
|
+
result.value = unwrapped, resolve(result);
|
|
206
|
+
}, function (error) {
|
|
207
|
+
return invoke("throw", error, resolve, reject);
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
reject(record.arg);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
var previousPromise;
|
|
215
|
+
|
|
216
|
+
this._invoke = function (method, arg) {
|
|
217
|
+
function callInvokeWithMethodAndArg() {
|
|
218
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
219
|
+
invoke(method, arg, resolve, reject);
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
228
|
+
var method = delegate.iterator[context.method];
|
|
229
|
+
|
|
230
|
+
if (undefined === method) {
|
|
231
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
232
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
233
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
return ContinueSentinel;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
240
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
241
|
+
var info = record.arg;
|
|
242
|
+
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);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function pushTryEntry(locs) {
|
|
246
|
+
var entry = {
|
|
247
|
+
tryLoc: locs[0]
|
|
248
|
+
};
|
|
249
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function resetTryEntry(entry) {
|
|
253
|
+
var record = entry.completion || {};
|
|
254
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
function Context(tryLocsList) {
|
|
258
|
+
this.tryEntries = [{
|
|
259
|
+
tryLoc: "root"
|
|
260
|
+
}], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function values(iterable) {
|
|
264
|
+
if (iterable) {
|
|
265
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
266
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
267
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
268
|
+
|
|
269
|
+
if (!isNaN(iterable.length)) {
|
|
270
|
+
var i = -1,
|
|
271
|
+
next = function next() {
|
|
272
|
+
for (; ++i < iterable.length;) {
|
|
273
|
+
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
return next.value = undefined, next.done = !0, next;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
return next.next = next;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
return {
|
|
284
|
+
next: doneResult
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function doneResult() {
|
|
289
|
+
return {
|
|
290
|
+
value: undefined,
|
|
291
|
+
done: !0
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
296
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
297
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
298
|
+
}, exports.mark = function (genFun) {
|
|
299
|
+
return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = _Object$create(Gp), genFun;
|
|
300
|
+
}, exports.awrap = function (arg) {
|
|
301
|
+
return {
|
|
302
|
+
__await: arg
|
|
303
|
+
};
|
|
304
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
305
|
+
return this;
|
|
306
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
307
|
+
void 0 === PromiseImpl && (PromiseImpl = _Promise2);
|
|
308
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
309
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
310
|
+
return result.done ? result.value : iter.next();
|
|
311
|
+
});
|
|
312
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
313
|
+
return this;
|
|
314
|
+
}), define(Gp, "toString", function () {
|
|
315
|
+
return "[object Generator]";
|
|
316
|
+
}), exports.keys = function (object) {
|
|
317
|
+
var keys = [];
|
|
318
|
+
|
|
319
|
+
for (var key in object) {
|
|
320
|
+
keys.push(key);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
return _reverseInstanceProperty(keys).call(keys), function next() {
|
|
324
|
+
for (; keys.length;) {
|
|
325
|
+
var key = keys.pop();
|
|
326
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
return next.done = !0, next;
|
|
330
|
+
};
|
|
331
|
+
}, exports.values = values, Context.prototype = {
|
|
332
|
+
constructor: Context,
|
|
333
|
+
reset: function (skipTempReset) {
|
|
334
|
+
var _context20;
|
|
335
|
+
|
|
336
|
+
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(_context20 = this.tryEntries).call(_context20, resetTryEntry), !skipTempReset) for (var name in this) {
|
|
337
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty(name).call(name, 1)) && (this[name] = undefined);
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
stop: function () {
|
|
341
|
+
this.done = !0;
|
|
342
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
343
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
344
|
+
return this.rval;
|
|
345
|
+
},
|
|
346
|
+
dispatchException: function (exception) {
|
|
347
|
+
if (this.done) throw exception;
|
|
348
|
+
var context = this;
|
|
349
|
+
|
|
350
|
+
function handle(loc, caught) {
|
|
351
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
355
|
+
var entry = this.tryEntries[i],
|
|
356
|
+
record = entry.completion;
|
|
357
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
358
|
+
|
|
359
|
+
if (entry.tryLoc <= this.prev) {
|
|
360
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
361
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
362
|
+
|
|
363
|
+
if (hasCatch && hasFinally) {
|
|
364
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
365
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
366
|
+
} else if (hasCatch) {
|
|
367
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
368
|
+
} else {
|
|
369
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
370
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
abrupt: function (type, arg) {
|
|
376
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
377
|
+
var entry = this.tryEntries[i];
|
|
378
|
+
|
|
379
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
380
|
+
var finallyEntry = entry;
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
386
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
387
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
388
|
+
},
|
|
389
|
+
complete: function (record, afterLoc) {
|
|
390
|
+
if ("throw" === record.type) throw record.arg;
|
|
391
|
+
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;
|
|
392
|
+
},
|
|
393
|
+
finish: function (finallyLoc) {
|
|
394
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
395
|
+
var entry = this.tryEntries[i];
|
|
396
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
catch: function (tryLoc) {
|
|
400
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
401
|
+
var entry = this.tryEntries[i];
|
|
402
|
+
|
|
403
|
+
if (entry.tryLoc === tryLoc) {
|
|
404
|
+
var record = entry.completion;
|
|
405
|
+
|
|
406
|
+
if ("throw" === record.type) {
|
|
407
|
+
var thrown = record.arg;
|
|
408
|
+
resetTryEntry(entry);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
return thrown;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
throw new Error("illegal catch attempt");
|
|
416
|
+
},
|
|
417
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
418
|
+
return this.delegate = {
|
|
419
|
+
iterator: values(iterable),
|
|
420
|
+
resultName: resultName,
|
|
421
|
+
nextLoc: nextLoc
|
|
422
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
423
|
+
}
|
|
424
|
+
}, exports;
|
|
425
|
+
}
|
|
426
|
+
|
|
53
427
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
54
428
|
var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"];
|
|
55
429
|
|
|
@@ -216,12 +590,12 @@ var LocalDatastore = {
|
|
|
216
590
|
{
|
|
217
591
|
var _this = this;
|
|
218
592
|
|
|
219
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
593
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
220
594
|
var _context;
|
|
221
595
|
|
|
222
596
|
var pinName, toPinPromises, objectKeys, _iterator, _step, parent, children, parentKey, json, objectKey, fromPinPromise, _yield$Promise$all, _yield$Promise$all2, pinned, toPin;
|
|
223
597
|
|
|
224
|
-
return
|
|
598
|
+
return _regeneratorRuntime().wrap(function (_context2) {
|
|
225
599
|
while (1) {
|
|
226
600
|
switch (_context2.prev = _context2.next) {
|
|
227
601
|
case 0:
|
|
@@ -282,10 +656,10 @@ var LocalDatastore = {
|
|
|
282
656
|
) {
|
|
283
657
|
var _this2 = this;
|
|
284
658
|
|
|
285
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
659
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
286
660
|
var localDatastore, pinName, promises, objectKeys, _iterator2, _step2, _objectKeys, _context3, parent, children, parentKey, pinned, _iterator3, _step3, objectKey, hasReference, key, pinnedObjects;
|
|
287
661
|
|
|
288
|
-
return
|
|
662
|
+
return _regeneratorRuntime().wrap(function (_context4) {
|
|
289
663
|
while (1) {
|
|
290
664
|
switch (_context4.prev = _context4.next) {
|
|
291
665
|
case 0:
|
|
@@ -457,11 +831,11 @@ var LocalDatastore = {
|
|
|
457
831
|
) {
|
|
458
832
|
var _this3 = this;
|
|
459
833
|
|
|
460
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
834
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
461
835
|
var _context5, _concatInstanceProper, _context6;
|
|
462
836
|
|
|
463
837
|
var localDatastore, allObjects, key, pinName, pinned, promises, objects;
|
|
464
|
-
return
|
|
838
|
+
return _regeneratorRuntime().wrap(function (_context7) {
|
|
465
839
|
while (1) {
|
|
466
840
|
switch (_context7.prev = _context7.next) {
|
|
467
841
|
case 0:
|
|
@@ -528,9 +902,9 @@ var LocalDatastore = {
|
|
|
528
902
|
) {
|
|
529
903
|
var _this4 = this;
|
|
530
904
|
|
|
531
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
905
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
532
906
|
var LDS, root, queue, meta, uniqueId, nodeId, subTreeRoot, field, value, key, pointer;
|
|
533
|
-
return
|
|
907
|
+
return _regeneratorRuntime().wrap(function (_context8) {
|
|
534
908
|
while (1) {
|
|
535
909
|
switch (_context8.prev = _context8.next) {
|
|
536
910
|
case 0:
|
|
@@ -603,9 +977,9 @@ var LocalDatastore = {
|
|
|
603
977
|
{
|
|
604
978
|
var _this5 = this;
|
|
605
979
|
|
|
606
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
980
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
607
981
|
var objectKey, pinned;
|
|
608
|
-
return
|
|
982
|
+
return _regeneratorRuntime().wrap(function (_context9) {
|
|
609
983
|
while (1) {
|
|
610
984
|
switch (_context9.prev = _context9.next) {
|
|
611
985
|
case 0:
|
|
@@ -650,9 +1024,9 @@ var LocalDatastore = {
|
|
|
650
1024
|
) {
|
|
651
1025
|
var _this6 = this;
|
|
652
1026
|
|
|
653
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
1027
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
654
1028
|
var localDatastore, objectKey, pin, promises, key, pinned;
|
|
655
|
-
return
|
|
1029
|
+
return _regeneratorRuntime().wrap(function (_context10) {
|
|
656
1030
|
while (1) {
|
|
657
1031
|
switch (_context10.prev = _context10.next) {
|
|
658
1032
|
case 0:
|
|
@@ -721,11 +1095,11 @@ var LocalDatastore = {
|
|
|
721
1095
|
) {
|
|
722
1096
|
var _this7 = this;
|
|
723
1097
|
|
|
724
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
1098
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
725
1099
|
var _context11, _context12;
|
|
726
1100
|
|
|
727
1101
|
var localKey, objectKey, unsaved, promises, localDatastore, key, pinned;
|
|
728
|
-
return
|
|
1102
|
+
return _regeneratorRuntime().wrap(function (_context13) {
|
|
729
1103
|
while (1) {
|
|
730
1104
|
switch (_context13.prev = _context13.next) {
|
|
731
1105
|
case 0:
|
|
@@ -800,12 +1174,12 @@ var LocalDatastore = {
|
|
|
800
1174
|
updateFromServer: function () {
|
|
801
1175
|
var _this8 = this;
|
|
802
1176
|
|
|
803
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
1177
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
804
1178
|
var _context14;
|
|
805
1179
|
|
|
806
1180
|
var localDatastore, keys, key, pointersHash, _i, _keys, _key, _key$split, _key$split2, className, objectId, queryPromises, responses, objects, pinPromises;
|
|
807
1181
|
|
|
808
|
-
return
|
|
1182
|
+
return _regeneratorRuntime().wrap(function (_context15) {
|
|
809
1183
|
while (1) {
|
|
810
1184
|
switch (_context15.prev = _context15.next) {
|
|
811
1185
|
case 0:
|