@upcoming/bee-js 0.16.1 → 0.17.0

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.
@@ -8,6 +8,9 @@ class Duration {
8
8
  throw Error('Duration must be greater than 0');
9
9
  }
10
10
  }
11
+ static fromMilliseconds(milliseconds) {
12
+ return new Duration(milliseconds / 1000);
13
+ }
11
14
  static fromSeconds(seconds) {
12
15
  return new Duration(seconds);
13
16
  }