Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dbpath

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dbpath - npm Package Compare versions

Comparing version 0.2.13 to 0.2.14

16

dist/src/integration.spec.js

@@ -23,2 +23,5 @@ "use strict";

const inCi = process.env['CI'] === 'true';
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
yield fs_1.promises.rm(path_1.default.join(mockTestDir, environments_1.dbPathDir, environments_1.stateFileName), { force: true });
}));
describe("dbpath envs", () => {

@@ -33,7 +36,7 @@ it("should display the envs", () => __awaiter(void 0, void 0, void 0, function* () {

yield fs_1.promises.rm(path_1.default.join(mockTestDir, environments_1.dbPathDir, environments_1.stateFileName), { force: true });
const expectedTestEnv = (0, files_1.readTestFile)(mockTestDir, 'env.test.expected.txt');
const expectedOracleEnv = (0, files_1.readTestFile)(mockTestDir, 'env.oracle.expected.txt');
const expectedDevEnv = (0, files_1.readTestFile)(mockTestDir, 'env.dev.expected.txt');
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin envs`)).toContain("Current environment is dev"); //default
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin env test`)).toEqual(expectedTestEnv);
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin envs`)).toContain("Current environment is test");
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin env oracle`)).toEqual(expectedOracleEnv);
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin envs`)).toContain("Current environment is oracle");
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin env dev`)).toEqual(expectedDevEnv);

@@ -147,2 +150,9 @@ expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin envs`)).toContain("Current environment is dev");

}));
it("should build up the results - execution with oracle", () => __awaiter(void 0, void 0, void 0, function* () {
if (inCi)
return;
yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin env oracle`);
const expected = (0, files_1.readTestFile)(mockTestDir, 'trace.execution.oracle.expected.txt');
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `driver.mission.driver.audit -t`)).toEqual(expected);
}));
});

@@ -149,0 +159,0 @@ describe("scraping", () => {

2

dist/src/path.js

@@ -58,3 +58,3 @@ "use strict";

return ({ type: 'sql', sql, envName });
return (0, utils_1.mapErrorsK)((0, environments_1.dalFor)(env), (dal) => __awaiter(this, void 0, void 0, function* () {
return (0, utils_1.mapErrorsK)(yield (0, environments_1.dalFor)(env), (dal) => __awaiter(this, void 0, void 0, function* () {
return (0, dal_1.useDal)(dal, (d) => __awaiter(this, void 0, void 0, function* () {

@@ -61,0 +61,0 @@ const result = { type: 'res', res: yield dal.query(sql.join(' ')) };

{
"name": "dbpath",
"description": "",
"version": "0.2.13",
"version": "0.2.14",
"main": "dist/index",

@@ -24,7 +24,7 @@ "types": "dist/index",

"commander": "^10.0.0",
"@dbpath/tables": "0.2.13",
"@dbpath/pathparser": "0.2.13",
"@dbpath/utils": "0.2.13",
"@dbpath/files": "0.2.13",
"@dbpath/environments": "0.2.13"
"@dbpath/tables": "0.2.14",
"@dbpath/pathparser": "0.2.14",
"@dbpath/utils": "0.2.14",
"@dbpath/files": "0.2.14",
"@dbpath/environments": "0.2.14"
},

@@ -31,0 +31,0 @@ "devDependencies": {

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