unetjs 2.0.4 → 2.0.5

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.4 2022-06-15T07:08:11.042Z */
1
+ /* unet.js v2.0.5 2022-06-15T07:40:54.241Z */
2
2
 
3
3
  'use strict';
4
4
 
@@ -1556,7 +1556,8 @@ class CachingAgentID extends AgentID {
1556
1556
  let rsp = await super.get(null, index, timeout);
1557
1557
  this._updateCache(null, rsp, index);
1558
1558
  if (!rsp) return Array.isArray(params) ? new Array(params.length).fill(null) : null;
1559
- if (Array.isArray(params)) {
1559
+ if (!params) return rsp;
1560
+ else if (Array.isArray(params)) {
1560
1561
  return params.map(p => {
1561
1562
  let f = Object.keys(rsp).find(rv => this._toNamed(rv) === p);
1562
1563
  return f ? rsp[f] : null;
package/dist/esm/unet.js CHANGED
@@ -1,4 +1,4 @@
1
- /* unet.js v2.0.4 2022-06-15T07:08:11.042Z */
1
+ /* unet.js v2.0.5 2022-06-15T07:40:54.241Z */
2
2
 
3
3
  /* fjage.js v1.10.1 */
4
4
 
@@ -1534,7 +1534,8 @@ class CachingAgentID extends AgentID {
1534
1534
  let rsp = await super.get(null, index, timeout);
1535
1535
  this._updateCache(null, rsp, index);
1536
1536
  if (!rsp) return Array.isArray(params) ? new Array(params.length).fill(null) : null;
1537
- if (Array.isArray(params)) {
1537
+ if (!params) return rsp;
1538
+ else if (Array.isArray(params)) {
1538
1539
  return params.map(p => {
1539
1540
  let f = Object.keys(rsp).find(rv => this._toNamed(rv) === p);
1540
1541
  return f ? rsp[f] : null;
package/dist/unetjs.js CHANGED
@@ -1538,7 +1538,8 @@
1538
1538
  let rsp = await super.get(null, index, timeout);
1539
1539
  this._updateCache(null, rsp, index);
1540
1540
  if (!rsp) return Array.isArray(params) ? new Array(params.length).fill(null) : null;
1541
- if (Array.isArray(params)) {
1541
+ if (!params) return rsp;
1542
+ else if (Array.isArray(params)) {
1542
1543
  return params.map(p => {
1543
1544
  let f = Object.keys(rsp).find(rv => this._toNamed(rv) === p);
1544
1545
  return f ? rsp[f] : null;