denwa-web-shared 1.0.26 → 1.0.27
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/server/index.cjs.js
CHANGED
|
@@ -77,6 +77,7 @@ const updateTextByTemplate = ({
|
|
|
77
77
|
SUBDOMAIN_NAME,
|
|
78
78
|
SUBDOMAIN_MASK
|
|
79
79
|
}) => {
|
|
80
|
+
if (!subdomain || !SUBDOMAIN_NAME || !SUBDOMAIN_MASK) return text;
|
|
80
81
|
const key = SUBDOMAIN_NAME[subdomain];
|
|
81
82
|
if (!subdomain || !key) return text;
|
|
82
83
|
const subdomainData = getByKey(SUBDOMAIN_NAME, subdomain);
|
package/dist/server/index.es.js
CHANGED
|
@@ -75,6 +75,7 @@ const updateTextByTemplate = ({
|
|
|
75
75
|
SUBDOMAIN_NAME,
|
|
76
76
|
SUBDOMAIN_MASK
|
|
77
77
|
}) => {
|
|
78
|
+
if (!subdomain || !SUBDOMAIN_NAME || !SUBDOMAIN_MASK) return text;
|
|
78
79
|
const key = SUBDOMAIN_NAME[subdomain];
|
|
79
80
|
if (!subdomain || !key) return text;
|
|
80
81
|
const subdomainData = getByKey(SUBDOMAIN_NAME, subdomain);
|
|
@@ -36,14 +36,14 @@ export declare const getSubdomain: (host: string, SUB_DOMAIN: Record<string, str
|
|
|
36
36
|
*/
|
|
37
37
|
export declare const updateTextByTemplate: ({ text, subdomain, SUBDOMAIN_NAME, SUBDOMAIN_MASK, }: {
|
|
38
38
|
text: string;
|
|
39
|
-
subdomain
|
|
40
|
-
SUBDOMAIN_NAME
|
|
39
|
+
subdomain?: string;
|
|
40
|
+
SUBDOMAIN_NAME?: Record<string, {
|
|
41
41
|
name: string;
|
|
42
42
|
declination: string;
|
|
43
43
|
region: string;
|
|
44
44
|
regionDeclination: string;
|
|
45
45
|
}>;
|
|
46
|
-
SUBDOMAIN_MASK
|
|
46
|
+
SUBDOMAIN_MASK?: {
|
|
47
47
|
CITY: string;
|
|
48
48
|
CITY_DECL: string;
|
|
49
49
|
CITY_REGION: string;
|
|
@@ -63,7 +63,7 @@ export declare const updateTextByTemplate: ({ text, subdomain, SUBDOMAIN_NAME, S
|
|
|
63
63
|
* @return Объект с мета тегами
|
|
64
64
|
*/
|
|
65
65
|
export declare const prepareLocalMetaData: <T extends object>({ subdomain, metaData, host, lang, isSubdomain, SUBDOMAIN_NAME, SUBDOMAIN_MASK, DEFAULT_SEO_TEXT, }: {
|
|
66
|
-
subdomain
|
|
66
|
+
subdomain?: string;
|
|
67
67
|
metaData: {
|
|
68
68
|
title: string;
|
|
69
69
|
description: string;
|
|
@@ -79,13 +79,13 @@ export declare const prepareLocalMetaData: <T extends object>({ subdomain, metaD
|
|
|
79
79
|
city?: string;
|
|
80
80
|
};
|
|
81
81
|
isSubdomain?: boolean;
|
|
82
|
-
SUBDOMAIN_NAME
|
|
82
|
+
SUBDOMAIN_NAME?: Record<string, {
|
|
83
83
|
name: string;
|
|
84
84
|
declination: string;
|
|
85
85
|
region: string;
|
|
86
86
|
regionDeclination: string;
|
|
87
87
|
}>;
|
|
88
|
-
SUBDOMAIN_MASK
|
|
88
|
+
SUBDOMAIN_MASK?: {
|
|
89
89
|
CITY: string;
|
|
90
90
|
CITY_DECL: string;
|
|
91
91
|
CITY_REGION: string;
|