Socket
Socket
Sign inDemoInstall

@capacitor/cli

Package Overview
Dependencies
Maintainers
5
Versions
847
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.14 to 0.0.15

bin/my-app/.git/config

4

assets/app-template/public/js/capacitor-welcome.js
window.customElements.define('capacitor-welcome', class extends HTMLElement {
constructor() {
super();
Capacitor.Plugins.SplashScreen.hide();
const root =this.attachShadow({ mode: 'closed' });
const root = this.attachShadow({ mode: 'closed' });

@@ -7,0 +9,0 @@ root.innerHTML = `

@@ -82,6 +82,2 @@ "use strict";

this.mergeConfigData();
// TODO: remove this code
// Once Capacitor library is released as a cocoapods package, this code is not needed
const capacitorRuntimePath = path_1.join(this.cli.assetsDir, 'Capacitor');
this.ios.capacitorRuntimePod = `pod 'Capacitor', :path => '${capacitorRuntimePath}'`;
}

@@ -88,0 +84,0 @@ catch (e) {

@@ -82,6 +82,8 @@ "use strict";

if (needsUpdate) {
common_2.log('Doing pod update');
await common_2.runCommand(`cd ${config.ios.name} && cd ${projectName} && pod update`);
}
else {
await common_2.runCommand(`cd ${config.ios.name} && cd ${projectName} &&pod install`);
common_2.log('Not doing pod update');
await common_2.runCommand(`cd ${config.ios.name} && cd ${projectName} && pod install`);
}

@@ -88,0 +90,0 @@ }

@@ -34,4 +34,13 @@ "use strict";

}
await copyNativeBridge(config, config.ios.webDir);
}
exports.copy = copy;
async function copyNativeBridge(config, nativeAbsDir) {
const bridgePath = path_1.resolve('node_modules', '@capacitor/core', 'native-bridge.js');
if (!fs_1.existsAsync(bridgePath)) {
common_1.logFatal(`Unable to find node_modules/@capacitor/core/native-bridge.js. Are you sure`, '@capacitor/core is installed? This file is required for Capacitor to function');
return;
}
return await fs_extra_1.copy(bridgePath, path_1.join(nativeAbsDir, 'native-bridge.js'));
}
async function copyWebDir(config, nativeAbsDir) {

@@ -38,0 +47,0 @@ var chalk = require('chalk');

@@ -12,3 +12,3 @@ "use strict";

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

@@ -15,0 +15,0 @@ try {

{
"name": "@capacitor/cli",
"version": "0.0.14",
"version": "0.0.15",
"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