unetjs 3.2.2 → 3.2.4
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 +9 -7
- package/dist/esm/unet.js +9 -7
- package/dist/unetjs.js +8 -6
- package/dist/unetjs.js.map +1 -1
- package/dist/unetjs.min.js +1 -1
- package/dist/unetjs.min.js.map +1 -1
- package/package.json +2 -2
package/dist/cjs/unet.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* unet.js v3.2.
|
|
1
|
+
/* unet.js v3.2.4 2025-04-15T06:38:29.796Z */
|
|
2
2
|
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/* fjage.js v1.13.
|
|
5
|
+
/* fjage.js v1.13.9 */
|
|
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
|
|
517
|
+
const rkeys = Object.keys(rsp.values);
|
|
518
518
|
return params.map( p => {
|
|
519
|
-
|
|
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 {
|
|
@@ -560,9 +561,10 @@ class AgentID {
|
|
|
560
561
|
} else if (Array.isArray(params)) {
|
|
561
562
|
if (!rsp.values) rsp.values = {};
|
|
562
563
|
if (rsp.param) rsp.values[rsp.param] = rsp.value;
|
|
563
|
-
const
|
|
564
|
-
return params.map(p => {
|
|
565
|
-
|
|
564
|
+
const rkeys = Object.keys(rsp.values);
|
|
565
|
+
return params.map( p => {
|
|
566
|
+
if (p.includes('.')) p = p.split('.').pop();
|
|
567
|
+
let f = rkeys.find(k => (k.includes('.') ? k.split('.').pop() : k) == p);
|
|
566
568
|
return f ? rsp.values[f] : undefined;
|
|
567
569
|
});
|
|
568
570
|
} else {
|
package/dist/esm/unet.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* unet.js v3.2.
|
|
1
|
+
/* unet.js v3.2.4 2025-04-15T06:38:29.796Z */
|
|
2
2
|
|
|
3
|
-
/* fjage.js v1.13.
|
|
3
|
+
/* fjage.js v1.13.9 */
|
|
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
|
|
515
|
+
const rkeys = Object.keys(rsp.values);
|
|
516
516
|
return params.map( p => {
|
|
517
|
-
|
|
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 {
|
|
@@ -558,9 +559,10 @@ class AgentID {
|
|
|
558
559
|
} else if (Array.isArray(params)) {
|
|
559
560
|
if (!rsp.values) rsp.values = {};
|
|
560
561
|
if (rsp.param) rsp.values[rsp.param] = rsp.value;
|
|
561
|
-
const
|
|
562
|
-
return params.map(p => {
|
|
563
|
-
|
|
562
|
+
const rkeys = Object.keys(rsp.values);
|
|
563
|
+
return params.map( p => {
|
|
564
|
+
if (p.includes('.')) p = p.split('.').pop();
|
|
565
|
+
let f = rkeys.find(k => (k.includes('.') ? k.split('.').pop() : k) == p);
|
|
564
566
|
return f ? rsp.values[f] : undefined;
|
|
565
567
|
});
|
|
566
568
|
} 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
|
+
/* fjage.js v1.13.9 */
|
|
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
|
|
519
|
+
const rkeys = Object.keys(rsp.values);
|
|
520
520
|
return params.map( p => {
|
|
521
|
-
|
|
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 {
|
|
@@ -562,9 +563,10 @@
|
|
|
562
563
|
} else if (Array.isArray(params)) {
|
|
563
564
|
if (!rsp.values) rsp.values = {};
|
|
564
565
|
if (rsp.param) rsp.values[rsp.param] = rsp.value;
|
|
565
|
-
const
|
|
566
|
-
return params.map(p => {
|
|
567
|
-
|
|
566
|
+
const rkeys = Object.keys(rsp.values);
|
|
567
|
+
return params.map( p => {
|
|
568
|
+
if (p.includes('.')) p = p.split('.').pop();
|
|
569
|
+
let f = rkeys.find(k => (k.includes('.') ? k.split('.').pop() : k) == p);
|
|
568
570
|
return f ? rsp.values[f] : undefined;
|
|
569
571
|
});
|
|
570
572
|
} else {
|