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

@trayio/cdk-cli

Package Overview
Dependencies
Maintainers
4
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trayio/cdk-cli - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

dist/test.d.ts

2

dist/add-operation.d.ts
import { Command } from '@oclif/core';
export declare const titleCase: (value: string) => string;
export declare const pascalCase: (value: string) => string;
export default class ConnectorOperationAdd extends Command {
export default class AddOperation extends Command {
static description: string;

@@ -6,0 +6,0 @@ static args: {

@@ -38,6 +38,6 @@ "use strict";

};
class ConnectorOperationAdd extends core_1.Command {
class AddOperation extends core_1.Command {
run() {
return __awaiter(this, void 0, void 0, function* () {
const { args } = yield this.parse(ConnectorOperationAdd);
const { args } = yield this.parse(AddOperation);
const promptRes = yield inquirer_1.default.prompt([

@@ -84,8 +84,8 @@ {

})();
this.log(chalk_1.default.bold(chalk_1.default.green(`Success! Added operation: ${operationName}`)));
this.log(chalk_1.default.bold(chalk_1.default.green(`Success! Added operation: ${operationNameKebabCase}`)));
});
}
}
ConnectorOperationAdd.description = 'Add an operation to connector project';
ConnectorOperationAdd.args = {
AddOperation.description = 'Add an operation to connector project';
AddOperation.args = {
operationName: core_1.Args.string({

@@ -103,2 +103,2 @@ name: 'Operation name',

};
exports.default = ConnectorOperationAdd;
exports.default = AddOperation;
import { Command } from '@oclif/core';
export declare const titleCase: (value: string) => string;
export declare const pascalCase: (value: string) => string;
export default class ConnectorInit extends Command {
export default class Init extends Command {
static description: string;

@@ -9,4 +9,7 @@ static args: {

};
static flags: {
install: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
};
run(): Promise<void>;
}
//# sourceMappingURL=init.d.ts.map

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

const lodash_1 = require("lodash");
const child_process_1 = require("child_process");
// TODO add to try-common in ts-modules

@@ -28,6 +29,6 @@ const titleCase = (value) => (0, lodash_1.capitalize)((0, lodash_1.startCase)(value).replace(/_|-/g, ' '));

exports.pascalCase = pascalCase;
class ConnectorInit extends core_1.Command {
class Init extends core_1.Command {
run() {
return __awaiter(this, void 0, void 0, function* () {
const { args } = yield this.parse(ConnectorInit);
const { args, flags } = yield this.parse(Init);
const promptRes = yield inquirer_1.default.prompt([

@@ -56,7 +57,20 @@ {

this.log(chalk_1.default.bold(chalk_1.default.green(`Success! Added ${connectorNameKebabCase}`)));
if (flags.install) {
try {
this.log(chalk_1.default.bold(chalk_1.default.gray('Running npm install...')));
(0, child_process_1.execSync)(`cd ${connectorNameKebabCase} && npm install`, {
stdio: 'inherit',
});
}
catch (error) {
if (error instanceof Error) {
this.error(new Error(error.message));
}
}
}
});
}
}
ConnectorInit.description = 'Initialize a connector project';
ConnectorInit.args = {
Init.description = 'Initialize a connector project';
Init.args = {
connectorName: core_1.Args.string({

@@ -68,2 +82,8 @@ name: 'Connector directory name',

};
exports.default = ConnectorInit;
Init.flags = {
install: core_1.Flags.boolean({
char: 'i',
description: 'Runs `npm install` after successful generation',
}),
};
exports.default = Init;
{
"version": "0.0.9",
"version": "0.0.10",
"commands": {

@@ -47,3 +47,11 @@ "add-operation": {

"aliases": [],
"flags": {},
"flags": {
"install": {
"name": "install",
"type": "boolean",
"char": "i",
"description": "Runs `npm install` after successful generation",
"allowNo": false
}
},
"args": {

@@ -56,4 +64,15 @@ "connectorName": {

}
},
"test": {
"id": "test",
"description": "Build and test connector project",
"strict": true,
"pluginName": "@trayio/cdk-cli",
"pluginAlias": "@trayio/cdk-cli",
"pluginType": "core",
"aliases": [],
"flags": {},
"args": {}
}
}
}
{
"name": "@trayio/cdk-cli",
"version": "0.0.9",
"version": "0.0.10",
"description": "A collection of CLI commands for connector development.",

@@ -5,0 +5,0 @@ "exports": {

@@ -27,3 +27,3 @@ # @trayio/connector-cli

$ tray-cdk (--version|-v)
@trayio/cdk-cli/0.0.9 linux-x64 node-v18.17.0
@trayio/cdk-cli/0.0.10 linux-x64 node-v18.17.0
$ tray-cdk --help [COMMAND]

@@ -44,2 +44,3 @@ USAGE

* [`tray-cdk init [CONNECTORNAME]`](#tray-cdk-init-connectorname)
* [`tray-cdk test`](#tray-cdk-test)
* [`tray-cdk version`](#tray-cdk-version)

@@ -125,3 +126,3 @@

USAGE
$ tray-cdk init [CONNECTORNAME]
$ tray-cdk init [CONNECTORNAME] [-i]

@@ -131,2 +132,5 @@ ARGUMENTS

FLAGS
-i, --install Runs `npm install` after successful generation
DESCRIPTION

@@ -136,2 +140,14 @@ Initialize a connector project

## `tray-cdk test`
Build and test connector project
```
USAGE
$ tray-cdk test
DESCRIPTION
Build and test connector project
```
## `tray-cdk version`

@@ -138,0 +154,0 @@

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