New webpack build

This commit is contained in:
Ben Ashton 2021-03-03 00:17:02 -08:00
parent d97c12cd3f
commit c8bb429a6e
2 changed files with 6 additions and 2 deletions

View File

@ -536,9 +536,13 @@ const adapters = [];
return adapter.delete(dbName);
},
registerAdapter: function(adapter) {
if (!adapter) {
throw new _pawsqlite_error_mjs__WEBPACK_IMPORTED_MODULE_2__.PawSQLiteError("Invalid adapter");
}
const wrapped = (0,_adapter_wrapper_mjs__WEBPACK_IMPORTED_MODULE_1__.wrapAdapter)(adapter);
if (getAdapter(wrapped.name)) {
if (getAdapter(wrapped.name, true)) {
throw new _pawsqlite_error_mjs__WEBPACK_IMPORTED_MODULE_2__.PawSQLiteError(`An adapter with the name: ${ wrapped.name } ` +
`Already exists`);
}

File diff suppressed because one or more lines are too long