@basemaps/lambda-tiler 6.16.1 → 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.
Files changed (158) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/LICENSE +2 -2
  3. package/build/__test__/tile.style.json.test.d.ts +2 -0
  4. package/build/__test__/tile.style.json.test.d.ts.map +1 -0
  5. package/build/__test__/tile.style.json.test.js +33 -0
  6. package/build/__test__/xyz.test.js +35 -34
  7. package/build/cli/dump.js +2 -2
  8. package/build/index.d.ts.map +1 -1
  9. package/build/index.js +10 -0
  10. package/build/routes/esri/rest.d.ts +10 -0
  11. package/build/routes/esri/rest.d.ts.map +1 -0
  12. package/build/routes/esri/rest.js +87 -0
  13. package/build/routes/imagery.d.ts +10 -0
  14. package/build/routes/imagery.d.ts.map +1 -0
  15. package/build/routes/imagery.js +50 -0
  16. package/build/routes/response.d.ts +4 -0
  17. package/build/routes/response.d.ts.map +1 -0
  18. package/build/routes/response.js +3 -0
  19. package/build/routes/tile.d.ts +0 -20
  20. package/build/routes/tile.d.ts.map +1 -1
  21. package/build/routes/tile.js +11 -164
  22. package/build/routes/tile.json.d.ts +10 -0
  23. package/build/routes/tile.json.d.ts.map +1 -0
  24. package/build/routes/tile.json.js +31 -0
  25. package/build/routes/tile.style.json.d.ts +10 -0
  26. package/build/routes/tile.style.json.d.ts.map +1 -0
  27. package/build/routes/tile.style.json.js +74 -0
  28. package/build/routes/tile.wmts.d.ts +9 -0
  29. package/build/routes/tile.wmts.d.ts.map +1 -0
  30. package/build/routes/tile.wmts.js +57 -0
  31. package/build/routes/tile.xyz.d.ts +13 -0
  32. package/build/routes/tile.xyz.d.ts.map +1 -0
  33. package/build/routes/tile.xyz.js +28 -0
  34. package/build/tile.set.raster.d.ts +2 -0
  35. package/build/tile.set.raster.d.ts.map +1 -1
  36. package/build/tile.set.raster.js +3 -1
  37. package/build/tile.set.vector.js +1 -1
  38. package/dist/index.js +10580 -9573
  39. package/dist/node_modules/color/README.md +7 -7
  40. package/dist/node_modules/color/index.js +173 -158
  41. package/dist/node_modules/color/package.json +18 -16
  42. package/dist/node_modules/color-convert/conversions.js +281 -310
  43. package/dist/node_modules/color-convert/index.js +27 -24
  44. package/dist/node_modules/color-convert/package.json +16 -14
  45. package/dist/node_modules/color-convert/route.js +22 -22
  46. package/dist/node_modules/color-name/package.json +17 -14
  47. package/dist/node_modules/color-string/index.js +2 -2
  48. package/dist/node_modules/color-string/package.json +10 -10
  49. package/dist/node_modules/decompress-response/index.d.ts +14 -21
  50. package/dist/node_modules/decompress-response/index.js +34 -16
  51. package/dist/node_modules/decompress-response/license +1 -1
  52. package/dist/node_modules/decompress-response/package.json +23 -17
  53. package/dist/node_modules/decompress-response/readme.md +2 -6
  54. package/dist/node_modules/detect-libc/package.json +0 -1
  55. package/dist/node_modules/mimic-response/index.d.ts +2 -2
  56. package/dist/node_modules/mimic-response/index.js +41 -2
  57. package/dist/node_modules/mimic-response/package.json +17 -17
  58. package/dist/node_modules/mimic-response/readme.md +22 -1
  59. package/dist/node_modules/node-abi/.circleci/config.yml +63 -0
  60. package/dist/node_modules/node-abi/.releaserc.json +9 -0
  61. package/dist/node_modules/node-abi/abi_registry.json +39 -4
  62. package/dist/node_modules/node-abi/index.js +5 -2
  63. package/dist/node_modules/node-abi/package.json +17 -16
  64. package/dist/node_modules/node-abi/test/index.js +7 -15
  65. package/dist/node_modules/node-addon-api/README.md +2 -2
  66. package/dist/node_modules/node-addon-api/except.gypi +20 -11
  67. package/dist/node_modules/node-addon-api/napi-inl.h +734 -196
  68. package/dist/node_modules/node-addon-api/napi.h +420 -164
  69. package/dist/node_modules/node-addon-api/noexcept.gypi +21 -11
  70. package/dist/node_modules/node-addon-api/package.json +43 -14
  71. package/dist/node_modules/node-addon-api/tools/clang-format.js +18 -17
  72. package/dist/node_modules/node-addon-api/tools/eslint-format.js +71 -0
  73. package/dist/node_modules/prebuild-install/CHANGELOG.md +24 -7
  74. package/dist/node_modules/prebuild-install/README.md +24 -4
  75. package/dist/node_modules/prebuild-install/asset.js +10 -10
  76. package/dist/node_modules/prebuild-install/bin.js +13 -13
  77. package/dist/node_modules/prebuild-install/download.js +22 -22
  78. package/dist/node_modules/prebuild-install/log.js +4 -4
  79. package/dist/node_modules/prebuild-install/node_modules/detect-libc/LICENSE +201 -0
  80. package/dist/node_modules/prebuild-install/node_modules/detect-libc/README.md +160 -0
  81. package/dist/node_modules/prebuild-install/node_modules/detect-libc/index.d.ts +11 -0
  82. package/dist/node_modules/prebuild-install/node_modules/detect-libc/lib/detect-libc.js +178 -0
  83. package/dist/node_modules/prebuild-install/node_modules/detect-libc/lib/process.js +16 -0
  84. package/dist/node_modules/prebuild-install/node_modules/detect-libc/package.json +71 -0
  85. package/dist/node_modules/prebuild-install/package.json +18 -19
  86. package/dist/node_modules/prebuild-install/proxy.js +10 -10
  87. package/dist/node_modules/prebuild-install/rc.js +12 -12
  88. package/dist/node_modules/prebuild-install/util.js +14 -14
  89. package/dist/node_modules/semver/package.json +1 -0
  90. package/dist/node_modules/sharp/README.md +2 -2
  91. package/dist/node_modules/sharp/binding.gyp +12 -9
  92. package/dist/node_modules/sharp/build/Release/sharp-linux-x64.node +0 -0
  93. package/dist/node_modules/sharp/install/dll-copy.js +6 -6
  94. package/dist/node_modules/sharp/install/libvips.js +4 -8
  95. package/dist/node_modules/sharp/lib/channel.js +11 -7
  96. package/dist/node_modules/sharp/lib/colour.js +42 -1
  97. package/dist/node_modules/sharp/lib/constructor.js +18 -31
  98. package/dist/node_modules/sharp/lib/input.js +45 -3
  99. package/dist/node_modules/sharp/lib/is.js +19 -5
  100. package/dist/node_modules/sharp/lib/libvips.js +4 -19
  101. package/dist/node_modules/sharp/lib/operation.js +28 -5
  102. package/dist/node_modules/sharp/lib/output.js +147 -16
  103. package/dist/node_modules/sharp/lib/sharp.js +31 -0
  104. package/dist/node_modules/sharp/lib/utility.js +3 -2
  105. package/dist/node_modules/sharp/package.json +32 -23
  106. package/dist/node_modules/sharp/src/common.cc +67 -11
  107. package/dist/node_modules/sharp/src/common.h +25 -5
  108. package/dist/node_modules/sharp/src/libvips/cplusplus/VConnection.cpp +0 -26
  109. package/dist/node_modules/sharp/src/libvips/cplusplus/VImage.cpp +54 -16
  110. package/dist/node_modules/sharp/src/libvips/cplusplus/VInterpolate.cpp +0 -13
  111. package/dist/node_modules/sharp/src/libvips/cplusplus/vips-operators.cpp +185 -1
  112. package/dist/node_modules/sharp/src/metadata.cc +14 -0
  113. package/dist/node_modules/sharp/src/metadata.h +1 -0
  114. package/dist/node_modules/sharp/src/operations.cc +29 -3
  115. package/dist/node_modules/sharp/src/operations.h +13 -2
  116. package/dist/node_modules/sharp/src/pipeline.cc +103 -35
  117. package/dist/node_modules/sharp/src/pipeline.h +23 -3
  118. package/dist/node_modules/sharp/src/utilities.cc +1 -1
  119. package/dist/node_modules/sharp/vendor/{8.10.6 → 8.11.3/linux-x64}/THIRD-PARTY-NOTICES.md +2 -3
  120. package/dist/node_modules/sharp/vendor/{8.10.6 → 8.11.3/linux-x64}/lib/libvips-cpp.so.42 +0 -0
  121. package/dist/node_modules/sharp/vendor/{8.10.6 → 8.11.3/linux-x64}/platform.json +0 -0
  122. package/dist/node_modules/sharp/vendor/8.11.3/linux-x64/versions.json +30 -0
  123. package/dist/node_modules/simple-get/.github/dependabot.yml +15 -0
  124. package/dist/node_modules/simple-get/.github/workflows/ci.yml +23 -0
  125. package/dist/node_modules/simple-get/README.md +17 -3
  126. package/dist/node_modules/simple-get/index.js +9 -0
  127. package/dist/node_modules/simple-get/package.json +27 -13
  128. package/dist/package-lock.json +54 -54
  129. package/dist/package.json +11 -11
  130. package/package.json +12 -12
  131. package/src/__test__/tile.style.json.test.ts +40 -0
  132. package/src/__test__/xyz.test.ts +43 -41
  133. package/src/cli/dump.ts +2 -2
  134. package/src/index.ts +10 -0
  135. package/src/routes/esri/rest.ts +90 -0
  136. package/src/routes/imagery.ts +52 -0
  137. package/src/routes/response.ts +4 -0
  138. package/src/routes/tile.json.ts +44 -0
  139. package/src/routes/tile.style.json.ts +77 -0
  140. package/src/routes/tile.ts +11 -186
  141. package/src/routes/tile.wmts.ts +59 -0
  142. package/src/routes/tile.xyz.ts +30 -0
  143. package/src/tile.set.raster.ts +4 -1
  144. package/src/tile.set.vector.ts +1 -1
  145. package/tsconfig.tsbuildinfo +1 -1
  146. package/dist/node_modules/color-name/.eslintrc.json +0 -43
  147. package/dist/node_modules/color-name/test.js +0 -7
  148. package/dist/node_modules/node-abi/.travis.yml +0 -17
  149. package/dist/node_modules/node-abi/node_modules/semver/CHANGELOG.md +0 -39
  150. package/dist/node_modules/node-abi/node_modules/semver/LICENSE +0 -15
  151. package/dist/node_modules/node-abi/node_modules/semver/README.md +0 -412
  152. package/dist/node_modules/node-abi/node_modules/semver/bin/semver +0 -160
  153. package/dist/node_modules/node-abi/node_modules/semver/package.json +0 -60
  154. package/dist/node_modules/node-abi/node_modules/semver/range.bnf +0 -16
  155. package/dist/node_modules/node-abi/node_modules/semver/semver.js +0 -1483
  156. package/dist/node_modules/node-addon-api/CHANGELOG.md +0 -722
  157. package/dist/node_modules/sharp/build/Release/sharp.node +0 -0
  158. package/dist/node_modules/sharp/vendor/8.10.6/versions.json +0 -31
@@ -10,8 +10,8 @@ Makes `toStream` include the properties from `fromStream`.
10
10
  @return The same object as `toStream`.
11
11
  */
12
12
  declare function mimicResponse<T extends NodeJS.ReadableStream>(
13
- fromStream: IncomingMessage,
13
+ fromStream: IncomingMessage, // eslint-disable-line @typescript-eslint/prefer-readonly-parameter-types
14
14
  toStream: T,
15
- ): IncomingMessage & T;
15
+ ): T & IncomingMessage;
16
16
 
17
17
  export = mimicResponse;
@@ -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
- toStream[property] = typeof fromStream[property] === 'function' ? fromStream[property].bind(fromStream) : fromStream[property];
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@^2.0.0",
3
- "_id": "mimic-response@2.1.0",
2
+ "_from": "mimic-response@^3.1.0",
3
+ "_id": "mimic-response@3.1.0",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==",
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@^2.0.0",
11
+ "raw": "mimic-response@^3.1.0",
12
12
  "name": "mimic-response",
13
13
  "escapedName": "mimic-response",
14
- "rawSpec": "^2.0.0",
14
+ "rawSpec": "^3.1.0",
15
15
  "saveSpec": null,
16
- "fetchSpec": "^2.0.0"
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-2.1.0.tgz",
22
- "_shasum": "d13763d35f613d09ec37ebb30bac0469c0ee8f43",
23
- "_spec": "mimic-response@^2.0.0",
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
- "@sindresorhus/tsconfig": "^0.3.0",
38
- "@types/node": "^12.0.0",
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
- "pify": "^4.0.1",
42
- "tsd": "^0.7.3",
43
- "xo": "^0.24.0"
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": ">=8"
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": "2.1.0"
73
+ "version": "3.1.0"
74
74
  }
@@ -1,4 +1,4 @@
1
- # mimic-response [![Build Status](https://travis-ci.org/sindresorhus/mimic-response.svg?branch=master)](https://travis-ci.org/sindresorhus/mimic-response)
1
+ # mimic-response [![Build Status](https://travis-ci.com/sindresorhus/mimic-response.svg?branch=master)](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
@@ -0,0 +1,9 @@
1
+ {
2
+ "plugins": [
3
+ "@semantic-release/commit-analyzer",
4
+ "@semantic-release/release-notes-generator",
5
+ "@continuous-auth/semantic-release-npm",
6
+ "@semantic-release/github"
7
+ ],
8
+ "branches": [ "main" ]
9
+ }
@@ -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": "14.0.0-beta.1"
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": "13.0.0-beta.2"
142
+ "target": "15.0.0-alpha.1"
136
143
  },
137
144
  {
138
145
  "abi": "89",
139
- "future": true,
146
+ "future": false,
140
147
  "lts": false,
141
148
  "runtime": "electron",
142
- "target": "15.0.0-alpha.1"
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)) abi = t.abi
32
- else break
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@^2.21.0",
3
- "_id": "node-abi@2.30.1",
2
+ "_from": "node-abi@^3.3.0",
3
+ "_id": "node-abi@3.7.0",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w==",
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@^2.21.0",
11
+ "raw": "node-abi@^3.3.0",
12
12
  "name": "node-abi",
13
13
  "escapedName": "node-abi",
14
- "rawSpec": "^2.21.0",
14
+ "rawSpec": "^3.3.0",
15
15
  "saveSpec": null,
16
- "fetchSpec": "^2.21.0"
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-2.30.1.tgz",
22
- "_shasum": "c437d4b1fe0e285aaf290d45b45d4d7afedac4cf",
23
- "_spec": "node-abi@^2.21.0",
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": "^5.4.1"
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
- "got": "^10.6.0",
39
- "semantic-release": "^15.8.0",
40
- "tape": "^4.6.3",
41
- "travis-deploy-once": "^5.0.1"
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": "2.30.1"
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('10.0.0-beta.1', 'electron'), '82')
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.2.1**
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 10.x.
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
- 'msvs_settings': {
6
- 'VCCLCompilerTool': {
7
- 'ExceptionHandling': 1,
8
- 'EnablePREfast': 'true',
9
- },
10
- },
11
- 'xcode_settings': {
12
- 'CLANG_CXX_LIBRARY': 'libc++',
13
- 'MACOSX_DEPLOYMENT_TARGET': '10.7',
14
- 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
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
  }