arri 0.19.3 → 0.19.5
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
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.014f0e87.cjs');
|
|
16
16
|
const globby = require('globby');
|
|
17
17
|
const scule = require('scule');
|
|
18
18
|
const arriCodegenDart = require('arri-codegen-dart');
|
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.1ab2026e.mjs';
|
|
15
15
|
import { globby } from 'globby';
|
|
16
16
|
import { camelCase, kebabCase } from 'scule';
|
|
17
17
|
import { dartClientGenerator } from 'arri-codegen-dart';
|
package/dist/index.cjs
CHANGED
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.1ab2026e.mjs';
|
|
2
2
|
export * from 'h3';
|
|
3
3
|
import 'arri-validate';
|
|
4
4
|
import 'node:process';
|
|
@@ -423,13 +423,17 @@ var __publicField$2 = (obj, key, value) => {
|
|
|
423
423
|
return value;
|
|
424
424
|
};
|
|
425
425
|
function setSseHeaders(event) {
|
|
426
|
-
|
|
426
|
+
const isHttp2 = event._http2 === true;
|
|
427
|
+
const input = {
|
|
427
428
|
"Content-Type": "text/event-stream",
|
|
428
429
|
"Cache-Control": "private, no-cache, no-store, no-transform, must-revalidate, max-age=0",
|
|
429
|
-
Connection: "keep-alive",
|
|
430
430
|
Pragma: "no-cache",
|
|
431
431
|
"X-Accel-Buffering": "no"
|
|
432
|
-
}
|
|
432
|
+
};
|
|
433
|
+
if (!isHttp2) {
|
|
434
|
+
input.Connection = "keep-alive";
|
|
435
|
+
}
|
|
436
|
+
h3.setResponseHeaders(event, input);
|
|
433
437
|
}
|
|
434
438
|
function defineEventStreamRpc(config) {
|
|
435
439
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createError, isError, setResponseStatus, send, eventHandler, isPreflightRequest, setResponseHeader, readRawBody, getValidatedQuery,
|
|
1
|
+
import { createError, isError, setResponseStatus, send, eventHandler, isPreflightRequest, setResponseHeader, readRawBody, getValidatedQuery, setResponseHeaders, getHeader, sendStream, defineEventHandler, getQuery, setHeader, createRouter, createApp, sendError } from 'h3';
|
|
2
2
|
import { a, isAObjectSchema, isARecordSchema, isADiscriminatorSchema } from 'arri-validate';
|
|
3
3
|
import { nextTick } from 'node:process';
|
|
4
4
|
import { isRpcHttpMethod, removeDisallowedChars } from 'arri-codegen-utils';
|
|
@@ -421,13 +421,17 @@ var __publicField$2 = (obj, key, value) => {
|
|
|
421
421
|
return value;
|
|
422
422
|
};
|
|
423
423
|
function setSseHeaders(event) {
|
|
424
|
-
|
|
424
|
+
const isHttp2 = event._http2 === true;
|
|
425
|
+
const input = {
|
|
425
426
|
"Content-Type": "text/event-stream",
|
|
426
427
|
"Cache-Control": "private, no-cache, no-store, no-transform, must-revalidate, max-age=0",
|
|
427
|
-
Connection: "keep-alive",
|
|
428
428
|
Pragma: "no-cache",
|
|
429
429
|
"X-Accel-Buffering": "no"
|
|
430
|
-
}
|
|
430
|
+
};
|
|
431
|
+
if (!isHttp2) {
|
|
432
|
+
input.Connection = "keep-alive";
|
|
433
|
+
}
|
|
434
|
+
setResponseHeaders(event, input);
|
|
431
435
|
}
|
|
432
436
|
function defineEventStreamRpc(config) {
|
|
433
437
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arri",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -26,28 +26,28 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@joshmossas/listhen": "1.5.13",
|
|
29
|
-
"c12": "^1.
|
|
29
|
+
"c12": "^1.6.1",
|
|
30
30
|
"chokidar": "^3.5.3",
|
|
31
31
|
"citty": "^0.1.5",
|
|
32
32
|
"consola": "^3.2.3",
|
|
33
33
|
"degit": "^2.8.4",
|
|
34
|
-
"esbuild": "^0.19.
|
|
34
|
+
"esbuild": "^0.19.11",
|
|
35
35
|
"esbuild-plugin-replace": "^1.4.0",
|
|
36
36
|
"globby": "^14.0.0",
|
|
37
|
-
"h3": "^1.
|
|
37
|
+
"h3": "^1.10.0",
|
|
38
38
|
"jiti": "^1.21.0",
|
|
39
39
|
"ofetch": "^1.3.3",
|
|
40
40
|
"pathe": "^1.1.1",
|
|
41
41
|
"prettier": "^3.1.1",
|
|
42
42
|
"scule": "^1.1.1",
|
|
43
43
|
"uncrypto": "^0.1.3",
|
|
44
|
-
"arri-codegen-dart": "0.19.
|
|
45
|
-
"arri-
|
|
46
|
-
"arri-codegen-utils": "0.19.
|
|
47
|
-
"arri-
|
|
44
|
+
"arri-codegen-dart": "0.19.5",
|
|
45
|
+
"arri-codegen-ts": "0.19.5",
|
|
46
|
+
"arri-codegen-utils": "0.19.5",
|
|
47
|
+
"arri-validate": "0.19.5"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/degit": "^2.8.6",
|
|
51
|
-
"bun-types": "^1.0.
|
|
51
|
+
"bun-types": "^1.0.21"
|
|
52
52
|
}
|
|
53
53
|
}
|