@inf-monkeys-tech/monkeys 1.1.8 → 1.1.9

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/esm/index.mjs CHANGED
@@ -22263,13 +22263,17 @@ var requireDependencies = (snapshot, required) => {
22263
22263
  }
22264
22264
  }
22265
22265
  };
22266
- var assertDependencyScopes = (snapshot, scope) => snapshot.forEach(
22267
- (dependency, index) => assertTenantCompatible(
22268
- dependency.revisionRef,
22266
+ var assertDependencyScopes = (snapshot, scope, allowedForeignReferences = /* @__PURE__ */ new Set()) => snapshot.forEach((dependency, index) => {
22267
+ const reference = dependency.revisionRef;
22268
+ const foreign = reference.visibility === "tenant" && scopeKey(reference.tenantScope) !== scopeKey(scope);
22269
+ if (foreign && allowedForeignReferences.has(revisionRefKey(reference)))
22270
+ return;
22271
+ assertTenantCompatible(
22272
+ reference,
22269
22273
  scope,
22270
22274
  `dependencySnapshot[${index}].revisionRef`
22271
- )
22272
- );
22275
+ );
22276
+ });
22273
22277
  var requireReleaseReady = (release) => {
22274
22278
  if (release.operation === "deactivate") {
22275
22279
  throw new DeclarativeControlCompilationError(
@@ -24364,7 +24368,11 @@ var compileNavigationRuntimeBundle = (input) => {
24364
24368
  release.dependencySnapshot,
24365
24369
  navigationDependencies(navigation, release, compilerRevisionRef)
24366
24370
  );
24367
- assertDependencyScopes(release.dependencySnapshot, scope);
24371
+ assertDependencyScopes(
24372
+ release.dependencySnapshot,
24373
+ scope,
24374
+ verifiedKernelPageReferenceKeys
24375
+ );
24368
24376
  const targetRegistry = input.targetRegistry.map((registration, index) => {
24369
24377
  const common = {
24370
24378
  stableTargetRef: StableRefSchema.parse(registration.stableTargetRef),