New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

neonctl

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neonctl - npm Package Compare versions

Comparing version 0.3.3 to 0.4.0

4

package.json
{
"name": "neonctl",
"version": "0.3.3",
"version": "0.4.0",
"description": "CLI tool for NeonDB Cloud management",

@@ -37,4 +37,4 @@ "main": "index.js",

"start": "node index.js",
"publizh": "npm run build && cd dist && npm publish"
"publizh": "npm run build && cd dist && npm publish && git push"
}
}

@@ -14,5 +14,8 @@ "use strict";

const node_path_1 = require("node:path");
const node_os_1 = require("node:os");
const node_fs_1 = require("node:fs");
const DIR_NAME = '.neonctl';
exports.defaultDir = (0, node_path_1.join)(process.cwd(), DIR_NAME);
const cwdDir = (0, node_path_1.join)(process.cwd(), DIR_NAME);
const homeConfigDir = (0, node_path_1.join)((0, node_os_1.homedir)(), process.env.XDG_CONFIG_HOME || '.config', DIR_NAME);
exports.defaultDir = (0, node_fs_1.existsSync)(cwdDir) ? cwdDir : homeConfigDir;
const ensureConfigDir = ({ 'config-dir': configDir, }) => __awaiter(void 0, void 0, void 0, function* () {

@@ -19,0 +22,0 @@ if (!(0, node_fs_1.existsSync)(configDir)) {

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

yargs.showHelp();
process.exit(0);
}

@@ -88,4 +89,3 @@ };

})
.middleware(auth_1.ensureAuth)
.command('me', 'Get user info', (yargs) => yargs, (args) => __awaiter(void 0, void 0, void 0, function* () {
.command('me', 'Get user info', (yargs) => yargs.middleware(auth_1.ensureAuth), (args) => __awaiter(void 0, void 0, void 0, function* () {
yield (yield Promise.resolve().then(() => __importStar(require('./commands/users')))).me(args);

@@ -107,3 +107,4 @@ }))

}))
.middleware(showHelpMiddleware);
.middleware(showHelpMiddleware)
.middleware(auth_1.ensureAuth);
}))

@@ -124,3 +125,4 @@ .strict()

yargs.showHelp();
process.exit(0);
}
}))();
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