@expo/xcpretty
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -67,2 +67,14 @@ "use strict"; | ||
const moduleNameTag = this.getPkgName('', target); | ||
if (scriptName === 'Start Packager') { | ||
const port = process.env.RCT_METRO_PORT || '8081'; | ||
const isDisabled = isTruthy(process.env.RCT_NO_LAUNCH_PACKAGER); | ||
const status = isDisabled ? 'disabled' : `http://localhost:${port}`; | ||
// Add some insight into if the bundler was started or not, and which port was used. | ||
if (isDisabled) { | ||
scriptName = chalk_1.default.gray(`${scriptName} (disabled)`); | ||
} | ||
else { | ||
scriptName = scriptName + chalk_1.default.gray(` on ${status}`); | ||
} | ||
} | ||
return Formatter_1.Formatter.format('Executing', [moduleNameTag, Formatter_1.Formatter.formatBreadCrumb(scriptName, target, project)] | ||
@@ -127,2 +139,5 @@ .filter(Boolean) | ||
}; | ||
function isTruthy(value) { | ||
return value === 'true' || value === 1 || value === '1'; | ||
} | ||
//# sourceMappingURL=ExpoRunFormatter.js.map |
{ | ||
"name": "@expo/xcpretty", | ||
"description": "Parse and format xcodebuild logs", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"main": "build/index.js", | ||
@@ -6,0 +6,0 @@ "types": "build/index.d.ts", |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
203694
2428
5