New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@byll/validated

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@byll/validated - npm Package Compare versions

Comparing version 1.9.3 to 1.10.0

9

lib/src/index.js

@@ -79,2 +79,11 @@ "use strict";

/**
* Checks for uuid v4
*/
var uuidV4Regex = /^[A-F\d]{8}-[A-F\d]{4}-4[A-F\d]{3}-[89AB][A-F\d]{3}-[A-F\d]{12}$/i;
exports.factories.uuid = function (_requirement) {
return function (value) {
return typeof value === 'string' && uuidV4Regex.test(value) ? null : 'value can be a uuid v4';
};
};
/**
* e.g. decimal or decimal:precision,scale,min?,max?

@@ -81,0 +90,0 @@ */

2

package.json
{
"name": "@byll/validated",
"version": "1.9.3",
"version": "1.10.0",
"main": "lib/src/index.js",

@@ -5,0 +5,0 @@ "typings": "lib/src/index",

@@ -65,2 +65,12 @@ import { isValidDecimalString } from './helpers/isValidDecimalString'

/**
* Checks for uuid v4
*/
const uuidV4Regex = /^[A-F\d]{8}-[A-F\d]{4}-4[A-F\d]{3}-[89AB][A-F\d]{3}-[A-F\d]{12}$/i;
factories.uuid = (_requirement?: string): Validator => {
return (value: any) => {
return typeof value === 'string' && uuidV4Regex.test(value) ? null : 'value can be a uuid v4'
}
}
/**
* e.g. decimal or decimal:precision,scale,min?,max?

@@ -67,0 +77,0 @@ */

Sorry, the diff of this file is not supported yet

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