Comparing version 0.1.26 to 0.1.27
@@ -91,3 +91,3 @@ "use strict"; | ||
} catch (err) { | ||
throw new SqliteError(err.message, err.code); | ||
throw new SqliteError(err.message, err.code, err.rawCode); | ||
} | ||
@@ -193,3 +193,3 @@ } | ||
} catch (err) { | ||
throw new SqliteError(err.message, err.code); | ||
throw new SqliteError(err.message, err.code, err.rawCode); | ||
} | ||
@@ -248,3 +248,3 @@ } | ||
} catch (err) { | ||
throw new SqliteError(err.message, err.code); | ||
throw new SqliteError(err.message, err.code, err.rawCode); | ||
} | ||
@@ -251,0 +251,0 @@ } |
{ | ||
"name": "libsql", | ||
"version": "0.1.26", | ||
"version": "0.1.27", | ||
"description": "", | ||
@@ -68,9 +68,9 @@ "os": [ | ||
"optionalDependencies": { | ||
"@libsql/darwin-arm64": "0.1.26", | ||
"@libsql/darwin-x64": "0.1.26", | ||
"@libsql/linux-arm64-gnu": "0.1.26", | ||
"@libsql/linux-x64-gnu": "0.1.26", | ||
"@libsql/linux-x64-musl": "0.1.26", | ||
"@libsql/win32-x64-msvc": "0.1.26" | ||
"@libsql/darwin-arm64": "0.1.27", | ||
"@libsql/darwin-x64": "0.1.27", | ||
"@libsql/linux-arm64-gnu": "0.1.27", | ||
"@libsql/linux-x64-gnu": "0.1.27", | ||
"@libsql/linux-x64-musl": "0.1.27", | ||
"@libsql/win32-x64-msvc": "0.1.27" | ||
} | ||
} |
@@ -83,3 +83,3 @@ "use strict"; | ||
}).catch((err) => { | ||
throw new SqliteError(err.message, err.code); | ||
throw new SqliteError(err.message, err.code, err.rawCode); | ||
}); | ||
@@ -183,3 +183,3 @@ } | ||
return databaseExecAsync.call(this.db, sql).catch((err) => { | ||
throw new SqliteError(err.message, err.code); | ||
throw new SqliteError(err.message, err.code, err.rawCode); | ||
}); | ||
@@ -237,3 +237,3 @@ } | ||
} catch (err) { | ||
throw new SqliteError(err.message, err.code); | ||
throw new SqliteError(err.message, err.code, err.rawCode); | ||
} | ||
@@ -240,0 +240,0 @@ } |
'use strict'; | ||
const descriptor = { value: 'SqliteError', writable: true, enumerable: false, configurable: true }; | ||
function SqliteError(message, code) { | ||
function SqliteError(message, code, rawCode) { | ||
if (new.target !== SqliteError) { | ||
@@ -16,2 +16,3 @@ return new SqliteError(message, code); | ||
this.code = code; | ||
this.rawCode = rawCode | ||
} | ||
@@ -18,0 +19,0 @@ Object.setPrototypeOf(SqliteError, Error); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29111
720