Skip to content

Releases: jamesseanwright/valimate

Sends Accept: text/html header when requesting markup from the configured URLs

06 Sep 16:47
Compare
Choose a tag to compare
  • Sends Accept: text/html header when requesting markup from the configured URLs, fixing /issues/13
  • Corrects error logging for failed markup requests

Specify configuration file location

26 Jan 11:21
Compare
Choose a tag to compare

Programmatic Use

24 Nov 18:54
Compare
Choose a tag to compare

Valimate can also be imported into your Node.js scripts as a CommonJS module. It exposes the validate method, which takes the config as a parameter of the Object type. This returns a Promise which resolves once the URLs have been validated. A Boolean is passed through the chain that will be true if the markup is invalid, or false if it is valid.

See the README for example usage.

Better HTTP error handling

21 Nov 16:22
Compare
Choose a tag to compare
  • httpService._request handles errors surfaced by request
  • Unit tests to verify various branches of logic
  • eslint integration and resulting fixes

Locking down the version of request

17 Sep 14:05
Compare
Choose a tag to compare

Changes to the local app server contract and following redirects

17 Sep 13:52
Compare
Choose a tag to compare
  • HTTP requests are made using request so that HTTP redirects are honoured, plus it's more mature than my custom client
  • The localAppServer config parameter has been broken down into an object to support environment variable configuration. This is a breaking change, hence the new major release

Unpublished - see 2.0.1

17 Sep 13:48
Compare
Choose a tag to compare
2.0.0

Updated readme