Repository: delvedor/find-my-way (js)

Issue:
httpMethods is a snapshot from Node 18.12.0 meaning methods from newer versions are unsupported
Why this has been done rather than using `http.METHODS`?

Pull request description:
fix: add QUERY to httpMethods which was added in Node 22.2.0
fixes #379 

Patch:
diff --git a/lib/http-methods.js b/lib/http-methods.js
index 39e340e..c681f7a 100644
--- a/lib/http-methods.js
+++ b/lib/http-methods.js
@@ -1,11 +1,11 @@
 'use strict'
 
-// defined by Node.js http module, a snapshot from Node.js 18.12.0
+// defined by Node.js http module, a snapshot from Node.js 22.9.0
 const httpMethods = [
   'ACL', 'BIND', 'CHECKOUT', 'CONNECT', 'COPY', 'DELETE',
   'GET', 'HEAD', 'LINK', 'LOCK', 'M-SEARCH', 'MERGE',
   'MKACTIVITY', 'MKCALENDAR', 'MKCOL', 'MOVE', 'NOTIFY', 'OPTIONS',
-  'PATCH', 'POST', 'PROPFIND', 'PROPPATCH', 'PURGE', 'PUT',
+  'PATCH', 'POST', 'PROPFIND', 'PROPPATCH', 'PURGE', 'PUT', 'QUERY',
   'REBIND', 'REPORT', 'SEARCH', 'SOURCE', 'SUBSCRIBE', 'TRACE',
   'UNBIND', 'UNLINK', 'UNLOCK', 'UNSUBSCRIBE'
 ]


Test patch:
diff --git a/test/pretty-print.test.js b/test/pretty-print.test.js
index 50f622c..c265350 100644
--- a/test/pretty-print.test.js
+++ b/test/pretty-print.test.js
@@ -673,8 +673,8 @@ test('pretty print - print all methods', t => {
 └── /
     └── test (ACL, BIND, CHECKOUT, CONNECT, COPY, DELETE, GET, HEAD, LINK, LOCK, \
 M-SEARCH, MERGE, MKACTIVITY, MKCALENDAR, MKCOL, MOVE, NOTIFY, OPTIONS, PATCH, \
-POST, PROPFIND, PROPPATCH, PURGE, PUT, REBIND, REPORT, SEARCH, SOURCE, SUBSCRIBE, \
-TRACE, UNBIND, UNLINK, UNLOCK, UNSUBSCRIBE)
+POST, PROPFIND, PROPPATCH, PURGE, PUT, QUERY, REBIND, REPORT, SEARCH, SOURCE, \
+SUBSCRIBE, TRACE, UNBIND, UNLINK, UNLOCK, UNSUBSCRIBE)
 `
   t.equal(typeof tree, 'string')
   t.equal(tree, expected)