@ariary/ariary 1.0.7 → 2.0.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.
@@ -1,51 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/transfert/index.ts
21
- var transfert_exports = {};
22
- __export(transfert_exports, {
23
- TransferService: () => TransferService
24
- });
25
- module.exports = __toCommonJS(transfert_exports);
26
-
27
- // src/transfert.ts
28
- var TransferService = class {
29
- constructor(client) {
30
- this.client = client;
31
- }
32
- async send(phone, amount) {
33
- const response = await this.client.post(
34
- "/api/send-transaction",
35
- { phone, amount },
36
- true
37
- );
38
- return response;
39
- }
40
- async getAll() {
41
- const response = await this.client.get(
42
- "/api/send-transaction",
43
- true
44
- );
45
- return response;
46
- }
47
- };
48
- // Annotate the CommonJS export names for ESM import in node:
49
- 0 && (module.exports = {
50
- TransferService
51
- });
@@ -1,24 +0,0 @@
1
- // src/transfert.ts
2
- var TransferService = class {
3
- constructor(client) {
4
- this.client = client;
5
- }
6
- async send(phone, amount) {
7
- const response = await this.client.post(
8
- "/api/send-transaction",
9
- { phone, amount },
10
- true
11
- );
12
- return response;
13
- }
14
- async getAll() {
15
- const response = await this.client.get(
16
- "/api/send-transaction",
17
- true
18
- );
19
- return response;
20
- }
21
- };
22
- export {
23
- TransferService
24
- };