@intuned/runtime-dev 1.3.6-brave.0 → 1.3.6-brave.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.
@@ -152,32 +152,6 @@ const validateIntunedProject = async () => {
152
152
  };
153
153
  }
154
154
  }
155
- }, {
156
- name: "package.json",
157
- check: async () => {
158
- try {
159
- const packageJsonPath = path.join(currentDirectoryToSave, "package.json");
160
- await fs.exists(packageJsonPath);
161
- const packageJson = JSON.parse(await fs.readFile(packageJsonPath, {
162
- encoding: "utf-8"
163
- }));
164
- const userCodePlaywrightVersion = packageJson.dependencies?.playwright;
165
- if (userCodePlaywrightVersion !== _constants.CURRENT_PLAYWRIGHT_VERSION) {
166
- return {
167
- isValid: false,
168
- errorMessage: `Playwright version mismatch: expected ${_constants.CURRENT_PLAYWRIGHT_VERSION}, found ${userCodePlaywrightVersion || "none"}`
169
- };
170
- }
171
- return {
172
- isValid: true
173
- };
174
- } catch (error) {
175
- return {
176
- isValid: false,
177
- errorMessage: "Package.json file not found or cannot be read"
178
- };
179
- }
180
- }
181
155
  }, {
182
156
  name: intunedSettingsFile.name,
183
157
  check: async () => {
@@ -290,9 +290,10 @@ async function getRemotePlaywrightContext(cdpAddress) {
290
290
  }
291
291
  async function getExecutablePath() {
292
292
  if (process.env.BROWSER_TYPE === "brave") {
293
- return (await (0, _which.default)("brave-browser-stable", {
293
+ const bravePath = await (0, _which.default)("brave-browser-stable", {
294
294
  nothrow: true
295
- })) || undefined;
295
+ });
296
+ return bravePath ?? undefined;
296
297
  }
297
298
  return undefined;
298
299
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.3.6-brave.0",
3
+ "version": "1.3.6-brave.2",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",