@basemaps/lambda-tiler 6.38.0 → 6.40.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 (126) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/build/__tests__/config.data.d.ts.map +1 -1
  3. package/build/__tests__/config.data.js +142 -1
  4. package/build/__tests__/config.data.js.map +1 -1
  5. package/build/__tests__/wmts.capability.test.js +9 -16
  6. package/build/__tests__/wmts.capability.test.js.map +1 -1
  7. package/build/__tests__/xyz.util.d.ts.map +1 -1
  8. package/build/__tests__/xyz.util.js +6 -2
  9. package/build/__tests__/xyz.util.js.map +1 -1
  10. package/build/cli/render.tile.d.ts +2 -0
  11. package/build/cli/render.tile.d.ts.map +1 -0
  12. package/build/cli/render.tile.js +33 -0
  13. package/build/cli/render.tile.js.map +1 -0
  14. package/build/routes/__tests__/attribution.test.js +63 -3
  15. package/build/routes/__tests__/attribution.test.js.map +1 -1
  16. package/build/routes/__tests__/tile.style.json.test.js +91 -43
  17. package/build/routes/__tests__/tile.style.json.test.js.map +1 -1
  18. package/build/routes/__tests__/wmts.test.js +50 -8
  19. package/build/routes/__tests__/wmts.test.js.map +1 -1
  20. package/build/routes/attribution.d.ts +12 -0
  21. package/build/routes/attribution.d.ts.map +1 -1
  22. package/build/routes/attribution.js +29 -27
  23. package/build/routes/attribution.js.map +1 -1
  24. package/build/routes/tile.json.d.ts.map +1 -1
  25. package/build/routes/tile.json.js +2 -1
  26. package/build/routes/tile.json.js.map +1 -1
  27. package/build/routes/tile.style.json.d.ts +2 -2
  28. package/build/routes/tile.style.json.d.ts.map +1 -1
  29. package/build/routes/tile.style.json.js +7 -4
  30. package/build/routes/tile.style.json.js.map +1 -1
  31. package/build/routes/tile.wmts.d.ts.map +1 -1
  32. package/build/routes/tile.wmts.js +3 -1
  33. package/build/routes/tile.wmts.js.map +1 -1
  34. package/build/routes/tile.xyz.raster.d.ts.map +1 -1
  35. package/build/routes/tile.xyz.raster.js +9 -6
  36. package/build/routes/tile.xyz.raster.js.map +1 -1
  37. package/build/util/__test__/filter.test.d.ts +2 -0
  38. package/build/util/__test__/filter.test.d.ts.map +1 -0
  39. package/build/util/__test__/filter.test.js +64 -0
  40. package/build/util/__test__/filter.test.js.map +1 -0
  41. package/build/util/config.loader.d.ts.map +1 -1
  42. package/build/util/config.loader.js +2 -3
  43. package/build/util/config.loader.js.map +1 -1
  44. package/build/util/filter.d.ts +15 -0
  45. package/build/util/filter.d.ts.map +1 -0
  46. package/build/util/filter.js +59 -0
  47. package/build/util/filter.js.map +1 -0
  48. package/build/wmts.capability.d.ts +8 -5
  49. package/build/wmts.capability.d.ts.map +1 -1
  50. package/build/wmts.capability.js +17 -15
  51. package/build/wmts.capability.js.map +1 -1
  52. package/dist/index.js +60 -60
  53. package/dist/node_modules/.package-lock.json +14 -14
  54. package/dist/node_modules/minimist/.eslintrc +25 -50
  55. package/dist/node_modules/minimist/CHANGELOG.md +87 -1
  56. package/dist/node_modules/minimist/README.md +14 -10
  57. package/dist/node_modules/minimist/example/parse.js +2 -0
  58. package/dist/node_modules/minimist/index.js +256 -242
  59. package/dist/node_modules/minimist/package.json +73 -73
  60. package/dist/node_modules/minimist/test/all_bool.js +26 -24
  61. package/dist/node_modules/minimist/test/bool.js +146 -147
  62. package/dist/node_modules/minimist/test/dash.js +33 -21
  63. package/dist/node_modules/minimist/test/default_bool.js +26 -24
  64. package/dist/node_modules/minimist/test/dotted.js +13 -11
  65. package/dist/node_modules/minimist/test/kv_short.js +26 -10
  66. package/dist/node_modules/minimist/test/long.js +28 -26
  67. package/dist/node_modules/minimist/test/num.js +30 -28
  68. package/dist/node_modules/minimist/test/parse.js +169 -157
  69. package/dist/node_modules/minimist/test/parse_modified.js +7 -5
  70. package/dist/node_modules/minimist/test/proto.js +41 -37
  71. package/dist/node_modules/minimist/test/short.js +57 -55
  72. package/dist/node_modules/minimist/test/stop_early.js +10 -8
  73. package/dist/node_modules/minimist/test/unknown.js +83 -81
  74. package/dist/node_modules/minimist/test/whitespace.js +6 -4
  75. package/dist/node_modules/node-abi/.circleci/config.yml +7 -25
  76. package/dist/node_modules/node-abi/.github/CODEOWNERS +1 -0
  77. package/dist/node_modules/node-abi/.github/workflows/update-abi.yml +5 -4
  78. package/dist/node_modules/node-abi/CONTRIBUTING.md +1 -1
  79. package/dist/node_modules/node-abi/README.md +5 -3
  80. package/dist/node_modules/node-abi/abi_registry.json +14 -0
  81. package/dist/node_modules/node-abi/package.json +5 -6
  82. package/dist/node_modules/node-addon-api/README.md +36 -12
  83. package/dist/node_modules/node-addon-api/index.js +3 -3
  84. package/dist/node_modules/node-addon-api/napi-inl.deprecated.h +121 -127
  85. package/dist/node_modules/node-addon-api/napi-inl.h +1166 -1122
  86. package/dist/node_modules/node-addon-api/napi.h +2786 -2675
  87. package/dist/node_modules/node-addon-api/package.json +42 -1
  88. package/dist/node_modules/node-addon-api/tools/check-napi.js +13 -14
  89. package/dist/node_modules/node-addon-api/tools/conversion.js +161 -169
  90. package/dist/node_modules/node-addon-api/tools/eslint-format.js +9 -1
  91. package/dist/node_modules/readable-stream/README.md +1 -1
  92. package/dist/node_modules/readable-stream/lib/_stream_duplex.js +12 -25
  93. package/dist/node_modules/readable-stream/lib/_stream_passthrough.js +2 -4
  94. package/dist/node_modules/readable-stream/lib/_stream_readable.js +176 -273
  95. package/dist/node_modules/readable-stream/lib/_stream_transform.js +26 -37
  96. package/dist/node_modules/readable-stream/lib/_stream_writable.js +118 -174
  97. package/dist/node_modules/readable-stream/lib/internal/streams/async_iterator.js +10 -37
  98. package/dist/node_modules/readable-stream/lib/internal/streams/buffer_list.js +20 -47
  99. package/dist/node_modules/readable-stream/lib/internal/streams/destroy.js +8 -17
  100. package/dist/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +1 -19
  101. package/dist/node_modules/readable-stream/lib/internal/streams/from.js +12 -24
  102. package/dist/node_modules/readable-stream/lib/internal/streams/pipeline.js +5 -16
  103. package/dist/node_modules/readable-stream/lib/internal/streams/state.js +2 -7
  104. package/dist/node_modules/readable-stream/package.json +1 -1
  105. package/dist/package-lock.json +15 -346
  106. package/dist/package.json +1 -1
  107. package/package.json +8 -8
  108. package/src/__tests__/config.data.ts +142 -1
  109. package/src/__tests__/wmts.capability.test.ts +9 -16
  110. package/src/__tests__/xyz.util.ts +6 -2
  111. package/src/cli/render.tile.ts +38 -0
  112. package/src/routes/__tests__/attribution.test.ts +65 -3
  113. package/src/routes/__tests__/tile.style.json.test.ts +100 -44
  114. package/src/routes/__tests__/wmts.test.ts +70 -9
  115. package/src/routes/attribution.ts +24 -28
  116. package/src/routes/tile.json.ts +2 -1
  117. package/src/routes/tile.style.json.ts +13 -5
  118. package/src/routes/tile.wmts.ts +3 -1
  119. package/src/routes/tile.xyz.raster.ts +10 -7
  120. package/src/util/__test__/filter.test.ts +80 -0
  121. package/src/util/config.loader.ts +1 -2
  122. package/src/util/filter.ts +60 -0
  123. package/src/wmts.capability.ts +19 -14
  124. package/tsconfig.tsbuildinfo +1 -1
  125. package/test-dump.js +0 -6
  126. package/test-imagery.js +0 -3
@@ -6,187 +6,181 @@
6
6
  ////////////////////////////////////////////////////////////////////////////////
7
7
 
8
8
  template <typename Getter>
9
- inline PropertyDescriptor
10
- PropertyDescriptor::Accessor(const char* utf8name,
11
- Getter getter,
12
- napi_property_attributes attributes,
13
- void* /*data*/) {
9
+ inline PropertyDescriptor PropertyDescriptor::Accessor(
10
+ const char* utf8name,
11
+ Getter getter,
12
+ napi_property_attributes attributes,
13
+ void* /*data*/) {
14
14
  using CbData = details::CallbackData<Getter, Napi::Value>;
15
15
  // TODO: Delete when the function is destroyed
16
- auto callbackData = new CbData({ getter, nullptr });
17
-
18
- return PropertyDescriptor({
19
- utf8name,
20
- nullptr,
21
- nullptr,
22
- CbData::Wrapper,
23
- nullptr,
24
- nullptr,
25
- attributes,
26
- callbackData
27
- });
16
+ auto callbackData = new CbData({getter, nullptr});
17
+
18
+ return PropertyDescriptor({utf8name,
19
+ nullptr,
20
+ nullptr,
21
+ CbData::Wrapper,
22
+ nullptr,
23
+ nullptr,
24
+ attributes,
25
+ callbackData});
28
26
  }
29
27
 
30
28
  template <typename Getter>
31
- inline PropertyDescriptor PropertyDescriptor::Accessor(const std::string& utf8name,
32
- Getter getter,
33
- napi_property_attributes attributes,
34
- void* data) {
29
+ inline PropertyDescriptor PropertyDescriptor::Accessor(
30
+ const std::string& utf8name,
31
+ Getter getter,
32
+ napi_property_attributes attributes,
33
+ void* data) {
35
34
  return Accessor(utf8name.c_str(), getter, attributes, data);
36
35
  }
37
36
 
38
37
  template <typename Getter>
39
- inline PropertyDescriptor PropertyDescriptor::Accessor(napi_value name,
40
- Getter getter,
41
- napi_property_attributes attributes,
42
- void* /*data*/) {
38
+ inline PropertyDescriptor PropertyDescriptor::Accessor(
39
+ napi_value name,
40
+ Getter getter,
41
+ napi_property_attributes attributes,
42
+ void* /*data*/) {
43
43
  using CbData = details::CallbackData<Getter, Napi::Value>;
44
44
  // TODO: Delete when the function is destroyed
45
- auto callbackData = new CbData({ getter, nullptr });
46
-
47
- return PropertyDescriptor({
48
- nullptr,
49
- name,
50
- nullptr,
51
- CbData::Wrapper,
52
- nullptr,
53
- nullptr,
54
- attributes,
55
- callbackData
56
- });
45
+ auto callbackData = new CbData({getter, nullptr});
46
+
47
+ return PropertyDescriptor({nullptr,
48
+ name,
49
+ nullptr,
50
+ CbData::Wrapper,
51
+ nullptr,
52
+ nullptr,
53
+ attributes,
54
+ callbackData});
57
55
  }
58
56
 
59
57
  template <typename Getter>
60
- inline PropertyDescriptor PropertyDescriptor::Accessor(Name name,
61
- Getter getter,
62
- napi_property_attributes attributes,
63
- void* data) {
58
+ inline PropertyDescriptor PropertyDescriptor::Accessor(
59
+ Name name, Getter getter, napi_property_attributes attributes, void* data) {
64
60
  napi_value nameValue = name;
65
61
  return PropertyDescriptor::Accessor(nameValue, getter, attributes, data);
66
62
  }
67
63
 
68
64
  template <typename Getter, typename Setter>
69
- inline PropertyDescriptor PropertyDescriptor::Accessor(const char* utf8name,
70
- Getter getter,
71
- Setter setter,
72
- napi_property_attributes attributes,
73
- void* /*data*/) {
65
+ inline PropertyDescriptor PropertyDescriptor::Accessor(
66
+ const char* utf8name,
67
+ Getter getter,
68
+ Setter setter,
69
+ napi_property_attributes attributes,
70
+ void* /*data*/) {
74
71
  using CbData = details::AccessorCallbackData<Getter, Setter>;
75
72
  // TODO: Delete when the function is destroyed
76
- auto callbackData = new CbData({ getter, setter, nullptr });
77
-
78
- return PropertyDescriptor({
79
- utf8name,
80
- nullptr,
81
- nullptr,
82
- CbData::GetterWrapper,
83
- CbData::SetterWrapper,
84
- nullptr,
85
- attributes,
86
- callbackData
87
- });
73
+ auto callbackData = new CbData({getter, setter, nullptr});
74
+
75
+ return PropertyDescriptor({utf8name,
76
+ nullptr,
77
+ nullptr,
78
+ CbData::GetterWrapper,
79
+ CbData::SetterWrapper,
80
+ nullptr,
81
+ attributes,
82
+ callbackData});
88
83
  }
89
84
 
90
85
  template <typename Getter, typename Setter>
91
- inline PropertyDescriptor PropertyDescriptor::Accessor(const std::string& utf8name,
92
- Getter getter,
93
- Setter setter,
94
- napi_property_attributes attributes,
95
- void* data) {
86
+ inline PropertyDescriptor PropertyDescriptor::Accessor(
87
+ const std::string& utf8name,
88
+ Getter getter,
89
+ Setter setter,
90
+ napi_property_attributes attributes,
91
+ void* data) {
96
92
  return Accessor(utf8name.c_str(), getter, setter, attributes, data);
97
93
  }
98
94
 
99
95
  template <typename Getter, typename Setter>
100
- inline PropertyDescriptor PropertyDescriptor::Accessor(napi_value name,
101
- Getter getter,
102
- Setter setter,
103
- napi_property_attributes attributes,
104
- void* /*data*/) {
96
+ inline PropertyDescriptor PropertyDescriptor::Accessor(
97
+ napi_value name,
98
+ Getter getter,
99
+ Setter setter,
100
+ napi_property_attributes attributes,
101
+ void* /*data*/) {
105
102
  using CbData = details::AccessorCallbackData<Getter, Setter>;
106
103
  // TODO: Delete when the function is destroyed
107
- auto callbackData = new CbData({ getter, setter, nullptr });
108
-
109
- return PropertyDescriptor({
110
- nullptr,
111
- name,
112
- nullptr,
113
- CbData::GetterWrapper,
114
- CbData::SetterWrapper,
115
- nullptr,
116
- attributes,
117
- callbackData
118
- });
104
+ auto callbackData = new CbData({getter, setter, nullptr});
105
+
106
+ return PropertyDescriptor({nullptr,
107
+ name,
108
+ nullptr,
109
+ CbData::GetterWrapper,
110
+ CbData::SetterWrapper,
111
+ nullptr,
112
+ attributes,
113
+ callbackData});
119
114
  }
120
115
 
121
116
  template <typename Getter, typename Setter>
122
- inline PropertyDescriptor PropertyDescriptor::Accessor(Name name,
123
- Getter getter,
124
- Setter setter,
125
- napi_property_attributes attributes,
126
- void* data) {
117
+ inline PropertyDescriptor PropertyDescriptor::Accessor(
118
+ Name name,
119
+ Getter getter,
120
+ Setter setter,
121
+ napi_property_attributes attributes,
122
+ void* data) {
127
123
  napi_value nameValue = name;
128
- return PropertyDescriptor::Accessor(nameValue, getter, setter, attributes, data);
124
+ return PropertyDescriptor::Accessor(
125
+ nameValue, getter, setter, attributes, data);
129
126
  }
130
127
 
131
128
  template <typename Callable>
132
- inline PropertyDescriptor PropertyDescriptor::Function(const char* utf8name,
133
- Callable cb,
134
- napi_property_attributes attributes,
135
- void* /*data*/) {
129
+ inline PropertyDescriptor PropertyDescriptor::Function(
130
+ const char* utf8name,
131
+ Callable cb,
132
+ napi_property_attributes attributes,
133
+ void* /*data*/) {
136
134
  using ReturnType = decltype(cb(CallbackInfo(nullptr, nullptr)));
137
135
  using CbData = details::CallbackData<Callable, ReturnType>;
138
136
  // TODO: Delete when the function is destroyed
139
- auto callbackData = new CbData({ cb, nullptr });
140
-
141
- return PropertyDescriptor({
142
- utf8name,
143
- nullptr,
144
- CbData::Wrapper,
145
- nullptr,
146
- nullptr,
147
- nullptr,
148
- attributes,
149
- callbackData
150
- });
137
+ auto callbackData = new CbData({cb, nullptr});
138
+
139
+ return PropertyDescriptor({utf8name,
140
+ nullptr,
141
+ CbData::Wrapper,
142
+ nullptr,
143
+ nullptr,
144
+ nullptr,
145
+ attributes,
146
+ callbackData});
151
147
  }
152
148
 
153
149
  template <typename Callable>
154
- inline PropertyDescriptor PropertyDescriptor::Function(const std::string& utf8name,
155
- Callable cb,
156
- napi_property_attributes attributes,
157
- void* data) {
150
+ inline PropertyDescriptor PropertyDescriptor::Function(
151
+ const std::string& utf8name,
152
+ Callable cb,
153
+ napi_property_attributes attributes,
154
+ void* data) {
158
155
  return Function(utf8name.c_str(), cb, attributes, data);
159
156
  }
160
157
 
161
158
  template <typename Callable>
162
- inline PropertyDescriptor PropertyDescriptor::Function(napi_value name,
163
- Callable cb,
164
- napi_property_attributes attributes,
165
- void* /*data*/) {
159
+ inline PropertyDescriptor PropertyDescriptor::Function(
160
+ napi_value name,
161
+ Callable cb,
162
+ napi_property_attributes attributes,
163
+ void* /*data*/) {
166
164
  using ReturnType = decltype(cb(CallbackInfo(nullptr, nullptr)));
167
165
  using CbData = details::CallbackData<Callable, ReturnType>;
168
166
  // TODO: Delete when the function is destroyed
169
- auto callbackData = new CbData({ cb, nullptr });
170
-
171
- return PropertyDescriptor({
172
- nullptr,
173
- name,
174
- CbData::Wrapper,
175
- nullptr,
176
- nullptr,
177
- nullptr,
178
- attributes,
179
- callbackData
180
- });
167
+ auto callbackData = new CbData({cb, nullptr});
168
+
169
+ return PropertyDescriptor({nullptr,
170
+ name,
171
+ CbData::Wrapper,
172
+ nullptr,
173
+ nullptr,
174
+ nullptr,
175
+ attributes,
176
+ callbackData});
181
177
  }
182
178
 
183
179
  template <typename Callable>
184
- inline PropertyDescriptor PropertyDescriptor::Function(Name name,
185
- Callable cb,
186
- napi_property_attributes attributes,
187
- void* data) {
180
+ inline PropertyDescriptor PropertyDescriptor::Function(
181
+ Name name, Callable cb, napi_property_attributes attributes, void* data) {
188
182
  napi_value nameValue = name;
189
183
  return PropertyDescriptor::Function(nameValue, cb, attributes, data);
190
184
  }
191
185
 
192
- #endif // !SRC_NAPI_INL_DEPRECATED_H_
186
+ #endif // !SRC_NAPI_INL_DEPRECATED_H_