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/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, a as DEV_DEFINITION_ENDPOINT, D as DEV_ENDPOINT_ROOT, E as ErrorResponse, H as HttpMethodValues, c as createRpcDefinition, m as defineError, k as defineMiddleware, j as defineRoute, d as defineRpc, n as errorResponseFromValidationErrors, f as getRpcParamDefinition, e as getRpcParamName, g as getRpcPath, h as getRpcResponseName, i as isHttpMethod, b as isRpc, l as registerRoute, r as registerRpc } from './shared/arri.54e67ffe.mjs';
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 { y as unflattenProcedures, o as isServiceDef, p as pascalCase, z as camelCase, q as isProcedureDef, v as isJsonSchemaObject, w as isJsonSchemaEnum, t as isJsonSchemaNullType, s as isJsonSchemaScalarType, x as isJsonSchemaArray } from './arri.54e67ffe.mjs';
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, normalizeWhitespace as B, isApplicationDef as C, DEV_ENDPOINT_ROOT as D, ErrorResponse as E, setNestedObjectProperty as F, removeDisallowedChars as G, HttpMethodValues as H, JsonSchemaNullTypeValues as I, JsonSchemaScalarTypeValues as J, JsonSchemaComplexTypeValues as K, kebabCase as L, DEV_DEFINITION_ENDPOINT as a, isRpc as b, createRpcDefinition as c, defineRpc as d, getRpcParamName as e, getRpcParamDefinition as f, getRpcPath as g, getRpcResponseName as h, isHttpMethod as i, defineRoute as j, defineMiddleware as k, registerRoute as l, defineError as m, errorResponseFromValidationErrors as n, isServiceDef as o, pascalCase as p, isProcedureDef as q, registerRpc as r, isJsonSchemaScalarType as s, isJsonSchemaNullType as t, unflattenObject as u, isJsonSchemaObject as v, isJsonSchemaEnum as w, isJsonSchemaArray as x, unflattenProcedures as y, camelCase as z };
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.5",
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
- "globby": "^13.2.2",
25
- "listhen": "^1.4.3",
26
- "pathe": "^1.1.1"
24
+ "ofetch": "^1.3.3",
25
+ "chokidar": "^3.5.3",
26
+ "listhen": "^1.4.4"
27
27
  },
28
- "version": "0.0.19",
28
+ "version": "0.0.21",
29
29
  "repository": {
30
30
  "url": "https://github.com/modiimedia/arri"
31
31
  }