@chatbotkit/cli
Advanced tools
@@ -8,3 +8,14 @@ "use strict"; | ||
| const __dirname = (0, path_1.dirname)((0, url_1.fileURLToPath)(import.meta.url)); | ||
| const cliRoot = (0, path_1.join)(__dirname, '..', '..'); | ||
| function findCliRoot() { | ||
| let root = (0, path_1.join)(__dirname, '..', '..'); | ||
| if ((0, fs_1.existsSync)((0, path_1.join)(root, 'package.json'))) { | ||
| return root; | ||
| } | ||
| root = (0, path_1.join)(__dirname, '..', '..', '..'); | ||
| if ((0, fs_1.existsSync)((0, path_1.join)(root, 'package.json'))) { | ||
| return root; | ||
| } | ||
| return (0, path_1.join)(__dirname, '..', '..'); | ||
| } | ||
| const cliRoot = findCliRoot(); | ||
| const cliNodeModules = (0, path_1.join)(cliRoot, 'node_modules'); | ||
@@ -11,0 +22,0 @@ function resolvePackageExport(packagePath, subpath) { |
@@ -5,3 +5,14 @@ import { existsSync, readFileSync } from 'fs'; | ||
| const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
| const cliRoot = join(__dirname, '..', '..'); | ||
| function findCliRoot() { | ||
| let root = join(__dirname, '..', '..'); | ||
| if (existsSync(join(root, 'package.json'))) { | ||
| return root; | ||
| } | ||
| root = join(__dirname, '..', '..', '..'); | ||
| if (existsSync(join(root, 'package.json'))) { | ||
| return root; | ||
| } | ||
| return join(__dirname, '..', '..'); | ||
| } | ||
| const cliRoot = findCliRoot(); | ||
| const cliNodeModules = join(cliRoot, 'node_modules'); | ||
@@ -8,0 +19,0 @@ function resolvePackageExport(packagePath, subpath) { |
+1
-1
| { | ||
| "name": "@chatbotkit/cli", | ||
| "version": "1.27.0", | ||
| "version": "1.27.1", | ||
| "description": "ChatBotKit command line tools", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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 5 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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 5 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
432580
0.15%10970
0.2%