@atlaskit/media-store
Advanced tools
Comparing version 11.0.5 to 11.0.6
# @atlaskit/media-store | ||
## 11.0.6 | ||
- [patch] [5faa58fcfd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5faa58fcfd): | ||
- [MS-1787] Remove WEBP support check checkWebpSupport() from mediaStore | ||
## 11.0.5 | ||
@@ -4,0 +9,0 @@ - Updated dependencies [0ff405bd0f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0ff405bd0f): |
{ | ||
"name": "@atlaskit/media-store", | ||
"version": "11.0.5", | ||
"version": "11.0.6", | ||
"sideEffects": false | ||
} |
import * as tslib_1 from "tslib"; | ||
import { request, createUrl, mapResponseToJson, mapResponseToVoid, mapResponseToBlob, } from './utils/request'; | ||
import { getArtifactUrl } from './models/artifacts'; | ||
import { checkWebpSupport } from './utils/checkWebpSupport'; | ||
var defaultImageOptions = { | ||
@@ -82,17 +81,13 @@ 'max-age': 3600, | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, checkWebpSupport()]; | ||
case 1: | ||
isWebpSupported = _a.sent(); | ||
if (isWebpSupported) { | ||
headers = { | ||
accept: 'image/webp,image/*,*/*;q=0.8', | ||
}; | ||
} | ||
return [2 /*return*/, this.request("/file/" + id + "/image", { | ||
headers: headers, | ||
params: extendImageParams(params), | ||
authContext: { collectionName: params && params.collection }, | ||
}, controller).then(mapResponseToBlob)]; | ||
isWebpSupported = false; | ||
if (isWebpSupported) { | ||
headers = { | ||
accept: 'image/webp,image/*,*/*;q=0.8', | ||
}; | ||
} | ||
return [2 /*return*/, this.request("/file/" + id + "/image", { | ||
headers: headers, | ||
params: extendImageParams(params), | ||
authContext: { collectionName: params && params.collection }, | ||
}, controller).then(mapResponseToBlob)]; | ||
}); | ||
@@ -99,0 +94,0 @@ }); }; |
{ | ||
"name": "@atlaskit/media-store", | ||
"version": "11.0.5", | ||
"version": "11.0.6", | ||
"description": "Media Store API Web Client Library", | ||
@@ -37,2 +37,2 @@ "license": "Apache-2.0", | ||
} | ||
} | ||
} |
{ | ||
"name": "@atlaskit/media-store", | ||
"version": "11.0.5", | ||
"version": "11.0.6", | ||
"sideEffects": false | ||
} |
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
79946
1179