datastore-api 4.0.0 → 4.0.3
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/datastore-api.cjs.development.js +210 -206
- package/dist/datastore-api.cjs.development.js.map +1 -1
- package/dist/datastore-api.cjs.production.min.js +1 -1
- package/dist/datastore-api.cjs.production.min.js.map +1 -1
- package/dist/datastore-api.esm.js +211 -207
- package/dist/datastore-api.esm.js.map +1 -1
- package/package.json +6 -6
- package/src/index.ts +1 -1
- package/src/lib/dstore-api-cloud.spec.ts +123 -123
- package/src/lib/dstore-api-emulator.spec.ts +131 -131
- package/src/lib/dstore-api-simulator.spec.ts +132 -132
- package/src/lib/dstore-api.ts +188 -188
- package/src/mock/index.ts +228 -228
- package/src/mock/operators.ts +1 -1
|
@@ -12,304 +12,304 @@ var promClient = require('prom-client');
|
|
|
12
12
|
|
|
13
13
|
function _regeneratorRuntime() {
|
|
14
14
|
_regeneratorRuntime = function () {
|
|
15
|
-
return
|
|
15
|
+
return e;
|
|
16
16
|
};
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
var t,
|
|
18
|
+
e = {},
|
|
19
|
+
r = Object.prototype,
|
|
20
|
+
n = r.hasOwnProperty,
|
|
21
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
22
|
+
t[e] = r.value;
|
|
22
23
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function define(
|
|
28
|
-
return Object.defineProperty(
|
|
29
|
-
value:
|
|
24
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
25
|
+
a = i.iterator || "@@iterator",
|
|
26
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
27
|
+
u = i.toStringTag || "@@toStringTag";
|
|
28
|
+
function define(t, e, r) {
|
|
29
|
+
return Object.defineProperty(t, e, {
|
|
30
|
+
value: r,
|
|
30
31
|
enumerable: !0,
|
|
31
32
|
configurable: !0,
|
|
32
33
|
writable: !0
|
|
33
|
-
}),
|
|
34
|
+
}), t[e];
|
|
34
35
|
}
|
|
35
36
|
try {
|
|
36
37
|
define({}, "");
|
|
37
|
-
} catch (
|
|
38
|
-
define = function (
|
|
39
|
-
return
|
|
38
|
+
} catch (t) {
|
|
39
|
+
define = function (t, e, r) {
|
|
40
|
+
return t[e] = r;
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
|
-
function wrap(
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return
|
|
47
|
-
value: makeInvokeMethod(
|
|
48
|
-
}),
|
|
43
|
+
function wrap(t, e, r, n) {
|
|
44
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
45
|
+
a = Object.create(i.prototype),
|
|
46
|
+
c = new Context(n || []);
|
|
47
|
+
return o(a, "_invoke", {
|
|
48
|
+
value: makeInvokeMethod(t, r, c)
|
|
49
|
+
}), a;
|
|
49
50
|
}
|
|
50
|
-
function tryCatch(
|
|
51
|
+
function tryCatch(t, e, r) {
|
|
51
52
|
try {
|
|
52
53
|
return {
|
|
53
54
|
type: "normal",
|
|
54
|
-
arg:
|
|
55
|
+
arg: t.call(e, r)
|
|
55
56
|
};
|
|
56
|
-
} catch (
|
|
57
|
+
} catch (t) {
|
|
57
58
|
return {
|
|
58
59
|
type: "throw",
|
|
59
|
-
arg:
|
|
60
|
+
arg: t
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
-
var
|
|
64
|
+
e.wrap = wrap;
|
|
65
|
+
var h = "suspendedStart",
|
|
66
|
+
l = "suspendedYield",
|
|
67
|
+
f = "executing",
|
|
68
|
+
s = "completed",
|
|
69
|
+
y = {};
|
|
65
70
|
function Generator() {}
|
|
66
71
|
function GeneratorFunction() {}
|
|
67
72
|
function GeneratorFunctionPrototype() {}
|
|
68
|
-
var
|
|
69
|
-
define(
|
|
73
|
+
var p = {};
|
|
74
|
+
define(p, a, function () {
|
|
70
75
|
return this;
|
|
71
76
|
});
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
var
|
|
76
|
-
function defineIteratorMethods(
|
|
77
|
-
["next", "throw", "return"].forEach(function (
|
|
78
|
-
define(
|
|
79
|
-
return this._invoke(
|
|
77
|
+
var d = Object.getPrototypeOf,
|
|
78
|
+
v = d && d(d(values([])));
|
|
79
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
80
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
81
|
+
function defineIteratorMethods(t) {
|
|
82
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
83
|
+
define(t, e, function (t) {
|
|
84
|
+
return this._invoke(e, t);
|
|
80
85
|
});
|
|
81
86
|
});
|
|
82
87
|
}
|
|
83
|
-
function AsyncIterator(
|
|
84
|
-
function invoke(
|
|
85
|
-
var
|
|
86
|
-
if ("throw" !==
|
|
87
|
-
var
|
|
88
|
-
|
|
89
|
-
return
|
|
90
|
-
invoke("next",
|
|
91
|
-
}, function (
|
|
92
|
-
invoke("throw",
|
|
93
|
-
}) :
|
|
94
|
-
|
|
95
|
-
}, function (
|
|
96
|
-
return invoke("throw",
|
|
88
|
+
function AsyncIterator(t, e) {
|
|
89
|
+
function invoke(r, o, i, a) {
|
|
90
|
+
var c = tryCatch(t[r], t, o);
|
|
91
|
+
if ("throw" !== c.type) {
|
|
92
|
+
var u = c.arg,
|
|
93
|
+
h = u.value;
|
|
94
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
95
|
+
invoke("next", t, i, a);
|
|
96
|
+
}, function (t) {
|
|
97
|
+
invoke("throw", t, i, a);
|
|
98
|
+
}) : e.resolve(h).then(function (t) {
|
|
99
|
+
u.value = t, i(u);
|
|
100
|
+
}, function (t) {
|
|
101
|
+
return invoke("throw", t, i, a);
|
|
97
102
|
});
|
|
98
103
|
}
|
|
99
|
-
|
|
104
|
+
a(c.arg);
|
|
100
105
|
}
|
|
101
|
-
var
|
|
102
|
-
|
|
103
|
-
value: function (
|
|
106
|
+
var r;
|
|
107
|
+
o(this, "_invoke", {
|
|
108
|
+
value: function (t, n) {
|
|
104
109
|
function callInvokeWithMethodAndArg() {
|
|
105
|
-
return new
|
|
106
|
-
invoke(
|
|
110
|
+
return new e(function (e, r) {
|
|
111
|
+
invoke(t, n, e, r);
|
|
107
112
|
});
|
|
108
113
|
}
|
|
109
|
-
return
|
|
114
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
110
115
|
}
|
|
111
116
|
});
|
|
112
117
|
}
|
|
113
|
-
function makeInvokeMethod(
|
|
114
|
-
var
|
|
115
|
-
return function (
|
|
116
|
-
if (
|
|
117
|
-
if (
|
|
118
|
-
if ("throw" ===
|
|
119
|
-
return
|
|
118
|
+
function makeInvokeMethod(e, r, n) {
|
|
119
|
+
var o = h;
|
|
120
|
+
return function (i, a) {
|
|
121
|
+
if (o === f) throw new Error("Generator is already running");
|
|
122
|
+
if (o === s) {
|
|
123
|
+
if ("throw" === i) throw a;
|
|
124
|
+
return {
|
|
125
|
+
value: t,
|
|
126
|
+
done: !0
|
|
127
|
+
};
|
|
120
128
|
}
|
|
121
|
-
for (
|
|
122
|
-
var
|
|
123
|
-
if (
|
|
124
|
-
var
|
|
125
|
-
if (
|
|
126
|
-
if (
|
|
127
|
-
return
|
|
129
|
+
for (n.method = i, n.arg = a;;) {
|
|
130
|
+
var c = n.delegate;
|
|
131
|
+
if (c) {
|
|
132
|
+
var u = maybeInvokeDelegate(c, n);
|
|
133
|
+
if (u) {
|
|
134
|
+
if (u === y) continue;
|
|
135
|
+
return u;
|
|
128
136
|
}
|
|
129
137
|
}
|
|
130
|
-
if ("next" ===
|
|
131
|
-
if (
|
|
132
|
-
|
|
133
|
-
} else "return" ===
|
|
134
|
-
|
|
135
|
-
var
|
|
136
|
-
if ("normal" ===
|
|
137
|
-
if (
|
|
138
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
139
|
+
if (o === h) throw o = s, n.arg;
|
|
140
|
+
n.dispatchException(n.arg);
|
|
141
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
142
|
+
o = f;
|
|
143
|
+
var p = tryCatch(e, r, n);
|
|
144
|
+
if ("normal" === p.type) {
|
|
145
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
138
146
|
return {
|
|
139
|
-
value:
|
|
140
|
-
done:
|
|
147
|
+
value: p.arg,
|
|
148
|
+
done: n.done
|
|
141
149
|
};
|
|
142
150
|
}
|
|
143
|
-
"throw" ===
|
|
151
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
144
152
|
}
|
|
145
153
|
};
|
|
146
154
|
}
|
|
147
|
-
function maybeInvokeDelegate(
|
|
148
|
-
var
|
|
149
|
-
|
|
150
|
-
if (
|
|
151
|
-
var
|
|
152
|
-
if ("throw" ===
|
|
153
|
-
var
|
|
154
|
-
return
|
|
155
|
+
function maybeInvokeDelegate(e, r) {
|
|
156
|
+
var n = r.method,
|
|
157
|
+
o = e.iterator[n];
|
|
158
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
159
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
160
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
161
|
+
var a = i.arg;
|
|
162
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
155
163
|
}
|
|
156
|
-
function pushTryEntry(
|
|
157
|
-
var
|
|
158
|
-
tryLoc:
|
|
164
|
+
function pushTryEntry(t) {
|
|
165
|
+
var e = {
|
|
166
|
+
tryLoc: t[0]
|
|
159
167
|
};
|
|
160
|
-
1 in
|
|
168
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
161
169
|
}
|
|
162
|
-
function resetTryEntry(
|
|
163
|
-
var
|
|
164
|
-
|
|
170
|
+
function resetTryEntry(t) {
|
|
171
|
+
var e = t.completion || {};
|
|
172
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
165
173
|
}
|
|
166
|
-
function Context(
|
|
174
|
+
function Context(t) {
|
|
167
175
|
this.tryEntries = [{
|
|
168
176
|
tryLoc: "root"
|
|
169
|
-
}],
|
|
177
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
170
178
|
}
|
|
171
|
-
function values(
|
|
172
|
-
if (
|
|
173
|
-
var
|
|
174
|
-
if (
|
|
175
|
-
if ("function" == typeof
|
|
176
|
-
if (!isNaN(
|
|
177
|
-
var
|
|
178
|
-
|
|
179
|
-
for (; ++
|
|
180
|
-
return next.value =
|
|
179
|
+
function values(e) {
|
|
180
|
+
if (e || "" === e) {
|
|
181
|
+
var r = e[a];
|
|
182
|
+
if (r) return r.call(e);
|
|
183
|
+
if ("function" == typeof e.next) return e;
|
|
184
|
+
if (!isNaN(e.length)) {
|
|
185
|
+
var o = -1,
|
|
186
|
+
i = function next() {
|
|
187
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
188
|
+
return next.value = t, next.done = !0, next;
|
|
181
189
|
};
|
|
182
|
-
return
|
|
190
|
+
return i.next = i;
|
|
183
191
|
}
|
|
184
192
|
}
|
|
185
|
-
|
|
186
|
-
next: doneResult
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
function doneResult() {
|
|
190
|
-
return {
|
|
191
|
-
value: undefined,
|
|
192
|
-
done: !0
|
|
193
|
-
};
|
|
193
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
194
194
|
}
|
|
195
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
195
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
196
196
|
value: GeneratorFunctionPrototype,
|
|
197
197
|
configurable: !0
|
|
198
|
-
}),
|
|
198
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
199
199
|
value: GeneratorFunction,
|
|
200
200
|
configurable: !0
|
|
201
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
202
|
-
var
|
|
203
|
-
return !!
|
|
204
|
-
},
|
|
205
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
206
|
-
},
|
|
201
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
202
|
+
var e = "function" == typeof t && t.constructor;
|
|
203
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
204
|
+
}, e.mark = function (t) {
|
|
205
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
206
|
+
}, e.awrap = function (t) {
|
|
207
207
|
return {
|
|
208
|
-
__await:
|
|
208
|
+
__await: t
|
|
209
209
|
};
|
|
210
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
210
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
211
211
|
return this;
|
|
212
|
-
}),
|
|
213
|
-
void 0 ===
|
|
214
|
-
var
|
|
215
|
-
return
|
|
216
|
-
return
|
|
212
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
213
|
+
void 0 === i && (i = Promise);
|
|
214
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
215
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
216
|
+
return t.done ? t.value : a.next();
|
|
217
217
|
});
|
|
218
|
-
}, defineIteratorMethods(
|
|
218
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
219
219
|
return this;
|
|
220
|
-
}), define(
|
|
220
|
+
}), define(g, "toString", function () {
|
|
221
221
|
return "[object Generator]";
|
|
222
|
-
}),
|
|
223
|
-
var
|
|
224
|
-
|
|
225
|
-
for (var
|
|
226
|
-
return
|
|
227
|
-
for (;
|
|
228
|
-
var
|
|
229
|
-
if (
|
|
222
|
+
}), e.keys = function (t) {
|
|
223
|
+
var e = Object(t),
|
|
224
|
+
r = [];
|
|
225
|
+
for (var n in e) r.push(n);
|
|
226
|
+
return r.reverse(), function next() {
|
|
227
|
+
for (; r.length;) {
|
|
228
|
+
var t = r.pop();
|
|
229
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
230
230
|
}
|
|
231
231
|
return next.done = !0, next;
|
|
232
232
|
};
|
|
233
|
-
},
|
|
233
|
+
}, e.values = values, Context.prototype = {
|
|
234
234
|
constructor: Context,
|
|
235
|
-
reset: function (
|
|
236
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
235
|
+
reset: function (e) {
|
|
236
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
237
237
|
},
|
|
238
238
|
stop: function () {
|
|
239
239
|
this.done = !0;
|
|
240
|
-
var
|
|
241
|
-
if ("throw" ===
|
|
240
|
+
var t = this.tryEntries[0].completion;
|
|
241
|
+
if ("throw" === t.type) throw t.arg;
|
|
242
242
|
return this.rval;
|
|
243
243
|
},
|
|
244
|
-
dispatchException: function (
|
|
245
|
-
if (this.done) throw
|
|
246
|
-
var
|
|
247
|
-
function handle(
|
|
248
|
-
return
|
|
244
|
+
dispatchException: function (e) {
|
|
245
|
+
if (this.done) throw e;
|
|
246
|
+
var r = this;
|
|
247
|
+
function handle(n, o) {
|
|
248
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
249
249
|
}
|
|
250
|
-
for (var
|
|
251
|
-
var
|
|
252
|
-
|
|
253
|
-
if ("root" ===
|
|
254
|
-
if (
|
|
255
|
-
var
|
|
256
|
-
|
|
257
|
-
if (
|
|
258
|
-
if (this.prev <
|
|
259
|
-
if (this.prev <
|
|
260
|
-
} else if (
|
|
261
|
-
if (this.prev <
|
|
250
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
251
|
+
var i = this.tryEntries[o],
|
|
252
|
+
a = i.completion;
|
|
253
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
254
|
+
if (i.tryLoc <= this.prev) {
|
|
255
|
+
var c = n.call(i, "catchLoc"),
|
|
256
|
+
u = n.call(i, "finallyLoc");
|
|
257
|
+
if (c && u) {
|
|
258
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
259
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
260
|
+
} else if (c) {
|
|
261
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
262
262
|
} else {
|
|
263
|
-
if (!
|
|
264
|
-
if (this.prev <
|
|
263
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
264
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
},
|
|
269
|
-
abrupt: function (
|
|
270
|
-
for (var
|
|
271
|
-
var
|
|
272
|
-
if (
|
|
273
|
-
var
|
|
269
|
+
abrupt: function (t, e) {
|
|
270
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
271
|
+
var o = this.tryEntries[r];
|
|
272
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
273
|
+
var i = o;
|
|
274
274
|
break;
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
|
|
278
|
-
var
|
|
279
|
-
return
|
|
277
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
278
|
+
var a = i ? i.completion : {};
|
|
279
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
280
280
|
},
|
|
281
|
-
complete: function (
|
|
282
|
-
if ("throw" ===
|
|
283
|
-
return "break" ===
|
|
281
|
+
complete: function (t, e) {
|
|
282
|
+
if ("throw" === t.type) throw t.arg;
|
|
283
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
284
284
|
},
|
|
285
|
-
finish: function (
|
|
286
|
-
for (var
|
|
287
|
-
var
|
|
288
|
-
if (
|
|
285
|
+
finish: function (t) {
|
|
286
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
287
|
+
var r = this.tryEntries[e];
|
|
288
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
289
289
|
}
|
|
290
290
|
},
|
|
291
|
-
catch: function (
|
|
292
|
-
for (var
|
|
293
|
-
var
|
|
294
|
-
if (
|
|
295
|
-
var
|
|
296
|
-
if ("throw" ===
|
|
297
|
-
var
|
|
298
|
-
resetTryEntry(
|
|
291
|
+
catch: function (t) {
|
|
292
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
293
|
+
var r = this.tryEntries[e];
|
|
294
|
+
if (r.tryLoc === t) {
|
|
295
|
+
var n = r.completion;
|
|
296
|
+
if ("throw" === n.type) {
|
|
297
|
+
var o = n.arg;
|
|
298
|
+
resetTryEntry(r);
|
|
299
299
|
}
|
|
300
|
-
return
|
|
300
|
+
return o;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
throw new Error("illegal catch attempt");
|
|
304
304
|
},
|
|
305
|
-
delegateYield: function (
|
|
305
|
+
delegateYield: function (e, r, n) {
|
|
306
306
|
return this.delegate = {
|
|
307
|
-
iterator: values(
|
|
308
|
-
resultName:
|
|
309
|
-
nextLoc:
|
|
310
|
-
}, "next" === this.method && (this.arg =
|
|
307
|
+
iterator: values(e),
|
|
308
|
+
resultName: r,
|
|
309
|
+
nextLoc: n
|
|
310
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
311
311
|
}
|
|
312
|
-
},
|
|
312
|
+
}, e;
|
|
313
313
|
}
|
|
314
314
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
315
315
|
try {
|
|
@@ -400,7 +400,11 @@ function _construct(Parent, args, Class) {
|
|
|
400
400
|
return _construct.apply(null, arguments);
|
|
401
401
|
}
|
|
402
402
|
function _isNativeFunction(fn) {
|
|
403
|
-
|
|
403
|
+
try {
|
|
404
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
405
|
+
} catch (e) {
|
|
406
|
+
return typeof fn === "function";
|
|
407
|
+
}
|
|
404
408
|
}
|
|
405
409
|
function _wrapNativeSuper(Class) {
|
|
406
410
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
@@ -1219,7 +1223,7 @@ var Dstore = /*#__PURE__*/function () {
|
|
|
1219
1223
|
filterSpec = _step3.value;
|
|
1220
1224
|
assertateDebug.assertIsObject(filterSpec);
|
|
1221
1225
|
// @ts-ignore
|
|
1222
|
-
q.filter.
|
|
1226
|
+
q.filter(_construct(datastore.PropertyFilter, filterSpec));
|
|
1223
1227
|
}
|
|
1224
1228
|
for (_iterator4 = _createForOfIteratorHelperLoose(ordering); !(_step4 = _iterator4()).done;) {
|
|
1225
1229
|
orderField = _step4.value;
|
|
@@ -1388,7 +1392,7 @@ var Dstore = /*#__PURE__*/function () {
|
|
|
1388
1392
|
var DstoreError = /*#__PURE__*/function (_Error) {
|
|
1389
1393
|
_inheritsLoose(DstoreError, _Error);
|
|
1390
1394
|
function DstoreError(message, originalError, extensions) {
|
|
1391
|
-
var _this2$stack, _originalError$stack,
|
|
1395
|
+
var _this2$stack, _originalError$stack, _this2$stack2;
|
|
1392
1396
|
var _this2;
|
|
1393
1397
|
_this2 = _Error.call(this, message + ": " + (originalError == null ? void 0 : originalError.message)) || this;
|
|
1394
1398
|
// if no name provided, use the default. defineProperty ensures that it stays non-enumerable
|
|
@@ -1402,7 +1406,7 @@ var DstoreError = /*#__PURE__*/function (_Error) {
|
|
|
1402
1406
|
// metadata: Metadata { internalRepr: Map(0) {}, options: {} },
|
|
1403
1407
|
_this2.originalError = originalError;
|
|
1404
1408
|
_this2.extensions = _extends({}, extensions);
|
|
1405
|
-
_this2.stack = (((_this2$stack = _this2.stack) == null ? void 0 : _this2$stack.split('\n')[0]) || '') + '\n' + ((originalError == null
|
|
1409
|
+
_this2.stack = (((_this2$stack = _this2.stack) == null ? void 0 : _this2$stack.split('\n')[0]) || '') + '\n' + ((originalError == null || (_originalError$stack = originalError.stack) == null || (_originalError$stack = _originalError$stack.split('\n')) == null || (_originalError$stack = _originalError$stack.slice(1)) == null ? void 0 : _originalError$stack.join('\n')) || '') + '\n' + (((_this2$stack2 = _this2.stack) == null || (_this2$stack2 = _this2$stack2.split('\n')) == null || (_this2$stack2 = _this2$stack2.slice(1)) == null ? void 0 : _this2$stack2.join('\n')) || '');
|
|
1406
1410
|
// These are usually present on Datastore Errors
|
|
1407
1411
|
// logger.error({ err: originalError, extensions }, message);
|
|
1408
1412
|
return _this2;
|