New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

playwright

Package Overview
Dependencies
Maintainers
4
Versions
4841
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playwright - npm Package Compare versions

Comparing version 1.52.0-alpha-2025-03-03 to 1.52.0-alpha-2025-03-04

15

lib/plugins/gitCommitInfoPlugin.js

@@ -66,3 +66,4 @@ "use strict";

title: json.pull_request.title,
number: json.pull_request.number
number: json.pull_request.number,
baseHash: json.pull_request.base.sha
};

@@ -76,3 +77,3 @@ } catch {}

commitHash: process.env.GITHUB_SHA,
baseHash: process.env.GITHUB_BASE_REF,
baseHash: pr ? pr.baseHash : process.env.GITHUB_BASE_REF,
branch: process.env.GITHUB_REF_NAME

@@ -149,10 +150,6 @@ };

const diffLimit = 100_000;
if (ci) {
if (ci !== null && ci !== void 0 && ci.baseHash) {
// First try the diff against the base branch.
const diff = await runGit(`git diff ${ci.baseHash}`, gitDir);
const diff = await runGit(`git fetch origin ${ci.baseHash} && git diff ${ci.baseHash} HEAD`, gitDir);
if (diff) return diff.substring(0, diffLimit);
// Grow history for shallow checkout.
const output = await runGit('git fetch --deepen=1 && git show HEAD', gitDir);
return output === null || output === void 0 ? void 0 : output.substring(0, diffLimit);
}

@@ -175,3 +172,3 @@

});
if (result.code) {
if (process.env.DEBUG_GIT_COMMIT_INFO && result.code) {
// eslint-disable-next-line no-console

@@ -178,0 +175,0 @@ console.error(`Failed to run ${command}: ${result.stderr}`);

16

lib/worker/testInfo.js

@@ -6,3 +6,3 @@ "use strict";

});
exports.TestStepInfoImpl = exports.TestInfoImpl = exports.SkipError = void 0;
exports.TestStepInfoImpl = exports.TestSkipError = exports.TestInfoImpl = exports.StepSkipError = void 0;
var _fs = _interopRequireDefault(require("fs"));

@@ -173,3 +173,3 @@ var _path = _interopRequireDefault(require("path"));

this.expectedStatus = 'skipped';
throw new SkipError('Test is skipped: ' + (description || ''));
throw new TestSkipError('Test is skipped: ' + (description || ''));
} else if (type === 'fail') {

@@ -303,3 +303,3 @@ if (this.expectedStatus !== 'skipped') this.expectedStatus = 'failed';

} catch (e) {
if (this._allowSkips && e instanceof SkipError) {
if (this._allowSkips && e instanceof TestSkipError) {
if (this.status === 'passed') this.status = 'skipped';

@@ -436,3 +436,3 @@ } else {

} catch (e) {
if (e instanceof SkipError) return undefined;
if (e instanceof StepSkipError) return undefined;
throw e;

@@ -456,8 +456,10 @@ }

});
throw new SkipError(description);
throw new StepSkipError(description);
}
}
exports.TestStepInfoImpl = TestStepInfoImpl;
class SkipError extends Error {}
exports.SkipError = SkipError;
class TestSkipError extends Error {}
exports.TestSkipError = TestSkipError;
class StepSkipError extends Error {}
exports.StepSkipError = StepSkipError;
const stepSymbol = Symbol('step');

@@ -536,3 +536,3 @@ "use strict";

// Skip in beforeAll/modifier prevents others from running.
if (type === 'beforeAll' && error instanceof _testInfo.SkipError) break;
if (type === 'beforeAll' && error instanceof _testInfo.TestSkipError) break;
if (type === 'beforeAll' && !this._skipRemainingTestsInSuite) {

@@ -578,3 +578,3 @@ // This will inform dispatcher that we should not run more tests from this group

// Skip in modifier prevents others from running.
if (error instanceof _testInfo.SkipError) break;
if (error instanceof _testInfo.TestSkipError) break;
}

@@ -581,0 +581,0 @@ }

{
"name": "playwright",
"version": "1.52.0-alpha-2025-03-03",
"version": "1.52.0-alpha-2025-03-04",
"description": "A high-level API to automate web browsers",

@@ -59,3 +59,3 @@ "repository": {

"dependencies": {
"playwright-core": "1.52.0-alpha-2025-03-03"
"playwright-core": "1.52.0-alpha-2025-03-04"
},

@@ -62,0 +62,0 @@ "optionalDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc