Releases: jamesseanwright/valimate
Releases · jamesseanwright/valimate
Sends Accept: text/html header when requesting markup from the configured URLs
- 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
Thanks to @bobdanilo for the PR!.
Programmatic Use
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
- 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
Changes to the local app server contract and following redirects
- 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
2.0.0 Updated readme