playwright 1.62.0 → 1.62.1-beta-1785253292000

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.
@@ -793,16 +793,13 @@ function loadTsConfig(configPath) {
793
793
  ${e.message}`);
794
794
  }
795
795
  }
796
- function resolveConfigFile(baseConfigFile, referencedConfigFile, kind) {
797
- const originalReferencedConfigFile = referencedConfigFile;
796
+ function resolveConfigFile(baseConfigFile, referencedConfigFile) {
798
797
  if (!referencedConfigFile.endsWith(".json"))
799
798
  referencedConfigFile += ".json";
800
799
  const currentDir = import_path4.default.dirname(baseConfigFile);
801
800
  let resolvedConfigFile = import_path4.default.resolve(currentDir, referencedConfigFile);
802
801
  if (referencedConfigFile.includes("/") && referencedConfigFile.includes(".") && !import_fs4.default.existsSync(resolvedConfigFile))
803
802
  resolvedConfigFile = import_path4.default.join(currentDir, "node_modules", referencedConfigFile);
804
- if (!import_fs4.default.existsSync(resolvedConfigFile))
805
- throw new Error(`Failed to resolve "${kind}" path "${originalReferencedConfigFile}" referenced from ${baseConfigFile}`);
806
803
  return resolvedConfigFile;
807
804
  }
808
805
  function innerLoadTsConfig(configFilePath, references, visited = /* @__PURE__ */ new Map()) {
@@ -819,7 +816,7 @@ function innerLoadTsConfig(configFilePath, references, visited = /* @__PURE__ */
819
816
  const parsedConfig = json5.parse(cleanedJson);
820
817
  const extendsArray = Array.isArray(parsedConfig.extends) ? parsedConfig.extends : parsedConfig.extends ? [parsedConfig.extends] : [];
821
818
  for (const extendedConfig of extendsArray) {
822
- const extendedConfigPath = resolveConfigFile(configFilePath, extendedConfig, "extends");
819
+ const extendedConfigPath = resolveConfigFile(configFilePath, extendedConfig);
823
820
  const base = innerLoadTsConfig(extendedConfigPath, references, visited);
824
821
  Object.assign(result2, base, { tsConfigPath: configFilePath });
825
822
  }
@@ -835,7 +832,7 @@ function innerLoadTsConfig(configFilePath, references, visited = /* @__PURE__ */
835
832
  result2.absoluteBaseUrl = import_path4.default.resolve(import_path4.default.dirname(configFilePath), parsedConfig.compilerOptions.baseUrl);
836
833
  }
837
834
  for (const ref of parsedConfig.references || [])
838
- references.push(innerLoadTsConfig(resolveConfigFile(configFilePath, ref.path, "references"), references, visited));
835
+ references.push(innerLoadTsConfig(resolveConfigFile(configFilePath, ref.path), references, visited));
839
836
  if (import_path4.default.basename(configFilePath) === "jsconfig.json" && result2.allowJs === void 0)
840
837
  result2.allowJs = true;
841
838
  return result2;
@@ -1,5 +1,5 @@
1
1
  # packages/playwright/lib/common/index.js
2
- # total: 114.4 KB
2
+ # total: 114.2 KB
3
3
 
4
4
  ## Inlined (20)
5
5
  12.0 KB packages/playwright/src/common/config.ts
@@ -20,7 +20,7 @@
20
20
  1.1 KB packages/playwright/src/transform/pirates.ts
21
21
  1.1 KB packages/playwright/src/transform/portTransport.ts
22
22
  12.3 KB packages/playwright/src/transform/transform.ts
23
- 3.2 KB packages/playwright/src/transform/tsconfig-loader.ts
23
+ 2.9 KB packages/playwright/src/transform/tsconfig-loader.ts
24
24
  7.0 KB packages/playwright/src/util.ts
25
25
 
26
26
  ## External (8)
@@ -4414,16 +4414,13 @@ function loadTsConfig(configPath) {
4414
4414
  ${e.message}`);
4415
4415
  }
4416
4416
  }
4417
- function resolveConfigFile(baseConfigFile, referencedConfigFile, kind) {
4418
- const originalReferencedConfigFile = referencedConfigFile;
4417
+ function resolveConfigFile(baseConfigFile, referencedConfigFile) {
4419
4418
  if (!referencedConfigFile.endsWith(".json"))
4420
4419
  referencedConfigFile += ".json";
4421
4420
  const currentDir = import_path2.default.dirname(baseConfigFile);
4422
4421
  let resolvedConfigFile = import_path2.default.resolve(currentDir, referencedConfigFile);
4423
4422
  if (referencedConfigFile.includes("/") && referencedConfigFile.includes(".") && !import_fs2.default.existsSync(resolvedConfigFile))
4424
4423
  resolvedConfigFile = import_path2.default.join(currentDir, "node_modules", referencedConfigFile);
4425
- if (!import_fs2.default.existsSync(resolvedConfigFile))
4426
- throw new Error(`Failed to resolve "${kind}" path "${originalReferencedConfigFile}" referenced from ${baseConfigFile}`);
4427
4424
  return resolvedConfigFile;
4428
4425
  }
4429
4426
  function innerLoadTsConfig(configFilePath, references, visited = /* @__PURE__ */ new Map()) {
@@ -4440,7 +4437,7 @@ function innerLoadTsConfig(configFilePath, references, visited = /* @__PURE__ */
4440
4437
  const parsedConfig = import_json5.default.parse(cleanedJson);
4441
4438
  const extendsArray = Array.isArray(parsedConfig.extends) ? parsedConfig.extends : parsedConfig.extends ? [parsedConfig.extends] : [];
4442
4439
  for (const extendedConfig of extendsArray) {
4443
- const extendedConfigPath = resolveConfigFile(configFilePath, extendedConfig, "extends");
4440
+ const extendedConfigPath = resolveConfigFile(configFilePath, extendedConfig);
4444
4441
  const base = innerLoadTsConfig(extendedConfigPath, references, visited);
4445
4442
  Object.assign(result2, base, { tsConfigPath: configFilePath });
4446
4443
  }
@@ -4456,7 +4453,7 @@ function innerLoadTsConfig(configFilePath, references, visited = /* @__PURE__ */
4456
4453
  result2.absoluteBaseUrl = import_path2.default.resolve(import_path2.default.dirname(configFilePath), parsedConfig.compilerOptions.baseUrl);
4457
4454
  }
4458
4455
  for (const ref of parsedConfig.references || [])
4459
- references.push(innerLoadTsConfig(resolveConfigFile(configFilePath, ref.path, "references"), references, visited));
4456
+ references.push(innerLoadTsConfig(resolveConfigFile(configFilePath, ref.path), references, visited));
4460
4457
  if (import_path2.default.basename(configFilePath) === "jsconfig.json" && result2.allowJs === void 0)
4461
4458
  result2.allowJs = true;
4462
4459
  return result2;
@@ -1,5 +1,5 @@
1
1
  # packages/playwright/lib/transform/esmLoader.js
2
- # total: 283.9 KB
2
+ # total: 283.6 KB
3
3
 
4
4
  ## Inlined (51)
5
5
  1.3 KB node_modules/balanced-match/dist/esm/index.js
@@ -47,7 +47,7 @@
47
47
  1.1 KB packages/playwright/src/transform/pirates.ts
48
48
  1.1 KB packages/playwright/src/transform/portTransport.ts
49
49
  11.7 KB packages/playwright/src/transform/transform.ts
50
- 3.2 KB packages/playwright/src/transform/tsconfig-loader.ts
50
+ 2.9 KB packages/playwright/src/transform/tsconfig-loader.ts
51
51
  4.7 KB packages/playwright/src/util.ts
52
52
  0.2 KB packages/utils/crypto.ts
53
53
  0.1 KB packages/utils/debug.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright",
3
- "version": "1.62.0",
3
+ "version": "1.62.1-beta-1785253292000",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "license": "Apache-2.0",
52
52
  "dependencies": {
53
- "playwright-core": "1.62.0"
53
+ "playwright-core": "1.62.1-beta-1785253292000"
54
54
  },
55
55
  "optionalDependencies": {
56
56
  "fsevents": "2.3.2"