@basemaps/cli-raster 8.3.0 → 8.6.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/dist/index.cjs +266 -44
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -44838,7 +44838,7 @@ var require_GetObjectCommand = __commonJS({
|
|
|
44838
44838
|
var types_1 = require_dist_cjs();
|
|
44839
44839
|
var models_0_1 = require_models_0();
|
|
44840
44840
|
var Aws_restXml_1 = require_Aws_restXml();
|
|
44841
|
-
var
|
|
44841
|
+
var GetObjectCommand4 = class _GetObjectCommand extends smithy_client_1.Command {
|
|
44842
44842
|
static getEndpointParameterInstructions() {
|
|
44843
44843
|
return {
|
|
44844
44844
|
Bucket: { type: "contextParams", name: "Bucket" },
|
|
@@ -44894,7 +44894,7 @@ var require_GetObjectCommand = __commonJS({
|
|
|
44894
44894
|
return (0, Aws_restXml_1.de_GetObjectCommand)(output, context);
|
|
44895
44895
|
}
|
|
44896
44896
|
};
|
|
44897
|
-
exports.GetObjectCommand =
|
|
44897
|
+
exports.GetObjectCommand = GetObjectCommand4;
|
|
44898
44898
|
}
|
|
44899
44899
|
});
|
|
44900
44900
|
|
|
@@ -49117,6 +49117,204 @@ var require_dist_cjs69 = __commonJS({
|
|
|
49117
49117
|
}
|
|
49118
49118
|
});
|
|
49119
49119
|
|
|
49120
|
+
// ../shared/node_modules/@aws-sdk/util-format-url/dist-cjs/index.js
|
|
49121
|
+
var require_dist_cjs70 = __commonJS({
|
|
49122
|
+
"../shared/node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports) {
|
|
49123
|
+
"use strict";
|
|
49124
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49125
|
+
exports.formatUrl = void 0;
|
|
49126
|
+
var querystring_builder_1 = require_dist_cjs13();
|
|
49127
|
+
function formatUrl(request) {
|
|
49128
|
+
var _a2, _b;
|
|
49129
|
+
const { port, query } = request;
|
|
49130
|
+
let { protocol, path: path3, hostname } = request;
|
|
49131
|
+
if (protocol && protocol.slice(-1) !== ":") {
|
|
49132
|
+
protocol += ":";
|
|
49133
|
+
}
|
|
49134
|
+
if (port) {
|
|
49135
|
+
hostname += `:${port}`;
|
|
49136
|
+
}
|
|
49137
|
+
if (path3 && path3.charAt(0) !== "/") {
|
|
49138
|
+
path3 = `/${path3}`;
|
|
49139
|
+
}
|
|
49140
|
+
let queryString = query ? (0, querystring_builder_1.buildQueryString)(query) : "";
|
|
49141
|
+
if (queryString && queryString[0] !== "?") {
|
|
49142
|
+
queryString = `?${queryString}`;
|
|
49143
|
+
}
|
|
49144
|
+
let auth = "";
|
|
49145
|
+
if (request.username != null || request.password != null) {
|
|
49146
|
+
const username = (_a2 = request.username) !== null && _a2 !== void 0 ? _a2 : "";
|
|
49147
|
+
const password = (_b = request.password) !== null && _b !== void 0 ? _b : "";
|
|
49148
|
+
auth = `${username}:${password}@`;
|
|
49149
|
+
}
|
|
49150
|
+
let fragment = "";
|
|
49151
|
+
if (request.fragment) {
|
|
49152
|
+
fragment = `#${request.fragment}`;
|
|
49153
|
+
}
|
|
49154
|
+
return `${protocol}//${auth}${hostname}${path3}${queryString}${fragment}`;
|
|
49155
|
+
}
|
|
49156
|
+
exports.formatUrl = formatUrl;
|
|
49157
|
+
}
|
|
49158
|
+
});
|
|
49159
|
+
|
|
49160
|
+
// ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/constants.js
|
|
49161
|
+
var require_constants11 = __commonJS({
|
|
49162
|
+
"../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/constants.js"(exports) {
|
|
49163
|
+
"use strict";
|
|
49164
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49165
|
+
exports.ALGORITHM_IDENTIFIER = exports.HOST_HEADER = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = exports.SHA256_HEADER = exports.UNSIGNED_PAYLOAD = void 0;
|
|
49166
|
+
exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
|
|
49167
|
+
exports.SHA256_HEADER = "X-Amz-Content-Sha256";
|
|
49168
|
+
exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
|
|
49169
|
+
exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
|
|
49170
|
+
exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
|
|
49171
|
+
exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders";
|
|
49172
|
+
exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires";
|
|
49173
|
+
exports.HOST_HEADER = "host";
|
|
49174
|
+
exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256";
|
|
49175
|
+
}
|
|
49176
|
+
});
|
|
49177
|
+
|
|
49178
|
+
// ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/presigner.js
|
|
49179
|
+
var require_presigner = __commonJS({
|
|
49180
|
+
"../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/presigner.js"(exports) {
|
|
49181
|
+
"use strict";
|
|
49182
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49183
|
+
exports.S3RequestPresigner = void 0;
|
|
49184
|
+
var signature_v4_multi_region_1 = require_dist_cjs64();
|
|
49185
|
+
var constants_1 = require_constants11();
|
|
49186
|
+
var S3RequestPresigner = class {
|
|
49187
|
+
constructor(options) {
|
|
49188
|
+
const resolvedOptions = {
|
|
49189
|
+
service: options.signingName || options.service || "s3",
|
|
49190
|
+
uriEscapePath: options.uriEscapePath || false,
|
|
49191
|
+
applyChecksum: options.applyChecksum || false,
|
|
49192
|
+
...options
|
|
49193
|
+
};
|
|
49194
|
+
this.signer = new signature_v4_multi_region_1.SignatureV4MultiRegion(resolvedOptions);
|
|
49195
|
+
}
|
|
49196
|
+
presign(requestToSign, { unsignableHeaders = /* @__PURE__ */ new Set(), unhoistableHeaders = /* @__PURE__ */ new Set(), ...options } = {}) {
|
|
49197
|
+
this.prepareRequest(requestToSign, {
|
|
49198
|
+
unsignableHeaders,
|
|
49199
|
+
unhoistableHeaders
|
|
49200
|
+
});
|
|
49201
|
+
return this.signer.presign(requestToSign, {
|
|
49202
|
+
expiresIn: 900,
|
|
49203
|
+
unsignableHeaders,
|
|
49204
|
+
unhoistableHeaders,
|
|
49205
|
+
...options
|
|
49206
|
+
});
|
|
49207
|
+
}
|
|
49208
|
+
presignWithCredentials(requestToSign, credentials2, { unsignableHeaders = /* @__PURE__ */ new Set(), unhoistableHeaders = /* @__PURE__ */ new Set(), ...options } = {}) {
|
|
49209
|
+
this.prepareRequest(requestToSign, {
|
|
49210
|
+
unsignableHeaders,
|
|
49211
|
+
unhoistableHeaders
|
|
49212
|
+
});
|
|
49213
|
+
return this.signer.presignWithCredentials(requestToSign, credentials2, {
|
|
49214
|
+
expiresIn: 900,
|
|
49215
|
+
unsignableHeaders,
|
|
49216
|
+
unhoistableHeaders,
|
|
49217
|
+
...options
|
|
49218
|
+
});
|
|
49219
|
+
}
|
|
49220
|
+
prepareRequest(requestToSign, { unsignableHeaders = /* @__PURE__ */ new Set(), unhoistableHeaders = /* @__PURE__ */ new Set() } = {}) {
|
|
49221
|
+
unsignableHeaders.add("content-type");
|
|
49222
|
+
Object.keys(requestToSign.headers).map((header) => header.toLowerCase()).filter((header) => header.startsWith("x-amz-server-side-encryption")).forEach((header) => {
|
|
49223
|
+
unhoistableHeaders.add(header);
|
|
49224
|
+
});
|
|
49225
|
+
requestToSign.headers[constants_1.SHA256_HEADER] = constants_1.UNSIGNED_PAYLOAD;
|
|
49226
|
+
const currentHostHeader = requestToSign.headers.host;
|
|
49227
|
+
const port = requestToSign.port;
|
|
49228
|
+
const expectedHostHeader = `${requestToSign.hostname}${requestToSign.port != null ? ":" + port : ""}`;
|
|
49229
|
+
if (!currentHostHeader || currentHostHeader === requestToSign.hostname && requestToSign.port != null) {
|
|
49230
|
+
requestToSign.headers.host = expectedHostHeader;
|
|
49231
|
+
}
|
|
49232
|
+
}
|
|
49233
|
+
};
|
|
49234
|
+
exports.S3RequestPresigner = S3RequestPresigner;
|
|
49235
|
+
}
|
|
49236
|
+
});
|
|
49237
|
+
|
|
49238
|
+
// ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/getSignedUrl.js
|
|
49239
|
+
var require_getSignedUrl = __commonJS({
|
|
49240
|
+
"../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/getSignedUrl.js"(exports) {
|
|
49241
|
+
"use strict";
|
|
49242
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49243
|
+
exports.getSignedUrl = void 0;
|
|
49244
|
+
var util_format_url_1 = require_dist_cjs70();
|
|
49245
|
+
var middleware_endpoint_1 = require_dist_cjs38();
|
|
49246
|
+
var protocol_http_1 = require_dist_cjs2();
|
|
49247
|
+
var presigner_1 = require_presigner();
|
|
49248
|
+
var getSignedUrl2 = async (client, command5, options = {}) => {
|
|
49249
|
+
var _a2, _b;
|
|
49250
|
+
let s3Presigner;
|
|
49251
|
+
if (typeof client.config.endpointProvider === "function") {
|
|
49252
|
+
const endpointV2 = await (0, middleware_endpoint_1.getEndpointFromInstructions)(command5.input, command5.constructor, client.config);
|
|
49253
|
+
const authScheme = (_b = (_a2 = endpointV2.properties) === null || _a2 === void 0 ? void 0 : _a2.authSchemes) === null || _b === void 0 ? void 0 : _b[0];
|
|
49254
|
+
s3Presigner = new presigner_1.S3RequestPresigner({
|
|
49255
|
+
...client.config,
|
|
49256
|
+
signingName: authScheme === null || authScheme === void 0 ? void 0 : authScheme.signingName,
|
|
49257
|
+
region: async () => authScheme === null || authScheme === void 0 ? void 0 : authScheme.signingRegion
|
|
49258
|
+
});
|
|
49259
|
+
} else {
|
|
49260
|
+
s3Presigner = new presigner_1.S3RequestPresigner(client.config);
|
|
49261
|
+
}
|
|
49262
|
+
const presignInterceptMiddleware = (next, context) => async (args) => {
|
|
49263
|
+
var _a3, _b2;
|
|
49264
|
+
const { request } = args;
|
|
49265
|
+
if (!protocol_http_1.HttpRequest.isInstance(request)) {
|
|
49266
|
+
throw new Error("Request to be presigned is not an valid HTTP request.");
|
|
49267
|
+
}
|
|
49268
|
+
delete request.headers["amz-sdk-invocation-id"];
|
|
49269
|
+
delete request.headers["amz-sdk-request"];
|
|
49270
|
+
delete request.headers["x-amz-user-agent"];
|
|
49271
|
+
let presigned2;
|
|
49272
|
+
const presignerOptions = {
|
|
49273
|
+
...options,
|
|
49274
|
+
signingRegion: (_a3 = options.signingRegion) !== null && _a3 !== void 0 ? _a3 : context["signing_region"],
|
|
49275
|
+
signingService: (_b2 = options.signingService) !== null && _b2 !== void 0 ? _b2 : context["signing_service"]
|
|
49276
|
+
};
|
|
49277
|
+
if (context.s3ExpressIdentity) {
|
|
49278
|
+
presigned2 = await s3Presigner.presignWithCredentials(request, context.s3ExpressIdentity, presignerOptions);
|
|
49279
|
+
} else {
|
|
49280
|
+
presigned2 = await s3Presigner.presign(request, presignerOptions);
|
|
49281
|
+
}
|
|
49282
|
+
return {
|
|
49283
|
+
response: {},
|
|
49284
|
+
output: {
|
|
49285
|
+
$metadata: { httpStatusCode: 200 },
|
|
49286
|
+
presigned: presigned2
|
|
49287
|
+
}
|
|
49288
|
+
};
|
|
49289
|
+
};
|
|
49290
|
+
const middlewareName = "presignInterceptMiddleware";
|
|
49291
|
+
const clientStack = client.middlewareStack.clone();
|
|
49292
|
+
clientStack.addRelativeTo(presignInterceptMiddleware, {
|
|
49293
|
+
name: middlewareName,
|
|
49294
|
+
relation: "before",
|
|
49295
|
+
toMiddleware: "awsAuthMiddleware",
|
|
49296
|
+
override: true
|
|
49297
|
+
});
|
|
49298
|
+
const handler = command5.resolveMiddleware(clientStack, client.config, {});
|
|
49299
|
+
const { output } = await handler({ input: command5.input });
|
|
49300
|
+
const { presigned } = output;
|
|
49301
|
+
return (0, util_format_url_1.formatUrl)(presigned);
|
|
49302
|
+
};
|
|
49303
|
+
exports.getSignedUrl = getSignedUrl2;
|
|
49304
|
+
}
|
|
49305
|
+
});
|
|
49306
|
+
|
|
49307
|
+
// ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js
|
|
49308
|
+
var require_dist_cjs71 = __commonJS({
|
|
49309
|
+
"../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js"(exports) {
|
|
49310
|
+
"use strict";
|
|
49311
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49312
|
+
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
49313
|
+
tslib_1.__exportStar(require_getSignedUrl(), exports);
|
|
49314
|
+
tslib_1.__exportStar(require_presigner(), exports);
|
|
49315
|
+
}
|
|
49316
|
+
});
|
|
49317
|
+
|
|
49120
49318
|
// ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoint/EndpointParameters.js
|
|
49121
49319
|
var require_EndpointParameters4 = __commonJS({
|
|
49122
49320
|
"../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoint/EndpointParameters.js"(exports) {
|
|
@@ -52666,7 +52864,7 @@ var require_models4 = __commonJS({
|
|
|
52666
52864
|
});
|
|
52667
52865
|
|
|
52668
52866
|
// ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js
|
|
52669
|
-
var
|
|
52867
|
+
var require_dist_cjs72 = __commonJS({
|
|
52670
52868
|
"../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js"(exports) {
|
|
52671
52869
|
"use strict";
|
|
52672
52870
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -52739,7 +52937,7 @@ var require_fromCognitoIdentity = __commonJS({
|
|
|
52739
52937
|
"use strict";
|
|
52740
52938
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52741
52939
|
exports.fromCognitoIdentity = void 0;
|
|
52742
|
-
var client_cognito_identity_1 =
|
|
52940
|
+
var client_cognito_identity_1 = require_dist_cjs72();
|
|
52743
52941
|
var property_provider_1 = require_dist_cjs25();
|
|
52744
52942
|
var resolveLogins_1 = require_resolveLogins();
|
|
52745
52943
|
function fromCognitoIdentity(parameters) {
|
|
@@ -52903,7 +53101,7 @@ var require_fromCognitoIdentityPool = __commonJS({
|
|
|
52903
53101
|
"use strict";
|
|
52904
53102
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52905
53103
|
exports.fromCognitoIdentityPool = void 0;
|
|
52906
|
-
var client_cognito_identity_1 =
|
|
53104
|
+
var client_cognito_identity_1 = require_dist_cjs72();
|
|
52907
53105
|
var property_provider_1 = require_dist_cjs25();
|
|
52908
53106
|
var fromCognitoIdentity_1 = require_fromCognitoIdentity();
|
|
52909
53107
|
var localStorage_1 = require_localStorage();
|
|
@@ -52948,7 +53146,7 @@ var require_fromCognitoIdentityPool = __commonJS({
|
|
|
52948
53146
|
});
|
|
52949
53147
|
|
|
52950
53148
|
// ../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js
|
|
52951
|
-
var
|
|
53149
|
+
var require_dist_cjs73 = __commonJS({
|
|
52952
53150
|
"../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js"(exports) {
|
|
52953
53151
|
"use strict";
|
|
52954
53152
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -52967,8 +53165,8 @@ var require_fromCognitoIdentity2 = __commonJS({
|
|
|
52967
53165
|
"use strict";
|
|
52968
53166
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52969
53167
|
exports.fromCognitoIdentity = void 0;
|
|
52970
|
-
var client_cognito_identity_1 =
|
|
52971
|
-
var credential_provider_cognito_identity_1 =
|
|
53168
|
+
var client_cognito_identity_1 = require_dist_cjs72();
|
|
53169
|
+
var credential_provider_cognito_identity_1 = require_dist_cjs73();
|
|
52972
53170
|
var fromCognitoIdentity = (options) => {
|
|
52973
53171
|
var _a2;
|
|
52974
53172
|
return (0, credential_provider_cognito_identity_1.fromCognitoIdentity)({
|
|
@@ -52986,8 +53184,8 @@ var require_fromCognitoIdentityPool2 = __commonJS({
|
|
|
52986
53184
|
"use strict";
|
|
52987
53185
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52988
53186
|
exports.fromCognitoIdentityPool = void 0;
|
|
52989
|
-
var client_cognito_identity_1 =
|
|
52990
|
-
var credential_provider_cognito_identity_1 =
|
|
53187
|
+
var client_cognito_identity_1 = require_dist_cjs72();
|
|
53188
|
+
var credential_provider_cognito_identity_1 = require_dist_cjs73();
|
|
52991
53189
|
var fromCognitoIdentityPool = (options) => {
|
|
52992
53190
|
var _a2;
|
|
52993
53191
|
return (0, credential_provider_cognito_identity_1.fromCognitoIdentityPool)({
|
|
@@ -53208,7 +53406,7 @@ var require_fromHttp = __commonJS({
|
|
|
53208
53406
|
});
|
|
53209
53407
|
|
|
53210
53408
|
// ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
|
|
53211
|
-
var
|
|
53409
|
+
var require_dist_cjs74 = __commonJS({
|
|
53212
53410
|
"../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js"(exports) {
|
|
53213
53411
|
"use strict";
|
|
53214
53412
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -53378,7 +53576,7 @@ var require_fromWebToken2 = __commonJS({
|
|
|
53378
53576
|
});
|
|
53379
53577
|
|
|
53380
53578
|
// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js
|
|
53381
|
-
var
|
|
53579
|
+
var require_dist_cjs75 = __commonJS({
|
|
53382
53580
|
"../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js"(exports) {
|
|
53383
53581
|
"use strict";
|
|
53384
53582
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -53388,7 +53586,7 @@ var require_dist_cjs73 = __commonJS({
|
|
|
53388
53586
|
tslib_1.__exportStar(require_fromCognitoIdentityPool2(), exports);
|
|
53389
53587
|
tslib_1.__exportStar(require_fromContainerMetadata2(), exports);
|
|
53390
53588
|
tslib_1.__exportStar(require_fromEnv3(), exports);
|
|
53391
|
-
var credential_provider_http_1 =
|
|
53589
|
+
var credential_provider_http_1 = require_dist_cjs74();
|
|
53392
53590
|
Object.defineProperty(exports, "fromHttp", { enumerable: true, get: function() {
|
|
53393
53591
|
return credential_provider_http_1.fromHttp;
|
|
53394
53592
|
} });
|
|
@@ -53453,7 +53651,7 @@ var require_AbortController = __commonJS({
|
|
|
53453
53651
|
});
|
|
53454
53652
|
|
|
53455
53653
|
// ../../node_modules/@smithy/abort-controller/dist-cjs/index.js
|
|
53456
|
-
var
|
|
53654
|
+
var require_dist_cjs76 = __commonJS({
|
|
53457
53655
|
"../../node_modules/@smithy/abort-controller/dist-cjs/index.js"(exports) {
|
|
53458
53656
|
"use strict";
|
|
53459
53657
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -53667,7 +53865,7 @@ var require_Upload = __commonJS({
|
|
|
53667
53865
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53668
53866
|
exports.Upload = void 0;
|
|
53669
53867
|
var client_s3_1 = require_dist_cjs69();
|
|
53670
|
-
var abort_controller_1 =
|
|
53868
|
+
var abort_controller_1 = require_dist_cjs76();
|
|
53671
53869
|
var middleware_endpoint_1 = require_dist_cjs38();
|
|
53672
53870
|
var smithy_client_1 = require_dist_cjs16();
|
|
53673
53871
|
var events_1 = require("events");
|
|
@@ -53940,7 +54138,7 @@ var require_types11 = __commonJS({
|
|
|
53940
54138
|
});
|
|
53941
54139
|
|
|
53942
54140
|
// ../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js
|
|
53943
|
-
var
|
|
54141
|
+
var require_dist_cjs77 = __commonJS({
|
|
53944
54142
|
"../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js"(exports) {
|
|
53945
54143
|
"use strict";
|
|
53946
54144
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -54701,7 +54899,7 @@ var require_EndpointCache = __commonJS({
|
|
|
54701
54899
|
});
|
|
54702
54900
|
|
|
54703
54901
|
// ../../node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js
|
|
54704
|
-
var
|
|
54902
|
+
var require_dist_cjs78 = __commonJS({
|
|
54705
54903
|
"../../node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js"(exports) {
|
|
54706
54904
|
"use strict";
|
|
54707
54905
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -54717,7 +54915,7 @@ var require_resolveEndpointDiscoveryConfig = __commonJS({
|
|
|
54717
54915
|
"use strict";
|
|
54718
54916
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54719
54917
|
exports.resolveEndpointDiscoveryConfig = void 0;
|
|
54720
|
-
var endpoint_cache_1 =
|
|
54918
|
+
var endpoint_cache_1 = require_dist_cjs78();
|
|
54721
54919
|
var resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) => {
|
|
54722
54920
|
var _a2;
|
|
54723
54921
|
return {
|
|
@@ -54733,7 +54931,7 @@ var require_resolveEndpointDiscoveryConfig = __commonJS({
|
|
|
54733
54931
|
});
|
|
54734
54932
|
|
|
54735
54933
|
// ../../node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js
|
|
54736
|
-
var
|
|
54934
|
+
var require_dist_cjs79 = __commonJS({
|
|
54737
54935
|
"../../node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js"(exports) {
|
|
54738
54936
|
"use strict";
|
|
54739
54937
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -60213,7 +60411,7 @@ var require_runtimeConfig6 = __commonJS({
|
|
|
60213
60411
|
var client_sts_1 = require_dist_cjs59();
|
|
60214
60412
|
var core_1 = require_dist_cjs44();
|
|
60215
60413
|
var credential_provider_node_1 = require_dist_cjs58();
|
|
60216
|
-
var middleware_endpoint_discovery_1 =
|
|
60414
|
+
var middleware_endpoint_discovery_1 = require_dist_cjs79();
|
|
60217
60415
|
var util_user_agent_node_1 = require_dist_cjs48();
|
|
60218
60416
|
var config_resolver_1 = require_dist_cjs30();
|
|
60219
60417
|
var hash_node_1 = require_dist_cjs49();
|
|
@@ -60292,7 +60490,7 @@ var require_DynamoDBClient = __commonJS({
|
|
|
60292
60490
|
"use strict";
|
|
60293
60491
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60294
60492
|
exports.DynamoDBClient = exports.__Client = void 0;
|
|
60295
|
-
var middleware_endpoint_discovery_1 =
|
|
60493
|
+
var middleware_endpoint_discovery_1 = require_dist_cjs79();
|
|
60296
60494
|
var middleware_host_header_1 = require_dist_cjs4();
|
|
60297
60495
|
var middleware_logger_1 = require_dist_cjs5();
|
|
60298
60496
|
var middleware_recursion_detection_1 = require_dist_cjs6();
|
|
@@ -63924,7 +64122,7 @@ var require_models5 = __commonJS({
|
|
|
63924
64122
|
});
|
|
63925
64123
|
|
|
63926
64124
|
// ../../node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js
|
|
63927
|
-
var
|
|
64125
|
+
var require_dist_cjs80 = __commonJS({
|
|
63928
64126
|
"../../node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js"(exports) {
|
|
63929
64127
|
"use strict";
|
|
63930
64128
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -64260,7 +64458,7 @@ var require_unmarshall = __commonJS({
|
|
|
64260
64458
|
});
|
|
64261
64459
|
|
|
64262
64460
|
// ../../node_modules/@aws-sdk/util-dynamodb/dist-cjs/index.js
|
|
64263
|
-
var
|
|
64461
|
+
var require_dist_cjs81 = __commonJS({
|
|
64264
64462
|
"../../node_modules/@aws-sdk/util-dynamodb/dist-cjs/index.js"(exports) {
|
|
64265
64463
|
"use strict";
|
|
64266
64464
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -72934,9 +73132,9 @@ var ulid2 = __toESM(require_index_umd(), 1);
|
|
|
72934
73132
|
var CliInfo = {
|
|
72935
73133
|
// Detect unlinked packages looks for this string since its a package name, slightly work around it
|
|
72936
73134
|
package: "@basemaps/cli",
|
|
72937
|
-
version: "v8.
|
|
72938
|
-
hash: "
|
|
72939
|
-
buildId: "
|
|
73135
|
+
version: "v8.6.0",
|
|
73136
|
+
hash: "bd34894f26d1c7827503e0cb9d48d0773ecd6775",
|
|
73137
|
+
buildId: "16790799626-1"
|
|
72940
73138
|
};
|
|
72941
73139
|
var CliDate = (/* @__PURE__ */ new Date()).toISOString();
|
|
72942
73140
|
var CliId = ulid2.ulid();
|
|
@@ -77180,9 +77378,14 @@ var ConfigBase = z.object({
|
|
|
77180
77378
|
/**
|
|
77181
77379
|
* Was this configuration object generated from another object
|
|
77182
77380
|
*
|
|
77183
|
-
*
|
|
77381
|
+
* tileset-all: All tileset contains all raster layers
|
|
77382
|
+
* tileset-alias: Alias that points to another tileset
|
|
77383
|
+
* imagery-name: Tileset that is identified by its imagery name
|
|
77384
|
+
* imagery-id: Tileset that is identified by its imagery id
|
|
77385
|
+
*
|
|
77386
|
+
* @default undefined
|
|
77184
77387
|
*/
|
|
77185
|
-
virtual: z.
|
|
77388
|
+
virtual: z.enum(["tileset-all", "tileset-alias", "imagery-name", "imagery-id"]).optional()
|
|
77186
77389
|
});
|
|
77187
77390
|
|
|
77188
77391
|
// ../config/build/config/tile.set.js
|
|
@@ -77462,14 +77665,25 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
|
|
|
77462
77665
|
return cfg;
|
|
77463
77666
|
}
|
|
77464
77667
|
/** Find all imagery inside this configuration and create a virtual tile set for it */
|
|
77465
|
-
createVirtualTileSets() {
|
|
77668
|
+
createVirtualTileSets(createById = true) {
|
|
77466
77669
|
const allLayers = [];
|
|
77467
77670
|
for (const obj of this.objects.values()) {
|
|
77468
77671
|
if (isConfigImagery(obj)) {
|
|
77469
|
-
|
|
77672
|
+
if (createById)
|
|
77673
|
+
this.put(_ConfigProviderMemory.imageryToTileSet(obj));
|
|
77470
77674
|
const tileSet = this.imageryToTileSetByName(obj);
|
|
77471
77675
|
allLayers.push(tileSet.layers[0]);
|
|
77472
77676
|
}
|
|
77677
|
+
if (this.TileSet.is(obj)) {
|
|
77678
|
+
if (obj.aliases) {
|
|
77679
|
+
for (const alias of obj.aliases) {
|
|
77680
|
+
const aliasTs = structuredClone(obj);
|
|
77681
|
+
aliasTs.id = ConfigId.prefix(ConfigPrefix.TileSet, alias);
|
|
77682
|
+
aliasTs.virtual = "tileset-alias";
|
|
77683
|
+
this.put(aliasTs);
|
|
77684
|
+
}
|
|
77685
|
+
}
|
|
77686
|
+
}
|
|
77473
77687
|
}
|
|
77474
77688
|
if (allLayers.length)
|
|
77475
77689
|
this.createVirtualAllTileSet(allLayers);
|
|
@@ -77486,7 +77700,7 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
|
|
|
77486
77700
|
}
|
|
77487
77701
|
const allTileset = {
|
|
77488
77702
|
type: TileSetType.Raster,
|
|
77489
|
-
virtual:
|
|
77703
|
+
virtual: "tileset-all",
|
|
77490
77704
|
id: "ts_all",
|
|
77491
77705
|
name: "all",
|
|
77492
77706
|
title: "All Imagery",
|
|
@@ -77503,7 +77717,7 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
|
|
|
77503
77717
|
if (existing == null) {
|
|
77504
77718
|
existing = {
|
|
77505
77719
|
type: TileSetType.Raster,
|
|
77506
|
-
virtual:
|
|
77720
|
+
virtual: "imagery-name",
|
|
77507
77721
|
id: targetId,
|
|
77508
77722
|
title: i.title,
|
|
77509
77723
|
category: i.category,
|
|
@@ -77534,7 +77748,7 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
|
|
|
77534
77748
|
static imageryToTileSet(i) {
|
|
77535
77749
|
const ts = {
|
|
77536
77750
|
type: TileSetType.Raster,
|
|
77537
|
-
virtual:
|
|
77751
|
+
virtual: "imagery-id",
|
|
77538
77752
|
id: ConfigId.prefix(ConfigPrefix.TileSet, ConfigId.unprefix(ConfigPrefix.Imagery, i.id)),
|
|
77539
77753
|
name: i.name,
|
|
77540
77754
|
title: i.title,
|
|
@@ -77602,6 +77816,7 @@ var MemoryConfigObject = class extends BasemapsConfigObject {
|
|
|
77602
77816
|
// ../shared/build/file.system.js
|
|
77603
77817
|
var import_node_url3 = require("url");
|
|
77604
77818
|
var import_client_s34 = __toESM(require_dist_cjs69(), 1);
|
|
77819
|
+
var import_s3_request_presigner = __toESM(require_dist_cjs71(), 1);
|
|
77605
77820
|
|
|
77606
77821
|
// ../../node_modules/@chunkd/source/build/src/error.js
|
|
77607
77822
|
var SourceError = class _SourceError extends Error {
|
|
@@ -78275,12 +78490,12 @@ var FsHttp = class {
|
|
|
78275
78490
|
|
|
78276
78491
|
// ../../node_modules/@chunkd/fs-aws/build/src/credentials.js
|
|
78277
78492
|
var import_client_s33 = __toESM(require_dist_cjs69(), 1);
|
|
78278
|
-
var import_credential_providers = __toESM(
|
|
78493
|
+
var import_credential_providers = __toESM(require_dist_cjs75(), 1);
|
|
78279
78494
|
|
|
78280
78495
|
// ../../node_modules/@chunkd/fs-aws/build/src/fs.s3.js
|
|
78281
78496
|
var import_node_stream = require("stream");
|
|
78282
78497
|
var import_client_s32 = __toESM(require_dist_cjs69(), 1);
|
|
78283
|
-
var import_lib_storage = __toESM(
|
|
78498
|
+
var import_lib_storage = __toESM(require_dist_cjs77(), 1);
|
|
78284
78499
|
|
|
78285
78500
|
// ../../node_modules/@chunkd/source-aws/build/src/index.js
|
|
78286
78501
|
var import_client_s3 = __toESM(require_dist_cjs69(), 1);
|
|
@@ -79004,14 +79219,15 @@ function hasHostName(x) {
|
|
|
79004
79219
|
}
|
|
79005
79220
|
|
|
79006
79221
|
// ../shared/build/file.system.js
|
|
79007
|
-
var
|
|
79222
|
+
var s3Client = new import_client_s34.S3Client({
|
|
79008
79223
|
/**
|
|
79009
|
-
* We buckets in multiple regions
|
|
79224
|
+
* We have buckets in multiple regions. We don’t know ahead of time which region each bucket is in
|
|
79010
79225
|
*
|
|
79011
|
-
* So the S3 Client will have to follow the endpoints
|
|
79226
|
+
* So, the S3 Client will have to follow the endpoints. This adds a bit of extra latency as requests have to be retried
|
|
79012
79227
|
*/
|
|
79013
79228
|
followRegionRedirects: true
|
|
79014
|
-
})
|
|
79229
|
+
});
|
|
79230
|
+
var s3Fs = new FsAwsS3(s3Client);
|
|
79015
79231
|
var s3FsPublic = new FsAwsS3(new import_client_s34.S3Client({
|
|
79016
79232
|
followRegionRedirects: true,
|
|
79017
79233
|
signer: {
|
|
@@ -79139,12 +79355,12 @@ var UrlArrayJsonFile = {
|
|
|
79139
79355
|
};
|
|
79140
79356
|
|
|
79141
79357
|
// ../shared/build/dynamo/dynamo.config.js
|
|
79142
|
-
var import_client_dynamodb2 = __toESM(
|
|
79358
|
+
var import_client_dynamodb2 = __toESM(require_dist_cjs80(), 1);
|
|
79143
79359
|
var import_util_retry = __toESM(require_dist_cjs40(), 1);
|
|
79144
79360
|
|
|
79145
79361
|
// ../shared/build/dynamo/dynamo.config.base.js
|
|
79146
|
-
var import_client_dynamodb = __toESM(
|
|
79147
|
-
var import_util_dynamodb = __toESM(
|
|
79362
|
+
var import_client_dynamodb = __toESM(require_dist_cjs80(), 1);
|
|
79363
|
+
var import_util_dynamodb = __toESM(require_dist_cjs81(), 1);
|
|
79148
79364
|
function toId(id) {
|
|
79149
79365
|
return { id: { S: id } };
|
|
79150
79366
|
}
|
|
@@ -83552,7 +83768,8 @@ var zTileSetConfig = z.object({
|
|
|
83552
83768
|
minZoom: zZoom.optional(),
|
|
83553
83769
|
maxZoom: zZoom.optional(),
|
|
83554
83770
|
format: z.string().optional(),
|
|
83555
|
-
outputs: z.array(ConfigTileSetOutputParser).optional()
|
|
83771
|
+
outputs: z.array(ConfigTileSetOutputParser).optional(),
|
|
83772
|
+
aliases: z.array(z.string()).optional()
|
|
83556
83773
|
});
|
|
83557
83774
|
|
|
83558
83775
|
// ../../node_modules/yocto-queue/index.js
|
|
@@ -84219,6 +84436,7 @@ var ConfigJson = class _ConfigJson {
|
|
|
84219
84436
|
} else {
|
|
84220
84437
|
tileSet.format = ts.type === TileSetType.Vector ? "pbf" : "webp";
|
|
84221
84438
|
}
|
|
84439
|
+
tileSet.aliases = ts.aliases;
|
|
84222
84440
|
return tileSet;
|
|
84223
84441
|
}
|
|
84224
84442
|
loadImagery(url, name, title) {
|
|
@@ -84229,11 +84447,15 @@ var ConfigJson = class _ConfigJson {
|
|
|
84229
84447
|
}
|
|
84230
84448
|
return existing;
|
|
84231
84449
|
}
|
|
84450
|
+
/** Exposed for testing */
|
|
84451
|
+
initImageryFromTiffUrl(url) {
|
|
84452
|
+
return initImageryFromTiffUrl(url, this.Q, this.imageryConfigCache, this.logger);
|
|
84453
|
+
}
|
|
84232
84454
|
async _loadImagery(url, name, title) {
|
|
84233
84455
|
const imageId = guessIdFromUri(url.href) ?? sha256base58(url.href);
|
|
84234
84456
|
const id = ConfigId.prefix(ConfigPrefix.Imagery, imageId);
|
|
84235
84457
|
this.logger.trace({ url: url.href, imageId: id }, "Imagery:Fetch");
|
|
84236
|
-
const img = await initImageryFromTiffUrl(url
|
|
84458
|
+
const img = await this.initImageryFromTiffUrl(url);
|
|
84237
84459
|
img.id = id;
|
|
84238
84460
|
img.name = name;
|
|
84239
84461
|
img.title = title;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basemaps/cli-raster",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@basemaps/config": "^8.
|
|
44
|
-
"@basemaps/config-loader": "^8.
|
|
43
|
+
"@basemaps/config": "^8.6.0",
|
|
44
|
+
"@basemaps/config-loader": "^8.6.0",
|
|
45
45
|
"@basemaps/geo": "^8.3.0",
|
|
46
|
-
"@basemaps/shared": "^8.
|
|
46
|
+
"@basemaps/shared": "^8.6.0",
|
|
47
47
|
"@linzjs/geojson": "^8.0.0",
|
|
48
48
|
"@linzjs/metrics": "^8.0.0",
|
|
49
49
|
"cmd-ts": "^0.12.1",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"build/",
|
|
58
58
|
"dist/"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "bd34894f26d1c7827503e0cb9d48d0773ecd6775"
|
|
61
61
|
}
|