@upcoming/bee-js 0.16.0 → 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.
@@ -5,6 +5,9 @@ export class Duration {
5
5
  throw Error('Duration must be greater than 0');
6
6
  }
7
7
  }
8
+ static fromMilliseconds(milliseconds) {
9
+ return new Duration(milliseconds / 1000);
10
+ }
8
11
  static fromSeconds(seconds) {
9
12
  return new Duration(seconds);
10
13
  }
@@ -1,6 +1,7 @@
1
1
  export declare class Duration {
2
2
  private seconds;
3
3
  private constructor();
4
+ static fromMilliseconds(milliseconds: number): Duration;
4
5
  static fromSeconds(seconds: number): Duration;
5
6
  static fromHours(hours: number): Duration;
6
7
  static fromDays(days: number): Duration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upcoming/bee-js",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Javascript client for Bee",
5
5
  "keywords": [
6
6
  "bee",
@@ -63,7 +63,7 @@
63
63
  },
64
64
  "dependencies": {
65
65
  "axios": "^0.28.1",
66
- "cafe-utility": "^27.14.0",
66
+ "cafe-utility": "^27.14.1",
67
67
  "isomorphic-ws": "^4.0.1",
68
68
  "semver": "^7.3.5",
69
69
  "ws": "^8.7.0"