@percy/cli
Advanced tools
Comparing version 1.27.0 to 1.27.1-beta.0
@@ -99,2 +99,9 @@ import os from 'os'; | ||
} | ||
function formatFilepath(filepath) { | ||
/* istanbul ignore next */ | ||
if (!process.platform.startsWith('win')) { | ||
filepath = '/' + filepath; | ||
} | ||
return filepath; | ||
} | ||
@@ -148,3 +155,9 @@ // Imports and returns compatibile CLI commands from various sources | ||
let modulePath = path.join(pkgPath, cmdPath); | ||
let module = await import(url.pathToFileURL(modulePath).href); | ||
// Below code is used in scripts/build.sh to update href | ||
let module = null; | ||
if (process.env.NODE_ENV === 'executable') { | ||
module = await import(formatFilepath(modulePath)); | ||
} else { | ||
module = await import(url.pathToFileURL(modulePath).href); | ||
} | ||
(_module$default = module.default).packageInformation || (_module$default.packageInformation = pkg); | ||
@@ -151,0 +164,0 @@ return module.default; |
{ | ||
"name": "@percy/cli", | ||
"version": "1.27.0", | ||
"version": "1.27.1-beta.0", | ||
"license": "MIT", | ||
@@ -12,3 +12,3 @@ "repository": { | ||
"access": "public", | ||
"tag": "latest" | ||
"tag": "beta" | ||
}, | ||
@@ -35,13 +35,13 @@ "files": [ | ||
"dependencies": { | ||
"@percy/cli-app": "1.27.0", | ||
"@percy/cli-build": "1.27.0", | ||
"@percy/cli-command": "1.27.0", | ||
"@percy/cli-config": "1.27.0", | ||
"@percy/cli-exec": "1.27.0", | ||
"@percy/cli-snapshot": "1.27.0", | ||
"@percy/cli-upload": "1.27.0", | ||
"@percy/client": "1.27.0", | ||
"@percy/logger": "1.27.0" | ||
"@percy/cli-app": "1.27.1-beta.0", | ||
"@percy/cli-build": "1.27.1-beta.0", | ||
"@percy/cli-command": "1.27.1-beta.0", | ||
"@percy/cli-config": "1.27.1-beta.0", | ||
"@percy/cli-exec": "1.27.1-beta.0", | ||
"@percy/cli-snapshot": "1.27.1-beta.0", | ||
"@percy/cli-upload": "1.27.1-beta.0", | ||
"@percy/client": "1.27.1-beta.0", | ||
"@percy/logger": "1.27.1-beta.0" | ||
}, | ||
"gitHead": "3b92a894d4cf6dcdedccf42b86aaf61f331535c6" | ||
"gitHead": "fc67a213ca35419285cba8a8eb563cf5b4958420" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16797
278
2
5
+ Added@percy/cli-app@1.27.1-beta.0(transitive)
+ Added@percy/cli-build@1.27.1-beta.0(transitive)
+ Added@percy/cli-command@1.27.1-beta.0(transitive)
+ Added@percy/cli-config@1.27.1-beta.0(transitive)
+ Added@percy/cli-exec@1.27.1-beta.0(transitive)
+ Added@percy/cli-snapshot@1.27.1-beta.0(transitive)
+ Added@percy/cli-upload@1.27.1-beta.0(transitive)
+ Added@percy/client@1.27.1-beta.0(transitive)
+ Added@percy/config@1.27.1-beta.0(transitive)
+ Added@percy/core@1.27.1-beta.0(transitive)
+ Added@percy/dom@1.27.1-beta.0(transitive)
+ Added@percy/env@1.27.1-beta.0(transitive)
+ Added@percy/logger@1.27.1-beta.0(transitive)
+ Added@percy/sdk-utils@1.27.1-beta.0(transitive)
+ Added@percy/webdriver-utils@1.27.1-beta.0(transitive)
- Removed@percy/cli-app@1.27.0(transitive)
- Removed@percy/cli-build@1.27.0(transitive)
- Removed@percy/cli-command@1.27.0(transitive)
- Removed@percy/cli-config@1.27.0(transitive)
- Removed@percy/cli-exec@1.27.0(transitive)
- Removed@percy/cli-snapshot@1.27.0(transitive)
- Removed@percy/cli-upload@1.27.0(transitive)
- Removed@percy/client@1.27.0(transitive)
- Removed@percy/config@1.27.0(transitive)
- Removed@percy/core@1.27.0(transitive)
- Removed@percy/dom@1.27.0(transitive)
- Removed@percy/env@1.27.0(transitive)
- Removed@percy/logger@1.27.0(transitive)
- Removed@percy/sdk-utils@1.27.0(transitive)
- Removed@percy/webdriver-utils@1.27.0(transitive)
Updated@percy/cli-app@1.27.1-beta.0
Updated@percy/client@1.27.1-beta.0
Updated@percy/logger@1.27.1-beta.0