@iflyrpa/playwright 1.1.1 → 1.1.2-beta.2
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/dist/511.cjs +99 -0
- package/dist/511.js +98 -0
- package/dist/electron/install.d.ts +12 -0
- package/dist/electron/launch.d.ts +2 -0
- package/dist/index.cjs +43976 -478
- package/dist/index.cjs.LICENSE.txt +33 -0
- package/dist/index.d.ts +5 -82
- package/dist/index.js +43668 -0
- package/dist/index.js.LICENSE.txt +33 -0
- package/dist/logger.d.ts +12 -0
- package/dist/packageManager.d.ts +10 -0
- package/dist/sentry.d.ts +7 -0
- package/dist/task.d.ts +53 -0
- package/package.json +16 -13
- package/dist/index.d.cts +0 -86
- package/dist/index.d.mts +0 -86
- package/dist/index.mjs +0 -486
package/dist/511.cjs
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.ids = [
|
|
3
|
+
'511'
|
|
4
|
+
];
|
|
5
|
+
exports.modules = {
|
|
6
|
+
"../../node_modules/.pnpm/p-map@7.0.2/node_modules/p-map/index.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
7
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
8
|
+
default: function() {
|
|
9
|
+
return pMap;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
async function pMap(iterable, mapper, { concurrency = Number.POSITIVE_INFINITY, stopOnError = true, signal } = {}) {
|
|
13
|
+
return new Promise((resolve, reject_)=>{
|
|
14
|
+
if (void 0 === iterable[Symbol.iterator] && void 0 === iterable[Symbol.asyncIterator]) throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof iterable})`);
|
|
15
|
+
if ('function' != typeof mapper) throw new TypeError('Mapper function is required');
|
|
16
|
+
if (!(Number.isSafeInteger(concurrency) && concurrency >= 1 || concurrency === Number.POSITIVE_INFINITY)) throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
|
|
17
|
+
const result = [];
|
|
18
|
+
const errors = [];
|
|
19
|
+
const skippedIndexesMap = new Map();
|
|
20
|
+
let isRejected = false;
|
|
21
|
+
let isResolved = false;
|
|
22
|
+
let isIterableDone = false;
|
|
23
|
+
let resolvingCount = 0;
|
|
24
|
+
let currentIndex = 0;
|
|
25
|
+
const iterator = void 0 === iterable[Symbol.iterator] ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
|
|
26
|
+
const reject = (reason)=>{
|
|
27
|
+
isRejected = true;
|
|
28
|
+
isResolved = true;
|
|
29
|
+
reject_(reason);
|
|
30
|
+
};
|
|
31
|
+
if (signal) {
|
|
32
|
+
if (signal.aborted) reject(signal.reason);
|
|
33
|
+
signal.addEventListener('abort', ()=>{
|
|
34
|
+
reject(signal.reason);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const next = async ()=>{
|
|
38
|
+
if (isResolved) return;
|
|
39
|
+
const nextItem = await iterator.next();
|
|
40
|
+
const index = currentIndex;
|
|
41
|
+
currentIndex++;
|
|
42
|
+
if (nextItem.done) {
|
|
43
|
+
isIterableDone = true;
|
|
44
|
+
if (0 === resolvingCount && !isResolved) {
|
|
45
|
+
if (!stopOnError && errors.length > 0) {
|
|
46
|
+
reject(new AggregateError(errors));
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
isResolved = true;
|
|
50
|
+
if (0 === skippedIndexesMap.size) {
|
|
51
|
+
resolve(result);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const pureResult = [];
|
|
55
|
+
for (const [index, value] of result.entries())if (skippedIndexesMap.get(index) !== pMapSkip) pureResult.push(value);
|
|
56
|
+
resolve(pureResult);
|
|
57
|
+
}
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
resolvingCount++;
|
|
61
|
+
(async ()=>{
|
|
62
|
+
try {
|
|
63
|
+
const element = await nextItem.value;
|
|
64
|
+
if (isResolved) return;
|
|
65
|
+
const value = await mapper(element, index);
|
|
66
|
+
if (value === pMapSkip) skippedIndexesMap.set(index, value);
|
|
67
|
+
result[index] = value;
|
|
68
|
+
resolvingCount--;
|
|
69
|
+
await next();
|
|
70
|
+
} catch (error) {
|
|
71
|
+
if (stopOnError) reject(error);
|
|
72
|
+
else {
|
|
73
|
+
errors.push(error);
|
|
74
|
+
resolvingCount--;
|
|
75
|
+
try {
|
|
76
|
+
await next();
|
|
77
|
+
} catch (error) {
|
|
78
|
+
reject(error);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
})();
|
|
83
|
+
};
|
|
84
|
+
(async ()=>{
|
|
85
|
+
for(let index = 0; index < concurrency; index++){
|
|
86
|
+
try {
|
|
87
|
+
await next();
|
|
88
|
+
} catch (error) {
|
|
89
|
+
reject(error);
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
if (isIterableDone || isRejected) break;
|
|
93
|
+
}
|
|
94
|
+
})();
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
const pMapSkip = Symbol('skip');
|
|
98
|
+
}
|
|
99
|
+
};
|
package/dist/511.js
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export const ids = [
|
|
2
|
+
'511'
|
|
3
|
+
];
|
|
4
|
+
export const modules = {
|
|
5
|
+
"../../node_modules/.pnpm/p-map@7.0.2/node_modules/p-map/index.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
6
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
7
|
+
default: function() {
|
|
8
|
+
return pMap;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
async function pMap(iterable, mapper, { concurrency = Number.POSITIVE_INFINITY, stopOnError = true, signal } = {}) {
|
|
12
|
+
return new Promise((resolve, reject_)=>{
|
|
13
|
+
if (void 0 === iterable[Symbol.iterator] && void 0 === iterable[Symbol.asyncIterator]) throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof iterable})`);
|
|
14
|
+
if ('function' != typeof mapper) throw new TypeError('Mapper function is required');
|
|
15
|
+
if (!(Number.isSafeInteger(concurrency) && concurrency >= 1 || concurrency === Number.POSITIVE_INFINITY)) throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
|
|
16
|
+
const result = [];
|
|
17
|
+
const errors = [];
|
|
18
|
+
const skippedIndexesMap = new Map();
|
|
19
|
+
let isRejected = false;
|
|
20
|
+
let isResolved = false;
|
|
21
|
+
let isIterableDone = false;
|
|
22
|
+
let resolvingCount = 0;
|
|
23
|
+
let currentIndex = 0;
|
|
24
|
+
const iterator = void 0 === iterable[Symbol.iterator] ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
|
|
25
|
+
const reject = (reason)=>{
|
|
26
|
+
isRejected = true;
|
|
27
|
+
isResolved = true;
|
|
28
|
+
reject_(reason);
|
|
29
|
+
};
|
|
30
|
+
if (signal) {
|
|
31
|
+
if (signal.aborted) reject(signal.reason);
|
|
32
|
+
signal.addEventListener('abort', ()=>{
|
|
33
|
+
reject(signal.reason);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
const next = async ()=>{
|
|
37
|
+
if (isResolved) return;
|
|
38
|
+
const nextItem = await iterator.next();
|
|
39
|
+
const index = currentIndex;
|
|
40
|
+
currentIndex++;
|
|
41
|
+
if (nextItem.done) {
|
|
42
|
+
isIterableDone = true;
|
|
43
|
+
if (0 === resolvingCount && !isResolved) {
|
|
44
|
+
if (!stopOnError && errors.length > 0) {
|
|
45
|
+
reject(new AggregateError(errors));
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
isResolved = true;
|
|
49
|
+
if (0 === skippedIndexesMap.size) {
|
|
50
|
+
resolve(result);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const pureResult = [];
|
|
54
|
+
for (const [index, value] of result.entries())if (skippedIndexesMap.get(index) !== pMapSkip) pureResult.push(value);
|
|
55
|
+
resolve(pureResult);
|
|
56
|
+
}
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
resolvingCount++;
|
|
60
|
+
(async ()=>{
|
|
61
|
+
try {
|
|
62
|
+
const element = await nextItem.value;
|
|
63
|
+
if (isResolved) return;
|
|
64
|
+
const value = await mapper(element, index);
|
|
65
|
+
if (value === pMapSkip) skippedIndexesMap.set(index, value);
|
|
66
|
+
result[index] = value;
|
|
67
|
+
resolvingCount--;
|
|
68
|
+
await next();
|
|
69
|
+
} catch (error) {
|
|
70
|
+
if (stopOnError) reject(error);
|
|
71
|
+
else {
|
|
72
|
+
errors.push(error);
|
|
73
|
+
resolvingCount--;
|
|
74
|
+
try {
|
|
75
|
+
await next();
|
|
76
|
+
} catch (error) {
|
|
77
|
+
reject(error);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
})();
|
|
82
|
+
};
|
|
83
|
+
(async ()=>{
|
|
84
|
+
for(let index = 0; index < concurrency; index++){
|
|
85
|
+
try {
|
|
86
|
+
await next();
|
|
87
|
+
} catch (error) {
|
|
88
|
+
reject(error);
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
if (isIterableDone || isRejected) break;
|
|
92
|
+
}
|
|
93
|
+
})();
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
const pMapSkip = Symbol('skip');
|
|
97
|
+
}
|
|
98
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Task } from "../task";
|
|
2
|
+
export declare class ElectronInstall {
|
|
3
|
+
private task;
|
|
4
|
+
private rootDir;
|
|
5
|
+
private electronPath;
|
|
6
|
+
private platformPath;
|
|
7
|
+
private version;
|
|
8
|
+
constructor(task: Task);
|
|
9
|
+
private isInstalled;
|
|
10
|
+
private getPlatformPath;
|
|
11
|
+
install(): Promise<string>;
|
|
12
|
+
}
|