Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atlaskit/media-store

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/media-store - npm Package Compare versions

Comparing version 11.0.5 to 11.0.6

5

CHANGELOG.md
# @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):

2

dist/package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc