mol_compare_deep 0.0.1048 → 0.0.1049
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.deps.json +1 -1
- package/node.test.js +93 -98
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
package/node.deps.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"files":["mam.ts","LICENSE","README.md","mam.jam.js","tsfmt.json","package.json","tsconfig.json","lang.lang.tree","meta.lang.tree","sandbox.config.json","mol/CNAME","mol/LICENSE","mol/readme.md","mol/index.html","mol/mol.meta.tree","mol/CONTRIBUTING.md","mol/CODE_OF_CONDUCT.md","mol/compare/deep/deep.ts","mol/compare/deep/README.md"],"mods":{},"deps_in":{"mol/compare":{"mol/compare/deep":-9007199254740991},"mol":{"mol/compare":-9007199254740991},"":{"mol":-9007199254740991}},"deps_out":{"mol/compare/deep":{"mol/compare":-9007199254740991},"mol/compare":{"mol":-9007199254740991},"mol":{"":-9007199254740991}},"sloc":{"ts":121,"LICENSE":113,"md":493,"js":9,"json":
|
|
1
|
+
{"files":["mam.ts","LICENSE","README.md","mam.jam.js","tsfmt.json","package.json","tsconfig.json","lang.lang.tree","meta.lang.tree","sandbox.config.json","mol/CNAME","mol/LICENSE","mol/readme.md","mol/index.html","mol/mol.meta.tree","mol/CONTRIBUTING.md","mol/CODE_OF_CONDUCT.md","mol/compare/deep/deep.ts","mol/compare/deep/README.md"],"mods":{},"deps_in":{"mol/compare":{"mol/compare/deep":-9007199254740991},"mol":{"mol/compare":-9007199254740991},"":{"mol":-9007199254740991}},"deps_out":{"mol/compare/deep":{"mol/compare":-9007199254740991},"mol/compare":{"mol":-9007199254740991},"mol":{"":-9007199254740991}},"sloc":{"ts":121,"LICENSE":113,"md":493,"js":9,"json":82,"tree":41,"CNAME":1,"html":1},"deps":{"mol/compare/deep":{"..":-9007199254740991,"/mol/compare/deep/cache":-1,"/mol/compare/deep":-1,"/mol/compare/deep/cache/get":-2,"/mol/compare/deep/cache/set":-3},"mol/compare":{"..":-9007199254740991},"mol":{"..":-9007199254740991},"":{}}}
|
package/node.test.js
CHANGED
|
@@ -351,27 +351,19 @@ var $node = new Proxy({ require }, {
|
|
|
351
351
|
return target.require(name);
|
|
352
352
|
if (name[0] === '.')
|
|
353
353
|
return target.require(name);
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
$$.$mol_exec('.', 'npm', 'install', '--omit=dev', name);
|
|
363
|
-
try {
|
|
364
|
-
$$.$mol_exec('.', 'npm', 'install', '--omit=dev', '@types/' + name);
|
|
365
|
-
}
|
|
366
|
-
catch (e) {
|
|
367
|
-
if ($$.$mol_fail_catch(e)) {
|
|
368
|
-
$$.$mol_fail_log(e);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
break;
|
|
354
|
+
try {
|
|
355
|
+
target.require.resolve(name);
|
|
356
|
+
}
|
|
357
|
+
catch {
|
|
358
|
+
const $$ = $;
|
|
359
|
+
$$.$mol_exec('.', 'npm', 'install', '--omit=dev', name);
|
|
360
|
+
try {
|
|
361
|
+
$$.$mol_exec('.', 'npm', 'install', '--omit=dev', '@types/' + name);
|
|
372
362
|
}
|
|
373
|
-
|
|
374
|
-
|
|
363
|
+
catch (e) {
|
|
364
|
+
if ($$.$mol_fail_catch(e)) {
|
|
365
|
+
$$.$mol_fail_log(e);
|
|
366
|
+
}
|
|
375
367
|
}
|
|
376
368
|
}
|
|
377
369
|
try {
|
|
@@ -398,83 +390,6 @@ require = (req => Object.assign(function require(name) {
|
|
|
398
390
|
return $node[name];
|
|
399
391
|
}, req))(require);
|
|
400
392
|
|
|
401
|
-
;
|
|
402
|
-
"use strict";
|
|
403
|
-
var $;
|
|
404
|
-
(function ($) {
|
|
405
|
-
$.$mol_dom_context = new $node.jsdom.JSDOM('', { url: 'https://localhost/' }).window;
|
|
406
|
-
})($ || ($ = {}));
|
|
407
|
-
|
|
408
|
-
;
|
|
409
|
-
"use strict";
|
|
410
|
-
var $;
|
|
411
|
-
(function ($) {
|
|
412
|
-
function $mol_dom_render_children(el, childNodes) {
|
|
413
|
-
const node_set = new Set(childNodes);
|
|
414
|
-
let nextNode = el.firstChild;
|
|
415
|
-
for (let view of childNodes) {
|
|
416
|
-
if (view == null)
|
|
417
|
-
continue;
|
|
418
|
-
if (view instanceof $mol_dom_context.Node) {
|
|
419
|
-
while (true) {
|
|
420
|
-
if (!nextNode) {
|
|
421
|
-
el.appendChild(view);
|
|
422
|
-
break;
|
|
423
|
-
}
|
|
424
|
-
if (nextNode == view) {
|
|
425
|
-
nextNode = nextNode.nextSibling;
|
|
426
|
-
break;
|
|
427
|
-
}
|
|
428
|
-
else {
|
|
429
|
-
if (node_set.has(nextNode)) {
|
|
430
|
-
el.insertBefore(view, nextNode);
|
|
431
|
-
break;
|
|
432
|
-
}
|
|
433
|
-
else {
|
|
434
|
-
const nn = nextNode.nextSibling;
|
|
435
|
-
el.removeChild(nextNode);
|
|
436
|
-
nextNode = nn;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
else {
|
|
442
|
-
if (nextNode && nextNode.nodeName === '#text') {
|
|
443
|
-
const str = String(view);
|
|
444
|
-
if (nextNode.nodeValue !== str)
|
|
445
|
-
nextNode.nodeValue = str;
|
|
446
|
-
nextNode = nextNode.nextSibling;
|
|
447
|
-
}
|
|
448
|
-
else {
|
|
449
|
-
const textNode = $mol_dom_context.document.createTextNode(String(view));
|
|
450
|
-
el.insertBefore(textNode, nextNode);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
while (nextNode) {
|
|
455
|
-
const currNode = nextNode;
|
|
456
|
-
nextNode = currNode.nextSibling;
|
|
457
|
-
el.removeChild(currNode);
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
$.$mol_dom_render_children = $mol_dom_render_children;
|
|
461
|
-
})($ || ($ = {}));
|
|
462
|
-
|
|
463
|
-
;
|
|
464
|
-
"use strict";
|
|
465
|
-
|
|
466
|
-
;
|
|
467
|
-
"use strict";
|
|
468
|
-
|
|
469
|
-
;
|
|
470
|
-
"use strict";
|
|
471
|
-
|
|
472
|
-
;
|
|
473
|
-
"use strict";
|
|
474
|
-
|
|
475
|
-
;
|
|
476
|
-
"use strict";
|
|
477
|
-
|
|
478
393
|
;
|
|
479
394
|
"use strict";
|
|
480
395
|
var $;
|
|
@@ -786,6 +701,15 @@ var $;
|
|
|
786
701
|
;
|
|
787
702
|
"use strict";
|
|
788
703
|
|
|
704
|
+
;
|
|
705
|
+
"use strict";
|
|
706
|
+
|
|
707
|
+
;
|
|
708
|
+
"use strict";
|
|
709
|
+
|
|
710
|
+
;
|
|
711
|
+
"use strict";
|
|
712
|
+
|
|
789
713
|
;
|
|
790
714
|
"use strict";
|
|
791
715
|
var $;
|
|
@@ -2792,7 +2716,10 @@ var $;
|
|
|
2792
2716
|
command: args_raw.join(' '),
|
|
2793
2717
|
dir: $node.path.relative('', dir),
|
|
2794
2718
|
});
|
|
2795
|
-
|
|
2719
|
+
const res = this.$mol_run_spawn_sync(app, args, { shell: true, cwd: dir, env });
|
|
2720
|
+
if (res.status)
|
|
2721
|
+
$mol_fail(new Error(res.stderr.toString() || 'Exit(' + res.status + ')'));
|
|
2722
|
+
return res;
|
|
2796
2723
|
}
|
|
2797
2724
|
const sub = this.$mol_run_spawn(app, args, {
|
|
2798
2725
|
shell: true,
|
|
@@ -2909,6 +2836,74 @@ var $;
|
|
|
2909
2836
|
$.$mol_exec = $mol_exec;
|
|
2910
2837
|
})($ || ($ = {}));
|
|
2911
2838
|
|
|
2839
|
+
;
|
|
2840
|
+
"use strict";
|
|
2841
|
+
var $;
|
|
2842
|
+
(function ($) {
|
|
2843
|
+
$.$mol_dom_context = new $node.jsdom.JSDOM('', { url: 'https://localhost/' }).window;
|
|
2844
|
+
})($ || ($ = {}));
|
|
2845
|
+
|
|
2846
|
+
;
|
|
2847
|
+
"use strict";
|
|
2848
|
+
var $;
|
|
2849
|
+
(function ($) {
|
|
2850
|
+
function $mol_dom_render_children(el, childNodes) {
|
|
2851
|
+
const node_set = new Set(childNodes);
|
|
2852
|
+
let nextNode = el.firstChild;
|
|
2853
|
+
for (let view of childNodes) {
|
|
2854
|
+
if (view == null)
|
|
2855
|
+
continue;
|
|
2856
|
+
if (view instanceof $mol_dom_context.Node) {
|
|
2857
|
+
while (true) {
|
|
2858
|
+
if (!nextNode) {
|
|
2859
|
+
el.appendChild(view);
|
|
2860
|
+
break;
|
|
2861
|
+
}
|
|
2862
|
+
if (nextNode == view) {
|
|
2863
|
+
nextNode = nextNode.nextSibling;
|
|
2864
|
+
break;
|
|
2865
|
+
}
|
|
2866
|
+
else {
|
|
2867
|
+
if (node_set.has(nextNode)) {
|
|
2868
|
+
el.insertBefore(view, nextNode);
|
|
2869
|
+
break;
|
|
2870
|
+
}
|
|
2871
|
+
else {
|
|
2872
|
+
const nn = nextNode.nextSibling;
|
|
2873
|
+
el.removeChild(nextNode);
|
|
2874
|
+
nextNode = nn;
|
|
2875
|
+
}
|
|
2876
|
+
}
|
|
2877
|
+
}
|
|
2878
|
+
}
|
|
2879
|
+
else {
|
|
2880
|
+
if (nextNode && nextNode.nodeName === '#text') {
|
|
2881
|
+
const str = String(view);
|
|
2882
|
+
if (nextNode.nodeValue !== str)
|
|
2883
|
+
nextNode.nodeValue = str;
|
|
2884
|
+
nextNode = nextNode.nextSibling;
|
|
2885
|
+
}
|
|
2886
|
+
else {
|
|
2887
|
+
const textNode = $mol_dom_context.document.createTextNode(String(view));
|
|
2888
|
+
el.insertBefore(textNode, nextNode);
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
while (nextNode) {
|
|
2893
|
+
const currNode = nextNode;
|
|
2894
|
+
nextNode = currNode.nextSibling;
|
|
2895
|
+
el.removeChild(currNode);
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
$.$mol_dom_render_children = $mol_dom_render_children;
|
|
2899
|
+
})($ || ($ = {}));
|
|
2900
|
+
|
|
2901
|
+
;
|
|
2902
|
+
"use strict";
|
|
2903
|
+
|
|
2904
|
+
;
|
|
2905
|
+
"use strict";
|
|
2906
|
+
|
|
2912
2907
|
;
|
|
2913
2908
|
"use strict";
|
|
2914
2909
|
var $;
|