dexie-cloud-addon 4.0.0-beta.13 → 4.0.0-beta.14
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/modern/dexie-cloud-addon.js +56 -15
- package/dist/modern/dexie-cloud-addon.js.map +1 -1
- package/dist/modern/dexie-cloud-addon.min.js +1 -1
- package/dist/modern/dexie-cloud-addon.min.js.map +1 -1
- package/dist/modern/service-worker.js +54 -12
- package/dist/modern/service-worker.js.map +1 -1
- package/dist/modern/service-worker.min.js +1 -1
- package/dist/modern/service-worker.min.js.map +1 -1
- package/dist/module-es5/dexie-cloud-addon.js +13 -15
- package/dist/module-es5/dexie-cloud-addon.js.map +1 -1
- package/dist/module-es5/dexie-cloud-addon.min.js +1 -1
- package/dist/module-es5/dexie-cloud-addon.min.js.map +1 -1
- package/dist/types/Invite.d.ts +1 -1
- package/dist/types/dexie-cloud-client.d.ts +1 -0
- package/dist/umd/dexie-cloud-addon.js +33 -34
- package/dist/umd/dexie-cloud-addon.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.min.js +1 -1
- package/dist/umd/dexie-cloud-addon.min.js.map +1 -1
- package/dist/umd/service-worker.js +77 -35
- package/dist/umd/service-worker.js.map +1 -1
- package/dist/umd/service-worker.min.js +1 -1
- package/dist/umd/service-worker.min.js.map +1 -1
- package/dist/umd-modern/dexie-cloud-addon.js +74 -32
- package/dist/umd-modern/dexie-cloud-addon.js.map +1 -1
- package/package.json +5 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('dexie'), require('rxjs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['dexie', 'rxjs'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Dexie, global.rxjs));
|
|
5
|
-
}(this, (function (Dexie, rxjs) { 'use strict';
|
|
5
|
+
})(this, (function (Dexie, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -447,10 +447,12 @@
|
|
|
447
447
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
448
448
|
args[_i] = arguments[_i];
|
|
449
449
|
}
|
|
450
|
-
|
|
450
|
+
var delegate = timeoutProvider.delegate;
|
|
451
|
+
return ((delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) || setTimeout).apply(void 0, __spreadArray([], __read(args)));
|
|
451
452
|
},
|
|
452
453
|
clearTimeout: function (handle) {
|
|
453
|
-
|
|
454
|
+
var delegate = timeoutProvider.delegate;
|
|
455
|
+
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
|
|
454
456
|
},
|
|
455
457
|
delegate: undefined,
|
|
456
458
|
};
|
|
@@ -465,11 +467,33 @@
|
|
|
465
467
|
|
|
466
468
|
function noop() { }
|
|
467
469
|
|
|
470
|
+
var COMPLETE_NOTIFICATION = (function () { return createNotification('C', undefined, undefined); })();
|
|
471
|
+
function errorNotification(error) {
|
|
472
|
+
return createNotification('E', undefined, error);
|
|
473
|
+
}
|
|
474
|
+
function nextNotification(value) {
|
|
475
|
+
return createNotification('N', value, undefined);
|
|
476
|
+
}
|
|
477
|
+
function createNotification(kind, value, error) {
|
|
478
|
+
return {
|
|
479
|
+
kind: kind,
|
|
480
|
+
value: value,
|
|
481
|
+
error: error,
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
var context = null;
|
|
468
486
|
function errorContext(cb) {
|
|
469
487
|
{
|
|
470
488
|
cb();
|
|
471
489
|
}
|
|
472
490
|
}
|
|
491
|
+
function captureError(err) {
|
|
492
|
+
if (config.useDeprecatedSynchronousErrorHandling && context) {
|
|
493
|
+
context.errorThrown = true;
|
|
494
|
+
context.error = err;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
473
497
|
|
|
474
498
|
var Subscriber = (function (_super) {
|
|
475
499
|
__extends(Subscriber, _super);
|
|
@@ -491,20 +515,26 @@
|
|
|
491
515
|
return new SafeSubscriber(next, error, complete);
|
|
492
516
|
};
|
|
493
517
|
Subscriber.prototype.next = function (value) {
|
|
494
|
-
if (this.isStopped)
|
|
518
|
+
if (this.isStopped) {
|
|
519
|
+
handleStoppedNotification(nextNotification(value), this);
|
|
520
|
+
}
|
|
495
521
|
else {
|
|
496
522
|
this._next(value);
|
|
497
523
|
}
|
|
498
524
|
};
|
|
499
525
|
Subscriber.prototype.error = function (err) {
|
|
500
|
-
if (this.isStopped)
|
|
526
|
+
if (this.isStopped) {
|
|
527
|
+
handleStoppedNotification(errorNotification(err), this);
|
|
528
|
+
}
|
|
501
529
|
else {
|
|
502
530
|
this.isStopped = true;
|
|
503
531
|
this._error(err);
|
|
504
532
|
}
|
|
505
533
|
};
|
|
506
534
|
Subscriber.prototype.complete = function () {
|
|
507
|
-
if (this.isStopped)
|
|
535
|
+
if (this.isStopped) {
|
|
536
|
+
handleStoppedNotification(COMPLETE_NOTIFICATION, this);
|
|
537
|
+
}
|
|
508
538
|
else {
|
|
509
539
|
this.isStopped = true;
|
|
510
540
|
this._complete();
|
|
@@ -579,7 +609,10 @@
|
|
|
579
609
|
handler.apply(void 0, __spreadArray([], __read(args)));
|
|
580
610
|
}
|
|
581
611
|
catch (err) {
|
|
582
|
-
{
|
|
612
|
+
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
613
|
+
captureError(err);
|
|
614
|
+
}
|
|
615
|
+
else {
|
|
583
616
|
reportUnhandledError(err);
|
|
584
617
|
}
|
|
585
618
|
}
|
|
@@ -588,6 +621,10 @@
|
|
|
588
621
|
function defaultErrorHandler(err) {
|
|
589
622
|
throw err;
|
|
590
623
|
}
|
|
624
|
+
function handleStoppedNotification(notification, subscriber) {
|
|
625
|
+
var onStoppedNotification = config.onStoppedNotification;
|
|
626
|
+
onStoppedNotification && timeoutProvider.setTimeout(function () { return onStoppedNotification(notification, subscriber); });
|
|
627
|
+
}
|
|
591
628
|
var EMPTY_OBSERVER = {
|
|
592
629
|
closed: true,
|
|
593
630
|
next: noop,
|
|
@@ -963,10 +1000,12 @@
|
|
|
963
1000
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
964
1001
|
args[_i] = arguments[_i];
|
|
965
1002
|
}
|
|
966
|
-
|
|
1003
|
+
var delegate = intervalProvider.delegate;
|
|
1004
|
+
return ((delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) || setInterval).apply(void 0, __spreadArray([], __read(args)));
|
|
967
1005
|
},
|
|
968
1006
|
clearInterval: function (handle) {
|
|
969
|
-
|
|
1007
|
+
var delegate = intervalProvider.delegate;
|
|
1008
|
+
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);
|
|
970
1009
|
},
|
|
971
1010
|
delegate: undefined,
|
|
972
1011
|
};
|
|
@@ -1055,7 +1094,7 @@
|
|
|
1055
1094
|
|
|
1056
1095
|
var dateTimestampProvider = {
|
|
1057
1096
|
now: function () {
|
|
1058
|
-
return (Date).now();
|
|
1097
|
+
return (dateTimestampProvider.delegate || Date).now();
|
|
1059
1098
|
},
|
|
1060
1099
|
delegate: undefined,
|
|
1061
1100
|
};
|
|
@@ -2174,16 +2213,19 @@
|
|
|
2174
2213
|
}
|
|
2175
2214
|
|
|
2176
2215
|
function interactWithUser(userInteraction, req) {
|
|
2216
|
+
let done = false;
|
|
2177
2217
|
return new Promise((resolve, reject) => {
|
|
2178
2218
|
const interactionProps = {
|
|
2179
2219
|
...req,
|
|
2180
2220
|
onSubmit: (res) => {
|
|
2181
2221
|
userInteraction.next(undefined);
|
|
2222
|
+
done = true;
|
|
2182
2223
|
resolve(res);
|
|
2183
2224
|
},
|
|
2184
2225
|
onCancel: () => {
|
|
2185
2226
|
userInteraction.next(undefined);
|
|
2186
|
-
|
|
2227
|
+
done = true;
|
|
2228
|
+
reject(new Dexie__default["default"].AbortError("User cancelled"));
|
|
2187
2229
|
},
|
|
2188
2230
|
};
|
|
2189
2231
|
userInteraction.next(interactionProps);
|
|
@@ -2963,7 +3005,7 @@
|
|
|
2963
3005
|
const rewrittenKey = JSON.stringify(key);
|
|
2964
3006
|
mutClone.keys[keyIndex] = rewrittenKey;
|
|
2965
3007
|
if (rewriteValues) {
|
|
2966
|
-
Dexie__default[
|
|
3008
|
+
Dexie__default["default"].setByKeyPath(mutClone.values[keyIndex], primaryKey.keyPath, rewrittenKey);
|
|
2967
3009
|
}
|
|
2968
3010
|
}
|
|
2969
3011
|
else if (key[0] === '#') {
|
|
@@ -2976,7 +3018,7 @@
|
|
|
2976
3018
|
const rewrittenKey = `${key}:${currentUser.userId}`;
|
|
2977
3019
|
mutClone.keys[keyIndex] = rewrittenKey;
|
|
2978
3020
|
if (rewriteValues) {
|
|
2979
|
-
Dexie__default[
|
|
3021
|
+
Dexie__default["default"].setByKeyPath(mutClone.values[keyIndex], primaryKey.keyPath, rewrittenKey);
|
|
2980
3022
|
}
|
|
2981
3023
|
}
|
|
2982
3024
|
});
|
|
@@ -3091,7 +3133,7 @@
|
|
|
3091
3133
|
|
|
3092
3134
|
function throwIfCancelled(cancelToken) {
|
|
3093
3135
|
if (cancelToken?.cancelled)
|
|
3094
|
-
throw new Dexie__default[
|
|
3136
|
+
throw new Dexie__default["default"].AbortError(`Operation was cancelled`);
|
|
3095
3137
|
}
|
|
3096
3138
|
|
|
3097
3139
|
/* Need this because navigator.onLine seems to say "false" when it is actually online.
|
|
@@ -3137,7 +3179,7 @@
|
|
|
3137
3179
|
}
|
|
3138
3180
|
}
|
|
3139
3181
|
else {
|
|
3140
|
-
Dexie__default[
|
|
3182
|
+
Dexie__default["default"].setByKeyPath(obj, keyPath, value);
|
|
3141
3183
|
}
|
|
3142
3184
|
}
|
|
3143
3185
|
resultKeys.push(key);
|
|
@@ -3150,7 +3192,7 @@
|
|
|
3150
3192
|
}
|
|
3151
3193
|
|
|
3152
3194
|
async function applyServerChanges(changes, db) {
|
|
3153
|
-
console.debug('Applying server changes', changes, Dexie__default[
|
|
3195
|
+
console.debug('Applying server changes', changes, Dexie__default["default"].currentTransaction);
|
|
3154
3196
|
for (const { table: tableName, muts } of changes) {
|
|
3155
3197
|
const table = db.table(tableName);
|
|
3156
3198
|
if (!table)
|
|
@@ -3187,7 +3229,7 @@
|
|
|
3187
3229
|
else {
|
|
3188
3230
|
keys.forEach((key, i) => {
|
|
3189
3231
|
// Make sure inbound keys are consistent
|
|
3190
|
-
Dexie__default[
|
|
3232
|
+
Dexie__default["default"].setByKeyPath(mut.values[i], primaryKey.keyPath, key);
|
|
3191
3233
|
});
|
|
3192
3234
|
await table.bulkAdd(mut.values);
|
|
3193
3235
|
}
|
|
@@ -3199,7 +3241,7 @@
|
|
|
3199
3241
|
else {
|
|
3200
3242
|
keys.forEach((key, i) => {
|
|
3201
3243
|
// Make sure inbound keys are consistent
|
|
3202
|
-
Dexie__default[
|
|
3244
|
+
Dexie__default["default"].setByKeyPath(mut.values[i], primaryKey.keyPath, key);
|
|
3203
3245
|
});
|
|
3204
3246
|
await table.bulkPut(mut.values);
|
|
3205
3247
|
}
|
|
@@ -3648,7 +3690,7 @@
|
|
|
3648
3690
|
return; // Ignore message
|
|
3649
3691
|
}
|
|
3650
3692
|
// Verify also that the message is based on the exact same set of realms
|
|
3651
|
-
const ourRealmSetHash = await Dexie__default[
|
|
3693
|
+
const ourRealmSetHash = await Dexie__default["default"].waitFor(
|
|
3652
3694
|
// Keep TX in non-IDB work
|
|
3653
3695
|
computeRealmSetHash(syncState));
|
|
3654
3696
|
console.debug('ourRealmSetHash', ourRealmSetHash);
|
|
@@ -4038,7 +4080,7 @@
|
|
|
4038
4080
|
const IS_SERVICE_WORKER = typeof self !== "undefined" && "clients" in self && !self.document;
|
|
4039
4081
|
|
|
4040
4082
|
function throwVersionIncrementNeeded() {
|
|
4041
|
-
throw new Dexie__default[
|
|
4083
|
+
throw new Dexie__default["default"].SchemaError(`Version increment needed to allow dexie-cloud change tracking`);
|
|
4042
4084
|
}
|
|
4043
4085
|
|
|
4044
4086
|
const { toString } = {};
|
|
@@ -4155,14 +4197,14 @@
|
|
|
4155
4197
|
if (!table.schema.primaryKey.outbound) {
|
|
4156
4198
|
if (!valueClones)
|
|
4157
4199
|
valueClones = req.values.slice();
|
|
4158
|
-
valueClones[idx] = Dexie__default[
|
|
4159
|
-
Dexie__default[
|
|
4200
|
+
valueClones[idx] = Dexie__default["default"].deepClone(valueClones[idx]);
|
|
4201
|
+
Dexie__default["default"].setByKeyPath(valueClones[idx], table.schema.primaryKey.keyPath, keys[idx]);
|
|
4160
4202
|
}
|
|
4161
4203
|
}
|
|
4162
4204
|
else if (typeof key !== 'string' ||
|
|
4163
4205
|
(!key.startsWith(idPrefix) && !key.startsWith('#' + idPrefix))) {
|
|
4164
4206
|
// Key was specified by caller. Verify it complies with id prefix.
|
|
4165
|
-
throw new Dexie__default[
|
|
4207
|
+
throw new Dexie__default["default"].ConstraintError(`The ID "${key}" is not valid for table "${tableName}". ` +
|
|
4166
4208
|
`Primary '@' keys requires the key to be prefixed with "${idPrefix}" (or "#${idPrefix}).\n` +
|
|
4167
4209
|
`If you want to generate IDs programmatically, remove '@' from the schema to get rid of this constraint. Dexie Cloud supports custom IDs as long as they are random and globally unique.`);
|
|
4168
4210
|
}
|
|
@@ -4192,7 +4234,7 @@
|
|
|
4192
4234
|
const type = Array.isArray(key)
|
|
4193
4235
|
? key.map(toStringTag).join(',')
|
|
4194
4236
|
: toStringTag(key);
|
|
4195
|
-
throw new Dexie__default[
|
|
4237
|
+
throw new Dexie__default["default"].ConstraintError(`Invalid primary key type ${type} for table ${tableName}. Tables marked for sync has primary keys of type string or Array of string (and optional numbers)`);
|
|
4196
4238
|
}
|
|
4197
4239
|
});
|
|
4198
4240
|
}
|
|
@@ -5181,18 +5223,18 @@
|
|
|
5181
5223
|
for (const table of db.tables) {
|
|
5182
5224
|
if (db.cloud.schema?.[table.name]?.markedForSync) {
|
|
5183
5225
|
if (table.schema.primKey.auto) {
|
|
5184
|
-
throw new Dexie__default[
|
|
5226
|
+
throw new Dexie__default["default"].SchemaError(`Table ${table.name} is both autoIncremented and synced. ` +
|
|
5185
5227
|
`Use db.cloud.configure({unsyncedTables: [${JSON.stringify(table.name)}]}) to blacklist it from sync`);
|
|
5186
5228
|
}
|
|
5187
5229
|
if (!table.schema.primKey.keyPath) {
|
|
5188
|
-
throw new Dexie__default[
|
|
5230
|
+
throw new Dexie__default["default"].SchemaError(`Table ${table.name} cannot be both synced and outbound. ` +
|
|
5189
5231
|
`Use db.cloud.configure({unsyncedTables: [${JSON.stringify(table.name)}]}) to blacklist it from sync`);
|
|
5190
5232
|
}
|
|
5191
5233
|
}
|
|
5192
5234
|
}
|
|
5193
5235
|
}
|
|
5194
5236
|
|
|
5195
|
-
var n,u$1,i$1,t$1,r$1={},f$1=[],e$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c$1(n,l){for(var u in l)n[u]=l[u];return n}function s$1(n){var l=n.parentNode;l&&l.removeChild(n);}function a$1(n,l,u){var i,t,o,r=arguments,f={};for(o in l)"key"==o?i=l[o]:"ref"==o?t=l[o]:f[o]=l[o];if(arguments.length>3)for(u=[u],o=3;o<arguments.length;o++)u.push(r[o]);if(null!=u&&(f.children=u),"function"==typeof n&&null!=n.defaultProps)for(o in n.defaultProps)void 0===f[o]&&(f[o]=n.defaultProps[o]);return v$1(n,f,i,t,null)}function v$1(l,u,i,t,o){var r={type:l,props:u,key:i,ref:t,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++n.__v:o};return null!=n.vnode&&n.vnode(r),r}function y(n){return n.children}function p$1(n,l){this.props=n,this.context=l;}function d$1(n,l){if(null==l)return n.__?d$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?d$1(n):null}function _(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return _(n)}}function k$1(l){(!l.__d&&(l.__d=!0)&&u$1.push(l)&&!b$1.__r++||t$1!==n.debounceRendering)&&((t$1=n.debounceRendering)||i$1)(b$1);}function b$1(){for(var n;b$1.__r=u$1.length;)n=u$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),u$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=c$1({},t)).__v=t.__v+1,I(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?d$1(t):o,t.__h),T(u,t),t.__e!=o&&_(t)));});}function m$1(n,l,u,i,t,o,e,c,s,a){var h,p,_,k,b,m,w,A=i&&i.__k||f$1,P=A.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$1(null,k,null,null,k):Array.isArray(k)?v$1(y,{children:k},null,null,null):k.__b>0?v$1(k.type,k.props,k.key,null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(_=A[h])||_&&k.key==_.key&&k.type===_.type)A[h]=void 0;else for(p=0;p<P;p++){if((_=A[p])&&k.key==_.key&&k.type===_.type){A[p]=void 0;break}_=null;}I(n,k,_=_||r$1,t,o,e,c,s,a),b=k.__e,(p=k.ref)&&_.ref!=p&&(w||(w=[]),_.ref&&w.push(_.ref,null,k),w.push(p,k.__c||b,k)),null!=b?(null==m&&(m=b),"function"==typeof k.type&&null!=k.__k&&k.__k===_.__k?k.__d=s=g$1(k,s,n):s=x$1(n,k,_,A,b,s),a||"option"!==u.type?"function"==typeof u.type&&(u.__d=s):n.value=""):s&&_.__e==s&&s.parentNode!=n&&(s=d$1(_));}for(u.__e=m,h=P;h--;)null!=A[h]&&("function"==typeof u.type&&null!=A[h].__e&&A[h].__e==u.__d&&(u.__d=d$1(i,h+1)),L(A[h],A[h]));if(w)for(h=0;h<w.length;h++)z(w[h],w[++h],w[++h]);}function g$1(n,l,u){var i,t;for(i=0;i<n.__k.length;i++)(t=n.__k[i])&&(t.__=n,l="function"==typeof t.type?g$1(t,l,u):x$1(u,t,t,n.__k,t.__e,l));return l}function x$1(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function A(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||C(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||C(n,o,l[o],u[o],i);}function P(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||e$1.test(l)?u:u+"px";}function C(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||P(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||P(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?H:$,o):n.removeEventListener(l,o?H:$,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function $(l){this.l[l.type+!1](n.event?n.event(l):l);}function H(l){this.l[l.type+!0](n.event?n.event(l):l);}function I(l,u,i,t,o,r,f,e,s){var a,v,h,d,_,k,b,g,w,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(s=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=n.__b)&&a(u);try{n:if("function"==typeof P){if(g=u.props,w=(a=P.contextType)&&t[a.__c],x=a?w?w.props.value:a.__:t,i.__c?b=(v=u.__c=i.__c).__=v.__E:("prototype"in P&&P.prototype.render?u.__c=v=new P(g,x):(u.__c=v=new p$1(g,x),v.constructor=P,v.render=M),w&&w.sub(v),v.props=g,v.state||(v.state={}),v.context=x,v.__n=t,h=v.__d=!0,v.__h=[]),null==v.__s&&(v.__s=v.state),null!=P.getDerivedStateFromProps&&(v.__s==v.state&&(v.__s=c$1({},v.__s)),c$1(v.__s,P.getDerivedStateFromProps(g,v.__s))),d=v.props,_=v.state,h)null==P.getDerivedStateFromProps&&null!=v.componentWillMount&&v.componentWillMount(),null!=v.componentDidMount&&v.__h.push(v.componentDidMount);else {if(null==P.getDerivedStateFromProps&&g!==d&&null!=v.componentWillReceiveProps&&v.componentWillReceiveProps(g,x),!v.__e&&null!=v.shouldComponentUpdate&&!1===v.shouldComponentUpdate(g,v.__s,x)||u.__v===i.__v){v.props=g,v.state=v.__s,u.__v!==i.__v&&(v.__d=!1),v.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),v.__h.length&&f.push(v);break n}null!=v.componentWillUpdate&&v.componentWillUpdate(g,v.__s,x),null!=v.componentDidUpdate&&v.__h.push(function(){v.componentDidUpdate(d,_,k);});}v.context=x,v.props=g,v.state=v.__s,(a=n.__r)&&a(u),v.__d=!1,v.__v=u,v.__P=l,a=v.render(v.props,v.state,v.context),v.state=v.__s,null!=v.getChildContext&&(t=c$1(c$1({},t),v.getChildContext())),h||null==v.getSnapshotBeforeUpdate||(k=v.getSnapshotBeforeUpdate(d,_)),A=null!=a&&a.type===y&&null==a.key?a.props.children:a,m$1(l,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,s),v.base=u.__e,u.__h=null,v.__h.length&&f.push(v),b&&(v.__E=v.__=null),v.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=j$1(i.__e,u,i,t,o,r,f,s);(a=n.diffed)&&a(u);}catch(l){u.__v=null,(s||null!=r)&&(u.__e=e,u.__h=!!s,r[r.indexOf(e)]=null),n.__e(l,u,i);}}function T(l,u){n.__c&&n.__c(u,l),l.some(function(u){try{l=u.__h,u.__h=[],l.some(function(n){n.call(u);});}catch(l){n.__e(l,u.__v);}});}function j$1(n,l,u,i,t,o,e,c){var a,v,h,y,p=u.props,d=l.props,_=l.type,k=0;if("svg"===_&&(t=!0),null!=o)for(;k<o.length;k++)if((a=o[k])&&(a===n||(_?a.localName==_:3==a.nodeType))){n=a,o[k]=null;break}if(null==n){if(null===_)return document.createTextNode(d);n=t?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,d.is&&d),o=null,c=!1;}if(null===_)p===d||c&&n.data===d||(n.data=d);else {if(o=o&&f$1.slice.call(n.childNodes),v=(p=u.props||r$1).dangerouslySetInnerHTML,h=d.dangerouslySetInnerHTML,!c){if(null!=o)for(p={},y=0;y<n.attributes.length;y++)p[n.attributes[y].name]=n.attributes[y].value;(h||v)&&(h&&(v&&h.__html==v.__html||h.__html===n.innerHTML)||(n.innerHTML=h&&h.__html||""));}if(A(n,d,p,t,c),h)l.__k=[];else if(k=l.props.children,m$1(n,Array.isArray(k)?k:[k],l,u,i,t&&"foreignObject"!==_,o,e,n.firstChild,c),null!=o)for(k=o.length;k--;)null!=o[k]&&s$1(o[k]);c||("value"in d&&void 0!==(k=d.value)&&(k!==n.value||"progress"===_&&!k)&&C(n,"value",k,p.value,!1),"checked"in d&&void 0!==(k=d.checked)&&k!==n.checked&&C(n,"checked",k,p.checked,!1));}return n}function z(l,u,i){try{"function"==typeof l?l(u):l.current=u;}catch(l){n.__e(l,i);}}function L(l,u,i){var t,o,r;if(n.unmount&&n.unmount(l),(t=l.ref)&&(t.current&&t.current!==l.__e||z(t,null,u)),i||"function"==typeof l.type||(i=null!=(o=l.__e)),l.__e=l.__d=void 0,null!=(t=l.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(l){n.__e(l,u);}t.base=t.__P=null;}if(t=l.__k)for(r=0;r<t.length;r++)t[r]&&L(t[r],u,i);null!=o&&s$1(o);}function M(n,l,u){return this.constructor(n,u)}function N(l,u,i){var t,o,e;n.__&&n.__(l,u),o=(t="function"==typeof i)?null:i&&i.__k||u.__k,e=[],I(u,l=(!t&&i||u).__k=a$1(y,null,[l]),o||r$1,r$1,void 0!==u.ownerSVGElement,!t&&i?[i]:o?null:u.firstChild?f$1.slice.call(u.childNodes):null,e,!t&&i?i:o?o.__e:u.firstChild,t),T(e,l);}n={__e:function(n,l){for(var u,i,t;l=l.__;)if((u=l.__c)&&!u.__)try{if((i=u.constructor)&&null!=i.getDerivedStateFromError&&(u.setState(i.getDerivedStateFromError(n)),t=u.__d),null!=u.componentDidCatch&&(u.componentDidCatch(n),t=u.__d),t)return u.__E=u}catch(l){n=l;}throw n},__v:0},p$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c$1({},this.state),"function"==typeof n&&(n=n(c$1({},u),this.props)),n&&c$1(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),k$1(this));},p$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),k$1(this));},p$1.prototype.render=y,u$1=[],i$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,b$1.__r=0
|
|
5237
|
+
var n,u$1,i$1,t$1,r$1={},f$1=[],e$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c$1(n,l){for(var u in l)n[u]=l[u];return n}function s$1(n){var l=n.parentNode;l&&l.removeChild(n);}function a$1(n,l,u){var i,t,o,r=arguments,f={};for(o in l)"key"==o?i=l[o]:"ref"==o?t=l[o]:f[o]=l[o];if(arguments.length>3)for(u=[u],o=3;o<arguments.length;o++)u.push(r[o]);if(null!=u&&(f.children=u),"function"==typeof n&&null!=n.defaultProps)for(o in n.defaultProps)void 0===f[o]&&(f[o]=n.defaultProps[o]);return v$1(n,f,i,t,null)}function v$1(l,u,i,t,o){var r={type:l,props:u,key:i,ref:t,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++n.__v:o};return null!=n.vnode&&n.vnode(r),r}function y(n){return n.children}function p$1(n,l){this.props=n,this.context=l;}function d$1(n,l){if(null==l)return n.__?d$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?d$1(n):null}function _(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return _(n)}}function k$1(l){(!l.__d&&(l.__d=!0)&&u$1.push(l)&&!b$1.__r++||t$1!==n.debounceRendering)&&((t$1=n.debounceRendering)||i$1)(b$1);}function b$1(){for(var n;b$1.__r=u$1.length;)n=u$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),u$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=c$1({},t)).__v=t.__v+1,I(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?d$1(t):o,t.__h),T(u,t),t.__e!=o&&_(t)));});}function m$1(n,l,u,i,t,o,e,c,s,a){var h,p,_,k,b,m,w,A=i&&i.__k||f$1,P=A.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$1(null,k,null,null,k):Array.isArray(k)?v$1(y,{children:k},null,null,null):k.__b>0?v$1(k.type,k.props,k.key,null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(_=A[h])||_&&k.key==_.key&&k.type===_.type)A[h]=void 0;else for(p=0;p<P;p++){if((_=A[p])&&k.key==_.key&&k.type===_.type){A[p]=void 0;break}_=null;}I(n,k,_=_||r$1,t,o,e,c,s,a),b=k.__e,(p=k.ref)&&_.ref!=p&&(w||(w=[]),_.ref&&w.push(_.ref,null,k),w.push(p,k.__c||b,k)),null!=b?(null==m&&(m=b),"function"==typeof k.type&&null!=k.__k&&k.__k===_.__k?k.__d=s=g$1(k,s,n):s=x$1(n,k,_,A,b,s),a||"option"!==u.type?"function"==typeof u.type&&(u.__d=s):n.value=""):s&&_.__e==s&&s.parentNode!=n&&(s=d$1(_));}for(u.__e=m,h=P;h--;)null!=A[h]&&("function"==typeof u.type&&null!=A[h].__e&&A[h].__e==u.__d&&(u.__d=d$1(i,h+1)),L(A[h],A[h]));if(w)for(h=0;h<w.length;h++)z(w[h],w[++h],w[++h]);}function g$1(n,l,u){var i,t;for(i=0;i<n.__k.length;i++)(t=n.__k[i])&&(t.__=n,l="function"==typeof t.type?g$1(t,l,u):x$1(u,t,t,n.__k,t.__e,l));return l}function x$1(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function A(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||C(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||C(n,o,l[o],u[o],i);}function P(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||e$1.test(l)?u:u+"px";}function C(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||P(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||P(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?H:$,o):n.removeEventListener(l,o?H:$,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function $(l){this.l[l.type+!1](n.event?n.event(l):l);}function H(l){this.l[l.type+!0](n.event?n.event(l):l);}function I(l,u,i,t,o,r,f,e,s){var a,v,h,d,_,k,b,g,w,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(s=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=n.__b)&&a(u);try{n:if("function"==typeof P){if(g=u.props,w=(a=P.contextType)&&t[a.__c],x=a?w?w.props.value:a.__:t,i.__c?b=(v=u.__c=i.__c).__=v.__E:("prototype"in P&&P.prototype.render?u.__c=v=new P(g,x):(u.__c=v=new p$1(g,x),v.constructor=P,v.render=M),w&&w.sub(v),v.props=g,v.state||(v.state={}),v.context=x,v.__n=t,h=v.__d=!0,v.__h=[]),null==v.__s&&(v.__s=v.state),null!=P.getDerivedStateFromProps&&(v.__s==v.state&&(v.__s=c$1({},v.__s)),c$1(v.__s,P.getDerivedStateFromProps(g,v.__s))),d=v.props,_=v.state,h)null==P.getDerivedStateFromProps&&null!=v.componentWillMount&&v.componentWillMount(),null!=v.componentDidMount&&v.__h.push(v.componentDidMount);else {if(null==P.getDerivedStateFromProps&&g!==d&&null!=v.componentWillReceiveProps&&v.componentWillReceiveProps(g,x),!v.__e&&null!=v.shouldComponentUpdate&&!1===v.shouldComponentUpdate(g,v.__s,x)||u.__v===i.__v){v.props=g,v.state=v.__s,u.__v!==i.__v&&(v.__d=!1),v.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),v.__h.length&&f.push(v);break n}null!=v.componentWillUpdate&&v.componentWillUpdate(g,v.__s,x),null!=v.componentDidUpdate&&v.__h.push(function(){v.componentDidUpdate(d,_,k);});}v.context=x,v.props=g,v.state=v.__s,(a=n.__r)&&a(u),v.__d=!1,v.__v=u,v.__P=l,a=v.render(v.props,v.state,v.context),v.state=v.__s,null!=v.getChildContext&&(t=c$1(c$1({},t),v.getChildContext())),h||null==v.getSnapshotBeforeUpdate||(k=v.getSnapshotBeforeUpdate(d,_)),A=null!=a&&a.type===y&&null==a.key?a.props.children:a,m$1(l,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,s),v.base=u.__e,u.__h=null,v.__h.length&&f.push(v),b&&(v.__E=v.__=null),v.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=j$1(i.__e,u,i,t,o,r,f,s);(a=n.diffed)&&a(u);}catch(l){u.__v=null,(s||null!=r)&&(u.__e=e,u.__h=!!s,r[r.indexOf(e)]=null),n.__e(l,u,i);}}function T(l,u){n.__c&&n.__c(u,l),l.some(function(u){try{l=u.__h,u.__h=[],l.some(function(n){n.call(u);});}catch(l){n.__e(l,u.__v);}});}function j$1(n,l,u,i,t,o,e,c){var a,v,h,y,p=u.props,d=l.props,_=l.type,k=0;if("svg"===_&&(t=!0),null!=o)for(;k<o.length;k++)if((a=o[k])&&(a===n||(_?a.localName==_:3==a.nodeType))){n=a,o[k]=null;break}if(null==n){if(null===_)return document.createTextNode(d);n=t?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,d.is&&d),o=null,c=!1;}if(null===_)p===d||c&&n.data===d||(n.data=d);else {if(o=o&&f$1.slice.call(n.childNodes),v=(p=u.props||r$1).dangerouslySetInnerHTML,h=d.dangerouslySetInnerHTML,!c){if(null!=o)for(p={},y=0;y<n.attributes.length;y++)p[n.attributes[y].name]=n.attributes[y].value;(h||v)&&(h&&(v&&h.__html==v.__html||h.__html===n.innerHTML)||(n.innerHTML=h&&h.__html||""));}if(A(n,d,p,t,c),h)l.__k=[];else if(k=l.props.children,m$1(n,Array.isArray(k)?k:[k],l,u,i,t&&"foreignObject"!==_,o,e,n.firstChild,c),null!=o)for(k=o.length;k--;)null!=o[k]&&s$1(o[k]);c||("value"in d&&void 0!==(k=d.value)&&(k!==n.value||"progress"===_&&!k)&&C(n,"value",k,p.value,!1),"checked"in d&&void 0!==(k=d.checked)&&k!==n.checked&&C(n,"checked",k,p.checked,!1));}return n}function z(l,u,i){try{"function"==typeof l?l(u):l.current=u;}catch(l){n.__e(l,i);}}function L(l,u,i){var t,o,r;if(n.unmount&&n.unmount(l),(t=l.ref)&&(t.current&&t.current!==l.__e||z(t,null,u)),i||"function"==typeof l.type||(i=null!=(o=l.__e)),l.__e=l.__d=void 0,null!=(t=l.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(l){n.__e(l,u);}t.base=t.__P=null;}if(t=l.__k)for(r=0;r<t.length;r++)t[r]&&L(t[r],u,i);null!=o&&s$1(o);}function M(n,l,u){return this.constructor(n,u)}function N(l,u,i){var t,o,e;n.__&&n.__(l,u),o=(t="function"==typeof i)?null:i&&i.__k||u.__k,e=[],I(u,l=(!t&&i||u).__k=a$1(y,null,[l]),o||r$1,r$1,void 0!==u.ownerSVGElement,!t&&i?[i]:o?null:u.firstChild?f$1.slice.call(u.childNodes):null,e,!t&&i?i:o?o.__e:u.firstChild,t),T(e,l);}n={__e:function(n,l){for(var u,i,t;l=l.__;)if((u=l.__c)&&!u.__)try{if((i=u.constructor)&&null!=i.getDerivedStateFromError&&(u.setState(i.getDerivedStateFromError(n)),t=u.__d),null!=u.componentDidCatch&&(u.componentDidCatch(n),t=u.__d),t)return u.__E=u}catch(l){n=l;}throw n},__v:0},p$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c$1({},this.state),"function"==typeof n&&(n=n(c$1({},u),this.props)),n&&c$1(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),k$1(this));},p$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),k$1(this));},p$1.prototype.render=y,u$1=[],i$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,b$1.__r=0;
|
|
5196
5238
|
|
|
5197
5239
|
const Styles = {
|
|
5198
5240
|
Error: {
|
|
@@ -5682,7 +5724,7 @@
|
|
|
5682
5724
|
let closed = false;
|
|
5683
5725
|
function throwIfClosed() {
|
|
5684
5726
|
if (closed)
|
|
5685
|
-
throw new Dexie__default[
|
|
5727
|
+
throw new Dexie__default["default"].DatabaseClosedError();
|
|
5686
5728
|
}
|
|
5687
5729
|
dbOnClosed(dexie, () => {
|
|
5688
5730
|
subscriptions.forEach((subscription) => subscription.unsubscribe());
|
|
@@ -5692,7 +5734,7 @@
|
|
|
5692
5734
|
currentUserEmitter.next(UNAUTHORIZED_USER);
|
|
5693
5735
|
});
|
|
5694
5736
|
dexie.cloud = {
|
|
5695
|
-
version: '4.0.0-beta.
|
|
5737
|
+
version: '4.0.0-beta.14',
|
|
5696
5738
|
options: { ...DEFAULT_OPTIONS },
|
|
5697
5739
|
schema: null,
|
|
5698
5740
|
serverState: null,
|
|
@@ -5762,7 +5804,7 @@
|
|
|
5762
5804
|
return permissions(dexie._novip, obj, tableName);
|
|
5763
5805
|
},
|
|
5764
5806
|
};
|
|
5765
|
-
dexie.Version.prototype['_parseStoresSpec'] = Dexie__default[
|
|
5807
|
+
dexie.Version.prototype['_parseStoresSpec'] = Dexie__default["default"].override(dexie.Version.prototype['_parseStoresSpec'], (origFunc) => overrideParseStoresSpec(origFunc, dexie));
|
|
5766
5808
|
dexie.Table.prototype.newId = function ({ colocateWith } = {}) {
|
|
5767
5809
|
const shardKey = colocateWith && colocateWith.substr(colocateWith.length - 3);
|
|
5768
5810
|
return generateKey(dexie.cloud.schema[this.name].idPrefix || '', shardKey);
|
|
@@ -5930,8 +5972,8 @@
|
|
|
5930
5972
|
}
|
|
5931
5973
|
}
|
|
5932
5974
|
}
|
|
5933
|
-
dexieCloud.version = '4.0.0-beta.
|
|
5934
|
-
Dexie__default[
|
|
5975
|
+
dexieCloud.version = '4.0.0-beta.14';
|
|
5976
|
+
Dexie__default["default"].Cloud = dexieCloud;
|
|
5935
5977
|
|
|
5936
5978
|
// In case the SW lives for a while, let it reuse already opened connections:
|
|
5937
5979
|
const managedDBs = new Map();
|
|
@@ -5963,7 +6005,7 @@
|
|
|
5963
6005
|
let db = managedDBs.get(dbName);
|
|
5964
6006
|
if (!db) {
|
|
5965
6007
|
console.debug('Dexie Cloud SW: Creating new Dexie instance for', dbName);
|
|
5966
|
-
const dexie = new Dexie__default[
|
|
6008
|
+
const dexie = new Dexie__default["default"](dbName, { addons: [dexieCloud] });
|
|
5967
6009
|
db = DexieCloudDB(dexie);
|
|
5968
6010
|
dexie.on('versionchange', stopManagingDB);
|
|
5969
6011
|
await db.dx.open(); // Makes sure db.cloud.options and db.cloud.schema are read from db,
|
|
@@ -6003,7 +6045,7 @@
|
|
|
6003
6045
|
// Error occured. Stop managing this DB until we wake up again by a sync event,
|
|
6004
6046
|
// which will open a new Dexie and start trying to sync it.
|
|
6005
6047
|
stopManagingDB();
|
|
6006
|
-
if (e.name !== Dexie__default[
|
|
6048
|
+
if (e.name !== Dexie__default["default"].errnames.NoSuchDatabase) {
|
|
6007
6049
|
// Unless the error was that DB doesn't exist, rethrow to trigger sync retry.
|
|
6008
6050
|
throw e; // Throw e to make syncEvent.waitUntil() receive a rejected promis, so it will retry.
|
|
6009
6051
|
}
|
|
@@ -6053,5 +6095,5 @@
|
|
|
6053
6095
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
6054
6096
|
}
|
|
6055
6097
|
|
|
6056
|
-
}))
|
|
6098
|
+
}));
|
|
6057
6099
|
//# sourceMappingURL=service-worker.js.map
|