Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@squared-functions/module

Package Overview
Dependencies
Maintainers
1
Versions
355
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squared-functions/module - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

8

index.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc