@module-federation/enhanced 0.18.0 → 0.18.2

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.
Files changed (36) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +25 -22
  3. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +1 -0
  4. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +22 -25
  5. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +3 -1
  6. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +3 -1
  7. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -1
  8. package/dist/src/lib/sharing/ConsumeSharedModule.js +3 -1
  9. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
  10. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +5 -2
  11. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +273 -179
  12. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  13. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +3 -0
  14. package/dist/src/lib/sharing/ProvideSharedPlugin.js +300 -42
  15. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
  16. package/dist/src/lib/sharing/SharePlugin.js +13 -3
  17. package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
  18. package/dist/src/lib/sharing/resolveMatchedConfigs.js +7 -11
  19. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
  20. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +492 -239
  21. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
  22. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +56 -0
  23. package/dist/src/schemas/container/ModuleFederationPlugin.js +60 -0
  24. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  25. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +176 -119
  26. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
  27. package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +62 -35
  28. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +65 -41
  29. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
  30. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +3 -3
  31. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +623 -530
  32. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
  33. package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +55 -35
  34. package/dist/src/schemas/sharing/ProvideSharedPlugin.js +61 -41
  35. package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
  36. package/package.json +13 -13
@@ -239,6 +239,8 @@ const t = {
239
239
  additionalProperties: !1,
240
240
  properties: {
241
241
  eager: { type: 'boolean' },
242
+ exclude: { $ref: '#/definitions/IncludeExcludeOptions' },
243
+ include: { $ref: '#/definitions/IncludeExcludeOptions' },
242
244
  import: {
243
245
  anyOf: [{ enum: [!1] }, { $ref: '#/definitions/SharedItem' }],
244
246
  },
@@ -257,6 +259,7 @@ const t = {
257
259
  singleton: { type: 'boolean' },
258
260
  strictVersion: { type: 'boolean' },
259
261
  version: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
262
+ nodeModulesReconstructedLookup: { type: 'boolean' },
260
263
  },
261
264
  },
262
265
  SharedItem: { type: 'string', minLength: 1 },
@@ -270,6 +273,29 @@ const t = {
270
273
  },
271
274
  },
272
275
  UmdNamedDefine: { type: 'boolean' },
276
+ IncludeExcludeOptions: {
277
+ type: 'object',
278
+ properties: {
279
+ request: { type: ['string', 'object'] },
280
+ version: { type: 'string' },
281
+ fallbackVersion: { type: 'string' },
282
+ },
283
+ additionalProperties: !1,
284
+ anyOf: [
285
+ { required: ['request'] },
286
+ { required: ['version'] },
287
+ { required: ['fallbackVersion'] },
288
+ ],
289
+ },
290
+ Exclude: {
291
+ type: 'object',
292
+ additionalProperties: !1,
293
+ properties: {
294
+ request: { instanceof: 'RegExp' },
295
+ version: { type: 'string' },
296
+ fallbackVersion: { type: 'string' },
297
+ },
298
+ },
273
299
  },
274
300
  type: 'object',
275
301
  additionalProperties: !1,
@@ -1376,6 +1402,8 @@ const h = {
1376
1402
  additionalProperties: !1,
1377
1403
  properties: {
1378
1404
  eager: { type: 'boolean' },
1405
+ exclude: { $ref: '#/definitions/IncludeExcludeOptions' },
1406
+ include: { $ref: '#/definitions/IncludeExcludeOptions' },
1379
1407
  import: { anyOf: [{ enum: [!1] }, { $ref: '#/definitions/SharedItem' }] },
1380
1408
  request: { type: 'string', minLength: 1 },
1381
1409
  layer: { type: 'string', minLength: 1 },
@@ -1392,223 +1420,348 @@ const h = {
1392
1420
  singleton: { type: 'boolean' },
1393
1421
  strictVersion: { type: 'boolean' },
1394
1422
  version: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
1423
+ nodeModulesReconstructedLookup: { type: 'boolean' },
1395
1424
  },
1425
+ }, b = {
1426
+ type: 'object',
1427
+ properties: {
1428
+ request: { type: ['string', 'object'] },
1429
+ version: { type: 'string' },
1430
+ fallbackVersion: { type: 'string' },
1431
+ },
1432
+ additionalProperties: !1,
1433
+ anyOf: [
1434
+ { required: ['request'] },
1435
+ { required: ['version'] },
1436
+ { required: ['fallbackVersion'] },
1437
+ ],
1396
1438
  };
1397
- function b(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: o = e, } = {}) {
1439
+ function v(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: o = e, } = {}) {
1398
1440
  let a = null, i = 0;
1399
1441
  if (0 === i) {
1400
1442
  if (!e || 'object' != typeof e || Array.isArray(e))
1401
- return (b.errors = [{ params: { type: 'object' } }]), !1;
1443
+ return (v.errors = [{ params: { type: 'object' } }]), !1;
1402
1444
  {
1403
1445
  const t = i;
1404
1446
  for (const t in e)
1405
1447
  if (!s.call(h.properties, t))
1406
- return (b.errors = [{ params: { additionalProperty: t } }]), !1;
1448
+ return (v.errors = [{ params: { additionalProperty: t } }]), !1;
1407
1449
  if (t === i) {
1408
1450
  if (void 0 !== e.eager) {
1409
1451
  const t = i;
1410
1452
  if ('boolean' != typeof e.eager)
1411
- return (b.errors = [{ params: { type: 'boolean' } }]), !1;
1453
+ return (v.errors = [{ params: { type: 'boolean' } }]), !1;
1412
1454
  var l = t === i;
1413
1455
  }
1414
1456
  else
1415
1457
  l = !0;
1416
1458
  if (l) {
1417
- if (void 0 !== e.import) {
1418
- let t = e.import;
1419
- const r = i, n = i;
1420
- let s = !1;
1421
- const o = i;
1422
- if (!1 !== t) {
1423
- const e = {
1424
- params: { allowedValues: h.properties.import.anyOf[0].enum },
1425
- };
1426
- null === a ? (a = [e]) : a.push(e), i++;
1459
+ if (void 0 !== e.exclude) {
1460
+ let t = e.exclude;
1461
+ const r = i, n = i, s = i;
1462
+ let o = !1;
1463
+ const y = i;
1464
+ if (t && 'object' == typeof t && !Array.isArray(t)) {
1465
+ let e;
1466
+ if (void 0 === t.request && (e = 'request')) {
1467
+ const t = { params: { missingProperty: e } };
1468
+ null === a ? (a = [t]) : a.push(t), i++;
1469
+ }
1427
1470
  }
1428
- var p = o === i;
1429
- if (((s = s || p), !s)) {
1471
+ var p = y === i;
1472
+ if (((o = o || p), !o)) {
1430
1473
  const e = i;
1431
- if (i == i)
1432
- if ('string' == typeof t) {
1433
- if (t.length < 1) {
1434
- const e = { params: {} };
1435
- null === a ? (a = [e]) : a.push(e), i++;
1436
- }
1474
+ if (t && 'object' == typeof t && !Array.isArray(t)) {
1475
+ let e;
1476
+ if (void 0 === t.version && (e = 'version')) {
1477
+ const t = { params: { missingProperty: e } };
1478
+ null === a ? (a = [t]) : a.push(t), i++;
1437
1479
  }
1438
- else {
1439
- const e = { params: { type: 'string' } };
1440
- null === a ? (a = [e]) : a.push(e), i++;
1480
+ }
1481
+ if (((p = e === i), (o = o || p), !o)) {
1482
+ const e = i;
1483
+ if (t && 'object' == typeof t && !Array.isArray(t)) {
1484
+ let e;
1485
+ if (void 0 === t.fallbackVersion && (e = 'fallbackVersion')) {
1486
+ const t = { params: { missingProperty: e } };
1487
+ null === a ? (a = [t]) : a.push(t), i++;
1488
+ }
1441
1489
  }
1442
- (p = e === i), (s = s || p);
1490
+ (p = e === i), (o = o || p);
1491
+ }
1443
1492
  }
1444
- if (!s) {
1493
+ if (!o) {
1445
1494
  const e = { params: {} };
1446
- return (null === a ? (a = [e]) : a.push(e), i++, (b.errors = a), !1);
1495
+ return (null === a ? (a = [e]) : a.push(e), i++, (v.errors = a), !1);
1447
1496
  }
1448
- (i = n),
1449
- null !== a && (n ? (a.length = n) : (a = null)),
1450
- (l = r === i);
1497
+ if (((i = s),
1498
+ null !== a && (s ? (a.length = s) : (a = null)),
1499
+ i === n)) {
1500
+ if (!t || 'object' != typeof t || Array.isArray(t))
1501
+ return (v.errors = [{ params: { type: 'object' } }]), !1;
1502
+ {
1503
+ const e = i;
1504
+ for (const e in t)
1505
+ if ('request' !== e &&
1506
+ 'version' !== e &&
1507
+ 'fallbackVersion' !== e)
1508
+ return ((v.errors = [{ params: { additionalProperty: e } }]), !1);
1509
+ if (e === i) {
1510
+ if (void 0 !== t.request) {
1511
+ let e = t.request;
1512
+ const r = i;
1513
+ if ('string' != typeof e &&
1514
+ (!e || 'object' != typeof e || Array.isArray(e)))
1515
+ return ((v.errors = [
1516
+ { params: { type: b.properties.request.type } },
1517
+ ]),
1518
+ !1);
1519
+ var f = r === i;
1520
+ }
1521
+ else
1522
+ f = !0;
1523
+ if (f) {
1524
+ if (void 0 !== t.version) {
1525
+ const e = i;
1526
+ if ('string' != typeof t.version)
1527
+ return ((v.errors = [{ params: { type: 'string' } }]), !1);
1528
+ f = e === i;
1529
+ }
1530
+ else
1531
+ f = !0;
1532
+ if (f)
1533
+ if (void 0 !== t.fallbackVersion) {
1534
+ const e = i;
1535
+ if ('string' != typeof t.fallbackVersion)
1536
+ return ((v.errors = [{ params: { type: 'string' } }]), !1);
1537
+ f = e === i;
1538
+ }
1539
+ else
1540
+ f = !0;
1541
+ }
1542
+ }
1543
+ }
1544
+ }
1545
+ l = r === i;
1451
1546
  }
1452
1547
  else
1453
1548
  l = !0;
1454
1549
  if (l) {
1455
- if (void 0 !== e.request) {
1456
- let t = e.request;
1457
- const r = i;
1458
- if (i === r) {
1459
- if ('string' != typeof t)
1460
- return (b.errors = [{ params: { type: 'string' } }]), !1;
1461
- if (t.length < 1)
1462
- return (b.errors = [{ params: {} }]), !1;
1550
+ if (void 0 !== e.include) {
1551
+ let t = e.include;
1552
+ const r = i, n = i, s = i;
1553
+ let o = !1;
1554
+ const p = i;
1555
+ if (t && 'object' == typeof t && !Array.isArray(t)) {
1556
+ let e;
1557
+ if (void 0 === t.request && (e = 'request')) {
1558
+ const t = { params: { missingProperty: e } };
1559
+ null === a ? (a = [t]) : a.push(t), i++;
1560
+ }
1561
+ }
1562
+ var y = p === i;
1563
+ if (((o = o || y), !o)) {
1564
+ const e = i;
1565
+ if (t && 'object' == typeof t && !Array.isArray(t)) {
1566
+ let e;
1567
+ if (void 0 === t.version && (e = 'version')) {
1568
+ const t = { params: { missingProperty: e } };
1569
+ null === a ? (a = [t]) : a.push(t), i++;
1570
+ }
1571
+ }
1572
+ if (((y = e === i), (o = o || y), !o)) {
1573
+ const e = i;
1574
+ if (t && 'object' == typeof t && !Array.isArray(t)) {
1575
+ let e;
1576
+ if (void 0 === t.fallbackVersion &&
1577
+ (e = 'fallbackVersion')) {
1578
+ const t = { params: { missingProperty: e } };
1579
+ null === a ? (a = [t]) : a.push(t), i++;
1580
+ }
1581
+ }
1582
+ (y = e === i), (o = o || y);
1583
+ }
1584
+ }
1585
+ if (!o) {
1586
+ const e = { params: {} };
1587
+ return (null === a ? (a = [e]) : a.push(e), i++, (v.errors = a), !1);
1588
+ }
1589
+ if (((i = s),
1590
+ null !== a && (s ? (a.length = s) : (a = null)),
1591
+ i === n)) {
1592
+ if (!t || 'object' != typeof t || Array.isArray(t))
1593
+ return (v.errors = [{ params: { type: 'object' } }]), !1;
1594
+ {
1595
+ const e = i;
1596
+ for (const e in t)
1597
+ if ('request' !== e &&
1598
+ 'version' !== e &&
1599
+ 'fallbackVersion' !== e)
1600
+ return ((v.errors = [{ params: { additionalProperty: e } }]), !1);
1601
+ if (e === i) {
1602
+ if (void 0 !== t.request) {
1603
+ let e = t.request;
1604
+ const r = i;
1605
+ if ('string' != typeof e &&
1606
+ (!e || 'object' != typeof e || Array.isArray(e)))
1607
+ return ((v.errors = [
1608
+ { params: { type: b.properties.request.type } },
1609
+ ]),
1610
+ !1);
1611
+ var c = r === i;
1612
+ }
1613
+ else
1614
+ c = !0;
1615
+ if (c) {
1616
+ if (void 0 !== t.version) {
1617
+ const e = i;
1618
+ if ('string' != typeof t.version)
1619
+ return ((v.errors = [{ params: { type: 'string' } }]), !1);
1620
+ c = e === i;
1621
+ }
1622
+ else
1623
+ c = !0;
1624
+ if (c)
1625
+ if (void 0 !== t.fallbackVersion) {
1626
+ const e = i;
1627
+ if ('string' != typeof t.fallbackVersion)
1628
+ return ((v.errors = [{ params: { type: 'string' } }]), !1);
1629
+ c = e === i;
1630
+ }
1631
+ else
1632
+ c = !0;
1633
+ }
1634
+ }
1635
+ }
1463
1636
  }
1464
1637
  l = r === i;
1465
1638
  }
1466
1639
  else
1467
1640
  l = !0;
1468
1641
  if (l) {
1469
- if (void 0 !== e.layer) {
1470
- let t = e.layer;
1471
- const r = i;
1472
- if (i === r) {
1473
- if ('string' != typeof t)
1474
- return (b.errors = [{ params: { type: 'string' } }]), !1;
1475
- if (t.length < 1)
1476
- return (b.errors = [{ params: {} }]), !1;
1642
+ if (void 0 !== e.import) {
1643
+ let t = e.import;
1644
+ const r = i, n = i;
1645
+ let s = !1;
1646
+ const o = i;
1647
+ if (!1 !== t) {
1648
+ const e = {
1649
+ params: {
1650
+ allowedValues: h.properties.import.anyOf[0].enum,
1651
+ },
1652
+ };
1653
+ null === a ? (a = [e]) : a.push(e), i++;
1654
+ }
1655
+ var u = o === i;
1656
+ if (((s = s || u), !s)) {
1657
+ const e = i;
1658
+ if (i == i)
1659
+ if ('string' == typeof t) {
1660
+ if (t.length < 1) {
1661
+ const e = { params: {} };
1662
+ null === a ? (a = [e]) : a.push(e), i++;
1663
+ }
1664
+ }
1665
+ else {
1666
+ const e = { params: { type: 'string' } };
1667
+ null === a ? (a = [e]) : a.push(e), i++;
1668
+ }
1669
+ (u = e === i), (s = s || u);
1477
1670
  }
1478
- l = r === i;
1671
+ if (!s) {
1672
+ const e = { params: {} };
1673
+ return (null === a ? (a = [e]) : a.push(e), i++, (v.errors = a), !1);
1674
+ }
1675
+ (i = n),
1676
+ null !== a && (n ? (a.length = n) : (a = null)),
1677
+ (l = r === i);
1479
1678
  }
1480
1679
  else
1481
1680
  l = !0;
1482
1681
  if (l) {
1483
- if (void 0 !== e.issuerLayer) {
1484
- let t = e.issuerLayer;
1682
+ if (void 0 !== e.request) {
1683
+ let t = e.request;
1485
1684
  const r = i;
1486
1685
  if (i === r) {
1487
1686
  if ('string' != typeof t)
1488
- return (b.errors = [{ params: { type: 'string' } }]), !1;
1687
+ return (v.errors = [{ params: { type: 'string' } }]), !1;
1489
1688
  if (t.length < 1)
1490
- return (b.errors = [{ params: {} }]), !1;
1689
+ return (v.errors = [{ params: {} }]), !1;
1491
1690
  }
1492
1691
  l = r === i;
1493
1692
  }
1494
1693
  else
1495
1694
  l = !0;
1496
1695
  if (l) {
1497
- if (void 0 !== e.packageName) {
1498
- let t = e.packageName;
1696
+ if (void 0 !== e.layer) {
1697
+ let t = e.layer;
1499
1698
  const r = i;
1500
1699
  if (i === r) {
1501
1700
  if ('string' != typeof t)
1502
- return ((b.errors = [{ params: { type: 'string' } }]), !1);
1701
+ return ((v.errors = [{ params: { type: 'string' } }]), !1);
1503
1702
  if (t.length < 1)
1504
- return (b.errors = [{ params: {} }]), !1;
1703
+ return (v.errors = [{ params: {} }]), !1;
1505
1704
  }
1506
1705
  l = r === i;
1507
1706
  }
1508
1707
  else
1509
1708
  l = !0;
1510
1709
  if (l) {
1511
- if (void 0 !== e.requiredVersion) {
1512
- let t = e.requiredVersion;
1513
- const r = i, n = i;
1514
- let s = !1;
1515
- const o = i;
1516
- if (!1 !== t) {
1517
- const e = {
1518
- params: {
1519
- allowedValues: h.properties.requiredVersion.anyOf[0].enum,
1520
- },
1521
- };
1522
- null === a ? (a = [e]) : a.push(e), i++;
1523
- }
1524
- var f = o === i;
1525
- if (((s = s || f), !s)) {
1526
- const e = i;
1527
- if ('string' != typeof t) {
1528
- const e = { params: { type: 'string' } };
1529
- null === a ? (a = [e]) : a.push(e), i++;
1530
- }
1531
- (f = e === i), (s = s || f);
1710
+ if (void 0 !== e.issuerLayer) {
1711
+ let t = e.issuerLayer;
1712
+ const r = i;
1713
+ if (i === r) {
1714
+ if ('string' != typeof t)
1715
+ return ((v.errors = [{ params: { type: 'string' } }]), !1);
1716
+ if (t.length < 1)
1717
+ return (v.errors = [{ params: {} }]), !1;
1532
1718
  }
1533
- if (!s) {
1534
- const e = { params: {} };
1535
- return (null === a ? (a = [e]) : a.push(e),
1536
- i++,
1537
- (b.errors = a),
1538
- !1);
1539
- }
1540
- (i = n),
1541
- null !== a && (n ? (a.length = n) : (a = null)),
1542
- (l = r === i);
1719
+ l = r === i;
1543
1720
  }
1544
1721
  else
1545
1722
  l = !0;
1546
1723
  if (l) {
1547
- if (void 0 !== e.shareKey) {
1548
- let t = e.shareKey;
1724
+ if (void 0 !== e.packageName) {
1725
+ let t = e.packageName;
1549
1726
  const r = i;
1550
1727
  if (i === r) {
1551
1728
  if ('string' != typeof t)
1552
- return ((b.errors = [{ params: { type: 'string' } }]), !1);
1729
+ return ((v.errors = [{ params: { type: 'string' } }]), !1);
1553
1730
  if (t.length < 1)
1554
- return (b.errors = [{ params: {} }]), !1;
1731
+ return (v.errors = [{ params: {} }]), !1;
1555
1732
  }
1556
1733
  l = r === i;
1557
1734
  }
1558
1735
  else
1559
1736
  l = !0;
1560
1737
  if (l) {
1561
- if (void 0 !== e.shareScope) {
1562
- let t = e.shareScope;
1738
+ if (void 0 !== e.requiredVersion) {
1739
+ let t = e.requiredVersion;
1563
1740
  const r = i, n = i;
1564
1741
  let s = !1;
1565
1742
  const o = i;
1566
- if (i === o)
1567
- if ('string' == typeof t) {
1568
- if (t.length < 1) {
1569
- const e = { params: {} };
1570
- null === a ? (a = [e]) : a.push(e), i++;
1571
- }
1572
- }
1573
- else {
1743
+ if (!1 !== t) {
1744
+ const e = {
1745
+ params: {
1746
+ allowedValues: h.properties.requiredVersion.anyOf[0].enum,
1747
+ },
1748
+ };
1749
+ null === a ? (a = [e]) : a.push(e), i++;
1750
+ }
1751
+ var m = o === i;
1752
+ if (((s = s || m), !s)) {
1753
+ const e = i;
1754
+ if ('string' != typeof t) {
1574
1755
  const e = { params: { type: 'string' } };
1575
1756
  null === a ? (a = [e]) : a.push(e), i++;
1576
1757
  }
1577
- var y = o === i;
1578
- if (((s = s || y), !s)) {
1579
- const e = i;
1580
- if (i === e)
1581
- if (Array.isArray(t)) {
1582
- const e = t.length;
1583
- for (let r = 0; r < e; r++) {
1584
- let e = t[r];
1585
- const n = i;
1586
- if (i === n)
1587
- if ('string' == typeof e) {
1588
- if (e.length < 1) {
1589
- const e = { params: {} };
1590
- null === a ? (a = [e]) : a.push(e), i++;
1591
- }
1592
- }
1593
- else {
1594
- const e = { params: { type: 'string' } };
1595
- null === a ? (a = [e]) : a.push(e), i++;
1596
- }
1597
- if (n !== i)
1598
- break;
1599
- }
1600
- }
1601
- else {
1602
- const e = { params: { type: 'array' } };
1603
- null === a ? (a = [e]) : a.push(e), i++;
1604
- }
1605
- (y = e === i), (s = s || y);
1758
+ (m = e === i), (s = s || m);
1606
1759
  }
1607
1760
  if (!s) {
1608
1761
  const e = { params: {} };
1609
1762
  return (null === a ? (a = [e]) : a.push(e),
1610
1763
  i++,
1611
- (b.errors = a),
1764
+ (v.errors = a),
1612
1765
  !1);
1613
1766
  }
1614
1767
  (i = n),
@@ -1618,64 +1771,164 @@ function b(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1618
1771
  else
1619
1772
  l = !0;
1620
1773
  if (l) {
1621
- if (void 0 !== e.singleton) {
1622
- const t = i;
1623
- if ('boolean' != typeof e.singleton)
1624
- return ((b.errors = [{ params: { type: 'boolean' } }]),
1625
- !1);
1626
- l = t === i;
1774
+ if (void 0 !== e.shareKey) {
1775
+ let t = e.shareKey;
1776
+ const r = i;
1777
+ if (i === r) {
1778
+ if ('string' != typeof t)
1779
+ return ((v.errors = [{ params: { type: 'string' } }]),
1780
+ !1);
1781
+ if (t.length < 1)
1782
+ return (v.errors = [{ params: {} }]), !1;
1783
+ }
1784
+ l = r === i;
1627
1785
  }
1628
1786
  else
1629
1787
  l = !0;
1630
1788
  if (l) {
1631
- if (void 0 !== e.strictVersion) {
1632
- const t = i;
1633
- if ('boolean' != typeof e.strictVersion)
1634
- return ((b.errors = [
1635
- { params: { type: 'boolean' } },
1636
- ]),
1637
- !1);
1638
- l = t === i;
1639
- }
1640
- else
1641
- l = !0;
1642
- if (l)
1643
- if (void 0 !== e.version) {
1644
- let t = e.version;
1645
- const r = i, n = i;
1646
- let s = !1;
1647
- const o = i;
1648
- if (!1 !== t) {
1649
- const e = {
1650
- params: {
1651
- allowedValues: h.properties.version.anyOf[0].enum,
1652
- },
1653
- };
1789
+ if (void 0 !== e.shareScope) {
1790
+ let t = e.shareScope;
1791
+ const r = i, n = i;
1792
+ let s = !1;
1793
+ const o = i;
1794
+ if (i === o)
1795
+ if ('string' == typeof t) {
1796
+ if (t.length < 1) {
1797
+ const e = { params: {} };
1798
+ null === a ? (a = [e]) : a.push(e), i++;
1799
+ }
1800
+ }
1801
+ else {
1802
+ const e = { params: { type: 'string' } };
1654
1803
  null === a ? (a = [e]) : a.push(e), i++;
1655
1804
  }
1656
- var c = o === i;
1657
- if (((s = s || c), !s)) {
1658
- const e = i;
1659
- if ('string' != typeof t) {
1660
- const e = { params: { type: 'string' } };
1805
+ var d = o === i;
1806
+ if (((s = s || d), !s)) {
1807
+ const e = i;
1808
+ if (i === e)
1809
+ if (Array.isArray(t)) {
1810
+ const e = t.length;
1811
+ for (let r = 0; r < e; r++) {
1812
+ let e = t[r];
1813
+ const n = i;
1814
+ if (i === n)
1815
+ if ('string' == typeof e) {
1816
+ if (e.length < 1) {
1817
+ const e = { params: {} };
1818
+ null === a ? (a = [e]) : a.push(e),
1819
+ i++;
1820
+ }
1821
+ }
1822
+ else {
1823
+ const e = {
1824
+ params: { type: 'string' },
1825
+ };
1826
+ null === a ? (a = [e]) : a.push(e),
1827
+ i++;
1828
+ }
1829
+ if (n !== i)
1830
+ break;
1831
+ }
1832
+ }
1833
+ else {
1834
+ const e = { params: { type: 'array' } };
1661
1835
  null === a ? (a = [e]) : a.push(e), i++;
1662
1836
  }
1663
- (c = e === i), (s = s || c);
1664
- }
1665
- if (!s) {
1666
- const e = { params: {} };
1667
- return (null === a ? (a = [e]) : a.push(e),
1668
- i++,
1669
- (b.errors = a),
1837
+ (d = e === i), (s = s || d);
1838
+ }
1839
+ if (!s) {
1840
+ const e = { params: {} };
1841
+ return (null === a ? (a = [e]) : a.push(e),
1842
+ i++,
1843
+ (v.errors = a),
1844
+ !1);
1845
+ }
1846
+ (i = n),
1847
+ null !== a && (n ? (a.length = n) : (a = null)),
1848
+ (l = r === i);
1849
+ }
1850
+ else
1851
+ l = !0;
1852
+ if (l) {
1853
+ if (void 0 !== e.singleton) {
1854
+ const t = i;
1855
+ if ('boolean' != typeof e.singleton)
1856
+ return ((v.errors = [
1857
+ { params: { type: 'boolean' } },
1858
+ ]),
1670
1859
  !1);
1671
- }
1672
- (i = n),
1673
- null !== a &&
1674
- (n ? (a.length = n) : (a = null)),
1675
- (l = r === i);
1860
+ l = t === i;
1676
1861
  }
1677
1862
  else
1678
1863
  l = !0;
1864
+ if (l) {
1865
+ if (void 0 !== e.strictVersion) {
1866
+ const t = i;
1867
+ if ('boolean' != typeof e.strictVersion)
1868
+ return ((v.errors = [
1869
+ { params: { type: 'boolean' } },
1870
+ ]),
1871
+ !1);
1872
+ l = t === i;
1873
+ }
1874
+ else
1875
+ l = !0;
1876
+ if (l) {
1877
+ if (void 0 !== e.version) {
1878
+ let t = e.version;
1879
+ const r = i, n = i;
1880
+ let s = !1;
1881
+ const o = i;
1882
+ if (!1 !== t) {
1883
+ const e = {
1884
+ params: {
1885
+ allowedValues: h.properties.version.anyOf[0].enum,
1886
+ },
1887
+ };
1888
+ null === a ? (a = [e]) : a.push(e), i++;
1889
+ }
1890
+ var g = o === i;
1891
+ if (((s = s || g), !s)) {
1892
+ const e = i;
1893
+ if ('string' != typeof t) {
1894
+ const e = {
1895
+ params: { type: 'string' },
1896
+ };
1897
+ null === a ? (a = [e]) : a.push(e), i++;
1898
+ }
1899
+ (g = e === i), (s = s || g);
1900
+ }
1901
+ if (!s) {
1902
+ const e = { params: {} };
1903
+ return (null === a ? (a = [e]) : a.push(e),
1904
+ i++,
1905
+ (v.errors = a),
1906
+ !1);
1907
+ }
1908
+ (i = n),
1909
+ null !== a &&
1910
+ (n ? (a.length = n) : (a = null)),
1911
+ (l = r === i);
1912
+ }
1913
+ else
1914
+ l = !0;
1915
+ if (l)
1916
+ if (void 0 !==
1917
+ e.nodeModulesReconstructedLookup) {
1918
+ const t = i;
1919
+ if ('boolean' !=
1920
+ typeof e.nodeModulesReconstructedLookup)
1921
+ return ((v.errors = [
1922
+ { params: { type: 'boolean' } },
1923
+ ]),
1924
+ !1);
1925
+ l = t === i;
1926
+ }
1927
+ else
1928
+ l = !0;
1929
+ }
1930
+ }
1931
+ }
1679
1932
  }
1680
1933
  }
1681
1934
  }
@@ -1689,24 +1942,24 @@ function b(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1689
1942
  }
1690
1943
  }
1691
1944
  }
1692
- return (b.errors = a), 0 === i;
1945
+ return (v.errors = a), 0 === i;
1693
1946
  }
1694
- function v(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1947
+ function P(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1695
1948
  let o = null, a = 0;
1696
1949
  if (0 === a) {
1697
1950
  if (!e || 'object' != typeof e || Array.isArray(e))
1698
- return (v.errors = [{ params: { type: 'object' } }]), !1;
1951
+ return (P.errors = [{ params: { type: 'object' } }]), !1;
1699
1952
  for (const r in e) {
1700
1953
  let n = e[r];
1701
1954
  const l = a, p = a;
1702
1955
  let f = !1;
1703
1956
  const y = a;
1704
- b(n, {
1957
+ v(n, {
1705
1958
  instancePath: t + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
1706
1959
  parentData: e,
1707
1960
  parentDataProperty: r,
1708
1961
  rootData: s,
1709
- }) || ((o = null === o ? b.errors : o.concat(b.errors)), (a = o.length));
1962
+ }) || ((o = null === o ? v.errors : o.concat(v.errors)), (a = o.length));
1710
1963
  var i = y === a;
1711
1964
  if (((f = f || i), !f)) {
1712
1965
  const e = a;
@@ -1725,15 +1978,15 @@ function v(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1725
1978
  }
1726
1979
  if (!f) {
1727
1980
  const e = { params: {} };
1728
- return null === o ? (o = [e]) : o.push(e), a++, (v.errors = o), !1;
1981
+ return null === o ? (o = [e]) : o.push(e), a++, (P.errors = o), !1;
1729
1982
  }
1730
1983
  if (((a = p), null !== o && (p ? (o.length = p) : (o = null)), l !== a))
1731
1984
  break;
1732
1985
  }
1733
1986
  }
1734
- return (v.errors = o), 0 === a;
1987
+ return (P.errors = o), 0 === a;
1735
1988
  }
1736
- function P(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1989
+ function j(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1737
1990
  let o = null, a = 0;
1738
1991
  const i = a;
1739
1992
  let l = !1;
@@ -1760,13 +2013,13 @@ function P(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1760
2013
  var f = y === a;
1761
2014
  if (((p = p || f), !p)) {
1762
2015
  const i = a;
1763
- v(r, {
2016
+ P(r, {
1764
2017
  instancePath: t + '/' + n,
1765
2018
  parentData: e,
1766
2019
  parentDataProperty: n,
1767
2020
  rootData: s,
1768
2021
  }) ||
1769
- ((o = null === o ? v.errors : o.concat(v.errors)), (a = o.length)),
2022
+ ((o = null === o ? P.errors : o.concat(P.errors)), (a = o.length)),
1770
2023
  (f = i === a),
1771
2024
  (p = p || f);
1772
2025
  }
@@ -1787,22 +2040,22 @@ function P(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1787
2040
  var y = p === a;
1788
2041
  if (((l = l || y), !l)) {
1789
2042
  const i = a;
1790
- v(e, {
2043
+ P(e, {
1791
2044
  instancePath: t,
1792
2045
  parentData: r,
1793
2046
  parentDataProperty: n,
1794
2047
  rootData: s,
1795
- }) || ((o = null === o ? v.errors : o.concat(v.errors)), (a = o.length)),
2048
+ }) || ((o = null === o ? P.errors : o.concat(P.errors)), (a = o.length)),
1796
2049
  (y = i === a),
1797
2050
  (l = l || y);
1798
2051
  }
1799
2052
  if (!l) {
1800
2053
  const e = { params: {} };
1801
- return null === o ? (o = [e]) : o.push(e), a++, (P.errors = o), !1;
2054
+ return null === o ? (o = [e]) : o.push(e), a++, (j.errors = o), !1;
1802
2055
  }
1803
2056
  return ((a = i),
1804
2057
  null !== o && (i ? (o.length = i) : (o = null)),
1805
- (P.errors = o),
2058
+ (j.errors = o),
1806
2059
  0 === a);
1807
2060
  }
1808
2061
  function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, rootData: f = o, } = {}) {
@@ -2067,14 +2320,14 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2067
2320
  if (m) {
2068
2321
  if (void 0 !== o.shared) {
2069
2322
  const e = u;
2070
- P(o.shared, {
2323
+ j(o.shared, {
2071
2324
  instancePath: a + '/shared',
2072
2325
  parentData: o,
2073
2326
  parentDataProperty: 'shared',
2074
2327
  rootData: f,
2075
2328
  }) ||
2076
2329
  ((y =
2077
- null === y ? P.errors : y.concat(P.errors)),
2330
+ null === y ? j.errors : y.concat(j.errors)),
2078
2331
  (u = y.length)),
2079
2332
  (m = e === u);
2080
2333
  }
@@ -2128,11 +2381,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2128
2381
  : y.push(e),
2129
2382
  u++;
2130
2383
  }
2131
- var j = e === u;
2384
+ var P = e === u;
2132
2385
  }
2133
2386
  else
2134
- j = !0;
2135
- if (j) {
2387
+ P = !0;
2388
+ if (P) {
2136
2389
  if (void 0 !== t.typesFolder) {
2137
2390
  const e = u;
2138
2391
  if ('string' !=
@@ -2147,11 +2400,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2147
2400
  : y.push(e),
2148
2401
  u++;
2149
2402
  }
2150
- j = e === u;
2403
+ P = e === u;
2151
2404
  }
2152
2405
  else
2153
- j = !0;
2154
- if (j) {
2406
+ P = !0;
2407
+ if (P) {
2155
2408
  if (void 0 !==
2156
2409
  t.compiledTypesFolder) {
2157
2410
  const e = u;
@@ -2167,11 +2420,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2167
2420
  : y.push(e),
2168
2421
  u++;
2169
2422
  }
2170
- j = e === u;
2423
+ P = e === u;
2171
2424
  }
2172
2425
  else
2173
- j = !0;
2174
- if (j) {
2426
+ P = !0;
2427
+ if (P) {
2175
2428
  if (void 0 !==
2176
2429
  t.deleteTypesFolder) {
2177
2430
  const e = u;
@@ -2187,11 +2440,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2187
2440
  : y.push(e),
2188
2441
  u++;
2189
2442
  }
2190
- j = e === u;
2443
+ P = e === u;
2191
2444
  }
2192
2445
  else
2193
- j = !0;
2194
- if (j) {
2446
+ P = !0;
2447
+ if (P) {
2195
2448
  if (void 0 !==
2196
2449
  t.additionalFilesToCompile) {
2197
2450
  let e = t.additionalFilesToCompile;
@@ -2228,11 +2481,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2228
2481
  : y.push(e),
2229
2482
  u++;
2230
2483
  }
2231
- j = r === u;
2484
+ P = r === u;
2232
2485
  }
2233
2486
  else
2234
- j = !0;
2235
- if (j) {
2487
+ P = !0;
2488
+ if (P) {
2236
2489
  if (void 0 !==
2237
2490
  t.compileInChildProcess) {
2238
2491
  const e = u;
@@ -2248,11 +2501,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2248
2501
  : y.push(e),
2249
2502
  u++;
2250
2503
  }
2251
- j = e === u;
2504
+ P = e === u;
2252
2505
  }
2253
2506
  else
2254
- j = !0;
2255
- if (j) {
2507
+ P = !0;
2508
+ if (P) {
2256
2509
  if (void 0 !==
2257
2510
  t.compilerInstance) {
2258
2511
  const e = u;
@@ -2268,11 +2521,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2268
2521
  : y.push(e),
2269
2522
  u++;
2270
2523
  }
2271
- j = e === u;
2524
+ P = e === u;
2272
2525
  }
2273
2526
  else
2274
- j = !0;
2275
- if (j) {
2527
+ P = !0;
2528
+ if (P) {
2276
2529
  if (void 0 !==
2277
2530
  t.generateAPITypes) {
2278
2531
  const e = u;
@@ -2288,11 +2541,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2288
2541
  : y.push(e),
2289
2542
  u++;
2290
2543
  }
2291
- j = e === u;
2544
+ P = e === u;
2292
2545
  }
2293
2546
  else
2294
- j = !0;
2295
- if (j) {
2547
+ P = !0;
2548
+ if (P) {
2296
2549
  if (void 0 !==
2297
2550
  t.extractThirdParty) {
2298
2551
  const e = u;
@@ -2308,11 +2561,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2308
2561
  : y.push(e),
2309
2562
  u++;
2310
2563
  }
2311
- j = e === u;
2564
+ P = e === u;
2312
2565
  }
2313
2566
  else
2314
- j = !0;
2315
- if (j) {
2567
+ P = !0;
2568
+ if (P) {
2316
2569
  if (void 0 !==
2317
2570
  t.extractRemoteTypes) {
2318
2571
  const e = u;
@@ -2330,11 +2583,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2330
2583
  : y.push(e),
2331
2584
  u++;
2332
2585
  }
2333
- j = e === u;
2586
+ P = e === u;
2334
2587
  }
2335
2588
  else
2336
- j = !0;
2337
- if (j)
2589
+ P = !0;
2590
+ if (P)
2338
2591
  if (void 0 !==
2339
2592
  t.abortOnError) {
2340
2593
  const e = u;
@@ -2352,10 +2605,10 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2352
2605
  : y.push(e),
2353
2606
  u++;
2354
2607
  }
2355
- j = e === u;
2608
+ P = e === u;
2356
2609
  }
2357
2610
  else
2358
- j = !0;
2611
+ P = !0;
2359
2612
  }
2360
2613
  }
2361
2614
  }
@@ -2960,8 +3213,8 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2960
3213
  null === y ? (y = [e]) : y.push(e),
2961
3214
  u++;
2962
3215
  }
2963
- var $ = s === u;
2964
- if (((n = n || $), !n)) {
3216
+ var k = s === u;
3217
+ if (((n = n || k), !n)) {
2965
3218
  const t = u;
2966
3219
  if (u === t)
2967
3220
  if (e &&
@@ -3000,11 +3253,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
3000
3253
  : y.push(e),
3001
3254
  u++;
3002
3255
  }
3003
- var C = t === u;
3256
+ var E = t === u;
3004
3257
  }
3005
3258
  else
3006
- C = !0;
3007
- if (C) {
3259
+ E = !0;
3260
+ if (E) {
3008
3261
  if (void 0 !==
3009
3262
  e.disableAssetsAnalyze) {
3010
3263
  const t = u;
@@ -3020,11 +3273,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
3020
3273
  : y.push(e),
3021
3274
  u++;
3022
3275
  }
3023
- C = t === u;
3276
+ E = t === u;
3024
3277
  }
3025
3278
  else
3026
- C = !0;
3027
- if (C) {
3279
+ E = !0;
3280
+ if (E) {
3028
3281
  if (void 0 !== e.fileName) {
3029
3282
  const t = u;
3030
3283
  if ('string' !=
@@ -3039,11 +3292,11 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
3039
3292
  : y.push(e),
3040
3293
  u++;
3041
3294
  }
3042
- C = t === u;
3295
+ E = t === u;
3043
3296
  }
3044
3297
  else
3045
- C = !0;
3046
- if (C)
3298
+ E = !0;
3299
+ if (E)
3047
3300
  if (void 0 !==
3048
3301
  e.additionalData) {
3049
3302
  const t = u;
@@ -3057,10 +3310,10 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
3057
3310
  : y.push(e),
3058
3311
  u++;
3059
3312
  }
3060
- C = t === u;
3313
+ E = t === u;
3061
3314
  }
3062
3315
  else
3063
- C = !0;
3316
+ E = !0;
3064
3317
  }
3065
3318
  }
3066
3319
  }
@@ -3074,7 +3327,7 @@ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
3074
3327
  : y.push(e),
3075
3328
  u++;
3076
3329
  }
3077
- ($ = t === u), (n = n || $);
3330
+ (k = t === u), (n = n || k);
3078
3331
  }
3079
3332
  if (!n) {
3080
3333
  const e = { params: {} };