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

@best/api-db

Package Overview
Dependencies
Maintainers
0
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@best/api-db - npm Package Compare versions

Comparing version 13.0.0 to 14.0.0

1

build/rest/frontend/index.js

@@ -20,2 +20,3 @@ "use strict";

class FrontendRestDbAdapter extends types_1.ApiDBAdapter {
config;
constructor(config) {

@@ -22,0 +23,0 @@ super(config);

@@ -16,2 +16,3 @@ "use strict";

class SQLAdapter extends types_1.ApiDBAdapter {
db;
constructor(config, db) {

@@ -18,0 +19,0 @@ super(config);

3

build/sql/postgres/db.js

@@ -14,5 +14,6 @@ "use strict";

class PostgresDatabase extends db_1.SQLDatabase {
pool;
migrated = false;
constructor(config) {
super();
this.migrated = false;
this.pool = new pg_1.Pool({

@@ -19,0 +20,0 @@ connectionString: config.uri,

@@ -24,9 +24,19 @@ "use strict";

});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -33,0 +43,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

@@ -18,5 +18,6 @@ "use strict";

class SQLiteDatabase extends db_1.SQLDatabase {
dbPromise;
migrated = false;
constructor(config) {
super();
this.migrated = false;
this.dbPromise = (0, sqlite_1.open)({ filename: config.uri, driver: sqlite3_1.default.Database });

@@ -23,0 +24,0 @@ }

@@ -24,9 +24,19 @@ "use strict";

});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -33,0 +43,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

@@ -11,13 +11,13 @@ "use strict";

class ApiDBAdapter {
constructor(config) { }
constructor(_config) { }
fetchProjects() {
throw new Error('ApiDB.fetchProjects() not implemented');
}
fetchSnapshots(projectId, since) {
fetchSnapshots(_projectId, _since) {
throw new Error('ApiDB.fetchSnapshots() not implemented');
}
saveSnapshots(snapshots, projectName) {
saveSnapshots(_snapshots, _projectName) {
throw new Error('ApiDB.saveSnapshots() not implemented');
}
updateLastRelease(projectName, release) {
updateLastRelease(_projectName, _release) {
throw new Error('ApiDB.updateLastRelease() not implemented');

@@ -24,0 +24,0 @@ }

{
"dependencies": {
"https-proxy-agent": "5.0.1",
"pg": "8.10.0",
"sqlite": "4.2.0",
"sqlite3": "5.1.7"
"pg": "^8.13.1",
"sqlite": "^5.1.1",
"sqlite3": "^5.1.7"
},
"description": "Best Api Database",
"devDependencies": {
"@types/pg": "^7.4.14"
"@types/pg": "^8.11.10"
},

@@ -21,3 +21,3 @@ "files": [

},
"version": "13.0.0"
"version": "14.0.0"
}
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