Comparing version 6.3.2 to 6.4.0
10
index.js
@@ -1876,5 +1876,15 @@ const b4a = require('b4a') | ||
removeable (key) { | ||
if (this.system.indexers.length !== 1) return true | ||
return !b4a.equals(this.system.indexers[0].key, key) | ||
} | ||
// triggered from apply | ||
async removeWriter (key) { // just compat for old version | ||
assert(this._applying !== null, 'System changes are only allowed in apply') | ||
if (!this.removeable(key)) { | ||
throw new Error('Not allowed to remove the last indexer') | ||
} | ||
await this.system.remove(key) | ||
@@ -1881,0 +1891,0 @@ |
{ | ||
"name": "autobase", | ||
"version": "6.3.2", | ||
"version": "6.4.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
186409
5031