@niscorp/vex 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { handleDiscovery, handleQuery, handleFingerprintPatch, handleFingerprintDelete } from '../../chunk-FPKW4TRX.js';
1
+ import { handleDiscovery, handleQuery, handleFingerprintPatch, handleFingerprintDelete } from '../../chunk-5CBKESBJ.js';
2
2
  import '../../chunk-HF25Q53I.js';
3
3
 
4
4
  // src/adapters/express/index.ts
@@ -1341,7 +1341,7 @@ var handleFingerprintDelete = async (config, fingerprint) => {
1341
1341
  if (entry === void 0) {
1342
1342
  return { status: 404, body: { error: "cache_miss", message: `Unknown fingerprint "${fingerprint}"` } };
1343
1343
  }
1344
- if (entry.kind === "ok" && entry.protected === true) {
1344
+ if ((entry.kind === "ok" || entry.kind === "mutation") && entry.protected === true) {
1345
1345
  return { status: 409, body: { error: "fingerprint_protected", message: `"${fingerprint}" is protected \u2014 unprotect it first.` } };
1346
1346
  }
1347
1347
  await config.engine.cache.delete(fingerprint);