@titanium/tiapp-xml
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -21,15 +21,6 @@ #!/usr/bin/env node | ||
if (!args.length && process.env.npm_package_name) { | ||
var platforms = process.env.npm_package_titanium_platform; | ||
var platforms = getPlatforms(); | ||
if (!platforms) { | ||
console.error('titanium.platform not defined in package.json for package: ' + process.env.npm_package_name); | ||
process.exit(1); | ||
} | ||
removeModule(process.env.npm_package_name); | ||
if (!Array.isArray(platforms)) { | ||
platforms = [ platforms ]; | ||
} | ||
platforms.forEach(platform => { | ||
removeModule(process.env.npm_package_name, platform); | ||
addModule(process.env.npm_package_name, platform, process.env.npm_package_version); | ||
@@ -60,1 +51,17 @@ }); | ||
} | ||
function getPlatforms() { | ||
var platforms = []; | ||
process.env.npm_package_titanium_platform_0 && platforms.push(process.env.npm_package_titanium_platform_0); | ||
process.env.npm_package_titanium_platform_1 && platforms.push(process.env.npm_package_titanium_platform_1); | ||
process.env.npm_package_titanium_platform_2 && platforms.push(process.env.npm_package_titanium_platform_2); | ||
if (!platforms.length) { | ||
console.error('titanium.platform not defined in package.json for package: ' + process.env.npm_package_name); | ||
process.exit(1); | ||
} | ||
return platforms; | ||
} |
@@ -21,16 +21,6 @@ #!/usr/bin/env node | ||
if (!args.length && process.env.npm_package_name) { | ||
var platforms = process.env.npm_package_titanium_platform; | ||
var platforms = getPlatforms(); | ||
if (!platforms) { | ||
console.error('titanium.platform not defined in package.json for package: ' + process.env.npm_package_name); | ||
process.exit(1); | ||
} | ||
removeModule(process.env.npm_package_name); | ||
if (!Array.isArray(platforms)) { | ||
platforms = [ platforms ]; | ||
} | ||
platforms.forEach(platform => { | ||
removeModule(process.env.npm_package_name, platform, process.env.npm_package_version); | ||
removeModule(process.env.npm_package_name, platform); | ||
}); | ||
@@ -49,1 +39,18 @@ | ||
} | ||
function getPlatforms() { | ||
var platforms = []; | ||
process.env.npm_package_titanium_platform_0 && platforms.push(process.env.npm_package_titanium_platform_0); | ||
process.env.npm_package_titanium_platform_1 && platforms.push(process.env.npm_package_titanium_platform_1); | ||
process.env.npm_package_titanium_platform_2 && platforms.push(process.env.npm_package_titanium_platform_2); | ||
if (!platforms.length) { | ||
console.error('titanium.platform not defined in package.json for package: ' + process.env.npm_package_name); | ||
process.exit(1); | ||
} | ||
return platforms; | ||
} |
{ | ||
"name": "@titanium/tiapp-xml", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Titanium tiapp.xml parsing and manipulation API - Fork from tonylukasavage", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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 3 instances 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
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
35111
610
25