playttm 0.0.2 → 0.0.4
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/lib.js +0 -3
- package/package.json +2 -3
- package/src/lib.ts +0 -5
package/dist/lib.js
CHANGED
|
@@ -50,7 +50,6 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
50
50
|
const cheerio = __importStar(require("cheerio"));
|
|
51
51
|
const axios_cookiejar_support_1 = require("axios-cookiejar-support");
|
|
52
52
|
const tough_cookie_1 = require("tough-cookie");
|
|
53
|
-
const qrcode_terminal_1 = __importDefault(require("qrcode-terminal"));
|
|
54
53
|
// ==========================================
|
|
55
54
|
// Main Library Class
|
|
56
55
|
// ==========================================
|
|
@@ -818,8 +817,6 @@ class ThaiTicketMajor {
|
|
|
818
817
|
console.log("📱 กรุณาสแกน QR Code ด้านล่างเพื่อชำระเงิน:");
|
|
819
818
|
}
|
|
820
819
|
console.log("=".repeat(46));
|
|
821
|
-
qrcode_terminal_1.default.generate(qrString, { small: true });
|
|
822
|
-
console.log("=".repeat(46) + "\n");
|
|
823
820
|
}
|
|
824
821
|
displayQRCode(qrString, title) {
|
|
825
822
|
ThaiTicketMajor.displayQRCode(qrString, title);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playttm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Make HTML Metadata to JSON",
|
|
5
5
|
"main": "dist/lib.js",
|
|
6
6
|
"types": "dist/lib.d.ts",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"axios-cookiejar-support": "^7.0.0",
|
|
18
18
|
"cheerio": "^1.2.0",
|
|
19
19
|
"fs": "^0.0.1-security",
|
|
20
|
-
"qrcode-terminal": "^0.12.0",
|
|
21
20
|
"tough-cookie": "^6.0.2",
|
|
22
21
|
"typescript": "^7.0.2"
|
|
23
22
|
},
|
|
@@ -26,4 +25,4 @@
|
|
|
26
25
|
"@types/qrcode-terminal": "^0.12.2",
|
|
27
26
|
"tsx": "^4.23.15"
|
|
28
27
|
}
|
|
29
|
-
}
|
|
28
|
+
}
|
package/src/lib.ts
CHANGED
|
@@ -2,7 +2,6 @@ import axios, { AxiosInstance } from "axios";
|
|
|
2
2
|
import * as cheerio from "cheerio";
|
|
3
3
|
import { wrapper } from "axios-cookiejar-support";
|
|
4
4
|
import { CookieJar } from "tough-cookie";
|
|
5
|
-
import qrcodeTerminal from "qrcode-terminal";
|
|
6
5
|
|
|
7
6
|
// ==========================================
|
|
8
7
|
// Interfaces & Types
|
|
@@ -1123,10 +1122,6 @@ export class ThaiTicketMajor {
|
|
|
1123
1122
|
console.log("📱 กรุณาสแกน QR Code ด้านล่างเพื่อชำระเงิน:");
|
|
1124
1123
|
}
|
|
1125
1124
|
console.log("=".repeat(46));
|
|
1126
|
-
|
|
1127
|
-
qrcodeTerminal.generate(qrString, { small: true });
|
|
1128
|
-
|
|
1129
|
-
console.log("=".repeat(46) + "\n");
|
|
1130
1125
|
}
|
|
1131
1126
|
|
|
1132
1127
|
public displayQRCode(qrString: string, title?: string): void {
|