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.
- package/CHANGELOG.md +4 -0
- package/README.md +15 -4
- package/node_modules/body-parser/HISTORY.md +15 -0
- package/node_modules/body-parser/README.md +25 -12
- package/node_modules/body-parser/node_modules/bytes/History.md +5 -0
- package/node_modules/body-parser/node_modules/bytes/Readme.md +42 -16
- package/node_modules/body-parser/node_modules/bytes/index.js +5 -1
- package/node_modules/body-parser/node_modules/bytes/package.json +20 -22
- package/node_modules/body-parser/package.json +34 -37
- package/node_modules/content-disposition/HISTORY.md +5 -0
- package/node_modules/content-disposition/README.md +3 -9
- package/node_modules/content-disposition/index.js +1 -1
- package/node_modules/content-disposition/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/content-disposition/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/content-disposition/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/content-disposition/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/content-disposition/node_modules/safe-buffer/package.json +76 -0
- package/node_modules/content-disposition/package.json +27 -30
- package/node_modules/cookie/HISTORY.md +5 -0
- package/node_modules/cookie/README.md +4 -0
- package/node_modules/cookie/index.js +5 -1
- package/node_modules/cookie/package.json +22 -25
- package/node_modules/express/History.md +33 -0
- package/node_modules/express/Readme.md +8 -5
- package/node_modules/express/lib/application.js +1 -1
- package/node_modules/express/lib/request.js +1 -1
- package/node_modules/express/lib/response.js +16 -11
- package/node_modules/express/lib/router/index.js +6 -0
- package/node_modules/express/lib/utils.js +2 -6
- package/node_modules/express/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/express/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/express/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/express/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/express/node_modules/safe-buffer/package.json +76 -0
- package/node_modules/express/package.json +37 -39
- package/node_modules/faye-websocket/CHANGELOG.md +5 -0
- package/node_modules/faye-websocket/LICENSE.md +1 -1
- package/node_modules/faye-websocket/README.md +13 -13
- package/node_modules/faye-websocket/lib/faye/websocket/api.js +10 -8
- package/node_modules/faye-websocket/lib/faye/websocket/client.js +4 -4
- package/node_modules/faye-websocket/lib/faye/websocket.js +1 -1
- package/node_modules/faye-websocket/package.json +16 -19
- package/node_modules/forwarded/HISTORY.md +5 -0
- package/node_modules/forwarded/README.md +3 -3
- package/node_modules/forwarded/index.js +15 -1
- package/node_modules/forwarded/package.json +27 -28
- package/node_modules/http-errors/HISTORY.md +16 -0
- package/node_modules/http-errors/README.md +12 -6
- package/node_modules/http-errors/index.js +35 -2
- package/node_modules/http-errors/package.json +32 -35
- package/node_modules/inherits/inherits.js +2 -0
- package/node_modules/inherits/inherits_browser.js +18 -14
- package/node_modules/inherits/package.json +17 -20
- package/node_modules/ipaddr.js/README.md +1 -1
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +6 -9
- package/node_modules/ipaddr.js/package.json +17 -19
- package/node_modules/proxy-addr/HISTORY.md +11 -0
- package/node_modules/proxy-addr/README.md +3 -19
- package/node_modules/proxy-addr/index.js +1 -1
- package/node_modules/proxy-addr/package.json +30 -33
- package/node_modules/qs/.editorconfig +9 -0
- package/node_modules/qs/.eslintignore +2 -1
- package/node_modules/qs/.eslintrc +15 -1
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +103 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +34 -0
- package/node_modules/qs/dist/qs.js +117 -67
- package/node_modules/qs/lib/formats.js +9 -4
- package/node_modules/qs/lib/parse.js +29 -14
- package/node_modules/qs/lib/stringify.js +55 -46
- package/node_modules/qs/lib/utils.js +23 -2
- package/node_modules/qs/package.json +42 -34
- package/node_modules/qs/test/parse.js +97 -1
- package/node_modules/qs/test/stringify.js +115 -1
- package/node_modules/qs/test/utils.js +1 -1
- package/node_modules/raw-body/HISTORY.md +14 -0
- package/node_modules/raw-body/README.md +3 -5
- package/node_modules/raw-body/node_modules/bytes/History.md +5 -0
- package/node_modules/raw-body/node_modules/bytes/Readme.md +42 -16
- package/node_modules/raw-body/node_modules/bytes/index.js +5 -1
- package/node_modules/raw-body/node_modules/bytes/package.json +20 -22
- package/node_modules/raw-body/package.json +32 -35
- package/node_modules/send/HISTORY.md +10 -0
- package/node_modules/send/README.md +4 -6
- package/node_modules/send/index.js +7 -3
- package/node_modules/send/node_modules/ms/index.js +3 -3
- package/node_modules/send/node_modules/ms/license.md +1 -1
- package/node_modules/send/node_modules/ms/package.json +21 -23
- package/node_modules/send/node_modules/ms/readme.md +1 -2
- package/node_modules/send/package.json +31 -34
- package/node_modules/serve-static/HISTORY.md +8 -0
- package/node_modules/serve-static/README.md +9 -11
- package/node_modules/serve-static/package.json +30 -33
- package/node_modules/setprototypeof/README.md +1 -1
- package/node_modules/setprototypeof/index.js +1 -1
- package/node_modules/setprototypeof/package.json +20 -21
- package/node_modules/sockjs/Changelog +12 -0
- package/node_modules/sockjs/lib/transport.js +1 -1
- package/node_modules/sockjs/package.json +16 -19
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/README.md +3 -3
- package/node_modules/toidentifier/index.js +2 -0
- package/node_modules/toidentifier/package.json +30 -29
- package/node_modules/uuid/CHANGELOG.md +154 -44
- package/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/uuid/LICENSE.md +4 -16
- package/node_modules/uuid/README.md +384 -155
- package/node_modules/uuid/dist/bin/uuid +2 -0
- package/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/node_modules/uuid/{lib/md5-browser.js → dist/esm-browser/md5.js} +70 -71
- package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/node_modules/uuid/{v1.js → dist/esm-browser/v1.js} +36 -50
- package/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/node_modules/uuid/dist/index.js +79 -0
- package/node_modules/uuid/dist/md5-browser.js +223 -0
- package/node_modules/uuid/dist/md5.js +23 -0
- package/node_modules/uuid/dist/nil.js +8 -0
- package/node_modules/uuid/dist/parse.js +45 -0
- package/node_modules/uuid/dist/regex.js +8 -0
- package/node_modules/uuid/dist/rng-browser.js +26 -0
- package/node_modules/uuid/dist/rng.js +24 -0
- package/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/node_modules/uuid/dist/sha1.js +23 -0
- package/node_modules/uuid/dist/stringify.js +39 -0
- package/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/node_modules/uuid/dist/v1.js +107 -0
- package/node_modules/uuid/dist/v3.js +16 -0
- package/node_modules/uuid/dist/v35.js +78 -0
- package/node_modules/uuid/dist/v4.js +37 -0
- package/node_modules/uuid/dist/v5.js +16 -0
- package/node_modules/uuid/dist/validate.js +17 -0
- package/node_modules/uuid/dist/version.js +21 -0
- package/node_modules/uuid/package.json +118 -57
- package/node_modules/uuid/wrapper.mjs +10 -0
- package/node_modules/websocket-driver/node_modules/http-parser-js/package.json +4 -4
- package/package.json +3 -3
- package/worldmap/css/worldmap.css +6 -5
- package/worldmap/index.html +1 -0
- package/worldmap/leaflet/leaflet-arc.min.js +1 -0
- package/worldmap/worldmap.js +46 -27
- package/worldmap.html +1 -1
- package/worldmap.js +2 -2
- package/node_modules/qs/LICENSE +0 -28
- package/node_modules/qs/test/.eslintrc +0 -17
- package/node_modules/qs/test/index.js +0 -7
- package/node_modules/uuid/AUTHORS +0 -5
- package/node_modules/uuid/bin/uuid +0 -65
- package/node_modules/uuid/index.js +0 -8
- package/node_modules/uuid/lib/bytesToUuid.js +0 -26
- package/node_modules/uuid/lib/md5.js +0 -25
- package/node_modules/uuid/lib/rng-browser.js +0 -34
- package/node_modules/uuid/lib/rng.js +0 -8
- package/node_modules/uuid/lib/sha1-browser.js +0 -89
- package/node_modules/uuid/lib/sha1.js +0 -25
- package/node_modules/uuid/lib/v35.js +0 -57
- package/node_modules/uuid/v3.js +0 -4
- package/node_modules/uuid/v4.js +0 -29
- 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.
|
|
287
|
+
// res.jsonp(body, status) backwards compat
|
|
288
288
|
if (typeof arguments[1] === 'number') {
|
|
289
|
-
deprecate('res.jsonp(obj, status): Use res.status(status).
|
|
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
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
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.
|
|
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.
|
|
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
|
-
* '
|
|
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
|
-
|
|
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.
|