@niscorp/vex 0.1.0 → 0.1.1
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.
- package/CHANGELOG.md +7 -0
- package/DESIGN.md +48 -31
- package/DOCS.md +250 -55
- package/README.md +10 -7
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.cjs.map +1 -1
- package/dist/adapters/express/index.js +1 -1
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.cjs.map +1 -1
- package/dist/adapters/hono/index.js +1 -1
- package/dist/{chunk-FPKW4TRX.js → chunk-5CBKESBJ.js} +3 -3
- package/dist/chunk-5CBKESBJ.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +7 -7
- package/dist/chunk-FPKW4TRX.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { handleDiscovery, handleQuery, handleFingerprintPatch, handleFingerprintDelete } from '../../chunk-
|
|
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);
|