@webstir-io/module-contract 0.3.1 → 0.4.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.
package/dist/render-execute.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RenderProgram, RenderSourceLocation } from './render-program.js';
|
|
2
2
|
export declare const RENDER_CSRF_FIELD = "_csrf";
|
|
3
3
|
export declare class RenderProgramError extends Error {
|
|
4
4
|
readonly loc: RenderSourceLocation;
|
package/dist/render-execute.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RENDER_PROGRAM_VERSION
|
|
1
|
+
import { RENDER_PROGRAM_VERSION } from './render-version.js';
|
|
2
2
|
export const RENDER_CSRF_FIELD = '_csrf';
|
|
3
3
|
const SAFE_URL_SCHEMES = new Set(['http', 'https', 'mailto', 'tel']);
|
|
4
4
|
const BLOCKED_URL = 'about:invalid';
|
package/dist/render-program.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export
|
|
3
|
-
export declare const RENDER_PROGRAM_FILE = "index.program.json";
|
|
2
|
+
export { RENDER_PROGRAM_FILE, RENDER_PROGRAM_VERSION } from './render-version.js';
|
|
4
3
|
export declare const renderSourceLocationSchema: z.ZodObject<{
|
|
5
4
|
file: z.ZodString;
|
|
6
5
|
line: z.ZodNumber;
|
package/dist/render-program.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
import { RENDER_PROGRAM_VERSION } from './render-version.js';
|
|
3
|
+
export { RENDER_PROGRAM_FILE, RENDER_PROGRAM_VERSION } from './render-version.js';
|
|
4
4
|
export const renderSourceLocationSchema = z.object({
|
|
5
5
|
file: z.string().min(1),
|
|
6
6
|
line: z.number().int().positive(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstir-io/module-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Public contract definitions for Webstir frontend and backend module providers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
"import": "./dist/client-nav.js",
|
|
17
17
|
"default": "./dist/client-nav.js"
|
|
18
18
|
},
|
|
19
|
+
"./render": {
|
|
20
|
+
"types": "./dist/render-execute.d.ts",
|
|
21
|
+
"import": "./dist/render-execute.js",
|
|
22
|
+
"default": "./dist/render-execute.js"
|
|
23
|
+
},
|
|
19
24
|
"./ts-rest": {
|
|
20
25
|
"types": "./dist/adapters/ts-rest.d.ts",
|
|
21
26
|
"import": "./dist/adapters/ts-rest.js",
|