@astrale-os/kernel-protocol 0.5.0-beta.53 → 0.5.0-beta.55
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/dist/routes/binding.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import type { Publication } from '../publication/publication.js';
|
|
|
3
3
|
import type { Plan } from './plan.js';
|
|
4
4
|
import type { Table } from './table.js';
|
|
5
5
|
/** Bind one Plan to an exact placed Publication and matching resolved Domain. */
|
|
6
|
-
export declare function bind(plan: Plan, deployed: Publication, domain: Domain): Table;
|
|
6
|
+
export declare function bind(plan: Plan, deployed: Publication, domain: Domain, publicUrl?: string): Table;
|
package/dist/routes/binding.js
CHANGED
|
@@ -4,15 +4,14 @@ import { fail } from './error.js';
|
|
|
4
4
|
import { place } from './placement.js';
|
|
5
5
|
import { rejectReserved } from './reservation.js';
|
|
6
6
|
/** Bind one Plan to an exact placed Publication and matching resolved Domain. */
|
|
7
|
-
export function bind(plan, deployed, domain) {
|
|
7
|
+
export function bind(plan, deployed, domain, publicUrl = deployed.identity.issuer) {
|
|
8
8
|
if (plan.origin !== deployed.origin ||
|
|
9
9
|
plan.origin !== domain.origin ||
|
|
10
10
|
plan.revision !== deployed.schema.revision ||
|
|
11
11
|
plan.revision !== domain.revision) {
|
|
12
12
|
fail('NATIVE_ROUTE_BINDING_INVALID', 'Route Plan, Publication, and Domain identity differ.');
|
|
13
13
|
}
|
|
14
|
-
if (json.serialize(place(plan, deployed.
|
|
15
|
-
json.serialize(deployed.routes)) {
|
|
14
|
+
if (json.serialize(place(plan, publicUrl)) !== json.serialize(deployed.routes)) {
|
|
16
15
|
fail('NATIVE_ROUTE_BINDING_INVALID', 'Publication routes differ from the placed Route Plan.');
|
|
17
16
|
}
|
|
18
17
|
const entries = plan.entries.map((entry, index) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/kernel-protocol",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.55",
|
|
4
4
|
"description": "Portable Astrale invocation, publication, installation, routing, and issuer protocols",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
"access": "public"
|
|
138
138
|
},
|
|
139
139
|
"dependencies": {
|
|
140
|
-
"@astrale-os/kernel-core": "0.9.0-beta.
|
|
141
|
-
"@astrale-os/kernel-dsl": "0.2.0-beta.
|
|
140
|
+
"@astrale-os/kernel-core": "0.9.0-beta.49",
|
|
141
|
+
"@astrale-os/kernel-dsl": "0.2.0-beta.34",
|
|
142
142
|
"@noble/hashes": "2.3.0"
|
|
143
143
|
},
|
|
144
144
|
"devDependencies": {
|