mol_crypto_lib 0.0.632 → 0.0.633
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 +101 -101
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +53 -53
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -1070,6 +1070,12 @@ 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 $;
|
|
1073
1079
|
(function ($_1) {
|
|
1074
1080
|
$mol_test_mocks.push($ => {
|
|
1075
1081
|
$.$mol_log3_come = () => { };
|
|
@@ -1083,30 +1089,6 @@ var $;
|
|
|
1083
1089
|
//mol/log3/log3.test.ts
|
|
1084
1090
|
;
|
|
1085
1091
|
"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";
|
|
1110
1092
|
var $;
|
|
1111
1093
|
(function ($) {
|
|
1112
1094
|
$.$mol_dom_context = new $node.jsdom.JSDOM('', { url: 'https://localhost/' }).window;
|
|
@@ -1169,12 +1151,27 @@ var $;
|
|
|
1169
1151
|
//mol/dom/render/children/children.ts
|
|
1170
1152
|
;
|
|
1171
1153
|
"use strict";
|
|
1172
|
-
//mol/type/
|
|
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
|
|
1173
1167
|
;
|
|
1174
1168
|
"use strict";
|
|
1175
1169
|
//mol/type/partial/deep/deep.test.ts
|
|
1176
1170
|
;
|
|
1177
1171
|
"use strict";
|
|
1172
|
+
//mol/type/partial/deep/deep.ts
|
|
1173
|
+
;
|
|
1174
|
+
"use strict";
|
|
1178
1175
|
var $;
|
|
1179
1176
|
(function ($) {
|
|
1180
1177
|
$mol_test({
|
|
@@ -1619,6 +1616,38 @@ var $;
|
|
|
1619
1616
|
;
|
|
1620
1617
|
"use strict";
|
|
1621
1618
|
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 $;
|
|
1622
1651
|
(function ($) {
|
|
1623
1652
|
function $mol_assert_ok(value) {
|
|
1624
1653
|
if (value)
|
|
@@ -1713,38 +1742,6 @@ var $;
|
|
|
1713
1742
|
;
|
|
1714
1743
|
"use strict";
|
|
1715
1744
|
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 $;
|
|
1748
1745
|
(function ($) {
|
|
1749
1746
|
$mol_test({
|
|
1750
1747
|
'get'() {
|
|
@@ -1807,50 +1804,7 @@ var $;
|
|
|
1807
1804
|
//mol/delegate/delegate.test.ts
|
|
1808
1805
|
;
|
|
1809
1806
|
"use strict";
|
|
1810
|
-
|
|
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
|
|
1807
|
+
//mol/type/writable/writable.test.ts
|
|
1854
1808
|
;
|
|
1855
1809
|
"use strict";
|
|
1856
1810
|
var $;
|
|
@@ -1914,6 +1868,52 @@ var $;
|
|
|
1914
1868
|
;
|
|
1915
1869
|
"use strict";
|
|
1916
1870
|
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'() {
|