@vonage/cli
Advanced tools
Comparing version
@@ -1,12 +0,22 @@ | ||
#!/usr/bin/env node | ||
#!/usr/bin/env ts-node | ||
const oclif = require('@oclif/core') | ||
/* eslint-disable node/shebang */ | ||
const path = require('path') | ||
const project = path.join(__dirname, '..', 'tsconfig.json') | ||
import oclif from '@oclif/core' | ||
import path from 'node:path' | ||
import url from 'node:url' | ||
// eslint-disable-next-line node/no-unpublished-import | ||
import { register } from 'ts-node' | ||
// In dev mode -> use ts-node and dev plugins | ||
process.env.NODE_ENV = 'development' | ||
require('ts-node').register({ project }) | ||
register({ | ||
project: path.join( | ||
path.dirname(url.fileURLToPath(import.meta.url)), | ||
'..', | ||
'..', | ||
'..', | ||
'tsconfig.json' | ||
), | ||
}) | ||
@@ -17,2 +27,5 @@ // In dev mode, always show stack traces | ||
// Start the CLI | ||
oclif.run().then(oclif.flush).catch(oclif.Errors.handle) | ||
oclif | ||
.run(process.argv.slice(2), import.meta.url) | ||
.then(oclif.flush) | ||
.catch(oclif.Errors.handle) |
@@ -1,2 +0,2 @@ | ||
#!/usr/bin/env node | ||
#!/usr/bin/env ts-node | ||
export {}; |
@@ -1,14 +0,24 @@ | ||
#!/usr/bin/env node | ||
#!/usr/bin/env ts-node | ||
"use strict"; | ||
/* eslint-disable node/shebang */ | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const oclif = require('@oclif/core'); | ||
const path = require('path'); | ||
const project = path.join(__dirname, '..', 'tsconfig.json'); | ||
const core_1 = __importDefault(require("@oclif/core")); | ||
const node_path_1 = __importDefault(require("node:path")); | ||
const node_url_1 = __importDefault(require("node:url")); | ||
// eslint-disable-next-line node/no-unpublished-import | ||
const ts_node_1 = require("ts-node"); | ||
// In dev mode -> use ts-node and dev plugins | ||
process.env.NODE_ENV = 'development'; | ||
require('ts-node').register({ project }); | ||
(0, ts_node_1.register)({ | ||
project: node_path_1.default.join(node_path_1.default.dirname(node_url_1.default.fileURLToPath(import.meta.url)), '..', '..', '..', 'tsconfig.json'), | ||
}); | ||
// In dev mode, always show stack traces | ||
oclif.settings.debug = true; | ||
core_1.default.settings.debug = true; | ||
// Start the CLI | ||
oclif.run().then(oclif.flush).catch(oclif.Errors.handle); | ||
core_1.default | ||
.run(process.argv.slice(2), import.meta.url) | ||
.then(core_1.default.flush) | ||
.catch(core_1.default.Errors.handle); | ||
//# sourceMappingURL=dev.js.map |
{ | ||
"name": "@vonage/cli", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "CLI to interact with Vonage APIs", | ||
@@ -35,5 +35,6 @@ "keywords": [ | ||
"@oclif/plugin-not-found": "^2.3.23", | ||
"@oclif/plugin-plugins": "^3.0.1", | ||
"@oclif/plugin-which": "^2.2.20", | ||
"@vonage/cli-core": "^2.0.1", | ||
"@vonage/cli-jwt": "^2.0.0", | ||
"@vonage/cli-core": "^2.1.0", | ||
"@vonage/cli-jwt": "^2.1.0", | ||
"ts-node": "^10.9.1" | ||
@@ -49,2 +50,3 @@ }, | ||
"@oclif/plugin-help", | ||
"@oclif/plugin-plugins", | ||
"@oclif/plugin-commands", | ||
@@ -56,3 +58,4 @@ "@oclif/plugin-autocomplete", | ||
] | ||
} | ||
}, | ||
"gitHead": "137ec4ad2edd0a00464325e613fd55ea30c60d6d" | ||
} |
# Vonage CLI | ||
 [](https://codecov.io/gh/Vonage/vonage-cli)  [](../../CODE_OF_CONDUCT.md) [][license] | ||
<img src="https://developer.nexmo.com/images/logos/vbc-logo.svg" height="48px" alt="Vonage" /> | ||
This is the Vonage CLI for [Vonage APIs](https://www.vonage.com/). To use it you will need a Vonage account. Sign up [for free at vonage.com][signup]. | ||
## References | ||
This is a meta package to include all the Vonage CLI plugins. Please check each package for more information | ||
* [Core](https://github.com/Vonage/vonage-cli/blob/3.x/packages/cli-core/README.md) | ||
* [JWT](https://github.com/Vonage/vonage-cli/blob/3.x/packages/cli-jwt/README.md) | ||
[license]: LICENSE.txt | ||
[signup]: https://dashboard.nexmo.com/sign-up?utm_source=DEV_REL&utm_medium=github&utm_campaign=node-cli# Vonage CLI |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
17515
14.48%68
51.11%18
800%1
-66.67%10
11.11%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
Updated
Updated