@vesk/adapter 0.1.1 → 0.2.8
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/api-function.d.ts.map +1 -1
- package/dist/api-function.js +8 -5
- package/dist/client-bundle.d.ts.map +1 -1
- package/dist/client-bundle.js +167 -27
- package/dist/dev-server.d.ts +3 -0
- package/dist/dev-server.d.ts.map +1 -1
- package/dist/dev-server.js +47 -22
- package/dist/esbuild-fallback.d.ts +0 -1
- package/dist/esbuild-fallback.d.ts.map +1 -1
- package/dist/esbuild-fallback.js +10 -20
- package/dist/hmr.d.ts.map +1 -1
- package/dist/hmr.js +19 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/middleware.d.ts.map +1 -1
- package/dist/middleware.js +8 -2
- package/dist/paths.d.ts +16 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/paths.js +81 -0
- package/dist/platform-deploy.js +2 -1
- package/dist/platform-handler.d.ts.map +1 -1
- package/dist/platform-handler.js +32 -9
- package/dist/prod-server.d.ts +5 -0
- package/dist/prod-server.d.ts.map +1 -1
- package/dist/prod-server.js +88 -32
- package/dist/runtime-bundle.d.ts.map +1 -1
- package/dist/runtime-bundle.js +8 -3
- package/dist/ssr-function.d.ts.map +1 -1
- package/dist/ssr-function.js +24 -13
- package/dist/static.d.ts.map +1 -1
- package/dist/static.js +9 -1
- package/dist/types.d.ts +1 -181
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -3
- package/dist/package.json +0 -15
package/dist/ssr-function.js
CHANGED
|
@@ -166,16 +166,17 @@ export function generateSsrFunction(routeNode, appDir, outDir, componentMap, opt
|
|
|
166
166
|
' return withSsrStore(async () => {',
|
|
167
167
|
' let page;',
|
|
168
168
|
' let caughtError = null;',
|
|
169
|
+
" const __expose = process.env.NODE_ENV !== 'production';",
|
|
169
170
|
' try {',
|
|
170
171
|
' page = await renderPage(_pageSrc, _pageComp, { params }, __componentRegistry, { hydrate: true, cached: _pageCompiled, sourcePath: _pagePath });',
|
|
171
172
|
' } catch (err) {',
|
|
172
173
|
' if (err && (err.name === \'NotFoundError\' || err.name === \'Redirect\')) throw err;',
|
|
173
174
|
' caughtError = err;',
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
" const message = err && typeof err === 'object' && 'message' in err ? String(err.message) : String(err);",
|
|
176
|
+
" const stack = err && typeof err === 'object' && 'stack' in err ? String(err.stack) : '';",
|
|
177
|
+
" page = { body: await __renderErrorBody({ params, statusCode: 500, error: __expose ? message : 'Internal Server Error', stack: __expose ? stack : '', url: requestUrl || '' }), head: '' };",
|
|
177
178
|
' }',
|
|
178
|
-
|
|
179
|
+
" const html = await renderFullPage(_layoutSrc, _layoutComp, { params, children: (caughtError ? '<!--vesk-ssr-error:' + (caughtError && typeof caughtError === 'object' && 'message' in caughtError ? encodeURIComponent(__expose ? String(caughtError.message) : 'Internal Server Error') : '') + '-->' : '') + page.body }, __componentRegistry, { hydrate: true, cached: _layoutCompiled" + cssOption + clientScriptOption + dataScriptOption + ', pageHead: page.head, sourcePath: _layoutPath });',
|
|
179
180
|
" return new Response(html, { headers: { 'Content-Type': 'text/html' }, status: caughtError ? 500 : 200 });",
|
|
180
181
|
' });',
|
|
181
182
|
'}',
|
|
@@ -186,9 +187,10 @@ export function generateSsrFunction(routeNode, appDir, outDir, componentMap, opt
|
|
|
186
187
|
htmlFnCode = [
|
|
187
188
|
'async function __renderErrorFullPage(params, requestUrl, err) {',
|
|
188
189
|
' if (!_errorSrc) throw err;',
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
" const __expose = process.env.NODE_ENV !== 'production';",
|
|
191
|
+
" const message = err && typeof err === 'object' && 'message' in err ? String(err.message) : String(err);",
|
|
192
|
+
" const stack = err && typeof err === 'object' && 'stack' in err ? String(err.stack) : '';",
|
|
193
|
+
" const props = { params, statusCode: 500, error: __expose ? message : 'Internal Server Error', stack: __expose ? stack : '', url: requestUrl || '' };",
|
|
192
194
|
' return renderFullPage(_errorSrc, _errorComp, props, __componentRegistry, { hydrate: true, cached: _errorCompiled' + cssOption + clientScriptOption + dataScriptOption + ', sourcePath: _errorPath });',
|
|
193
195
|
'}',
|
|
194
196
|
'',
|
|
@@ -225,6 +227,7 @@ export function generateSsrFunction(routeNode, appDir, outDir, componentMap, opt
|
|
|
225
227
|
].join('\n');
|
|
226
228
|
}
|
|
227
229
|
let dataCode;
|
|
230
|
+
const exposeErr = "process.env.NODE_ENV !== 'production'";
|
|
228
231
|
if (hasLayout || hasAncestorLayout) {
|
|
229
232
|
dataCode = [
|
|
230
233
|
" if (request.headers.get('x-vesk-data') === '1') {",
|
|
@@ -234,7 +237,7 @@ export function generateSsrFunction(routeNode, appDir, outDir, componentMap, opt
|
|
|
234
237
|
' } catch (err) {',
|
|
235
238
|
' if (err && (err.name === \'NotFoundError\' || err.name === \'Redirect\')) throw err;',
|
|
236
239
|
' const message = err && typeof err === \'object\' && \'message\' in err ? String(err.message) : String(err);',
|
|
237
|
-
|
|
240
|
+
` return new Response(JSON.stringify({ error: ${exposeErr} ? message : 'Internal Server Error' }), { status: 500, headers: { 'Content-Type': 'application/json', 'Cache-Control': 'no-store', Vary: 'x-vesk-data' } });`,
|
|
238
241
|
' }',
|
|
239
242
|
' const dataLayout = await renderPage(_layoutSrc, _layoutComp, { params, children: \'\' }, __componentRegistry, { hydrate: true, cached: _layoutCompiled, sourcePath: _layoutPath });',
|
|
240
243
|
" return new Response(JSON.stringify({ path: url.pathname, params, props: dataPage.props || { params }, head: (dataLayout.head || '') + (dataPage.head || '') }), {",
|
|
@@ -253,7 +256,7 @@ export function generateSsrFunction(routeNode, appDir, outDir, componentMap, opt
|
|
|
253
256
|
' } catch (err) {',
|
|
254
257
|
' if (err && (err.name === \'NotFoundError\' || err.name === \'Redirect\')) throw err;',
|
|
255
258
|
' const message = err && typeof err === \'object\' && \'message\' in err ? String(err.message) : String(err);',
|
|
256
|
-
|
|
259
|
+
` return new Response(JSON.stringify({ error: ${exposeErr} ? message : 'Internal Server Error' }), { status: 500, headers: { 'Content-Type': 'application/json', 'Cache-Control': 'no-store', Vary: 'x-vesk-data' } });`,
|
|
257
260
|
' }',
|
|
258
261
|
" return new Response(JSON.stringify({ path: url.pathname, params, props: dataPage.props || { params }, head: dataPage.head || '' }), {",
|
|
259
262
|
" headers: { 'Content-Type': 'application/json', 'Cache-Control': 'no-store', Vary: 'x-vesk-data' },",
|
|
@@ -268,11 +271,12 @@ export function generateSsrFunction(routeNode, appDir, outDir, componentMap, opt
|
|
|
268
271
|
const indentedRender = dataCode.split('\n').map(l => l ? ` ${l}` : '').join('\n');
|
|
269
272
|
bodyCode = [
|
|
270
273
|
' // ── Middleware context ──',
|
|
274
|
+
" const __rootLocals = (globalThis.__vesk_request && globalThis.__vesk_request.locals) || {};",
|
|
271
275
|
' const __ctx = {',
|
|
272
276
|
' request,',
|
|
273
277
|
' params,',
|
|
274
278
|
' url,',
|
|
275
|
-
" locals: {},",
|
|
279
|
+
" locals: Object.assign({}, __rootLocals),",
|
|
276
280
|
" cookies: parseCookies(request.headers.get('cookie') || ''),",
|
|
277
281
|
' set(key, value) { this.locals[key] = value; },',
|
|
278
282
|
' get(key) { return this.locals[key]; },',
|
|
@@ -316,6 +320,12 @@ export function generateSsrFunction(routeNode, appDir, outDir, componentMap, opt
|
|
|
316
320
|
}
|
|
317
321
|
const actionCode = [
|
|
318
322
|
'export async function handleAction(request, id) {',
|
|
323
|
+
' // CSRF defense: cross-site browser POSTs always carry an Origin header.',
|
|
324
|
+
' try {',
|
|
325
|
+
' assertSameOrigin(request);',
|
|
326
|
+
' } catch (e) {',
|
|
327
|
+
" return new Response(JSON.stringify({ ok: false, error: 'Cross-origin request blocked' }), { status: (e && e.status) || 403, headers: { 'Content-Type': 'application/json' } });",
|
|
328
|
+
' }',
|
|
319
329
|
' await __registerActions();',
|
|
320
330
|
' const action = getAction(id);',
|
|
321
331
|
' if (!action) {',
|
|
@@ -376,10 +386,11 @@ export function generateSsrFunction(routeNode, appDir, outDir, componentMap, opt
|
|
|
376
386
|
" return new Response(null, { status: 303, headers: { Location: location } });",
|
|
377
387
|
' } catch (err) {',
|
|
378
388
|
" const message = err && typeof err === 'object' && 'message' in err ? String(err.message) : 'Action failed';",
|
|
389
|
+
` const safeMessage = ${exposeErr} ? message : 'Action failed';`,
|
|
379
390
|
' if (isFetch) {',
|
|
380
|
-
" return new Response(JSON.stringify({ ok: false, error:
|
|
391
|
+
" return new Response(JSON.stringify({ ok: false, error: safeMessage }), { status: 500, headers: { 'Content-Type': 'application/json' } });",
|
|
381
392
|
' }',
|
|
382
|
-
" return new Response(
|
|
393
|
+
" return new Response(safeMessage, { status: 500, headers: { 'Content-Type': 'text/plain' } });",
|
|
383
394
|
' } finally {',
|
|
384
395
|
' globalThis.__vesk_request = prevReq;',
|
|
385
396
|
' }',
|
|
@@ -387,7 +398,7 @@ export function generateSsrFunction(routeNode, appDir, outDir, componentMap, opt
|
|
|
387
398
|
'',
|
|
388
399
|
].join('\n');
|
|
389
400
|
const funcCode = [
|
|
390
|
-
"import { renderFullPage, renderPageStream, renderPage, compileFile, setVskHydrate, parseCookies, getAction, validateActionInput, issuesToFieldMap, storeDataScriptGlobal, withSsrStore } from '../runtime.js';",
|
|
401
|
+
"import { renderFullPage, renderPageStream, renderPage, compileFile, setVskHydrate, parseCookies, getAction, validateActionInput, issuesToFieldMap, storeDataScriptGlobal, withSsrStore, assertSameOrigin } from '../runtime.js';",
|
|
391
402
|
'',
|
|
392
403
|
middlewareCode || '',
|
|
393
404
|
registryCode,
|
package/dist/static.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../src/static.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../src/static.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzE,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAsBxE;AAED,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAwEzH;AAED,wBAAgB,eAAe,CAC7B,UAAU,EAAE,SAAS,EAAE,EACvB,SAAS,EAAE,SAAS,EAAE,EACtB,iBAAiB,EAAE,cAAc,EAAE,EACnC,EAAE,OAAiC,EAAE,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GAC/D,MAAM,CAoCR;AAED,wBAAgB,iBAAiB,CAAC,OAAO,SAA0B,GAAG,MAAM,CAK3E"}
|
package/dist/static.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { mkdirSync, copyFileSync, readdirSync, statSync, existsSync, writeFileSync, readFileSync } from 'node:fs';
|
|
2
2
|
import { resolve, join } from 'node:path';
|
|
3
|
+
import { resolveWithin } from '@vesk/adapter/src/paths';
|
|
3
4
|
export function copyStaticAssets(publicDir, outDir) {
|
|
4
5
|
const targetDir = resolve(outDir, 'static', 'public');
|
|
5
6
|
mkdirSync(targetDir, { recursive: true });
|
|
@@ -56,7 +57,14 @@ export async function generateSsgRoutes(routeTree, appDir, outDir) {
|
|
|
56
57
|
const params = entry.params || {};
|
|
57
58
|
const result = await ssg(src, null, params, {});
|
|
58
59
|
const urlPath = entry.path || node.fullPath;
|
|
59
|
-
|
|
60
|
+
// getStaticPaths output is app-controlled but must never write
|
|
61
|
+
// outside the prerender output dir
|
|
62
|
+
const relName = urlPath === '/' ? 'index.html' : `${urlPath.replace(/^\//, '')}.html`;
|
|
63
|
+
const htmlPath = resolveWithin(prerenderDir, relName);
|
|
64
|
+
if (!htmlPath) {
|
|
65
|
+
console.error(`vesk: SSG path escaped output dir — skipping ${pagePath} (path: ${urlPath})`);
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
60
68
|
mkdirSync(resolve(htmlPath, '..'), { recursive: true });
|
|
61
69
|
writeFileSync(htmlPath, result.html);
|
|
62
70
|
results.push({ path: urlPath, html: htmlPath, static: result.static, params });
|
package/dist/types.d.ts
CHANGED
|
@@ -1,182 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
name: string;
|
|
3
|
-
onBuildStart?: () => Promise<void> | void;
|
|
4
|
-
onBuildEnd?: () => Promise<void> | void;
|
|
5
|
-
onCSS?: (content: string, filePath: string) => Promise<string | null> | string | null;
|
|
6
|
-
[key: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface VeskSecurity {
|
|
9
|
-
xFrameOptions?: string;
|
|
10
|
-
hsts?: string | boolean;
|
|
11
|
-
referrerPolicy?: string | boolean;
|
|
12
|
-
contentSecurityPolicy?: string | boolean;
|
|
13
|
-
trustProxy?: boolean | string;
|
|
14
|
-
rateLimit?: {
|
|
15
|
-
windowMs?: number;
|
|
16
|
-
max?: number;
|
|
17
|
-
};
|
|
18
|
-
[key: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
export interface RouteNode {
|
|
21
|
-
path: string;
|
|
22
|
-
fullPath: string;
|
|
23
|
-
isGroup: boolean;
|
|
24
|
-
isDynamic: boolean;
|
|
25
|
-
isCatchAll: boolean;
|
|
26
|
-
page: string | null;
|
|
27
|
-
layout: string | null;
|
|
28
|
-
loading: string | null;
|
|
29
|
-
error: string | null;
|
|
30
|
-
notFound: string | null;
|
|
31
|
-
hasMiddleware: boolean;
|
|
32
|
-
children: RouteNode[];
|
|
33
|
-
sourceDir: string;
|
|
34
|
-
segmentCount: number;
|
|
35
|
-
_revalidate?: number;
|
|
36
|
-
_isrTags?: string[];
|
|
37
|
-
_pageName?: string;
|
|
38
|
-
_layoutName?: string;
|
|
39
|
-
chunk?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface ApiRouteNode {
|
|
42
|
-
path: string;
|
|
43
|
-
fullPath: string;
|
|
44
|
-
isDynamic: boolean;
|
|
45
|
-
isCatchAll: boolean;
|
|
46
|
-
filePath: string;
|
|
47
|
-
children: ApiRouteNode[];
|
|
48
|
-
}
|
|
49
|
-
export interface MiddlewareChainItem {
|
|
50
|
-
sourcePath: string;
|
|
51
|
-
node: RouteNode;
|
|
52
|
-
}
|
|
53
|
-
export interface AncestorLayout {
|
|
54
|
-
sourceDir: string;
|
|
55
|
-
layoutCompName: string;
|
|
56
|
-
}
|
|
57
|
-
export interface BuildOptions {
|
|
58
|
-
outDir?: string;
|
|
59
|
-
publicDir?: string;
|
|
60
|
-
plugins?: VeskPlugin[];
|
|
61
|
-
seo?: boolean;
|
|
62
|
-
strictSeo?: boolean;
|
|
63
|
-
siteUrl?: string;
|
|
64
|
-
ssg?: boolean;
|
|
65
|
-
codeSplit?: boolean;
|
|
66
|
-
hmr?: boolean;
|
|
67
|
-
target?: 'node' | 'edge';
|
|
68
|
-
platform?: 'node' | 'vercel' | 'netlify' | 'cloudflare' | 'deno' | 'aws' | 'edge' | 'coxmos';
|
|
69
|
-
/** Client router route-data freshness TTL (ms). Default 0 = always refetch. */
|
|
70
|
-
routeDataCache?: number;
|
|
71
|
-
}
|
|
72
|
-
export interface DevServerOptions {
|
|
73
|
-
port?: number;
|
|
74
|
-
publicDir?: string;
|
|
75
|
-
block?: boolean;
|
|
76
|
-
}
|
|
77
|
-
export interface ProdServerOptions {
|
|
78
|
-
port?: number;
|
|
79
|
-
}
|
|
80
|
-
export interface SsrFunctionOptions {
|
|
81
|
-
ancestorLayouts?: AncestorLayout[];
|
|
82
|
-
middlewareCode?: string | null;
|
|
83
|
-
}
|
|
84
|
-
export interface ApiFunctionOptions {
|
|
85
|
-
middlewareCode?: string | null;
|
|
86
|
-
}
|
|
87
|
-
export interface ClientBundleOptions {
|
|
88
|
-
codeSplit?: boolean;
|
|
89
|
-
hmr?: boolean;
|
|
90
|
-
importRuntime?: boolean;
|
|
91
|
-
routeDataCache?: number;
|
|
92
|
-
}
|
|
93
|
-
export interface ChunkEntry {
|
|
94
|
-
name: string;
|
|
95
|
-
code: string;
|
|
96
|
-
}
|
|
97
|
-
export interface ClientBundleResult {
|
|
98
|
-
main: string;
|
|
99
|
-
chunks: ChunkEntry[];
|
|
100
|
-
}
|
|
101
|
-
export interface ManifestRouteEntry {
|
|
102
|
-
path: string;
|
|
103
|
-
type: 'ssr' | 'api';
|
|
104
|
-
function: string;
|
|
105
|
-
revalidate?: number;
|
|
106
|
-
tags?: string[];
|
|
107
|
-
}
|
|
108
|
-
export interface ManifestActionEntry {
|
|
109
|
-
id: string;
|
|
110
|
-
function: string;
|
|
111
|
-
}
|
|
112
|
-
export interface ManifestPrerenderedEntry {
|
|
113
|
-
path: string;
|
|
114
|
-
file: string;
|
|
115
|
-
}
|
|
116
|
-
export interface Manifest {
|
|
117
|
-
version: number;
|
|
118
|
-
middleware: boolean;
|
|
119
|
-
routes: ManifestRouteEntry[];
|
|
120
|
-
prerendered: ManifestPrerenderedEntry[];
|
|
121
|
-
static: {
|
|
122
|
-
prefix: string;
|
|
123
|
-
dir: string;
|
|
124
|
-
};
|
|
125
|
-
actions?: ManifestActionEntry[];
|
|
126
|
-
}
|
|
127
|
-
export interface SsgRouteResult {
|
|
128
|
-
path: string;
|
|
129
|
-
html: string;
|
|
130
|
-
static: boolean;
|
|
131
|
-
params?: Record<string, string>;
|
|
132
|
-
}
|
|
133
|
-
export interface BuildResult {
|
|
134
|
-
routeTree: RouteNode[];
|
|
135
|
-
apiTree: ApiRouteNode[];
|
|
136
|
-
ssrRoutes: RouteNode[];
|
|
137
|
-
apiRoutes: ApiRouteNode[];
|
|
138
|
-
manifest: Manifest;
|
|
139
|
-
}
|
|
140
|
-
export interface ImageRef {
|
|
141
|
-
source: string;
|
|
142
|
-
src: string;
|
|
143
|
-
}
|
|
144
|
-
export interface ImageResult {
|
|
145
|
-
src: string;
|
|
146
|
-
baseName: string;
|
|
147
|
-
files: string[];
|
|
148
|
-
widths: number[];
|
|
149
|
-
}
|
|
150
|
-
export interface MiddlewareExtractResult {
|
|
151
|
-
params: string;
|
|
152
|
-
body: string;
|
|
153
|
-
}
|
|
154
|
-
export interface SeoCheckIssue {
|
|
155
|
-
severity: 'warn' | 'error';
|
|
156
|
-
message: string;
|
|
157
|
-
}
|
|
158
|
-
export interface SeoAuditResult {
|
|
159
|
-
passed: number;
|
|
160
|
-
errors: number;
|
|
161
|
-
warnings: number;
|
|
162
|
-
}
|
|
163
|
-
export interface CombinedPageInfo {
|
|
164
|
-
path: string;
|
|
165
|
-
src: string;
|
|
166
|
-
hasLayout: boolean;
|
|
167
|
-
}
|
|
168
|
-
export interface SecurityConfig {
|
|
169
|
-
security?: VeskSecurity;
|
|
170
|
-
trustProxy?: boolean;
|
|
171
|
-
rateLimit?: {
|
|
172
|
-
windowMs?: number;
|
|
173
|
-
max?: number;
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
export interface MonolithicBundleParts {
|
|
177
|
-
componentLines: string[];
|
|
178
|
-
hydratorLines: string[];
|
|
179
|
-
aliasLines: string[];
|
|
180
|
-
hydratorAliasLines: string[];
|
|
181
|
-
}
|
|
1
|
+
export type { RouteNode, ApiRouteNode, VeskPlugin, VeskSecurity, VeskCors, VeskRateLimit, VeskSecurityPreset, SecurityConfig, MiddlewareChainItem, MiddlewareExtractResult, AncestorLayout, BuildOptions, DevServerOptions, ProdServerOptions, SsrFunctionOptions, ApiFunctionOptions, ClientBundleOptions, ClientBundleFileEntry, ClientBundleCache, ChunkEntry, ClientBundleResult, MonolithicBundleParts, Manifest, ManifestRouteEntry, ManifestActionEntry, ManifestPrerenderedEntry, SsgRouteResult, BuildResult, ImageRef, ImageResult, SeoCheckIssue, SeoAuditResult, CombinedPageInfo, } from '@vesk/types';
|
|
182
2
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAGA,YAAY,EACV,SAAS,EACT,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,QAAQ,EACR,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,EACd,WAAW,EACX,QAAQ,EACR,WAAW,EACX,aAAa,EACb,cAAc,EACd,gBAAgB,GACjB,MAAM,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vesk/adapter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vesk adapter — builds deployable .vesk/ output for Deno and Node serverless",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,8 +23,9 @@
|
|
|
23
23
|
"sharp": "^0.35.3"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@vesk/compiler": "^0.
|
|
27
|
-
"@vesk/runtime": "^0.
|
|
26
|
+
"@vesk/compiler": "^0.2.8",
|
|
27
|
+
"@vesk/runtime": "^0.2.8",
|
|
28
|
+
"@vesk/types": "^0.2.8"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@types/ws": "^8.18.1",
|
package/dist/package.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vesk/adapter",
|
|
3
|
-
"version": "0.1.9",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "./index.js",
|
|
6
|
-
"types": "./index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./index.d.ts",
|
|
10
|
-
"default": "./index.js"
|
|
11
|
-
},
|
|
12
|
-
"./src/*": "./*.js",
|
|
13
|
-
"./package.json": "./package.json"
|
|
14
|
-
}
|
|
15
|
-
}
|