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
|
@@ -55,8 +55,7 @@ function _ts_generator(thisArg, body) {
|
|
|
55
55
|
var f, y, t, g, _ = {
|
|
56
56
|
label: 0,
|
|
57
57
|
sent: function() {
|
|
58
|
-
if (t[0] & 1)
|
|
59
|
-
throw t[1];
|
|
58
|
+
if (t[0] & 1) throw t[1];
|
|
60
59
|
return t[1];
|
|
61
60
|
},
|
|
62
61
|
trys: [],
|
|
@@ -78,64 +77,60 @@ function _ts_generator(thisArg, body) {
|
|
|
78
77
|
};
|
|
79
78
|
}
|
|
80
79
|
function step(op) {
|
|
81
|
-
if (f)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
default:
|
|
109
|
-
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
110
|
-
_ = 0;
|
|
111
|
-
continue;
|
|
112
|
-
}
|
|
113
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
114
|
-
_.label = op[1];
|
|
115
|
-
break;
|
|
116
|
-
}
|
|
117
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
118
|
-
_.label = t[1], t = op;
|
|
119
|
-
break;
|
|
120
|
-
}
|
|
121
|
-
if (t && _.label < t[2]) {
|
|
122
|
-
_.label = t[2], _.ops.push(op);
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
t[2] && _.ops.pop(), _.trys.pop();
|
|
80
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
81
|
+
for (; _; ) try {
|
|
82
|
+
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;
|
|
83
|
+
switch (y = 0, t && (op = [
|
|
84
|
+
op[0] & 2,
|
|
85
|
+
t.value
|
|
86
|
+
]), op[0]) {
|
|
87
|
+
case 0:
|
|
88
|
+
case 1:
|
|
89
|
+
t = op;
|
|
90
|
+
break;
|
|
91
|
+
case 4:
|
|
92
|
+
return _.label++, {
|
|
93
|
+
value: op[1],
|
|
94
|
+
done: !1
|
|
95
|
+
};
|
|
96
|
+
case 5:
|
|
97
|
+
_.label++, y = op[1], op = [
|
|
98
|
+
0
|
|
99
|
+
];
|
|
100
|
+
continue;
|
|
101
|
+
case 7:
|
|
102
|
+
op = _.ops.pop(), _.trys.pop();
|
|
103
|
+
continue;
|
|
104
|
+
default:
|
|
105
|
+
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
106
|
+
_ = 0;
|
|
126
107
|
continue;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
108
|
+
}
|
|
109
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
110
|
+
_.label = op[1];
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
114
|
+
_.label = t[1], t = op;
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
if (t && _.label < t[2]) {
|
|
118
|
+
_.label = t[2], _.ops.push(op);
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
t[2] && _.ops.pop(), _.trys.pop();
|
|
122
|
+
continue;
|
|
136
123
|
}
|
|
137
|
-
|
|
138
|
-
|
|
124
|
+
op = body.call(thisArg, _);
|
|
125
|
+
} catch (e) {
|
|
126
|
+
op = [
|
|
127
|
+
6,
|
|
128
|
+
e
|
|
129
|
+
], y = 0;
|
|
130
|
+
} finally {
|
|
131
|
+
f = t = 0;
|
|
132
|
+
}
|
|
133
|
+
if (op[0] & 5) throw op[1];
|
|
139
134
|
return {
|
|
140
135
|
value: op[0] ? op[1] : void 0,
|
|
141
136
|
done: !0
|
|
@@ -231,8 +226,7 @@ function _swapPrebuiltReactModules() {
|
|
|
231
226
|
}
|
|
232
227
|
if (import_isBuildingNativeBundle.isBuildingNativeBundle && id[0] === ".") {
|
|
233
228
|
var absolutePath = (0, import_node_path.resolve)((0, import_node_path.dirname)(importer), id), nativePath = absolutePath.replace(/(.m?js)/, ".native.js");
|
|
234
|
-
if (nativePath === id)
|
|
235
|
-
return;
|
|
229
|
+
if (nativePath === id) return;
|
|
236
230
|
try {
|
|
237
231
|
var directoryPath = absolutePath + "/index.native.js", directoryNonNativePath = absolutePath + "/index.js";
|
|
238
232
|
if (import_fs_extra.default.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": ";;;;;;;;;;;;;;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9B,4BAAQ+B,KAAM,uBAAsBD,GAAAA;kBACtC;gBACF;cAEJ;cAEAE,MAAAA,SAAKhB,IAAE;AACL,oBAAIA,GAAGE,WAAW,sBAAA,GAAyB;AACzC,sBAAMe,QAAQjB,GAAGU,QAAQ,yBAAyB,EAAA,GAC9CQ,MAAO,mCAAwC,OAAND,OAAM;;qCAAA;AAGnD,yBAAOC;gBACT;AAEA,yBAAWf,YAAY1B,gBAAgB;AACrC,sBAAMQ,OAAOR,eAAe0B,QAAAA;AAC5B,sBAAIH,OAAOf,KAAKS;AACd,2BAAOT,KAAKW;gBAEhB;cACF;YACF;;;;EACF,CAAA,GAlHsBvB,0BAAAA,MAAAA,MAAAA,SAAAA;;",
|
|
5
5
|
"names": ["swapPrebuiltReactModules", "cacheDir", "prebuilds", "jsxRuntime", "virtualModules", "reactJSX", "join", "react", "reactNative", "FSExtra", "pathExists", "console", "info", "Promise", "all", "buildReactNative", "entryPoints", "resolveFile", "outfile", "buildReact", "buildReactJSX", "alias", "readFile", "contents", "name", "enforce", "resolveId", "id", "importer", "startsWith", "targetId", "includes", "isBuildingNativeBundle", "absolutePath", "resolve", "dirname", "nativePath", "replace", "directoryPath", "directoryNonNativePath", "pathExistsSync", "err", "warn", "load", "idOut", "out"]
|
|
6
6
|
}
|
|
@@ -20,17 +20,14 @@ __export(uniq_exports, {
|
|
|
20
20
|
module.exports = __toCommonJS(uniq_exports);
|
|
21
21
|
function _array_like_to_array(arr, len) {
|
|
22
22
|
(len == null || len > arr.length) && (len = arr.length);
|
|
23
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
24
|
-
arr2[i] = arr[i];
|
|
23
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
25
24
|
return arr2;
|
|
26
25
|
}
|
|
27
26
|
function _array_without_holes(arr) {
|
|
28
|
-
if (Array.isArray(arr))
|
|
29
|
-
return _array_like_to_array(arr);
|
|
27
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
30
28
|
}
|
|
31
29
|
function _iterable_to_array(iter) {
|
|
32
|
-
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
33
|
-
return Array.from(iter);
|
|
30
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34
31
|
}
|
|
35
32
|
function _non_iterable_spread() {
|
|
36
33
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -40,13 +37,10 @@ function _to_consumable_array(arr) {
|
|
|
40
37
|
}
|
|
41
38
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
42
39
|
if (o) {
|
|
43
|
-
if (typeof o == "string")
|
|
44
|
-
return _array_like_to_array(o, minLen);
|
|
40
|
+
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
45
41
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
46
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
47
|
-
|
|
48
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
49
|
-
return _array_like_to_array(o, minLen);
|
|
42
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
43
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
50
44
|
}
|
|
51
45
|
}
|
|
52
46
|
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,23 +1 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var debugger_app_exports = {};
|
|
16
|
-
__export(debugger_app_exports, {
|
|
17
|
-
default: () => debugger_app_default
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(debugger_app_exports);
|
|
20
|
-
var import_url = require("url");
|
|
21
|
-
const import_meta = {};
|
|
22
|
-
var debugger_app_default = (0, import_url.fileURLToPath)(new import_url.URL("./dist", import_meta.url));
|
|
23
1
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,24 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var debugger_app_exports = {};
|
|
17
|
-
__export(debugger_app_exports, {
|
|
18
|
-
default: () => debugger_app_default
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(debugger_app_exports);
|
|
21
|
-
var import_url = require("url");
|
|
22
|
-
const import_meta = {};
|
|
23
|
-
var debugger_app_default = (0, import_url.fileURLToPath)(new import_url.URL("./dist", import_meta.url));
|
|
24
2
|
//# sourceMappingURL=index.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 +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,56 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
onmessage = /* @__PURE__ */ function() {
|
|
3
|
-
var visibilityState, 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
|
-
}(), messageHandlers = {
|
|
9
|
-
executeApplicationScript: function(message, sendReply) {
|
|
10
|
-
for (var key in message.inject)
|
|
11
|
-
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(
|
|
19
|
-
null,
|
|
20
|
-
/* result */
|
|
21
|
-
error
|
|
22
|
-
);
|
|
23
|
-
},
|
|
24
|
-
setDebuggerVisibility: function(message) {
|
|
25
|
-
visibilityState = message.visibilityState;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
return function(message) {
|
|
29
|
-
visibilityState === "hidden" && showVisibilityWarning();
|
|
30
|
-
var object = message.data, sendReply = function(result, error2) {
|
|
31
|
-
postMessage({
|
|
32
|
-
replyID: object.id,
|
|
33
|
-
result,
|
|
34
|
-
error: error2
|
|
35
|
-
});
|
|
36
|
-
}, handler = messageHandlers[object.method];
|
|
37
|
-
if (handler)
|
|
38
|
-
handler(object, sendReply);
|
|
39
|
-
else {
|
|
40
|
-
var returnValue = [
|
|
41
|
-
[],
|
|
42
|
-
[],
|
|
43
|
-
[],
|
|
44
|
-
0
|
|
45
|
-
], error;
|
|
46
|
-
try {
|
|
47
|
-
typeof __fbBatchedBridge == "object" ? returnValue = __fbBatchedBridge[object.method].apply(null, object.arguments) : error = "Failed to call function, __fbBatchedBridge is undefined";
|
|
48
|
-
} catch (err) {
|
|
49
|
-
error = err.message;
|
|
50
|
-
} finally {
|
|
51
|
-
sendReply(JSON.stringify(returnValue), error);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
}();
|
|
56
2
|
//# 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,105 +1 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
};
|
|
12
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
13
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
14
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
15
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
16
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
17
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
18
|
-
mod
|
|
19
|
-
));
|
|
20
|
-
var import_index = require("./index.css"), import_debuggerWorker = __toESM(require("./debuggerWorker.js"), 1);
|
|
21
|
-
const blueIcon = "", grayIcon = "", orangeIcon = "", isMacLike = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform), refreshShortcut = isMacLike ? "\u2318R" : "Ctrl R";
|
|
22
|
-
window.onload = function() {
|
|
23
|
-
isMacLike || (document.getElementById("shortcut").innerHTML = "Ctrl\u21E7J"), Page.render();
|
|
24
|
-
};
|
|
25
|
-
window.onReloadClicked = function() {
|
|
26
|
-
var xhr = new XMLHttpRequest();
|
|
27
|
-
xhr.open("GET", `${window.location.origin}/reload`, !0), xhr.send();
|
|
28
|
-
};
|
|
29
|
-
const Page = window.Page = {
|
|
30
|
-
state: {
|
|
31
|
-
isDark: localStorage.getItem("darkTheme") === null ? window.matchMedia("(prefers-color-scheme: dark)").matches : localStorage.getItem("darkTheme") === "on",
|
|
32
|
-
isPriorityMaintained: localStorage.getItem("maintainPriority") === "on",
|
|
33
|
-
status: { type: "disconnected" },
|
|
34
|
-
visibilityState: document.visibilityState
|
|
35
|
-
},
|
|
36
|
-
setState(partialState) {
|
|
37
|
-
Page.state = Object.assign({}, Page.state, partialState), Page.render();
|
|
38
|
-
},
|
|
39
|
-
render() {
|
|
40
|
-
const { isDark, isPriorityMaintained, status, visibilityState } = Page.state, statusNode = document.getElementById("status");
|
|
41
|
-
switch (status.type) {
|
|
42
|
-
case "connected":
|
|
43
|
-
statusNode.innerHTML = "Debugger session #" + status.id + " active.";
|
|
44
|
-
break;
|
|
45
|
-
case "error":
|
|
46
|
-
statusNode.innerHTML = status.error.reason || "Disconnected from proxy. Attempting reconnection. Is node server running?";
|
|
47
|
-
break;
|
|
48
|
-
case "connecting":
|
|
49
|
-
case "disconnected":
|
|
50
|
-
default:
|
|
51
|
-
statusNode.innerHTML = 'Waiting, press <span class="shortcut">' + refreshShortcut + "</span> in simulator to reload and connect.";
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
const linkNode = document.querySelector("link[rel=icon]");
|
|
55
|
-
status.type === "disconnected" || status.type === "error" ? linkNode.href = grayIcon : visibilityState === "visible" || isPriorityMaintained ? linkNode.href = blueIcon : linkNode.href = orangeIcon;
|
|
56
|
-
const darkCheckbox = document.getElementById("dark");
|
|
57
|
-
document.body.classList.toggle("dark", isDark), darkCheckbox.checked = isDark, localStorage.setItem("darkTheme", isDark ? "on" : "");
|
|
58
|
-
const maintainPriorityCheckbox = document.getElementById("maintain-priority");
|
|
59
|
-
maintainPriorityCheckbox.checked = isPriorityMaintained, localStorage.setItem("maintainPriority", isPriorityMaintained ? "on" : "");
|
|
60
|
-
},
|
|
61
|
-
toggleDarkTheme() {
|
|
62
|
-
Page.setState({ isDark: !Page.state.isDark });
|
|
63
|
-
},
|
|
64
|
-
togglePriorityMaintenance() {
|
|
65
|
-
Page.setState({ isPriorityMaintained: !Page.state.isPriorityMaintained });
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
function connectToDebuggerProxy() {
|
|
69
|
-
const ws = new WebSocket(
|
|
70
|
-
"ws://" + window.location.host + "/debugger-proxy?role=debugger&name=Chrome"
|
|
71
|
-
);
|
|
72
|
-
let worker;
|
|
73
|
-
function createJSRuntime() {
|
|
74
|
-
worker = new import_debuggerWorker.default(), worker.onmessage = function(message) {
|
|
75
|
-
ws.send(JSON.stringify(message.data));
|
|
76
|
-
}, window.onbeforeunload = function() {
|
|
77
|
-
return "If you reload this page, it is going to break the debugging session. Press " + refreshShortcut + " on the device to reload.";
|
|
78
|
-
}, updateVisibility();
|
|
79
|
-
}
|
|
80
|
-
function shutdownJSRuntime() {
|
|
81
|
-
worker && (worker.terminate(), worker = null, window.onbeforeunload = null);
|
|
82
|
-
}
|
|
83
|
-
function updateVisibility() {
|
|
84
|
-
worker && !Page.state.isPriorityMaintained && worker.postMessage({
|
|
85
|
-
method: "setDebuggerVisibility",
|
|
86
|
-
visibilityState: document.visibilityState
|
|
87
|
-
}), Page.setState({ visibilityState: document.visibilityState });
|
|
88
|
-
}
|
|
89
|
-
ws.onopen = function() {
|
|
90
|
-
Page.setState({ status: { type: "connecting" } });
|
|
91
|
-
}, ws.onmessage = function(message) {
|
|
92
|
-
if (!message.data)
|
|
93
|
-
return;
|
|
94
|
-
const object = JSON.parse(message.data);
|
|
95
|
-
if (object.$event === "client-disconnected") {
|
|
96
|
-
shutdownJSRuntime(), Page.setState({ status: { type: "disconnected" } });
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
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));
|
|
100
|
-
}, ws.onclose = function(error) {
|
|
101
|
-
shutdownJSRuntime(), Page.setState({ status: { type: "error", error } }), error.reason && console.warn(error.reason), setTimeout(connectToDebuggerProxy, 500);
|
|
102
|
-
}, document.addEventListener("visibilitychange", updateVisibility, !1);
|
|
103
|
-
}
|
|
104
|
-
connectToDebuggerProxy();
|
|
105
1
|
//# sourceMappingURL=index.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
|
}
|