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

@apollosproject/cli

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollosproject/cli - npm Package Compare versions

Comparing version 0.1.6 to 0.2.0

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # Changelog

## [0.2.0](https://github.com/apollosproject/cli/compare/v0.1.6...v0.2.0) (2022-07-05)
### ⚠ BREAKING CHANGES
* remove mobile versions and mobile init commands
* remove mobile versions and mobile init commands ([4264533](https://github.com/apollosproject/cli/commit/426453323de3303143b5ea2bbe60b7ba517d6862))
## [0.1.6](https://github.com/apollosproject/cli/compare/v0.1.5...v0.1.6) (2022-06-28)

@@ -7,0 +16,0 @@

2

package.json
{
"name": "@apollosproject/cli",
"version": "0.1.6",
"version": "0.2.0",
"repository": "github:apollosproject/cli",

@@ -5,0 +5,0 @@ "description": "",

@@ -16,66 +16,67 @@ import { Command } from 'commander';

mobile
.command('init')
.description('Create new mobile app')
.action(() => {
const questions = [
{
type: 'text',
name: 'appName',
message: 'App name?',
},
{
type: 'text',
name: 'iosID',
message: 'iOS Bundle Identifier?',
initial: (prev) => `com.apollos.${prev.toLowerCase().replace(/ /g, '-')}`,
validate: (value) => (value.match(/[A-Za-z0-9-.]+/)[0] === value
? true
: 'Alphanumeric, hyphens, and periods only!'),
},
{
type: 'text',
name: 'androidID',
message: 'Android App ID?',
initial: (prev) => prev,
validate: (value) => (value.match(/[A-Za-z0-9-.]+/)[0] === value
? true
: 'Alphanumeric, hyphens, and periods only!'),
},
{
type: 'text',
name: 'serverURL',
message: 'Server URL?',
validate: (value) => (value.match(/^http.*/)[0] === value ? true : 'Must be a valid URL!'),
},
{
type: 'text',
name: 'googleMapsKey',
message: 'Google Maps API Key?',
},
{
type: 'text',
name: 'encryptionKey',
message: 'Encryption Key?',
},
];
// TODO remove once we confirm we no longer create apps this way
// mobile
// .command('init')
// .description('Create new mobile app')
// .action(() => {
// const questions = [
// {
// type: 'text',
// name: 'appName',
// message: 'App name?',
// },
// {
// type: 'text',
// name: 'iosID',
// message: 'iOS Bundle Identifier?',
// initial: (prev) => `com.apollos.${prev.toLowerCase().replace(/ /g, '-')}`,
// validate: (value) => (value.match(/[A-Za-z0-9-.]+/)[0] === value
// ? true
// : 'Alphanumeric, hyphens, and periods only!'),
// },
// {
// type: 'text',
// name: 'androidID',
// message: 'Android App ID?',
// initial: (prev) => prev,
// validate: (value) => (value.match(/[A-Za-z0-9-.]+/)[0] === value
// ? true
// : 'Alphanumeric, hyphens, and periods only!'),
// },
// {
// type: 'text',
// name: 'serverURL',
// message: 'Server URL?',
// validate: (value) => (value.match(/^http.*/)[0] === value ? true : 'Must be a valid URL!'),
// },
// {
// type: 'text',
// name: 'googleMapsKey',
// message: 'Google Maps API Key?',
// },
// {
// type: 'text',
// name: 'encryptionKey',
// message: 'Encryption Key?',
// },
// ];
(async () => {
const response = await prompts(questions);
if (Object.keys(response).length === questions.length) {
try {
execa(`${scriptsDir}/create-mobile.sh`, [
response.appName,
response.iosID,
response.androidID,
response.serverURL,
response.googleMapsKey,
response.encryptionKey,
]).stdout.pipe(process.stdout);
} catch (e) {
console.log(e);
}
}
})();
});
// (async () => {
// const response = await prompts(questions);
// if (Object.keys(response).length === questions.length) {
// try {
// execa(`${scriptsDir}/create-mobile.sh`, [
// response.appName,
// response.iosID,
// response.androidID,
// response.serverURL,
// response.googleMapsKey,
// response.encryptionKey,
// ]).stdout.pipe(process.stdout);
// } catch (e) {
// console.log(e);
// }
// }
// })();
// });

@@ -87,27 +88,28 @@ mobile

mobile
.command('versions')
.description('Get current App Store and Play Store versions')
.action(() => {
const questions = [
{
type: 'text',
name: 'appleID',
message: 'Apple ID?',
},
];
(async () => {
const response = await prompts(questions);
if (Object.keys(response).length === 1) {
try {
execa(`${scriptsDir}/get-mobile-versions.sh`, [
response.appleID,
]).stdout.pipe(process.stdout);
} catch (e) {
console.log(e);
}
}
})();
});
// TODO broken
// mobile
// .command('versions')
// .description('Get current App Store and Play Store versions')
// .action(() => {
// const questions = [
// {
// type: 'text',
// name: 'appleID',
// message: 'Apple ID?',
// },
// ];
// (async () => {
// const response = await prompts(questions);
// if (Object.keys(response).length === 1) {
// try {
// execa(`${scriptsDir}/get-mobile-versions.sh`, [
// response.appleID,
// ]).stdout.pipe(process.stdout);
// } catch (e) {
// console.log(e);
// }
// }
// })();
// });
return mobile;
};

Sorry, the diff of this file is not supported yet

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