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.
- package/dist/parse.js +5816 -2480
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +5814 -2478
- 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/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/ParseSchema.js +9 -7
- 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/ParseObject.js +6 -6
- package/lib/node/ParseQuery.js +1 -3
- package/lib/node/ParseSchema.js +9 -7
- 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/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/ParseSchema.js +9 -7
- 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/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/ParseSchema.js +9 -7
- package/lib/weapp/ParseUser.js +388 -14
- package/lib/weapp/StorageController.react-native.js +6 -18
- package/package.json +1 -1
|
@@ -6,12 +6,28 @@ var _Array$isArray = require("@babel/runtime-corejs3/core-js-stable/array/is-arr
|
|
|
6
6
|
|
|
7
7
|
var _getIteratorMethod = require("@babel/runtime-corejs3/core-js/get-iterator-method");
|
|
8
8
|
|
|
9
|
-
var _Symbol = require("@babel/runtime-corejs3/core-js-stable/symbol");
|
|
10
|
-
|
|
11
9
|
var _Array$from = require("@babel/runtime-corejs3/core-js-stable/array/from");
|
|
12
10
|
|
|
13
11
|
var _sliceInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/slice");
|
|
14
12
|
|
|
13
|
+
var _reverseInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/reverse");
|
|
14
|
+
|
|
15
|
+
var _Promise2 = require("@babel/runtime-corejs3/core-js-stable/promise");
|
|
16
|
+
|
|
17
|
+
var _Object$setPrototypeOf = require("@babel/runtime-corejs3/core-js-stable/object/set-prototype-of");
|
|
18
|
+
|
|
19
|
+
var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
|
|
20
|
+
|
|
21
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
|
22
|
+
|
|
23
|
+
var _Object$getPrototypeOf = require("@babel/runtime-corejs3/core-js-stable/object/get-prototype-of");
|
|
24
|
+
|
|
25
|
+
var _Object$create = require("@babel/runtime-corejs3/core-js-stable/object/create");
|
|
26
|
+
|
|
27
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
28
|
+
|
|
29
|
+
var _Symbol = require("@babel/runtime-corejs3/core-js-stable/symbol");
|
|
30
|
+
|
|
15
31
|
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
|
|
16
32
|
|
|
17
33
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
@@ -20,8 +36,6 @@ var _reduce = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-sta
|
|
|
20
36
|
|
|
21
37
|
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/json/stringify"));
|
|
22
38
|
|
|
23
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs3/regenerator"));
|
|
24
|
-
|
|
25
39
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));
|
|
26
40
|
|
|
27
41
|
var _LocalDatastoreUtils = require("./LocalDatastoreUtils");
|
|
@@ -86,12 +100,12 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
86
100
|
}
|
|
87
101
|
|
|
88
102
|
function _unsupportedIterableToArray(o, minLen) {
|
|
89
|
-
var
|
|
103
|
+
var _context9;
|
|
90
104
|
|
|
91
105
|
if (!o) return;
|
|
92
106
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
93
107
|
|
|
94
|
-
var n = _sliceInstanceProperty(
|
|
108
|
+
var n = _sliceInstanceProperty(_context9 = Object.prototype.toString.call(o)).call(_context9, 8, -1);
|
|
95
109
|
|
|
96
110
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
97
111
|
if (n === "Map" || n === "Set") return _Array$from(o);
|
|
@@ -108,15 +122,373 @@ function _arrayLikeToArray(arr, len) {
|
|
|
108
122
|
return arr2;
|
|
109
123
|
}
|
|
110
124
|
|
|
125
|
+
function _regeneratorRuntime() {
|
|
126
|
+
"use strict";
|
|
127
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
128
|
+
|
|
129
|
+
_regeneratorRuntime = function () {
|
|
130
|
+
return exports;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
var exports = {},
|
|
134
|
+
Op = Object.prototype,
|
|
135
|
+
hasOwn = Op.hasOwnProperty,
|
|
136
|
+
$Symbol = "function" == typeof _Symbol ? _Symbol : {},
|
|
137
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
138
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
139
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
140
|
+
|
|
141
|
+
function define(obj, key, value) {
|
|
142
|
+
return _Object$defineProperty(obj, key, {
|
|
143
|
+
value: value,
|
|
144
|
+
enumerable: !0,
|
|
145
|
+
configurable: !0,
|
|
146
|
+
writable: !0
|
|
147
|
+
}), obj[key];
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
try {
|
|
151
|
+
define({}, "");
|
|
152
|
+
} catch (err) {
|
|
153
|
+
define = function (obj, key, value) {
|
|
154
|
+
return obj[key] = value;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
159
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
160
|
+
generator = _Object$create(protoGenerator.prototype),
|
|
161
|
+
context = new Context(tryLocsList || []);
|
|
162
|
+
|
|
163
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
164
|
+
var state = "suspendedStart";
|
|
165
|
+
return function (method, arg) {
|
|
166
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
167
|
+
|
|
168
|
+
if ("completed" === state) {
|
|
169
|
+
if ("throw" === method) throw arg;
|
|
170
|
+
return doneResult();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
for (context.method = method, context.arg = arg;;) {
|
|
174
|
+
var delegate = context.delegate;
|
|
175
|
+
|
|
176
|
+
if (delegate) {
|
|
177
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
178
|
+
|
|
179
|
+
if (delegateResult) {
|
|
180
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
181
|
+
return delegateResult;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
186
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
187
|
+
context.dispatchException(context.arg);
|
|
188
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
189
|
+
state = "executing";
|
|
190
|
+
var record = tryCatch(innerFn, self, context);
|
|
191
|
+
|
|
192
|
+
if ("normal" === record.type) {
|
|
193
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
194
|
+
return {
|
|
195
|
+
value: record.arg,
|
|
196
|
+
done: context.done
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
}(innerFn, self, context), generator;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function tryCatch(fn, obj, arg) {
|
|
207
|
+
try {
|
|
208
|
+
return {
|
|
209
|
+
type: "normal",
|
|
210
|
+
arg: fn.call(obj, arg)
|
|
211
|
+
};
|
|
212
|
+
} catch (err) {
|
|
213
|
+
return {
|
|
214
|
+
type: "throw",
|
|
215
|
+
arg: err
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
exports.wrap = wrap;
|
|
221
|
+
var ContinueSentinel = {};
|
|
222
|
+
|
|
223
|
+
function Generator() {}
|
|
224
|
+
|
|
225
|
+
function GeneratorFunction() {}
|
|
226
|
+
|
|
227
|
+
function GeneratorFunctionPrototype() {}
|
|
228
|
+
|
|
229
|
+
var IteratorPrototype = {};
|
|
230
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
231
|
+
return this;
|
|
232
|
+
});
|
|
233
|
+
var getProto = _Object$getPrototypeOf,
|
|
234
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
235
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
236
|
+
|
|
237
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype);
|
|
238
|
+
|
|
239
|
+
function defineIteratorMethods(prototype) {
|
|
240
|
+
var _context7;
|
|
241
|
+
|
|
242
|
+
_forEachInstanceProperty(_context7 = ["next", "throw", "return"]).call(_context7, function (method) {
|
|
243
|
+
define(prototype, method, function (arg) {
|
|
244
|
+
return this._invoke(method, arg);
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
250
|
+
function invoke(method, arg, resolve, reject) {
|
|
251
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
252
|
+
|
|
253
|
+
if ("throw" !== record.type) {
|
|
254
|
+
var result = record.arg,
|
|
255
|
+
value = result.value;
|
|
256
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
257
|
+
invoke("next", value, resolve, reject);
|
|
258
|
+
}, function (err) {
|
|
259
|
+
invoke("throw", err, resolve, reject);
|
|
260
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
261
|
+
result.value = unwrapped, resolve(result);
|
|
262
|
+
}, function (error) {
|
|
263
|
+
return invoke("throw", error, resolve, reject);
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
reject(record.arg);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
var previousPromise;
|
|
271
|
+
|
|
272
|
+
this._invoke = function (method, arg) {
|
|
273
|
+
function callInvokeWithMethodAndArg() {
|
|
274
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
275
|
+
invoke(method, arg, resolve, reject);
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
284
|
+
var method = delegate.iterator[context.method];
|
|
285
|
+
|
|
286
|
+
if (undefined === method) {
|
|
287
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
288
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
289
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
return ContinueSentinel;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
296
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
297
|
+
var info = record.arg;
|
|
298
|
+
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);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
function pushTryEntry(locs) {
|
|
302
|
+
var entry = {
|
|
303
|
+
tryLoc: locs[0]
|
|
304
|
+
};
|
|
305
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
function resetTryEntry(entry) {
|
|
309
|
+
var record = entry.completion || {};
|
|
310
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
function Context(tryLocsList) {
|
|
314
|
+
this.tryEntries = [{
|
|
315
|
+
tryLoc: "root"
|
|
316
|
+
}], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
function values(iterable) {
|
|
320
|
+
if (iterable) {
|
|
321
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
322
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
323
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
324
|
+
|
|
325
|
+
if (!isNaN(iterable.length)) {
|
|
326
|
+
var i = -1,
|
|
327
|
+
next = function next() {
|
|
328
|
+
for (; ++i < iterable.length;) {
|
|
329
|
+
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
return next.value = undefined, next.done = !0, next;
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
return next.next = next;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
return {
|
|
340
|
+
next: doneResult
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
function doneResult() {
|
|
345
|
+
return {
|
|
346
|
+
value: undefined,
|
|
347
|
+
done: !0
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
352
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
353
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
354
|
+
}, exports.mark = function (genFun) {
|
|
355
|
+
return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = _Object$create(Gp), genFun;
|
|
356
|
+
}, exports.awrap = function (arg) {
|
|
357
|
+
return {
|
|
358
|
+
__await: arg
|
|
359
|
+
};
|
|
360
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
361
|
+
return this;
|
|
362
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
363
|
+
void 0 === PromiseImpl && (PromiseImpl = _Promise2);
|
|
364
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
365
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
366
|
+
return result.done ? result.value : iter.next();
|
|
367
|
+
});
|
|
368
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
369
|
+
return this;
|
|
370
|
+
}), define(Gp, "toString", function () {
|
|
371
|
+
return "[object Generator]";
|
|
372
|
+
}), exports.keys = function (object) {
|
|
373
|
+
var keys = [];
|
|
374
|
+
|
|
375
|
+
for (var key in object) {
|
|
376
|
+
keys.push(key);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
return _reverseInstanceProperty(keys).call(keys), function next() {
|
|
380
|
+
for (; keys.length;) {
|
|
381
|
+
var key = keys.pop();
|
|
382
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
return next.done = !0, next;
|
|
386
|
+
};
|
|
387
|
+
}, exports.values = values, Context.prototype = {
|
|
388
|
+
constructor: Context,
|
|
389
|
+
reset: function (skipTempReset) {
|
|
390
|
+
var _context8;
|
|
391
|
+
|
|
392
|
+
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(_context8 = this.tryEntries).call(_context8, resetTryEntry), !skipTempReset) for (var name in this) {
|
|
393
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty(name).call(name, 1)) && (this[name] = undefined);
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
stop: function () {
|
|
397
|
+
this.done = !0;
|
|
398
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
399
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
400
|
+
return this.rval;
|
|
401
|
+
},
|
|
402
|
+
dispatchException: function (exception) {
|
|
403
|
+
if (this.done) throw exception;
|
|
404
|
+
var context = this;
|
|
405
|
+
|
|
406
|
+
function handle(loc, caught) {
|
|
407
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
411
|
+
var entry = this.tryEntries[i],
|
|
412
|
+
record = entry.completion;
|
|
413
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
414
|
+
|
|
415
|
+
if (entry.tryLoc <= this.prev) {
|
|
416
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
417
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
418
|
+
|
|
419
|
+
if (hasCatch && hasFinally) {
|
|
420
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
421
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
422
|
+
} else if (hasCatch) {
|
|
423
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
424
|
+
} else {
|
|
425
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
426
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
abrupt: function (type, arg) {
|
|
432
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
433
|
+
var entry = this.tryEntries[i];
|
|
434
|
+
|
|
435
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
436
|
+
var finallyEntry = entry;
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
442
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
443
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
444
|
+
},
|
|
445
|
+
complete: function (record, afterLoc) {
|
|
446
|
+
if ("throw" === record.type) throw record.arg;
|
|
447
|
+
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;
|
|
448
|
+
},
|
|
449
|
+
finish: function (finallyLoc) {
|
|
450
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
451
|
+
var entry = this.tryEntries[i];
|
|
452
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
catch: function (tryLoc) {
|
|
456
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
457
|
+
var entry = this.tryEntries[i];
|
|
458
|
+
|
|
459
|
+
if (entry.tryLoc === tryLoc) {
|
|
460
|
+
var record = entry.completion;
|
|
461
|
+
|
|
462
|
+
if ("throw" === record.type) {
|
|
463
|
+
var thrown = record.arg;
|
|
464
|
+
resetTryEntry(entry);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
return thrown;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
throw new Error("illegal catch attempt");
|
|
472
|
+
},
|
|
473
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
474
|
+
return this.delegate = {
|
|
475
|
+
iterator: values(iterable),
|
|
476
|
+
resultName: resultName,
|
|
477
|
+
nextLoc: nextLoc
|
|
478
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
479
|
+
}
|
|
480
|
+
}, exports;
|
|
481
|
+
}
|
|
482
|
+
|
|
111
483
|
var LocalDatastoreController = {
|
|
112
484
|
fromPinWithName: function (name
|
|
113
485
|
/*: string*/
|
|
114
486
|
)
|
|
115
487
|
/*: Array<Object>*/
|
|
116
488
|
{
|
|
117
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
489
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
118
490
|
var values, objects;
|
|
119
|
-
return
|
|
491
|
+
return _regeneratorRuntime().wrap(function (_context) {
|
|
120
492
|
while (1) {
|
|
121
493
|
switch (_context.prev = _context.next) {
|
|
122
494
|
case 0:
|
|
@@ -161,9 +533,9 @@ var LocalDatastoreController = {
|
|
|
161
533
|
getAllContents: function ()
|
|
162
534
|
/*: Object*/
|
|
163
535
|
{
|
|
164
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
536
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
165
537
|
var keys;
|
|
166
|
-
return
|
|
538
|
+
return _regeneratorRuntime().wrap(function (_context3) {
|
|
167
539
|
while (1) {
|
|
168
540
|
switch (_context3.prev = _context3.next) {
|
|
169
541
|
case 0:
|
|
@@ -173,9 +545,9 @@ var LocalDatastoreController = {
|
|
|
173
545
|
case 2:
|
|
174
546
|
keys = _context3.sent;
|
|
175
547
|
return _context3.abrupt("return", (0, _reduce.default)(keys).call(keys, /*#__PURE__*/function () {
|
|
176
|
-
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
548
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(previousPromise, key) {
|
|
177
549
|
var LDS, value;
|
|
178
|
-
return
|
|
550
|
+
return _regeneratorRuntime().wrap(function (_context2) {
|
|
179
551
|
while (1) {
|
|
180
552
|
switch (_context2.prev = _context2.next) {
|
|
181
553
|
case 0:
|
|
@@ -230,9 +602,9 @@ var LocalDatastoreController = {
|
|
|
230
602
|
getRawStorage: function ()
|
|
231
603
|
/*: Object*/
|
|
232
604
|
{
|
|
233
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
605
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
234
606
|
var keys;
|
|
235
|
-
return
|
|
607
|
+
return _regeneratorRuntime().wrap(function (_context5) {
|
|
236
608
|
while (1) {
|
|
237
609
|
switch (_context5.prev = _context5.next) {
|
|
238
610
|
case 0:
|
|
@@ -242,9 +614,9 @@ var LocalDatastoreController = {
|
|
|
242
614
|
case 2:
|
|
243
615
|
keys = _context5.sent;
|
|
244
616
|
return _context5.abrupt("return", (0, _reduce.default)(keys).call(keys, /*#__PURE__*/function () {
|
|
245
|
-
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/
|
|
617
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(previousPromise, key) {
|
|
246
618
|
var LDS, value;
|
|
247
|
-
return
|
|
619
|
+
return _regeneratorRuntime().wrap(function (_context4) {
|
|
248
620
|
while (1) {
|
|
249
621
|
switch (_context4.prev = _context4.next) {
|
|
250
622
|
case 0:
|
|
@@ -285,12 +657,10 @@ var LocalDatastoreController = {
|
|
|
285
657
|
clear: function ()
|
|
286
658
|
/*: Promise*/
|
|
287
659
|
{
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
660
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
291
661
|
var keys, toRemove, _iterator, _step, key, promises;
|
|
292
662
|
|
|
293
|
-
return
|
|
663
|
+
return _regeneratorRuntime().wrap(function (_context6) {
|
|
294
664
|
while (1) {
|
|
295
665
|
switch (_context6.prev = _context6.next) {
|
|
296
666
|
case 0:
|
|
@@ -316,7 +686,7 @@ var LocalDatastoreController = {
|
|
|
316
686
|
_iterator.f();
|
|
317
687
|
}
|
|
318
688
|
|
|
319
|
-
promises = (0, _map.default)(toRemove).call(toRemove,
|
|
689
|
+
promises = (0, _map.default)(toRemove).call(toRemove, this.unPinWithName);
|
|
320
690
|
return _context6.abrupt("return", _promise.default.all(promises));
|
|
321
691
|
|
|
322
692
|
case 8:
|