@squared-functions/module
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -1,2 +0,2 @@ | ||
/* @squared-functions/module 1.1.8 | ||
/* @squared-functions/module 1.1.9 | ||
https://github.com/anpham6/squared-functions */ | ||
@@ -426,3 +426,3 @@ | ||
static fromLocalPath(value) { | ||
return /^\.{1,2}[\\/]/.test(value = value.trim()) ? value[0] !== '.' ? path.join(process.cwd(), value) : path.resolve(value) : ''; | ||
return /^\.{1,2}[\\/]/.test(value = value.trim()) ? path.resolve(value) : ''; | ||
} | ||
@@ -453,6 +453,6 @@ static hasSameOrigin(value, other) { | ||
static isFileUNC(value) { | ||
return /^(?:\\\\|\/\/)([\w.-]+)[\\/]([\w-]+\$?)((?<=\$)(?:[^\\/]*|[\\/].+)|[\\/].+)$/.test(value); | ||
return /^(?:\\\\|\/\/)[\w.-]+[\\/][\w-]+\$?[\\/].*?[^\\/]$/.test(value); | ||
} | ||
static isPathUNC(value) { | ||
return /^(?:\\\\|\/\/)([\w.-]+)[\\/]([\w-]+\$|[\w-]+\$[\\/].+|[\w-]+[\\/].*)$/.test(value); | ||
return /^(?:\\\\|\/\/)[\w.-]+[\\/][\w-]+\$?(?:[\\/]?|[\\/].+)$/.test(value); | ||
} | ||
@@ -459,0 +459,0 @@ static isUUID(value) { |
{ | ||
"name": "@squared-functions/module", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "Module extension class for squared-functions", | ||
@@ -18,3 +18,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@squared-functions/types": "1.1.8", | ||
"@squared-functions/types": "1.1.9", | ||
"uuid": "^8.3.2", | ||
@@ -21,0 +21,0 @@ "chalk": "^4.1.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26146
+ Added@squared-functions/types@1.1.9(transitive)
- Removed@squared-functions/types@1.1.8(transitive)