dexie 4.0.1-beta.5 → 4.0.1-beta.6
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/README.md +3 -0
- package/dist/dexie.d.ts +1 -1
- package/dist/dexie.js +10 -21
- package/dist/dexie.js.map +1 -1
- package/dist/dexie.min.js +1 -1
- package/dist/dexie.min.js.map +1 -1
- package/dist/dexie.mjs +10 -21
- package/dist/dexie.mjs.map +1 -1
- package/dist/modern/dexie.min.mjs +1 -1
- package/dist/modern/dexie.min.mjs.map +1 -1
- package/dist/modern/dexie.mjs +3 -14
- package/dist/modern/dexie.mjs.map +1 -1
- package/import-wrapper-prod.mjs +2 -2
- package/import-wrapper.mjs +2 -2
- package/package.json +4 -4
- package/tunnel.pid +1 -0
package/README.md
CHANGED
|
@@ -250,6 +250,9 @@ Watch
|
|
|
250
250
|
pnpm run watch
|
|
251
251
|
```
|
|
252
252
|
|
|
253
|
+
<br/>
|
|
254
|
+
|
|
255
|
+
[](https://www.lambdatest.com/)
|
|
253
256
|
|
|
254
257
|
[npm-image]: https://img.shields.io/npm/v/dexie.svg?style=flat
|
|
255
258
|
[npm-url]: https://npmjs.org/package/dexie
|
package/dist/dexie.d.ts
CHANGED
package/dist/dexie.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* By David Fahlander, david.fahlander@gmail.com
|
|
6
6
|
*
|
|
7
|
-
* Version 4.0.1-beta.
|
|
7
|
+
* Version 4.0.1-beta.6, Mon Dec 18 2023
|
|
8
8
|
*
|
|
9
9
|
* https://dexie.org
|
|
10
10
|
*
|
|
@@ -1083,7 +1083,7 @@
|
|
|
1083
1083
|
psd.ref = 0;
|
|
1084
1084
|
psd.global = false;
|
|
1085
1085
|
psd.id = ++zone_id_counter;
|
|
1086
|
-
|
|
1086
|
+
globalPSD.env;
|
|
1087
1087
|
psd.env = patchGlobalPromise ? {
|
|
1088
1088
|
Promise: DexiePromise,
|
|
1089
1089
|
PromiseProp: { value: DexiePromise, configurable: true, writable: true },
|
|
@@ -1093,8 +1093,6 @@
|
|
|
1093
1093
|
any: DexiePromise.any,
|
|
1094
1094
|
resolve: DexiePromise.resolve,
|
|
1095
1095
|
reject: DexiePromise.reject,
|
|
1096
|
-
nthen: getPatchedPromiseThen(globalEnv.nthen, psd),
|
|
1097
|
-
gthen: getPatchedPromiseThen(globalEnv.gthen, psd)
|
|
1098
1096
|
} : {};
|
|
1099
1097
|
if (props)
|
|
1100
1098
|
extend(psd, props);
|
|
@@ -1162,20 +1160,18 @@
|
|
|
1162
1160
|
if (currentZone === globalPSD)
|
|
1163
1161
|
globalPSD.env = snapShot();
|
|
1164
1162
|
if (patchGlobalPromise) {
|
|
1165
|
-
var
|
|
1163
|
+
var GlobalPromise = globalPSD.env.Promise;
|
|
1166
1164
|
var targetEnv = targetZone.env;
|
|
1167
|
-
nativePromiseProto.then = targetEnv.nthen;
|
|
1168
|
-
GlobalPromise_1.prototype.then = targetEnv.gthen;
|
|
1169
1165
|
if (currentZone.global || targetZone.global) {
|
|
1170
1166
|
Object.defineProperty(_global, 'Promise', targetEnv.PromiseProp);
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1167
|
+
GlobalPromise.all = targetEnv.all;
|
|
1168
|
+
GlobalPromise.race = targetEnv.race;
|
|
1169
|
+
GlobalPromise.resolve = targetEnv.resolve;
|
|
1170
|
+
GlobalPromise.reject = targetEnv.reject;
|
|
1175
1171
|
if (targetEnv.allSettled)
|
|
1176
|
-
|
|
1172
|
+
GlobalPromise.allSettled = targetEnv.allSettled;
|
|
1177
1173
|
if (targetEnv.any)
|
|
1178
|
-
|
|
1174
|
+
GlobalPromise.any = targetEnv.any;
|
|
1179
1175
|
}
|
|
1180
1176
|
}
|
|
1181
1177
|
}
|
|
@@ -1190,8 +1186,6 @@
|
|
|
1190
1186
|
any: GlobalPromise.any,
|
|
1191
1187
|
resolve: GlobalPromise.resolve,
|
|
1192
1188
|
reject: GlobalPromise.reject,
|
|
1193
|
-
nthen: nativePromiseProto.then,
|
|
1194
|
-
gthen: GlobalPromise.prototype.then
|
|
1195
1189
|
} : {};
|
|
1196
1190
|
}
|
|
1197
1191
|
function usePSD(psd, fn, a1, a2, a3) {
|
|
@@ -1220,11 +1214,6 @@
|
|
|
1220
1214
|
}
|
|
1221
1215
|
};
|
|
1222
1216
|
}
|
|
1223
|
-
function getPatchedPromiseThen(origThen, zone) {
|
|
1224
|
-
return function (onResolved, onRejected) {
|
|
1225
|
-
return origThen.call(this, nativeAwaitCompatibleWrap(onResolved, zone), nativeAwaitCompatibleWrap(onRejected, zone));
|
|
1226
|
-
};
|
|
1227
|
-
}
|
|
1228
1217
|
function execInGlobalContext(cb) {
|
|
1229
1218
|
if (Promise === NativePromise && task.echoes === 0) {
|
|
1230
1219
|
if (zoneEchoes === 0) {
|
|
@@ -1282,7 +1271,7 @@
|
|
|
1282
1271
|
}
|
|
1283
1272
|
}
|
|
1284
1273
|
|
|
1285
|
-
var DEXIE_VERSION = '4.0.1-beta.
|
|
1274
|
+
var DEXIE_VERSION = '4.0.1-beta.6';
|
|
1286
1275
|
var maxString = String.fromCharCode(65535);
|
|
1287
1276
|
var minKey = -Infinity;
|
|
1288
1277
|
var INVALID_KEY_ARGUMENT = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.";
|