fastify-url
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -42,2 +42,3 @@ "use strict"; | ||
name: 'fastify-url', | ||
fastify: '>=2.0.0', | ||
}); |
{ | ||
"name": "fastify-url", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Fastify plugin for parsing and attaching URL data to requests", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -19,5 +19,3 @@ fastify-url | ||
fastify.register(require('fastify-url'), err => { | ||
if (err) throw err; | ||
}); | ||
fastify.register(require('fastify-url').default); | ||
@@ -47,4 +45,8 @@ fastify.get('/*', (req, reply) => { | ||
## Options | ||
## `fastify-url` vs `fastify-url-data` | ||
The difference between these two plugins is `fastify-url` uses the native NodeJS [URL](https://nodejs.org/api/url.html#url_class_url) class and `fastify-url-data` uses [`uri-js`](https://github.com/garycourt/uri-js). These implementations provide some of the same features but have different data members. Depending on your requirements you may need one or the other, but using both is redundant. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7133
74
51