@intuned/runtime-dev 1.3.11-deployment.0 → 1.3.12-ua.0
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
|
@@ -263,11 +263,13 @@ function buildRunsPlaygroundQueryParams({
|
|
|
263
263
|
}) {
|
|
264
264
|
const params = new URLSearchParams();
|
|
265
265
|
if (!enableFirstRunExperience) return params.toString();
|
|
266
|
-
|
|
266
|
+
params.set(START_RUN_INPUT_QUERY_PARAM_KEY, JSON.stringify({}));
|
|
267
|
+
const input = settings.metadata?.defaultRunPlaygroundInput;
|
|
268
|
+
if (!input) return params.toString();
|
|
267
269
|
if (testAuthSessionId) {
|
|
268
270
|
input.authSessionId = testAuthSessionId;
|
|
269
271
|
}
|
|
270
|
-
params.
|
|
272
|
+
params.set(START_RUN_INPUT_QUERY_PARAM_KEY, JSON.stringify({
|
|
271
273
|
...input
|
|
272
274
|
}));
|
|
273
275
|
return params.toString();
|
|
@@ -86,10 +86,32 @@ async function launchChromium(options) {
|
|
|
86
86
|
executablePath = undefined;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
+
const viewport = null;
|
|
90
|
+
let userAgent = undefined;
|
|
91
|
+
if (headless) {
|
|
92
|
+
const tmpBrowser = await playwright.chromium.launch({
|
|
93
|
+
executablePath,
|
|
94
|
+
headless,
|
|
95
|
+
proxy,
|
|
96
|
+
downloadsPath,
|
|
97
|
+
args: extraArgs,
|
|
98
|
+
ignoreDefaultArgs: defaultArgsToIgnore
|
|
99
|
+
});
|
|
100
|
+
const tmpContext = await tmpBrowser.newContext({
|
|
101
|
+
viewport
|
|
102
|
+
});
|
|
103
|
+
const tmpPage = await tmpContext.newPage();
|
|
104
|
+
const ua = await tmpPage.evaluate(() => navigator.userAgent);
|
|
105
|
+
await tmpBrowser.close();
|
|
106
|
+
if (ua) {
|
|
107
|
+
userAgent = ua;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
89
110
|
const context = await playwright.chromium.launchPersistentContext(userDataDir, {
|
|
111
|
+
userAgent,
|
|
90
112
|
executablePath,
|
|
91
113
|
headless,
|
|
92
|
-
viewport
|
|
114
|
+
viewport,
|
|
93
115
|
proxy,
|
|
94
116
|
downloadsPath,
|
|
95
117
|
args: extraArgs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuned/runtime-dev",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.12-ua.0",
|
|
4
4
|
"description": "Intuned runtime",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"intuned-build": "yarn prepublishOnly && vite-node ./src/commands/build.ts",
|
|
28
28
|
"intuned-auth-session-check": "vite-node ./src/commands/auth/run-check.ts",
|
|
29
29
|
"intuned-auth-session-create": "vite-node ./src/commands/auth/run-create.ts",
|
|
30
|
-
"intuned-auth-session-refresh": "vite-node ./src/commands/auth/run-refresh.ts",
|
|
31
30
|
"intuned-auth-session-load": "vite-node ./src/commands/auth/load.ts",
|
|
32
31
|
"intuned-ts-check": "yarn prepublishOnly && vite-node ./src/commands/ts-check.ts",
|
|
33
32
|
"intuned": "vite-node ./src/commands/intuned-cli/main.ts",
|
|
@@ -43,16 +42,15 @@
|
|
|
43
42
|
"copy-dts": "copyfiles -u 1 \"src/**/*.d.ts\" dist"
|
|
44
43
|
},
|
|
45
44
|
"bin": {
|
|
46
|
-
"intuned-api-run": "
|
|
47
|
-
"intuned-auth-session-create": "
|
|
48
|
-
"intuned-auth-session-
|
|
49
|
-
"intuned-auth-session-
|
|
50
|
-
"intuned-
|
|
51
|
-
"intuned-
|
|
52
|
-
"intuned-browser-
|
|
53
|
-
"intuned-
|
|
54
|
-
"intuned
|
|
55
|
-
"intuned": "./bin/intuned"
|
|
45
|
+
"intuned-api-run": "bin/intuned-api-run",
|
|
46
|
+
"intuned-auth-session-create": "bin/intuned-auth-session-create",
|
|
47
|
+
"intuned-auth-session-load": "bin/intuned-auth-session-load",
|
|
48
|
+
"intuned-auth-session-check": "bin/intuned-auth-session-check",
|
|
49
|
+
"intuned-build": "bin/intuned-build",
|
|
50
|
+
"intuned-browser-start": "bin/intuned-browser-start",
|
|
51
|
+
"intuned-browser-save-state": "bin/intuned-browser-save-state",
|
|
52
|
+
"intuned-ts-check": "bin/intuned-ts-check",
|
|
53
|
+
"intuned": "bin/intuned"
|
|
56
54
|
},
|
|
57
55
|
"dependencies": {
|
|
58
56
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|