@ruvyxa/adapter-bun 1.0.25 → 1.0.26
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/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +7 -2
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAA+B,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAA+B,MAAM,cAAc,CAAA;AAQxE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAsDnE;eAEc,UAAU"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clientBuildOutput, standaloneServerSource, validateBuildContext } from '@ruvyxa/core';
|
|
1
|
+
import { clientBuildOutput, runtimeBuildPolicy, standaloneServerSource, validateBuildContext, } from '@ruvyxa/core';
|
|
2
2
|
/**
|
|
3
3
|
* Create a Bun runtime deployment adapter for Ruvyxa.
|
|
4
4
|
*
|
|
@@ -50,7 +50,7 @@ export function bunAdapter(options = {}) {
|
|
|
50
50
|
{
|
|
51
51
|
kind: 'function',
|
|
52
52
|
path: 'deploy/bun/server',
|
|
53
|
-
handlerSource: standaloneServerSource(),
|
|
53
|
+
handlerSource: standaloneServerSource({ runtimePolicy: runtimeBuildPolicy(ctx) }),
|
|
54
54
|
},
|
|
55
55
|
// Static publish directory served by the standalone server. An
|
|
56
56
|
// API-only app has no prerendered pages; the server still runs.
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,cAAc,CAAA;AAUrB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,UAAU,CAAC,OAAO,GAAsB,EAAE;IACxD,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;QACrE,MAAM,IAAI,KAAK,CAAC,uDAAuD,OAAO,OAAO,CAAC,KAAK,EAAE,CAAC,CAAA;IAChG,CAAC;IAED,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC/D,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAA;IAC9E,CAAC;IAED,OAAO;QACL,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;QACpD,KAAK,CAAC,GAAiB;YACrB,oBAAoB,CAAC,GAAG,EAAE,YAAY,CAAC,CAAA;YACvC,OAAO;gBACL,IAAI,EAAE,KAAK;gBACX,MAAM,EAAE,MAAM;gBACd,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,GAAG,GAAG,CAAC,MAAM,aAAa;gBAClD,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,SAAS;gBACjC,GAAG,iBAAiB,CAAC,GAAG,CAAC;gBACzB,SAAS,EAAE;oBACT,+DAA+D;oBAC/D;wBACE,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,mBAAmB;wBACzB,aAAa,EAAE,sBAAsB,CAAC,EAAE,aAAa,EAAE,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC;qBAClF;oBACD,+DAA+D;oBAC/D,gEAAgE;oBAChE,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE;oBAClE;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,sBAAsB;wBAC5B,QAAQ,EAAE,+LAA+L;qBAC1M;oBACD;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,sBAAsB;wBAC5B,QAAQ,EACN,6BAA6B;4BAC7B,gDAAgD;4BAChD,2DAA2D;4BAC3D,uEAAuE;4BACvE,yEAAyE;4BACzE,kDAAkD;4BAClD,kDAAkD;qBACrD;iBACF;aACF,CAAA;QACH,CAAC;KACF,CAAA;AACH,CAAC;AAED,eAAe,UAAU,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruvyxa/adapter-bun",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"description": "Run Ruvyxa on Bun-flavored hosts with typed adapter metadata for entrypoints and assets.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@ruvyxa/core": "^1.0.
|
|
42
|
+
"@ruvyxa/core": "^1.0.26"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsc -p tsconfig.json",
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Adapter, AdapterOutput, BuildContext } from '@ruvyxa/core'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
clientBuildOutput,
|
|
4
|
+
runtimeBuildPolicy,
|
|
5
|
+
standaloneServerSource,
|
|
6
|
+
validateBuildContext,
|
|
7
|
+
} from '@ruvyxa/core'
|
|
3
8
|
|
|
4
9
|
/**
|
|
5
10
|
* Options for the Bun adapter.
|
|
@@ -62,7 +67,7 @@ export function bunAdapter(options: BunAdapterOptions = {}): Adapter {
|
|
|
62
67
|
{
|
|
63
68
|
kind: 'function',
|
|
64
69
|
path: 'deploy/bun/server',
|
|
65
|
-
handlerSource: standaloneServerSource(),
|
|
70
|
+
handlerSource: standaloneServerSource({ runtimePolicy: runtimeBuildPolicy(ctx) }),
|
|
66
71
|
},
|
|
67
72
|
// Static publish directory served by the standalone server. An
|
|
68
73
|
// API-only app has no prerendered pages; the server still runs.
|