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

@darkwolf/validator

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@darkwolf/validator - npm Package Compare versions

Comparing version 13.21.72 to 13.21.73

9

index.js

@@ -126,2 +126,10 @@ const CodeError = require('@darkwolf/code-error')

function isJSON(value) {
try {
return !!JSON.parse(value)
} catch (e) {
return false
}
}
const isTimestamp = value => isInteger(value) && constants.TIMESTAMP_REGEX.test(value)

@@ -205,2 +213,3 @@ const isUnixTimestamp = value => isInteger(value) && constants.UNIX_TIMESTAMP_REGEX.test(value)

isUnique,
isJSON,
isTimestamp,

@@ -207,0 +216,0 @@ isUnixTimestamp,

2

package.json
{
"name": "@darkwolf/validator",
"version": "13.21.72",
"version": "13.21.73",
"description": "Validator",

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

@@ -76,2 +76,3 @@ # Validator

### isUnique(value)
### isJSON(value)
### isTimestamp(value)

@@ -78,0 +79,0 @@ ### isUnixTimestamp(value)

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