make-fetch 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -150,6 +150,8 @@ function matches (request, route, property) {
150
150
  return areEqual(route.hostname, new URL(request.url).hostname)
151
151
  } else if (property === 'protocol') {
152
152
  return areEqual(route.protocol, new URL(request.url).protocol)
153
+ } else if(property === 'method') {
154
+ return areEqual(route.method, request.method.toUpperCase())
153
155
  } else {
154
156
  const routeProperty = route[property]
155
157
  const requestProperty = request[property]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "make-fetch",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Implement your own `fetch()` with node.js streams",
5
5
  "main": "index.js",
6
6
  "type": "module",