@94ai/nf-microphone 8.3.14 → 8.3.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.
@@ -10409,6 +10409,9 @@ function _startApp() {
10409
10409
  return _startApp.apply(this, arguments);
10410
10410
  }
10411
10411
  function isDomainOrIP(str) {
10412
+ if (!str) {
10413
+ return false;
10414
+ }
10412
10415
  const ipPattern = /^(\d{1,3}\.){3}\d{1,3}$/;
10413
10416
  const domainPattern = /^[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/;
10414
10417
  if (ipPattern.test(str)) {
@@ -10407,6 +10407,9 @@ function _startApp() {
10407
10407
  return _startApp.apply(this, arguments);
10408
10408
  }
10409
10409
  function isDomainOrIP(str) {
10410
+ if (!str) {
10411
+ return false;
10412
+ }
10410
10413
  const ipPattern = /^(\d{1,3}\.){3}\d{1,3}$/;
10411
10414
  const domainPattern = /^[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/;
10412
10415
  if (ipPattern.test(str)) {
@@ -1,4 +1,7 @@
1
1
  function isDomainOrIP(str) {
2
+ if (!str) {
3
+ return false
4
+ }
2
5
  const ipPattern = /^(\d{1,3}\.){3}\d{1,3}$/
3
6
  const domainPattern = /^[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/
4
7
  if (ipPattern.test(str)) {
package/package/util.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  export function isDomainOrIP (str: string) {
2
+ if (!str) {
3
+ return false
4
+ }
2
5
  const ipPattern = /^(\d{1,3}\.){3}\d{1,3}$/
3
6
  const domainPattern = /^[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/
4
7
  if (ipPattern.test(str)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-microphone",
3
- "version": "8.3.14",
3
+ "version": "8.3.16",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,7 +14,7 @@
14
14
  "url": "http://94ai.gitlab.com/ui/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/nf-theme-chalk": "^8.3.14",
17
+ "@94ai/nf-theme-chalk": "^8.3.16",
18
18
  "crypto-js": "^4.2.0",
19
19
  "qiankun": "^2.10.16",
20
20
  "vue-demi": "^0.14.5",
@@ -33,5 +33,5 @@
33
33
  "types": "lib/index.d.ts",
34
34
  "main": "lib/nf-microphone.cjs.js",
35
35
  "module": "lib/nf-microphone.esm-bundler.js",
36
- "gitHead": "6a9daedc595c1d560ec1fdb3574fd6bf11c93ade"
36
+ "gitHead": "75e563768bd7105b7e6ac7c4ca438a318941469b"
37
37
  }