@abtnode/ux 1.8.49 → 1.8.51
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/lib/hooks/url-evaluation.js +10 -1
- package/package.json +14 -14
|
@@ -19,7 +19,16 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
19
19
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
20
20
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
21
|
// 如果同一个页面中存在多个部分同时对同一个 url 检测 url 可访问性, 避免造成重复请求
|
|
22
|
-
const ping = (0, _memoize.default)(url =>
|
|
22
|
+
const ping = (0, _memoize.default)(url => {
|
|
23
|
+
const {
|
|
24
|
+
origin,
|
|
25
|
+
hostname
|
|
26
|
+
} = new URL(url);
|
|
27
|
+
if (hostname === window.location.hostname) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
return (0, _checkAccessibleBrowser.default)((0, _urlJoin.default)(origin, _constant.WELLKNOWN_PING_PREFIX));
|
|
31
|
+
});
|
|
23
32
|
|
|
24
33
|
// url <-> evaluation cache
|
|
25
34
|
const CACHE = {};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.
|
|
6
|
+
"version": "1.8.51",
|
|
7
7
|
"description": "UX components shared across abtnode packages",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@abtnode/auth": "1.8.
|
|
25
|
-
"@abtnode/constant": "1.8.
|
|
26
|
-
"@abtnode/util": "1.8.
|
|
27
|
-
"@arcblock/did-connect": "^2.4.
|
|
24
|
+
"@abtnode/auth": "1.8.51",
|
|
25
|
+
"@abtnode/constant": "1.8.51",
|
|
26
|
+
"@abtnode/util": "1.8.51",
|
|
27
|
+
"@arcblock/did-connect": "^2.4.62",
|
|
28
28
|
"@arcblock/did-motif": "^1.1.10",
|
|
29
|
-
"@arcblock/icons": "^2.4.
|
|
30
|
-
"@arcblock/terminal": "^2.4.
|
|
31
|
-
"@arcblock/ux": "^2.4.
|
|
32
|
-
"@blocklet/constant": "1.8.
|
|
33
|
-
"@blocklet/launcher-layout": "^1.9.
|
|
34
|
-
"@blocklet/list": "^0.10.
|
|
35
|
-
"@blocklet/meta": "1.8.
|
|
36
|
-
"@blocklet/ui-react": "^2.4.
|
|
29
|
+
"@arcblock/icons": "^2.4.62",
|
|
30
|
+
"@arcblock/terminal": "^2.4.62",
|
|
31
|
+
"@arcblock/ux": "^2.4.62",
|
|
32
|
+
"@blocklet/constant": "1.8.51",
|
|
33
|
+
"@blocklet/launcher-layout": "^1.9.29",
|
|
34
|
+
"@blocklet/list": "^0.10.47",
|
|
35
|
+
"@blocklet/meta": "1.8.51",
|
|
36
|
+
"@blocklet/ui-react": "^2.4.62",
|
|
37
37
|
"@emotion/react": "^11.10.4",
|
|
38
38
|
"@emotion/styled": "^11.10.4",
|
|
39
39
|
"@iconify/react": "^4.0.0",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"@babel/preset-react": "^7.18.6",
|
|
85
85
|
"babel-plugin-inline-react-svg": "^1.1.2"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "30e929da51edaa22104c4de4e3d1661d790c578c"
|
|
88
88
|
}
|