playwright 1.42.0 → 1.42.1
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.
|
@@ -77,7 +77,8 @@ function resolveConfigFile(baseConfigFile, referencedConfigFile) {
|
|
|
77
77
|
if (!referencedConfigFile.endsWith('.json')) referencedConfigFile += '.json';
|
|
78
78
|
const currentDir = path.dirname(baseConfigFile);
|
|
79
79
|
let resolvedConfigFile = path.resolve(currentDir, referencedConfigFile);
|
|
80
|
-
|
|
80
|
+
// TODO: I don't see how this makes sense, delete in the next minor release.
|
|
81
|
+
if (referencedConfigFile.includes('/') && referencedConfigFile.includes('.') && !fs.existsSync(resolvedConfigFile)) resolvedConfigFile = path.join(currentDir, 'node_modules', referencedConfigFile);
|
|
81
82
|
return resolvedConfigFile;
|
|
82
83
|
}
|
|
83
84
|
function loadTsConfig(configFilePath, references, visited = new Map()) {
|
|
@@ -86,6 +87,7 @@ function loadTsConfig(configFilePath, references, visited = new Map()) {
|
|
|
86
87
|
let result = {
|
|
87
88
|
tsConfigPath: configFilePath
|
|
88
89
|
};
|
|
90
|
+
// Retain result instance below, so that caching works.
|
|
89
91
|
visited.set(configFilePath, result);
|
|
90
92
|
if (!fs.existsSync(configFilePath)) return result;
|
|
91
93
|
const configString = fs.readFileSync(configFilePath, 'utf-8');
|
|
@@ -102,21 +104,19 @@ function loadTsConfig(configFilePath, references, visited = new Map()) {
|
|
|
102
104
|
const extendsDir = path.dirname(extendedConfig);
|
|
103
105
|
base.baseUrl = path.join(extendsDir, base.baseUrl);
|
|
104
106
|
}
|
|
105
|
-
result
|
|
106
|
-
|
|
107
|
-
...base,
|
|
107
|
+
// Retain result instance, so that caching works.
|
|
108
|
+
Object.assign(result, base, {
|
|
108
109
|
tsConfigPath: configFilePath
|
|
109
|
-
};
|
|
110
|
+
});
|
|
110
111
|
}
|
|
111
112
|
const loadedConfig = Object.fromEntries(Object.entries({
|
|
112
113
|
baseUrl: (_parsedConfig$compile = parsedConfig.compilerOptions) === null || _parsedConfig$compile === void 0 ? void 0 : _parsedConfig$compile.baseUrl,
|
|
113
114
|
paths: (_parsedConfig$compile2 = parsedConfig.compilerOptions) === null || _parsedConfig$compile2 === void 0 ? void 0 : _parsedConfig$compile2.paths,
|
|
114
115
|
allowJs: parsedConfig === null || parsedConfig === void 0 || (_parsedConfig$compile3 = parsedConfig.compilerOptions) === null || _parsedConfig$compile3 === void 0 ? void 0 : _parsedConfig$compile3.allowJs
|
|
115
116
|
}).filter(([, value]) => value !== undefined));
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
};
|
|
117
|
+
|
|
118
|
+
// Retain result instance, so that caching works.
|
|
119
|
+
Object.assign(result, loadedConfig);
|
|
120
120
|
for (const ref of parsedConfig.references || []) references.push(loadTsConfig(resolveConfigFile(configFilePath, ref.path), references, visited));
|
|
121
121
|
if (path.basename(configFilePath) === 'jsconfig.json' && result.allowJs === undefined) result.allowJs = true;
|
|
122
122
|
return result;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright",
|
|
3
|
-
"version": "1.42.
|
|
3
|
+
"version": "1.42.1",
|
|
4
4
|
"description": "A high-level API to automate web browsers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"license": "Apache-2.0",
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"playwright-core": "1.42.
|
|
61
|
+
"playwright-core": "1.42.1"
|
|
62
62
|
},
|
|
63
63
|
"optionalDependencies": {
|
|
64
64
|
"fsevents": "2.3.2"
|