@dripfi/drip-sdk 1.2.14 → 1.2.15

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/dist/DripApi.js CHANGED
@@ -535,7 +535,7 @@ class DripApi {
535
535
  headers: reqHeaders,
536
536
  });
537
537
  const data = yield res.json();
538
- return res.ok ? new AuthenticationStatus_1.ValidStatus(data.address) : new AuthenticationStatus_1.ErrorStatus(data.error);
538
+ return res.ok ? new AuthenticationStatus_1.ValidStatus(data.address, token) : new AuthenticationStatus_1.ErrorStatus(data.error);
539
539
  }
540
540
  catch (error) {
541
541
  console.log(error);
@@ -8,7 +8,8 @@ export declare class ValidStatus implements AuthenticationStatus {
8
8
  message: string;
9
9
  isAuthenticated: boolean;
10
10
  address: string;
11
- constructor(address: string);
11
+ token: string;
12
+ constructor(address: string, token: string);
12
13
  }
13
14
  export declare class ErrorStatus implements AuthenticationStatus {
14
15
  message: string;
@@ -2,10 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ErrorStatus = exports.ValidStatus = void 0;
4
4
  class ValidStatus {
5
- constructor(address) {
5
+ constructor(address, token) {
6
6
  this.message = 'Valid Token';
7
7
  this.isAuthenticated = true;
8
8
  this.address = address;
9
+ this.token = token;
9
10
  }
10
11
  }
11
12
  exports.ValidStatus = ValidStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dripfi/drip-sdk",
3
- "version": "1.2.14",
3
+ "version": "1.2.15",
4
4
  "description": "Drip SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",