@intuned/runtime 1.3.20 → 1.3.21
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.
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"permissions": {
|
|
3
3
|
"allow": [
|
|
4
|
-
"Bash(
|
|
5
|
-
"Bash(git -C /Users/yousefhanbali/Desktop/webapp/WebApp2 config --list --local)",
|
|
6
|
-
"Bash(git -C /Users/yousefhanbali/Desktop/webapp/WebApp2 config --get core.hooksPath)"
|
|
4
|
+
"Bash(npm info:*)"
|
|
7
5
|
]
|
|
8
6
|
}
|
|
9
7
|
}
|
package/dist/commands/api/run.js
CHANGED
|
@@ -113,7 +113,7 @@ _commander.program.description("run the user function in the cli for testing pur
|
|
|
113
113
|
runId: (0, _nanoid.nanoid)(),
|
|
114
114
|
proxy: options.proxy,
|
|
115
115
|
getAuthSessionParameters: authSessionParametersJson !== undefined ? async () => authSessionParametersJson : undefined
|
|
116
|
-
}, () => executeCLI(apiName, mode, inputData, options));
|
|
116
|
+
}, async () => await executeCLI(apiName, mode, inputData, options));
|
|
117
117
|
process.exit(0);
|
|
118
118
|
});
|
|
119
119
|
_commander.program.parse(process.argv);
|
|
@@ -170,7 +170,7 @@ async function launchChromium(options) {
|
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
async function getIntunedBrowserExecutablePath() {
|
|
173
|
-
const intunedPath = process.env.
|
|
173
|
+
const intunedPath = process.env.INTUNED_STEALTH_CHROMIUM_PATH;
|
|
174
174
|
if (intunedPath && (await fs.exists(intunedPath))) {
|
|
175
175
|
return intunedPath;
|
|
176
176
|
}
|
|
@@ -126,6 +126,7 @@ var require_errors = __commonJS({
|
|
|
126
126
|
var AutomationError = class extends RunAutomationError {
|
|
127
127
|
constructor(error) {
|
|
128
128
|
super(exports2.automationError, `[${error?.name ?? error}] ${error?.message}`);
|
|
129
|
+
this.error = error;
|
|
129
130
|
this.details = {
|
|
130
131
|
...error,
|
|
131
132
|
name: error?.name,
|
|
@@ -384,7 +385,10 @@ var require_interfaceClient = __commonJS({
|
|
|
384
385
|
if (!(chunk instanceof Buffer)) {
|
|
385
386
|
break;
|
|
386
387
|
}
|
|
387
|
-
buffer = Buffer.concat([
|
|
388
|
+
buffer = Buffer.concat([
|
|
389
|
+
buffer,
|
|
390
|
+
chunk
|
|
391
|
+
]);
|
|
388
392
|
if (buffer.length < _SocketClient.LENGTH_HEADER_LENGTH) {
|
|
389
393
|
continue;
|
|
390
394
|
}
|
|
@@ -445,8 +449,8 @@ var require_interfaceClient = __commonJS({
|
|
|
445
449
|
async close() {
|
|
446
450
|
this.fileStream.close();
|
|
447
451
|
await Promise.race([
|
|
448
|
-
new Promise((resolve) => this.fileStream.once("close", resolve)),
|
|
449
|
-
new Promise((resolve) => this.fileStream.once("error", resolve)),
|
|
452
|
+
new Promise((resolve) => this.fileStream.once("close", () => resolve(void 0))),
|
|
453
|
+
new Promise((resolve) => this.fileStream.once("error", () => resolve(void 0))),
|
|
450
454
|
(0, promises_1.setTimeout)(3e3)
|
|
451
455
|
]);
|
|
452
456
|
}
|