node-red-contrib-web-worldmap 4.9.0 → 5.0.1
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 +2 -0
- package/README.md +7 -3
- package/examples/{feedback.json → Feedback.json} +1 -9
- package/examples/MouseCoordinates.json +159 -0
- package/examples/sidcEdgeIcon.json +158 -0
- package/node_modules/@turf/bezier-spline/README.md +15 -21
- package/node_modules/@turf/bezier-spline/dist/cjs/index.cjs +165 -0
- package/node_modules/@turf/bezier-spline/dist/cjs/index.cjs.map +1 -0
- package/node_modules/@turf/bezier-spline/dist/{es/index.js → cjs/index.d.cts} +9 -30
- package/node_modules/@turf/bezier-spline/dist/{js → esm}/index.d.ts +5 -3
- package/node_modules/@turf/bezier-spline/dist/esm/index.js +165 -0
- package/node_modules/@turf/bezier-spline/dist/esm/index.js.map +1 -0
- package/node_modules/@turf/bezier-spline/package.json +33 -25
- package/node_modules/@turf/helpers/README.md +231 -219
- package/node_modules/@turf/helpers/dist/cjs/index.cjs +308 -0
- package/node_modules/@turf/helpers/dist/cjs/index.cjs.map +1 -0
- package/node_modules/@turf/helpers/dist/{es/index.js → cjs/index.d.cts} +103 -303
- package/node_modules/@turf/helpers/dist/{js → esm}/index.d.ts +67 -53
- package/node_modules/@turf/helpers/dist/esm/index.js +308 -0
- package/node_modules/@turf/helpers/dist/esm/index.js.map +1 -0
- package/node_modules/@turf/helpers/package.json +32 -22
- package/node_modules/@turf/invariant/README.md +47 -58
- package/node_modules/@turf/invariant/dist/cjs/index.cjs +127 -0
- package/node_modules/@turf/invariant/dist/cjs/index.cjs.map +1 -0
- package/node_modules/@turf/invariant/dist/cjs/index.d.cts +108 -0
- package/node_modules/@turf/invariant/dist/{js → esm}/index.d.ts +12 -9
- package/node_modules/@turf/invariant/dist/esm/index.js +127 -0
- package/node_modules/@turf/invariant/dist/esm/index.js.map +1 -0
- package/node_modules/@turf/invariant/package.json +31 -22
- package/node_modules/@types/geojson/LICENSE +21 -0
- package/node_modules/@types/geojson/README.md +15 -0
- package/node_modules/@types/geojson/index.d.ts +165 -0
- package/node_modules/@types/geojson/package.json +45 -0
- package/node_modules/body-parser/HISTORY.md +7 -0
- package/node_modules/body-parser/README.md +11 -0
- package/node_modules/body-parser/lib/types/urlencoded.js +30 -7
- package/node_modules/body-parser/package.json +2 -2
- package/node_modules/encodeurl/README.md +19 -38
- package/node_modules/encodeurl/index.js +1 -1
- package/node_modules/encodeurl/package.json +7 -7
- package/node_modules/express/History.md +27 -0
- package/node_modules/express/Readme.md +100 -6
- package/node_modules/express/lib/response.js +11 -10
- package/node_modules/express/package.json +11 -11
- package/node_modules/finalhandler/HISTORY.md +15 -0
- package/node_modules/finalhandler/README.md +2 -2
- package/node_modules/finalhandler/index.js +7 -2
- package/node_modules/finalhandler/package.json +8 -7
- package/node_modules/merge-descriptors/README.md +4 -3
- package/node_modules/merge-descriptors/index.js +3 -3
- package/node_modules/merge-descriptors/package.json +14 -7
- package/node_modules/mime-db/HISTORY.md +14 -0
- package/node_modules/mime-db/README.md +27 -24
- package/node_modules/mime-db/db.json +646 -62
- package/node_modules/mime-db/package.json +9 -13
- package/node_modules/mime-types/node_modules/mime-db/HISTORY.md +507 -0
- package/node_modules/mime-types/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-types/node_modules/mime-db/README.md +100 -0
- package/node_modules/mime-types/node_modules/mime-db/db.json +8519 -0
- package/node_modules/mime-types/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-types/node_modules/mime-db/package.json +60 -0
- package/node_modules/object-inspect/CHANGELOG.md +15 -0
- package/node_modules/object-inspect/index.js +4 -1
- package/node_modules/object-inspect/package.json +14 -9
- package/node_modules/object-inspect/readme.markdown +9 -11
- package/node_modules/path-to-regexp/index.js +57 -40
- package/node_modules/path-to-regexp/package.json +2 -2
- package/node_modules/qs/.editorconfig +3 -0
- package/node_modules/qs/.eslintrc +2 -2
- package/node_modules/qs/CHANGELOG.md +59 -5
- package/node_modules/qs/README.md +133 -49
- package/node_modules/qs/dist/qs.js +56 -2020
- package/node_modules/qs/lib/parse.js +46 -13
- package/node_modules/qs/lib/stringify.js +53 -28
- package/node_modules/qs/lib/utils.js +47 -34
- package/node_modules/qs/package.json +26 -12
- package/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/node_modules/qs/test/parse.js +347 -32
- package/node_modules/qs/test/stringify.js +436 -47
- package/node_modules/send/HISTORY.md +5 -0
- package/node_modules/send/index.js +1 -2
- package/node_modules/send/node_modules/encodeurl/LICENSE +22 -0
- package/node_modules/send/node_modules/encodeurl/README.md +128 -0
- package/node_modules/send/node_modules/encodeurl/index.js +60 -0
- package/node_modules/send/node_modules/encodeurl/package.json +40 -0
- package/node_modules/send/package.json +1 -1
- package/node_modules/serve-static/HISTORY.md +16 -0
- package/node_modules/serve-static/index.js +1 -2
- package/node_modules/serve-static/package.json +3 -3
- package/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/tslib/README.md +164 -0
- package/node_modules/tslib/SECURITY.md +41 -0
- package/node_modules/tslib/modules/index.d.ts +37 -0
- package/node_modules/tslib/modules/index.js +68 -0
- package/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tslib/package.json +47 -0
- package/node_modules/tslib/tslib.d.ts +453 -0
- package/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tslib/tslib.es6.js +379 -0
- package/node_modules/tslib/tslib.es6.mjs +378 -0
- package/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tslib/tslib.js +429 -0
- package/package.json +5 -5
- package/worldmap/index.html +1 -1
- package/worldmap/leaflet/leaflet.mousecoordinate.js +3 -3
- package/worldmap/worldmap.js +123 -36
- package/worldmap.html +1 -1
- package/worldmap.js +23 -4
- package/node_modules/@turf/bezier-spline/dist/es/lib/spline.js +0 -158
- package/node_modules/@turf/bezier-spline/dist/es/package.json +0 -1
- package/node_modules/@turf/bezier-spline/dist/js/index.js +0 -65
- package/node_modules/@turf/bezier-spline/dist/js/lib/spline.d.ts +0 -62
- package/node_modules/@turf/bezier-spline/dist/js/lib/spline.js +0 -160
- package/node_modules/@turf/helpers/dist/es/lib/geojson.js +0 -7
- package/node_modules/@turf/helpers/dist/es/package.json +0 -1
- package/node_modules/@turf/helpers/dist/js/index.js +0 -724
- package/node_modules/@turf/helpers/dist/js/lib/geojson.d.ts +0 -193
- package/node_modules/@turf/helpers/dist/js/lib/geojson.js +0 -9
- package/node_modules/@turf/invariant/dist/es/index.js +0 -223
- package/node_modules/@turf/invariant/dist/es/package.json +0 -1
- package/node_modules/@turf/invariant/dist/js/index.js +0 -233
- package/node_modules/path-to-regexp/History.md +0 -36
- /package/node_modules/{encodeurl → send/node_modules/encodeurl}/HISTORY.md +0 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
emptyTestCases: [
|
|
5
|
+
{
|
|
6
|
+
input: '&',
|
|
7
|
+
withEmptyKeys: {},
|
|
8
|
+
stringifyOutput: {
|
|
9
|
+
brackets: '',
|
|
10
|
+
indices: '',
|
|
11
|
+
repeat: ''
|
|
12
|
+
},
|
|
13
|
+
noEmptyKeys: {}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
input: '&&',
|
|
17
|
+
withEmptyKeys: {},
|
|
18
|
+
stringifyOutput: {
|
|
19
|
+
brackets: '',
|
|
20
|
+
indices: '',
|
|
21
|
+
repeat: ''
|
|
22
|
+
},
|
|
23
|
+
noEmptyKeys: {}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
input: '&=',
|
|
27
|
+
withEmptyKeys: { '': '' },
|
|
28
|
+
stringifyOutput: {
|
|
29
|
+
brackets: '=',
|
|
30
|
+
indices: '=',
|
|
31
|
+
repeat: '='
|
|
32
|
+
},
|
|
33
|
+
noEmptyKeys: {}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
input: '&=&',
|
|
37
|
+
withEmptyKeys: { '': '' },
|
|
38
|
+
stringifyOutput: {
|
|
39
|
+
brackets: '=',
|
|
40
|
+
indices: '=',
|
|
41
|
+
repeat: '='
|
|
42
|
+
},
|
|
43
|
+
noEmptyKeys: {}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
input: '&=&=',
|
|
47
|
+
withEmptyKeys: { '': ['', ''] },
|
|
48
|
+
stringifyOutput: {
|
|
49
|
+
brackets: '[]=&[]=',
|
|
50
|
+
indices: '[0]=&[1]=',
|
|
51
|
+
repeat: '=&='
|
|
52
|
+
},
|
|
53
|
+
noEmptyKeys: {}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
input: '&=&=&',
|
|
57
|
+
withEmptyKeys: { '': ['', ''] },
|
|
58
|
+
stringifyOutput: {
|
|
59
|
+
brackets: '[]=&[]=',
|
|
60
|
+
indices: '[0]=&[1]=',
|
|
61
|
+
repeat: '=&='
|
|
62
|
+
},
|
|
63
|
+
noEmptyKeys: {}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
input: '=',
|
|
67
|
+
withEmptyKeys: { '': '' },
|
|
68
|
+
noEmptyKeys: {},
|
|
69
|
+
stringifyOutput: {
|
|
70
|
+
brackets: '=',
|
|
71
|
+
indices: '=',
|
|
72
|
+
repeat: '='
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
input: '=&',
|
|
77
|
+
withEmptyKeys: { '': '' },
|
|
78
|
+
stringifyOutput: {
|
|
79
|
+
brackets: '=',
|
|
80
|
+
indices: '=',
|
|
81
|
+
repeat: '='
|
|
82
|
+
},
|
|
83
|
+
noEmptyKeys: {}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
input: '=&&&',
|
|
87
|
+
withEmptyKeys: { '': '' },
|
|
88
|
+
stringifyOutput: {
|
|
89
|
+
brackets: '=',
|
|
90
|
+
indices: '=',
|
|
91
|
+
repeat: '='
|
|
92
|
+
},
|
|
93
|
+
noEmptyKeys: {}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
input: '=&=&=&',
|
|
97
|
+
withEmptyKeys: { '': ['', '', ''] },
|
|
98
|
+
stringifyOutput: {
|
|
99
|
+
brackets: '[]=&[]=&[]=',
|
|
100
|
+
indices: '[0]=&[1]=&[2]=',
|
|
101
|
+
repeat: '=&=&='
|
|
102
|
+
},
|
|
103
|
+
noEmptyKeys: {}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
input: '=&a[]=b&a[1]=c',
|
|
107
|
+
withEmptyKeys: { '': '', a: ['b', 'c'] },
|
|
108
|
+
stringifyOutput: {
|
|
109
|
+
brackets: '=&a[]=b&a[]=c',
|
|
110
|
+
indices: '=&a[0]=b&a[1]=c',
|
|
111
|
+
repeat: '=&a=b&a=c'
|
|
112
|
+
},
|
|
113
|
+
noEmptyKeys: { a: ['b', 'c'] }
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
input: '=a',
|
|
117
|
+
withEmptyKeys: { '': 'a' },
|
|
118
|
+
noEmptyKeys: {},
|
|
119
|
+
stringifyOutput: {
|
|
120
|
+
brackets: '=a',
|
|
121
|
+
indices: '=a',
|
|
122
|
+
repeat: '=a'
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
input: 'a==a',
|
|
127
|
+
withEmptyKeys: { a: '=a' },
|
|
128
|
+
noEmptyKeys: { a: '=a' },
|
|
129
|
+
stringifyOutput: {
|
|
130
|
+
brackets: 'a==a',
|
|
131
|
+
indices: 'a==a',
|
|
132
|
+
repeat: 'a==a'
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
input: '=&a[]=b',
|
|
137
|
+
withEmptyKeys: { '': '', a: ['b'] },
|
|
138
|
+
stringifyOutput: {
|
|
139
|
+
brackets: '=&a[]=b',
|
|
140
|
+
indices: '=&a[0]=b',
|
|
141
|
+
repeat: '=&a=b'
|
|
142
|
+
},
|
|
143
|
+
noEmptyKeys: { a: ['b'] }
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
input: '=&a[]=b&a[]=c&a[2]=d',
|
|
147
|
+
withEmptyKeys: { '': '', a: ['b', 'c', 'd'] },
|
|
148
|
+
stringifyOutput: {
|
|
149
|
+
brackets: '=&a[]=b&a[]=c&a[]=d',
|
|
150
|
+
indices: '=&a[0]=b&a[1]=c&a[2]=d',
|
|
151
|
+
repeat: '=&a=b&a=c&a=d'
|
|
152
|
+
},
|
|
153
|
+
noEmptyKeys: { a: ['b', 'c', 'd'] }
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
input: '=a&=b',
|
|
157
|
+
withEmptyKeys: { '': ['a', 'b'] },
|
|
158
|
+
stringifyOutput: {
|
|
159
|
+
brackets: '[]=a&[]=b',
|
|
160
|
+
indices: '[0]=a&[1]=b',
|
|
161
|
+
repeat: '=a&=b'
|
|
162
|
+
},
|
|
163
|
+
noEmptyKeys: {}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
input: '=a&foo=b',
|
|
167
|
+
withEmptyKeys: { '': 'a', foo: 'b' },
|
|
168
|
+
noEmptyKeys: { foo: 'b' },
|
|
169
|
+
stringifyOutput: {
|
|
170
|
+
brackets: '=a&foo=b',
|
|
171
|
+
indices: '=a&foo=b',
|
|
172
|
+
repeat: '=a&foo=b'
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
input: 'a[]=b&a=c&=',
|
|
177
|
+
withEmptyKeys: { '': '', a: ['b', 'c'] },
|
|
178
|
+
stringifyOutput: {
|
|
179
|
+
brackets: '=&a[]=b&a[]=c',
|
|
180
|
+
indices: '=&a[0]=b&a[1]=c',
|
|
181
|
+
repeat: '=&a=b&a=c'
|
|
182
|
+
},
|
|
183
|
+
noEmptyKeys: { a: ['b', 'c'] }
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
input: 'a[]=b&a=c&=',
|
|
187
|
+
withEmptyKeys: { '': '', a: ['b', 'c'] },
|
|
188
|
+
stringifyOutput: {
|
|
189
|
+
brackets: '=&a[]=b&a[]=c',
|
|
190
|
+
indices: '=&a[0]=b&a[1]=c',
|
|
191
|
+
repeat: '=&a=b&a=c'
|
|
192
|
+
},
|
|
193
|
+
noEmptyKeys: { a: ['b', 'c'] }
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
input: 'a[0]=b&a=c&=',
|
|
197
|
+
withEmptyKeys: { '': '', a: ['b', 'c'] },
|
|
198
|
+
stringifyOutput: {
|
|
199
|
+
brackets: '=&a[]=b&a[]=c',
|
|
200
|
+
indices: '=&a[0]=b&a[1]=c',
|
|
201
|
+
repeat: '=&a=b&a=c'
|
|
202
|
+
},
|
|
203
|
+
noEmptyKeys: { a: ['b', 'c'] }
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
input: 'a=b&a[]=c&=',
|
|
207
|
+
withEmptyKeys: { '': '', a: ['b', 'c'] },
|
|
208
|
+
stringifyOutput: {
|
|
209
|
+
brackets: '=&a[]=b&a[]=c',
|
|
210
|
+
indices: '=&a[0]=b&a[1]=c',
|
|
211
|
+
repeat: '=&a=b&a=c'
|
|
212
|
+
},
|
|
213
|
+
noEmptyKeys: { a: ['b', 'c'] }
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
input: 'a=b&a[0]=c&=',
|
|
217
|
+
withEmptyKeys: { '': '', a: ['b', 'c'] },
|
|
218
|
+
stringifyOutput: {
|
|
219
|
+
brackets: '=&a[]=b&a[]=c',
|
|
220
|
+
indices: '=&a[0]=b&a[1]=c',
|
|
221
|
+
repeat: '=&a=b&a=c'
|
|
222
|
+
},
|
|
223
|
+
noEmptyKeys: { a: ['b', 'c'] }
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
input: '[]=a&[]=b& []=1',
|
|
227
|
+
withEmptyKeys: { '': ['a', 'b'], ' ': ['1'] },
|
|
228
|
+
stringifyOutput: {
|
|
229
|
+
brackets: '[]=a&[]=b& []=1',
|
|
230
|
+
indices: '[0]=a&[1]=b& [0]=1',
|
|
231
|
+
repeat: '=a&=b& =1'
|
|
232
|
+
},
|
|
233
|
+
noEmptyKeys: { 0: 'a', 1: 'b', ' ': ['1'] }
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
input: '[0]=a&[1]=b&a[0]=1&a[1]=2',
|
|
237
|
+
withEmptyKeys: { '': ['a', 'b'], a: ['1', '2'] },
|
|
238
|
+
noEmptyKeys: { 0: 'a', 1: 'b', a: ['1', '2'] },
|
|
239
|
+
stringifyOutput: {
|
|
240
|
+
brackets: '[]=a&[]=b&a[]=1&a[]=2',
|
|
241
|
+
indices: '[0]=a&[1]=b&a[0]=1&a[1]=2',
|
|
242
|
+
repeat: '=a&=b&a=1&a=2'
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
input: '[deep]=a&[deep]=2',
|
|
247
|
+
withEmptyKeys: { '': { deep: ['a', '2'] }
|
|
248
|
+
},
|
|
249
|
+
stringifyOutput: {
|
|
250
|
+
brackets: '[deep][]=a&[deep][]=2',
|
|
251
|
+
indices: '[deep][0]=a&[deep][1]=2',
|
|
252
|
+
repeat: '[deep]=a&[deep]=2'
|
|
253
|
+
},
|
|
254
|
+
noEmptyKeys: { deep: ['a', '2'] }
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
input: '%5B0%5D=a&%5B1%5D=b',
|
|
258
|
+
withEmptyKeys: { '': ['a', 'b'] },
|
|
259
|
+
stringifyOutput: {
|
|
260
|
+
brackets: '[]=a&[]=b',
|
|
261
|
+
indices: '[0]=a&[1]=b',
|
|
262
|
+
repeat: '=a&=b'
|
|
263
|
+
},
|
|
264
|
+
noEmptyKeys: { 0: 'a', 1: 'b' }
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
};
|