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

@minatojs/driver-sqlite

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@minatojs/driver-sqlite - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

14

lib/index.js

@@ -142,12 +142,7 @@ var __create = Object.create;

logger.info("auto updating table %c", table);
const allKeys = [...keys, ...info.map((row) => row.name)];
for (const key of allKeys) {
if (keys.includes(key) && info.some(({ name }) => name === key))
for (const key of keys) {
if (info.some(({ name }) => name === key))
continue;
if (keys.includes(key)) {
const def = this._getColDefs(table, key);
__privateMethod(this, _exec, exec_fn).call(this, "run", `ALTER TABLE ${this.sql.escapeId(table)} ADD COLUMN ${def}`);
} else {
__privateMethod(this, _exec, exec_fn).call(this, "run", `ALTER TABLE ${this.sql.escapeId(table)} DROP COLUMN \`${key}\``);
}
const def = this._getColDefs(table, key);
__privateMethod(this, _exec, exec_fn).call(this, "run", `ALTER TABLE ${this.sql.escapeId(table)} ADD COLUMN ${def}`);
}

@@ -254,2 +249,3 @@ } else {

}, relaventFields);
console.log(table, data, results);
for (const item of data) {

@@ -256,0 +252,0 @@ const row = results.find((row2) => keys.every((key) => row2[key] === item[key]));

{
"name": "@minatojs/driver-sqlite",
"version": "1.2.2",
"version": "1.2.3",
"description": "SQLite Driver for Cosmotype",

@@ -35,3 +35,3 @@ "main": "lib/index.js",

"dependencies": {
"@minatojs/sql-utils": "^1.0.2",
"@minatojs/sql-utils": "^1.0.3",
"better-sqlite3": "^7.5.3",

@@ -38,0 +38,0 @@ "sqlstring-sqlite": "^0.1.1",

Sorry, the diff of this file is not supported yet

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