mol_crypto_lib 0.0.630 → 0.0.632

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
@@ -1070,12 +1070,6 @@ var $;
1070
1070
  ;
1071
1071
  "use strict";
1072
1072
  var $;
1073
- (function ($) {
1074
- })($ || ($ = {}));
1075
- //mol/dom/context/context.ts
1076
- ;
1077
- "use strict";
1078
- var $;
1079
1073
  (function ($_1) {
1080
1074
  $mol_test_mocks.push($ => {
1081
1075
  $.$mol_log3_come = () => { };
@@ -1089,6 +1083,30 @@ var $;
1089
1083
  //mol/log3/log3.test.ts
1090
1084
  ;
1091
1085
  "use strict";
1086
+ //mol/type/error/error.ts
1087
+ ;
1088
+ "use strict";
1089
+ //mol/type/assert/assert.ts
1090
+ ;
1091
+ "use strict";
1092
+ //mol/type/assert/assert.test.ts
1093
+ ;
1094
+ "use strict";
1095
+ //mol/type/equals/equals.ts
1096
+ ;
1097
+ "use strict";
1098
+ //mol/type/equals/equals.test.ts
1099
+ ;
1100
+ "use strict";
1101
+ //mol/type/writable/writable.test.ts
1102
+ ;
1103
+ "use strict";
1104
+ var $;
1105
+ (function ($) {
1106
+ })($ || ($ = {}));
1107
+ //mol/dom/context/context.ts
1108
+ ;
1109
+ "use strict";
1092
1110
  var $;
1093
1111
  (function ($) {
1094
1112
  $.$mol_dom_context = new $node.jsdom.JSDOM('', { url: 'https://localhost/' }).window;
@@ -1151,27 +1169,12 @@ var $;
1151
1169
  //mol/dom/render/children/children.ts
1152
1170
  ;
1153
1171
  "use strict";
1154
- //mol/type/error/error.ts
1155
- ;
1156
- "use strict";
1157
- //mol/type/assert/assert.test.ts
1158
- ;
1159
- "use strict";
1160
- //mol/type/assert/assert.ts
1161
- ;
1162
- "use strict";
1163
- //mol/type/equals/equals.test.ts
1164
- ;
1165
- "use strict";
1166
- //mol/type/equals/equals.ts
1172
+ //mol/type/partial/deep/deep.ts
1167
1173
  ;
1168
1174
  "use strict";
1169
1175
  //mol/type/partial/deep/deep.test.ts
1170
1176
  ;
1171
1177
  "use strict";
1172
- //mol/type/partial/deep/deep.ts
1173
- ;
1174
- "use strict";
1175
1178
  var $;
1176
1179
  (function ($) {
1177
1180
  $mol_test({
@@ -1616,38 +1619,6 @@ var $;
1616
1619
  ;
1617
1620
  "use strict";
1618
1621
  var $;
1619
- (function ($) {
1620
- $mol_test({
1621
- 'must be false'() {
1622
- $mol_assert_not(0);
1623
- },
1624
- 'must be true'() {
1625
- $mol_assert_ok(1);
1626
- },
1627
- 'two must be equal'() {
1628
- $mol_assert_equal(2, 2);
1629
- },
1630
- 'three must be equal'() {
1631
- $mol_assert_equal(2, 2, 2);
1632
- },
1633
- 'two must be unique'() {
1634
- $mol_assert_unique([3], [3]);
1635
- },
1636
- 'three must be unique'() {
1637
- $mol_assert_unique([3], [3], [3]);
1638
- },
1639
- 'two must be alike'() {
1640
- $mol_assert_like([3], [3]);
1641
- },
1642
- 'three must be alike'() {
1643
- $mol_assert_like([3], [3], [3]);
1644
- },
1645
- });
1646
- })($ || ($ = {}));
1647
- //mol/assert/assert.test.ts
1648
- ;
1649
- "use strict";
1650
- var $;
1651
1622
  (function ($) {
1652
1623
  function $mol_assert_ok(value) {
1653
1624
  if (value)
@@ -1742,6 +1713,38 @@ var $;
1742
1713
  ;
1743
1714
  "use strict";
1744
1715
  var $;
1716
+ (function ($) {
1717
+ $mol_test({
1718
+ 'must be false'() {
1719
+ $mol_assert_not(0);
1720
+ },
1721
+ 'must be true'() {
1722
+ $mol_assert_ok(1);
1723
+ },
1724
+ 'two must be equal'() {
1725
+ $mol_assert_equal(2, 2);
1726
+ },
1727
+ 'three must be equal'() {
1728
+ $mol_assert_equal(2, 2, 2);
1729
+ },
1730
+ 'two must be unique'() {
1731
+ $mol_assert_unique([3], [3]);
1732
+ },
1733
+ 'three must be unique'() {
1734
+ $mol_assert_unique([3], [3], [3]);
1735
+ },
1736
+ 'two must be alike'() {
1737
+ $mol_assert_like([3], [3]);
1738
+ },
1739
+ 'three must be alike'() {
1740
+ $mol_assert_like([3], [3], [3]);
1741
+ },
1742
+ });
1743
+ })($ || ($ = {}));
1744
+ //mol/assert/assert.test.ts
1745
+ ;
1746
+ "use strict";
1747
+ var $;
1745
1748
  (function ($) {
1746
1749
  $mol_test({
1747
1750
  'get'() {
@@ -1804,7 +1807,50 @@ var $;
1804
1807
  //mol/delegate/delegate.test.ts
1805
1808
  ;
1806
1809
  "use strict";
1807
- //mol/type/writable/writable.test.ts
1810
+ var $;
1811
+ (function ($) {
1812
+ const named = new WeakSet();
1813
+ function $mol_func_name(func) {
1814
+ let name = func.name;
1815
+ if (name?.length > 1)
1816
+ return name;
1817
+ if (named.has(func))
1818
+ return name;
1819
+ for (let key in this) {
1820
+ try {
1821
+ if (this[key] !== func)
1822
+ continue;
1823
+ name = key;
1824
+ Object.defineProperty(func, 'name', { value: name });
1825
+ break;
1826
+ }
1827
+ catch { }
1828
+ }
1829
+ named.add(func);
1830
+ return name;
1831
+ }
1832
+ $.$mol_func_name = $mol_func_name;
1833
+ function $mol_func_name_from(target, source) {
1834
+ Object.defineProperty(target, 'name', { value: source.name });
1835
+ return target;
1836
+ }
1837
+ $.$mol_func_name_from = $mol_func_name_from;
1838
+ })($ || ($ = {}));
1839
+ //mol/func/name/name.ts
1840
+ ;
1841
+ "use strict";
1842
+ var $;
1843
+ (function ($_1) {
1844
+ $mol_test({
1845
+ 'FQN of anon function'($) {
1846
+ const $$ = Object.assign($, { $mol_func_name_test: (() => () => { })() });
1847
+ $mol_assert_equal($$.$mol_func_name_test.name, '');
1848
+ $mol_assert_equal($$.$mol_func_name($$.$mol_func_name_test), '$mol_func_name_test');
1849
+ $mol_assert_equal($$.$mol_func_name_test.name, '$mol_func_name_test');
1850
+ },
1851
+ });
1852
+ })($ || ($ = {}));
1853
+ //mol/func/name/name.test.ts
1808
1854
  ;
1809
1855
  "use strict";
1810
1856
  var $;
@@ -1868,52 +1914,6 @@ var $;
1868
1914
  ;
1869
1915
  "use strict";
1870
1916
  var $;
1871
- (function ($_1) {
1872
- $mol_test({
1873
- 'FQN of anon function'($) {
1874
- const $$ = Object.assign($, { $mol_func_name_test: (() => () => { })() });
1875
- $mol_assert_equal($$.$mol_func_name_test.name, '');
1876
- $mol_assert_equal($$.$mol_func_name($$.$mol_func_name_test), '$mol_func_name_test');
1877
- $mol_assert_equal($$.$mol_func_name_test.name, '$mol_func_name_test');
1878
- },
1879
- });
1880
- })($ || ($ = {}));
1881
- //mol/func/name/name.test.ts
1882
- ;
1883
- "use strict";
1884
- var $;
1885
- (function ($) {
1886
- const named = new WeakSet();
1887
- function $mol_func_name(func) {
1888
- let name = func.name;
1889
- if (name?.length > 1)
1890
- return name;
1891
- if (named.has(func))
1892
- return name;
1893
- for (let key in this) {
1894
- try {
1895
- if (this[key] !== func)
1896
- continue;
1897
- name = key;
1898
- Object.defineProperty(func, 'name', { value: name });
1899
- break;
1900
- }
1901
- catch { }
1902
- }
1903
- named.add(func);
1904
- return name;
1905
- }
1906
- $.$mol_func_name = $mol_func_name;
1907
- function $mol_func_name_from(target, source) {
1908
- Object.defineProperty(target, 'name', { value: source.name });
1909
- return target;
1910
- }
1911
- $.$mol_func_name_from = $mol_func_name_from;
1912
- })($ || ($ = {}));
1913
- //mol/func/name/name.ts
1914
- ;
1915
- "use strict";
1916
- var $;
1917
1917
  (function ($) {
1918
1918
  $mol_test({
1919
1919
  async 'sizes'() {