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
@@ -284,9 +284,9 @@ res.jsonp = function jsonp(obj) {
284
284
 
285
285
  // allow status / body
286
286
  if (arguments.length === 2) {
287
- // res.json(body, status) backwards compat
287
+ // res.jsonp(body, status) backwards compat
288
288
  if (typeof arguments[1] === 'number') {
289
- deprecate('res.jsonp(obj, status): Use res.status(status).json(obj) instead');
289
+ deprecate('res.jsonp(obj, status): Use res.status(status).jsonp(obj) instead');
290
290
  this.statusCode = arguments[1];
291
291
  } else {
292
292
  deprecate('res.jsonp(status, obj): Use res.status(status).jsonp(obj) instead');
@@ -322,10 +322,15 @@ res.jsonp = function jsonp(obj) {
322
322
  // restrict callback charset
323
323
  callback = callback.replace(/[^\[\]\w$.]/g, '');
324
324
 
325
- // replace chars not allowed in JavaScript that are in JSON
326
- body = body
327
- .replace(/\u2028/g, '\\u2028')
328
- .replace(/\u2029/g, '\\u2029');
325
+ if (body === undefined) {
326
+ // empty argument
327
+ body = ''
328
+ } else if (typeof body === 'string') {
329
+ // replace chars not allowed in JavaScript that are in JSON
330
+ body = body
331
+ .replace(/\u2028/g, '\\u2028')
332
+ .replace(/\u2029/g, '\\u2029')
333
+ }
329
334
 
330
335
  // the /**/ is a specific security mitigation for "Rosetta Flash JSONP abuse"
331
336
  // the typeof check is just to reduce client error noise
@@ -364,7 +369,7 @@ res.sendStatus = function sendStatus(statusCode) {
364
369
  *
365
370
  * Automatically sets the _Content-Type_ response header field.
366
371
  * The callback `callback(err)` is invoked when the transfer is complete
367
- * or when an error occurs. Be sure to check `res.sentHeader`
372
+ * or when an error occurs. Be sure to check `res.headersSent`
368
373
  * if you wish to attempt responding, as the header and some data
369
374
  * may have already been transferred.
370
375
  *
@@ -446,7 +451,7 @@ res.sendFile = function sendFile(path, options, callback) {
446
451
  *
447
452
  * Automatically sets the _Content-Type_ response header field.
448
453
  * The callback `callback(err)` is invoked when the transfer is complete
449
- * or when an error occurs. Be sure to check `res.sentHeader`
454
+ * or when an error occurs. Be sure to check `res.headersSent`
450
455
  * if you wish to attempt responding, as the header and some data
451
456
  * may have already been transferred.
452
457
  *
@@ -623,7 +628,7 @@ res.type = function contentType(type) {
623
628
  * res.send('<p>hey</p>');
624
629
  * },
625
630
  *
626
- * 'appliation/json': function(){
631
+ * 'application/json': function () {
627
632
  * res.send({ message: 'hey' });
628
633
  * }
629
634
  * });
@@ -726,7 +731,7 @@ res.append = function append(field, val) {
726
731
  // concat the new and prev vals
727
732
  value = Array.isArray(prev) ? prev.concat(val)
728
733
  : Array.isArray(val) ? [prev].concat(val)
729
- : [prev, val];
734
+ : [prev, val]
730
735
  }
731
736
 
732
737
  return this.set(field, value);
@@ -1122,7 +1127,7 @@ function stringify (value, replacer, spaces, escape) {
1122
1127
  ? JSON.stringify(value, replacer, spaces)
1123
1128
  : JSON.stringify(value);
1124
1129
 
1125
- if (escape) {
1130
+ if (escape && typeof json === 'string') {
1126
1131
  json = json.replace(/[<>&]/g, function (c) {
1127
1132
  switch (c.charCodeAt(0)) {
1128
1133
  case 0x3c:
@@ -287,6 +287,12 @@ proto.handle = function handle(req, res, out) {
287
287
 
288
288
  function trim_prefix(layer, layerError, layerPath, path) {
289
289
  if (layerPath.length !== 0) {
290
+ // Validate path is a prefix match
291
+ if (layerPath !== path.substr(0, layerPath.length)) {
292
+ next(layerError)
293
+ return
294
+ }
295
+
290
296
  // Validate path breaks on a path separator
291
297
  var c = path[layerPath.length]
292
298
  if (c && c !== '/' && c !== '.') return next(layerError)
@@ -157,6 +157,7 @@ exports.compileETag = function(val) {
157
157
 
158
158
  switch (val) {
159
159
  case true:
160
+ case 'weak':
160
161
  fn = exports.wetag;
161
162
  break;
162
163
  case false:
@@ -164,9 +165,6 @@ exports.compileETag = function(val) {
164
165
  case 'strong':
165
166
  fn = exports.etag;
166
167
  break;
167
- case 'weak':
168
- fn = exports.wetag;
169
- break;
170
168
  default:
171
169
  throw new TypeError('unknown value for etag function: ' + val);
172
170
  }
@@ -191,6 +189,7 @@ exports.compileQueryParser = function compileQueryParser(val) {
191
189
 
192
190
  switch (val) {
193
191
  case true:
192
+ case 'simple':
194
193
  fn = querystring.parse;
195
194
  break;
196
195
  case false:
@@ -199,9 +198,6 @@ exports.compileQueryParser = function compileQueryParser(val) {
199
198
  case 'extended':
200
199
  fn = parseExtendedQueryString;
201
200
  break;
202
- case 'simple':
203
- fn = querystring.parse;
204
- break;
205
201
  default:
206
202
  throw new TypeError('unknown value for query parser function: ' + val);
207
203
  }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Feross Aboukhadijeh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.