arri 0.0.16 → 0.0.17
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 +2 -2
- package/dist/chunks/index.mjs +2 -2
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/codegen.cjs +2 -2
- package/dist/codegen.mjs +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{arri.a9b80e98.cjs → arri.234caf5e.cjs} +1 -1
- package/dist/shared/{arri.b2f4eb7d.cjs → arri.38792eb4.cjs} +0 -1
- package/dist/shared/{arri.0671bb8c.mjs → arri.4d2ea869.mjs} +1 -1
- package/dist/shared/{arri.fd713b2e.mjs → arri.54e67ffe.mjs} +1 -2
- package/package.json +1 -1
package/dist/chunks/index.cjs
CHANGED
|
@@ -29,10 +29,10 @@ require('ofetch');
|
|
|
29
29
|
require('prettier');
|
|
30
30
|
require('@sinclair/typebox');
|
|
31
31
|
require('h3');
|
|
32
|
-
require('../shared/arri.
|
|
32
|
+
require('../shared/arri.38792eb4.cjs');
|
|
33
33
|
require('@sinclair/typebox/errors');
|
|
34
34
|
require('@sinclair/typebox/value');
|
|
35
|
-
require('../shared/arri.
|
|
35
|
+
require('../shared/arri.234caf5e.cjs');
|
|
36
36
|
require('child_process');
|
|
37
37
|
require('jiti');
|
|
38
38
|
require('node:path');
|
package/dist/chunks/index.mjs
CHANGED
|
@@ -27,10 +27,10 @@ import 'ofetch';
|
|
|
27
27
|
import 'prettier';
|
|
28
28
|
import '@sinclair/typebox';
|
|
29
29
|
import 'h3';
|
|
30
|
-
import '../shared/arri.
|
|
30
|
+
import '../shared/arri.54e67ffe.mjs';
|
|
31
31
|
import '@sinclair/typebox/errors';
|
|
32
32
|
import '@sinclair/typebox/value';
|
|
33
|
-
import '../shared/arri.
|
|
33
|
+
import '../shared/arri.4d2ea869.mjs';
|
|
34
34
|
import 'child_process';
|
|
35
35
|
import 'jiti';
|
|
36
36
|
import 'node:path';
|
package/dist/cli.cjs
CHANGED
|
@@ -8,10 +8,10 @@ const require$$0 = require('fs');
|
|
|
8
8
|
const prettier = require('prettier');
|
|
9
9
|
require('@sinclair/typebox');
|
|
10
10
|
require('h3');
|
|
11
|
-
const app = require('./shared/arri.
|
|
11
|
+
const app = require('./shared/arri.38792eb4.cjs');
|
|
12
12
|
require('@sinclair/typebox/errors');
|
|
13
13
|
require('@sinclair/typebox/value');
|
|
14
|
-
const dart = require('./shared/arri.
|
|
14
|
+
const dart = require('./shared/arri.234caf5e.cjs');
|
|
15
15
|
const fs$f = require('node:fs/promises');
|
|
16
16
|
const path$e = require('pathe');
|
|
17
17
|
const require$$0$1 = require('path');
|
package/dist/cli.mjs
CHANGED
|
@@ -6,10 +6,10 @@ import require$$0 from 'fs';
|
|
|
6
6
|
import * as prettier from 'prettier';
|
|
7
7
|
import '@sinclair/typebox';
|
|
8
8
|
import 'h3';
|
|
9
|
-
import { a as DEV_DEFINITION_ENDPOINT, C as isApplicationDef, z as camelCase, G as removeDisallowedChars, L as kebabCase } from './shared/arri.
|
|
9
|
+
import { a as DEV_DEFINITION_ENDPOINT, C as isApplicationDef, z as camelCase, G as removeDisallowedChars, L as kebabCase } from './shared/arri.54e67ffe.mjs';
|
|
10
10
|
import '@sinclair/typebox/errors';
|
|
11
11
|
import '@sinclair/typebox/value';
|
|
12
|
-
import { a as dartClientGenerator } from './shared/arri.
|
|
12
|
+
import { a as dartClientGenerator } from './shared/arri.4d2ea869.mjs';
|
|
13
13
|
import fs$f, { rm } from 'node:fs/promises';
|
|
14
14
|
import path$e, { isAbsolute, resolve as resolve$1, dirname, join, extname as extname$1, basename } from 'pathe';
|
|
15
15
|
import require$$0$1 from 'path';
|
package/dist/codegen.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const require$$0 = require('fs');
|
|
4
4
|
const prettier = require('prettier');
|
|
5
|
-
const app = require('./shared/arri.
|
|
6
|
-
const dart = require('./shared/arri.
|
|
5
|
+
const app = require('./shared/arri.38792eb4.cjs');
|
|
6
|
+
const dart = require('./shared/arri.234caf5e.cjs');
|
|
7
7
|
require('@sinclair/typebox');
|
|
8
8
|
require('h3');
|
|
9
9
|
require('@sinclair/typebox/errors');
|
package/dist/codegen.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { writeFileSync } from 'fs';
|
|
2
2
|
import { format } from 'prettier';
|
|
3
|
-
import { u as unflattenObject, o as isServiceDef, p as pascalCase, q as isProcedureDef, s as isJsonSchemaScalarType, t as isJsonSchemaNullType, v as isJsonSchemaObject, w as isJsonSchemaEnum, x as isJsonSchemaArray, y as unflattenProcedures, z as camelCase } from './shared/arri.
|
|
4
|
-
export { K as JsonSchemaComplexTypeValues, I as JsonSchemaNullTypeValues, J as JsonSchemaScalarTypeValues, C as isApplicationDef, B as normalizeWhitespace, G as removeDisallowedChars, F as setNestedObjectProperty } from './shared/arri.
|
|
5
|
-
import { d as defineClientGeneratorPlugin } from './shared/arri.
|
|
6
|
-
export { j as classListTransformer, i as classTransformer, c as createDartClient, a as dartClientGenerator, f as dartModelFromJsonSchema, h as dartParsedJsonField, e as dartProcedureFromServiceDefinition, g as dartPropertyTypeFromSchema, b as dartServiceFromServiceDefinition, k as isDartType, l as isDartTypeWithNullables, t as transformers } from './shared/arri.
|
|
3
|
+
import { u as unflattenObject, o as isServiceDef, p as pascalCase, q as isProcedureDef, s as isJsonSchemaScalarType, t as isJsonSchemaNullType, v as isJsonSchemaObject, w as isJsonSchemaEnum, x as isJsonSchemaArray, y as unflattenProcedures, z as camelCase } from './shared/arri.54e67ffe.mjs';
|
|
4
|
+
export { K as JsonSchemaComplexTypeValues, I as JsonSchemaNullTypeValues, J as JsonSchemaScalarTypeValues, C as isApplicationDef, B as normalizeWhitespace, G as removeDisallowedChars, F as setNestedObjectProperty } from './shared/arri.54e67ffe.mjs';
|
|
5
|
+
import { d as defineClientGeneratorPlugin } from './shared/arri.4d2ea869.mjs';
|
|
6
|
+
export { j as classListTransformer, i as classTransformer, c as createDartClient, a as dartClientGenerator, f as dartModelFromJsonSchema, h as dartParsedJsonField, e as dartProcedureFromServiceDefinition, g as dartPropertyTypeFromSchema, b as dartServiceFromServiceDefinition, k as isDartType, l as isDartTypeWithNullables, t as transformers } from './shared/arri.4d2ea869.mjs';
|
|
7
7
|
import '@sinclair/typebox';
|
|
8
8
|
import 'h3';
|
|
9
9
|
import '@sinclair/typebox/errors';
|
package/dist/index.cjs
CHANGED
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.
|
|
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';
|
|
2
2
|
import '@sinclair/typebox';
|
|
3
3
|
import 'h3';
|
|
4
4
|
import '@sinclair/typebox/errors';
|
|
@@ -518,7 +518,6 @@ function getRpcResponseDefinition(rpcName, procedure) {
|
|
|
518
518
|
function registerRpc(router, path, procedure, middleware) {
|
|
519
519
|
const httpMethod = procedure.method ?? "post";
|
|
520
520
|
const handler = h3.eventHandler(async (event) => {
|
|
521
|
-
console.log(h3.getRequestHeaders(event));
|
|
522
521
|
const context = {
|
|
523
522
|
event
|
|
524
523
|
};
|
|
@@ -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.
|
|
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';
|
|
4
4
|
|
|
5
5
|
function defineClientGeneratorPlugin(plugin) {
|
|
6
6
|
return plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type, TypeGuard } from '@sinclair/typebox';
|
|
2
|
-
import { createError, eventHandler,
|
|
2
|
+
import { createError, eventHandler, isPreflightRequest, readValidatedBody, getValidatedQuery, setResponseHeader, send, createRouter, createApp, sendError } from 'h3';
|
|
3
3
|
import { ValueErrorType } from '@sinclair/typebox/errors';
|
|
4
4
|
import { Value } from '@sinclair/typebox/value';
|
|
5
5
|
|
|
@@ -516,7 +516,6 @@ function getRpcResponseDefinition(rpcName, procedure) {
|
|
|
516
516
|
function registerRpc(router, path, procedure, middleware) {
|
|
517
517
|
const httpMethod = procedure.method ?? "post";
|
|
518
518
|
const handler = eventHandler(async (event) => {
|
|
519
|
-
console.log(getRequestHeaders(event));
|
|
520
519
|
const context = {
|
|
521
520
|
event
|
|
522
521
|
};
|