New webpack build
This commit is contained in:
parent
d97c12cd3f
commit
c8bb429a6e
@ -536,9 +536,13 @@ const adapters = [];
|
|||||||
return adapter.delete(dbName);
|
return adapter.delete(dbName);
|
||||||
},
|
},
|
||||||
registerAdapter: function(adapter) {
|
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);
|
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 } ` +
|
throw new _pawsqlite_error_mjs__WEBPACK_IMPORTED_MODULE_2__.PawSQLiteError(`An adapter with the name: ${ wrapped.name } ` +
|
||||||
`Already exists`);
|
`Already exists`);
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user