Socket
Socket
Sign inDemoInstall

sqlite

Package Overview
Dependencies
Maintainers
3
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlite - npm Package Compare versions

Comparing version 4.0.23 to 4.0.24

3

build/Database.d.ts

@@ -125,5 +125,6 @@ /// <reference types="./vendor-typings/sqlite3" />

* @param {string} sql The SQL query to run.
* @param {any} [params, ...] Same as the `params` parameter of `all`
* @see https://github.com/mapbox/node-sqlite3/wiki/API#databaseexecsql-callback
*/
exec(sql: ISqlite.SqlType): Promise<void>;
exec(sql: ISqlite.SqlType, ...params: any[]): Promise<void>;
/**

@@ -130,0 +131,0 @@ * Prepares the SQL statement and optionally binds the specified parameters.

@@ -205,7 +205,8 @@ "use strict";

* @param {string} sql The SQL query to run.
* @param {any} [params, ...] Same as the `params` parameter of `all`
* @see https://github.com/mapbox/node-sqlite3/wiki/API#databaseexecsql-callback
*/
exec(sql) {
exec(sql, ...params) {
return new Promise((resolve, reject) => {
const sqlObj = strings_1.toSqlParams(sql);
const sqlObj = strings_1.toSqlParams(sql, params);
this.db.exec(sqlObj.sql, err => {

@@ -212,0 +213,0 @@ if (err) {

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

## 4.0.24 - Sun Mar 06 2022 20:12:24
**Contributor:** fresheneesz
- Updating exec to support passed in parameters like the other functions do. (#155)
## 4.0.23 - Mon May 24 2021 21:17:44

@@ -2,0 +8,0 @@

{
"name": "sqlite",
"version": "4.0.23",
"version": "4.0.24",
"description": "SQLite client for Node.js applications with SQL-based migrations API written in Typescript",

@@ -5,0 +5,0 @@ "main": "build/index.js",

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