arri 0.0.19 → 0.0.21
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/chunks/index.cjs +10 -9
- package/dist/chunks/index.mjs +10 -9
- package/dist/cli.cjs +347 -225
- package/dist/cli.mjs +347 -213
- package/dist/codegen.mjs +4 -4
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +2 -2
- package/dist/shared/{arri.4d2ea869.mjs → arri.c6b92822.mjs} +1 -1
- package/dist/shared/{arri.54e67ffe.mjs → arri.e547206a.mjs} +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -34,6 +34,7 @@ interface ArriConfig {
|
|
|
34
34
|
esbuild?: Omit<BuildOptions, "outfile" | "outdir" | "entryNames" | "entryPoints">;
|
|
35
35
|
}
|
|
36
36
|
type ResolvedArriConfig = Required<ArriConfig>;
|
|
37
|
+
declare const defaultConfig: Required<ArriConfig>;
|
|
37
38
|
declare function defineConfig(config: ArriConfig): ResolvedArriConfig;
|
|
38
39
|
|
|
39
|
-
export { type ArriConfig, ErrorResponse, type ResolvedArriConfig, type StatusCode, defineConfig, defineError, errorResponseFromValidationErrors };
|
|
40
|
+
export { type ArriConfig, ErrorResponse, type ResolvedArriConfig, type StatusCode, defaultConfig, defineConfig, defineError, errorResponseFromValidationErrors };
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ interface ArriConfig {
|
|
|
34
34
|
esbuild?: Omit<BuildOptions, "outfile" | "outdir" | "entryNames" | "entryPoints">;
|
|
35
35
|
}
|
|
36
36
|
type ResolvedArriConfig = Required<ArriConfig>;
|
|
37
|
+
declare const defaultConfig: Required<ArriConfig>;
|
|
37
38
|
declare function defineConfig(config: ArriConfig): ResolvedArriConfig;
|
|
38
39
|
|
|
39
|
-
export { type ArriConfig, ErrorResponse, type ResolvedArriConfig, type StatusCode, defineConfig, defineError, errorResponseFromValidationErrors };
|
|
40
|
+
export { type ArriConfig, ErrorResponse, type ResolvedArriConfig, type StatusCode, defaultConfig, defineConfig, defineError, errorResponseFromValidationErrors };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Arri,
|
|
1
|
+
export { A as Arri, D as DEV_DEFINITION_ENDPOINT, o as DEV_ENDPOINT_ROOT, I as ErrorResponse, H as HttpMethodValues, w as createRpcDefinition, K as defineError, F as defineMiddleware, E as defineRoute, v as defineRpc, L as errorResponseFromValidationErrors, z as getRpcParamDefinition, y as getRpcParamName, x as getRpcPath, B as getRpcResponseName, q as isHttpMethod, t as isRpc, G as registerRoute, C as registerRpc } from './shared/arri.e547206a.mjs';
|
|
2
2
|
import '@sinclair/typebox';
|
|
3
3
|
import 'h3';
|
|
4
4
|
import '@sinclair/typebox/errors';
|
|
@@ -29,4 +29,4 @@ function defineConfig(config) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export { defineConfig };
|
|
32
|
+
export { defaultConfig, defineConfig };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { execSync } from 'child_process';
|
|
2
2
|
import { writeFileSync } from 'fs';
|
|
3
|
-
import {
|
|
3
|
+
import { g as unflattenProcedures, i as isServiceDef, p as pascalCase, h as camelCase, a as isProcedureDef, d as isJsonSchemaObject, e as isJsonSchemaEnum, c as isJsonSchemaNullType, b as isJsonSchemaScalarType, f as isJsonSchemaArray } from './arri.e547206a.mjs';
|
|
4
4
|
|
|
5
5
|
function defineClientGeneratorPlugin(plugin) {
|
|
6
6
|
return plugin;
|
|
@@ -808,4 +808,4 @@ const isHttpMethod = (input) => {
|
|
|
808
808
|
return HttpMethodValues.includes(input);
|
|
809
809
|
};
|
|
810
810
|
|
|
811
|
-
export { Arri as A,
|
|
811
|
+
export { Arri as A, getRpcResponseName as B, registerRpc as C, DEV_DEFINITION_ENDPOINT as D, defineRoute as E, defineMiddleware as F, registerRoute as G, HttpMethodValues as H, ErrorResponse as I, JsonSchemaScalarTypeValues as J, defineError as K, errorResponseFromValidationErrors as L, isProcedureDef as a, isJsonSchemaScalarType as b, isJsonSchemaNullType as c, isJsonSchemaObject as d, isJsonSchemaEnum as e, isJsonSchemaArray as f, unflattenProcedures as g, camelCase as h, isServiceDef as i, isApplicationDef as j, JsonSchemaNullTypeValues as k, JsonSchemaComplexTypeValues as l, kebabCase as m, normalizeWhitespace as n, DEV_ENDPOINT_ROOT as o, pascalCase as p, isHttpMethod as q, removeDisallowedChars as r, setNestedObjectProperty as s, isRpc as t, unflattenObject as u, defineRpc as v, createRpcDefinition as w, getRpcPath as x, getRpcParamName as y, getRpcParamDefinition as z };
|
package/package.json
CHANGED
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@sinclair/typebox": "^0.31.
|
|
15
|
+
"@sinclair/typebox": "^0.31.8",
|
|
16
16
|
"h3": "^1.8.1",
|
|
17
17
|
"esbuild": "^0.19.2",
|
|
18
18
|
"scule": "^1.0.0",
|
|
19
|
+
"globby": "^13.2.2",
|
|
20
|
+
"pathe": "^1.1.1",
|
|
19
21
|
"citty": "^0.1.3",
|
|
20
|
-
"ofetch": "^1.3.3",
|
|
21
22
|
"c12": "^1.4.2",
|
|
22
|
-
"chokidar": "^3.5.3",
|
|
23
23
|
"consola": "^3.2.3",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
24
|
+
"ofetch": "^1.3.3",
|
|
25
|
+
"chokidar": "^3.5.3",
|
|
26
|
+
"listhen": "^1.4.4"
|
|
27
27
|
},
|
|
28
|
-
"version": "0.0.
|
|
28
|
+
"version": "0.0.21",
|
|
29
29
|
"repository": {
|
|
30
30
|
"url": "https://github.com/modiimedia/arri"
|
|
31
31
|
}
|