@livekit/components-core
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -5,3 +5,3 @@ 'use strict'; | ||
var ipRegex = require('ip-regex'); | ||
var tlds = require('tlds'); | ||
var globalTldList = require('global-tld-list'); | ||
var createEmailRegExp = require('email-regex'); | ||
@@ -147,3 +147,3 @@ var dom = require('@floating-ui/dom'); | ||
const domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"; | ||
const tld = `(?:\\.${options.strict ? "(?:[a-z\\u00a1-\\uffff]{2,})" : `(?:${tlds.sort((a, b) => b.length - a.length).join("|")})`})\\.?`; | ||
const tld = `(?:\\.${options.strict ? "(?:[a-z\\u00a1-\\uffff]{2,})" : `(?:${globalTldList.TLDs.sort((a, b) => b.length - a.length).join("|")})`})\\.?`; | ||
const port = "(?::\\d{2,5})?"; | ||
@@ -150,0 +150,0 @@ const path = '(?:[/?#][^\\s"]*)?'; |
{ | ||
"name": "@livekit/components-core", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"license": "Apache-2.0", | ||
@@ -40,3 +40,3 @@ "author": "LiveKit", | ||
"ip-regex": "^5.0.0", | ||
"tlds": "^1.236.0" | ||
"global-tld-list": "^0.0.995" | ||
}, | ||
@@ -47,3 +47,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@livekit/components-styles": "~0.1.12", | ||
"@livekit/components-styles": "~0.1.13", | ||
"@size-limit/file": "^8.1.2", | ||
@@ -59,3 +59,3 @@ "@size-limit/webpack": "^8.1.2", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=14" | ||
}, | ||
@@ -62,0 +62,0 @@ "publishConfig": { |
@@ -24,4 +24,3 @@ // The MIT License (MIT) | ||
import ipRegex from 'ip-regex'; | ||
import tlds from 'tlds'; | ||
import { TLDs } from 'global-tld-list'; | ||
interface RegExOptions { | ||
@@ -55,3 +54,3 @@ /** | ||
? '(?:[a-z\\u00a1-\\uffff]{2,})' | ||
: `(?:${tlds.sort((a, b) => b.length - a.length).join('|')})` | ||
: `(?:${TLDs.sort((a, b) => b.length - a.length).join('|')})` | ||
})\\.?`; | ||
@@ -58,0 +57,0 @@ const port = '(?::\\d{2,5})?'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
237874
+ Addedglobal-tld-list@^0.0.995
+ Addedglobal-tld-list@0.0.995(transitive)
- Removedtlds@^1.236.0
- Removedtlds@1.255.0(transitive)