@basemaps/lambda-tiler 8.9.0 → 8.10.2

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 +69 -22
  2. package/build/__tests__/config.data.js +14 -0
  3. package/build/__tests__/config.data.js.map +1 -1
  4. package/build/cli/render.tile.js +25 -9
  5. package/build/cli/render.tile.js.map +1 -1
  6. package/build/routes/tile.style.json.js +27 -5
  7. package/build/routes/tile.style.json.js.map +1 -1
  8. package/package.json +8 -8
  9. package/src/__tests__/config.data.ts +14 -0
  10. package/src/cli/render.tile.ts +27 -8
  11. package/src/routes/tile.style.json.ts +26 -5
  12. package/tsconfig.tsbuildinfo +1 -1
  13. package/dist/index.js +0 -94950
  14. package/dist/node_modules/.package-lock.json +0 -179
  15. package/dist/node_modules/@img/sharp-libvips-linux-arm64/README.md +0 -47
  16. package/dist/node_modules/@img/sharp-libvips-linux-arm64/lib/glib-2.0/include/glibconfig.h +0 -219
  17. package/dist/node_modules/@img/sharp-libvips-linux-arm64/lib/index.js +0 -1
  18. package/dist/node_modules/@img/sharp-libvips-linux-arm64/lib/libvips-cpp.so.42 +0 -0
  19. package/dist/node_modules/@img/sharp-libvips-linux-arm64/package.json +0 -45
  20. package/dist/node_modules/@img/sharp-libvips-linux-arm64/versions.json +0 -31
  21. package/dist/node_modules/@img/sharp-linux-arm64/LICENSE +0 -191
  22. package/dist/node_modules/@img/sharp-linux-arm64/README.md +0 -18
  23. package/dist/node_modules/@img/sharp-linux-arm64/lib/sharp-linux-arm64.node +0 -0
  24. package/dist/node_modules/@img/sharp-linux-arm64/package.json +0 -47
  25. package/dist/node_modules/color/LICENSE +0 -21
  26. package/dist/node_modules/color/README.md +0 -123
  27. package/dist/node_modules/color/index.js +0 -496
  28. package/dist/node_modules/color/package.json +0 -47
  29. package/dist/node_modules/color-convert/CHANGELOG.md +0 -54
  30. package/dist/node_modules/color-convert/LICENSE +0 -21
  31. package/dist/node_modules/color-convert/README.md +0 -68
  32. package/dist/node_modules/color-convert/conversions.js +0 -839
  33. package/dist/node_modules/color-convert/index.js +0 -81
  34. package/dist/node_modules/color-convert/package.json +0 -48
  35. package/dist/node_modules/color-convert/route.js +0 -97
  36. package/dist/node_modules/color-name/LICENSE +0 -8
  37. package/dist/node_modules/color-name/README.md +0 -11
  38. package/dist/node_modules/color-name/index.js +0 -152
  39. package/dist/node_modules/color-name/package.json +0 -28
  40. package/dist/node_modules/color-string/LICENSE +0 -21
  41. package/dist/node_modules/color-string/README.md +0 -62
  42. package/dist/node_modules/color-string/index.js +0 -242
  43. package/dist/node_modules/color-string/package.json +0 -39
  44. package/dist/node_modules/detect-libc/LICENSE +0 -201
  45. package/dist/node_modules/detect-libc/README.md +0 -163
  46. package/dist/node_modules/detect-libc/index.d.ts +0 -14
  47. package/dist/node_modules/detect-libc/lib/detect-libc.js +0 -267
  48. package/dist/node_modules/detect-libc/lib/filesystem.js +0 -41
  49. package/dist/node_modules/detect-libc/lib/process.js +0 -24
  50. package/dist/node_modules/detect-libc/package.json +0 -41
  51. package/dist/node_modules/is-arrayish/LICENSE +0 -21
  52. package/dist/node_modules/is-arrayish/README.md +0 -16
  53. package/dist/node_modules/is-arrayish/index.js +0 -9
  54. package/dist/node_modules/is-arrayish/package.json +0 -45
  55. package/dist/node_modules/is-arrayish/yarn-error.log +0 -1443
  56. package/dist/node_modules/lerc/CHANGELOG.md +0 -69
  57. package/dist/node_modules/lerc/LercDecode.d.ts +0 -61
  58. package/dist/node_modules/lerc/LercDecode.es.d.ts +0 -61
  59. package/dist/node_modules/lerc/LercDecode.es.js +0 -434
  60. package/dist/node_modules/lerc/LercDecode.es.min.js +0 -17
  61. package/dist/node_modules/lerc/LercDecode.js +0 -448
  62. package/dist/node_modules/lerc/LercDecode.min.js +0 -17
  63. package/dist/node_modules/lerc/README.md +0 -123
  64. package/dist/node_modules/lerc/lerc-wasm.wasm +0 -0
  65. package/dist/node_modules/lerc/package.json +0 -30
  66. package/dist/node_modules/semver/LICENSE +0 -15
  67. package/dist/node_modules/semver/README.md +0 -664
  68. package/dist/node_modules/semver/bin/semver.js +0 -191
  69. package/dist/node_modules/semver/classes/comparator.js +0 -143
  70. package/dist/node_modules/semver/classes/index.js +0 -7
  71. package/dist/node_modules/semver/classes/range.js +0 -556
  72. package/dist/node_modules/semver/classes/semver.js +0 -319
  73. package/dist/node_modules/semver/functions/clean.js +0 -8
  74. package/dist/node_modules/semver/functions/cmp.js +0 -54
  75. package/dist/node_modules/semver/functions/coerce.js +0 -62
  76. package/dist/node_modules/semver/functions/compare-build.js +0 -9
  77. package/dist/node_modules/semver/functions/compare-loose.js +0 -5
  78. package/dist/node_modules/semver/functions/compare.js +0 -7
  79. package/dist/node_modules/semver/functions/diff.js +0 -60
  80. package/dist/node_modules/semver/functions/eq.js +0 -5
  81. package/dist/node_modules/semver/functions/gt.js +0 -5
  82. package/dist/node_modules/semver/functions/gte.js +0 -5
  83. package/dist/node_modules/semver/functions/inc.js +0 -21
  84. package/dist/node_modules/semver/functions/lt.js +0 -5
  85. package/dist/node_modules/semver/functions/lte.js +0 -5
  86. package/dist/node_modules/semver/functions/major.js +0 -5
  87. package/dist/node_modules/semver/functions/minor.js +0 -5
  88. package/dist/node_modules/semver/functions/neq.js +0 -5
  89. package/dist/node_modules/semver/functions/parse.js +0 -18
  90. package/dist/node_modules/semver/functions/patch.js +0 -5
  91. package/dist/node_modules/semver/functions/prerelease.js +0 -8
  92. package/dist/node_modules/semver/functions/rcompare.js +0 -5
  93. package/dist/node_modules/semver/functions/rsort.js +0 -5
  94. package/dist/node_modules/semver/functions/satisfies.js +0 -12
  95. package/dist/node_modules/semver/functions/sort.js +0 -5
  96. package/dist/node_modules/semver/functions/valid.js +0 -8
  97. package/dist/node_modules/semver/index.js +0 -91
  98. package/dist/node_modules/semver/internal/constants.js +0 -37
  99. package/dist/node_modules/semver/internal/debug.js +0 -11
  100. package/dist/node_modules/semver/internal/identifiers.js +0 -25
  101. package/dist/node_modules/semver/internal/lrucache.js +0 -42
  102. package/dist/node_modules/semver/internal/parse-options.js +0 -17
  103. package/dist/node_modules/semver/internal/re.js +0 -223
  104. package/dist/node_modules/semver/package.json +0 -78
  105. package/dist/node_modules/semver/preload.js +0 -4
  106. package/dist/node_modules/semver/range.bnf +0 -16
  107. package/dist/node_modules/semver/ranges/gtr.js +0 -6
  108. package/dist/node_modules/semver/ranges/intersects.js +0 -9
  109. package/dist/node_modules/semver/ranges/ltr.js +0 -6
  110. package/dist/node_modules/semver/ranges/max-satisfying.js +0 -27
  111. package/dist/node_modules/semver/ranges/min-satisfying.js +0 -26
  112. package/dist/node_modules/semver/ranges/min-version.js +0 -63
  113. package/dist/node_modules/semver/ranges/outside.js +0 -82
  114. package/dist/node_modules/semver/ranges/simplify.js +0 -49
  115. package/dist/node_modules/semver/ranges/subset.js +0 -249
  116. package/dist/node_modules/semver/ranges/to-comparators.js +0 -10
  117. package/dist/node_modules/semver/ranges/valid.js +0 -13
  118. package/dist/node_modules/sharp/LICENSE +0 -191
  119. package/dist/node_modules/sharp/README.md +0 -118
  120. package/dist/node_modules/sharp/install/check.js +0 -36
  121. package/dist/node_modules/sharp/lib/channel.js +0 -174
  122. package/dist/node_modules/sharp/lib/colour.js +0 -182
  123. package/dist/node_modules/sharp/lib/composite.js +0 -210
  124. package/dist/node_modules/sharp/lib/constructor.js +0 -444
  125. package/dist/node_modules/sharp/lib/index.d.ts +0 -1717
  126. package/dist/node_modules/sharp/lib/index.js +0 -16
  127. package/dist/node_modules/sharp/lib/input.js +0 -657
  128. package/dist/node_modules/sharp/lib/is.js +0 -169
  129. package/dist/node_modules/sharp/lib/libvips.js +0 -171
  130. package/dist/node_modules/sharp/lib/operation.js +0 -919
  131. package/dist/node_modules/sharp/lib/output.js +0 -1561
  132. package/dist/node_modules/sharp/lib/resize.js +0 -582
  133. package/dist/node_modules/sharp/lib/sharp.js +0 -86
  134. package/dist/node_modules/sharp/lib/utility.js +0 -287
  135. package/dist/node_modules/sharp/package.json +0 -219
  136. package/dist/node_modules/sharp/src/binding.gyp +0 -277
  137. package/dist/node_modules/sharp/src/common.cc +0 -1090
  138. package/dist/node_modules/sharp/src/common.h +0 -393
  139. package/dist/node_modules/sharp/src/metadata.cc +0 -287
  140. package/dist/node_modules/sharp/src/metadata.h +0 -82
  141. package/dist/node_modules/sharp/src/operations.cc +0 -471
  142. package/dist/node_modules/sharp/src/operations.h +0 -125
  143. package/dist/node_modules/sharp/src/pipeline.cc +0 -1724
  144. package/dist/node_modules/sharp/src/pipeline.h +0 -385
  145. package/dist/node_modules/sharp/src/sharp.cc +0 -40
  146. package/dist/node_modules/sharp/src/stats.cc +0 -183
  147. package/dist/node_modules/sharp/src/stats.h +0 -59
  148. package/dist/node_modules/sharp/src/utilities.cc +0 -269
  149. package/dist/node_modules/sharp/src/utilities.h +0 -19
  150. package/dist/node_modules/simple-swizzle/LICENSE +0 -21
  151. package/dist/node_modules/simple-swizzle/README.md +0 -39
  152. package/dist/node_modules/simple-swizzle/index.js +0 -29
  153. package/dist/node_modules/simple-swizzle/package.json +0 -36
  154. package/dist/package-lock.json +0 -610
  155. package/dist/package.json +0 -40
  156. package/dist/static/expected_tile_2193_153_255_z7.png +0 -0
  157. package/dist/static/expected_tile_NZTM2000Quad_30_33_z6.png +0 -0
  158. package/dist/static/expected_tile_WebMercatorQuad_252_156_z8.png +0 -0
@@ -1,277 +0,0 @@
1
- # Copyright 2013 Lovell Fuller and others.
2
- # SPDX-License-Identifier: Apache-2.0
3
-
4
- {
5
- 'variables': {
6
- 'vips_version': '<!(node -p "require(\'../lib/libvips\').minimumLibvipsVersion")',
7
- 'platform_and_arch': '<!(node -p "require(\'../lib/libvips\').buildPlatformArch()")',
8
- 'sharp_libvips_version': '<!(node -p "require(\'../package.json\').optionalDependencies[\'@img/sharp-libvips-<(platform_and_arch)\']")',
9
- 'sharp_libvips_include_dir': '<!(node -p "require(\'../lib/libvips\').buildSharpLibvipsIncludeDir()")',
10
- 'sharp_libvips_cplusplus_dir': '<!(node -p "require(\'../lib/libvips\').buildSharpLibvipsCPlusPlusDir()")',
11
- 'sharp_libvips_lib_dir': '<!(node -p "require(\'../lib/libvips\').buildSharpLibvipsLibDir()")'
12
- },
13
- 'targets': [{
14
- 'target_name': 'libvips-cpp',
15
- 'conditions': [
16
- ['OS == "win"', {
17
- # Build libvips C++ binding for Windows due to MSVC std library ABI changes
18
- 'type': 'shared_library',
19
- 'defines': [
20
- 'VIPS_CPLUSPLUS_EXPORTS',
21
- '_ALLOW_KEYWORD_MACROS'
22
- ],
23
- 'sources': [
24
- '<(sharp_libvips_cplusplus_dir)/VConnection.cpp',
25
- '<(sharp_libvips_cplusplus_dir)/VError.cpp',
26
- '<(sharp_libvips_cplusplus_dir)/VImage.cpp',
27
- '<(sharp_libvips_cplusplus_dir)/VInterpolate.cpp',
28
- '<(sharp_libvips_cplusplus_dir)/VRegion.cpp'
29
- ],
30
- 'include_dirs': [
31
- '<(sharp_libvips_include_dir)',
32
- '<(sharp_libvips_include_dir)/glib-2.0',
33
- '<(sharp_libvips_lib_dir)/glib-2.0/include'
34
- ],
35
- 'link_settings': {
36
- 'library_dirs': [
37
- '<(sharp_libvips_lib_dir)'
38
- ],
39
- 'libraries': [
40
- 'libvips.lib'
41
- ],
42
- },
43
- 'configurations': {
44
- 'Release': {
45
- 'msvs_settings': {
46
- 'VCCLCompilerTool': {
47
- 'ExceptionHandling': 1,
48
- 'Optimization': 1,
49
- 'WholeProgramOptimization': 'true'
50
- },
51
- 'VCLibrarianTool': {
52
- 'AdditionalOptions': [
53
- '/LTCG:INCREMENTAL'
54
- ]
55
- },
56
- 'VCLinkerTool': {
57
- 'ImageHasSafeExceptionHandlers': 'false',
58
- 'OptimizeReferences': 2,
59
- 'EnableCOMDATFolding': 2,
60
- 'LinkIncremental': 1,
61
- 'AdditionalOptions': [
62
- '/LTCG:INCREMENTAL'
63
- ]
64
- }
65
- },
66
- 'msvs_disabled_warnings': [
67
- 4275
68
- ]
69
- }
70
- }
71
- }, {
72
- # Ignore this target for non-Windows
73
- 'type': 'none'
74
- }]
75
- ]
76
- }, {
77
- 'target_name': 'sharp-<(platform_and_arch)',
78
- 'defines': [
79
- 'NAPI_VERSION=9',
80
- 'NODE_ADDON_API_DISABLE_DEPRECATED',
81
- 'NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS'
82
- ],
83
- 'dependencies': [
84
- '<!(node -p "require(\'node-addon-api\').gyp")',
85
- 'libvips-cpp'
86
- ],
87
- 'variables': {
88
- 'conditions': [
89
- ['OS != "win"', {
90
- 'pkg_config_path': '<!(node -p "require(\'../lib/libvips\').pkgConfigPath()")',
91
- 'use_global_libvips': '<!(node -p "Boolean(require(\'../lib/libvips\').useGlobalLibvips()).toString()")'
92
- }, {
93
- 'pkg_config_path': '',
94
- 'use_global_libvips': ''
95
- }]
96
- ]
97
- },
98
- 'sources': [
99
- 'common.cc',
100
- 'metadata.cc',
101
- 'stats.cc',
102
- 'operations.cc',
103
- 'pipeline.cc',
104
- 'utilities.cc',
105
- 'sharp.cc'
106
- ],
107
- 'include_dirs': [
108
- '<!(node -p "require(\'node-addon-api\').include_dir")',
109
- ],
110
- 'conditions': [
111
- ['use_global_libvips == "true"', {
112
- # Use pkg-config for include and lib
113
- 'include_dirs': ['<!@(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --cflags-only-I vips-cpp vips glib-2.0 | sed s\/-I//g)'],
114
- 'libraries': ['<!@(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --libs vips-cpp)'],
115
- 'defines': [
116
- 'SHARP_USE_GLOBAL_LIBVIPS'
117
- ],
118
- 'conditions': [
119
- ['OS == "linux"', {
120
- 'defines': [
121
- # Inspect libvips-cpp.so to determine which C++11 ABI version was used and set _GLIBCXX_USE_CXX11_ABI accordingly. This is quite horrible.
122
- '_GLIBCXX_USE_CXX11_ABI=<!(if readelf -Ws "$(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --variable libdir vips-cpp)/libvips-cpp.so" | c++filt | grep -qF __cxx11;then echo "1";else echo "0";fi)'
123
- ]
124
- }]
125
- ]
126
- }, {
127
- # Use pre-built libvips stored locally within node_modules
128
- 'include_dirs': [
129
- '<(sharp_libvips_include_dir)',
130
- '<(sharp_libvips_include_dir)/glib-2.0',
131
- '<(sharp_libvips_lib_dir)/glib-2.0/include'
132
- ],
133
- 'library_dirs': [
134
- '<(sharp_libvips_lib_dir)'
135
- ],
136
- 'conditions': [
137
- ['OS == "win"', {
138
- 'defines': [
139
- '_ALLOW_KEYWORD_MACROS',
140
- '_FILE_OFFSET_BITS=64'
141
- ],
142
- 'link_settings': {
143
- 'libraries': [
144
- 'libvips.lib'
145
- ]
146
- }
147
- }],
148
- ['OS == "mac"', {
149
- 'link_settings': {
150
- 'libraries': [
151
- 'libvips-cpp.42.dylib'
152
- ]
153
- },
154
- 'xcode_settings': {
155
- 'OTHER_LDFLAGS': [
156
- # Ensure runtime linking is relative to sharp.node
157
- '-Wl,-rpath,\'@loader_path/../../sharp-libvips-<(platform_and_arch)/lib\'',
158
- '-Wl,-rpath,\'@loader_path/../../../sharp-libvips-<(platform_and_arch)/<(sharp_libvips_version)/lib\'',
159
- '-Wl,-rpath,\'@loader_path/../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
160
- '-Wl,-rpath,\'@loader_path/../../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\''
161
- ]
162
- }
163
- }],
164
- ['OS == "linux"', {
165
- 'defines': [
166
- '_GLIBCXX_USE_CXX11_ABI=1'
167
- ],
168
- 'link_settings': {
169
- 'libraries': [
170
- '-l:libvips-cpp.so.42'
171
- ],
172
- 'ldflags': [
173
- '-Wl,-s',
174
- '-Wl,--disable-new-dtags',
175
- '-Wl,-z,nodelete',
176
- '-Wl,-rpath=\'$$ORIGIN/../../sharp-libvips-<(platform_and_arch)/lib\'',
177
- '-Wl,-rpath=\'$$ORIGIN/../../../sharp-libvips-<(platform_and_arch)/<(sharp_libvips_version)/lib\'',
178
- '-Wl,-rpath=\'$$ORIGIN/../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
179
- '-Wl,-rpath=\'$$ORIGIN/../../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\''
180
- ]
181
- }
182
- }],
183
- ['OS == "emscripten"', {
184
- 'product_extension': 'node.js',
185
- 'link_settings': {
186
- 'ldflags': [
187
- '-fexceptions',
188
- '--pre-js=<!(node -p "require.resolve(\'./emscripten/pre.js\')")',
189
- '-Oz',
190
- '-sALLOW_MEMORY_GROWTH',
191
- '-sENVIRONMENT=node',
192
- '-sEXPORTED_FUNCTIONS=["_vips_shutdown", "_uv_library_shutdown"]',
193
- '-sNODERAWFS',
194
- '-sTEXTDECODER=0',
195
- '-sWASM_ASYNC_COMPILATION=0',
196
- '-sWASM_BIGINT'
197
- ],
198
- 'libraries': [
199
- '<!@(PKG_CONFIG_PATH="<!(node -p "require(\'@img/sharp-libvips-dev-wasm32/lib\')")/pkgconfig" pkg-config --static --libs vips-cpp)'
200
- ],
201
- }
202
- }]
203
- ]
204
- }]
205
- ],
206
- 'cflags_cc': [
207
- '-std=c++0x',
208
- '-fexceptions',
209
- '-Wall',
210
- '-Os'
211
- ],
212
- 'xcode_settings': {
213
- 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
214
- 'MACOSX_DEPLOYMENT_TARGET': '10.13',
215
- 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
216
- 'GCC_ENABLE_CPP_RTTI': 'YES',
217
- 'OTHER_CPLUSPLUSFLAGS': [
218
- '-fexceptions',
219
- '-Wall',
220
- '-Oz'
221
- ]
222
- },
223
- 'configurations': {
224
- 'Release': {
225
- 'conditions': [
226
- ['target_arch == "arm"', {
227
- 'cflags_cc': [
228
- '-Wno-psabi'
229
- ]
230
- }],
231
- ['OS == "win"', {
232
- 'msvs_settings': {
233
- 'VCCLCompilerTool': {
234
- 'ExceptionHandling': 1,
235
- 'Optimization': 1,
236
- 'WholeProgramOptimization': 'true'
237
- },
238
- 'VCLibrarianTool': {
239
- 'AdditionalOptions': [
240
- '/LTCG:INCREMENTAL'
241
- ]
242
- },
243
- 'VCLinkerTool': {
244
- 'ImageHasSafeExceptionHandlers': 'false',
245
- 'OptimizeReferences': 2,
246
- 'EnableCOMDATFolding': 2,
247
- 'LinkIncremental': 1,
248
- 'AdditionalOptions': [
249
- '/LTCG:INCREMENTAL'
250
- ]
251
- }
252
- },
253
- 'msvs_disabled_warnings': [
254
- 4275
255
- ]
256
- }]
257
- ]
258
- }
259
- },
260
- }, {
261
- 'target_name': 'copy-dll',
262
- 'type': 'none',
263
- 'dependencies': [
264
- 'sharp-<(platform_and_arch)'
265
- ],
266
- 'conditions': [
267
- ['OS == "win"', {
268
- 'copies': [{
269
- 'destination': 'build/Release',
270
- 'files': [
271
- '<(sharp_libvips_lib_dir)/libvips-42.dll'
272
- ]
273
- }]
274
- }]
275
- ]
276
- }]
277
- }