sanity 5.30.1-next.2 → 5.30.1-next.3
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 +11 -7
- package/lib/index.js.map +1 -1
- package/package.json +14 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version = "5.30.1-next.
|
|
1
|
+
var version = "5.30.1-next.3+8998c652d3";
|
|
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.30.1-next.
|
|
10
|
+
"5.30.1-next.3+8998c652d3";
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
const SANITY_VERSION = buildVersion || `${version}-dev`;
|
package/lib/index.js
CHANGED
|
@@ -38593,13 +38593,17 @@ function resolveAssetPolicyLoader(client, libraryId) {
|
|
|
38593
38593
|
const existingLoader = loaders.get(libraryId);
|
|
38594
38594
|
if (existingLoader)
|
|
38595
38595
|
return existingLoader;
|
|
38596
|
-
const mediaLibraryClient = createMediaLibraryClient(client, libraryId), loader = new DataLoader(
|
|
38597
|
-
assetIds
|
|
38598
|
-
|
|
38599
|
-
|
|
38600
|
-
|
|
38601
|
-
|
|
38602
|
-
|
|
38596
|
+
const mediaLibraryClient = createMediaLibraryClient(client, libraryId), loader = new DataLoader(
|
|
38597
|
+
(assetIds) => fetchAccessPoliciesBatch({
|
|
38598
|
+
assetIds,
|
|
38599
|
+
client: mediaLibraryClient,
|
|
38600
|
+
libraryId
|
|
38601
|
+
}),
|
|
38602
|
+
{
|
|
38603
|
+
cache: !1
|
|
38604
|
+
}
|
|
38605
|
+
// only batch per tick, rely on QuickLRU for caching
|
|
38606
|
+
);
|
|
38603
38607
|
return loaders.set(libraryId, loader), loader;
|
|
38604
38608
|
}
|
|
38605
38609
|
function enqueueAssetAccessPolicyFetch(assetRef, client) {
|