@basemaps/lambda-tiler 6.38.0 → 6.39.0
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 +22 -0
- package/build/routes/__tests__/tile.style.json.test.js +91 -43
- package/build/routes/__tests__/tile.style.json.test.js.map +1 -1
- package/build/routes/tile.style.json.d.ts +2 -2
- package/build/routes/tile.style.json.d.ts.map +1 -1
- package/build/routes/tile.style.json.js +5 -3
- package/build/routes/tile.style.json.js.map +1 -1
- package/build/routes/tile.xyz.raster.js +4 -5
- package/build/routes/tile.xyz.raster.js.map +1 -1
- package/dist/index.js +35 -35
- package/dist/node_modules/.package-lock.json +7 -7
- package/dist/node_modules/node-abi/.circleci/config.yml +5 -23
- package/dist/node_modules/node-abi/CONTRIBUTING.md +1 -1
- package/dist/node_modules/node-abi/abi_registry.json +7 -0
- package/dist/node_modules/node-abi/package.json +2 -3
- package/dist/node_modules/node-addon-api/README.md +36 -12
- package/dist/node_modules/node-addon-api/index.js +3 -3
- package/dist/node_modules/node-addon-api/napi-inl.deprecated.h +121 -127
- package/dist/node_modules/node-addon-api/napi-inl.h +1166 -1122
- package/dist/node_modules/node-addon-api/napi.h +2786 -2675
- package/dist/node_modules/node-addon-api/package.json +42 -1
- package/dist/node_modules/node-addon-api/tools/check-napi.js +13 -14
- package/dist/node_modules/node-addon-api/tools/conversion.js +161 -169
- package/dist/node_modules/node-addon-api/tools/eslint-format.js +9 -1
- package/dist/package-lock.json +14 -14
- package/dist/package.json +1 -1
- package/package.json +4 -4
- package/src/routes/__tests__/tile.style.json.test.ts +100 -44
- package/src/routes/tile.style.json.ts +11 -4
- package/src/routes/tile.xyz.raster.ts +6 -6
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"name": "Alexander Floh",
|
|
16
16
|
"url": "https://github.com/alexanderfloh"
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"name": "Ammar Faizi",
|
|
20
|
+
"url": "https://github.com/ammarfaizi2"
|
|
21
|
+
},
|
|
18
22
|
{
|
|
19
23
|
"name": "András Timár, Dr",
|
|
20
24
|
"url": "https://github.com/timarandras"
|
|
@@ -71,6 +75,10 @@
|
|
|
71
75
|
"name": "Daniel Bevenius",
|
|
72
76
|
"url": "https://github.com/danbev"
|
|
73
77
|
},
|
|
78
|
+
{
|
|
79
|
+
"name": "Dante Calderón",
|
|
80
|
+
"url": "https://github.com/dantehemerson"
|
|
81
|
+
},
|
|
74
82
|
{
|
|
75
83
|
"name": "Darshan Sen",
|
|
76
84
|
"url": "https://github.com/RaisinTen"
|
|
@@ -103,6 +111,10 @@
|
|
|
103
111
|
"name": "extremeheat",
|
|
104
112
|
"url": "https://github.com/extremeheat"
|
|
105
113
|
},
|
|
114
|
+
{
|
|
115
|
+
"name": "Feng Yu",
|
|
116
|
+
"url": "https://github.com/F3n67u"
|
|
117
|
+
},
|
|
106
118
|
{
|
|
107
119
|
"name": "Ferdinand Holzer",
|
|
108
120
|
"url": "https://github.com/fholzer"
|
|
@@ -147,6 +159,10 @@
|
|
|
147
159
|
"name": "Jason Ginchereau",
|
|
148
160
|
"url": "https://github.com/jasongin"
|
|
149
161
|
},
|
|
162
|
+
{
|
|
163
|
+
"name": "Jenny",
|
|
164
|
+
"url": "https://github.com/egg-bread"
|
|
165
|
+
},
|
|
150
166
|
{
|
|
151
167
|
"name": "Jeroen Janssen",
|
|
152
168
|
"url": "https://github.com/japj"
|
|
@@ -167,6 +183,10 @@
|
|
|
167
183
|
"name": "joshgarde",
|
|
168
184
|
"url": "https://github.com/joshgarde"
|
|
169
185
|
},
|
|
186
|
+
{
|
|
187
|
+
"name": "Julian Mesa",
|
|
188
|
+
"url": "https://github.com/julianmesa-gitkraken"
|
|
189
|
+
},
|
|
170
190
|
{
|
|
171
191
|
"name": "Kasumi Hanazuki",
|
|
172
192
|
"url": "https://github.com/hanazuki"
|
|
@@ -199,6 +219,10 @@
|
|
|
199
219
|
"name": "Kyle Farnung",
|
|
200
220
|
"url": "https://github.com/kfarnung"
|
|
201
221
|
},
|
|
222
|
+
{
|
|
223
|
+
"name": "Kyle Kovacs",
|
|
224
|
+
"url": "https://github.com/nullromo"
|
|
225
|
+
},
|
|
202
226
|
{
|
|
203
227
|
"name": "legendecas",
|
|
204
228
|
"url": "https://github.com/legendecas"
|
|
@@ -267,6 +291,10 @@
|
|
|
267
291
|
"name": "pacop",
|
|
268
292
|
"url": "https://github.com/pacop"
|
|
269
293
|
},
|
|
294
|
+
{
|
|
295
|
+
"name": "Peter Šándor",
|
|
296
|
+
"url": "https://github.com/petersandor"
|
|
297
|
+
},
|
|
270
298
|
{
|
|
271
299
|
"name": "Philipp Renoth",
|
|
272
300
|
"url": "https://github.com/DaAitch"
|
|
@@ -275,6 +303,10 @@
|
|
|
275
303
|
"name": "rgerd",
|
|
276
304
|
"url": "https://github.com/rgerd"
|
|
277
305
|
},
|
|
306
|
+
{
|
|
307
|
+
"name": "Richard Lau",
|
|
308
|
+
"url": "https://github.com/richardlau"
|
|
309
|
+
},
|
|
278
310
|
{
|
|
279
311
|
"name": "Rolf Timmermans",
|
|
280
312
|
"url": "https://github.com/rolftimmermans"
|
|
@@ -287,6 +319,10 @@
|
|
|
287
319
|
"name": "Ryuichi Okumura",
|
|
288
320
|
"url": "https://github.com/okuryu"
|
|
289
321
|
},
|
|
322
|
+
{
|
|
323
|
+
"name": "Saint Gabriel",
|
|
324
|
+
"url": "https://github.com/chineduG"
|
|
325
|
+
},
|
|
290
326
|
{
|
|
291
327
|
"name": "Sampson Gao",
|
|
292
328
|
"url": "https://github.com/sampsongao"
|
|
@@ -351,6 +387,10 @@
|
|
|
351
387
|
{
|
|
352
388
|
"name": "Ziqiu Zhao",
|
|
353
389
|
"url": "https://github.com/ZzqiZQute"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "Feng Yu",
|
|
393
|
+
"url": "https://github.com/F3n67u"
|
|
354
394
|
}
|
|
355
395
|
],
|
|
356
396
|
"description": "Node.js API (Node-API)",
|
|
@@ -401,6 +441,7 @@
|
|
|
401
441
|
"benchmark": "node benchmark",
|
|
402
442
|
"pretest": "node-gyp rebuild -C test",
|
|
403
443
|
"test": "node test",
|
|
444
|
+
"test:debug": "node-gyp rebuild -C test --debug && NODE_API_BUILD_CONFIG=Debug node ./test/index.js",
|
|
404
445
|
"predev": "node-gyp rebuild -C test --debug",
|
|
405
446
|
"dev": "node test",
|
|
406
447
|
"predev:incremental": "node-gyp configure build -C test --debug",
|
|
@@ -410,6 +451,6 @@
|
|
|
410
451
|
"lint:fix": "node tools/clang-format --fix && node tools/eslint-format --fix"
|
|
411
452
|
},
|
|
412
453
|
"pre-commit": "lint",
|
|
413
|
-
"version": "5.
|
|
454
|
+
"version": "5.1.0",
|
|
414
455
|
"support": true
|
|
415
456
|
}
|
|
@@ -4,16 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
const fs = require('fs');
|
|
6
6
|
const path = require('path');
|
|
7
|
-
const child_process = require('child_process');
|
|
8
7
|
|
|
9
8
|
// Read the output of the command, break it into lines, and use the reducer to
|
|
10
9
|
// decide whether the file is an N-API module or not.
|
|
11
|
-
function checkFile(file, command, argv, reducer) {
|
|
12
|
-
const child = child_process.spawn(command, argv, {
|
|
10
|
+
function checkFile (file, command, argv, reducer) {
|
|
11
|
+
const child = require('child_process').spawn(command, argv, {
|
|
13
12
|
stdio: ['inherit', 'pipe', 'inherit']
|
|
14
13
|
});
|
|
15
14
|
let leftover = '';
|
|
16
|
-
let isNapi
|
|
15
|
+
let isNapi;
|
|
17
16
|
child.stdout.on('data', (chunk) => {
|
|
18
17
|
if (isNapi === undefined) {
|
|
19
18
|
chunk = (leftover + chunk.toString()).split(/[\r\n]+/);
|
|
@@ -27,11 +26,11 @@ function checkFile(file, command, argv, reducer) {
|
|
|
27
26
|
child.on('close', (code, signal) => {
|
|
28
27
|
if ((code === null && signal !== null) || (code !== 0)) {
|
|
29
28
|
console.log(
|
|
30
|
-
command + ' exited with code: '
|
|
29
|
+
command + ' exited with code: ' + code + ' and signal: ' + signal);
|
|
31
30
|
} else {
|
|
32
31
|
// Green if it's a N-API module, red otherwise.
|
|
33
32
|
console.log(
|
|
34
|
-
|
|
33
|
+
'\x1b[' + (isNapi ? '42' : '41') + 'm' +
|
|
35
34
|
(isNapi ? ' N-API' : 'Not N-API') +
|
|
36
35
|
'\x1b[0m: ' + file);
|
|
37
36
|
}
|
|
@@ -39,7 +38,7 @@ function checkFile(file, command, argv, reducer) {
|
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
// Use nm -a to list symbols.
|
|
42
|
-
function checkFileUNIX(file) {
|
|
41
|
+
function checkFileUNIX (file) {
|
|
43
42
|
checkFile(file, 'nm', ['-a', file], (soFar, line) => {
|
|
44
43
|
if (soFar === undefined) {
|
|
45
44
|
line = line.match(/([0-9a-f]*)? ([a-zA-Z]) (.*$)/);
|
|
@@ -54,7 +53,7 @@ function checkFileUNIX(file) {
|
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
// Use dumpbin /imports to list symbols.
|
|
57
|
-
function checkFileWin32(file) {
|
|
56
|
+
function checkFileWin32 (file) {
|
|
58
57
|
checkFile(file, 'dumpbin', ['/imports', file], (soFar, line) => {
|
|
59
58
|
if (soFar === undefined) {
|
|
60
59
|
line = line.match(/([0-9a-f]*)? +([a-zA-Z0-9]) (.*$)/);
|
|
@@ -68,16 +67,16 @@ function checkFileWin32(file) {
|
|
|
68
67
|
|
|
69
68
|
// Descend into a directory structure and pass each file ending in '.node' to
|
|
70
69
|
// one of the above checks, depending on the OS.
|
|
71
|
-
function recurse(top) {
|
|
70
|
+
function recurse (top) {
|
|
72
71
|
fs.readdir(top, (error, items) => {
|
|
73
72
|
if (error) {
|
|
74
|
-
throw (
|
|
73
|
+
throw new Error('error reading directory ' + top + ': ' + error);
|
|
75
74
|
}
|
|
76
75
|
items.forEach((item) => {
|
|
77
76
|
item = path.join(top, item);
|
|
78
77
|
fs.stat(item, ((item) => (error, stats) => {
|
|
79
78
|
if (error) {
|
|
80
|
-
throw (
|
|
79
|
+
throw new Error('error about ' + item + ': ' + error);
|
|
81
80
|
}
|
|
82
81
|
if (stats.isDirectory()) {
|
|
83
82
|
recurse(item);
|
|
@@ -86,9 +85,9 @@ function recurse(top) {
|
|
|
86
85
|
// artefacts of node-addon-api having identified a version of
|
|
87
86
|
// Node.js that ships with a correct implementation of N-API.
|
|
88
87
|
path.basename(item) !== 'nothing.node') {
|
|
89
|
-
process.platform === 'win32'
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
process.platform === 'win32'
|
|
89
|
+
? checkFileWin32(item)
|
|
90
|
+
: checkFileUNIX(item);
|
|
92
91
|
}
|
|
93
92
|
})(item));
|
|
94
93
|
});
|