Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@titanium/tiapp-xml

Package Overview
Dependencies
Maintainers
3
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@titanium/tiapp-xml - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

29

cli/install-module.js

@@ -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",

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