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.1.2 to 0.1.3

2

package.json
{
"name": "teseo",
"version": "0.1.2",
"version": "0.1.3",
"description": "Small utility that helps to find a way out of a relational db dependency labyrinth",

@@ -5,0 +5,0 @@ "keywords": [

@@ -8,3 +8,3 @@ const main = require('./main');

cli,
sort,
sort: (tables, master, name) => sort.execute(tables, master, name),
};
const { describe, it } = require('mocha');
const { assert } = require('chai');
const sort = require('../src/sort');
const teseo = require('../src');

@@ -9,3 +10,3 @@

const master = ['neo'];
const actual = teseo.sort.isParentIncluded(sorted, master);
const actual = sort.isParentIncluded(sorted, master);
assert.isFalse(actual);

@@ -17,3 +18,3 @@ });

const expected = { order: ['master', 'detail', 'neo'] };
const actual = teseo.sort.execute(tables);
const actual = teseo.sort(tables);
assert.deepEqual(actual, expected);

@@ -25,3 +26,3 @@ });

const expected = { order: ['master', 'detail', 'neo'] };
const actual = teseo.sort.execute(tables);
const actual = teseo.sort(tables);
assert.sameMembers(actual.order, expected.order);

@@ -38,3 +39,3 @@ });

};
const actual = teseo.sort.get(source, 'everything.is.allright');
const actual = sort.get(source, 'everything.is.allright');
const expected = 'name';

@@ -52,3 +53,3 @@ assert.strictEqual(actual, expected);

};
const _get = () => teseo.sort.get(source, 'everything.is.allright', { mandatory: true });
const _get = () => sort.get(source, 'everything.is.allright', { mandatory: true });
assert.throws(_get);

@@ -68,5 +69,5 @@ });

];
const actual = teseo.sort.analyzer(tables);
const actual = sort.analyzer(tables);
assert.deepEqual(actual, expected);
});
});
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