unetjs 3.2.2 → 3.2.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/dist/cjs/unet.cjs CHANGED
@@ -1,8 +1,8 @@
1
- /* unet.js v3.2.2 2025-04-15T06:23:18.443Z */
1
+ /* unet.js v3.2.3 2025-04-15T06:27:19.683Z */
2
2
 
3
3
  'use strict';
4
4
 
5
- /* fjage.js v1.13.7 */
5
+ /* fjage.js v1.13.8 */
6
6
 
7
7
  const isBrowser =
8
8
  typeof window !== "undefined" && typeof window.document !== "undefined";
@@ -514,9 +514,10 @@ class AgentID {
514
514
  if (Array.isArray(params)) {
515
515
  if (!rsp.values) rsp.values = {};
516
516
  if (rsp.param) rsp.values[rsp.param] = rsp.value;
517
- const rvals = Object.keys(rsp.values);
517
+ const rkeys = Object.keys(rsp.values);
518
518
  return params.map( p => {
519
- let f = rvals.find(rv => rv.endsWith(p));
519
+ if (p.includes('.')) p = p.split('.').pop();
520
+ let f = rkeys.find(k => (k.includes('.') ? k.split('.').pop() : k) == p);
520
521
  return f ? rsp.values[f] : undefined;
521
522
  });
522
523
  } else {
package/dist/esm/unet.js CHANGED
@@ -1,6 +1,6 @@
1
- /* unet.js v3.2.2 2025-04-15T06:23:18.442Z */
1
+ /* unet.js v3.2.3 2025-04-15T06:27:19.682Z */
2
2
 
3
- /* fjage.js v1.13.7 */
3
+ /* fjage.js v1.13.8 */
4
4
 
5
5
  const isBrowser =
6
6
  typeof window !== "undefined" && typeof window.document !== "undefined";
@@ -512,9 +512,10 @@ class AgentID {
512
512
  if (Array.isArray(params)) {
513
513
  if (!rsp.values) rsp.values = {};
514
514
  if (rsp.param) rsp.values[rsp.param] = rsp.value;
515
- const rvals = Object.keys(rsp.values);
515
+ const rkeys = Object.keys(rsp.values);
516
516
  return params.map( p => {
517
- let f = rvals.find(rv => rv.endsWith(p));
517
+ if (p.includes('.')) p = p.split('.').pop();
518
+ let f = rkeys.find(k => (k.includes('.') ? k.split('.').pop() : k) == p);
518
519
  return f ? rsp.values[f] : undefined;
519
520
  });
520
521
  } else {
package/dist/unetjs.js CHANGED
@@ -4,7 +4,7 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.unet = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- /* fjage.js v1.13.7 */
7
+ /* fjage.js v1.13.8 */
8
8
 
9
9
  const isBrowser =
10
10
  typeof window !== "undefined" && typeof window.document !== "undefined";
@@ -516,9 +516,10 @@
516
516
  if (Array.isArray(params)) {
517
517
  if (!rsp.values) rsp.values = {};
518
518
  if (rsp.param) rsp.values[rsp.param] = rsp.value;
519
- const rvals = Object.keys(rsp.values);
519
+ const rkeys = Object.keys(rsp.values);
520
520
  return params.map( p => {
521
- let f = rvals.find(rv => rv.endsWith(p));
521
+ if (p.includes('.')) p = p.split('.').pop();
522
+ let f = rkeys.find(k => (k.includes('.') ? k.split('.').pop() : k) == p);
522
523
  return f ? rsp.values[f] : undefined;
523
524
  });
524
525
  } else {