@bprotsyk/aso-core 2.0.39 → 2.0.41
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.
|
@@ -67,7 +67,7 @@ export interface INamecheapBuyRequest extends Document {
|
|
|
67
67
|
}
|
|
68
68
|
export interface INamecheapBuyResult {
|
|
69
69
|
succeed: {
|
|
70
|
-
[key: string]:
|
|
70
|
+
[key: string]: number;
|
|
71
71
|
};
|
|
72
72
|
failed: {
|
|
73
73
|
[key: string]: string;
|
|
@@ -77,7 +77,7 @@ export interface INamecheapBuyResult {
|
|
|
77
77
|
export declare const NamecheapBuyRequestSchema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
78
78
|
domains: {
|
|
79
79
|
name?: string | undefined;
|
|
80
|
-
price?:
|
|
80
|
+
price?: number | undefined;
|
|
81
81
|
available?: boolean | undefined;
|
|
82
82
|
}[];
|
|
83
83
|
id?: string | undefined;
|
|
@@ -18,13 +18,13 @@ server {
|
|
|
18
18
|
|
|
19
19
|
error_log /var/log/nginx/{{domain}}.error.log error;
|
|
20
20
|
|
|
21
|
-
root {{rootPath}}
|
|
21
|
+
root {{rootPath}}{{domain}};
|
|
22
22
|
error_page 404 /policy/index.html;
|
|
23
23
|
|
|
24
24
|
server_name www.{{domain}} {{domain}};
|
|
25
25
|
|
|
26
26
|
location / {
|
|
27
|
-
root {{rootPath}}
|
|
27
|
+
root {{rootPath}}{{domain}};
|
|
28
28
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
29
29
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
30
30
|
add_header 'Access-Control-Allow-Headers' 'Origin, Authorization, Accept, Content-Type, X-Requested-With';
|
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@ export interface INamecheapBuyRequest extends Document {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export interface INamecheapBuyResult {
|
|
49
|
-
succeed: { [key: string]:
|
|
49
|
+
succeed: { [key: string]: number },
|
|
50
50
|
failed: { [key: string]: string },
|
|
51
51
|
paidTotal: number
|
|
52
52
|
}
|
|
@@ -54,7 +54,7 @@ export interface INamecheapBuyResult {
|
|
|
54
54
|
export const NamecheapBuyRequestSchema = new Schema({
|
|
55
55
|
domains: [{
|
|
56
56
|
name: String,
|
|
57
|
-
price:
|
|
57
|
+
price: Number,
|
|
58
58
|
available: Boolean
|
|
59
59
|
}],
|
|
60
60
|
ip: String,
|
package/src/index.ts
CHANGED
|
@@ -30,4 +30,4 @@ export { IKeitaroStream } from "./keitaro/keitaro-stream"
|
|
|
30
30
|
export { ICloudflareDomainStatus, ICloudflareDomainType, ICloudflareDomain } from "./general/cloudflare-domain"
|
|
31
31
|
export { IDomain, IDomainSetupResult, DomainStatus, DomainTarget, CONST_CLOUFLARE_STATUS_READY, IDomainsBuyRequestResponse, getDomainTargetByIp } from "./general/domain"
|
|
32
32
|
export { INamecheapDomain, INamecheapBuyRequest, INamecheapContactInfo, NamecheapBuyRequestSchema, INamecheapGetDomainsResult, INamecheapBuyResult } from "./general/namecheap-domain"
|
|
33
|
-
export {ServerUtil} from "./utils/server-util"
|
|
33
|
+
export { ServerUtil } from "./utils/server-util"
|
|
@@ -18,13 +18,13 @@ server {
|
|
|
18
18
|
|
|
19
19
|
error_log /var/log/nginx/{{domain}}.error.log error;
|
|
20
20
|
|
|
21
|
-
root {{rootPath}}
|
|
21
|
+
root {{rootPath}}{{domain}};
|
|
22
22
|
error_page 404 /policy/index.html;
|
|
23
23
|
|
|
24
24
|
server_name www.{{domain}} {{domain}};
|
|
25
25
|
|
|
26
26
|
location / {
|
|
27
|
-
root {{rootPath}}
|
|
27
|
+
root {{rootPath}}{{domain}};
|
|
28
28
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
29
29
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
30
30
|
add_header 'Access-Control-Allow-Headers' 'Origin, Authorization, Accept, Content-Type, X-Requested-With';
|