@vesk/adapter 0.2.8 → 0.2.9
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-handler.d.ts","sourceRoot":"","sources":["../src/platform-handler.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvE,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAMpD;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGrD;AAED,wBAAgB,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEtC;AAQD;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAgIjF;AAED,MAAM,WAAW,qBAAqB;IACpC,kEAAkE;IAClE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"platform-handler.d.ts","sourceRoot":"","sources":["../src/platform-handler.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvE,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAMpD;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGrD;AAED,wBAAgB,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEtC;AAQD;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAgIjF;AAED,MAAM,WAAW,qBAAqB;IACpC,kEAAkE;IAClE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAsFzF;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;CACxB"}
|
package/dist/platform-handler.js
CHANGED
|
@@ -158,7 +158,7 @@ export async function bundlePlatformHandler(options) {
|
|
|
158
158
|
plugins.push({
|
|
159
159
|
name: 'empty-node-builtins',
|
|
160
160
|
setup(build) {
|
|
161
|
-
const builtins = /^(node:)?(fs|path|child_process|os|crypto|net|stream|buffer|events|util|url|querystring|http|https|zlib|tty|async_hooks)$/;
|
|
161
|
+
const builtins = /^(node:)?(fs|module|path|child_process|os|crypto|net|stream|buffer|events|util|url|querystring|http|https|zlib|tty|async_hooks)$/;
|
|
162
162
|
build.onResolve({ filter: builtins }, (args) => {
|
|
163
163
|
return { path: args.path, namespace: 'empty-node' };
|
|
164
164
|
});
|
|
@@ -189,14 +189,19 @@ export const readFileSync = () => {};
|
|
|
189
189
|
export const writeFileSync = () => {};
|
|
190
190
|
export const existsSync = () => {};
|
|
191
191
|
export const statSync = () => {};
|
|
192
|
+
export const realpathSync = () => '';
|
|
192
193
|
export const readdirSync = () => {};
|
|
193
194
|
export const mkdirSync = () => {};
|
|
194
195
|
export const unlinkSync = () => {};
|
|
195
196
|
export const rmSync = () => {};
|
|
196
197
|
export const copyFileSync = () => {};
|
|
197
198
|
export const accessSync = () => {};
|
|
199
|
+
// node:module — createRequire is server-only dead code in the browser bundle;
|
|
200
|
+
// the stub keeps esbuild from failing on the named import.
|
|
201
|
+
export const createRequire = () => () => undefined;
|
|
198
202
|
export const join = (...a) => a.join('/');
|
|
199
203
|
export const resolve = (...a) => a.join('/');
|
|
204
|
+
export const isAbsolute = () => false;
|
|
200
205
|
export const dirname = () => '';
|
|
201
206
|
export const basename = () => '';
|
|
202
207
|
export const extname = () => '';
|
package/dist/runtime-bundle.js
CHANGED
|
@@ -123,7 +123,7 @@ export async function bundleRuntime(appDir, outDir) {
|
|
|
123
123
|
format: 'esm',
|
|
124
124
|
minify: true,
|
|
125
125
|
outfile: resolve(outDir, 'server', 'runtime.js'),
|
|
126
|
-
external: ['fs', 'node:fs', 'path', 'node:path', 'node:async_hooks'],
|
|
126
|
+
external: ['fs', 'node:fs', 'path', 'node:path', 'module', 'node:module', 'node:async_hooks'],
|
|
127
127
|
target: ['es2022'],
|
|
128
128
|
treeShaking: true,
|
|
129
129
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vesk/adapter",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
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,9 +23,9 @@
|
|
|
23
23
|
"sharp": "^0.35.3"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@vesk/compiler": "^0.2.
|
|
27
|
-
"@vesk/runtime": "^0.2.
|
|
28
|
-
"@vesk/types": "^0.2.
|
|
26
|
+
"@vesk/compiler": "^0.2.9",
|
|
27
|
+
"@vesk/runtime": "^0.2.9",
|
|
28
|
+
"@vesk/types": "^0.2.9"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/ws": "^8.18.1",
|