@alodi/site 0.1.5 → 0.2.1-alpha.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.
- package/CHANGELOG.md +10 -5
- package/dist/argv.d.ts +2 -6
- package/dist/argv.js +20 -11
- package/dist/cjs/argv.d.ts +2 -6
- package/dist/cjs/argv.js +17 -8
- package/dist/cjs/data.d.ts +2 -2
- package/dist/cjs/data.js +12 -12
- package/dist/cjs/index.d.ts +15 -15
- package/dist/cjs/index.js +48 -54
- package/dist/data.d.ts +2 -2
- package/dist/data.js +12 -12
- package/dist/index.d.ts +15 -15
- package/dist/index.js +31 -23
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.1.
|
|
3
|
+
## [0.2.1-alpha.0](https://git.lodiops.com/bag_web/lodi-site/compare/v0.1.4...v0.2.1-alpha.0) (2026-07-01)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Features
|
|
7
7
|
|
|
8
|
+
* 82pg 91pg modify name ([f0c4b54](https://git.lodiops.com/bag_web/lodi-site/commits/f0c4b5473ddd54e35b62d28f452341ac9aed54fc))
|
|
9
|
+
* 重写country ([bf7a1f7](https://git.lodiops.com/bag_web/lodi-site/commits/bf7a1f767f0ac47e2ce28f15c970fe245de71bea))
|
|
10
|
+
* site aliasName ([7c181f1](https://git.lodiops.com/bag_web/lodi-site/commits/7c181f18f267db642e84482eff736ad137204750))
|
|
8
11
|
* update ([44e9db9](https://git.lodiops.com/bag_web/lodi-site/commits/44e9db9d01501e610cb8711ce050513515733f31))
|
|
9
12
|
|
|
10
13
|
##
|
|
@@ -13,13 +16,15 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
13
16
|
|
|
14
17
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
15
18
|
|
|
16
|
-
#### [v0.1.
|
|
19
|
+
#### [v0.2.1-alpha.0](https://github.com/hoolodi/lodi-site/compare/v0.1.4...v0.2.1-alpha.0)
|
|
17
20
|
|
|
18
|
-
- feat:
|
|
21
|
+
- feat: 重写country [`bf7a1f7`](https://github.com/hoolodi/lodi-site/commit/bf7a1f767f0ac47e2ce28f15c970fe245de71bea)
|
|
22
|
+
- feat: 82pg 91pg modify name [`f0c4b54`](https://github.com/hoolodi/lodi-site/commit/f0c4b5473ddd54e35b62d28f452341ac9aed54fc)
|
|
23
|
+
- chore(release): v0.1.5 [`ffbd343`](https://github.com/hoolodi/lodi-site/commit/ffbd3434fb2bc9835711df787b8b690802a3041d)
|
|
19
24
|
|
|
20
25
|
#### v0.1.4
|
|
21
26
|
|
|
22
27
|
> 16 September 2025
|
|
23
28
|
|
|
24
|
-
- init [`ddd3d25`](https://
|
|
25
|
-
- chore(release): v0.1.4 [`d134996`](https://
|
|
29
|
+
- init [`ddd3d25`](https://github.com/hoolodi/lodi-site/commit/ddd3d259ede2507130de5c85baeeb4450f949074)
|
|
30
|
+
- chore(release): v0.1.4 [`d134996`](https://github.com/hoolodi/lodi-site/commit/d1349962251c5cef370d1cff5e1a3e8096cd5b1e)
|
package/dist/argv.d.ts
CHANGED
|
@@ -4,15 +4,11 @@ declare const options: readonly [{
|
|
|
4
4
|
readonly describe: "指定平台";
|
|
5
5
|
readonly choices: readonly ["ios", "android"];
|
|
6
6
|
readonly demandOption: true;
|
|
7
|
-
}, {
|
|
8
|
-
readonly name: "country";
|
|
9
|
-
readonly describe: "指定国家";
|
|
10
|
-
readonly choices: ("lodi" | "ncg")[];
|
|
11
|
-
readonly demandOption: true;
|
|
12
7
|
}, {
|
|
13
8
|
readonly name: "site";
|
|
14
9
|
readonly describe: "指定站点";
|
|
15
|
-
readonly choices: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "
|
|
10
|
+
readonly choices: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777" | "wasp" | "82pg" | "91pg" | "zappspin" | "waspspin" | "haa555" | "vangwin" | "sortewin")[];
|
|
11
|
+
readonly coerce: (s: string) => string;
|
|
16
12
|
readonly demandOption: true;
|
|
17
13
|
}, {
|
|
18
14
|
readonly name: "api";
|
package/dist/argv.js
CHANGED
|
@@ -7,23 +7,33 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
-
import yargs from 'yargs/yargs';
|
|
11
10
|
import { hideBin } from 'yargs/helpers';
|
|
12
|
-
import
|
|
11
|
+
import yargs from 'yargs/yargs';
|
|
12
|
+
import { SITE } from "./index";
|
|
13
|
+
// import { COUNTRY } from './index';
|
|
14
|
+
|
|
13
15
|
var options = [{
|
|
14
16
|
name: 'platform',
|
|
15
17
|
describe: '指定平台',
|
|
16
18
|
choices: ['ios', 'android'],
|
|
17
19
|
demandOption: true
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
},
|
|
21
|
+
// {
|
|
22
|
+
// name: 'country',
|
|
23
|
+
// describe: '指定国家',
|
|
24
|
+
// choices: Object.values(COUNTRY),
|
|
25
|
+
// demandOption: true,
|
|
26
|
+
// },
|
|
27
|
+
{
|
|
24
28
|
name: 'site',
|
|
25
29
|
describe: '指定站点',
|
|
26
|
-
choices:
|
|
30
|
+
choices: Object.values(SITE),
|
|
31
|
+
coerce: function coerce(s) {
|
|
32
|
+
if (s === 'aura69') return SITE.PG_91;
|
|
33
|
+
if (s === 'aura88') return SITE.PG_82;
|
|
34
|
+
if (s === 'waspwin') return SITE.ZAPP_SPIN;
|
|
35
|
+
return s;
|
|
36
|
+
},
|
|
27
37
|
demandOption: true
|
|
28
38
|
}, {
|
|
29
39
|
name: 'api',
|
|
@@ -64,5 +74,4 @@ export function siteArgv() {
|
|
|
64
74
|
result.option(item.name, _objectSpread({}, item));
|
|
65
75
|
});
|
|
66
76
|
return result;
|
|
67
|
-
}
|
|
68
|
-
;
|
|
77
|
+
}
|
package/dist/cjs/argv.d.ts
CHANGED
|
@@ -4,15 +4,11 @@ declare const options: readonly [{
|
|
|
4
4
|
readonly describe: "指定平台";
|
|
5
5
|
readonly choices: readonly ["ios", "android"];
|
|
6
6
|
readonly demandOption: true;
|
|
7
|
-
}, {
|
|
8
|
-
readonly name: "country";
|
|
9
|
-
readonly describe: "指定国家";
|
|
10
|
-
readonly choices: ("lodi" | "ncg")[];
|
|
11
|
-
readonly demandOption: true;
|
|
12
7
|
}, {
|
|
13
8
|
readonly name: "site";
|
|
14
9
|
readonly describe: "指定站点";
|
|
15
|
-
readonly choices: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "
|
|
10
|
+
readonly choices: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777" | "wasp" | "82pg" | "91pg" | "zappspin" | "waspspin" | "haa555" | "vangwin" | "sortewin")[];
|
|
11
|
+
readonly coerce: (s: string) => string;
|
|
16
12
|
readonly demandOption: true;
|
|
17
13
|
}, {
|
|
18
14
|
readonly name: "api";
|
package/dist/cjs/argv.js
CHANGED
|
@@ -32,8 +32,8 @@ __export(argv_exports, {
|
|
|
32
32
|
siteArgv: () => siteArgv
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(argv_exports);
|
|
35
|
-
var import_yargs = __toESM(require("yargs/yargs"));
|
|
36
35
|
var import_helpers = require("yargs/helpers");
|
|
36
|
+
var import_yargs = __toESM(require("yargs/yargs"));
|
|
37
37
|
var import_index = require("./index");
|
|
38
38
|
var options = [
|
|
39
39
|
{
|
|
@@ -42,16 +42,25 @@ var options = [
|
|
|
42
42
|
choices: ["ios", "android"],
|
|
43
43
|
demandOption: true
|
|
44
44
|
},
|
|
45
|
-
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
},
|
|
45
|
+
// {
|
|
46
|
+
// name: 'country',
|
|
47
|
+
// describe: '指定国家',
|
|
48
|
+
// choices: Object.values(COUNTRY),
|
|
49
|
+
// demandOption: true,
|
|
50
|
+
// },
|
|
51
51
|
{
|
|
52
52
|
name: "site",
|
|
53
53
|
describe: "指定站点",
|
|
54
|
-
choices: import_index.
|
|
54
|
+
choices: Object.values(import_index.SITE),
|
|
55
|
+
coerce: (s) => {
|
|
56
|
+
if (s === "aura69")
|
|
57
|
+
return import_index.SITE.PG_91;
|
|
58
|
+
if (s === "aura88")
|
|
59
|
+
return import_index.SITE.PG_82;
|
|
60
|
+
if (s === "waspwin")
|
|
61
|
+
return import_index.SITE.ZAPP_SPIN;
|
|
62
|
+
return s;
|
|
63
|
+
},
|
|
55
64
|
demandOption: true
|
|
56
65
|
},
|
|
57
66
|
{
|
package/dist/cjs/data.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SITE } from './index';
|
|
2
2
|
export declare const DefaultSupportEmail = "lodics001@outlook.com";
|
|
3
3
|
export type SiteItem = {
|
|
4
4
|
name: string;
|
|
@@ -24,4 +24,4 @@ export type SiteItem = {
|
|
|
24
24
|
support_email: string;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
export declare const SiteData: Record<
|
|
27
|
+
export declare const SiteData: Record<(typeof SITE)[keyof typeof SITE], SiteItem>;
|
package/dist/cjs/data.js
CHANGED
|
@@ -187,15 +187,15 @@ var SiteData = {
|
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
[import_index.SITE.PG_82]: {
|
|
190
|
-
name: "
|
|
190
|
+
name: "AURA88",
|
|
191
191
|
seo: {
|
|
192
|
-
url: "https://www.
|
|
193
|
-
site_name: "
|
|
192
|
+
url: "https://www.aura88.com/",
|
|
193
|
+
site_name: "aura88.com"
|
|
194
194
|
},
|
|
195
195
|
text: {
|
|
196
|
-
title: "
|
|
197
|
-
site: "
|
|
198
|
-
domain: "
|
|
196
|
+
title: "aura88 Gaming",
|
|
197
|
+
site: "aura88.com",
|
|
198
|
+
domain: "AURA88.com",
|
|
199
199
|
facebookMessenger: "82PGgaming",
|
|
200
200
|
instagram: "82PG_ph",
|
|
201
201
|
telegram: "",
|
|
@@ -203,15 +203,15 @@ var SiteData = {
|
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
205
|
[import_index.SITE.PG_91]: {
|
|
206
|
-
name: "
|
|
206
|
+
name: "AURA69",
|
|
207
207
|
seo: {
|
|
208
|
-
url: "https://www.
|
|
209
|
-
site_name: "
|
|
208
|
+
url: "https://www.aura69.com/",
|
|
209
|
+
site_name: "aura69.com"
|
|
210
210
|
},
|
|
211
211
|
text: {
|
|
212
|
-
title: "
|
|
213
|
-
site: "
|
|
214
|
-
domain: "
|
|
212
|
+
title: "aura69 Gaming",
|
|
213
|
+
site: "aura69.com",
|
|
214
|
+
domain: "AURA69.com",
|
|
215
215
|
facebookMessenger: "91PGgaming",
|
|
216
216
|
instagram: "91PG_ph",
|
|
217
217
|
telegram: "",
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
type ValueType<T extends object> = T[keyof T];
|
|
2
|
+
export declare const COUNTRY: {
|
|
3
|
+
readonly PHL: "PHL";
|
|
4
|
+
readonly THA: "THA";
|
|
5
|
+
readonly VNM: "VNM";
|
|
6
|
+
readonly BRA: "BRA";
|
|
7
|
+
};
|
|
8
|
+
export type CountryName = ValueType<typeof COUNTRY>;
|
|
1
9
|
export declare const SITE: {
|
|
2
10
|
readonly JILI_291: "291jili";
|
|
3
11
|
readonly SUPER_291: "super291";
|
|
@@ -12,27 +20,19 @@ export declare const SITE: {
|
|
|
12
20
|
readonly LODI_GAME: "lodigame";
|
|
13
21
|
readonly LOL_646: "lol646";
|
|
14
22
|
readonly LODI_777: "lodi777";
|
|
23
|
+
readonly YDG_777: "ydg777";
|
|
24
|
+
} & {
|
|
15
25
|
readonly WASP: "wasp";
|
|
16
26
|
readonly PG_82: "82pg";
|
|
17
27
|
readonly PG_91: "91pg";
|
|
18
|
-
readonly YDG_777: "ydg777";
|
|
19
28
|
readonly ZAPP_SPIN: "zappspin";
|
|
20
29
|
readonly WASP_SPIN: "waspspin";
|
|
21
30
|
readonly HAA_555: "haa555";
|
|
31
|
+
} & {
|
|
22
32
|
readonly VANG_WIN: "vangwin";
|
|
33
|
+
} & {
|
|
23
34
|
readonly SORTE_WIN: "sortewin";
|
|
24
35
|
};
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
readonly LODI: "lodi";
|
|
29
|
-
readonly NCG: "ncg";
|
|
30
|
-
};
|
|
31
|
-
export declare const CountryKeys: ("lodi" | "ncg")[];
|
|
32
|
-
export type CountryKey = (typeof CountryKeys)[number];
|
|
33
|
-
export declare const NcgSiteKeys: readonly ["wasp", "82pg", "91pg", "zappspin", "waspspin", "haa555"];
|
|
34
|
-
export type NcgSiteKey = (typeof NcgSiteKeys)[number];
|
|
35
|
-
export declare const isNcgSite: (site: SiteKey) => site is "wasp" | "82pg" | "91pg" | "zappspin" | "waspspin" | "haa555";
|
|
36
|
-
export declare const LodiSiteKeys: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777" | "vangwin" | "sortewin")[];
|
|
37
|
-
export type LodiSiteKey = (typeof LodiSiteKeys)[number];
|
|
38
|
-
export declare const isLodiSite: (site: SiteKey) => site is "291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777" | "vangwin" | "sortewin";
|
|
36
|
+
export type SiteName = ValueType<typeof SITE>;
|
|
37
|
+
export declare const getSiteCountry: (site: SiteName) => "PHL" | "THA" | "VNM" | "BRA" | undefined;
|
|
38
|
+
export {};
|
package/dist/cjs/index.js
CHANGED
|
@@ -20,68 +20,62 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
var src_exports = {};
|
|
21
21
|
__export(src_exports, {
|
|
22
22
|
COUNTRY: () => COUNTRY,
|
|
23
|
-
CountryKeys: () => CountryKeys,
|
|
24
|
-
LodiSiteKeys: () => LodiSiteKeys,
|
|
25
|
-
NcgSiteKeys: () => NcgSiteKeys,
|
|
26
23
|
SITE: () => SITE,
|
|
27
|
-
|
|
28
|
-
isLodiSite: () => isLodiSite,
|
|
29
|
-
isNcgSite: () => isNcgSite
|
|
24
|
+
getSiteCountry: () => getSiteCountry
|
|
30
25
|
});
|
|
31
26
|
module.exports = __toCommonJS(src_exports);
|
|
32
|
-
var SITE = {
|
|
33
|
-
JILI_291: "291jili",
|
|
34
|
-
SUPER_291: "super291",
|
|
35
|
-
JILI_646: "646jili",
|
|
36
|
-
LODI_291: "lodi291",
|
|
37
|
-
TOP_646: "top646",
|
|
38
|
-
JILI_80: "80jili",
|
|
39
|
-
PH_646: "ph646",
|
|
40
|
-
ACE_291: "ace291",
|
|
41
|
-
HOT_646: "hot646",
|
|
42
|
-
LODI_646: "lodi646",
|
|
43
|
-
LODI_GAME: "lodigame",
|
|
44
|
-
LOL_646: "lol646",
|
|
45
|
-
LODI_777: "lodi777",
|
|
46
|
-
WASP: "wasp",
|
|
47
|
-
PG_82: "82pg",
|
|
48
|
-
PG_91: "91pg",
|
|
49
|
-
YDG_777: "ydg777",
|
|
50
|
-
ZAPP_SPIN: "zappspin",
|
|
51
|
-
WASP_SPIN: "waspspin",
|
|
52
|
-
HAA_555: "haa555",
|
|
53
|
-
VANG_WIN: "vangwin",
|
|
54
|
-
SORTE_WIN: "sortewin"
|
|
55
|
-
};
|
|
56
|
-
var SiteKeys = Object.keys(SITE).map(
|
|
57
|
-
(x) => SITE[x]
|
|
58
|
-
);
|
|
59
27
|
var COUNTRY = {
|
|
60
|
-
|
|
61
|
-
|
|
28
|
+
PHL: "PHL",
|
|
29
|
+
THA: "THA",
|
|
30
|
+
VNM: "VNM",
|
|
31
|
+
BRA: "BRA"
|
|
32
|
+
};
|
|
33
|
+
var SITE_MAP = {
|
|
34
|
+
[COUNTRY.PHL]: {
|
|
35
|
+
JILI_291: "291jili",
|
|
36
|
+
SUPER_291: "super291",
|
|
37
|
+
JILI_646: "646jili",
|
|
38
|
+
LODI_291: "lodi291",
|
|
39
|
+
TOP_646: "top646",
|
|
40
|
+
JILI_80: "80jili",
|
|
41
|
+
PH_646: "ph646",
|
|
42
|
+
ACE_291: "ace291",
|
|
43
|
+
HOT_646: "hot646",
|
|
44
|
+
LODI_646: "lodi646",
|
|
45
|
+
LODI_GAME: "lodigame",
|
|
46
|
+
LOL_646: "lol646",
|
|
47
|
+
LODI_777: "lodi777",
|
|
48
|
+
YDG_777: "ydg777"
|
|
49
|
+
},
|
|
50
|
+
[COUNTRY.THA]: {
|
|
51
|
+
WASP: "wasp",
|
|
52
|
+
PG_82: "82pg",
|
|
53
|
+
PG_91: "91pg",
|
|
54
|
+
ZAPP_SPIN: "zappspin",
|
|
55
|
+
WASP_SPIN: "waspspin",
|
|
56
|
+
HAA_555: "haa555"
|
|
57
|
+
},
|
|
58
|
+
[COUNTRY.VNM]: {
|
|
59
|
+
VANG_WIN: "vangwin"
|
|
60
|
+
},
|
|
61
|
+
[COUNTRY.BRA]: {
|
|
62
|
+
SORTE_WIN: "sortewin"
|
|
63
|
+
}
|
|
62
64
|
};
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
SITE.PG_82,
|
|
67
|
-
SITE.PG_91,
|
|
68
|
-
SITE.ZAPP_SPIN,
|
|
69
|
-
SITE.WASP_SPIN,
|
|
70
|
-
SITE.HAA_555
|
|
71
|
-
];
|
|
72
|
-
var isNcgSite = (site) => NcgSiteKeys.indexOf(site) !== -1;
|
|
73
|
-
var LodiSiteKeys = SiteKeys.filter(
|
|
74
|
-
(site) => !isNcgSite(site)
|
|
65
|
+
var SITE = Object.keys(SITE_MAP).reduce(
|
|
66
|
+
(acc, cur) => ({ ...acc, ...SITE_MAP[cur] }),
|
|
67
|
+
{}
|
|
75
68
|
);
|
|
76
|
-
var
|
|
69
|
+
var getSiteCountry = (site) => {
|
|
70
|
+
for (const country of Object.keys(SITE_MAP)) {
|
|
71
|
+
if (Object.values(SITE_MAP[country]).some((_) => _ === site)) {
|
|
72
|
+
return country;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
77
76
|
// Annotate the CommonJS export names for ESM import in node:
|
|
78
77
|
0 && (module.exports = {
|
|
79
78
|
COUNTRY,
|
|
80
|
-
CountryKeys,
|
|
81
|
-
LodiSiteKeys,
|
|
82
|
-
NcgSiteKeys,
|
|
83
79
|
SITE,
|
|
84
|
-
|
|
85
|
-
isLodiSite,
|
|
86
|
-
isNcgSite
|
|
80
|
+
getSiteCountry
|
|
87
81
|
});
|
package/dist/data.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SITE } from './index';
|
|
2
2
|
export declare const DefaultSupportEmail = "lodics001@outlook.com";
|
|
3
3
|
export type SiteItem = {
|
|
4
4
|
name: string;
|
|
@@ -24,4 +24,4 @@ export type SiteItem = {
|
|
|
24
24
|
support_email: string;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
export declare const SiteData: Record<
|
|
27
|
+
export declare const SiteData: Record<(typeof SITE)[keyof typeof SITE], SiteItem>;
|
package/dist/data.js
CHANGED
|
@@ -156,30 +156,30 @@ export var SiteData = (_SiteData = {}, _defineProperty(_defineProperty(_definePr
|
|
|
156
156
|
support_email: 'support@group646.com'
|
|
157
157
|
}
|
|
158
158
|
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_SiteData, SITE.PG_82, {
|
|
159
|
-
name: '
|
|
159
|
+
name: 'AURA88',
|
|
160
160
|
seo: {
|
|
161
|
-
url: 'https://www.
|
|
162
|
-
site_name: '
|
|
161
|
+
url: 'https://www.aura88.com/',
|
|
162
|
+
site_name: 'aura88.com'
|
|
163
163
|
},
|
|
164
164
|
text: {
|
|
165
|
-
title: '
|
|
166
|
-
site: '
|
|
167
|
-
domain: '
|
|
165
|
+
title: 'aura88 Gaming',
|
|
166
|
+
site: 'aura88.com',
|
|
167
|
+
domain: 'AURA88.com',
|
|
168
168
|
facebookMessenger: '82PGgaming',
|
|
169
169
|
instagram: '82PG_ph',
|
|
170
170
|
telegram: '',
|
|
171
171
|
support_email: DefaultSupportEmail
|
|
172
172
|
}
|
|
173
173
|
}), SITE.PG_91, {
|
|
174
|
-
name: '
|
|
174
|
+
name: 'AURA69',
|
|
175
175
|
seo: {
|
|
176
|
-
url: 'https://www.
|
|
177
|
-
site_name: '
|
|
176
|
+
url: 'https://www.aura69.com/',
|
|
177
|
+
site_name: 'aura69.com'
|
|
178
178
|
},
|
|
179
179
|
text: {
|
|
180
|
-
title: '
|
|
181
|
-
site: '
|
|
182
|
-
domain: '
|
|
180
|
+
title: 'aura69 Gaming',
|
|
181
|
+
site: 'aura69.com',
|
|
182
|
+
domain: 'AURA69.com',
|
|
183
183
|
facebookMessenger: '91PGgaming',
|
|
184
184
|
instagram: '91PG_ph',
|
|
185
185
|
telegram: '',
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
type ValueType<T extends object> = T[keyof T];
|
|
2
|
+
export declare const COUNTRY: {
|
|
3
|
+
readonly PHL: "PHL";
|
|
4
|
+
readonly THA: "THA";
|
|
5
|
+
readonly VNM: "VNM";
|
|
6
|
+
readonly BRA: "BRA";
|
|
7
|
+
};
|
|
8
|
+
export type CountryName = ValueType<typeof COUNTRY>;
|
|
1
9
|
export declare const SITE: {
|
|
2
10
|
readonly JILI_291: "291jili";
|
|
3
11
|
readonly SUPER_291: "super291";
|
|
@@ -12,27 +20,19 @@ export declare const SITE: {
|
|
|
12
20
|
readonly LODI_GAME: "lodigame";
|
|
13
21
|
readonly LOL_646: "lol646";
|
|
14
22
|
readonly LODI_777: "lodi777";
|
|
23
|
+
readonly YDG_777: "ydg777";
|
|
24
|
+
} & {
|
|
15
25
|
readonly WASP: "wasp";
|
|
16
26
|
readonly PG_82: "82pg";
|
|
17
27
|
readonly PG_91: "91pg";
|
|
18
|
-
readonly YDG_777: "ydg777";
|
|
19
28
|
readonly ZAPP_SPIN: "zappspin";
|
|
20
29
|
readonly WASP_SPIN: "waspspin";
|
|
21
30
|
readonly HAA_555: "haa555";
|
|
31
|
+
} & {
|
|
22
32
|
readonly VANG_WIN: "vangwin";
|
|
33
|
+
} & {
|
|
23
34
|
readonly SORTE_WIN: "sortewin";
|
|
24
35
|
};
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
readonly LODI: "lodi";
|
|
29
|
-
readonly NCG: "ncg";
|
|
30
|
-
};
|
|
31
|
-
export declare const CountryKeys: ("lodi" | "ncg")[];
|
|
32
|
-
export type CountryKey = (typeof CountryKeys)[number];
|
|
33
|
-
export declare const NcgSiteKeys: readonly ["wasp", "82pg", "91pg", "zappspin", "waspspin", "haa555"];
|
|
34
|
-
export type NcgSiteKey = (typeof NcgSiteKeys)[number];
|
|
35
|
-
export declare const isNcgSite: (site: SiteKey) => site is "wasp" | "82pg" | "91pg" | "zappspin" | "waspspin" | "haa555";
|
|
36
|
-
export declare const LodiSiteKeys: ("291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777" | "vangwin" | "sortewin")[];
|
|
37
|
-
export type LodiSiteKey = (typeof LodiSiteKeys)[number];
|
|
38
|
-
export declare const isLodiSite: (site: SiteKey) => site is "291jili" | "super291" | "646jili" | "lodi291" | "top646" | "80jili" | "ph646" | "ace291" | "hot646" | "lodi646" | "lodigame" | "lol646" | "lodi777" | "ydg777" | "vangwin" | "sortewin";
|
|
36
|
+
export type SiteName = ValueType<typeof SITE>;
|
|
37
|
+
export declare const getSiteCountry: (site: SiteName) => "PHL" | "THA" | "VNM" | "BRA" | undefined;
|
|
38
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
export var COUNTRY = {
|
|
8
|
+
PHL: 'PHL',
|
|
9
|
+
THA: 'THA',
|
|
10
|
+
VNM: 'VNM',
|
|
11
|
+
BRA: 'BRA'
|
|
12
|
+
};
|
|
13
|
+
var SITE_MAP = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, COUNTRY.PHL, {
|
|
2
14
|
JILI_291: '291jili',
|
|
3
15
|
SUPER_291: 'super291',
|
|
4
16
|
JILI_646: '646jili',
|
|
@@ -12,33 +24,29 @@ export var SITE = {
|
|
|
12
24
|
LODI_GAME: 'lodigame',
|
|
13
25
|
LOL_646: 'lol646',
|
|
14
26
|
LODI_777: 'lodi777',
|
|
27
|
+
YDG_777: 'ydg777'
|
|
28
|
+
}), COUNTRY.THA, {
|
|
15
29
|
WASP: 'wasp',
|
|
16
30
|
PG_82: '82pg',
|
|
17
31
|
PG_91: '91pg',
|
|
18
|
-
YDG_777: 'ydg777',
|
|
19
32
|
ZAPP_SPIN: 'zappspin',
|
|
20
33
|
WASP_SPIN: 'waspspin',
|
|
21
|
-
HAA_555: 'haa555'
|
|
22
|
-
|
|
34
|
+
HAA_555: 'haa555'
|
|
35
|
+
}), COUNTRY.VNM, {
|
|
36
|
+
VANG_WIN: 'vangwin'
|
|
37
|
+
}), COUNTRY.BRA, {
|
|
23
38
|
SORTE_WIN: 'sortewin'
|
|
24
|
-
};
|
|
25
|
-
export var SiteKeys = Object.keys(SITE).map(function (x) {
|
|
26
|
-
return SITE[x];
|
|
27
|
-
});
|
|
28
|
-
export var COUNTRY = {
|
|
29
|
-
LODI: 'lodi',
|
|
30
|
-
NCG: 'ncg'
|
|
31
|
-
};
|
|
32
|
-
export var CountryKeys = Object.keys(COUNTRY).map(function (x) {
|
|
33
|
-
return COUNTRY[x];
|
|
34
|
-
});
|
|
35
|
-
export var NcgSiteKeys = [SITE.WASP, SITE.PG_82, SITE.PG_91, SITE.ZAPP_SPIN, SITE.WASP_SPIN, SITE.HAA_555];
|
|
36
|
-
export var isNcgSite = function isNcgSite(site) {
|
|
37
|
-
return NcgSiteKeys.indexOf(site) !== -1;
|
|
38
|
-
};
|
|
39
|
-
export var LodiSiteKeys = SiteKeys.filter(function (site) {
|
|
40
|
-
return !isNcgSite(site);
|
|
41
39
|
});
|
|
42
|
-
export var
|
|
43
|
-
return
|
|
40
|
+
export var SITE = Object.keys(SITE_MAP).reduce(function (acc, cur) {
|
|
41
|
+
return _objectSpread(_objectSpread({}, acc), SITE_MAP[cur]);
|
|
42
|
+
}, {});
|
|
43
|
+
export var getSiteCountry = function getSiteCountry(site) {
|
|
44
|
+
for (var _i = 0, _Object$keys = Object.keys(SITE_MAP); _i < _Object$keys.length; _i++) {
|
|
45
|
+
var country = _Object$keys[_i];
|
|
46
|
+
if (Object.values(SITE_MAP[country]).some(function (_) {
|
|
47
|
+
return _ === site;
|
|
48
|
+
})) {
|
|
49
|
+
return country;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
44
52
|
};
|