Socket
Socket
Sign inDemoInstall

tv4-formats

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tv4-formats - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

index.js

@@ -50,3 +50,3 @@ (function () {

exports.url = function (value) {
if (validator.isURL(value)) {
if (validator.isURL(value, { 'require_tld': false })) {
return null;

@@ -53,0 +53,0 @@ }

{
"name": "tv4-formats",
"version": "3.0.1",
"version": "3.0.2",
"description": "Common JSON Schema string format constraints in the form of tv4 validator callbacks",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -128,2 +128,6 @@ describe('tv4-formats', function () {

it('validates positively', function () {
assert.strictEqual(formats.url('http://localhost:3000/'), null);
});
it('validates negatively', function () {

@@ -130,0 +134,0 @@ assert(formats.url('#clearly# :not: a URL').length > 0);

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