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

vigour-util

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vigour-util - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

test/index.js

6

is/url.js

@@ -1,5 +0,5 @@

'use struct'
var url = /^(((ws(s)?)|(http(s)?))\:\/\/)?[a-zA-Z0-9_-]+(\.|\:)([^\/\/])[a-zA-Z/0-9$-/:-?{-~!"^_`\[\]]+$/
'use strict'
var url = /^(((ws(s)?)|(http(s)?))\:\/\/)?[a-zA-Z0-9_-]+(\.|\:)([^\/\/])[a-zA-Z/0-9$-/:-?{#-~!"^_`\[\]]+$/
module.exports = function (val) {
return typeof val === 'string' && url.test(val)
return typeof val === 'string' && url.test(val) || val === 'localhost'
}
{
"name": "vigour-util",
"version": "1.3.0",
"version": "1.3.1",
"author": "Vigour.io <dev@vigour.io>",
"scripts": {
"test": "node test"
},
"repository": {

@@ -33,3 +36,6 @@ "type": "git",

],
"license": "ISC"
"license": "ISC",
"devDependencies": {
"tape": "^4.5.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