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.1 to 0.1.2

__tests__/__snapshots__/index.tests.js.snap

7

CHANGELOG.md

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

## [0.1.2](https://github.com/apollosproject/cli/compare/v0.1.1...v0.1.2) (2022-06-03)
### Bug Fixes
* sets version checker to sync ([323449c](https://github.com/apollosproject/cli/commit/323449cd9e93f722b8abb6f8607db5e76c53f91a))
## [0.1.1](https://github.com/apollosproject/cli/compare/v0.1.0...v0.1.1) (2022-06-03)

@@ -7,0 +14,0 @@

27

index.js
#!/usr/bin/env node
import { dirname } from 'path';
import { fileURLToPath } from 'url';
import util from 'util';
import { exec as baseExec } from 'child_process';
import { execa } from 'execa';
import { execaSync } from 'execa';
import consola from 'consola';

@@ -13,2 +10,3 @@ import { program } from 'commander';

import version from './utils/get-version.cjs';
import scriptsDir from './utils/get-scripts-dir.cjs';
import makeMobileCommand from './commands/mobile/index.js';

@@ -18,5 +16,2 @@

// eslint-disable-next-line
const __dirname = dirname(fileURLToPath(import.meta.url));
program.name('apollos');

@@ -26,12 +21,8 @@ program.version(version);

// check version
(async () => {
const { stdout: latest } = await execa(
`${__dirname}/scripts/get-latest-version.sh`,
const { stdout: latest } = execaSync(`${scriptsDir}/get-latest-version.sh`);
if (latest !== version) {
consola.warn(
`Apollos CLI current version: ${version}. Newer version is available: ${latest}`,
);
if (latest !== version) {
consola.warn(
`Apollos CLI current version: ${version}. Newer version is available: ${latest}`,
);
}
})();
}

@@ -49,3 +40,3 @@ program.addCommand(makeMobileCommand());

if (options.d) {
exec(`${__dirname}/scripts/secrets.sh -d ${password}`).then(
exec(`${scriptsDir}/secrets.sh -d ${password}`).then(
({ stdout, stderr }) => {

@@ -62,3 +53,3 @@ if (stdout) {

if (options.e) {
exec(`${__dirname}/scripts/secrets.sh -e ${password}`).then(
exec(`${scriptsDir}/secrets.sh -e ${password}`).then(
({ stdout, stderr }) => {

@@ -65,0 +56,0 @@ if (stdout) {

{
"name": "@apollosproject/cli",
"version": "0.1.1",
"version": "0.1.2",
"repository": "github:apollosproject/cli",

@@ -12,2 +12,4 @@ "description": "",

"scripts": {
"lint": "eslint .",
"test": "jest",
"release": "standard-version"

@@ -25,2 +27,3 @@ },

"scripts": {
"prerelease": "yarn test -t version -u",
"postchangelog": "sed -i \"\" \"s/### \\[/## \\[/g\" CHANGELOG.md",

@@ -43,5 +46,7 @@ "posttag": "git push --follow-tags origin master && yarn publish . && gh-release --yes"

"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.4.6",
"gh-release": "^6.0.4",
"jest": "^28.1.0",
"standard-version": "^9.3.2"
}
}

Sorry, the diff of this file is not supported yet

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