mol_wire_lib 1.0.499 → 1.0.500

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.test.js CHANGED
@@ -2510,27 +2510,21 @@ var $;
2510
2510
  //mol/dom/render/children/children.ts
2511
2511
  ;
2512
2512
  "use strict";
2513
- //mol/type/error/error.ts
2513
+ //mol/type/partial/deep/deep.ts
2514
2514
  ;
2515
2515
  "use strict";
2516
- //mol/type/assert/assert.test.ts
2516
+ //mol/type/error/error.ts
2517
2517
  ;
2518
2518
  "use strict";
2519
2519
  //mol/type/assert/assert.ts
2520
2520
  ;
2521
2521
  "use strict";
2522
- //mol/type/equals/equals.test.ts
2523
- ;
2524
- "use strict";
2525
- //mol/type/equals/equals.ts
2522
+ //mol/type/assert/assert.test.ts
2526
2523
  ;
2527
2524
  "use strict";
2528
2525
  //mol/type/partial/deep/deep.test.ts
2529
2526
  ;
2530
2527
  "use strict";
2531
- //mol/type/partial/deep/deep.ts
2532
- ;
2533
- "use strict";
2534
2528
  var $;
2535
2529
  (function ($) {
2536
2530
  $mol_test({
@@ -2850,38 +2844,6 @@ var $;
2850
2844
  ;
2851
2845
  "use strict";
2852
2846
  var $;
2853
- (function ($) {
2854
- $mol_test({
2855
- 'must be false'() {
2856
- $mol_assert_not(0);
2857
- },
2858
- 'must be true'() {
2859
- $mol_assert_ok(1);
2860
- },
2861
- 'two must be equal'() {
2862
- $mol_assert_equal(2, 2);
2863
- },
2864
- 'three must be equal'() {
2865
- $mol_assert_equal(2, 2, 2);
2866
- },
2867
- 'two must be unique'() {
2868
- $mol_assert_unique([3], [3]);
2869
- },
2870
- 'three must be unique'() {
2871
- $mol_assert_unique([3], [3], [3]);
2872
- },
2873
- 'two must be alike'() {
2874
- $mol_assert_like([3], [3]);
2875
- },
2876
- 'three must be alike'() {
2877
- $mol_assert_like([3], [3], [3]);
2878
- },
2879
- });
2880
- })($ || ($ = {}));
2881
- //mol/assert/assert.test.ts
2882
- ;
2883
- "use strict";
2884
- var $;
2885
2847
  (function ($) {
2886
2848
  function $mol_assert_ok(value) {
2887
2849
  if (value)
@@ -2976,6 +2938,47 @@ var $;
2976
2938
  ;
2977
2939
  "use strict";
2978
2940
  var $;
2941
+ (function ($) {
2942
+ $mol_test({
2943
+ 'must be false'() {
2944
+ $mol_assert_not(0);
2945
+ },
2946
+ 'must be true'() {
2947
+ $mol_assert_ok(1);
2948
+ },
2949
+ 'two must be equal'() {
2950
+ $mol_assert_equal(2, 2);
2951
+ },
2952
+ 'three must be equal'() {
2953
+ $mol_assert_equal(2, 2, 2);
2954
+ },
2955
+ 'two must be unique'() {
2956
+ $mol_assert_unique([3], [3]);
2957
+ },
2958
+ 'three must be unique'() {
2959
+ $mol_assert_unique([3], [3], [3]);
2960
+ },
2961
+ 'two must be alike'() {
2962
+ $mol_assert_like([3], [3]);
2963
+ },
2964
+ 'three must be alike'() {
2965
+ $mol_assert_like([3], [3], [3]);
2966
+ },
2967
+ });
2968
+ })($ || ($ = {}));
2969
+ //mol/assert/assert.test.ts
2970
+ ;
2971
+ "use strict";
2972
+ //mol/type/equals/equals.ts
2973
+ ;
2974
+ "use strict";
2975
+ //mol/type/equals/equals.test.ts
2976
+ ;
2977
+ "use strict";
2978
+ //mol/type/writable/writable.test.ts
2979
+ ;
2980
+ "use strict";
2981
+ var $;
2979
2982
  (function ($) {
2980
2983
  $mol_test({
2981
2984
  'get'() {
@@ -3038,9 +3041,6 @@ var $;
3038
3041
  //mol/delegate/delegate.test.ts
3039
3042
  ;
3040
3043
  "use strict";
3041
- //mol/type/writable/writable.test.ts
3042
- ;
3043
- "use strict";
3044
3044
  var $;
3045
3045
  (function ($_1) {
3046
3046
  $mol_test({
@@ -3312,6 +3312,67 @@ var $;
3312
3312
  ;
3313
3313
  "use strict";
3314
3314
  var $;
3315
+ (function ($) {
3316
+ $mol_test({
3317
+ 'Primitives'() {
3318
+ $mol_assert_equal($mol_key(null), 'null');
3319
+ $mol_assert_equal($mol_key(false), 'false');
3320
+ $mol_assert_equal($mol_key(true), 'true');
3321
+ $mol_assert_equal($mol_key(0), '0');
3322
+ $mol_assert_equal($mol_key(''), '""');
3323
+ },
3324
+ 'Array & POJO'() {
3325
+ $mol_assert_equal($mol_key([null]), '[null]');
3326
+ $mol_assert_equal($mol_key({ foo: 0 }), '{"foo":0}');
3327
+ $mol_assert_equal($mol_key({ foo: [false] }), '{"foo":[false]}');
3328
+ },
3329
+ 'Function'() {
3330
+ const func = () => { };
3331
+ $mol_assert_equal($mol_key(func), $mol_key(func));
3332
+ $mol_assert_unique($mol_key(func), $mol_key(() => { }));
3333
+ },
3334
+ 'Objects'() {
3335
+ class User {
3336
+ }
3337
+ const jin = new User();
3338
+ $mol_assert_equal($mol_key(jin), $mol_key(jin));
3339
+ $mol_assert_unique($mol_key(jin), $mol_key(new User()));
3340
+ },
3341
+ 'Elements'() {
3342
+ const foo = $mol_jsx("div", null, "bar");
3343
+ $mol_assert_equal($mol_key(foo), $mol_key(foo));
3344
+ $mol_assert_unique($mol_key(foo), $mol_key($mol_jsx("div", null, "bar")));
3345
+ },
3346
+ 'Custom JSON representation'() {
3347
+ class User {
3348
+ name;
3349
+ age;
3350
+ constructor(name, age) {
3351
+ this.name = name;
3352
+ this.age = age;
3353
+ }
3354
+ toJSON() { return { name: this.name }; }
3355
+ }
3356
+ $mol_assert_equal($mol_key(new User('jin', 18)), '{"name":"jin"}');
3357
+ },
3358
+ 'Special native classes'() {
3359
+ $mol_assert_equal($mol_key(new Date('xyz')), 'null');
3360
+ $mol_assert_equal($mol_key(new Date('2001-01-02T03:04:05.678Z')), '"2001-01-02T03:04:05.678Z"');
3361
+ $mol_assert_equal($mol_key(/./), '"/./"');
3362
+ $mol_assert_equal($mol_key(/\./gimsu), '"/\\\\./gimsu"');
3363
+ },
3364
+ });
3365
+ })($ || ($ = {}));
3366
+ //mol/key/key.test.tsx
3367
+ ;
3368
+ "use strict";
3369
+ //mol/type/tail/tail.test.ts
3370
+ ;
3371
+ "use strict";
3372
+ //mol/type/foot/foot.test.ts
3373
+ ;
3374
+ "use strict";
3375
+ var $;
3315
3376
  (function ($_1) {
3316
3377
  $mol_test({
3317
3378
  async 'Latest method calls wins'($) {
@@ -3354,9 +3415,6 @@ var $;
3354
3415
  //mol/wire/async/async.test.ts
3355
3416
  ;
3356
3417
  "use strict";
3357
- //mol/type/tail/tail.test.ts
3358
- ;
3359
- "use strict";
3360
3418
  var $;
3361
3419
  (function ($_1) {
3362
3420
  $mol_test({
@@ -3947,64 +4005,6 @@ var $;
3947
4005
  ;
3948
4006
  "use strict";
3949
4007
  var $;
3950
- (function ($) {
3951
- $mol_test({
3952
- 'Primitives'() {
3953
- $mol_assert_equal($mol_key(null), 'null');
3954
- $mol_assert_equal($mol_key(false), 'false');
3955
- $mol_assert_equal($mol_key(true), 'true');
3956
- $mol_assert_equal($mol_key(0), '0');
3957
- $mol_assert_equal($mol_key(''), '""');
3958
- },
3959
- 'Array & POJO'() {
3960
- $mol_assert_equal($mol_key([null]), '[null]');
3961
- $mol_assert_equal($mol_key({ foo: 0 }), '{"foo":0}');
3962
- $mol_assert_equal($mol_key({ foo: [false] }), '{"foo":[false]}');
3963
- },
3964
- 'Function'() {
3965
- const func = () => { };
3966
- $mol_assert_equal($mol_key(func), $mol_key(func));
3967
- $mol_assert_unique($mol_key(func), $mol_key(() => { }));
3968
- },
3969
- 'Objects'() {
3970
- class User {
3971
- }
3972
- const jin = new User();
3973
- $mol_assert_equal($mol_key(jin), $mol_key(jin));
3974
- $mol_assert_unique($mol_key(jin), $mol_key(new User()));
3975
- },
3976
- 'Elements'() {
3977
- const foo = $mol_jsx("div", null, "bar");
3978
- $mol_assert_equal($mol_key(foo), $mol_key(foo));
3979
- $mol_assert_unique($mol_key(foo), $mol_key($mol_jsx("div", null, "bar")));
3980
- },
3981
- 'Custom JSON representation'() {
3982
- class User {
3983
- name;
3984
- age;
3985
- constructor(name, age) {
3986
- this.name = name;
3987
- this.age = age;
3988
- }
3989
- toJSON() { return { name: this.name }; }
3990
- }
3991
- $mol_assert_equal($mol_key(new User('jin', 18)), '{"name":"jin"}');
3992
- },
3993
- 'Special native classes'() {
3994
- $mol_assert_equal($mol_key(new Date('xyz')), 'null');
3995
- $mol_assert_equal($mol_key(new Date('2001-01-02T03:04:05.678Z')), '"2001-01-02T03:04:05.678Z"');
3996
- $mol_assert_equal($mol_key(/./), '"/./"');
3997
- $mol_assert_equal($mol_key(/\./gimsu), '"/\\\\./gimsu"');
3998
- },
3999
- });
4000
- })($ || ($ = {}));
4001
- //mol/key/key.test.tsx
4002
- ;
4003
- "use strict";
4004
- //mol/type/foot/foot.test.ts
4005
- ;
4006
- "use strict";
4007
- var $;
4008
4008
  (function ($) {
4009
4009
  $mol_wire_log.active();
4010
4010
  })($ || ($ = {}));