@atlaskit/media-client 39.0.0 → 39.0.2
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/CHANGELOG.md +16 -0
- package/dist/cjs/client/file-fetcher/index.js +18 -32
- package/dist/cjs/client/media-store/MediaStore.js +1 -2
- package/dist/es2019/client/file-fetcher/index.js +1 -2
- package/dist/es2019/client/media-store/MediaStore.js +1 -2
- package/dist/esm/client/file-fetcher/index.js +18 -32
- package/dist/esm/client/media-store/MediaStore.js +1 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/media-client
|
|
2
2
|
|
|
3
|
+
## 39.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 39.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ae39a248bd118`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ae39a248bd118) -
|
|
14
|
+
FFCLEANUP-147994 clean up fg relating to fallback media name fetcher
|
|
15
|
+
platform_editor_media_name_fallback, platform_editor_media_file_rename_on_fallback,
|
|
16
|
+
platform_editor_media_file_rename_on_fallback, platform_editor_media_name_fallback_viewer_card
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 39.0.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -32,7 +32,6 @@ var _mediaTypeUtils = require("@atlaskit/media-common/mediaTypeUtils");
|
|
|
32
32
|
var _authToOwner = require("@atlaskit/media-core/auth-to-owner");
|
|
33
33
|
var _mediaStore = require("@atlaskit/media-state/media-store");
|
|
34
34
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
35
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
36
35
|
var _constants = require("../../constants");
|
|
37
36
|
var _fileStreamsCache = require("../../file-streams-cache");
|
|
38
37
|
var _globalMediaEventEmitter = require("../../globalMediaEventEmitter");
|
|
@@ -770,28 +769,15 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
770
769
|
key: "downloadBinary",
|
|
771
770
|
value: function () {
|
|
772
771
|
var _downloadBinary = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee1(id, name, collectionName, traceContext) {
|
|
773
|
-
var downloadName, url
|
|
772
|
+
var downloadName, url;
|
|
774
773
|
return _regenerator.default.wrap(function (_context1) {
|
|
775
774
|
while (1) switch (_context1.prev = _context1.next) {
|
|
776
775
|
case 0:
|
|
777
776
|
downloadName = name !== null && name !== void 0 ? name : 'download';
|
|
778
|
-
if (!(0, _expValEquals.expValEquals)('platform_editor_media_download_fallback_name', 'isEnabled', true)) {
|
|
779
|
-
_context1.next = 2;
|
|
780
|
-
break;
|
|
781
|
-
}
|
|
782
777
|
_context1.next = 1;
|
|
783
778
|
return this.mediaApi.getFileBinaryURL(id, collectionName, undefined, name);
|
|
784
779
|
case 1:
|
|
785
|
-
|
|
786
|
-
_context1.next = 4;
|
|
787
|
-
break;
|
|
788
|
-
case 2:
|
|
789
|
-
_context1.next = 3;
|
|
790
|
-
return this.mediaApi.getFileBinaryURL(id, collectionName);
|
|
791
|
-
case 3:
|
|
792
|
-
_t5 = _context1.sent;
|
|
793
|
-
case 4:
|
|
794
|
-
url = _t5;
|
|
780
|
+
url = _context1.sent;
|
|
795
781
|
(0, _downloadUrl.downloadUrl)(url, {
|
|
796
782
|
name: downloadName
|
|
797
783
|
});
|
|
@@ -801,11 +787,11 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
801
787
|
viewingLevel: 'download'
|
|
802
788
|
});
|
|
803
789
|
// Test the download after initiated the Browser process to catch any potential errors.
|
|
804
|
-
_context1.next =
|
|
790
|
+
_context1.next = 2;
|
|
805
791
|
return this.mediaApi.testUrl(url, {
|
|
806
792
|
traceContext: traceContext
|
|
807
793
|
});
|
|
808
|
-
case
|
|
794
|
+
case 2:
|
|
809
795
|
case "end":
|
|
810
796
|
return _context1.stop();
|
|
811
797
|
}
|
|
@@ -863,7 +849,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
863
849
|
key: "copyFileWithToken",
|
|
864
850
|
value: function () {
|
|
865
851
|
var _copyFileWithToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(source, destination, traceContext) {
|
|
866
|
-
var authProvider, sourceCollection, id, destinationAuthProvider, destinationCollectionName, replaceFileId, occurrenceKey, mediaStore, owner, body, params, _yield$mediaStore$cop, data,
|
|
852
|
+
var authProvider, sourceCollection, id, destinationAuthProvider, destinationCollectionName, replaceFileId, occurrenceKey, mediaStore, owner, body, params, _yield$mediaStore$cop, data, _t5;
|
|
867
853
|
return _regenerator.default.wrap(function (_context11) {
|
|
868
854
|
while (1) switch (_context11.prev = _context11.next) {
|
|
869
855
|
case 0:
|
|
@@ -872,13 +858,13 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
872
858
|
mediaStore = destination.mediaStore || new _MediaStore.MediaStore({
|
|
873
859
|
authProvider: destinationAuthProvider
|
|
874
860
|
});
|
|
875
|
-
|
|
861
|
+
_t5 = _authToOwner.authToOwner;
|
|
876
862
|
_context11.next = 1;
|
|
877
863
|
return authProvider({
|
|
878
864
|
collectionName: sourceCollection
|
|
879
865
|
});
|
|
880
866
|
case 1:
|
|
881
|
-
owner =
|
|
867
|
+
owner = _t5(_context11.sent);
|
|
882
868
|
body = {
|
|
883
869
|
sourceFile: {
|
|
884
870
|
id: id,
|
|
@@ -968,8 +954,8 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
968
954
|
key,
|
|
969
955
|
errorFileState,
|
|
970
956
|
_args13 = arguments,
|
|
971
|
-
|
|
972
|
-
|
|
957
|
+
_t6,
|
|
958
|
+
_t7;
|
|
973
959
|
return _regenerator.default.wrap(function (_context13) {
|
|
974
960
|
while (1) switch (_context13.prev = _context13.next) {
|
|
975
961
|
case 0:
|
|
@@ -1011,20 +997,20 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
1011
997
|
previewOverride = !(0, _isErrorFileState.isErrorFileState)(copiedFileState) && !!preview ? {
|
|
1012
998
|
preview: preview
|
|
1013
999
|
} : {};
|
|
1014
|
-
|
|
1000
|
+
_t6 = !(0, _isFinalFileState.isFinalFileState)(copiedFileState) &&
|
|
1015
1001
|
// mimeType should always be returned by "copyFileWithToken"
|
|
1016
1002
|
// but in case it's not, we don't want to penalize "copyFile"
|
|
1017
1003
|
copiedMimeType;
|
|
1018
|
-
if (!
|
|
1004
|
+
if (!_t6) {
|
|
1019
1005
|
_context13.next = 7;
|
|
1020
1006
|
break;
|
|
1021
1007
|
}
|
|
1022
1008
|
_context13.next = 6;
|
|
1023
1009
|
return (0, _shouldFetchRemoteFileStates.shouldFetchRemoteFileStates)(mediaType, copiedMimeType, preview);
|
|
1024
1010
|
case 6:
|
|
1025
|
-
|
|
1011
|
+
_t6 = _context13.sent;
|
|
1026
1012
|
case 7:
|
|
1027
|
-
if (!
|
|
1013
|
+
if (!_t6) {
|
|
1028
1014
|
_context13.next = 8;
|
|
1029
1015
|
break;
|
|
1030
1016
|
}
|
|
@@ -1061,7 +1047,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
1061
1047
|
return _context13.abrupt("return", copiedFile);
|
|
1062
1048
|
case 10:
|
|
1063
1049
|
_context13.prev = 10;
|
|
1064
|
-
|
|
1050
|
+
_t7 = _context13["catch"](1);
|
|
1065
1051
|
if (processingSubscription) {
|
|
1066
1052
|
processingSubscription.unsubscribe();
|
|
1067
1053
|
}
|
|
@@ -1069,16 +1055,16 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
1069
1055
|
_fileCache = cache.get(replaceFileId);
|
|
1070
1056
|
replaceFileState = this.store.getState().files[replaceFileId];
|
|
1071
1057
|
if (_fileCache) {
|
|
1072
|
-
_fileCache.error(
|
|
1058
|
+
_fileCache.error(_t7);
|
|
1073
1059
|
} else {
|
|
1074
1060
|
// Create a new subject with the error state for new subscriptions
|
|
1075
|
-
cache.set(id, (0, _createMediaSubject.createMediaSubject)(
|
|
1061
|
+
cache.set(id, (0, _createMediaSubject.createMediaSubject)(_t7));
|
|
1076
1062
|
}
|
|
1077
1063
|
key = replaceFileState ? replaceFileId : id;
|
|
1078
|
-
errorFileState = this.getErrorFileState(
|
|
1064
|
+
errorFileState = this.getErrorFileState(_t7, id, occurrenceKey);
|
|
1079
1065
|
this.setFileState(key, errorFileState);
|
|
1080
1066
|
}
|
|
1081
|
-
throw
|
|
1067
|
+
throw _t7;
|
|
1082
1068
|
case 11:
|
|
1083
1069
|
case "end":
|
|
1084
1070
|
return _context13.stop();
|
|
@@ -31,7 +31,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
31
31
|
var _chunkHashAlgorithm = require("@atlaskit/media-core/chunk-hash-algorithm");
|
|
32
32
|
var _isClientBasedAuth = require("@atlaskit/media-core/is-client-based-auth");
|
|
33
33
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
34
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
35
34
|
var _constants = require("../../constants");
|
|
36
35
|
var _artifacts = require("../../models/artifacts");
|
|
37
36
|
var _isCDNEnabled = require("../../utils/isCDNEnabled");
|
|
@@ -553,7 +552,7 @@ var MediaStore = exports.MediaStore = /*#__PURE__*/function () {
|
|
|
553
552
|
dl: true,
|
|
554
553
|
collection: collectionName,
|
|
555
554
|
'max-age': maxAge
|
|
556
|
-
}, name
|
|
555
|
+
}, name ? {
|
|
557
556
|
name: name
|
|
558
557
|
} : {}),
|
|
559
558
|
auth: auth
|
|
@@ -12,7 +12,6 @@ import { getMediaTypeFromMimeType } from '@atlaskit/media-common/mediaTypeUtils'
|
|
|
12
12
|
import { authToOwner } from '@atlaskit/media-core/auth-to-owner';
|
|
13
13
|
import { mediaStore } from '@atlaskit/media-state/media-store';
|
|
14
14
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
15
|
import { RECENTS_COLLECTION } from '../../constants';
|
|
17
16
|
import { getFileStreamsCache } from '../../file-streams-cache';
|
|
18
17
|
import { globalMediaEventEmitter } from '../../globalMediaEventEmitter';
|
|
@@ -516,7 +515,7 @@ export class FileFetcherImpl {
|
|
|
516
515
|
}
|
|
517
516
|
async downloadBinary(id, name, collectionName, traceContext) {
|
|
518
517
|
const downloadName = name !== null && name !== void 0 ? name : 'download';
|
|
519
|
-
const url =
|
|
518
|
+
const url = await this.mediaApi.getFileBinaryURL(id, collectionName, undefined, name);
|
|
520
519
|
downloadUrl(url, {
|
|
521
520
|
name: downloadName
|
|
522
521
|
});
|
|
@@ -4,7 +4,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import { ChunkHashAlgorithm } from '@atlaskit/media-core/chunk-hash-algorithm';
|
|
5
5
|
import { isClientBasedAuth } from '@atlaskit/media-core/is-client-based-auth';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
import { FILE_CACHE_MAX_AGE } from '../../constants';
|
|
9
8
|
import { getArtifactUrl } from '../../models/artifacts';
|
|
10
9
|
import { isCDNEnabled } from '../../utils/isCDNEnabled';
|
|
@@ -344,7 +343,7 @@ export class MediaStore {
|
|
|
344
343
|
dl: true,
|
|
345
344
|
collection: collectionName,
|
|
346
345
|
'max-age': maxAge,
|
|
347
|
-
...(name
|
|
346
|
+
...(name ? {
|
|
348
347
|
name
|
|
349
348
|
} : {})
|
|
350
349
|
},
|
|
@@ -18,7 +18,6 @@ import { getMediaTypeFromMimeType } from '@atlaskit/media-common/mediaTypeUtils'
|
|
|
18
18
|
import { authToOwner } from '@atlaskit/media-core/auth-to-owner';
|
|
19
19
|
import { mediaStore } from '@atlaskit/media-state/media-store';
|
|
20
20
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
21
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
21
|
import { RECENTS_COLLECTION } from '../../constants';
|
|
23
22
|
import { getFileStreamsCache } from '../../file-streams-cache';
|
|
24
23
|
import { globalMediaEventEmitter } from '../../globalMediaEventEmitter';
|
|
@@ -756,28 +755,15 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
756
755
|
key: "downloadBinary",
|
|
757
756
|
value: function () {
|
|
758
757
|
var _downloadBinary = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee1(id, name, collectionName, traceContext) {
|
|
759
|
-
var downloadName, url
|
|
758
|
+
var downloadName, url;
|
|
760
759
|
return _regeneratorRuntime.wrap(function (_context1) {
|
|
761
760
|
while (1) switch (_context1.prev = _context1.next) {
|
|
762
761
|
case 0:
|
|
763
762
|
downloadName = name !== null && name !== void 0 ? name : 'download';
|
|
764
|
-
if (!expValEquals('platform_editor_media_download_fallback_name', 'isEnabled', true)) {
|
|
765
|
-
_context1.next = 2;
|
|
766
|
-
break;
|
|
767
|
-
}
|
|
768
763
|
_context1.next = 1;
|
|
769
764
|
return this.mediaApi.getFileBinaryURL(id, collectionName, undefined, name);
|
|
770
765
|
case 1:
|
|
771
|
-
|
|
772
|
-
_context1.next = 4;
|
|
773
|
-
break;
|
|
774
|
-
case 2:
|
|
775
|
-
_context1.next = 3;
|
|
776
|
-
return this.mediaApi.getFileBinaryURL(id, collectionName);
|
|
777
|
-
case 3:
|
|
778
|
-
_t5 = _context1.sent;
|
|
779
|
-
case 4:
|
|
780
|
-
url = _t5;
|
|
766
|
+
url = _context1.sent;
|
|
781
767
|
downloadUrl(url, {
|
|
782
768
|
name: downloadName
|
|
783
769
|
});
|
|
@@ -787,11 +773,11 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
787
773
|
viewingLevel: 'download'
|
|
788
774
|
});
|
|
789
775
|
// Test the download after initiated the Browser process to catch any potential errors.
|
|
790
|
-
_context1.next =
|
|
776
|
+
_context1.next = 2;
|
|
791
777
|
return this.mediaApi.testUrl(url, {
|
|
792
778
|
traceContext: traceContext
|
|
793
779
|
});
|
|
794
|
-
case
|
|
780
|
+
case 2:
|
|
795
781
|
case "end":
|
|
796
782
|
return _context1.stop();
|
|
797
783
|
}
|
|
@@ -849,7 +835,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
849
835
|
key: "copyFileWithToken",
|
|
850
836
|
value: function () {
|
|
851
837
|
var _copyFileWithToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(source, destination, traceContext) {
|
|
852
|
-
var authProvider, sourceCollection, id, destinationAuthProvider, destinationCollectionName, replaceFileId, occurrenceKey, mediaStore, owner, body, params, _yield$mediaStore$cop, data,
|
|
838
|
+
var authProvider, sourceCollection, id, destinationAuthProvider, destinationCollectionName, replaceFileId, occurrenceKey, mediaStore, owner, body, params, _yield$mediaStore$cop, data, _t5;
|
|
853
839
|
return _regeneratorRuntime.wrap(function (_context11) {
|
|
854
840
|
while (1) switch (_context11.prev = _context11.next) {
|
|
855
841
|
case 0:
|
|
@@ -858,13 +844,13 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
858
844
|
mediaStore = destination.mediaStore || new MediaApi({
|
|
859
845
|
authProvider: destinationAuthProvider
|
|
860
846
|
});
|
|
861
|
-
|
|
847
|
+
_t5 = authToOwner;
|
|
862
848
|
_context11.next = 1;
|
|
863
849
|
return authProvider({
|
|
864
850
|
collectionName: sourceCollection
|
|
865
851
|
});
|
|
866
852
|
case 1:
|
|
867
|
-
owner =
|
|
853
|
+
owner = _t5(_context11.sent);
|
|
868
854
|
body = {
|
|
869
855
|
sourceFile: {
|
|
870
856
|
id: id,
|
|
@@ -954,8 +940,8 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
954
940
|
key,
|
|
955
941
|
errorFileState,
|
|
956
942
|
_args13 = arguments,
|
|
957
|
-
|
|
958
|
-
|
|
943
|
+
_t6,
|
|
944
|
+
_t7;
|
|
959
945
|
return _regeneratorRuntime.wrap(function (_context13) {
|
|
960
946
|
while (1) switch (_context13.prev = _context13.next) {
|
|
961
947
|
case 0:
|
|
@@ -997,20 +983,20 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
997
983
|
previewOverride = !isErrorFileState(copiedFileState) && !!preview ? {
|
|
998
984
|
preview: preview
|
|
999
985
|
} : {};
|
|
1000
|
-
|
|
986
|
+
_t6 = !isFinalFileState(copiedFileState) &&
|
|
1001
987
|
// mimeType should always be returned by "copyFileWithToken"
|
|
1002
988
|
// but in case it's not, we don't want to penalize "copyFile"
|
|
1003
989
|
copiedMimeType;
|
|
1004
|
-
if (!
|
|
990
|
+
if (!_t6) {
|
|
1005
991
|
_context13.next = 7;
|
|
1006
992
|
break;
|
|
1007
993
|
}
|
|
1008
994
|
_context13.next = 6;
|
|
1009
995
|
return shouldFetchRemoteFileStates(mediaType, copiedMimeType, preview);
|
|
1010
996
|
case 6:
|
|
1011
|
-
|
|
997
|
+
_t6 = _context13.sent;
|
|
1012
998
|
case 7:
|
|
1013
|
-
if (!
|
|
999
|
+
if (!_t6) {
|
|
1014
1000
|
_context13.next = 8;
|
|
1015
1001
|
break;
|
|
1016
1002
|
}
|
|
@@ -1047,7 +1033,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
1047
1033
|
return _context13.abrupt("return", copiedFile);
|
|
1048
1034
|
case 10:
|
|
1049
1035
|
_context13.prev = 10;
|
|
1050
|
-
|
|
1036
|
+
_t7 = _context13["catch"](1);
|
|
1051
1037
|
if (processingSubscription) {
|
|
1052
1038
|
processingSubscription.unsubscribe();
|
|
1053
1039
|
}
|
|
@@ -1055,16 +1041,16 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
1055
1041
|
_fileCache = cache.get(replaceFileId);
|
|
1056
1042
|
replaceFileState = this.store.getState().files[replaceFileId];
|
|
1057
1043
|
if (_fileCache) {
|
|
1058
|
-
_fileCache.error(
|
|
1044
|
+
_fileCache.error(_t7);
|
|
1059
1045
|
} else {
|
|
1060
1046
|
// Create a new subject with the error state for new subscriptions
|
|
1061
|
-
cache.set(id, createMediaSubject(
|
|
1047
|
+
cache.set(id, createMediaSubject(_t7));
|
|
1062
1048
|
}
|
|
1063
1049
|
key = replaceFileState ? replaceFileId : id;
|
|
1064
|
-
errorFileState = this.getErrorFileState(
|
|
1050
|
+
errorFileState = this.getErrorFileState(_t7, id, occurrenceKey);
|
|
1065
1051
|
this.setFileState(key, errorFileState);
|
|
1066
1052
|
}
|
|
1067
|
-
throw
|
|
1053
|
+
throw _t7;
|
|
1068
1054
|
case 11:
|
|
1069
1055
|
case "end":
|
|
1070
1056
|
return _context13.stop();
|
|
@@ -10,7 +10,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
import { ChunkHashAlgorithm } from '@atlaskit/media-core/chunk-hash-algorithm';
|
|
11
11
|
import { isClientBasedAuth } from '@atlaskit/media-core/is-client-based-auth';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
import { FILE_CACHE_MAX_AGE } from '../../constants';
|
|
15
14
|
import { getArtifactUrl } from '../../models/artifacts';
|
|
16
15
|
import { isCDNEnabled } from '../../utils/isCDNEnabled';
|
|
@@ -527,7 +526,7 @@ export var MediaStore = /*#__PURE__*/function () {
|
|
|
527
526
|
dl: true,
|
|
528
527
|
collection: collectionName,
|
|
529
528
|
'max-age': maxAge
|
|
530
|
-
}, name
|
|
529
|
+
}, name ? {
|
|
531
530
|
name: name
|
|
532
531
|
} : {}),
|
|
533
532
|
auth: auth
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-client",
|
|
3
|
-
"version": "39.0.
|
|
3
|
+
"version": "39.0.2",
|
|
4
4
|
"description": "Media API Web Client Library",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@atlaskit/media-common": "^14.6.0",
|
|
27
27
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
28
28
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
29
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
29
|
+
"@atlaskit/tmp-editor-statsig": "^207.0.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0",
|
|
31
31
|
"dataloader": "^2.1.0",
|
|
32
32
|
"deep-equal": "^1.0.1",
|