Comparing version 0.0.5 to 0.0.6
@@ -1,2 +0,2 @@ | ||
#!/usr/bin/env node | ||
export {}; | ||
declare function _exports(key: any, host: any): void; | ||
export = _exports; |
@@ -1,21 +0,14 @@ | ||
#!/usr/bin/env node | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var commander_1 = require("commander"); | ||
var init_1 = tslib_1.__importDefault(require("./init")); | ||
var testAPI_1 = tslib_1.__importDefault(require("./testAPI")); | ||
commander_1.program.name("metlo").description("Metlo's command line tool.").version("0.0.0"); | ||
commander_1.program | ||
.command("init") | ||
.description("Initialize the Metlo CLI.") | ||
.option("-b, --backend_url <string>", "The backend address for Metlo") | ||
.action(init_1.default); | ||
commander_1.program | ||
.command("test") | ||
.description("Run Metlo API tests against a specified host.") | ||
.requiredOption("-h, --host <string>", "The production host in Metlo.") | ||
.option("-t, --target <string>", "The host to run tests against against.") | ||
.action(testAPI_1.default); | ||
commander_1.program.parseAsync(); | ||
const os = require("node:os"); | ||
const Modules = require("./modules"); | ||
const WorkerPool = require("./pool"); | ||
const path = require("path"); | ||
const pool = new WorkerPool(os.cpus().length, './workerTarget.js'); | ||
function exit() { | ||
pool.close(); | ||
} | ||
process.on('exit', exit); | ||
process.on('SIGTERM', exit); | ||
module.exports = function (key, host) { | ||
Modules({ host, key, pool }); | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "metlo", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"license": "MIT", | ||
"description": "The node agent for Metlo API Security.", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"bin": { | ||
"metlo": "./dist/index.js" | ||
}, | ||
"scripts": { | ||
"start": "nodemon src/index.js", | ||
"build": "tsc", | ||
"watch": "tsc -w", | ||
"dev": "nodemon -r tsconfig-paths/register src/index.ts init", | ||
"clean": "rm -rf dist/*", | ||
"format": "prettier --write './src/**/*.{ts,tsx}'" | ||
}, | ||
"dependencies": { | ||
"require-in-the-middle": "^5.2.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/metlo-labs/metlo.git" | ||
}, | ||
"engines": { | ||
"node": ">=11.7.0" | ||
}, | ||
"homepage": "www.metlo.com", | ||
"devDependencies": { | ||
"@types/axios": "^0.14.0", | ||
"@types/node": "^18.7.16", | ||
"prettier": "^2.7.1", | ||
"typescript": "^4.7.4" | ||
}, | ||
"dependencies": { | ||
"@metlo/testing": "^0.0.3", | ||
"@types/valid-url": "^1.0.3", | ||
"axios": "^0.27.2", | ||
"chalk": "^4.1.2", | ||
"commander": "^9.4.0", | ||
"dotenv": "^16.0.2", | ||
"enquirer": "^2.3.6", | ||
"nodemon": "^2.0.19", | ||
"@types/node": "^18.8.4", | ||
"typescript": "^4.8.4", | ||
"nodemon": "^2.0.20", | ||
"ts-node": "^10.9.1", | ||
"tsconfig-paths": "^4.1.0", | ||
"tslib": "^2.4.0", | ||
"valid-url": "^1.0.9" | ||
"tslib": "^2.4.0" | ||
} | ||
} |
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
AI-detected potential security risk
Supply chain riskAI has determined that this package may contain potential security issues or vulnerabilities.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
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
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
49137
1
35
845
1
5
8
4
+ Addedrequire-in-the-middle@^5.2.0
+ Addeddebug@4.3.7(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedmodule-details-from-path@1.0.3(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedrequire-in-the-middle@5.2.0(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removed@metlo/testing@^0.0.3
- Removed@types/valid-url@^1.0.3
- Removedaxios@^0.27.2
- Removedchalk@^4.1.2
- Removedcommander@^9.4.0
- Removeddotenv@^16.0.2
- Removedenquirer@^2.3.6
- Removednodemon@^2.0.19
- Removedts-node@^10.9.1
- Removedtsconfig-paths@^4.1.0
- Removedtslib@^2.4.0
- Removedvalid-url@^1.0.9
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@cspotcode/source-map-support@0.8.1(transitive)
- Removed@jest/expect-utils@29.7.0(transitive)
- Removed@jest/schemas@29.6.3(transitive)
- Removed@jest/types@29.6.3(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.9(transitive)
- Removed@metlo/testing@0.0.3(transitive)
- Removed@sinclair/typebox@0.27.8(transitive)
- Removed@tsconfig/node10@1.0.11(transitive)
- Removed@tsconfig/node12@1.0.11(transitive)
- Removed@tsconfig/node14@1.0.3(transitive)
- Removed@tsconfig/node16@1.0.4(transitive)
- Removed@types/istanbul-lib-coverage@2.0.6(transitive)
- Removed@types/istanbul-lib-report@3.0.3(transitive)
- Removed@types/istanbul-reports@3.0.4(transitive)
- Removed@types/node@22.9.3(transitive)
- Removed@types/stack-utils@2.0.3(transitive)
- Removed@types/valid-url@1.0.7(transitive)
- Removed@types/yargs@17.0.33(transitive)
- Removed@types/yargs-parser@21.0.3(transitive)
- Removedacorn@8.14.0(transitive)
- Removedacorn-walk@8.3.4(transitive)
- Removedansi-colors@4.1.3(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.05.2.0(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedarg@4.1.3(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaxios@0.27.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@3.0.3(transitive)
- Removedchalk@4.1.2(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedci-info@3.9.0(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcommander@9.5.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcreate-require@1.1.1(transitive)
- Removeddebug@3.2.7(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddiff@4.0.2(transitive)
- Removeddiff-sequences@29.6.3(transitive)
- Removeddotenv@16.4.5(transitive)
- Removedenquirer@2.4.1(transitive)
- Removedescape-string-regexp@2.0.0(transitive)
- Removedexpect@29.7.0(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removedform-data@4.0.1(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-flag@3.0.04.0.0(transitive)
- Removedignore-by-default@1.0.1(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedjest-diff@29.7.0(transitive)
- Removedjest-get-type@29.6.3(transitive)
- Removedjest-matcher-utils@29.7.0(transitive)
- Removedjest-message-util@29.7.0(transitive)
- Removedjest-util@29.7.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjson5@2.2.3(transitive)
- Removedmake-error@1.3.6(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removednodemon@2.0.22(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpretty-format@29.7.0(transitive)
- Removedpstree.remy@1.1.8(transitive)
- Removedreact-is@18.3.1(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedsemver@5.7.27.0.0(transitive)
- Removedsimple-update-notifier@1.1.0(transitive)
- Removedslash@3.0.0(transitive)
- Removedstack-utils@2.0.6(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedstrip-bom@3.0.0(transitive)
- Removedsupports-color@5.5.07.2.0(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedtouch@3.1.1(transitive)
- Removedts-node@10.9.2(transitive)
- Removedtsconfig-paths@4.2.0(transitive)
- Removedtslib@2.8.1(transitive)
- Removedtypescript@5.7.2(transitive)
- Removedundefsafe@2.0.5(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedv8-compile-cache-lib@3.0.1(transitive)
- Removedvalid-url@1.0.9(transitive)
- Removedvm2@3.9.19(transitive)
- Removedyn@3.1.1(transitive)