mol_vary 0.0.20 → 0.0.21
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 +4 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +4 -2
- package/web.test.js.map +1 -1
package/package.json
CHANGED
package/web.test.js
CHANGED
|
@@ -1629,8 +1629,10 @@ var $;
|
|
|
1629
1629
|
check(new Set([7, 'foo']), [tupl | 1, text | 3, ...str('set'), list | 2, 7, text | 3, ...str('foo')]);
|
|
1630
1630
|
},
|
|
1631
1631
|
"vary pack Date"($) {
|
|
1632
|
-
const
|
|
1633
|
-
check(
|
|
1632
|
+
const date1 = new Date('2025-01-02T03:04:05');
|
|
1633
|
+
check(date1, [tupl | 1, text | 9, ...str('unix_time'), uint | l4, ...new Uint8Array(new Uint32Array([date1.valueOf() / 1000]).buffer)]);
|
|
1634
|
+
const date2 = new Date('2025-01-02T03:04:05.678');
|
|
1635
|
+
check(date2, [tupl | 1, text | 9, ...str('unix_time'), fp64, ...new Uint8Array(new Float64Array([date2.valueOf() / 1000]).buffer)]);
|
|
1634
1636
|
},
|
|
1635
1637
|
"vary pack custom class"($) {
|
|
1636
1638
|
class Foo {
|