@tanstack/query-devtools 5.0.0-alpha.82 → 5.0.0-alpha.83
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/cjs/{Devtools-a3544476.cjs → Devtools-db0a46c4.cjs} +26 -7
- package/dist/cjs/Devtools-db0a46c4.cjs.map +1 -0
- package/dist/cjs/{index-75214373.cjs → index-ac83639f.cjs} +2 -2
- package/dist/cjs/{index-75214373.cjs.map → index-ac83639f.cjs.map} +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/{Devtools-370ac576.js → Devtools-5d9adcd8.js} +26 -7
- package/dist/esm/Devtools-5d9adcd8.js.map +1 -0
- package/dist/esm/{index-9cbc91c2.js → index-339c169d.js} +2 -2
- package/dist/esm/{index-9cbc91c2.js.map → index-339c169d.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/Devtools-a3544476.cjs.map +0 -1
- package/dist/esm/Devtools-370ac576.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-ac83639f.cjs');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* match-sorter-utils
|
|
@@ -3042,7 +3042,7 @@ var isPlainObject$1 = function (payload) {
|
|
|
3042
3042
|
if (typeof payload !== 'object' || payload === null) return false;
|
|
3043
3043
|
if (payload === Object.prototype) return false;
|
|
3044
3044
|
if (Object.getPrototypeOf(payload) === null) return true;
|
|
3045
|
-
return
|
|
3045
|
+
return Object.getPrototypeOf(payload) === Object.prototype;
|
|
3046
3046
|
};
|
|
3047
3047
|
var isEmptyObject = function (payload) {
|
|
3048
3048
|
return isPlainObject$1(payload) && Object.keys(payload).length === 0;
|
|
@@ -3393,9 +3393,26 @@ function validatePath(path) {
|
|
|
3393
3393
|
}
|
|
3394
3394
|
var getDeep = function (object, path) {
|
|
3395
3395
|
validatePath(path);
|
|
3396
|
-
path.
|
|
3397
|
-
|
|
3398
|
-
|
|
3396
|
+
for (var i = 0; i < path.length; i++) {
|
|
3397
|
+
var key = path[i];
|
|
3398
|
+
if (isSet(object)) {
|
|
3399
|
+
object = getNthKey(object, +key);
|
|
3400
|
+
} else if (isMap(object)) {
|
|
3401
|
+
var row = +key;
|
|
3402
|
+
var type = +path[++i] === 0 ? 'key' : 'value';
|
|
3403
|
+
var keyOfRow = getNthKey(object, row);
|
|
3404
|
+
switch (type) {
|
|
3405
|
+
case 'key':
|
|
3406
|
+
object = keyOfRow;
|
|
3407
|
+
break;
|
|
3408
|
+
case 'value':
|
|
3409
|
+
object = object.get(keyOfRow);
|
|
3410
|
+
break;
|
|
3411
|
+
}
|
|
3412
|
+
} else {
|
|
3413
|
+
object = object[key];
|
|
3414
|
+
}
|
|
3415
|
+
}
|
|
3399
3416
|
return object;
|
|
3400
3417
|
};
|
|
3401
3418
|
var setDeep = function (object, path, mapper) {
|
|
@@ -3433,7 +3450,9 @@ var setDeep = function (object, path, mapper) {
|
|
|
3433
3450
|
}
|
|
3434
3451
|
}
|
|
3435
3452
|
var lastKey = path[path.length - 1];
|
|
3436
|
-
if (isArray$1(parent)
|
|
3453
|
+
if (isArray$1(parent)) {
|
|
3454
|
+
parent[+lastKey] = mapper(parent[+lastKey]);
|
|
3455
|
+
} else if (isPlainObject$1(parent)) {
|
|
3437
3456
|
parent[lastKey] = mapper(parent[lastKey]);
|
|
3438
3457
|
}
|
|
3439
3458
|
if (isSet(parent)) {
|
|
@@ -6744,4 +6763,4 @@ exports.QueryRow = QueryRow;
|
|
|
6744
6763
|
exports.QueryStatus = QueryStatus;
|
|
6745
6764
|
exports.QueryStatusCount = QueryStatusCount;
|
|
6746
6765
|
exports.default = DevtoolsComponent;
|
|
6747
|
-
//# sourceMappingURL=Devtools-
|
|
6766
|
+
//# sourceMappingURL=Devtools-db0a46c4.cjs.map
|