@atlaskit/link-client-extension 5.0.4 → 5.0.5
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
CHANGED
|
@@ -27,7 +27,6 @@ var useDatasourceClientExtension = exports.useDatasourceClientExtension = functi
|
|
|
27
27
|
var resolverUrl = (0, _useResolverUrl.useResolverUrl)(client);
|
|
28
28
|
var cachedRequest = /*#__PURE__*/function () {
|
|
29
29
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(cacheKeyId, data, url, lruMap, force) {
|
|
30
|
-
var _Intl;
|
|
31
30
|
var cacheKeyData, cacheKey, responsePromise, headers;
|
|
32
31
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
33
32
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -56,7 +55,7 @@ var useDatasourceClientExtension = exports.useDatasourceClientExtension = functi
|
|
|
56
55
|
* This header exists to enable the backend to process relative time, eg: "today", with respect to user timezone.
|
|
57
56
|
* eg: used in "confluence-object-provider" to process confluence SLLV requests to filter data for relative time.
|
|
58
57
|
*/
|
|
59
|
-
'origin-timezone':
|
|
58
|
+
'origin-timezone': Intl === null || Intl === void 0 ? void 0 : Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
60
59
|
};
|
|
61
60
|
_context.prev = 7;
|
|
62
61
|
responsePromise = (0, _linkingCommon.request)('post', url, data, headers, [200, 201, 202, 203, 204]);
|
|
@@ -16,7 +16,6 @@ export const useDatasourceClientExtension = () => {
|
|
|
16
16
|
} = useSmartLinkContext();
|
|
17
17
|
const resolverUrl = useResolverUrl(client);
|
|
18
18
|
const cachedRequest = async (cacheKeyId, data, url, lruMap, force) => {
|
|
19
|
-
var _Intl;
|
|
20
19
|
const cacheKeyData = {
|
|
21
20
|
...data,
|
|
22
21
|
// Sort fields to use cached version of response regardless of the order
|
|
@@ -43,7 +42,7 @@ export const useDatasourceClientExtension = () => {
|
|
|
43
42
|
* This header exists to enable the backend to process relative time, eg: "today", with respect to user timezone.
|
|
44
43
|
* eg: used in "confluence-object-provider" to process confluence SLLV requests to filter data for relative time.
|
|
45
44
|
*/
|
|
46
|
-
'origin-timezone':
|
|
45
|
+
'origin-timezone': Intl === null || Intl === void 0 ? void 0 : Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
47
46
|
};
|
|
48
47
|
try {
|
|
49
48
|
responsePromise = request('post', url, data, headers, [200, 201, 202, 203, 204]);
|
|
@@ -20,7 +20,6 @@ export var useDatasourceClientExtension = function useDatasourceClientExtension(
|
|
|
20
20
|
var resolverUrl = useResolverUrl(client);
|
|
21
21
|
var cachedRequest = /*#__PURE__*/function () {
|
|
22
22
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(cacheKeyId, data, url, lruMap, force) {
|
|
23
|
-
var _Intl;
|
|
24
23
|
var cacheKeyData, cacheKey, responsePromise, headers;
|
|
25
24
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
26
25
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -49,7 +48,7 @@ export var useDatasourceClientExtension = function useDatasourceClientExtension(
|
|
|
49
48
|
* This header exists to enable the backend to process relative time, eg: "today", with respect to user timezone.
|
|
50
49
|
* eg: used in "confluence-object-provider" to process confluence SLLV requests to filter data for relative time.
|
|
51
50
|
*/
|
|
52
|
-
'origin-timezone':
|
|
51
|
+
'origin-timezone': Intl === null || Intl === void 0 ? void 0 : Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
53
52
|
};
|
|
54
53
|
_context.prev = 7;
|
|
55
54
|
responsePromise = request('post', url, data, headers, [200, 201, 202, 203, 204]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-client-extension",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
"description": "Extension methods for linking platform client",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
"team": "Linking Platform",
|
|
12
12
|
"website": {
|
|
13
13
|
"name": "LinkClientExtension"
|
|
14
|
-
}
|
|
15
|
-
"runReact18": true
|
|
14
|
+
}
|
|
16
15
|
},
|
|
17
16
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
18
17
|
"main": "dist/cjs/index.js",
|
|
@@ -33,19 +32,19 @@
|
|
|
33
32
|
".": "./src/index.ts"
|
|
34
33
|
},
|
|
35
34
|
"dependencies": {
|
|
36
|
-
"@atlaskit/json-ld-types": "^1.
|
|
35
|
+
"@atlaskit/json-ld-types": "^1.4.0",
|
|
37
36
|
"@atlaskit/linking-common": "^9.1.0",
|
|
38
|
-
"@atlaskit/linking-types": "^
|
|
37
|
+
"@atlaskit/linking-types": "^14.0.0",
|
|
39
38
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
39
|
"@babel/runtime": "^7.0.0",
|
|
41
40
|
"lru_map": "^0.4.1"
|
|
42
41
|
},
|
|
43
42
|
"peerDependencies": {
|
|
44
|
-
"@atlaskit/link-provider": "^3.
|
|
43
|
+
"@atlaskit/link-provider": "^3.4.0",
|
|
45
44
|
"react": "^18.2.0"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
|
-
"@atlaskit/link-test-helpers": "^8.
|
|
47
|
+
"@atlaskit/link-test-helpers": "^8.2.0",
|
|
49
48
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
50
49
|
"@testing-library/react": "^13.4.0",
|
|
51
50
|
"@testing-library/react-hooks": "^8.0.1",
|