Skip to content

Commit

Permalink
chore: grammar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Feb 7, 2023
1 parent 97191ac commit f604823
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
[![Coverage Status](https://coveralls.io/repos/github/Fdawgs/fastify-json-to-xml/badge.svg?branch=master)](https://coveralls.io/github/Fdawgs/fastify-json-to-xml?branch=master)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat)](https://github.com/prettier/prettier)

> Fastify plugin to serialise JSON responses to XML
> Fastify plugin to serialise JSON responses into XML
## Intro

The `fastify-json-to-xml` plugin adds an `onSend` hook that supports serialising 'application/json' responses as XML if:
The `fastify-json-to-xml` plugin adds an `onSend` hook that supports serialising 'application/json' responses into XML if:

- The `Accept` HTTP request header only includes 'application/xml'
- The `Accept` HTTP request header explicitly includes the 'application/xml' media type before 'application/json'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fastify-json-to-xml",
"version": "1.0.1",
"description": "Fastify plugin to serialise JSON responses to XML",
"description": "Fastify plugin to serialise JSON responses into XML",
"keywords": [
"fastify",
"json",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const secJSON = require("secure-json-parse");
/**
* @author Frazer Smith
* @description On-send plugin that adds support for serialising 'application/json'
* responses as XML if the `Accept` HTTP request header only includes
* responses into XML if the `Accept` HTTP request header only includes
* 'application/xml' or if it explicitly includes the 'application/xml'
* media type before 'application/json'.
* @param {object} server - Fastify instance.
Expand Down

0 comments on commit f604823

Please sign in to comment.