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

adjuster

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adjuster - npm Package Versions

124

0.11.0

Diff

Changelog

Source

[0.11.0] - 2018-07-16

Added

  • adjuster.number().acceptSpecialFormats()
  • adjuster.numberArray().eachAcceptSpecialFormats()

Changed

  • rename method; allowEmptyString() to acceptEmptyString()
  • rename method; allowNull() to acceptNull()
  • rename method; eachAllowEmptyString() to eachAcceptEmptyString()
  • rename method; eachAllowNull() to eachAcceptNull()
shimataro
published 0.10.1 •

Changelog

Source

[0.10.1] - 2018-07-09

Others

  • follow valid-jsdoc option for ESLint
  • follow wrap-regex option for ESLint
shimataro
published 0.10.0 •

Changelog

Source

[0.10.0] - 2018-06-23

Changed

  • adjuster.number() limits input value to Number.MIN_SAFE_INTEGER or more and Number.MAX_SAFE_INTEGER or less

Others

  • support Microsoft Windows officially
shimataro
published 0.9.0 •

Changelog

Source

[0.9.0] - 2018-06-16

Added

  • adjuster.number().allowNull()
  • adjuster.numberArray().allowNull()
  • adjuster.numberArray().eachAllowNull()
  • adjuster.string().allowNull()
  • adjuster.stringArray().allowNull()
  • adjuster.stringArray().eachAllowNull()
  • adjuster.numericString().allowNull()
  • adjuster.ipv4().allowNull()
  • adjuster.ipv6().allowNull()
  • adjuster.email().allowNull()

Changed

  • 3rd parameter of adjuster.adjust(), onError, receives null argument after all adjustment has finished and errors has occurred
  • remove 4th parameter of adjuster.adjust(), onErrorAll

Fixed

  • description about error handler in README.md
shimataro
published 0.8.0 •

Changelog

Source

[0.8.0] - 2018-06-03

Added

  • adjuster.email().trim()
  • adjuster.ipv4().trim()
  • adjuster.ipv6().trim()
  • adjuster.string().trim()
  • adjuster.stringArray().eachTrim()

Changed

  • AdjusterError.prototype.key indicates a key name that caused error; only filled in adjuster.adjust(), otherwise null
  • error handler for adjuster.adjust() needs only 1 parameters err; key is in err.key
  • rename .in() to .only()

Others

  • use changelog
  • reference in README
shimataro
published 0.7.0 •

Changelog

Source

[0.7.0] - 2018-05-20

Added

  • adjuster.numericString().joinArray()

Others

shimataro
published 0.6.0 •

Changelog

Source

[0.6.0] - 2018-05-17

Added

  • adjuster.numericString()

Changed

  • allowEmpty() => allowEmptyString()
  • adjuster.CAUSE.EMAIL => adjuster.CAUSE.PATTERN
  • adjuster.CAUSE.IPV4 => adjuster.CAUSE.PATTERN
  • adjuster.CAUSE.IPV6 => adjuster.CAUSE.PATTERN
shimataro
published 0.5.0 •

Changelog

Source

[0.5.0] - 2018-05-12

Added

  • adjuster.numberArray()
  • adjuster.stringArray()

Changed

  • rename adjuster.adjustData() to adjuster.adjust()
  • throw first error when both onError and onErrorAll are null in adjuster.adjust()

Others

shimataro
published 0.4.0 •

Changelog

Source

[0.4.0] - 2018-05-06

Added

  • adjuster.ipv4()
  • adjuster.ipv6()

Changed

  • strict IPv4 and IPv6 validation for adjuster.email()
shimataro
published 0.3.0 •

Changelog

Source

[0.3.0] - 2018-04-22

Changed

  • limit the length of local/domain part of email

Fixed

  • quoted-pair of email
  • import error in EmailAdjuster.es
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