@magicvr/schema-ui-protocol 0.2.3 → 0.2.4
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 +2 -2
- package/protocol/index.d.ts +1 -1
- package/protocol/load-page.d.ts +1 -1
- package/protocol/load-page.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magicvr/schema-ui-protocol",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "schema-ui-core 包面(protocol)",
|
|
6
6
|
"main": "protocol/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "protocol/index.d.ts",
|
|
11
|
-
"import": "
|
|
11
|
+
"import": "protocol/index.js"
|
|
12
12
|
},
|
|
13
13
|
"./*": "./*"
|
|
14
14
|
},
|
package/protocol/index.d.ts
CHANGED
package/protocol/load-page.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* parse, and validation failure paths without a server. This module does NOT
|
|
9
9
|
* switch the app's default render branch (that is GOAL-003).
|
|
10
10
|
*/
|
|
11
|
-
import type { PageEntry } from "@schema-ui
|
|
11
|
+
import type { PageEntry } from "@magicvr/schema-ui-protocol/app-manifest.js";
|
|
12
12
|
export type PageSchemaErrorCode = "PAGE_LOAD_FAILED" | "PAGE_NOT_FOUND" | "PAGE_PARSE_FAILED" | "PAGE_SCHEMA_INVALID" | "PAGE_ID_MISMATCH";
|
|
13
13
|
export interface PageSchemaValidationIssue {
|
|
14
14
|
path: string;
|
package/protocol/load-page.js
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* parse, and validation failure paths without a server. This module does NOT
|
|
9
9
|
* switch the app's default render branch (that is GOAL-003).
|
|
10
10
|
*/
|
|
11
|
-
import { resolveSchemaUrl } from "@magicvr/schema-ui-protocol/app-manifest";
|
|
12
|
-
import { validatePageDocument } from "@magicvr/schema-ui-protocol/conformance/runtime-schema-validate";
|
|
13
|
-
import { withTimeout } from "@magicvr/schema-ui-lib/lib/fetch-timeout";
|
|
11
|
+
import { resolveSchemaUrl } from "@magicvr/schema-ui-protocol/app-manifest.js";
|
|
12
|
+
import { validatePageDocument } from "@magicvr/schema-ui-protocol/conformance/runtime-schema-validate.js";
|
|
13
|
+
import { withTimeout } from "@magicvr/schema-ui-lib/lib/fetch-timeout.js";
|
|
14
14
|
/** Unified, observable error for the schema loading + validation pipeline. */
|
|
15
15
|
export class PageSchemaError extends Error {
|
|
16
16
|
code;
|