denwa-web-shared 1.0.15 → 1.0.16

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.
@@ -77,8 +77,9 @@ const updateTextByTemplate = ({
77
77
  SUBDOMAIN_NAME,
78
78
  SUBDOMAIN_MASK
79
79
  }) => {
80
+ const key = SUBDOMAIN_NAME[subdomain];
81
+ if (!subdomain || !key) return text;
80
82
  const subdomainData = getByKey(SUBDOMAIN_NAME, subdomain);
81
- if (!subdomain) return text;
82
83
  let result = text;
83
84
  const { name, declination, region, regionDeclination } = subdomainData;
84
85
  const cityReg = new RegExp(SUBDOMAIN_MASK.CITY, "g");
@@ -75,8 +75,9 @@ const updateTextByTemplate = ({
75
75
  SUBDOMAIN_NAME,
76
76
  SUBDOMAIN_MASK
77
77
  }) => {
78
+ const key = SUBDOMAIN_NAME[subdomain];
79
+ if (!subdomain || !key) return text;
78
80
  const subdomainData = getByKey(SUBDOMAIN_NAME, subdomain);
79
- if (!subdomain) return text;
80
81
  let result = text;
81
82
  const { name, declination, region, regionDeclination } = subdomainData;
82
83
  const cityReg = new RegExp(SUBDOMAIN_MASK.CITY, "g");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "denwa-web-shared",
3
3
  "private": false,
4
- "version": "1.0.15",
4
+ "version": "1.0.16",
5
5
  "type": "module",
6
6
  "author": "Denwa",
7
7
  "main": "dist/denwa-web-shared.cjs.js",