paystack-sdk 1.0.2 → 1.0.3

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,11 +1,2 @@
1
- import { Charge } from './charge/charge';
2
- /**
3
- * Paystack SDK
4
- * @author Asaju Enitan <@en1tan>
5
- */
6
- export declare class Paystack {
7
- readonly key: string;
8
- private http;
9
- charge: Charge;
10
- constructor(key: string);
11
- }
1
+ import Paystack from './paystack';
2
+ export = Paystack;
package/dist/index.js CHANGED
@@ -1,24 +1,6 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Paystack = void 0;
4
- var axios_1 = require("axios");
5
- var charge_1 = require("./charge/charge");
6
- /**
7
- * Paystack SDK
8
- * @author Asaju Enitan <@en1tan>
9
- */
10
- var Paystack = /** @class */ (function () {
11
- function Paystack(key) {
12
- this.key = key;
13
- this.http = new axios_1.Axios({
14
- baseURL: 'https://api.paystack.co',
15
- headers: {
16
- Authorization: "Bearer ".concat(this.key),
17
- 'Content-Type': 'application/json',
18
- },
19
- });
20
- this.charge = new charge_1.Charge(this.http);
21
- }
22
- return Paystack;
23
- }());
24
- exports.Paystack = Paystack;
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ const paystack_1 = __importDefault(require("./paystack"));
6
+ module.exports = paystack_1.default;
@@ -0,0 +1,11 @@
1
+ import { Charge } from './charge/charge';
2
+ /**
3
+ * Paystack SDK
4
+ * @author Asaju Enitan <@en1tan>
5
+ */
6
+ export default class Paystack {
7
+ readonly key: string;
8
+ private http;
9
+ charge: Charge;
10
+ constructor(key: string);
11
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const axios_1 = require("axios");
4
+ const charge_1 = require("./charge/charge");
5
+ /**
6
+ * Paystack SDK
7
+ * @author Asaju Enitan <@en1tan>
8
+ */
9
+ class Paystack {
10
+ key;
11
+ http;
12
+ charge;
13
+ constructor(key) {
14
+ this.key = key;
15
+ this.http = new axios_1.Axios({
16
+ baseURL: 'https://api.paystack.co',
17
+ headers: {
18
+ Authorization: `Bearer ${this.key}`,
19
+ 'Content-Type': 'application/json',
20
+ },
21
+ });
22
+ this.charge = new charge_1.Charge(this.http);
23
+ }
24
+ }
25
+ exports.default = Paystack;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paystack-sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Paystack SDK written in Typescript",
5
5
  "main": "dist/index.js",
6
6
  "author": "Koderant",