vxrn 0.1.83 → 0.1.85
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/.depcheckrc +1 -0
- package/LICENSE +22 -0
- package/dist/cjs/cli.native.js +53 -58
- package/dist/cjs/cli.native.js.map +1 -1
- package/dist/cjs/exports/build.js +4 -3
- package/dist/cjs/exports/build.js.map +1 -1
- package/dist/cjs/exports/build.native.js +59 -61
- package/dist/cjs/exports/build.native.js.map +1 -1
- package/dist/cjs/exports/createServer.native.js +53 -58
- package/dist/cjs/exports/createServer.native.js.map +1 -1
- package/dist/cjs/exports/dev.native.js +65 -79
- package/dist/cjs/exports/dev.native.js.map +1 -1
- package/dist/cjs/exports/serve.native.js +53 -58
- package/dist/cjs/exports/serve.native.js.map +1 -1
- package/dist/cjs/plugins/clientInjectPlugin.native.js +53 -58
- package/dist/cjs/plugins/clientInjectPlugin.native.js.map +1 -1
- package/dist/cjs/plugins/reactNativeCommonJsPlugin.js +1 -2
- package/dist/cjs/plugins/reactNativeCommonJsPlugin.js.map +1 -1
- package/dist/cjs/plugins/reactNativeCommonJsPlugin.native.js +60 -72
- package/dist/cjs/plugins/reactNativeCommonJsPlugin.native.js.map +1 -1
- package/dist/cjs/plugins/reactNativeHMRPlugin.js +1 -2
- package/dist/cjs/plugins/reactNativeHMRPlugin.js.map +1 -1
- package/dist/cjs/plugins/reactNativeHMRPlugin.native.js +59 -70
- package/dist/cjs/plugins/reactNativeHMRPlugin.native.js.map +1 -1
- package/dist/cjs/utils/findDepsToOptimize.js +167 -0
- package/dist/cjs/utils/findDepsToOptimize.js.map +6 -0
- package/dist/cjs/utils/findDepsToOptimize.native.js +564 -0
- package/dist/cjs/utils/findDepsToOptimize.native.js.map +6 -0
- package/dist/cjs/utils/getBaseViteConfig.js +12 -1
- package/dist/cjs/utils/getBaseViteConfig.js.map +1 -1
- package/dist/cjs/utils/getBaseViteConfig.native.js +12 -1
- package/dist/cjs/utils/getBaseViteConfig.native.js.map +2 -2
- package/dist/cjs/utils/getOptimizeDeps.native.js +6 -12
- package/dist/cjs/utils/getOptimizeDeps.native.js.map +1 -1
- package/dist/cjs/utils/getOptionsFilled.native.js +59 -70
- package/dist/cjs/utils/getOptionsFilled.native.js.map +1 -1
- package/dist/cjs/utils/getReactNativeBundle.native.js +53 -58
- package/dist/cjs/utils/getReactNativeBundle.native.js.map +1 -1
- package/dist/cjs/utils/getVitePath.native.js +53 -58
- package/dist/cjs/utils/getVitePath.native.js.map +1 -1
- package/dist/cjs/utils/getViteServerConfig.native.js +59 -70
- package/dist/cjs/utils/getViteServerConfig.native.js.map +1 -1
- package/dist/cjs/utils/patches.native.js +59 -70
- package/dist/cjs/utils/patches.native.js.map +1 -1
- package/dist/cjs/utils/readVXRNConfig.native.js +53 -58
- package/dist/cjs/utils/readVXRNConfig.native.js.map +1 -1
- package/dist/cjs/utils/swapPrebuiltReactModules.js +1 -2
- package/dist/cjs/utils/swapPrebuiltReactModules.js.map +1 -1
- package/dist/cjs/utils/swapPrebuiltReactModules.native.js +54 -60
- package/dist/cjs/utils/swapPrebuiltReactModules.native.js.map +1 -1
- package/dist/cjs/utils/uniq.native.js +6 -12
- package/dist/cjs/utils/uniq.native.js.map +1 -1
- package/dist/cjs/vendor/debugger-app/index.js +0 -22
- package/dist/cjs/vendor/debugger-app/index.js.map +2 -2
- package/dist/cjs/vendor/debugger-app/index.native.js +0 -22
- package/dist/cjs/vendor/debugger-app/index.native.js.map +3 -3
- package/dist/cjs/vendor/debugger-app/src/debuggerWorker.js +0 -46
- package/dist/cjs/vendor/debugger-app/src/debuggerWorker.js.map +3 -3
- package/dist/cjs/vendor/debugger-app/src/debuggerWorker.native.js +0 -54
- package/dist/cjs/vendor/debugger-app/src/debuggerWorker.native.js.map +3 -3
- package/dist/cjs/vendor/debugger-app/src/index.js +0 -104
- package/dist/cjs/vendor/debugger-app/src/index.js.map +3 -3
- package/dist/cjs/vendor/debugger-app/src/index.native.js +0 -132
- package/dist/cjs/vendor/debugger-app/src/index.native.js.map +3 -3
- package/dist/esm/cli.native.js +53 -58
- package/dist/esm/cli.native.js.map +1 -1
- package/dist/esm/exports/build.js +4 -3
- package/dist/esm/exports/build.js.map +1 -1
- package/dist/esm/exports/build.mjs +4 -3
- package/dist/esm/exports/build.native.js +59 -61
- package/dist/esm/exports/build.native.js.map +1 -1
- package/dist/esm/exports/createServer.native.js +53 -58
- package/dist/esm/exports/createServer.native.js.map +1 -1
- package/dist/esm/exports/dev.native.js +65 -79
- package/dist/esm/exports/dev.native.js.map +1 -1
- package/dist/esm/exports/serve.native.js +53 -58
- package/dist/esm/exports/serve.native.js.map +1 -1
- package/dist/esm/plugins/clientInjectPlugin.native.js +53 -58
- package/dist/esm/plugins/clientInjectPlugin.native.js.map +1 -1
- package/dist/esm/plugins/reactNativeCommonJsPlugin.js +1 -2
- package/dist/esm/plugins/reactNativeCommonJsPlugin.js.map +1 -1
- package/dist/esm/plugins/reactNativeCommonJsPlugin.native.js +60 -72
- package/dist/esm/plugins/reactNativeCommonJsPlugin.native.js.map +1 -1
- package/dist/esm/plugins/reactNativeHMRPlugin.js +1 -2
- package/dist/esm/plugins/reactNativeHMRPlugin.js.map +1 -1
- package/dist/esm/plugins/reactNativeHMRPlugin.native.js +59 -70
- package/dist/esm/plugins/reactNativeHMRPlugin.native.js.map +1 -1
- package/dist/esm/utils/findDepsToOptimize.js +145 -0
- package/dist/esm/utils/findDepsToOptimize.js.map +6 -0
- package/dist/esm/utils/findDepsToOptimize.mjs +130 -0
- package/dist/esm/utils/findDepsToOptimize.native.js +530 -0
- package/dist/esm/utils/findDepsToOptimize.native.js.map +6 -0
- package/dist/esm/utils/getBaseViteConfig.js +12 -1
- package/dist/esm/utils/getBaseViteConfig.js.map +1 -1
- package/dist/esm/utils/getBaseViteConfig.mjs +3 -1
- package/dist/esm/utils/getBaseViteConfig.native.js +12 -1
- package/dist/esm/utils/getBaseViteConfig.native.js.map +2 -2
- package/dist/esm/utils/getOptimizeDeps.native.js +6 -12
- package/dist/esm/utils/getOptimizeDeps.native.js.map +1 -1
- package/dist/esm/utils/getOptionsFilled.native.js +59 -70
- package/dist/esm/utils/getOptionsFilled.native.js.map +1 -1
- package/dist/esm/utils/getReactNativeBundle.native.js +53 -58
- package/dist/esm/utils/getReactNativeBundle.native.js.map +1 -1
- package/dist/esm/utils/getVitePath.native.js +53 -58
- package/dist/esm/utils/getVitePath.native.js.map +1 -1
- package/dist/esm/utils/getViteServerConfig.native.js +59 -70
- package/dist/esm/utils/getViteServerConfig.native.js.map +1 -1
- package/dist/esm/utils/patches.native.js +59 -70
- package/dist/esm/utils/patches.native.js.map +1 -1
- package/dist/esm/utils/readVXRNConfig.native.js +53 -58
- package/dist/esm/utils/readVXRNConfig.native.js.map +1 -1
- package/dist/esm/utils/swapPrebuiltReactModules.js +1 -2
- package/dist/esm/utils/swapPrebuiltReactModules.js.map +1 -1
- package/dist/esm/utils/swapPrebuiltReactModules.native.js +54 -60
- package/dist/esm/utils/swapPrebuiltReactModules.native.js.map +1 -1
- package/dist/esm/utils/uniq.native.js +6 -12
- package/dist/esm/utils/uniq.native.js.map +1 -1
- package/dist/esm/vendor/debugger-app/index.js +0 -5
- package/dist/esm/vendor/debugger-app/index.js.map +2 -2
- package/dist/esm/vendor/debugger-app/index.mjs +0 -3
- package/dist/esm/vendor/debugger-app/index.native.js +0 -5
- package/dist/esm/vendor/debugger-app/index.native.js.map +3 -3
- package/dist/esm/vendor/debugger-app/src/debuggerWorker.js +0 -46
- package/dist/esm/vendor/debugger-app/src/debuggerWorker.js.map +3 -3
- package/dist/esm/vendor/debugger-app/src/debuggerWorker.mjs +0 -47
- package/dist/esm/vendor/debugger-app/src/debuggerWorker.native.js +0 -54
- package/dist/esm/vendor/debugger-app/src/debuggerWorker.native.js.map +3 -3
- package/dist/esm/vendor/debugger-app/src/index.js +0 -86
- package/dist/esm/vendor/debugger-app/src/index.js.map +2 -2
- package/dist/esm/vendor/debugger-app/src/index.mjs +0 -125
- package/dist/esm/vendor/debugger-app/src/index.native.js +0 -115
- package/dist/esm/vendor/debugger-app/src/index.native.js.map +3 -3
- package/package.json +10 -26
- package/src/exports/build.ts +3 -2
- package/src/types.ts +2 -3
- package/src/utils/findDepsToOptimize.ts +293 -0
- package/src/utils/getBaseViteConfig.ts +12 -0
- package/src/vendor/debugger-app/index.js +2 -2
- package/src/vendor/debugger-app/src/debuggerWorker.js +77 -77
- package/src/vendor/debugger-app/src/index.js +199 -199
- package/src/vendor/debugger-app/webpack.config.cjs +70 -70
- package/types/types.d.ts +2 -3
- package/types/utils/findDepsToOptimize.d.ts +19 -0
- package/types/utils/getOptionsFilled.d.ts +1 -0
- package/src/vendor/debugger-app/index.d.ts +0 -2
|
@@ -32,8 +32,7 @@ function _ts_generator(thisArg, body) {
|
|
|
32
32
|
var f, y, t, g, _ = {
|
|
33
33
|
label: 0,
|
|
34
34
|
sent: function() {
|
|
35
|
-
if (t[0] & 1)
|
|
36
|
-
throw t[1];
|
|
35
|
+
if (t[0] & 1) throw t[1];
|
|
37
36
|
return t[1];
|
|
38
37
|
},
|
|
39
38
|
trys: [],
|
|
@@ -55,64 +54,60 @@ function _ts_generator(thisArg, body) {
|
|
|
55
54
|
};
|
|
56
55
|
}
|
|
57
56
|
function step(op) {
|
|
58
|
-
if (f)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
default:
|
|
86
|
-
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
87
|
-
_ = 0;
|
|
88
|
-
continue;
|
|
89
|
-
}
|
|
90
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
91
|
-
_.label = op[1];
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
95
|
-
_.label = t[1], t = op;
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
if (t && _.label < t[2]) {
|
|
99
|
-
_.label = t[2], _.ops.push(op);
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
t[2] && _.ops.pop(), _.trys.pop();
|
|
57
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
58
|
+
for (; _; ) try {
|
|
59
|
+
if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
60
|
+
switch (y = 0, t && (op = [
|
|
61
|
+
op[0] & 2,
|
|
62
|
+
t.value
|
|
63
|
+
]), op[0]) {
|
|
64
|
+
case 0:
|
|
65
|
+
case 1:
|
|
66
|
+
t = op;
|
|
67
|
+
break;
|
|
68
|
+
case 4:
|
|
69
|
+
return _.label++, {
|
|
70
|
+
value: op[1],
|
|
71
|
+
done: !1
|
|
72
|
+
};
|
|
73
|
+
case 5:
|
|
74
|
+
_.label++, y = op[1], op = [
|
|
75
|
+
0
|
|
76
|
+
];
|
|
77
|
+
continue;
|
|
78
|
+
case 7:
|
|
79
|
+
op = _.ops.pop(), _.trys.pop();
|
|
80
|
+
continue;
|
|
81
|
+
default:
|
|
82
|
+
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
83
|
+
_ = 0;
|
|
103
84
|
continue;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
85
|
+
}
|
|
86
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
87
|
+
_.label = op[1];
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
91
|
+
_.label = t[1], t = op;
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
if (t && _.label < t[2]) {
|
|
95
|
+
_.label = t[2], _.ops.push(op);
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
t[2] && _.ops.pop(), _.trys.pop();
|
|
99
|
+
continue;
|
|
113
100
|
}
|
|
114
|
-
|
|
115
|
-
|
|
101
|
+
op = body.call(thisArg, _);
|
|
102
|
+
} catch (e) {
|
|
103
|
+
op = [
|
|
104
|
+
6,
|
|
105
|
+
e
|
|
106
|
+
], y = 0;
|
|
107
|
+
} finally {
|
|
108
|
+
f = t = 0;
|
|
109
|
+
}
|
|
110
|
+
if (op[0] & 5) throw op[1];
|
|
116
111
|
return {
|
|
117
112
|
value: op[0] ? op[1] : void 0,
|
|
118
113
|
done: !0
|
|
@@ -208,8 +203,7 @@ function _swapPrebuiltReactModules() {
|
|
|
208
203
|
}
|
|
209
204
|
if (isBuildingNativeBundle && id[0] === ".") {
|
|
210
205
|
var absolutePath = resolve(dirname(importer), id), nativePath = absolutePath.replace(/(.m?js)/, ".native.js");
|
|
211
|
-
if (nativePath === id)
|
|
212
|
-
return;
|
|
206
|
+
if (nativePath === id) return;
|
|
213
207
|
try {
|
|
214
208
|
var directoryPath = absolutePath + "/index.native.js", directoryNonNativePath = absolutePath + "/index.js";
|
|
215
209
|
if (FSExtra.pathExistsSync(directoryPath))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/utils/Users/n8/vxrn/packages/vxrn/src/utils/swapPrebuiltReactModules.ts"],
|
|
4
|
-
"mappings": "AAAA,SAASA,YAAYC,eAAeC,wBAAwB;AAC5D,OAAOC,aAAa;AACpB,SAASC,gBAAgB;AACzB,SAASC,SAASC,MAAMC,eAAe;AAEvC,SAASC,8BAA8B;AACvC,SAASC,mBAAmB
|
|
4
|
+
"mappings": "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",
|
|
5
5
|
"names": ["buildReact", "buildReactJSX", "buildReactNative", "FSExtra", "readFile", "dirname", "join", "resolve", "isBuildingNativeBundle", "resolveFile", "swapPrebuiltReactModules", "cacheDir", "prebuilds", "jsxRuntime", "virtualModules", "reactJSX", "react", "reactNative", "pathExists", "console", "info", "Promise", "all", "entryPoints", "outfile", "alias", "contents", "name", "enforce", "resolveId", "id", "importer", "startsWith", "targetId", "includes", "absolutePath", "nativePath", "replace", "directoryPath", "directoryNonNativePath", "pathExistsSync", "err", "warn", "load", "idOut", "out"]
|
|
6
6
|
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
function _array_like_to_array(arr, len) {
|
|
2
2
|
(len == null || len > arr.length) && (len = arr.length);
|
|
3
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
4
|
-
arr2[i] = arr[i];
|
|
3
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
5
4
|
return arr2;
|
|
6
5
|
}
|
|
7
6
|
function _array_without_holes(arr) {
|
|
8
|
-
if (Array.isArray(arr))
|
|
9
|
-
return _array_like_to_array(arr);
|
|
7
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
10
8
|
}
|
|
11
9
|
function _iterable_to_array(iter) {
|
|
12
|
-
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
13
|
-
return Array.from(iter);
|
|
10
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14
11
|
}
|
|
15
12
|
function _non_iterable_spread() {
|
|
16
13
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -20,13 +17,10 @@ function _to_consumable_array(arr) {
|
|
|
20
17
|
}
|
|
21
18
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
22
19
|
if (o) {
|
|
23
|
-
if (typeof o == "string")
|
|
24
|
-
return _array_like_to_array(o, minLen);
|
|
20
|
+
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
25
21
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
26
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
27
|
-
|
|
28
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
29
|
-
return _array_like_to_array(o, minLen);
|
|
22
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
23
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
30
24
|
}
|
|
31
25
|
}
|
|
32
26
|
function uniq(a) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/utils/Users/n8/vxrn/packages/vxrn/src/utils/uniq.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAO,SAASA,KAAKC,GAAQ;AAC3B,SAAQ,qBAAG,IAAIC,IAAID,CAAAA,CAAAA;AACrB;",
|
|
5
5
|
"names": ["uniq", "a", "Set"]
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": [
|
|
3
|
+
"sources": [],
|
|
4
|
+
"mappings": "",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
|
@@ -1,47 +1 @@
|
|
|
1
|
-
onmessage = /* @__PURE__ */ function() {
|
|
2
|
-
var visibilityState, showVisibilityWarning = /* @__PURE__ */ function() {
|
|
3
|
-
var hasWarned = !1;
|
|
4
|
-
return function() {
|
|
5
|
-
hasWarned || console.warn.toString().includes("[native code]") || (hasWarned = !0, console.warn(
|
|
6
|
-
"Remote debugger is in a background tab which may cause apps to perform slowly. Fix this by foregrounding the tab (or opening it in a separate window)."
|
|
7
|
-
));
|
|
8
|
-
};
|
|
9
|
-
}(), messageHandlers = {
|
|
10
|
-
executeApplicationScript: function(message, sendReply) {
|
|
11
|
-
for (var key in message.inject)
|
|
12
|
-
self[key] = JSON.parse(message.inject[key]);
|
|
13
|
-
var error;
|
|
14
|
-
try {
|
|
15
|
-
importScripts(message.url);
|
|
16
|
-
} catch (err) {
|
|
17
|
-
error = err.message;
|
|
18
|
-
}
|
|
19
|
-
sendReply(null, error);
|
|
20
|
-
},
|
|
21
|
-
setDebuggerVisibility: function(message) {
|
|
22
|
-
visibilityState = message.visibilityState;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
return function(message) {
|
|
26
|
-
visibilityState === "hidden" && showVisibilityWarning();
|
|
27
|
-
var object = message.data, sendReply = function(result, error2) {
|
|
28
|
-
postMessage({ replyID: object.id, result, error: error2 });
|
|
29
|
-
}, handler = messageHandlers[object.method];
|
|
30
|
-
if (handler)
|
|
31
|
-
handler(object, sendReply);
|
|
32
|
-
else {
|
|
33
|
-
var returnValue = [[], [], [], 0], error;
|
|
34
|
-
try {
|
|
35
|
-
typeof __fbBatchedBridge == "object" ? returnValue = __fbBatchedBridge[object.method].apply(
|
|
36
|
-
null,
|
|
37
|
-
object.arguments
|
|
38
|
-
) : error = "Failed to call function, __fbBatchedBridge is undefined";
|
|
39
|
-
} catch (err) {
|
|
40
|
-
error = err.message;
|
|
41
|
-
} finally {
|
|
42
|
-
sendReply(JSON.stringify(returnValue), error);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
}();
|
|
47
1
|
//# sourceMappingURL=debuggerWorker.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": [
|
|
3
|
+
"sources": [],
|
|
4
|
+
"mappings": "",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
onmessage = /* @__PURE__ */function () {
|
|
2
|
-
var visibilityState,
|
|
3
|
-
showVisibilityWarning = /* @__PURE__ */function () {
|
|
4
|
-
var hasWarned = !1;
|
|
5
|
-
return function () {
|
|
6
|
-
hasWarned || console.warn.toString().includes("[native code]") || (hasWarned = !0, console.warn("Remote debugger is in a background tab which may cause apps to perform slowly. Fix this by foregrounding the tab (or opening it in a separate window)."));
|
|
7
|
-
};
|
|
8
|
-
}(),
|
|
9
|
-
messageHandlers = {
|
|
10
|
-
executeApplicationScript: function (message, sendReply) {
|
|
11
|
-
for (var key in message.inject) self[key] = JSON.parse(message.inject[key]);
|
|
12
|
-
var error;
|
|
13
|
-
try {
|
|
14
|
-
importScripts(message.url);
|
|
15
|
-
} catch (err) {
|
|
16
|
-
error = err.message;
|
|
17
|
-
}
|
|
18
|
-
sendReply(null, error);
|
|
19
|
-
},
|
|
20
|
-
setDebuggerVisibility: function (message) {
|
|
21
|
-
visibilityState = message.visibilityState;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
return function (message) {
|
|
25
|
-
visibilityState === "hidden" && showVisibilityWarning();
|
|
26
|
-
var object = message.data,
|
|
27
|
-
sendReply = function (result, error2) {
|
|
28
|
-
postMessage({
|
|
29
|
-
replyID: object.id,
|
|
30
|
-
result,
|
|
31
|
-
error: error2
|
|
32
|
-
});
|
|
33
|
-
},
|
|
34
|
-
handler = messageHandlers[object.method];
|
|
35
|
-
if (handler) handler(object, sendReply);else {
|
|
36
|
-
var returnValue = [[], [], [], 0],
|
|
37
|
-
error;
|
|
38
|
-
try {
|
|
39
|
-
typeof __fbBatchedBridge == "object" ? returnValue = __fbBatchedBridge[object.method].apply(null, object.arguments) : error = "Failed to call function, __fbBatchedBridge is undefined";
|
|
40
|
-
} catch (err) {
|
|
41
|
-
error = err.message;
|
|
42
|
-
} finally {
|
|
43
|
-
sendReply(JSON.stringify(returnValue), error);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
}();
|
|
@@ -1,55 +1 @@
|
|
|
1
|
-
onmessage = /* @__PURE__ */ function() {
|
|
2
|
-
var visibilityState, showVisibilityWarning = /* @__PURE__ */ function() {
|
|
3
|
-
var hasWarned = !1;
|
|
4
|
-
return function() {
|
|
5
|
-
hasWarned || console.warn.toString().includes("[native code]") || (hasWarned = !0, console.warn("Remote debugger is in a background tab which may cause apps to perform slowly. Fix this by foregrounding the tab (or opening it in a separate window)."));
|
|
6
|
-
};
|
|
7
|
-
}(), messageHandlers = {
|
|
8
|
-
executeApplicationScript: function(message, sendReply) {
|
|
9
|
-
for (var key in message.inject)
|
|
10
|
-
self[key] = JSON.parse(message.inject[key]);
|
|
11
|
-
var error;
|
|
12
|
-
try {
|
|
13
|
-
importScripts(message.url);
|
|
14
|
-
} catch (err) {
|
|
15
|
-
error = err.message;
|
|
16
|
-
}
|
|
17
|
-
sendReply(
|
|
18
|
-
null,
|
|
19
|
-
/* result */
|
|
20
|
-
error
|
|
21
|
-
);
|
|
22
|
-
},
|
|
23
|
-
setDebuggerVisibility: function(message) {
|
|
24
|
-
visibilityState = message.visibilityState;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
return function(message) {
|
|
28
|
-
visibilityState === "hidden" && showVisibilityWarning();
|
|
29
|
-
var object = message.data, sendReply = function(result, error2) {
|
|
30
|
-
postMessage({
|
|
31
|
-
replyID: object.id,
|
|
32
|
-
result,
|
|
33
|
-
error: error2
|
|
34
|
-
});
|
|
35
|
-
}, handler = messageHandlers[object.method];
|
|
36
|
-
if (handler)
|
|
37
|
-
handler(object, sendReply);
|
|
38
|
-
else {
|
|
39
|
-
var returnValue = [
|
|
40
|
-
[],
|
|
41
|
-
[],
|
|
42
|
-
[],
|
|
43
|
-
0
|
|
44
|
-
], error;
|
|
45
|
-
try {
|
|
46
|
-
typeof __fbBatchedBridge == "object" ? returnValue = __fbBatchedBridge[object.method].apply(null, object.arguments) : error = "Failed to call function, __fbBatchedBridge is undefined";
|
|
47
|
-
} catch (err) {
|
|
48
|
-
error = err.message;
|
|
49
|
-
} finally {
|
|
50
|
-
sendReply(JSON.stringify(returnValue), error);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}();
|
|
55
1
|
//# sourceMappingURL=debuggerWorker.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": [
|
|
3
|
+
"sources": [],
|
|
4
|
+
"mappings": "",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
|
@@ -1,87 +1 @@
|
|
|
1
|
-
import "./index.css";
|
|
2
|
-
import DebuggerWorker from "./debuggerWorker.js";
|
|
3
|
-
const blueIcon = "", grayIcon = "", orangeIcon = "", isMacLike = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform), refreshShortcut = isMacLike ? "\u2318R" : "Ctrl R";
|
|
4
|
-
window.onload = function() {
|
|
5
|
-
isMacLike || (document.getElementById("shortcut").innerHTML = "Ctrl\u21E7J"), Page.render();
|
|
6
|
-
};
|
|
7
|
-
window.onReloadClicked = function() {
|
|
8
|
-
var xhr = new XMLHttpRequest();
|
|
9
|
-
xhr.open("GET", `${window.location.origin}/reload`, !0), xhr.send();
|
|
10
|
-
};
|
|
11
|
-
const Page = window.Page = {
|
|
12
|
-
state: {
|
|
13
|
-
isDark: localStorage.getItem("darkTheme") === null ? window.matchMedia("(prefers-color-scheme: dark)").matches : localStorage.getItem("darkTheme") === "on",
|
|
14
|
-
isPriorityMaintained: localStorage.getItem("maintainPriority") === "on",
|
|
15
|
-
status: { type: "disconnected" },
|
|
16
|
-
visibilityState: document.visibilityState
|
|
17
|
-
},
|
|
18
|
-
setState(partialState) {
|
|
19
|
-
Page.state = Object.assign({}, Page.state, partialState), Page.render();
|
|
20
|
-
},
|
|
21
|
-
render() {
|
|
22
|
-
const { isDark, isPriorityMaintained, status, visibilityState } = Page.state, statusNode = document.getElementById("status");
|
|
23
|
-
switch (status.type) {
|
|
24
|
-
case "connected":
|
|
25
|
-
statusNode.innerHTML = "Debugger session #" + status.id + " active.";
|
|
26
|
-
break;
|
|
27
|
-
case "error":
|
|
28
|
-
statusNode.innerHTML = status.error.reason || "Disconnected from proxy. Attempting reconnection. Is node server running?";
|
|
29
|
-
break;
|
|
30
|
-
case "connecting":
|
|
31
|
-
case "disconnected":
|
|
32
|
-
default:
|
|
33
|
-
statusNode.innerHTML = 'Waiting, press <span class="shortcut">' + refreshShortcut + "</span> in simulator to reload and connect.";
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
const linkNode = document.querySelector("link[rel=icon]");
|
|
37
|
-
status.type === "disconnected" || status.type === "error" ? linkNode.href = grayIcon : visibilityState === "visible" || isPriorityMaintained ? linkNode.href = blueIcon : linkNode.href = orangeIcon;
|
|
38
|
-
const darkCheckbox = document.getElementById("dark");
|
|
39
|
-
document.body.classList.toggle("dark", isDark), darkCheckbox.checked = isDark, localStorage.setItem("darkTheme", isDark ? "on" : "");
|
|
40
|
-
const maintainPriorityCheckbox = document.getElementById("maintain-priority");
|
|
41
|
-
maintainPriorityCheckbox.checked = isPriorityMaintained, localStorage.setItem("maintainPriority", isPriorityMaintained ? "on" : "");
|
|
42
|
-
},
|
|
43
|
-
toggleDarkTheme() {
|
|
44
|
-
Page.setState({ isDark: !Page.state.isDark });
|
|
45
|
-
},
|
|
46
|
-
togglePriorityMaintenance() {
|
|
47
|
-
Page.setState({ isPriorityMaintained: !Page.state.isPriorityMaintained });
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
function connectToDebuggerProxy() {
|
|
51
|
-
const ws = new WebSocket(
|
|
52
|
-
"ws://" + window.location.host + "/debugger-proxy?role=debugger&name=Chrome"
|
|
53
|
-
);
|
|
54
|
-
let worker;
|
|
55
|
-
function createJSRuntime() {
|
|
56
|
-
worker = new DebuggerWorker(), worker.onmessage = function(message) {
|
|
57
|
-
ws.send(JSON.stringify(message.data));
|
|
58
|
-
}, window.onbeforeunload = function() {
|
|
59
|
-
return "If you reload this page, it is going to break the debugging session. Press " + refreshShortcut + " on the device to reload.";
|
|
60
|
-
}, updateVisibility();
|
|
61
|
-
}
|
|
62
|
-
function shutdownJSRuntime() {
|
|
63
|
-
worker && (worker.terminate(), worker = null, window.onbeforeunload = null);
|
|
64
|
-
}
|
|
65
|
-
function updateVisibility() {
|
|
66
|
-
worker && !Page.state.isPriorityMaintained && worker.postMessage({
|
|
67
|
-
method: "setDebuggerVisibility",
|
|
68
|
-
visibilityState: document.visibilityState
|
|
69
|
-
}), Page.setState({ visibilityState: document.visibilityState });
|
|
70
|
-
}
|
|
71
|
-
ws.onopen = function() {
|
|
72
|
-
Page.setState({ status: { type: "connecting" } });
|
|
73
|
-
}, ws.onmessage = function(message) {
|
|
74
|
-
if (!message.data)
|
|
75
|
-
return;
|
|
76
|
-
const object = JSON.parse(message.data);
|
|
77
|
-
if (object.$event === "client-disconnected") {
|
|
78
|
-
shutdownJSRuntime(), Page.setState({ status: { type: "disconnected" } });
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
object.method && (object.method === "prepareJSRuntime" ? (shutdownJSRuntime(), console.clear(), createJSRuntime(), ws.send(JSON.stringify({ replyID: object.id })), Page.setState({ status: { type: "connected", id: object.id } })) : object.method === "$disconnected" ? (shutdownJSRuntime(), Page.setState({ status: { type: "disconnected" } })) : worker.postMessage(object));
|
|
82
|
-
}, ws.onclose = function(error) {
|
|
83
|
-
shutdownJSRuntime(), Page.setState({ status: { type: "error", error } }), error.reason && console.warn(error.reason), setTimeout(connectToDebuggerProxy, 500);
|
|
84
|
-
}, document.addEventListener("visibilitychange", updateVisibility, !1);
|
|
85
|
-
}
|
|
86
|
-
connectToDebuggerProxy();
|
|
87
1
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
4
|
-
"mappings": "
|
|
3
|
+
"sources": [],
|
|
4
|
+
"mappings": "",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import "./index.css";
|
|
2
|
-
import DebuggerWorker from "./debuggerWorker.js";
|
|
3
|
-
const blueIcon = "",
|
|
4
|
-
grayIcon = "",
|
|
5
|
-
orangeIcon = "",
|
|
6
|
-
isMacLike = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),
|
|
7
|
-
refreshShortcut = isMacLike ? "\u2318R" : "Ctrl R";
|
|
8
|
-
window.onload = function () {
|
|
9
|
-
isMacLike || (document.getElementById("shortcut").innerHTML = "Ctrl\u21E7J"), Page.render();
|
|
10
|
-
};
|
|
11
|
-
window.onReloadClicked = function () {
|
|
12
|
-
var xhr = new XMLHttpRequest();
|
|
13
|
-
xhr.open("GET", `${window.location.origin}/reload`, !0), xhr.send();
|
|
14
|
-
};
|
|
15
|
-
const Page = window.Page = {
|
|
16
|
-
state: {
|
|
17
|
-
isDark: localStorage.getItem("darkTheme") === null ? window.matchMedia("(prefers-color-scheme: dark)").matches : localStorage.getItem("darkTheme") === "on",
|
|
18
|
-
isPriorityMaintained: localStorage.getItem("maintainPriority") === "on",
|
|
19
|
-
status: {
|
|
20
|
-
type: "disconnected"
|
|
21
|
-
},
|
|
22
|
-
visibilityState: document.visibilityState
|
|
23
|
-
},
|
|
24
|
-
setState(partialState) {
|
|
25
|
-
Page.state = Object.assign({}, Page.state, partialState), Page.render();
|
|
26
|
-
},
|
|
27
|
-
render() {
|
|
28
|
-
const {
|
|
29
|
-
isDark,
|
|
30
|
-
isPriorityMaintained,
|
|
31
|
-
status,
|
|
32
|
-
visibilityState
|
|
33
|
-
} = Page.state,
|
|
34
|
-
statusNode = document.getElementById("status");
|
|
35
|
-
switch (status.type) {
|
|
36
|
-
case "connected":
|
|
37
|
-
statusNode.innerHTML = "Debugger session #" + status.id + " active.";
|
|
38
|
-
break;
|
|
39
|
-
case "error":
|
|
40
|
-
statusNode.innerHTML = status.error.reason || "Disconnected from proxy. Attempting reconnection. Is node server running?";
|
|
41
|
-
break;
|
|
42
|
-
case "connecting":
|
|
43
|
-
case "disconnected":
|
|
44
|
-
default:
|
|
45
|
-
statusNode.innerHTML = 'Waiting, press <span class="shortcut">' + refreshShortcut + "</span> in simulator to reload and connect.";
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
const linkNode = document.querySelector("link[rel=icon]");
|
|
49
|
-
status.type === "disconnected" || status.type === "error" ? linkNode.href = grayIcon : visibilityState === "visible" || isPriorityMaintained ? linkNode.href = blueIcon : linkNode.href = orangeIcon;
|
|
50
|
-
const darkCheckbox = document.getElementById("dark");
|
|
51
|
-
document.body.classList.toggle("dark", isDark), darkCheckbox.checked = isDark, localStorage.setItem("darkTheme", isDark ? "on" : "");
|
|
52
|
-
const maintainPriorityCheckbox = document.getElementById("maintain-priority");
|
|
53
|
-
maintainPriorityCheckbox.checked = isPriorityMaintained, localStorage.setItem("maintainPriority", isPriorityMaintained ? "on" : "");
|
|
54
|
-
},
|
|
55
|
-
toggleDarkTheme() {
|
|
56
|
-
Page.setState({
|
|
57
|
-
isDark: !Page.state.isDark
|
|
58
|
-
});
|
|
59
|
-
},
|
|
60
|
-
togglePriorityMaintenance() {
|
|
61
|
-
Page.setState({
|
|
62
|
-
isPriorityMaintained: !Page.state.isPriorityMaintained
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
function connectToDebuggerProxy() {
|
|
67
|
-
const ws = new WebSocket("ws://" + window.location.host + "/debugger-proxy?role=debugger&name=Chrome");
|
|
68
|
-
let worker;
|
|
69
|
-
function createJSRuntime() {
|
|
70
|
-
worker = new DebuggerWorker(), worker.onmessage = function (message) {
|
|
71
|
-
ws.send(JSON.stringify(message.data));
|
|
72
|
-
}, window.onbeforeunload = function () {
|
|
73
|
-
return "If you reload this page, it is going to break the debugging session. Press " + refreshShortcut + " on the device to reload.";
|
|
74
|
-
}, updateVisibility();
|
|
75
|
-
}
|
|
76
|
-
function shutdownJSRuntime() {
|
|
77
|
-
worker && (worker.terminate(), worker = null, window.onbeforeunload = null);
|
|
78
|
-
}
|
|
79
|
-
function updateVisibility() {
|
|
80
|
-
worker && !Page.state.isPriorityMaintained && worker.postMessage({
|
|
81
|
-
method: "setDebuggerVisibility",
|
|
82
|
-
visibilityState: document.visibilityState
|
|
83
|
-
}), Page.setState({
|
|
84
|
-
visibilityState: document.visibilityState
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
ws.onopen = function () {
|
|
88
|
-
Page.setState({
|
|
89
|
-
status: {
|
|
90
|
-
type: "connecting"
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
}, ws.onmessage = function (message) {
|
|
94
|
-
if (!message.data) return;
|
|
95
|
-
const object = JSON.parse(message.data);
|
|
96
|
-
if (object.$event === "client-disconnected") {
|
|
97
|
-
shutdownJSRuntime(), Page.setState({
|
|
98
|
-
status: {
|
|
99
|
-
type: "disconnected"
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
object.method && (object.method === "prepareJSRuntime" ? (shutdownJSRuntime(), console.clear(), createJSRuntime(), ws.send(JSON.stringify({
|
|
105
|
-
replyID: object.id
|
|
106
|
-
})), Page.setState({
|
|
107
|
-
status: {
|
|
108
|
-
type: "connected",
|
|
109
|
-
id: object.id
|
|
110
|
-
}
|
|
111
|
-
})) : object.method === "$disconnected" ? (shutdownJSRuntime(), Page.setState({
|
|
112
|
-
status: {
|
|
113
|
-
type: "disconnected"
|
|
114
|
-
}
|
|
115
|
-
})) : worker.postMessage(object));
|
|
116
|
-
}, ws.onclose = function (error) {
|
|
117
|
-
shutdownJSRuntime(), Page.setState({
|
|
118
|
-
status: {
|
|
119
|
-
type: "error",
|
|
120
|
-
error
|
|
121
|
-
}
|
|
122
|
-
}), error.reason && console.warn(error.reason), setTimeout(connectToDebuggerProxy, 500);
|
|
123
|
-
}, document.addEventListener("visibilitychange", updateVisibility, !1);
|
|
124
|
-
}
|
|
125
|
-
connectToDebuggerProxy();
|