node-red-contrib-web-worldmap 5.5.4 → 5.5.7
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 +1 -0
- package/README.md +1 -0
- package/node_modules/@turf/bezier-spline/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/bezier-spline/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/bezier-spline/dist/esm/index.js +2 -2
- package/node_modules/@turf/bezier-spline/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/bezier-spline/package.json +11 -12
- package/node_modules/@turf/helpers/README.md +1 -1
- package/node_modules/@turf/helpers/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/helpers/dist/cjs/index.d.cts +6 -4
- package/node_modules/@turf/helpers/dist/esm/index.d.ts +6 -4
- package/node_modules/@turf/helpers/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/helpers/package.json +8 -9
- package/node_modules/@turf/invariant/package.json +9 -10
- package/node_modules/body-parser/HISTORY.md +8 -0
- package/node_modules/body-parser/lib/types/urlencoded.js +2 -9
- package/node_modules/body-parser/package.json +9 -10
- package/node_modules/cookie/index.js +2 -1
- package/node_modules/cookie/package.json +1 -1
- package/node_modules/cookie-signature/History.md +5 -1
- package/node_modules/cookie-signature/index.js +6 -6
- package/node_modules/cookie-signature/package.json +2 -2
- package/node_modules/express/History.md +11 -0
- package/node_modules/express/package.json +17 -17
- package/node_modules/finalhandler/HISTORY.md +6 -0
- package/node_modules/finalhandler/package.json +3 -3
- package/node_modules/http-errors/HISTORY.md +6 -0
- package/node_modules/http-errors/index.js +4 -3
- package/node_modules/http-errors/package.json +12 -8
- package/node_modules/qs/.github/SECURITY.md +11 -0
- package/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/node_modules/qs/CHANGELOG.md +31 -0
- package/node_modules/qs/README.md +25 -1
- package/node_modules/qs/dist/qs.js +95 -44
- package/node_modules/qs/eslint.config.mjs +56 -0
- package/node_modules/qs/lib/parse.js +107 -43
- package/node_modules/qs/lib/stringify.js +11 -6
- package/node_modules/qs/lib/utils.js +61 -6
- package/node_modules/qs/package.json +15 -12
- package/node_modules/qs/test/parse.js +257 -31
- package/node_modules/qs/test/stringify.js +23 -11
- package/node_modules/qs/test/utils.js +245 -0
- package/node_modules/raw-body/package.json +5 -7
- package/node_modules/send/HISTORY.md +19 -7
- package/node_modules/send/package.json +6 -6
- package/node_modules/serve-static/HISTORY.md +6 -0
- package/node_modules/serve-static/package.json +2 -2
- package/node_modules/statuses/HISTORY.md +5 -0
- package/node_modules/statuses/README.md +3 -0
- package/node_modules/statuses/package.json +7 -7
- package/package.json +8 -3
- package/worldmap/worldmap.js +3 -1
- package/node_modules/body-parser/SECURITY.md +0 -25
- package/node_modules/cookie-signature/.npmignore +0 -4
- package/node_modules/qs/.eslintrc +0 -38
- package/node_modules/raw-body/HISTORY.md +0 -308
- package/node_modules/raw-body/SECURITY.md +0 -24
- package/node_modules/send/node_modules/encodeurl/HISTORY.md +0 -14
- package/node_modules/send/node_modules/encodeurl/LICENSE +0 -22
- package/node_modules/send/node_modules/encodeurl/README.md +0 -128
- package/node_modules/send/node_modules/encodeurl/index.js +0 -60
- package/node_modules/send/node_modules/encodeurl/package.json +0 -40
|
@@ -4,6 +4,8 @@ var test = require('tape');
|
|
|
4
4
|
var inspect = require('object-inspect');
|
|
5
5
|
var SaferBuffer = require('safer-buffer').Buffer;
|
|
6
6
|
var forEach = require('for-each');
|
|
7
|
+
var v = require('es-value-fixtures');
|
|
8
|
+
|
|
7
9
|
var utils = require('../lib/utils');
|
|
8
10
|
|
|
9
11
|
test('merge()', function (t) {
|
|
@@ -28,6 +30,20 @@ test('merge()', function (t) {
|
|
|
28
30
|
var noOptionsNonObjectSource = utils.merge({ foo: 'baz' }, 'bar');
|
|
29
31
|
t.deepEqual(noOptionsNonObjectSource, { foo: 'baz', bar: true });
|
|
30
32
|
|
|
33
|
+
var func = function f() {};
|
|
34
|
+
t.deepEqual(
|
|
35
|
+
utils.merge(func, { foo: 'bar' }),
|
|
36
|
+
[func, { foo: 'bar' }],
|
|
37
|
+
'functions can not be merged into'
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
func.bar = 'baz';
|
|
41
|
+
t.deepEqual(
|
|
42
|
+
utils.merge({ foo: 'bar' }, func),
|
|
43
|
+
{ foo: 'bar', bar: 'baz' },
|
|
44
|
+
'functions can be merge sources'
|
|
45
|
+
);
|
|
46
|
+
|
|
31
47
|
t.test(
|
|
32
48
|
'avoids invoking array setters unnecessarily',
|
|
33
49
|
{ skip: typeof Object.defineProperty !== 'function' },
|
|
@@ -52,6 +68,60 @@ test('merge()', function (t) {
|
|
|
52
68
|
}
|
|
53
69
|
);
|
|
54
70
|
|
|
71
|
+
t.test('with overflow objects (from arrayLimit)', function (st) {
|
|
72
|
+
st.test('merges primitive into overflow object at next index', function (s2t) {
|
|
73
|
+
// Create an overflow object via combine
|
|
74
|
+
var overflow = utils.combine(['a'], 'b', 1, false);
|
|
75
|
+
s2t.ok(utils.isOverflow(overflow), 'overflow object is marked');
|
|
76
|
+
var merged = utils.merge(overflow, 'c');
|
|
77
|
+
s2t.deepEqual(merged, { 0: 'a', 1: 'b', 2: 'c' }, 'adds primitive at next numeric index');
|
|
78
|
+
s2t.end();
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
st.test('merges primitive into regular object with numeric keys normally', function (s2t) {
|
|
82
|
+
var obj = { 0: 'a', 1: 'b' };
|
|
83
|
+
s2t.notOk(utils.isOverflow(obj), 'plain object is not marked as overflow');
|
|
84
|
+
var merged = utils.merge(obj, 'c');
|
|
85
|
+
s2t.deepEqual(merged, { 0: 'a', 1: 'b', c: true }, 'adds primitive as key (not at next index)');
|
|
86
|
+
s2t.end();
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
st.test('merges primitive into object with non-numeric keys normally', function (s2t) {
|
|
90
|
+
var obj = { foo: 'bar' };
|
|
91
|
+
var merged = utils.merge(obj, 'baz');
|
|
92
|
+
s2t.deepEqual(merged, { foo: 'bar', baz: true }, 'adds primitive as key with value true');
|
|
93
|
+
s2t.end();
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
st.test('merges overflow object into primitive', function (s2t) {
|
|
97
|
+
// Create an overflow object via combine
|
|
98
|
+
var overflow = utils.combine([], 'b', 0, false);
|
|
99
|
+
s2t.ok(utils.isOverflow(overflow), 'overflow object is marked');
|
|
100
|
+
var merged = utils.merge('a', overflow);
|
|
101
|
+
s2t.ok(utils.isOverflow(merged), 'result is also marked as overflow');
|
|
102
|
+
s2t.deepEqual(merged, { 0: 'a', 1: 'b' }, 'creates object with primitive at 0, source values shifted');
|
|
103
|
+
s2t.end();
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
st.test('merges overflow object with multiple values into primitive', function (s2t) {
|
|
107
|
+
// Create an overflow object via combine
|
|
108
|
+
var overflow = utils.combine(['b'], 'c', 1, false);
|
|
109
|
+
s2t.ok(utils.isOverflow(overflow), 'overflow object is marked');
|
|
110
|
+
var merged = utils.merge('a', overflow);
|
|
111
|
+
s2t.deepEqual(merged, { 0: 'a', 1: 'b', 2: 'c' }, 'shifts all source indices by 1');
|
|
112
|
+
s2t.end();
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
st.test('merges regular object into primitive as array', function (s2t) {
|
|
116
|
+
var obj = { foo: 'bar' };
|
|
117
|
+
var merged = utils.merge('a', obj);
|
|
118
|
+
s2t.deepEqual(merged, ['a', { foo: 'bar' }], 'creates array with primitive and object');
|
|
119
|
+
s2t.end();
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
st.end();
|
|
123
|
+
});
|
|
124
|
+
|
|
55
125
|
t.end();
|
|
56
126
|
});
|
|
57
127
|
|
|
@@ -116,6 +186,169 @@ test('combine()', function (t) {
|
|
|
116
186
|
st.end();
|
|
117
187
|
});
|
|
118
188
|
|
|
189
|
+
t.test('with arrayLimit', function (st) {
|
|
190
|
+
st.test('under the limit', function (s2t) {
|
|
191
|
+
var combined = utils.combine(['a', 'b'], 'c', 10, false);
|
|
192
|
+
s2t.deepEqual(combined, ['a', 'b', 'c'], 'returns array when under limit');
|
|
193
|
+
s2t.ok(Array.isArray(combined), 'result is an array');
|
|
194
|
+
s2t.end();
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
st.test('exactly at the limit stays as array', function (s2t) {
|
|
198
|
+
var combined = utils.combine(['a', 'b'], 'c', 3, false);
|
|
199
|
+
s2t.deepEqual(combined, ['a', 'b', 'c'], 'stays as array when exactly at limit');
|
|
200
|
+
s2t.ok(Array.isArray(combined), 'result is an array');
|
|
201
|
+
s2t.end();
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
st.test('over the limit', function (s2t) {
|
|
205
|
+
var combined = utils.combine(['a', 'b', 'c'], 'd', 3, false);
|
|
206
|
+
s2t.deepEqual(combined, { 0: 'a', 1: 'b', 2: 'c', 3: 'd' }, 'converts to object when over limit');
|
|
207
|
+
s2t.notOk(Array.isArray(combined), 'result is not an array');
|
|
208
|
+
s2t.end();
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
st.test('with arrayLimit 0', function (s2t) {
|
|
212
|
+
var combined = utils.combine([], 'a', 0, false);
|
|
213
|
+
s2t.deepEqual(combined, { 0: 'a' }, 'converts single element to object with arrayLimit 0');
|
|
214
|
+
s2t.notOk(Array.isArray(combined), 'result is not an array');
|
|
215
|
+
s2t.end();
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
st.test('with plainObjects option', function (s2t) {
|
|
219
|
+
var combined = utils.combine(['a'], 'b', 1, true);
|
|
220
|
+
var expected = { __proto__: null, 0: 'a', 1: 'b' };
|
|
221
|
+
s2t.deepEqual(combined, expected, 'converts to object with null prototype');
|
|
222
|
+
s2t.equal(Object.getPrototypeOf(combined), null, 'result has null prototype when plainObjects is true');
|
|
223
|
+
s2t.end();
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
st.end();
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
t.test('with existing overflow object', function (st) {
|
|
230
|
+
st.test('adds to existing overflow object at next index', function (s2t) {
|
|
231
|
+
// Create overflow object first via combine
|
|
232
|
+
var overflow = utils.combine(['a'], 'b', 1, false);
|
|
233
|
+
s2t.ok(utils.isOverflow(overflow), 'initial object is marked as overflow');
|
|
234
|
+
|
|
235
|
+
var combined = utils.combine(overflow, 'c', 10, false);
|
|
236
|
+
s2t.equal(combined, overflow, 'returns the same object (mutated)');
|
|
237
|
+
s2t.deepEqual(combined, { 0: 'a', 1: 'b', 2: 'c' }, 'adds value at next numeric index');
|
|
238
|
+
s2t.end();
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
st.test('does not treat plain object with numeric keys as overflow', function (s2t) {
|
|
242
|
+
var plainObj = { 0: 'a', 1: 'b' };
|
|
243
|
+
s2t.notOk(utils.isOverflow(plainObj), 'plain object is not marked as overflow');
|
|
244
|
+
|
|
245
|
+
// combine treats this as a regular value, not an overflow object to append to
|
|
246
|
+
var combined = utils.combine(plainObj, 'c', 10, false);
|
|
247
|
+
s2t.deepEqual(combined, [{ 0: 'a', 1: 'b' }, 'c'], 'concatenates as regular values');
|
|
248
|
+
s2t.end();
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
st.end();
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
t.end();
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
test('decode', function (t) {
|
|
258
|
+
t.equal(
|
|
259
|
+
utils.decode('a+b'),
|
|
260
|
+
'a b',
|
|
261
|
+
'decodes + to space'
|
|
262
|
+
);
|
|
263
|
+
|
|
264
|
+
t.equal(
|
|
265
|
+
utils.decode('name%2Eobj'),
|
|
266
|
+
'name.obj',
|
|
267
|
+
'decodes a string'
|
|
268
|
+
);
|
|
269
|
+
t.equal(
|
|
270
|
+
utils.decode('name%2Eobj%2Efoo', null, 'iso-8859-1'),
|
|
271
|
+
'name.obj.foo',
|
|
272
|
+
'decodes a string in iso-8859-1'
|
|
273
|
+
);
|
|
274
|
+
|
|
275
|
+
t.end();
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
test('encode', function (t) {
|
|
279
|
+
forEach(v.nullPrimitives, function (nullish) {
|
|
280
|
+
t['throws'](
|
|
281
|
+
function () { utils.encode(nullish); },
|
|
282
|
+
TypeError,
|
|
283
|
+
inspect(nullish) + ' is not a string'
|
|
284
|
+
);
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
t.equal(utils.encode(''), '', 'empty string returns itself');
|
|
288
|
+
t.deepEqual(utils.encode([]), [], 'empty array returns itself');
|
|
289
|
+
t.deepEqual(utils.encode({ length: 0 }), { length: 0 }, 'empty arraylike returns itself');
|
|
290
|
+
|
|
291
|
+
t.test('symbols', { skip: !v.hasSymbols }, function (st) {
|
|
292
|
+
st.equal(utils.encode(Symbol('x')), 'Symbol%28x%29', 'symbol is encoded');
|
|
293
|
+
|
|
294
|
+
st.end();
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
t.equal(
|
|
298
|
+
utils.encode('(abc)'),
|
|
299
|
+
'%28abc%29',
|
|
300
|
+
'encodes parentheses'
|
|
301
|
+
);
|
|
302
|
+
t.equal(
|
|
303
|
+
utils.encode({ toString: function () { return '(abc)'; } }),
|
|
304
|
+
'%28abc%29',
|
|
305
|
+
'toStrings and encodes parentheses'
|
|
306
|
+
);
|
|
307
|
+
|
|
308
|
+
t.equal(
|
|
309
|
+
utils.encode('abc 123 💩', null, 'iso-8859-1'),
|
|
310
|
+
'abc%20123%20%26%2355357%3B%26%2356489%3B',
|
|
311
|
+
'encodes in iso-8859-1'
|
|
312
|
+
);
|
|
313
|
+
|
|
314
|
+
var longString = '';
|
|
315
|
+
var expectedString = '';
|
|
316
|
+
for (var i = 0; i < 1500; i++) {
|
|
317
|
+
longString += ' ';
|
|
318
|
+
expectedString += '%20';
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
t.equal(
|
|
322
|
+
utils.encode(longString),
|
|
323
|
+
expectedString,
|
|
324
|
+
'encodes a long string'
|
|
325
|
+
);
|
|
326
|
+
|
|
327
|
+
t.equal(
|
|
328
|
+
utils.encode('\x28\x29'),
|
|
329
|
+
'%28%29',
|
|
330
|
+
'encodes parens normally'
|
|
331
|
+
);
|
|
332
|
+
t.equal(
|
|
333
|
+
utils.encode('\x28\x29', null, null, null, 'RFC1738'),
|
|
334
|
+
'()',
|
|
335
|
+
'does not encode parens in RFC1738'
|
|
336
|
+
);
|
|
337
|
+
|
|
338
|
+
// todo RFC1738 format
|
|
339
|
+
|
|
340
|
+
t.equal(
|
|
341
|
+
utils.encode('Āက豈'),
|
|
342
|
+
'%C4%80%E1%80%80%EF%A4%80',
|
|
343
|
+
'encodes multibyte chars'
|
|
344
|
+
);
|
|
345
|
+
|
|
346
|
+
t.equal(
|
|
347
|
+
utils.encode('\uD83D \uDCA9'),
|
|
348
|
+
'%F0%9F%90%A0%F0%BA%90%80',
|
|
349
|
+
'encodes lone surrogates'
|
|
350
|
+
);
|
|
351
|
+
|
|
119
352
|
t.end();
|
|
120
353
|
});
|
|
121
354
|
|
|
@@ -134,3 +367,15 @@ test('isBuffer()', function (t) {
|
|
|
134
367
|
t.equal(utils.isBuffer(buffer), true, 'real Buffer instance is a buffer');
|
|
135
368
|
t.end();
|
|
136
369
|
});
|
|
370
|
+
|
|
371
|
+
test('isRegExp()', function (t) {
|
|
372
|
+
t.equal(utils.isRegExp(/a/g), true, 'RegExp is a RegExp');
|
|
373
|
+
t.equal(utils.isRegExp(new RegExp('a', 'g')), true, 'new RegExp is a RegExp');
|
|
374
|
+
t.equal(utils.isRegExp(new Date()), false, 'Date is not a RegExp');
|
|
375
|
+
|
|
376
|
+
forEach(v.primitives, function (primitive) {
|
|
377
|
+
t.equal(utils.isRegExp(primitive), false, inspect(primitive) + ' is not a RegExp');
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
t.end();
|
|
381
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "raw-body",
|
|
3
3
|
"description": "Get and validate the raw body of a readable stream.",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.3",
|
|
5
5
|
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"repository": "stream-utils/raw-body",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"bytes": "3.1.2",
|
|
14
|
-
"http-errors": "2.0.
|
|
15
|
-
"iconv-lite": "0.4.24",
|
|
16
|
-
"unpipe": "1.0.0"
|
|
13
|
+
"bytes": "~3.1.2",
|
|
14
|
+
"http-errors": "~2.0.1",
|
|
15
|
+
"iconv-lite": "~0.4.24",
|
|
16
|
+
"unpipe": "~1.0.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"bluebird": "3.7.2",
|
|
@@ -33,10 +33,8 @@
|
|
|
33
33
|
"node": ">= 0.8"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
|
-
"HISTORY.md",
|
|
37
36
|
"LICENSE",
|
|
38
37
|
"README.md",
|
|
39
|
-
"SECURITY.md",
|
|
40
38
|
"index.d.ts",
|
|
41
39
|
"index.js"
|
|
42
40
|
],
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
0.19.2 / 2025-12-15
|
|
2
|
+
===================
|
|
3
|
+
|
|
4
|
+
* deps: use tilde notation for dependencies
|
|
5
|
+
* deps: http-errors@~2.0.1
|
|
6
|
+
* deps: statuses@~2.0.2
|
|
7
|
+
|
|
8
|
+
0.19.1 / 2024-10-09
|
|
9
|
+
===================
|
|
10
|
+
|
|
11
|
+
* deps: encodeurl@~2.0.0
|
|
12
|
+
|
|
1
13
|
0.19.0 / 2024-09-10
|
|
2
14
|
===================
|
|
3
15
|
|
|
@@ -485,37 +497,37 @@
|
|
|
485
497
|
|
|
486
498
|
* update range-parser and fresh
|
|
487
499
|
|
|
488
|
-
0.1.4 / 2013-08-11
|
|
500
|
+
0.1.4 / 2013-08-11
|
|
489
501
|
==================
|
|
490
502
|
|
|
491
503
|
* update fresh
|
|
492
504
|
|
|
493
|
-
0.1.3 / 2013-07-08
|
|
505
|
+
0.1.3 / 2013-07-08
|
|
494
506
|
==================
|
|
495
507
|
|
|
496
508
|
* Revert "Fix fd leak"
|
|
497
509
|
|
|
498
|
-
0.1.2 / 2013-07-03
|
|
510
|
+
0.1.2 / 2013-07-03
|
|
499
511
|
==================
|
|
500
512
|
|
|
501
513
|
* Fix fd leak
|
|
502
514
|
|
|
503
|
-
0.1.0 / 2012-08-25
|
|
515
|
+
0.1.0 / 2012-08-25
|
|
504
516
|
==================
|
|
505
517
|
|
|
506
518
|
* add options parameter to send() that is passed to fs.createReadStream() [kanongil]
|
|
507
519
|
|
|
508
|
-
0.0.4 / 2012-08-16
|
|
520
|
+
0.0.4 / 2012-08-16
|
|
509
521
|
==================
|
|
510
522
|
|
|
511
523
|
* allow custom "Accept-Ranges" definition
|
|
512
524
|
|
|
513
|
-
0.0.3 / 2012-07-16
|
|
525
|
+
0.0.3 / 2012-07-16
|
|
514
526
|
==================
|
|
515
527
|
|
|
516
528
|
* fix normalization of the root directory. Closes #3
|
|
517
529
|
|
|
518
|
-
0.0.2 / 2012-07-09
|
|
530
|
+
0.0.2 / 2012-07-09
|
|
519
531
|
==================
|
|
520
532
|
|
|
521
533
|
* add passing of req explicitly for now (YUCK)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "send",
|
|
3
3
|
"description": "Better streaming static file server with Range and conditional-GET support",
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.2",
|
|
5
5
|
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"debug": "2.6.9",
|
|
20
20
|
"depd": "2.0.0",
|
|
21
21
|
"destroy": "1.2.0",
|
|
22
|
-
"encodeurl": "~
|
|
22
|
+
"encodeurl": "~2.0.0",
|
|
23
23
|
"escape-html": "~1.0.3",
|
|
24
24
|
"etag": "~1.8.1",
|
|
25
|
-
"fresh": "0.5.2",
|
|
26
|
-
"http-errors": "2.0.
|
|
25
|
+
"fresh": "~0.5.2",
|
|
26
|
+
"http-errors": "~2.0.1",
|
|
27
27
|
"mime": "1.6.0",
|
|
28
28
|
"ms": "2.1.3",
|
|
29
|
-
"on-finished": "2.4.1",
|
|
29
|
+
"on-finished": "~2.4.1",
|
|
30
30
|
"range-parser": "~1.2.1",
|
|
31
|
-
"statuses": "2.0.
|
|
31
|
+
"statuses": "~2.0.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"after": "0.8.2",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "serve-static",
|
|
3
3
|
"description": "Serve static files",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.3",
|
|
5
5
|
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "expressjs/serve-static",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"encodeurl": "~2.0.0",
|
|
10
10
|
"escape-html": "~1.0.3",
|
|
11
11
|
"parseurl": "~1.3.3",
|
|
12
|
-
"send": "0.19.
|
|
12
|
+
"send": "~0.19.1"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"eslint": "7.32.0",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
[![Node.js Version][node-version-image]][node-version-url]
|
|
6
6
|
[![Build Status][ci-image]][ci-url]
|
|
7
7
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
8
|
+
[![OpenSSF Scorecard Badge][ossf-scorecard-badge]][ossf-scorecard-visualizer]
|
|
8
9
|
|
|
9
10
|
HTTP status utility for node.
|
|
10
11
|
|
|
@@ -134,3 +135,5 @@ status.retry[503] // => true
|
|
|
134
135
|
[npm-downloads-image]: https://badgen.net/npm/dm/statuses
|
|
135
136
|
[npm-url]: https://npmjs.org/package/statuses
|
|
136
137
|
[npm-version-image]: https://badgen.net/npm/v/statuses
|
|
138
|
+
[ossf-scorecard-badge]: https://api.securityscorecards.dev/projects/github.com/jshttp/statuses/badge
|
|
139
|
+
[ossf-scorecard-visualizer]: https://kooltheba.github.io/openssf-scorecard-api-visualizer/#/projects/github.com/jshttp/statuses
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "statuses",
|
|
3
3
|
"description": "HTTP status utility",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
7
7
|
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"LICENSE"
|
|
21
21
|
],
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"csv-parse": "4.
|
|
24
|
-
"eslint": "7.
|
|
23
|
+
"csv-parse": "4.16.3",
|
|
24
|
+
"eslint": "7.19.0",
|
|
25
25
|
"eslint-config-standard": "14.1.1",
|
|
26
|
-
"eslint-plugin-import": "2.
|
|
26
|
+
"eslint-plugin-import": "2.31.0",
|
|
27
27
|
"eslint-plugin-markdown": "1.0.2",
|
|
28
28
|
"eslint-plugin-node": "11.1.0",
|
|
29
|
-
"eslint-plugin-promise": "4.
|
|
29
|
+
"eslint-plugin-promise": "4.3.1",
|
|
30
30
|
"eslint-plugin-standard": "4.1.0",
|
|
31
|
-
"mocha": "8.
|
|
31
|
+
"mocha": "8.4.0",
|
|
32
32
|
"nyc": "15.1.0",
|
|
33
|
-
"raw-body": "2.
|
|
33
|
+
"raw-body": "2.5.2",
|
|
34
34
|
"stream-to-array": "2.3.0"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
package/package.json
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-web-worldmap",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.7",
|
|
4
4
|
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@turf/bezier-spline": "~7.
|
|
6
|
+
"@turf/bezier-spline": "~7.3.4",
|
|
7
7
|
"cgi": "0.3.1",
|
|
8
8
|
"compression": "^1.8.1",
|
|
9
|
-
"express": "^4.
|
|
9
|
+
"express": "^4.22.1",
|
|
10
10
|
"sockjs": "~0.3.24"
|
|
11
11
|
},
|
|
12
|
+
"overrides": {
|
|
13
|
+
"express": {
|
|
14
|
+
"qs": "^6.14.1"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
12
17
|
"bundledDependencies": [
|
|
13
18
|
"cgi",
|
|
14
19
|
"compression",
|
package/worldmap/worldmap.js
CHANGED
|
@@ -562,6 +562,7 @@ function doTidyUp(l) {
|
|
|
562
562
|
layers[markers[m].lay].removeLayer(markers[m]);
|
|
563
563
|
delete markers[m];
|
|
564
564
|
delete allData[m];
|
|
565
|
+
edgeAware();
|
|
565
566
|
}
|
|
566
567
|
}
|
|
567
568
|
}
|
|
@@ -1832,7 +1833,7 @@ function setMarker(data) {
|
|
|
1832
1833
|
if (data.SOG) { data.speed = data.SOG * 0.514444; data.SOG = data.SOG + " kt"; } // SOG is in knots
|
|
1833
1834
|
|
|
1834
1835
|
if (data.hasOwnProperty("icon")) {
|
|
1835
|
-
var dir = parseFloat(data.track ?? data.hdg ?? data.heading ?? data.bearing ?? "0") + map.getBearing();
|
|
1836
|
+
var dir = parseFloat(data.track ?? data.hdg ?? data.heading ?? data.bearing ?? data.COG ?? data.cog ??"0") + map.getBearing();
|
|
1836
1837
|
var siz = 32;
|
|
1837
1838
|
var sizc = 16;
|
|
1838
1839
|
if (data?.iconSize && !isNaN(data.iconSize)) {
|
|
@@ -2167,6 +2168,7 @@ function setMarker(data) {
|
|
|
2167
2168
|
data.speed = opts?.speed || data?.speed; // If SIDC then options.speed can override the speed.
|
|
2168
2169
|
if (data?.speed && !opts?.direction) { opts.direction = data?.track || data?.hdg || data?.heading || data?.COG || data?.bearing }
|
|
2169
2170
|
if (data.speed == undefined) { delete data.speed; }
|
|
2171
|
+
if (data.speed === 0 && opts.direction === 0) { delete opts.direction; }
|
|
2170
2172
|
// escape out any isocodes eg flag symbols
|
|
2171
2173
|
var optfields = ["additionalInformation","higherFormation","specialHeadquarters","staffComments","type","uniqueDesignation","speed","country"];
|
|
2172
2174
|
//const regex = /\p{Extended_Pictographic}/ug;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# Security Policies and Procedures
|
|
2
|
-
|
|
3
|
-
## Reporting a Bug
|
|
4
|
-
|
|
5
|
-
The Express team and community take all security bugs seriously. Thank you
|
|
6
|
-
for improving the security of Express. We appreciate your efforts and
|
|
7
|
-
responsible disclosure and will make every effort to acknowledge your
|
|
8
|
-
contributions.
|
|
9
|
-
|
|
10
|
-
Report security bugs by emailing the current owner(s) of `body-parser`. This
|
|
11
|
-
information can be found in the npm registry using the command
|
|
12
|
-
`npm owner ls body-parser`.
|
|
13
|
-
If unsure or unable to get the information from the above, open an issue
|
|
14
|
-
in the [project issue tracker](https://github.com/expressjs/body-parser/issues)
|
|
15
|
-
asking for the current contact information.
|
|
16
|
-
|
|
17
|
-
To ensure the timely response to your report, please ensure that the entirety
|
|
18
|
-
of the report is contained within the email body and not solely behind a web
|
|
19
|
-
link or an attachment.
|
|
20
|
-
|
|
21
|
-
At least one owner will acknowledge your email within 48 hours, and will send a
|
|
22
|
-
more detailed response within 48 hours indicating the next steps in handling
|
|
23
|
-
your report. After the initial reply to your report, the owners will
|
|
24
|
-
endeavor to keep you informed of the progress towards a fix and full
|
|
25
|
-
announcement, and may ask for additional information or guidance.
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
|
|
4
|
-
"extends": "@ljharb",
|
|
5
|
-
|
|
6
|
-
"ignorePatterns": [
|
|
7
|
-
"dist/",
|
|
8
|
-
],
|
|
9
|
-
|
|
10
|
-
"rules": {
|
|
11
|
-
"complexity": 0,
|
|
12
|
-
"consistent-return": 1,
|
|
13
|
-
"func-name-matching": 0,
|
|
14
|
-
"id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
|
|
15
|
-
"indent": [2, 4],
|
|
16
|
-
"max-lines-per-function": [2, { "max": 150 }],
|
|
17
|
-
"max-params": [2, 18],
|
|
18
|
-
"max-statements": [2, 100],
|
|
19
|
-
"multiline-comment-style": 0,
|
|
20
|
-
"no-continue": 1,
|
|
21
|
-
"no-magic-numbers": 0,
|
|
22
|
-
"no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
"overrides": [
|
|
26
|
-
{
|
|
27
|
-
"files": "test/**",
|
|
28
|
-
"rules": {
|
|
29
|
-
"function-paren-newline": 0,
|
|
30
|
-
"max-lines-per-function": 0,
|
|
31
|
-
"max-statements": 0,
|
|
32
|
-
"no-buffer-constructor": 0,
|
|
33
|
-
"no-extend-native": 0,
|
|
34
|
-
"no-throw-literal": 0,
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
}
|