sanity 5.25.2-next.4 → 5.26.0-next.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/lib/_chunks-es/version.js +2 -2
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version = "5.
|
|
1
|
+
var version = "5.26.0-next.6";
|
|
2
2
|
let buildVersion;
|
|
3
3
|
try {
|
|
4
4
|
buildVersion = process.env.PKG_BUILD_VERSION;
|
|
@@ -7,7 +7,7 @@ try {
|
|
|
7
7
|
try {
|
|
8
8
|
buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
|
|
9
9
|
// and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
|
|
10
|
-
"5.
|
|
10
|
+
"5.26.0-next.6";
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
const SANITY_VERSION = buildVersion || `${version}-dev`;
|
package/lib/index.js
CHANGED
|
@@ -36932,7 +36932,7 @@ function observePaths(value, paths, observeFields, apiConfig, perspective) {
|
|
|
36932
36932
|
});
|
|
36933
36933
|
const next = Object.keys(leads).reduce((res, head) => {
|
|
36934
36934
|
const tails = leads[head].filter((tail) => tail.length > 0);
|
|
36935
|
-
return tails.length === 0 ? res[head] = isRecord$4(value) ? value[head] : void 0 : res[head] = observePaths(value[head], tails, observeFields, apiConfig, perspective), res;
|
|
36935
|
+
return tails.length === 0 ? res[head] = isRecord$4(value) || Array.isArray(value) ? value[head] : void 0 : res[head] = observePaths(value[head], tails, observeFields, apiConfig, perspective), res;
|
|
36936
36936
|
}, currentValue);
|
|
36937
36937
|
return of(next).pipe(props({
|
|
36938
36938
|
wait: !0
|