@alicloud/sandbox-escape 1.1.4 → 1.1.7
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.
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = getWindowByDom;
|
|
7
7
|
function getWindowByDom() {
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
var _window$document$getE;
|
|
10
|
+
return ((_window$document$getE = window.document.getElementsByTagName('html')[0]) === null || _window$document$getE === void 0 ? void 0 : _window$document$getE.ownerDocument.defaultView) || null;
|
|
10
11
|
} catch (err) {
|
|
11
12
|
return null;
|
|
12
13
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export default function getWindowByDom() {
|
|
2
2
|
try {
|
|
3
|
-
|
|
3
|
+
var _window$document$getE;
|
|
4
|
+
return ((_window$document$getE = window.document.getElementsByTagName('html')[0]) === null || _window$document$getE === void 0 ? void 0 : _window$document$getE.ownerDocument.defaultView) || null;
|
|
4
5
|
} catch (err) {
|
|
5
6
|
return null;
|
|
6
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/sandbox-escape",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "沙箱逃逸",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "build/cjs/index.js",
|
|
@@ -26,9 +26,10 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@alicloud/console-toolkit-cli": "^1.2.30",
|
|
28
28
|
"@alicloud/console-toolkit-preset-component": "^1.2.61",
|
|
29
|
+
"@alicloud/ts-config": "^1.1.1",
|
|
29
30
|
"@types/react": "^17.0.48",
|
|
30
31
|
"react": "^17.0.2",
|
|
31
|
-
"typescript": "^4.
|
|
32
|
+
"typescript": "^4.9.4"
|
|
32
33
|
},
|
|
33
34
|
"scripts": {
|
|
34
35
|
"start": "breezr start-storybook",
|
|
@@ -41,5 +42,5 @@
|
|
|
41
42
|
"clean": "rm -rf build",
|
|
42
43
|
"prepublishOnly": "yarn clean && yarn build"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "0fc09d85405d64458a1ad83ae092949ec3edd817"
|
|
45
46
|
}
|