paystack-sdk 3.0.0 → 3.4.1

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/index.d.ts CHANGED
@@ -1 +1,3 @@
1
+ import Paystack from './paystack';
2
+ export default Paystack;
1
3
  export { Paystack } from './paystack';
package/dist/index.js CHANGED
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.Paystack = void 0;
4
- var paystack_1 = require("./paystack");
5
- Object.defineProperty(exports, "Paystack", { enumerable: true, get: function () { return paystack_1.Paystack; } });
7
+ const paystack_1 = __importDefault(require("./paystack"));
8
+ exports.default = paystack_1.default;
9
+ var paystack_2 = require("./paystack");
10
+ Object.defineProperty(exports, "Paystack", { enumerable: true, get: function () { return paystack_2.Paystack; } });
@@ -45,3 +45,4 @@ export declare class Paystack {
45
45
  misc: Misc;
46
46
  constructor(key: string);
47
47
  }
48
+ export default Paystack;
package/dist/paystack.js CHANGED
@@ -38,7 +38,7 @@ class Paystack {
38
38
  'Content-Type': 'application/json',
39
39
  },
40
40
  });
41
- this.http.interceptors.response.use((response) => (response.data = JSON.parse(response.data)));
41
+ this.http.interceptors.response.use((response) => response.data);
42
42
  this.bulkcharge = new bulkcharge_1.BulkCharge(this.http);
43
43
  this.charge = new charge_1.Charge(this.http);
44
44
  this.customer = new customer_1.Customer(this.http);
@@ -61,3 +61,4 @@ class Paystack {
61
61
  }
62
62
  }
63
63
  exports.Paystack = Paystack;
64
+ exports.default = Paystack;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paystack-sdk",
3
- "version": "3.0.0",
3
+ "version": "3.4.1",
4
4
  "description": "Paystack SDK written in Typescript",
5
5
  "main": "dist/index.js",
6
6
  "author": "Tech Priest",