@basemaps/lambda-tiler 6.19.0 → 6.20.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 +12 -0
- package/LICENSE +2 -2
- package/build/__test__/tile.style.json.test.d.ts +2 -0
- package/build/__test__/tile.style.json.test.d.ts.map +1 -0
- package/build/__test__/tile.style.json.test.js +33 -0
- package/build/__test__/xyz.test.js +24 -23
- package/build/cli/dump.js +2 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -0
- package/build/routes/esri/rest.d.ts +10 -0
- package/build/routes/esri/rest.d.ts.map +1 -0
- package/build/routes/esri/rest.js +87 -0
- package/build/routes/imagery.d.ts +2 -0
- package/build/routes/imagery.d.ts.map +1 -1
- package/build/routes/imagery.js +3 -1
- package/build/routes/response.d.ts +4 -0
- package/build/routes/response.d.ts.map +1 -0
- package/build/routes/response.js +3 -0
- package/build/routes/tile.d.ts +0 -20
- package/build/routes/tile.d.ts.map +1 -1
- package/build/routes/tile.js +11 -161
- package/build/routes/tile.json.d.ts +10 -0
- package/build/routes/tile.json.d.ts.map +1 -0
- package/build/routes/tile.json.js +31 -0
- package/build/routes/tile.style.json.d.ts +10 -0
- package/build/routes/tile.style.json.d.ts.map +1 -0
- package/build/routes/tile.style.json.js +74 -0
- package/build/routes/tile.wmts.d.ts +9 -0
- package/build/routes/tile.wmts.d.ts.map +1 -0
- package/build/routes/tile.wmts.js +57 -0
- package/build/routes/tile.xyz.d.ts +13 -0
- package/build/routes/tile.xyz.d.ts.map +1 -0
- package/build/routes/tile.xyz.js +28 -0
- package/build/tile.set.raster.d.ts +2 -0
- package/build/tile.set.raster.d.ts.map +1 -1
- package/build/tile.set.raster.js +3 -1
- package/build/tile.set.vector.js +1 -1
- package/dist/index.js +10545 -9583
- package/dist/node_modules/color/README.md +7 -7
- package/dist/node_modules/color/index.js +173 -158
- package/dist/node_modules/color/package.json +18 -16
- package/dist/node_modules/color-convert/conversions.js +281 -310
- package/dist/node_modules/color-convert/index.js +27 -24
- package/dist/node_modules/color-convert/package.json +16 -14
- package/dist/node_modules/color-convert/route.js +22 -22
- package/dist/node_modules/color-name/package.json +17 -14
- package/dist/node_modules/color-string/package.json +5 -5
- package/dist/node_modules/decompress-response/index.d.ts +14 -21
- package/dist/node_modules/decompress-response/index.js +34 -16
- package/dist/node_modules/decompress-response/license +1 -1
- package/dist/node_modules/decompress-response/package.json +23 -17
- package/dist/node_modules/decompress-response/readme.md +2 -6
- package/dist/node_modules/detect-libc/package.json +0 -1
- package/dist/node_modules/mimic-response/index.d.ts +2 -2
- package/dist/node_modules/mimic-response/index.js +41 -2
- package/dist/node_modules/mimic-response/package.json +17 -17
- package/dist/node_modules/mimic-response/readme.md +22 -1
- package/dist/node_modules/node-abi/.circleci/config.yml +63 -0
- package/dist/node_modules/node-abi/.releaserc.json +9 -0
- package/dist/node_modules/node-abi/abi_registry.json +39 -4
- package/dist/node_modules/node-abi/index.js +5 -2
- package/dist/node_modules/node-abi/package.json +17 -16
- package/dist/node_modules/node-abi/test/index.js +7 -15
- package/dist/node_modules/node-addon-api/README.md +2 -2
- package/dist/node_modules/node-addon-api/except.gypi +20 -11
- package/dist/node_modules/node-addon-api/napi-inl.h +734 -196
- package/dist/node_modules/node-addon-api/napi.h +420 -164
- package/dist/node_modules/node-addon-api/noexcept.gypi +21 -11
- package/dist/node_modules/node-addon-api/package.json +43 -14
- package/dist/node_modules/node-addon-api/tools/clang-format.js +18 -17
- package/dist/node_modules/node-addon-api/tools/eslint-format.js +71 -0
- package/dist/node_modules/prebuild-install/CHANGELOG.md +24 -7
- package/dist/node_modules/prebuild-install/README.md +24 -4
- package/dist/node_modules/prebuild-install/asset.js +10 -10
- package/dist/node_modules/prebuild-install/bin.js +13 -13
- package/dist/node_modules/prebuild-install/download.js +22 -22
- package/dist/node_modules/prebuild-install/log.js +4 -4
- package/dist/node_modules/prebuild-install/node_modules/detect-libc/LICENSE +201 -0
- package/dist/node_modules/prebuild-install/node_modules/detect-libc/README.md +160 -0
- package/dist/node_modules/prebuild-install/node_modules/detect-libc/index.d.ts +11 -0
- package/dist/node_modules/prebuild-install/node_modules/detect-libc/lib/detect-libc.js +178 -0
- package/dist/node_modules/prebuild-install/node_modules/detect-libc/lib/process.js +16 -0
- package/dist/node_modules/prebuild-install/node_modules/detect-libc/package.json +71 -0
- package/dist/node_modules/prebuild-install/package.json +18 -19
- package/dist/node_modules/prebuild-install/proxy.js +10 -10
- package/dist/node_modules/prebuild-install/rc.js +12 -12
- package/dist/node_modules/prebuild-install/util.js +14 -14
- package/dist/node_modules/semver/package.json +1 -0
- package/dist/node_modules/sharp/README.md +2 -2
- package/dist/node_modules/sharp/binding.gyp +12 -9
- package/dist/node_modules/sharp/build/Release/sharp-linux-x64.node +0 -0
- package/dist/node_modules/sharp/install/dll-copy.js +6 -6
- package/dist/node_modules/sharp/install/libvips.js +4 -8
- package/dist/node_modules/sharp/lib/channel.js +11 -7
- package/dist/node_modules/sharp/lib/colour.js +42 -1
- package/dist/node_modules/sharp/lib/constructor.js +18 -31
- package/dist/node_modules/sharp/lib/input.js +45 -3
- package/dist/node_modules/sharp/lib/is.js +19 -5
- package/dist/node_modules/sharp/lib/libvips.js +4 -19
- package/dist/node_modules/sharp/lib/operation.js +28 -5
- package/dist/node_modules/sharp/lib/output.js +147 -16
- package/dist/node_modules/sharp/lib/sharp.js +31 -0
- package/dist/node_modules/sharp/lib/utility.js +3 -2
- package/dist/node_modules/sharp/package.json +32 -23
- package/dist/node_modules/sharp/src/common.cc +67 -11
- package/dist/node_modules/sharp/src/common.h +25 -5
- package/dist/node_modules/sharp/src/libvips/cplusplus/VConnection.cpp +0 -26
- package/dist/node_modules/sharp/src/libvips/cplusplus/VImage.cpp +54 -16
- package/dist/node_modules/sharp/src/libvips/cplusplus/VInterpolate.cpp +0 -13
- package/dist/node_modules/sharp/src/libvips/cplusplus/vips-operators.cpp +185 -1
- package/dist/node_modules/sharp/src/metadata.cc +14 -0
- package/dist/node_modules/sharp/src/metadata.h +1 -0
- package/dist/node_modules/sharp/src/operations.cc +29 -3
- package/dist/node_modules/sharp/src/operations.h +13 -2
- package/dist/node_modules/sharp/src/pipeline.cc +103 -35
- package/dist/node_modules/sharp/src/pipeline.h +23 -3
- package/dist/node_modules/sharp/src/utilities.cc +1 -1
- package/dist/node_modules/sharp/vendor/{8.10.6 → 8.11.3/linux-x64}/THIRD-PARTY-NOTICES.md +2 -3
- package/dist/node_modules/sharp/vendor/{8.10.6 → 8.11.3/linux-x64}/lib/libvips-cpp.so.42 +0 -0
- package/dist/node_modules/sharp/vendor/{8.10.6 → 8.11.3/linux-x64}/platform.json +0 -0
- package/dist/node_modules/sharp/vendor/8.11.3/linux-x64/versions.json +30 -0
- package/dist/node_modules/simple-get/.github/dependabot.yml +15 -0
- package/dist/node_modules/simple-get/.github/workflows/ci.yml +23 -0
- package/dist/node_modules/simple-get/README.md +17 -3
- package/dist/node_modules/simple-get/index.js +9 -0
- package/dist/node_modules/simple-get/package.json +27 -13
- package/dist/package-lock.json +51 -51
- package/dist/package.json +9 -9
- package/package.json +10 -10
- package/src/__test__/tile.style.json.test.ts +40 -0
- package/src/__test__/xyz.test.ts +32 -30
- package/src/cli/dump.ts +2 -2
- package/src/index.ts +2 -0
- package/src/routes/esri/rest.ts +90 -0
- package/src/routes/imagery.ts +3 -1
- package/src/routes/response.ts +4 -0
- package/src/routes/tile.json.ts +44 -0
- package/src/routes/tile.style.json.ts +77 -0
- package/src/routes/tile.ts +11 -183
- package/src/routes/tile.wmts.ts +59 -0
- package/src/routes/tile.xyz.ts +30 -0
- package/src/tile.set.raster.ts +4 -1
- package/src/tile.set.vector.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/color-name/.eslintrc.json +0 -43
- package/dist/node_modules/color-name/test.js +0 -7
- package/dist/node_modules/node-abi/.travis.yml +0 -17
- package/dist/node_modules/node-abi/node_modules/semver/CHANGELOG.md +0 -39
- package/dist/node_modules/node-abi/node_modules/semver/LICENSE +0 -15
- package/dist/node_modules/node-abi/node_modules/semver/README.md +0 -412
- package/dist/node_modules/node-abi/node_modules/semver/bin/semver +0 -160
- package/dist/node_modules/node-abi/node_modules/semver/package.json +0 -60
- package/dist/node_modules/node-abi/node_modules/semver/range.bnf +0 -16
- package/dist/node_modules/node-abi/node_modules/semver/semver.js +0 -1483
- package/dist/node_modules/node-addon-api/CHANGELOG.md +0 -722
- package/dist/node_modules/sharp/build/Release/sharp.node +0 -0
- package/dist/node_modules/sharp/vendor/8.10.6/versions.json +0 -31
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
const knownProperties = [
|
|
7
7
|
'aborted',
|
|
8
8
|
'complete',
|
|
9
|
-
'destroy',
|
|
10
9
|
'headers',
|
|
11
10
|
'httpVersion',
|
|
12
11
|
'httpVersionMinor',
|
|
@@ -23,16 +22,56 @@ const knownProperties = [
|
|
|
23
22
|
];
|
|
24
23
|
|
|
25
24
|
module.exports = (fromStream, toStream) => {
|
|
25
|
+
if (toStream._readableState.autoDestroy) {
|
|
26
|
+
throw new Error('The second stream must have the `autoDestroy` option set to `false`');
|
|
27
|
+
}
|
|
28
|
+
|
|
26
29
|
const fromProperties = new Set(Object.keys(fromStream).concat(knownProperties));
|
|
27
30
|
|
|
31
|
+
const properties = {};
|
|
32
|
+
|
|
28
33
|
for (const property of fromProperties) {
|
|
29
34
|
// Don't overwrite existing properties.
|
|
30
35
|
if (property in toStream) {
|
|
31
36
|
continue;
|
|
32
37
|
}
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
properties[property] = {
|
|
40
|
+
get() {
|
|
41
|
+
const value = fromStream[property];
|
|
42
|
+
const isFunction = typeof value === 'function';
|
|
43
|
+
|
|
44
|
+
return isFunction ? value.bind(fromStream) : value;
|
|
45
|
+
},
|
|
46
|
+
set(value) {
|
|
47
|
+
fromStream[property] = value;
|
|
48
|
+
},
|
|
49
|
+
enumerable: true,
|
|
50
|
+
configurable: false
|
|
51
|
+
};
|
|
35
52
|
}
|
|
36
53
|
|
|
54
|
+
Object.defineProperties(toStream, properties);
|
|
55
|
+
|
|
56
|
+
fromStream.once('aborted', () => {
|
|
57
|
+
toStream.destroy();
|
|
58
|
+
|
|
59
|
+
toStream.emit('aborted');
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
fromStream.once('close', () => {
|
|
63
|
+
if (fromStream.complete) {
|
|
64
|
+
if (toStream.readable) {
|
|
65
|
+
toStream.once('end', () => {
|
|
66
|
+
toStream.emit('close');
|
|
67
|
+
});
|
|
68
|
+
} else {
|
|
69
|
+
toStream.emit('close');
|
|
70
|
+
}
|
|
71
|
+
} else {
|
|
72
|
+
toStream.emit('close');
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
37
76
|
return toStream;
|
|
38
77
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_from": "mimic-response@^
|
|
3
|
-
"_id": "mimic-response@
|
|
2
|
+
"_from": "mimic-response@^3.1.0",
|
|
3
|
+
"_id": "mimic-response@3.1.0",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
|
|
6
6
|
"_location": "/mimic-response",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
9
9
|
"type": "range",
|
|
10
10
|
"registry": true,
|
|
11
|
-
"raw": "mimic-response@^
|
|
11
|
+
"raw": "mimic-response@^3.1.0",
|
|
12
12
|
"name": "mimic-response",
|
|
13
13
|
"escapedName": "mimic-response",
|
|
14
|
-
"rawSpec": "^
|
|
14
|
+
"rawSpec": "^3.1.0",
|
|
15
15
|
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^
|
|
16
|
+
"fetchSpec": "^3.1.0"
|
|
17
17
|
},
|
|
18
18
|
"_requiredBy": [
|
|
19
19
|
"/decompress-response"
|
|
20
20
|
],
|
|
21
|
-
"_resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-
|
|
22
|
-
"_shasum": "
|
|
23
|
-
"_spec": "mimic-response@^
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
|
|
22
|
+
"_shasum": "2d1d59af9c1b129815accc2c46a022a5ce1fa3c9",
|
|
23
|
+
"_spec": "mimic-response@^3.1.0",
|
|
24
24
|
"_where": "/home/runner/work/basemaps/basemaps/packages/lambda-tiler/dist/node_modules/decompress-response",
|
|
25
25
|
"author": {
|
|
26
26
|
"name": "Sindre Sorhus",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"deprecated": false,
|
|
35
35
|
"description": "Mimic a Node.js HTTP response stream",
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"
|
|
39
|
-
"ava": "^1.1.0",
|
|
37
|
+
"@types/node": "^14.0.1",
|
|
38
|
+
"ava": "^2.4.0",
|
|
40
39
|
"create-test-server": "^2.4.0",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
40
|
+
"p-event": "^4.1.0",
|
|
41
|
+
"pify": "^5.0.0",
|
|
42
|
+
"tsd": "^0.11.0",
|
|
43
|
+
"xo": "^0.30.0"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=
|
|
46
|
+
"node": ">=10"
|
|
47
47
|
},
|
|
48
48
|
"files": [
|
|
49
49
|
"index.d.ts",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"scripts": {
|
|
71
71
|
"test": "xo && ava && tsd"
|
|
72
72
|
},
|
|
73
|
-
"version": "
|
|
73
|
+
"version": "3.1.0"
|
|
74
74
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mimic-response [](https://travis-ci.com/sindresorhus/mimic-response)
|
|
2
2
|
|
|
3
3
|
> Mimic a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
|
|
4
4
|
|
|
@@ -27,6 +27,27 @@ console.log(myStream.statusCode);
|
|
|
27
27
|
|
|
28
28
|
### mimicResponse(from, to)
|
|
29
29
|
|
|
30
|
+
**Note #1:** The `from.destroy(error)` function is not proxied. You have to call it manually:
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
const stream = require('stream');
|
|
34
|
+
const mimicResponse = require('mimic-response');
|
|
35
|
+
|
|
36
|
+
const responseStream = getHttpResponseStream();
|
|
37
|
+
|
|
38
|
+
const myStream = new stream.PassThrough({
|
|
39
|
+
destroy(error, callback) {
|
|
40
|
+
responseStream.destroy();
|
|
41
|
+
|
|
42
|
+
callback(error);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
myStream.destroy();
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Please note that `myStream` and `responseStream` never throws. The error is passed to the request instead.
|
|
50
|
+
|
|
30
51
|
#### from
|
|
31
52
|
|
|
32
53
|
Type: `Stream`
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
step-restore-cache: &step-restore-cache
|
|
2
|
+
restore_cache:
|
|
3
|
+
keys:
|
|
4
|
+
- v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
|
|
5
|
+
- v1-dependencies-{{ arch }}
|
|
6
|
+
|
|
7
|
+
steps-test: &steps-test
|
|
8
|
+
steps:
|
|
9
|
+
- checkout
|
|
10
|
+
- *step-restore-cache
|
|
11
|
+
- run: yarn --frozen-lockfile
|
|
12
|
+
- save_cache:
|
|
13
|
+
paths:
|
|
14
|
+
- node_modules
|
|
15
|
+
key: v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
|
|
16
|
+
- run: yarn test
|
|
17
|
+
|
|
18
|
+
version: 2.1
|
|
19
|
+
jobs:
|
|
20
|
+
test-linux-10:
|
|
21
|
+
docker:
|
|
22
|
+
- image: circleci/node:10
|
|
23
|
+
<<: *steps-test
|
|
24
|
+
test-linux-12:
|
|
25
|
+
docker:
|
|
26
|
+
- image: circleci/node:12
|
|
27
|
+
<<: *steps-test
|
|
28
|
+
test-linux-14:
|
|
29
|
+
docker:
|
|
30
|
+
- image: circleci/node:14
|
|
31
|
+
<<: *steps-test
|
|
32
|
+
test-linux-16:
|
|
33
|
+
docker:
|
|
34
|
+
- image: circleci/node:16
|
|
35
|
+
<<: *steps-test
|
|
36
|
+
|
|
37
|
+
release:
|
|
38
|
+
docker:
|
|
39
|
+
- image: circleci/node:14.15
|
|
40
|
+
steps:
|
|
41
|
+
- checkout
|
|
42
|
+
- *step-restore-cache
|
|
43
|
+
- run: yarn --frozen-lockfile
|
|
44
|
+
- run: npx semantic-release@17.4.5
|
|
45
|
+
workflows:
|
|
46
|
+
version: 2
|
|
47
|
+
test_and_release:
|
|
48
|
+
# Run test jobs first, release only when all the test jobs are successful
|
|
49
|
+
jobs:
|
|
50
|
+
- test-linux-10
|
|
51
|
+
- test-linux-12
|
|
52
|
+
- test-linux-14
|
|
53
|
+
- test-linux-16
|
|
54
|
+
- release:
|
|
55
|
+
requires:
|
|
56
|
+
- test-linux-10
|
|
57
|
+
- test-linux-12
|
|
58
|
+
- test-linux-14
|
|
59
|
+
- test-linux-16
|
|
60
|
+
filters:
|
|
61
|
+
branches:
|
|
62
|
+
only:
|
|
63
|
+
- main
|
|
@@ -50,6 +50,13 @@
|
|
|
50
50
|
"future": false,
|
|
51
51
|
"abi": "93"
|
|
52
52
|
},
|
|
53
|
+
{
|
|
54
|
+
"runtime": "node",
|
|
55
|
+
"target": "17.0.0",
|
|
56
|
+
"lts": false,
|
|
57
|
+
"future": false,
|
|
58
|
+
"abi": "102"
|
|
59
|
+
},
|
|
53
60
|
{
|
|
54
61
|
"abi": "70",
|
|
55
62
|
"future": false,
|
|
@@ -125,20 +132,48 @@
|
|
|
125
132
|
"future": false,
|
|
126
133
|
"lts": false,
|
|
127
134
|
"runtime": "electron",
|
|
128
|
-
"target": "
|
|
135
|
+
"target": "13.0.0-beta.2"
|
|
129
136
|
},
|
|
130
137
|
{
|
|
131
138
|
"abi": "89",
|
|
132
139
|
"future": false,
|
|
133
140
|
"lts": false,
|
|
134
141
|
"runtime": "electron",
|
|
135
|
-
"target": "
|
|
142
|
+
"target": "15.0.0-alpha.1"
|
|
136
143
|
},
|
|
137
144
|
{
|
|
138
145
|
"abi": "89",
|
|
139
|
-
"future":
|
|
146
|
+
"future": false,
|
|
140
147
|
"lts": false,
|
|
141
148
|
"runtime": "electron",
|
|
142
|
-
"target": "
|
|
149
|
+
"target": "14.0.0-beta.1"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"abi": "97",
|
|
153
|
+
"future": false,
|
|
154
|
+
"lts": false,
|
|
155
|
+
"runtime": "electron",
|
|
156
|
+
"target": "14.0.2"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"abi": "98",
|
|
160
|
+
"future": false,
|
|
161
|
+
"lts": false,
|
|
162
|
+
"runtime": "electron",
|
|
163
|
+
"target": "15.0.0-beta.7"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"abi": "99",
|
|
167
|
+
"future": false,
|
|
168
|
+
"lts": false,
|
|
169
|
+
"runtime": "electron",
|
|
170
|
+
"target": "16.0.0-alpha.1"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"abi": "101",
|
|
174
|
+
"future": false,
|
|
175
|
+
"lts": false,
|
|
176
|
+
"runtime": "electron",
|
|
177
|
+
"target": "17.0.0-alpha.1"
|
|
143
178
|
}
|
|
144
179
|
]
|
|
@@ -24,12 +24,15 @@ function getAbi (target, runtime) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
var abi
|
|
27
|
+
var lastTarget
|
|
27
28
|
|
|
28
29
|
for (var i = 0; i < allTargets.length; i++) {
|
|
29
30
|
var t = allTargets[i]
|
|
30
31
|
if (t.runtime !== runtime) continue
|
|
31
|
-
if (semver.lte(t.target, target)
|
|
32
|
-
|
|
32
|
+
if (semver.lte(t.target, target) && (!lastTarget || semver.gte(t.target, lastTarget))) {
|
|
33
|
+
abi = t.abi
|
|
34
|
+
lastTarget = t.target
|
|
35
|
+
}
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
if (abi && semver.lt(target, getNextTarget(runtime))) return abi
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_from": "node-abi@^
|
|
3
|
-
"_id": "node-abi@
|
|
2
|
+
"_from": "node-abi@^3.3.0",
|
|
3
|
+
"_id": "node-abi@3.7.0",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512
|
|
5
|
+
"_integrity": "sha512-3J+U4CvxVNEk9+lGdJkmYbN8cIN0HMTDT9R0ezX7pmp7aD6BaKsfAHwVn3IvVg6pYIRUuQ+gHW1eawrvywnSQQ==",
|
|
6
6
|
"_location": "/node-abi",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
9
9
|
"type": "range",
|
|
10
10
|
"registry": true,
|
|
11
|
-
"raw": "node-abi@^
|
|
11
|
+
"raw": "node-abi@^3.3.0",
|
|
12
12
|
"name": "node-abi",
|
|
13
13
|
"escapedName": "node-abi",
|
|
14
|
-
"rawSpec": "^
|
|
14
|
+
"rawSpec": "^3.3.0",
|
|
15
15
|
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^
|
|
16
|
+
"fetchSpec": "^3.3.0"
|
|
17
17
|
},
|
|
18
18
|
"_requiredBy": [
|
|
19
19
|
"/prebuild-install"
|
|
20
20
|
],
|
|
21
|
-
"_resolved": "https://registry.npmjs.org/node-abi/-/node-abi-
|
|
22
|
-
"_shasum": "
|
|
23
|
-
"_spec": "node-abi@^
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.7.0.tgz",
|
|
22
|
+
"_shasum": "ed980f6dbb6db9ff3b31aeb27d43cd9b096f6e9e",
|
|
23
|
+
"_spec": "node-abi@^3.3.0",
|
|
24
24
|
"_where": "/home/runner/work/basemaps/basemaps/packages/lambda-tiler/dist/node_modules/prebuild-install",
|
|
25
25
|
"author": {
|
|
26
26
|
"name": "Lukas Geiger"
|
|
@@ -30,15 +30,17 @@
|
|
|
30
30
|
},
|
|
31
31
|
"bundleDependencies": false,
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"semver": "^
|
|
33
|
+
"semver": "^7.3.5"
|
|
34
34
|
},
|
|
35
35
|
"deprecated": false,
|
|
36
36
|
"description": "Get the Node ABI for a given target and runtime, and vice versa.",
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"tape": "^
|
|
41
|
-
|
|
38
|
+
"@continuous-auth/semantic-release-npm": "^2.0.0",
|
|
39
|
+
"got": "^11.8.2",
|
|
40
|
+
"tape": "^5.3.1"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=10"
|
|
42
44
|
},
|
|
43
45
|
"homepage": "https://github.com/lgeiger/node-abi#readme",
|
|
44
46
|
"keywords": [
|
|
@@ -58,8 +60,7 @@
|
|
|
58
60
|
"scripts": {
|
|
59
61
|
"semantic-release": "semantic-release",
|
|
60
62
|
"test": "tape test/index.js",
|
|
61
|
-
"travis-deploy-once": "travis-deploy-once",
|
|
62
63
|
"update-abi-registry": "node --unhandled-rejections=strict scripts/update-abi-registry.js"
|
|
63
64
|
},
|
|
64
|
-
"version": "
|
|
65
|
+
"version": "3.7.0"
|
|
65
66
|
}
|
|
@@ -41,6 +41,7 @@ test('getTarget calculates correct Electron target', function (t) {
|
|
|
41
41
|
t.equal(getTarget('50', 'electron'), '1.4.0')
|
|
42
42
|
t.equal(getTarget('76', 'electron'), '8.0.0')
|
|
43
43
|
t.equal(getTarget('82', 'electron'), '10.0.0')
|
|
44
|
+
t.equal(getTarget('89', 'electron'), '13.0.0')
|
|
44
45
|
t.end()
|
|
45
46
|
})
|
|
46
47
|
|
|
@@ -99,7 +100,12 @@ test('getAbi calculates correct Node ABI', function (t) {
|
|
|
99
100
|
test('getAbi calculates correct Electron ABI', function (t) {
|
|
100
101
|
t.throws(function () { getAbi(undefined, 'electron') })
|
|
101
102
|
t.throws(function () { getAbi(getNextTarget('electron'), 'electron') })
|
|
102
|
-
t.equal(getAbi('
|
|
103
|
+
t.equal(getAbi('15.0.0-beta.1', 'electron'), '89')
|
|
104
|
+
t.equal(getAbi('14.1.1', 'electron'), '97')
|
|
105
|
+
t.equal(getAbi('14.0.0', 'electron'), '89')
|
|
106
|
+
t.equal(getAbi('13.0.0', 'electron'), '89')
|
|
107
|
+
t.equal(getAbi('12.0.0', 'electron'), '87')
|
|
108
|
+
t.equal(getAbi('11.0.0', 'electron'), '85')
|
|
103
109
|
t.equal(getAbi('10.0.0', 'electron'), '82')
|
|
104
110
|
t.equal(getAbi('9.0.0', 'electron'), '80')
|
|
105
111
|
t.equal(getAbi('8.0.0', 'electron'), '76')
|
|
@@ -158,17 +164,3 @@ test('getAbi returns abi if passed as target', function (t) {
|
|
|
158
164
|
t.equal(getAbi('57'), '57')
|
|
159
165
|
t.end()
|
|
160
166
|
})
|
|
161
|
-
|
|
162
|
-
test('allTargets are sorted', function (t) {
|
|
163
|
-
var electron = allTargets.filter(function (t) { return t.runtime === 'electron' })
|
|
164
|
-
var node = allTargets.filter(function (t) { return t.runtime === 'node' })
|
|
165
|
-
var nodeWebkit = allTargets.filter(function (t) { return t.runtime === 'node-webkit' })
|
|
166
|
-
function sort (t1, t2) {
|
|
167
|
-
return semver.compare(t1.target, t2.target)
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
t.deepEqual(electron, electron.slice().sort(sort), 'electron targets are sorted')
|
|
171
|
-
t.deepEqual(node, node.slice().sort(sort), 'node targets are sorted')
|
|
172
|
-
t.deepEqual(nodeWebkit, nodeWebkit.slice().sort(sort), 'node-webkit targets are sorted')
|
|
173
|
-
t.end()
|
|
174
|
-
})
|
|
@@ -70,7 +70,7 @@ and node-addon-api.
|
|
|
70
70
|
- **[Contributors](#contributors)**
|
|
71
71
|
- **[License](#license)**
|
|
72
72
|
|
|
73
|
-
## **Current version: 3.
|
|
73
|
+
## **Current version: 4.3.0**
|
|
74
74
|
|
|
75
75
|
(See [CHANGELOG.md](CHANGELOG.md) for complete Changelog)
|
|
76
76
|
|
|
@@ -83,7 +83,7 @@ This allows addons built with it to run with Node.js versions which support the
|
|
|
83
83
|
**However** the node-addon-api support model is to support only the active LTS Node.js versions. This means that
|
|
84
84
|
every year there will be a new major which drops support for the Node.js LTS version which has gone out of service.
|
|
85
85
|
|
|
86
|
-
The oldest Node.js version supported by the current version of node-addon-api is Node.js
|
|
86
|
+
The oldest Node.js version supported by the current version of node-addon-api is Node.js 12.x.
|
|
87
87
|
|
|
88
88
|
## Setup
|
|
89
89
|
- [Installation and usage](doc/setup.md)
|
|
@@ -2,15 +2,24 @@
|
|
|
2
2
|
'defines': [ 'NAPI_CPP_EXCEPTIONS' ],
|
|
3
3
|
'cflags!': [ '-fno-exceptions' ],
|
|
4
4
|
'cflags_cc!': [ '-fno-exceptions' ],
|
|
5
|
-
'
|
|
6
|
-
'
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
'conditions': [
|
|
6
|
+
["OS=='win'", {
|
|
7
|
+
"defines": [
|
|
8
|
+
"_HAS_EXCEPTIONS=1"
|
|
9
|
+
],
|
|
10
|
+
"msvs_settings": {
|
|
11
|
+
"VCCLCompilerTool": {
|
|
12
|
+
"ExceptionHandling": 1,
|
|
13
|
+
'EnablePREfast': 'true',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
}],
|
|
17
|
+
["OS=='mac'", {
|
|
18
|
+
'xcode_settings': {
|
|
19
|
+
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
|
|
20
|
+
'CLANG_CXX_LIBRARY': 'libc++',
|
|
21
|
+
'MACOSX_DEPLOYMENT_TARGET': '10.7',
|
|
22
|
+
},
|
|
23
|
+
}],
|
|
24
|
+
],
|
|
16
25
|
}
|