@shapediver/sdk.geometry-api-sdk-v2
Advanced tools
Comparing version 1.0.25 to 1.0.26
@@ -18,2 +18,3 @@ "use strict"; | ||
const apiAssetTextureUri = /.+\/session\/.+\/texture\/.+/; | ||
const cdnAssetUri = /.+\/cdn-asset-(exports|outputs|textures)\/.+/; | ||
const cdnAssetExportUri = /.+\/cdn-asset-exports\/.+/; | ||
@@ -136,3 +137,6 @@ const cdnAssetOutputUri = /.+\/cdn-asset-outputs\/.+/; | ||
var _a; | ||
const [header, data] = yield this.api.get(targetUrl, { responseType: sdk_geometry_api_sdk_core_1.ShapeDiverSdkApiResponseType.DATA }); | ||
const [header, data] = yield this.api.get(targetUrl, { | ||
responseType: sdk_geometry_api_sdk_core_1.ShapeDiverSdkApiResponseType.DATA, | ||
disableAuthorization: cdnAssetUri.test(url), // disable for CDN URLs | ||
}); | ||
const contentType = (_a = header["Content-Type"]) !== null && _a !== void 0 ? _a : header["content-type"]; | ||
@@ -170,3 +174,6 @@ return [data, contentType]; | ||
var _a; | ||
const [header, data] = yield this.api.get(url, { responseType: sdk_geometry_api_sdk_core_1.ShapeDiverSdkApiResponseType.DATA }); | ||
const [header, data] = yield this.api.get(url, { | ||
responseType: sdk_geometry_api_sdk_core_1.ShapeDiverSdkApiResponseType.DATA, | ||
disableAuthorization: cdnAssetUri.test(url), // disable for CDN URLs | ||
}); | ||
const contentType = (_a = header["Content-Type"]) !== null && _a !== void 0 ? _a : header["content-type"]; | ||
@@ -173,0 +180,0 @@ return [data, contentType, type]; |
{ | ||
"name": "@shapediver/sdk.geometry-api-sdk-v2", | ||
"version": "1.0.25", | ||
"version": "1.0.26", | ||
"description": "SDK to communicate with the Geometry API version 2", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123064
1750