mol_plot_all 1.2.867 → 1.2.869
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/node.d.ts +1 -1
- package/node.deps.json +1 -1
- package/node.js +8 -10
- package/node.js.map +1 -1
- package/node.mjs +8 -10
- package/node.test.js +17 -15
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -1
- package/web.deps.json +1 -1
- package/web.js +8 -10
- package/web.js.map +1 -1
- package/web.mjs +8 -10
- package/web.test.js +9 -5
- package/web.test.js.map +1 -1
package/web.js
CHANGED
|
@@ -222,7 +222,7 @@ var $;
|
|
|
222
222
|
destructor() { }
|
|
223
223
|
static destructor() { }
|
|
224
224
|
toString() {
|
|
225
|
-
return this[Symbol.toStringTag] || this.constructor.name + '
|
|
225
|
+
return this[Symbol.toStringTag] || this.constructor.name + '<>';
|
|
226
226
|
}
|
|
227
227
|
static toJSON() {
|
|
228
228
|
return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
|
|
@@ -385,8 +385,6 @@ var $;
|
|
|
385
385
|
function $mol_dev_format_native(obj) {
|
|
386
386
|
if (typeof obj === 'undefined')
|
|
387
387
|
return $.$mol_dev_format_shade('undefined');
|
|
388
|
-
if (typeof obj !== 'object' && typeof obj !== 'function')
|
|
389
|
-
return obj;
|
|
390
388
|
return [
|
|
391
389
|
'object',
|
|
392
390
|
{
|
|
@@ -706,7 +704,7 @@ var $;
|
|
|
706
704
|
return $mol_promise_like(this.cache);
|
|
707
705
|
}
|
|
708
706
|
field() {
|
|
709
|
-
return this.task.name + '
|
|
707
|
+
return this.task.name + '<>';
|
|
710
708
|
}
|
|
711
709
|
constructor(id, task, host, args) {
|
|
712
710
|
super();
|
|
@@ -1010,11 +1008,11 @@ var $;
|
|
|
1010
1008
|
return true;
|
|
1011
1009
|
}
|
|
1012
1010
|
function compare_buffer(left, right) {
|
|
1013
|
-
if (left instanceof DataView)
|
|
1014
|
-
return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
|
|
1015
1011
|
const len = left.byteLength;
|
|
1016
1012
|
if (len !== right.byteLength)
|
|
1017
1013
|
return false;
|
|
1014
|
+
if (left instanceof DataView)
|
|
1015
|
+
return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
|
|
1018
1016
|
for (let i = 0; i < len; ++i) {
|
|
1019
1017
|
if (left[i] !== right[i])
|
|
1020
1018
|
return false;
|
|
@@ -1145,7 +1143,7 @@ var $;
|
|
|
1145
1143
|
break reuse;
|
|
1146
1144
|
return existen;
|
|
1147
1145
|
}
|
|
1148
|
-
const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}
|
|
1146
|
+
const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}<#>`, task, host, args);
|
|
1149
1147
|
if (existen?.temp) {
|
|
1150
1148
|
$$.$mol_log3_warn({
|
|
1151
1149
|
place: '$mol_wire_task',
|
|
@@ -1257,7 +1255,7 @@ var $;
|
|
|
1257
1255
|
(function ($) {
|
|
1258
1256
|
class $mol_wire_atom extends $mol_wire_fiber {
|
|
1259
1257
|
static solo(host, task) {
|
|
1260
|
-
const field = task.name + '
|
|
1258
|
+
const field = task.name + '<>';
|
|
1261
1259
|
const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1262
1260
|
if (existen)
|
|
1263
1261
|
return existen;
|
|
@@ -1268,7 +1266,7 @@ var $;
|
|
|
1268
1266
|
return fiber;
|
|
1269
1267
|
}
|
|
1270
1268
|
static plex(host, task, key) {
|
|
1271
|
-
const field = task.name + '
|
|
1269
|
+
const field = task.name + '<>';
|
|
1272
1270
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1273
1271
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1274
1272
|
const key_str = $mol_key(key);
|
|
@@ -1280,7 +1278,7 @@ var $;
|
|
|
1280
1278
|
else {
|
|
1281
1279
|
dict = (host ?? task)[field] = new Map();
|
|
1282
1280
|
}
|
|
1283
|
-
const id = `${prefix}.${task.name}
|
|
1281
|
+
const id = `${prefix}.${task.name}<${key_str.replace(/^"|"$/g, "'")}>`;
|
|
1284
1282
|
const fiber = new $mol_wire_atom(id, task, host, [key]);
|
|
1285
1283
|
dict.set(key_str, fiber);
|
|
1286
1284
|
return fiber;
|