@inertiajs/core 2.3.22 → 2.3.23
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/index.esm.js +11 -2
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +11 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/types/objectUtils.d.ts +1 -0
package/dist/index.esm.js
CHANGED
|
@@ -277,6 +277,15 @@ var getKeyFromSessionStorage = async () => {
|
|
|
277
277
|
import { cloneDeep } from "lodash-es";
|
|
278
278
|
|
|
279
279
|
// src/objectUtils.ts
|
|
280
|
+
var stripTopLevelUndefined = (obj) => {
|
|
281
|
+
const result = {};
|
|
282
|
+
for (const key of Object.keys(obj)) {
|
|
283
|
+
if (obj[key] !== void 0) {
|
|
284
|
+
result[key] = obj[key];
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return result;
|
|
288
|
+
};
|
|
280
289
|
var objectsAreEqual = (obj1, obj2, excludeKeys) => {
|
|
281
290
|
if (obj1 === obj2) {
|
|
282
291
|
return true;
|
|
@@ -2683,8 +2692,8 @@ var Router = class {
|
|
|
2683
2692
|
prefetch: false,
|
|
2684
2693
|
invalidateCacheTags: [],
|
|
2685
2694
|
viewTransition: false,
|
|
2686
|
-
...options,
|
|
2687
|
-
...configuredOptions
|
|
2695
|
+
...stripTopLevelUndefined(options),
|
|
2696
|
+
...stripTopLevelUndefined(configuredOptions)
|
|
2688
2697
|
};
|
|
2689
2698
|
const [url, _data] = transformUrlAndData(
|
|
2690
2699
|
href,
|