unetjs 2.0.1 → 2.0.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.
package/dist/cjs/unet.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /* unet.js v2.0.1 2022-05-18T03:51:58.752Z */
1
+ /* unet.js v2.0.2 2022-06-10T03:18:03.319Z */
2
2
 
3
3
  'use strict';
4
4
 
@@ -1661,6 +1661,7 @@ class CachingGateway extends Gateway{
1661
1661
  */
1662
1662
  async agentForService(service, caching=true, greedy=true) {
1663
1663
  const aid = await super.agentForService(service);
1664
+ if (!aid) return aid;
1664
1665
  return caching ? new CachingAgentID(aid, null, null, greedy) : aid;
1665
1666
  }
1666
1667
 
package/dist/esm/unet.js CHANGED
@@ -1,4 +1,4 @@
1
- /* unet.js v2.0.1 2022-05-18T03:51:58.752Z */
1
+ /* unet.js v2.0.2 2022-06-10T03:18:03.319Z */
2
2
 
3
3
  /* fjage.js v1.9.1-rc6 */
4
4
 
@@ -1639,6 +1639,7 @@ class CachingGateway extends Gateway{
1639
1639
  */
1640
1640
  async agentForService(service, caching=true, greedy=true) {
1641
1641
  const aid = await super.agentForService(service);
1642
+ if (!aid) return aid;
1642
1643
  return caching ? new CachingAgentID(aid, null, null, greedy) : aid;
1643
1644
  }
1644
1645
 
package/dist/unetjs.js CHANGED
@@ -1643,6 +1643,7 @@
1643
1643
  */
1644
1644
  async agentForService(service, caching=true, greedy=true) {
1645
1645
  const aid = await super.agentForService(service);
1646
+ if (!aid) return aid;
1646
1647
  return caching ? new CachingAgentID(aid, null, null, greedy) : aid;
1647
1648
  }
1648
1649