diff --git a/package-lock.json b/package-lock.json index 9a34c69..ff40f2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sqlite", - "version": "4.2.0", + "version": "5.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "sqlite", - "version": "4.2.0", + "version": "5.0.0", "license": "MIT", "devDependencies": { "@theo.gravity/changelog-version": "2.1.11", diff --git a/package.json b/package.json index 976464f..a90317c 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sqlite", - "version": "4.2.1", + "version": "5.0.0", "description": "SQLite client for Node.js applications with SQL-based migrations API written in Typescript", "main": "build/index.js", "types": "build/index.d.ts", diff --git a/src/Database.ts b/src/Database.ts index d0de99f..5dee837 100755 --- a/src/Database.ts +++ b/src/Database.ts @@ -299,12 +299,11 @@ export class Database< * Comments are not allowed and will lead to runtime errors. * * @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, ...params: any[]): Promise { + exec (sql: ISqlite.SqlType): Promise { return new Promise((resolve, reject) => { - const sqlObj = toSqlParams(sql, params) + const sqlObj = toSqlParams(sql) this.db.exec(sqlObj.sql, err => { if (err) {