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

@titanium/tiapp-xml

Package Overview
Dependencies
Maintainers
1
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 1.0.0 to 1.0.1

cli/main.js

16

cli/install-module.js
#!/usr/bin/env node
const path = require(`path`);
const args = process.argv.slice(2);
// const args = process.argv.slice(2);
const get = require(`lodash.get`);
if (!args.length && !process.env.npm_package_name) {
console.error(`No parameters specified and not run from npm package script`);
process.exit(1);
}
// if (!args.length && !process.env.npm_package_name) {
// console.error(`No parameters specified and not run from npm package script`);
// process.exit(1);
// }
const cwd = args[args.length - 1];
// const cwd = args[args.length - 1];
const tiappDir = require(`../tiapp-dir`);
// const root = tiappDir.sync(__dirname);
const root = tiappDir.sync(cwd);
const root = tiappDir.sync(process.env.INIT_CWD);
if (!root) {
console.error(`Could not find tiapp.xml in directory tree: ${cwd}`);
console.error(`Could not find tiapp.xml in directory tree: ${process.env.INIT_CWD}`);
process.exit(1);

@@ -20,0 +20,0 @@ }

#!/usr/bin/env node
const path = require(`path`);
const args = process.argv.slice(2);
// const args = process.argv.slice(2);
const get = require(`lodash.get`);
if (!args.length && !process.env.npm_package_name) {
console.error(`No parameters specified and not run from npm package script`);
process.exit(1);
}
const cwd = args[args.length - 1];
// if (!args.length && !process.env.npm_package_name) {
// console.error(`No parameters specified and not run from npm package script`);
// process.exit(1);
// }
// const cwd = args[args.length - 1];
const tiappDir = require(`../lib/tiapp-dir`);
const root = tiappDir.sync(cwd);
const root = tiappDir.sync(process.env.INIT_CWD);
if (!root) {
console.error(`Could not find tiapp.xml in directory tree: ${cwd}`);
console.error(`Could not find tiapp.xml in directory tree: ${process.env.INIT_CWD}`);
process.exit(1);

@@ -18,0 +19,0 @@ }

{
"name": "@titanium/tiapp-xml",
"version": "1.0.0",
"version": "1.0.1",
"description": "Titanium tiapp.xml parsing and manipulation API - Forked from tonylukasavage",

@@ -26,8 +26,5 @@ "license": "MIT",

"test": "npm install --ignore-scripts && npm run list-files",
"prepublishOnly2": "git pull && bump"
"prepublishOnly": "git pull && bump"
},
"bin": {
"tiapp-install-module": "./cli/install-module.js",
"tiapp-uninstall-module": "./cli/uninstall-module.js"
},
"bin": "./cli/main.js",
"repository": {

@@ -34,0 +31,0 @@ "type": "git",

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