@vonage/cli
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -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 | ||
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vonage/vonage-cli/ci.yml?branch=3.x) [![Codecov](https://img.shields.io/codecov/c/github/vonage/vonage-cli?label=Codecov&logo=codecov&style=flat-square)](https://codecov.io/gh/Vonage/vonage-cli) ![Latest Release](https://img.shields.io/npm/v/@vonage/cli?label=%40vonage%2Fcli&style=flat-square) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg?style=flat-square)](../../CODE_OF_CONDUCT.md) [![License](https://img.shields.io/npm/l/@vonage/cli?label=License&style=flat-square)][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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
68
18
1
10
+ Added@oclif/plugin-plugins@^3.0.1
+ Added@oclif/plugin-plugins@3.10.1(transitive)
+ Addedcontent-type@1.0.5(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhttp-call@5.3.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedinterpret@1.4.0(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedis-retry-allowed@1.2.0(transitive)
+ Addedis-stream@2.0.1(transitive)
+ Addedjson-parse-better-errors@1.0.2(transitive)
+ Addedload-json-file@5.3.0(transitive)
+ Addednpm@9.8.1(transitive)
+ Addednpm-run-path@4.0.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedparse-json@4.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpify@4.0.1(transitive)
+ Addedrechoir@0.6.2(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedshelljs@0.8.5(transitive)
+ Addedstrip-bom@3.0.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtype-fest@0.3.1(transitive)
+ Addedvalidate-npm-package-name@5.0.1(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedyarn@1.22.22(transitive)
Updated@vonage/cli-core@^2.1.0
Updated@vonage/cli-jwt@^2.1.0