@frockbot/kernel-contracts 0.3.8 → 0.3.10
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/package.json +1 -1
- package/src/types.ts +5 -3
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -1443,10 +1443,12 @@ export function decodeSessionEvent(input: unknown): SessionEvent {
|
|
|
1443
1443
|
(event.packageId === undefined ||
|
|
1444
1444
|
event.catalogId !== undefined ||
|
|
1445
1445
|
event.contentHash !== undefined)) ||
|
|
1446
|
+
// An install or update names a Catalog entry and never a bare package
|
|
1447
|
+
// id. `contentHash` is optional there: a first-party entry names
|
|
1448
|
+
// reviewed compiled-in code, publishes no bundle, and so pins no
|
|
1449
|
+
// artifact hash.
|
|
1446
1450
|
(event.action !== "remove" &&
|
|
1447
|
-
(event.catalogId === undefined ||
|
|
1448
|
-
event.contentHash === undefined ||
|
|
1449
|
-
event.packageId !== undefined))
|
|
1451
|
+
(event.catalogId === undefined || event.packageId !== undefined))
|
|
1450
1452
|
) {
|
|
1451
1453
|
throw new Error("session Catalog change intent identity is invalid");
|
|
1452
1454
|
}
|