@certik/skynet 0.10.51 → 0.10.53

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+
4
+ ## 0.10.53
5
+
6
+ - Fix: handle edge cases that token address has multiply ':'
7
+
8
+ ## 0.10.52
9
+
10
+ - Refactor: `getDateOnly` now accepts both date strings and date objects
11
+
3
12
  ## 0.10.50 & 0.10.51
4
13
 
5
14
  - Updated slack postMessage to allow passing channelId directly
package/address.js CHANGED
@@ -1,7 +1,7 @@
1
1
  function parseAddress(address) {
2
2
  const parts = address.split(":");
3
3
 
4
- if (parts.length === 2) {
4
+ if (parts.length > 1) {
5
5
  return [parts[0], parts[1].toLowerCase()];
6
6
  }
7
7
 
@@ -14,5 +14,5 @@ function composeAddress(protocol, addr) {
14
14
 
15
15
  module.exports = {
16
16
  parseAddress,
17
- composeAddress
17
+ composeAddress,
18
18
  };
package/date.js CHANGED
@@ -3,7 +3,7 @@ const { arrayGroup } = require("./util");
3
3
  const MS_IN_A_DAY = 3600 * 24 * 1000;
4
4
 
5
5
  function getDateOnly(date) {
6
- return date.toISOString().split("T")[0];
6
+ return new Date(date).toISOString().split("T")[0];
7
7
  }
8
8
 
9
9
  function findDateAfter(date, n) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@certik/skynet",
3
- "version": "0.10.51",
3
+ "version": "0.10.53",
4
4
  "description": "Skynet Shared JS library",
5
5
  "main": "index.js",
6
6
  "author": "CertiK Engineering",