node-red-contrib-web-worldmap 2.23.4 → 2.24.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 (195) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +15 -4
  3. package/node_modules/body-parser/HISTORY.md +15 -0
  4. package/node_modules/body-parser/README.md +25 -12
  5. package/node_modules/body-parser/node_modules/bytes/History.md +5 -0
  6. package/node_modules/body-parser/node_modules/bytes/Readme.md +42 -16
  7. package/node_modules/body-parser/node_modules/bytes/index.js +5 -1
  8. package/node_modules/body-parser/node_modules/bytes/package.json +20 -22
  9. package/node_modules/body-parser/package.json +34 -37
  10. package/node_modules/content-disposition/HISTORY.md +5 -0
  11. package/node_modules/content-disposition/README.md +3 -9
  12. package/node_modules/content-disposition/index.js +1 -1
  13. package/node_modules/content-disposition/node_modules/safe-buffer/LICENSE +21 -0
  14. package/node_modules/content-disposition/node_modules/safe-buffer/README.md +584 -0
  15. package/node_modules/content-disposition/node_modules/safe-buffer/index.d.ts +187 -0
  16. package/node_modules/content-disposition/node_modules/safe-buffer/index.js +65 -0
  17. package/node_modules/content-disposition/node_modules/safe-buffer/package.json +76 -0
  18. package/node_modules/content-disposition/package.json +27 -30
  19. package/node_modules/cookie/HISTORY.md +5 -0
  20. package/node_modules/cookie/README.md +4 -0
  21. package/node_modules/cookie/index.js +5 -1
  22. package/node_modules/cookie/package.json +22 -25
  23. package/node_modules/express/History.md +33 -0
  24. package/node_modules/express/Readme.md +8 -5
  25. package/node_modules/express/lib/application.js +1 -1
  26. package/node_modules/express/lib/request.js +1 -1
  27. package/node_modules/express/lib/response.js +16 -11
  28. package/node_modules/express/lib/router/index.js +6 -0
  29. package/node_modules/express/lib/utils.js +2 -6
  30. package/node_modules/express/node_modules/safe-buffer/LICENSE +21 -0
  31. package/node_modules/express/node_modules/safe-buffer/README.md +584 -0
  32. package/node_modules/express/node_modules/safe-buffer/index.d.ts +187 -0
  33. package/node_modules/express/node_modules/safe-buffer/index.js +65 -0
  34. package/node_modules/express/node_modules/safe-buffer/package.json +76 -0
  35. package/node_modules/express/package.json +37 -39
  36. package/node_modules/faye-websocket/CHANGELOG.md +5 -0
  37. package/node_modules/faye-websocket/LICENSE.md +1 -1
  38. package/node_modules/faye-websocket/README.md +13 -13
  39. package/node_modules/faye-websocket/lib/faye/websocket/api.js +10 -8
  40. package/node_modules/faye-websocket/lib/faye/websocket/client.js +4 -4
  41. package/node_modules/faye-websocket/lib/faye/websocket.js +1 -1
  42. package/node_modules/faye-websocket/package.json +16 -19
  43. package/node_modules/forwarded/HISTORY.md +5 -0
  44. package/node_modules/forwarded/README.md +3 -3
  45. package/node_modules/forwarded/index.js +15 -1
  46. package/node_modules/forwarded/package.json +27 -28
  47. package/node_modules/http-errors/HISTORY.md +16 -0
  48. package/node_modules/http-errors/README.md +12 -6
  49. package/node_modules/http-errors/index.js +35 -2
  50. package/node_modules/http-errors/package.json +32 -35
  51. package/node_modules/inherits/inherits.js +2 -0
  52. package/node_modules/inherits/inherits_browser.js +18 -14
  53. package/node_modules/inherits/package.json +17 -20
  54. package/node_modules/ipaddr.js/README.md +1 -1
  55. package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +6 -9
  56. package/node_modules/ipaddr.js/package.json +17 -19
  57. package/node_modules/proxy-addr/HISTORY.md +11 -0
  58. package/node_modules/proxy-addr/README.md +3 -19
  59. package/node_modules/proxy-addr/index.js +1 -1
  60. package/node_modules/proxy-addr/package.json +30 -33
  61. package/node_modules/qs/.editorconfig +9 -0
  62. package/node_modules/qs/.eslintignore +2 -1
  63. package/node_modules/qs/.eslintrc +15 -1
  64. package/node_modules/qs/.github/FUNDING.yml +12 -0
  65. package/node_modules/qs/.nycrc +13 -0
  66. package/node_modules/qs/CHANGELOG.md +103 -0
  67. package/node_modules/qs/LICENSE.md +29 -0
  68. package/node_modules/qs/README.md +34 -0
  69. package/node_modules/qs/dist/qs.js +117 -67
  70. package/node_modules/qs/lib/formats.js +9 -4
  71. package/node_modules/qs/lib/parse.js +29 -14
  72. package/node_modules/qs/lib/stringify.js +55 -46
  73. package/node_modules/qs/lib/utils.js +23 -2
  74. package/node_modules/qs/package.json +42 -34
  75. package/node_modules/qs/test/parse.js +97 -1
  76. package/node_modules/qs/test/stringify.js +115 -1
  77. package/node_modules/qs/test/utils.js +1 -1
  78. package/node_modules/raw-body/HISTORY.md +14 -0
  79. package/node_modules/raw-body/README.md +3 -5
  80. package/node_modules/raw-body/node_modules/bytes/History.md +5 -0
  81. package/node_modules/raw-body/node_modules/bytes/Readme.md +42 -16
  82. package/node_modules/raw-body/node_modules/bytes/index.js +5 -1
  83. package/node_modules/raw-body/node_modules/bytes/package.json +20 -22
  84. package/node_modules/raw-body/package.json +32 -35
  85. package/node_modules/send/HISTORY.md +10 -0
  86. package/node_modules/send/README.md +4 -6
  87. package/node_modules/send/index.js +7 -3
  88. package/node_modules/send/node_modules/ms/index.js +3 -3
  89. package/node_modules/send/node_modules/ms/license.md +1 -1
  90. package/node_modules/send/node_modules/ms/package.json +21 -23
  91. package/node_modules/send/node_modules/ms/readme.md +1 -2
  92. package/node_modules/send/package.json +31 -34
  93. package/node_modules/serve-static/HISTORY.md +8 -0
  94. package/node_modules/serve-static/README.md +9 -11
  95. package/node_modules/serve-static/package.json +30 -33
  96. package/node_modules/setprototypeof/README.md +1 -1
  97. package/node_modules/setprototypeof/index.js +1 -1
  98. package/node_modules/setprototypeof/package.json +20 -21
  99. package/node_modules/sockjs/Changelog +12 -0
  100. package/node_modules/sockjs/lib/transport.js +1 -1
  101. package/node_modules/sockjs/package.json +16 -19
  102. package/node_modules/toidentifier/HISTORY.md +9 -0
  103. package/node_modules/toidentifier/README.md +3 -3
  104. package/node_modules/toidentifier/index.js +2 -0
  105. package/node_modules/toidentifier/package.json +30 -29
  106. package/node_modules/uuid/CHANGELOG.md +154 -44
  107. package/node_modules/uuid/CONTRIBUTING.md +18 -0
  108. package/node_modules/uuid/LICENSE.md +4 -16
  109. package/node_modules/uuid/README.md +384 -155
  110. package/node_modules/uuid/dist/bin/uuid +2 -0
  111. package/node_modules/uuid/dist/esm-browser/index.js +9 -0
  112. package/node_modules/uuid/{lib/md5-browser.js → dist/esm-browser/md5.js} +70 -71
  113. package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  114. package/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  115. package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  116. package/node_modules/uuid/dist/esm-browser/rng.js +19 -0
  117. package/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  118. package/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
  119. package/node_modules/uuid/{v1.js → dist/esm-browser/v1.js} +36 -50
  120. package/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  121. package/node_modules/uuid/dist/esm-browser/v35.js +64 -0
  122. package/node_modules/uuid/dist/esm-browser/v4.js +24 -0
  123. package/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  124. package/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  125. package/node_modules/uuid/dist/esm-browser/version.js +11 -0
  126. package/node_modules/uuid/dist/esm-node/index.js +9 -0
  127. package/node_modules/uuid/dist/esm-node/md5.js +13 -0
  128. package/node_modules/uuid/dist/esm-node/nil.js +1 -0
  129. package/node_modules/uuid/dist/esm-node/parse.js +35 -0
  130. package/node_modules/uuid/dist/esm-node/regex.js +1 -0
  131. package/node_modules/uuid/dist/esm-node/rng.js +12 -0
  132. package/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  133. package/node_modules/uuid/dist/esm-node/stringify.js +29 -0
  134. package/node_modules/uuid/dist/esm-node/v1.js +95 -0
  135. package/node_modules/uuid/dist/esm-node/v3.js +4 -0
  136. package/node_modules/uuid/dist/esm-node/v35.js +64 -0
  137. package/node_modules/uuid/dist/esm-node/v4.js +24 -0
  138. package/node_modules/uuid/dist/esm-node/v5.js +4 -0
  139. package/node_modules/uuid/dist/esm-node/validate.js +7 -0
  140. package/node_modules/uuid/dist/esm-node/version.js +11 -0
  141. package/node_modules/uuid/dist/index.js +79 -0
  142. package/node_modules/uuid/dist/md5-browser.js +223 -0
  143. package/node_modules/uuid/dist/md5.js +23 -0
  144. package/node_modules/uuid/dist/nil.js +8 -0
  145. package/node_modules/uuid/dist/parse.js +45 -0
  146. package/node_modules/uuid/dist/regex.js +8 -0
  147. package/node_modules/uuid/dist/rng-browser.js +26 -0
  148. package/node_modules/uuid/dist/rng.js +24 -0
  149. package/node_modules/uuid/dist/sha1-browser.js +104 -0
  150. package/node_modules/uuid/dist/sha1.js +23 -0
  151. package/node_modules/uuid/dist/stringify.js +39 -0
  152. package/node_modules/uuid/dist/umd/uuid.min.js +1 -0
  153. package/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
  154. package/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
  155. package/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
  156. package/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
  157. package/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
  158. package/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
  159. package/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
  160. package/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
  161. package/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
  162. package/node_modules/uuid/dist/uuid-bin.js +85 -0
  163. package/node_modules/uuid/dist/v1.js +107 -0
  164. package/node_modules/uuid/dist/v3.js +16 -0
  165. package/node_modules/uuid/dist/v35.js +78 -0
  166. package/node_modules/uuid/dist/v4.js +37 -0
  167. package/node_modules/uuid/dist/v5.js +16 -0
  168. package/node_modules/uuid/dist/validate.js +17 -0
  169. package/node_modules/uuid/dist/version.js +21 -0
  170. package/node_modules/uuid/package.json +118 -57
  171. package/node_modules/uuid/wrapper.mjs +10 -0
  172. package/node_modules/websocket-driver/node_modules/http-parser-js/package.json +4 -4
  173. package/package.json +3 -3
  174. package/worldmap/css/worldmap.css +6 -5
  175. package/worldmap/index.html +1 -0
  176. package/worldmap/leaflet/leaflet-arc.min.js +1 -0
  177. package/worldmap/worldmap.js +46 -27
  178. package/worldmap.html +1 -1
  179. package/worldmap.js +2 -2
  180. package/node_modules/qs/LICENSE +0 -28
  181. package/node_modules/qs/test/.eslintrc +0 -17
  182. package/node_modules/qs/test/index.js +0 -7
  183. package/node_modules/uuid/AUTHORS +0 -5
  184. package/node_modules/uuid/bin/uuid +0 -65
  185. package/node_modules/uuid/index.js +0 -8
  186. package/node_modules/uuid/lib/bytesToUuid.js +0 -26
  187. package/node_modules/uuid/lib/md5.js +0 -25
  188. package/node_modules/uuid/lib/rng-browser.js +0 -34
  189. package/node_modules/uuid/lib/rng.js +0 -8
  190. package/node_modules/uuid/lib/sha1-browser.js +0 -89
  191. package/node_modules/uuid/lib/sha1.js +0 -25
  192. package/node_modules/uuid/lib/v35.js +0 -57
  193. package/node_modules/uuid/v3.js +0 -4
  194. package/node_modules/uuid/v4.js +0 -29
  195. package/node_modules/uuid/v5.js +0 -3
@@ -1,32 +1,27 @@
1
1
  {
2
- "_args": [
3
- [
4
- "ipaddr.js@1.9.0",
5
- "/Users/conway/Projects/worldmap"
6
- ]
7
- ],
8
- "_from": "ipaddr.js@1.9.0",
9
- "_id": "ipaddr.js@1.9.0",
2
+ "_from": "ipaddr.js@1.9.1",
3
+ "_id": "ipaddr.js@1.9.1",
10
4
  "_inBundle": false,
11
- "_integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA==",
12
- "_location": "/ipaddr.js",
5
+ "_integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
6
+ "_location": "/node-red-contrib-web-worldmap/ipaddr.js",
13
7
  "_phantomChildren": {},
14
8
  "_requested": {
15
9
  "type": "version",
16
10
  "registry": true,
17
- "raw": "ipaddr.js@1.9.0",
11
+ "raw": "ipaddr.js@1.9.1",
18
12
  "name": "ipaddr.js",
19
13
  "escapedName": "ipaddr.js",
20
- "rawSpec": "1.9.0",
14
+ "rawSpec": "1.9.1",
21
15
  "saveSpec": null,
22
- "fetchSpec": "1.9.0"
16
+ "fetchSpec": "1.9.1"
23
17
  },
24
18
  "_requiredBy": [
25
- "/proxy-addr"
19
+ "/node-red-contrib-web-worldmap/proxy-addr"
26
20
  ],
27
- "_resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz",
28
- "_spec": "1.9.0",
29
- "_where": "/Users/conway/Projects/worldmap",
21
+ "_resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
22
+ "_shasum": "bff38543eeb8984825079ff3a2a8e6cbd46781b3",
23
+ "_spec": "ipaddr.js@1.9.1",
24
+ "_where": "/Users/conway/Projects/worldmap/node_modules/proxy-addr",
30
25
  "author": {
31
26
  "name": "whitequark",
32
27
  "email": "whitequark@whitequark.org"
@@ -34,11 +29,13 @@
34
29
  "bugs": {
35
30
  "url": "https://github.com/whitequark/ipaddr.js/issues"
36
31
  },
32
+ "bundleDependencies": false,
37
33
  "dependencies": {},
34
+ "deprecated": false,
38
35
  "description": "A library for manipulating IPv4 and IPv6 addresses in JavaScript.",
39
36
  "devDependencies": {
40
37
  "coffee-script": "~1.12.6",
41
- "nodeunit": ">=0.8.2 <0.8.7",
38
+ "nodeunit": "^0.11.3",
42
39
  "uglify-js": "~3.0.19"
43
40
  },
44
41
  "directories": {
@@ -49,6 +46,7 @@
49
46
  },
50
47
  "files": [
51
48
  "lib/",
49
+ "LICENSE",
52
50
  "ipaddr.min.js"
53
51
  ],
54
52
  "homepage": "https://github.com/whitequark/ipaddr.js#readme",
@@ -68,5 +66,5 @@
68
66
  "test": "cake build test"
69
67
  },
70
68
  "types": "./lib/ipaddr.js.d.ts",
71
- "version": "1.9.0"
69
+ "version": "1.9.1"
72
70
  }
@@ -1,3 +1,14 @@
1
+ 2.0.7 / 2021-05-31
2
+ ==================
3
+
4
+ * deps: forwarded@0.2.0
5
+ - Use `req.socket` over deprecated `req.connection`
6
+
7
+ 2.0.6 / 2020-02-24
8
+ ==================
9
+
10
+ * deps: ipaddr.js@1.9.1
11
+
1
12
  2.0.5 / 2019-04-16
2
13
  ==================
3
14
 
@@ -3,7 +3,7 @@
3
3
  [![NPM Version][npm-version-image]][npm-url]
4
4
  [![NPM Downloads][npm-downloads-image]][npm-url]
5
5
  [![Node.js Version][node-image]][node-url]
6
- [![Build Status][travis-image]][travis-url]
6
+ [![Build Status][ci-image]][ci-url]
7
7
  [![Test Coverage][coveralls-image]][coveralls-url]
8
8
 
9
9
  Determine address of proxied request
@@ -20,8 +20,6 @@ $ npm install proxy-addr
20
20
 
21
21
  ## API
22
22
 
23
- <!-- eslint-disable no-unused-vars -->
24
-
25
23
  ```js
26
24
  var proxyaddr = require('proxy-addr')
27
25
  ```
@@ -34,8 +32,6 @@ The `trust` argument is a function that returns `true` if you trust
34
32
  the address, `false` if you don't. The closest untrusted address is
35
33
  returned.
36
34
 
37
- <!-- eslint-disable no-undef -->
38
-
39
35
  ```js
40
36
  proxyaddr(req, function (addr) { return addr === '127.0.0.1' })
41
37
  proxyaddr(req, function (addr, i) { return i < 1 })
@@ -45,8 +41,6 @@ The `trust` arugment may also be a single IP address string or an
45
41
  array of trusted addresses, as plain IP addresses, CIDR-formatted
46
42
  strings, or IP/netmask strings.
47
43
 
48
- <!-- eslint-disable no-undef -->
49
-
50
44
  ```js
51
45
  proxyaddr(req, '127.0.0.1')
52
46
  proxyaddr(req, ['127.0.0.0/8', '10.0.0.0/8'])
@@ -56,8 +50,6 @@ proxyaddr(req, ['127.0.0.0/255.0.0.0', '192.168.0.0/255.255.0.0'])
56
50
  This module also supports IPv6. Your IPv6 addresses will be normalized
57
51
  automatically (i.e. `fe80::00ed:1` equals `fe80:0:0:0:0:0:ed:1`).
58
52
 
59
- <!-- eslint-disable no-undef -->
60
-
61
53
  ```js
62
54
  proxyaddr(req, '::1')
63
55
  proxyaddr(req, ['::1/128', 'fe80::/10'])
@@ -70,8 +62,6 @@ not have to specify both `::ffff:a00:1` and `10.0.0.1`.
70
62
  As a convenience, this module also takes certain pre-defined names
71
63
  in addition to IP addresses, which expand into IP addresses:
72
64
 
73
- <!-- eslint-disable no-undef -->
74
-
75
65
  ```js
76
66
  proxyaddr(req, 'loopback')
77
67
  proxyaddr(req, ['loopback', 'fc00:ac:1ab5:fff::1/64'])
@@ -96,8 +86,6 @@ Return all the addresses of the request, optionally stopping at the
96
86
  first untrusted. This array is ordered from closest to furthest
97
87
  (i.e. `arr[0] === req.connection.remoteAddress`).
98
88
 
99
- <!-- eslint-disable no-undef -->
100
-
101
89
  ```js
102
90
  proxyaddr.all(req)
103
91
  ```
@@ -105,8 +93,6 @@ proxyaddr.all(req)
105
93
  The optional `trust` argument takes the same arguments as `trust`
106
94
  does in `proxyaddr(req, trust)`.
107
95
 
108
- <!-- eslint-disable no-undef -->
109
-
110
96
  ```js
111
97
  proxyaddr.all(req, 'loopback')
112
98
  ```
@@ -117,8 +103,6 @@ Compiles argument `val` into a `trust` function. This function takes
117
103
  the same arguments as `trust` does in `proxyaddr(req, trust)` and
118
104
  returns a function suitable for `proxyaddr(req, trust)`.
119
105
 
120
- <!-- eslint-disable no-undef, no-unused-vars -->
121
-
122
106
  ```js
123
107
  var trust = proxyaddr.compile('loopback')
124
108
  var addr = proxyaddr(req, trust)
@@ -144,6 +128,8 @@ $ npm run-script bench
144
128
 
145
129
  [MIT](LICENSE)
146
130
 
131
+ [ci-image]: https://badgen.net/github/checks/jshttp/proxy-addr/master?label=ci
132
+ [ci-url]: https://github.com/jshttp/proxy-addr/actions?query=workflow%3Aci
147
133
  [coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/proxy-addr/master
148
134
  [coveralls-url]: https://coveralls.io/r/jshttp/proxy-addr?branch=master
149
135
  [node-image]: https://badgen.net/npm/node/proxy-addr
@@ -151,5 +137,3 @@ $ npm run-script bench
151
137
  [npm-downloads-image]: https://badgen.net/npm/dm/proxy-addr
152
138
  [npm-url]: https://npmjs.org/package/proxy-addr
153
139
  [npm-version-image]: https://badgen.net/npm/v/proxy-addr
154
- [travis-image]: https://badgen.net/travis/jshttp/proxy-addr/master
155
- [travis-url]: https://travis-ci.org/jshttp/proxy-addr
@@ -99,7 +99,7 @@ function compile (val) {
99
99
  for (var i = 0; i < trust.length; i++) {
100
100
  val = trust[i]
101
101
 
102
- if (!IP_RANGES.hasOwnProperty(val)) {
102
+ if (!Object.prototype.hasOwnProperty.call(IP_RANGES, val)) {
103
103
  continue
104
104
  }
105
105
 
@@ -1,32 +1,27 @@
1
1
  {
2
- "_args": [
3
- [
4
- "proxy-addr@2.0.5",
5
- "/Users/conway/Projects/worldmap"
6
- ]
7
- ],
8
- "_from": "proxy-addr@2.0.5",
9
- "_id": "proxy-addr@2.0.5",
2
+ "_from": "proxy-addr@~2.0.7",
3
+ "_id": "proxy-addr@2.0.7",
10
4
  "_inBundle": false,
11
- "_integrity": "sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ==",
12
- "_location": "/proxy-addr",
5
+ "_integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
6
+ "_location": "/node-red-contrib-web-worldmap/proxy-addr",
13
7
  "_phantomChildren": {},
14
8
  "_requested": {
15
- "type": "version",
9
+ "type": "range",
16
10
  "registry": true,
17
- "raw": "proxy-addr@2.0.5",
11
+ "raw": "proxy-addr@~2.0.7",
18
12
  "name": "proxy-addr",
19
13
  "escapedName": "proxy-addr",
20
- "rawSpec": "2.0.5",
14
+ "rawSpec": "~2.0.7",
21
15
  "saveSpec": null,
22
- "fetchSpec": "2.0.5"
16
+ "fetchSpec": "~2.0.7"
23
17
  },
24
18
  "_requiredBy": [
25
- "/express"
19
+ "/node-red-contrib-web-worldmap/express"
26
20
  ],
27
- "_resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.5.tgz",
28
- "_spec": "2.0.5",
29
- "_where": "/Users/conway/Projects/worldmap",
21
+ "_resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
22
+ "_shasum": "f19fe69ceab311eeb94b42e70e8c2070f9ba1025",
23
+ "_spec": "proxy-addr@~2.0.7",
24
+ "_where": "/Users/conway/Projects/worldmap/node_modules/express",
30
25
  "author": {
31
26
  "name": "Douglas Christopher Wilson",
32
27
  "email": "doug@somethingdoug.com"
@@ -34,24 +29,26 @@
34
29
  "bugs": {
35
30
  "url": "https://github.com/jshttp/proxy-addr/issues"
36
31
  },
32
+ "bundleDependencies": false,
37
33
  "dependencies": {
38
- "forwarded": "~0.1.2",
39
- "ipaddr.js": "1.9.0"
34
+ "forwarded": "0.2.0",
35
+ "ipaddr.js": "1.9.1"
40
36
  },
37
+ "deprecated": false,
41
38
  "description": "Determine address of proxied request",
42
39
  "devDependencies": {
43
40
  "beautify-benchmark": "0.2.4",
44
41
  "benchmark": "2.1.4",
45
42
  "deep-equal": "1.0.1",
46
- "eslint": "5.16.0",
47
- "eslint-config-standard": "12.0.0",
48
- "eslint-plugin-import": "2.17.1",
49
- "eslint-plugin-markdown": "1.0.0",
50
- "eslint-plugin-node": "8.0.1",
51
- "eslint-plugin-promise": "4.1.1",
52
- "eslint-plugin-standard": "4.0.0",
53
- "mocha": "6.1.3",
54
- "nyc": "13.3.0"
43
+ "eslint": "7.26.0",
44
+ "eslint-config-standard": "14.1.1",
45
+ "eslint-plugin-import": "2.23.4",
46
+ "eslint-plugin-markdown": "2.2.0",
47
+ "eslint-plugin-node": "11.1.0",
48
+ "eslint-plugin-promise": "4.3.1",
49
+ "eslint-plugin-standard": "4.1.0",
50
+ "mocha": "8.4.0",
51
+ "nyc": "15.1.0"
55
52
  },
56
53
  "engines": {
57
54
  "node": ">= 0.10"
@@ -76,10 +73,10 @@
76
73
  },
77
74
  "scripts": {
78
75
  "bench": "node benchmark/index.js",
79
- "lint": "eslint --plugin markdown --ext js,md .",
76
+ "lint": "eslint .",
80
77
  "test": "mocha --reporter spec --bail --check-leaks test/",
81
- "test-cov": "nyc --reporter=text npm test",
82
- "test-travis": "nyc --reporter=html --reporter=text npm test"
78
+ "test-ci": "nyc --reporter=lcov --reporter=text npm test",
79
+ "test-cov": "nyc --reporter=html --reporter=text npm test"
83
80
  },
84
- "version": "2.0.5"
81
+ "version": "2.0.7"
85
82
  }
@@ -12,6 +12,9 @@ max_line_length = 160
12
12
  [test/*]
13
13
  max_line_length = off
14
14
 
15
+ [LICENSE.md]
16
+ indent_size = off
17
+
15
18
  [*.md]
16
19
  max_line_length = off
17
20
 
@@ -28,3 +31,9 @@ indent_size = 2
28
31
  [LICENSE]
29
32
  indent_size = 2
30
33
  max_line_length = off
34
+
35
+ [coverage/**/*]
36
+ indent_size = off
37
+ indent_style = off
38
+ indent = off
39
+ max_line_length = off
@@ -1 +1,2 @@
1
- dist
1
+ dist/
2
+ coverage/
@@ -17,5 +17,19 @@
17
17
  "no-magic-numbers": 0,
18
18
  "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
19
19
  "operator-linebreak": [2, "before"],
20
- }
20
+ },
21
+
22
+ "overrides": [
23
+ {
24
+ "files": "test/**",
25
+ "rules": {
26
+ "function-paren-newline": 0,
27
+ "max-lines-per-function": 0,
28
+ "max-statements": 0,
29
+ "no-buffer-constructor": 0,
30
+ "no-extend-native": 0,
31
+ "no-throw-literal": 0,
32
+ }
33
+ }
34
+ ]
21
35
  }
@@ -0,0 +1,12 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [ljharb]
4
+ patreon: # Replace with a single Patreon username
5
+ open_collective: # Replace with a single Open Collective username
6
+ ko_fi: # Replace with a single Ko-fi username
7
+ tidelift: npm/qs
8
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ liberapay: # Replace with a single Liberapay username
10
+ issuehunt: # Replace with a single IssueHunt username
11
+ otechie: # Replace with a single Otechie username
12
+ custom: # Replace with a single custom sponsorship URL
@@ -0,0 +1,13 @@
1
+ {
2
+ "all": true,
3
+ "check-coverage": false,
4
+ "reporter": ["text-summary", "text", "html", "json"],
5
+ "lines": 86,
6
+ "statements": 85.93,
7
+ "functions": 82.43,
8
+ "branches": 76.06,
9
+ "exclude": [
10
+ "coverage",
11
+ "dist"
12
+ ]
13
+ }
@@ -1,3 +1,106 @@
1
+ ## **6.9.6**
2
+ - [Fix] restore `dist` dir; mistakenly removed in d4f6c32
3
+
4
+ ## **6.9.5**
5
+ - [Fix] `stringify`: do not encode parens for RFC1738
6
+ - [Fix] `stringify`: fix arrayFormat comma with empty array/objects (#350)
7
+ - [Refactor] `format`: remove `util.assign` call
8
+ - [meta] add "Allow Edits" workflow; update rebase workflow
9
+ - [actions] switch Automatic Rebase workflow to `pull_request_target` event
10
+ - [Tests] `stringify`: add tests for #378
11
+ - [Tests] migrate tests to Github Actions
12
+ - [Tests] run `nyc` on all tests; use `tape` runner
13
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `mkdirp`, `object-inspect`, `tape`; add `aud`
14
+
15
+ ## **6.9.4**
16
+ - [Fix] `stringify`: when `arrayFormat` is `comma`, respect `serializeDate` (#364)
17
+ - [Refactor] `stringify`: reduce branching (part of #350)
18
+ - [Refactor] move `maybeMap` to `utils`
19
+ - [Dev Deps] update `browserify`, `tape`
20
+
21
+ ## **6.9.3**
22
+ - [Fix] proper comma parsing of URL-encoded commas (#361)
23
+ - [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
24
+
25
+ ## **6.9.2**
26
+ - [Fix] `parse`: Fix parsing array from object with `comma` true (#359)
27
+ - [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349)
28
+ - [meta] ignore eclint transitive audit warning
29
+ - [meta] fix indentation in package.json
30
+ - [meta] add tidelift marketing copy
31
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `object-inspect`, `has-symbols`, `tape`, `mkdirp`, `iconv-lite`
32
+ - [actions] add automatic rebasing / merge commit blocking
33
+
34
+ ## **6.9.1**
35
+ - [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335)
36
+ - [Fix] `parse`: with comma true, do not split non-string values (#334)
37
+ - [meta] add `funding` field
38
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`
39
+ - [Tests] use shared travis-ci config
40
+
41
+ ## **6.9.0**
42
+ - [New] `parse`/`stringify`: Pass extra key/value argument to `decoder` (#333)
43
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `evalmd`
44
+ - [Tests] `parse`: add passing `arrayFormat` tests
45
+ - [Tests] add `posttest` using `npx aud` to run `npm audit` without a lockfile
46
+ - [Tests] up to `node` `v12.10`, `v11.15`, `v10.16`, `v8.16`
47
+ - [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray
48
+
49
+ ## **6.8.2**
50
+ - [Fix] proper comma parsing of URL-encoded commas (#361)
51
+ - [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
52
+
53
+ ## **6.8.1**
54
+ - [Fix] `parse`: Fix parsing array from object with `comma` true (#359)
55
+ - [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349)
56
+ - [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335)
57
+ - [fix] `parse`: with comma true, do not split non-string values (#334)
58
+ - [meta] add tidelift marketing copy
59
+ - [meta] add `funding` field
60
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `evalmd`, `has-symbols`, `iconv-lite`, `mkdirp`, `object-inspect`
61
+ - [Tests] `parse`: add passing `arrayFormat` tests
62
+ - [Tests] use shared travis-ci configs
63
+ - [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray
64
+ - [actions] add automatic rebasing / merge commit blocking
65
+
66
+ ## **6.8.0**
67
+ - [New] add `depth=false` to preserve the original key; [Fix] `depth=0` should preserve the original key (#326)
68
+ - [New] [Fix] stringify symbols and bigints
69
+ - [Fix] ensure node 0.12 can stringify Symbols
70
+ - [Fix] fix for an impossible situation: when the formatter is called with a non-string value
71
+ - [Refactor] `formats`: tiny bit of cleanup.
72
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `safe-publish-latest`, `iconv-lite`, `tape`
73
+ - [Tests] add tests for `depth=0` and `depth=false` behavior, both current and intuitive/intended (#326)
74
+ - [Tests] use `eclint` instead of `editorconfig-tools`
75
+ - [docs] readme: add security note
76
+ - [meta] add github sponsorship
77
+ - [meta] add FUNDING.yml
78
+ - [meta] Clean up license text so it’s properly detected as BSD-3-Clause
79
+
80
+ ## **6.7.2**
81
+ - [Fix] proper comma parsing of URL-encoded commas (#361)
82
+ - [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
83
+
84
+ ## **6.7.1**
85
+ - [Fix] `parse`: Fix parsing array from object with `comma` true (#359)
86
+ - [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335)
87
+ - [fix] `parse`: with comma true, do not split non-string values (#334)
88
+ - [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349)
89
+ - [Fix] fix for an impossible situation: when the formatter is called with a non-string value
90
+ - [Refactor] `formats`: tiny bit of cleanup.
91
+ - readme: add security note
92
+ - [meta] add tidelift marketing copy
93
+ - [meta] add `funding` field
94
+ - [meta] add FUNDING.yml
95
+ - [meta] Clean up license text so it’s properly detected as BSD-3-Clause
96
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `evalmd`, `iconv-lite`, `mkdirp`, `object-inspect`, `browserify`
97
+ - [Tests] `parse`: add passing `arrayFormat` tests
98
+ - [Tests] use shared travis-ci configs
99
+ - [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray
100
+ - [Tests] add tests for `depth=0` and `depth=false` behavior, both current and intuitive/intended
101
+ - [Tests] use `eclint` instead of `editorconfig-tools`
102
+ - [actions] add automatic rebasing / merge commit blocking
103
+
1
104
  ## **6.7.0**
2
105
  - [New] `stringify`/`parse`: add `comma` as an `arrayFormat` option (#276, #219)
3
106
  - [Fix] correctly parse nested arrays (#212)
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors)
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -330,6 +330,30 @@ var decoded = qs.parse('x=z', { decoder: function (str) {
330
330
  }})
331
331
  ```
332
332
 
333
+ You can encode keys and values using different logic by using the type argument provided to the encoder:
334
+
335
+ ```javascript
336
+ var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str, defaultEncoder, charset, type) {
337
+ if (type === 'key') {
338
+ return // Encoded key
339
+ } else if (type === 'value') {
340
+ return // Encoded value
341
+ }
342
+ }})
343
+ ```
344
+
345
+ The type argument is also provided to the decoder:
346
+
347
+ ```javascript
348
+ var decoded = qs.parse('x=z', { decoder: function (str, defaultEncoder, charset, type) {
349
+ if (type === 'key') {
350
+ return // Decoded key
351
+ } else if (type === 'value') {
352
+ return // Decoded value
353
+ }
354
+ }})
355
+ ```
356
+
333
357
  Examples beyond this point will be shown as though the output is not URI encoded for clarity. Please note that the return values in these cases *will* be URI encoded during real usage.
334
358
 
335
359
  When arrays are stringified, by default they are given explicit indices:
@@ -553,6 +577,16 @@ assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC3986' }), 'a=b%20c');
553
577
  assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC1738' }), 'a=b+c');
554
578
  ```
555
579
 
580
+ ## Security
581
+
582
+ Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
583
+
584
+ ## qs for enterprise
585
+
586
+ Available as part of the Tidelift Subscription
587
+
588
+ The maintainers of qs and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-qs?utm_source=npm-qs&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
589
+
556
590
  [1]: https://npmjs.org/package/qs
557
591
  [2]: http://versionbadg.es/ljharb/qs.svg
558
592
  [3]: https://api.travis-ci.org/ljharb/qs.svg