arri 0.17.0 → 0.18.1
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/cli.cjs +4 -3
- package/dist/cli.mjs +4 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -1
- package/dist/shared/{arri.a51df4b1.mjs → arri.0ddf73b7.mjs} +4 -2
- package/dist/shared/{arri.674faf29.cjs → arri.34c274c5.cjs} +4 -2
- package/package.json +7 -8
package/dist/cli.cjs
CHANGED
|
@@ -12,7 +12,7 @@ const esbuild = require('esbuild');
|
|
|
12
12
|
const esbuildPluginReplace = require('esbuild-plugin-replace');
|
|
13
13
|
const path = require('pathe');
|
|
14
14
|
const prettier = require('prettier');
|
|
15
|
-
const config = require('./shared/arri.
|
|
15
|
+
const config = require('./shared/arri.34c274c5.cjs');
|
|
16
16
|
const globby = require('globby');
|
|
17
17
|
const scule = require('scule');
|
|
18
18
|
const arriCodegenDart = require('arri-codegen-dart');
|
|
@@ -315,6 +315,7 @@ import app from './${OUT_APP_FILE}';
|
|
|
315
315
|
void listen(toNodeListener(app.h3App), {
|
|
316
316
|
port: process.env.PORT ?? ${config.port},
|
|
317
317
|
public: true,
|
|
318
|
+
http2: ${config.http2 ?? false},
|
|
318
319
|
${httpsString}
|
|
319
320
|
});`;
|
|
320
321
|
await fs__default.writeFile(
|
|
@@ -448,7 +449,8 @@ const startListener = (config, showQr = false) => listhen.listenAndWatch(path__d
|
|
|
448
449
|
port: config.port,
|
|
449
450
|
logger: logger$1,
|
|
450
451
|
qr: showQr,
|
|
451
|
-
https: config.https
|
|
452
|
+
https: config.https,
|
|
453
|
+
http2: config.http2
|
|
452
454
|
});
|
|
453
455
|
async function bundleFilesContext(config) {
|
|
454
456
|
const serverContent = `import app from './${OUT_APP_FILE}';
|
|
@@ -573,7 +575,6 @@ async function createEntryModule(config) {
|
|
|
573
575
|
const appImportParts = path__default.relative(path__default.resolve(config.rootDir, config.srcDir), appModule).split(".");
|
|
574
576
|
appImportParts.pop();
|
|
575
577
|
const virtualEntry = `import { toNodeListener } from 'h3';
|
|
576
|
-
import { listen } from '@joshmossas/listhen';
|
|
577
578
|
import app from './${GEN_APP_FILE}';
|
|
578
579
|
|
|
579
580
|
export default app.h3App;`;
|
package/dist/cli.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { build as build$1 } from 'esbuild';
|
|
|
11
11
|
import { replace } from 'esbuild-plugin-replace';
|
|
12
12
|
import path from 'pathe';
|
|
13
13
|
import prettier from 'prettier';
|
|
14
|
-
import { n as defaultConfig, m as isResolvedArriConfig, a as DEV_DEFINITION_ENDPOINT } from './shared/arri.
|
|
14
|
+
import { n as defaultConfig, m as isResolvedArriConfig, a as DEV_DEFINITION_ENDPOINT } from './shared/arri.0ddf73b7.mjs';
|
|
15
15
|
import { globby } from 'globby';
|
|
16
16
|
import { camelCase, kebabCase } from 'scule';
|
|
17
17
|
import { dartClientGenerator } from 'arri-codegen-dart';
|
|
@@ -291,6 +291,7 @@ import app from './${OUT_APP_FILE}';
|
|
|
291
291
|
void listen(toNodeListener(app.h3App), {
|
|
292
292
|
port: process.env.PORT ?? ${config.port},
|
|
293
293
|
public: true,
|
|
294
|
+
http2: ${config.http2 ?? false},
|
|
294
295
|
${httpsString}
|
|
295
296
|
});`;
|
|
296
297
|
await fs.writeFile(
|
|
@@ -424,7 +425,8 @@ const startListener = (config, showQr = false) => listenAndWatch(path.resolve(co
|
|
|
424
425
|
port: config.port,
|
|
425
426
|
logger: logger$1,
|
|
426
427
|
qr: showQr,
|
|
427
|
-
https: config.https
|
|
428
|
+
https: config.https,
|
|
429
|
+
http2: config.http2
|
|
428
430
|
});
|
|
429
431
|
async function bundleFilesContext(config) {
|
|
430
432
|
const serverContent = `import app from './${OUT_APP_FILE}';
|
|
@@ -549,7 +551,6 @@ async function createEntryModule(config) {
|
|
|
549
551
|
const appImportParts = path.relative(path.resolve(config.rootDir, config.srcDir), appModule).split(".");
|
|
550
552
|
appImportParts.pop();
|
|
551
553
|
const virtualEntry = `import { toNodeListener } from 'h3';
|
|
552
|
-
import { listen } from '@joshmossas/listhen';
|
|
553
554
|
import app from './${GEN_APP_FILE}';
|
|
554
555
|
|
|
555
556
|
export default app.h3App;`;
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -244,6 +244,7 @@ interface ArriConfig {
|
|
|
244
244
|
key: string;
|
|
245
245
|
passphrase?: string;
|
|
246
246
|
} | boolean;
|
|
247
|
+
http2?: boolean;
|
|
247
248
|
}
|
|
248
249
|
declare function isArriConfig(input: unknown): input is ArriConfig;
|
|
249
250
|
declare function isResolvedArriConfig(input: unknown): input is ResolvedArriConfig;
|
package/dist/index.d.mts
CHANGED
|
@@ -244,6 +244,7 @@ interface ArriConfig {
|
|
|
244
244
|
key: string;
|
|
245
245
|
passphrase?: string;
|
|
246
246
|
} | boolean;
|
|
247
|
+
http2?: boolean;
|
|
247
248
|
}
|
|
248
249
|
declare function isArriConfig(input: unknown): input is ArriConfig;
|
|
249
250
|
declare function isResolvedArriConfig(input: unknown): input is ResolvedArriConfig;
|
package/dist/index.d.ts
CHANGED
|
@@ -244,6 +244,7 @@ interface ArriConfig {
|
|
|
244
244
|
key: string;
|
|
245
245
|
passphrase?: string;
|
|
246
246
|
} | boolean;
|
|
247
|
+
http2?: boolean;
|
|
247
248
|
}
|
|
248
249
|
declare function isArriConfig(input: unknown): input is ArriConfig;
|
|
249
250
|
declare function isResolvedArriConfig(input: unknown): input is ResolvedArriConfig;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ArriApp, p as ArriRouter, a as DEV_DEFINITION_ENDPOINT, D as DEV_ENDPOINT_ROOT, E as ErrorResponse, B as EventStreamConnection, c as createRpcDefinition, n as defaultConfig, o as defineConfig, h as defineError, w as defineEventStreamRpc, q as defineRoute, d as defineRpc, j as errorResponseFromValidationErrors, y as formatSse, z as formatSseList, e as getRpcParamName, g as getRpcPath, f as getRpcResponseName, k as handleH3Error, t as handleRoute, l as isArriConfig, x as isEventStreamRpc, m as isResolvedArriConfig, b as isRpc, i as isRpcParamSchema, C as registerEventStreamRpc, s as registerRoute, r as registerRpc, u as setSseHeaders, v as validateRpcRequestInput } from './shared/arri.
|
|
1
|
+
export { A as ArriApp, p as ArriRouter, a as DEV_DEFINITION_ENDPOINT, D as DEV_ENDPOINT_ROOT, E as ErrorResponse, B as EventStreamConnection, c as createRpcDefinition, n as defaultConfig, o as defineConfig, h as defineError, w as defineEventStreamRpc, q as defineRoute, d as defineRpc, j as errorResponseFromValidationErrors, y as formatSse, z as formatSseList, e as getRpcParamName, g as getRpcPath, f as getRpcResponseName, k as handleH3Error, t as handleRoute, l as isArriConfig, x as isEventStreamRpc, m as isResolvedArriConfig, b as isRpc, i as isRpcParamSchema, C as registerEventStreamRpc, s as registerRoute, r as registerRpc, u as setSseHeaders, v as validateRpcRequestInput } from './shared/arri.0ddf73b7.mjs';
|
|
2
2
|
export * from 'h3';
|
|
3
3
|
import 'arri-validate';
|
|
4
4
|
import 'arri-codegen-utils';
|
|
@@ -965,7 +965,8 @@ const defaultConfig = {
|
|
|
965
965
|
buildDir: ".arri",
|
|
966
966
|
serverEntry: "",
|
|
967
967
|
esbuild: {},
|
|
968
|
-
https: false
|
|
968
|
+
https: false,
|
|
969
|
+
http2: false
|
|
969
970
|
};
|
|
970
971
|
function defineConfig(config) {
|
|
971
972
|
return {
|
|
@@ -979,7 +980,8 @@ function defineConfig(config) {
|
|
|
979
980
|
buildDir: config.buildDir ?? defaultConfig.buildDir,
|
|
980
981
|
esbuild: config.esbuild ?? defaultConfig.esbuild,
|
|
981
982
|
serverEntry: config.serverEntry ?? "",
|
|
982
|
-
https: config.https ?? false
|
|
983
|
+
https: config.https ?? false,
|
|
984
|
+
http2: config.http2 ?? false
|
|
983
985
|
};
|
|
984
986
|
}
|
|
985
987
|
|
|
@@ -967,7 +967,8 @@ const defaultConfig = {
|
|
|
967
967
|
buildDir: ".arri",
|
|
968
968
|
serverEntry: "",
|
|
969
969
|
esbuild: {},
|
|
970
|
-
https: false
|
|
970
|
+
https: false,
|
|
971
|
+
http2: false
|
|
971
972
|
};
|
|
972
973
|
function defineConfig(config) {
|
|
973
974
|
return {
|
|
@@ -981,7 +982,8 @@ function defineConfig(config) {
|
|
|
981
982
|
buildDir: config.buildDir ?? defaultConfig.buildDir,
|
|
982
983
|
esbuild: config.esbuild ?? defaultConfig.esbuild,
|
|
983
984
|
serverEntry: config.serverEntry ?? "",
|
|
984
|
-
https: config.https ?? false
|
|
985
|
+
https: config.https ?? false,
|
|
986
|
+
http2: config.http2 ?? false
|
|
985
987
|
};
|
|
986
988
|
}
|
|
987
989
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arri",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -40,14 +40,13 @@
|
|
|
40
40
|
"prettier": "^3.1.0",
|
|
41
41
|
"scule": "^1.1.1",
|
|
42
42
|
"uncrypto": "^0.1.3",
|
|
43
|
-
"
|
|
44
|
-
"arri-codegen-
|
|
45
|
-
"arri-
|
|
46
|
-
"arri-codegen-utils": "0.
|
|
47
|
-
|
|
48
|
-
"peerDependencies": {
|
|
49
|
-
"@joshmossas/listhen": "1.5.7"
|
|
43
|
+
"@joshmossas/listhen": "1.5.13",
|
|
44
|
+
"arri-codegen-dart": "0.18.1",
|
|
45
|
+
"arri-codegen-ts": "0.18.1",
|
|
46
|
+
"arri-codegen-utils": "0.18.1",
|
|
47
|
+
"arri-validate": "0.18.1"
|
|
50
48
|
},
|
|
49
|
+
"peerDependencies": {},
|
|
51
50
|
"devDependencies": {
|
|
52
51
|
"@types/degit": "^2.8.6",
|
|
53
52
|
"bun-types": "^1.0.14"
|