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

validator

Package Overview
Dependencies
Maintainers
2
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validator - npm Package Versions

1
22

4.7.0

Diff

Changelog

Source

4.7.0

  • Print a deprecation warning if validator input is not a string (1f67e1e). Note that this will be an error in v5.
  • Added a German locale to isMobilePhone(), isAlpha() and isAlphanumeric() (#477)
  • Added a Finnish locale to isMobilePhone() (#455)
cohara87
published 4.6.1 •

Changelog

Source

4.6.1

  • Fix coercion of objects: Object.toString() is [object Object] not "" (a57f3c8)
cohara87
published 4.6.0 •

Changelog

Source

4.6.0

  • Added a Spanish locale to isMobilePhone() (#481)
  • Fix string coercion of objects created with Object.create(null) (#484)
cohara87
published 4.5.2 •

Changelog

Source

4.5.2

  • Fix a timezone issue with short-form ISO 8601 dates, e.g. validator.isDate('2011-12-21') (#480)
cohara87
published 4.5.1 •

Changelog

Source

4.5.1

  • Make isLength() / isByteLength() accept {min, max} as options object. (#474)
cohara87
published 4.5.0 •

Changelog

Source

4.5.0

  • Add validation for Indian mobile phone numbers (#471)
  • Tweak Greek and Chinese mobile phone validation (#467, #468)
  • Fixed a bug in isDate() when validating ISO 8601 dates without a timezone (#472)
cohara87
published 4.4.0 •

Changelog

Source

4.4.0

  • Added isMACAddress() validator (#458)
  • Added isWhitelisted() validator (#462)
  • Added a New Zealand locale to isMobilePhone() (#452)
  • Added options to control GMail address normalization (#460)
cohara87
published 4.3.0 •

Changelog

Source

4.3.0

  • Support Ember CLI module definitions (#448)
  • Added a Vietnam locale to isMobilePhone() (#451)
cohara87
published 4.2.1 •

Changelog

Source

4.2.1

  • Fix isDate() handling of RFC2822 timezones (#447)
cohara87
published 4.2.0 •

Changelog

Source

4.2.0

  • Fix isDate() handling of ISO8601 timezones (#444)
  • Fix the incorrect isFloat('.') === true (#443)
  • Added a Norwegian locale to isMobilePhone() (#439)
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