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

@capacitor/cli

Package Overview
Dependencies
Maintainers
5
Versions
883
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor/cli - npm Package Compare versions

Comparing version 0.0.17 to 0.0.19

dist/util/emoji.js

3

dist/index.js

@@ -14,2 +14,3 @@ "use strict";

const doctor_1 = require("./tasks/doctor");
const emoji_1 = require("./util/emoji");
function run(process, cliBinDir) {

@@ -76,3 +77,3 @@ const config = new config_1.Config(process.platform, process.cwd(), cliBinDir);

const chalk = require('chalk');
console.log(`\n ⚡️ ${chalk.bold('Capacitor - Cross-Platform apps with JavaScript and the Web')} ⚡️`);
console.log(`\n ${emoji_1.emoji('⚡️', '--')} ${chalk.bold('Capacitor - Cross-Platform apps with JavaScript and the Web')} ${emoji_1.emoji('⚡️', '--')}`);
program.help();

@@ -79,0 +80,0 @@ }

@@ -13,5 +13,6 @@ "use strict";

else {
throw new Error('Xcode workspace does not exist. Run "capacitor create ios" to bootstrap a native ios project.');
throw new Error('Xcode workspace does not exist. ' +
'Run "capacitor add ios" to bootstrap a native ios project.');
}
}
exports.openIOS = openIOS;

@@ -41,3 +41,5 @@ "use strict";

fs_1.removeSync(cordovaPluginsJSFile);
plugins.filter(p => p.ios.type === 2 /* Cordova */).map(async (p) => {
const cordovaPlugins = plugins
.filter(p => p.ios.type === 2 /* Cordova */);
cordovaPlugins.map(async (p) => {
const pluginDir = path_1.join(pluginsDir, p.id, 'www');

@@ -54,3 +56,3 @@ fs_1.ensureDirSync(pluginDir);

});
fs_1.writeFileAsync(cordovaPluginsJSFile, generateCordovaPluginsJSFile(config, plugins, platform));
fs_1.writeFileAsync(cordovaPluginsJSFile, generateCordovaPluginsJSFile(config, cordovaPlugins, platform));
}

@@ -152,3 +154,3 @@ exports.copyPluginsJS = copyPluginsJS;

{
${pluginExports.join(',')}
${pluginExports.join(',\n')}
};

@@ -161,5 +163,11 @@ // BOTTOM OF METADATA

function getJSModules(p, platform) {
const modules = p.xml["js-module"];
let modules = [];
if (p.xml["js-module"]) {
modules = modules.concat(p.xml["js-module"]);
}
const platformModules = p.xml.platform.filter(function (item) { return item.$.name === platform; });
return modules.concat(platformModules[0]["js-module"]);
if (platformModules[0]["js-module"]) {
modules = modules.concat(platformModules[0]["js-module"]);
}
return modules;
}

@@ -9,2 +9,3 @@ "use strict";

const archive_1 = require("../util/archive");
const emoji_1 = require("../util/emoji");
const path_1 = require("path");

@@ -14,3 +15,3 @@ const chalk = require('chalk');

common_1.log('\n');
common_1.log(`${chalk.bold(`⚡️ Initializing Capacitor project in ${chalk.blue(config.app.rootDir)}`)} ⚡️`);
common_1.log(`${chalk.bold(`${emoji_1.emoji('⚡️', '*')} Initializing Capacitor project in ${chalk.blue(config.app.rootDir)}`)} ${emoji_1.emoji('⚡️', '*')}`);
common_1.log('\n');

@@ -54,3 +55,3 @@ try {

common_1.log('\n\n');
common_1.log(`🎈 ${chalk.bold('Adding Capacitor to an existing project is easy:')} 🎈`);
common_1.log(`${emoji_1.emoji('🎈', '*')} ${chalk.bold('Adding Capacitor to an existing project is easy:')} ${emoji_1.emoji('🎈', '*')}`);
common_1.log(`\nnpm install --save @capacitor/cli @capacitor/core`);

@@ -139,4 +140,4 @@ common_1.log(`\nnpm run capacitor add ios android`);

common_1.log('\n');
common_1.log(`${chalk.bold(`🎉 Your Capacitor project is ready to go! 🎉`)}\n`);
common_1.log(`${chalk.bold(`${emoji_1.emoji('🎉', '*')} Your Capacitor project is ready to go! ${emoji_1.emoji('🎉', '*')}`)}\n`);
common_1.log(`Follow the Getting Started guide for next steps:\n${chalk.bold(`https://capacitor.ionicframework.com/docs/getting-started`)}`);
}
{
"name": "@capacitor/cli",
"version": "0.0.17",
"version": "0.0.19",
"description": "Capacitor: Cross-platform apps with JavaScript and the web",

@@ -5,0 +5,0 @@ "homepage": "https://ionic-team.github.io/capacitor/",

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