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

teseo

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

teseo - npm Package Compare versions

Comparing version 0.0.1 to 0.1.1

src/cliOptions.js

26

package.json
{
"name": "teseo",
"version": "0.0.1",
"description": "find its way out of the labyrinth",
"version": "0.1.1",
"description": "Small utility that helps to find a way out of a relational db dependency labyrinth",
"keywords": [
"relational-database",
"db",
"nodejs",
"cli",
"yaml"
],
"main": "index.js",

@@ -17,4 +24,9 @@ "scripts": {

"license": "GNU",
"repository": {
"type": "git",
"url": "https://github.com/dllatas/teseo"
},
"dependencies": {
"js-yaml": "^3.12.0"
"chumpi": "^0.1.0",
"js-yaml": "^3.13.0"
},

@@ -25,9 +37,9 @@ "preferGlobal": true,

"chai": "^4.2.0",
"eslint": "^5.9.0",
"eslint": "^5.15.3",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"husky": "^1.2.0",
"eslint-plugin-import": "^2.16.0",
"husky": "^1.3.1",
"mocha": "^5.2.0",
"nyc": "^13.1.0"
"nyc": "^13.3.0"
}
}

@@ -19,2 +19,3 @@ # Teseo

#### Git
1. `git clone https://github.com/dllatas/teseo.git`

@@ -24,2 +25,8 @@ 2. `cd teseo`

#### npm
Global flag needed so it can be used as a CLI tool without the need for `npm link`. Discard global flag if it will be used as a module.
1. `npm i -g teseo`
### Usage

@@ -26,0 +33,0 @@

@@ -1,14 +0,14 @@

const teseo = require('./teseo');
const io = require('./io');
const conversion = require('./conversion');
const file = require('./file');
const chumpi = require('chumpi');
const main = require('./main');
const message = require('./message');
const cliOptions = require('./cliOptions');
async function cli(input) {
const options = io.capture(input);
const options = chumpi.io.capture(input, message, cliOptions);
if (options.console) {
return options;
}
const result = await teseo(options);
const dumped = await conversion.execute('dump', options.format, result);
const { filename } = await file.write(dumped, options);
const result = await main(options);
const dumped = await chumpi.conversion.execute('dump', options.format, result);
const { filename } = await chumpi.file.write(dumped, options);
return filename;

@@ -15,0 +15,0 @@ }

@@ -1,7 +0,7 @@

const teseo = require('./teseo');
const main = require('./main');
const cli = require('./cli');
module.exports = {
teseo,
main,
cli,
};

@@ -1,2 +0,2 @@

const validation = require('./validation');
const chumpi = require('chumpi');

@@ -53,3 +53,3 @@ const schema = {

const analyzed = analyzer(tables, name, master);
validation.enforce(analyzed, schema);
chumpi.validation.enforce(analyzed, schema);

@@ -56,0 +56,0 @@ const sorted = analyzed.filter(t => !t._master).map(t => t._name);

@@ -0,8 +1,10 @@

const path = require('path');
const { describe, it } = require('mocha');
const path = require('path');
const { assert } = require('chai');
const { file, conversion } = require('chumpi');
const { cli } = require('../src');
const { readFilePromise } = require('../src/file');
const { execute } = require('../src/conversion');
const { execute } = conversion;
const { readFilePromise } = file;
describe('teseo basic cases suite', () => {

@@ -9,0 +11,0 @@ it('Parent with one child', async () => {

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