arri 0.0.42 → 0.0.43
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 +1 -1
- package/dist/chunks/index.mjs +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/codegen.cjs +1 -1
- package/dist/codegen.mjs +2 -2
- package/dist/shared/{arri.b38c19c1.mjs → arri.d767421d.mjs} +1 -1
- package/dist/shared/{arri.33c6d46f.cjs → arri.f250629b.cjs} +1 -1
- package/package.json +1 -1
package/dist/chunks/index.cjs
CHANGED
package/dist/chunks/index.mjs
CHANGED
package/dist/cli.cjs
CHANGED
|
@@ -29,7 +29,7 @@ const utils$l = require('./shared/arri.0752aa2b.cjs');
|
|
|
29
29
|
const index = require('./index.cjs');
|
|
30
30
|
require('node:stream');
|
|
31
31
|
const ofetch = require('ofetch');
|
|
32
|
-
const dart = require('./shared/arri.
|
|
32
|
+
const dart = require('./shared/arri.f250629b.cjs');
|
|
33
33
|
const listhen = require('listhen');
|
|
34
34
|
require('@sinclair/typebox');
|
|
35
35
|
require('h3');
|
package/dist/cli.mjs
CHANGED
|
@@ -27,7 +27,7 @@ import { c as camelCase, r as removeDisallowedChars, k as kebabCase, d as isAppl
|
|
|
27
27
|
import { defaultConfig, DEV_DEFINITION_ENDPOINT } from './index.mjs';
|
|
28
28
|
import 'node:stream';
|
|
29
29
|
import { ofetch } from 'ofetch';
|
|
30
|
-
import { g as dartClientGenerator } from './shared/arri.
|
|
30
|
+
import { g as dartClientGenerator } from './shared/arri.d767421d.mjs';
|
|
31
31
|
import { listenAndWatch } from 'listhen';
|
|
32
32
|
import '@sinclair/typebox';
|
|
33
33
|
import 'h3';
|
package/dist/codegen.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const require$$0 = require('fs');
|
|
4
4
|
const prettier = require('prettier');
|
|
5
5
|
const utils = require('./shared/arri.0752aa2b.cjs');
|
|
6
|
-
const dart = require('./shared/arri.
|
|
6
|
+
const dart = require('./shared/arri.f250629b.cjs');
|
|
7
7
|
require('child_process');
|
|
8
8
|
|
|
9
9
|
let generatedModels = [];
|
package/dist/codegen.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { writeFileSync } from 'fs';
|
|
|
2
2
|
import { format } from 'prettier';
|
|
3
3
|
import { u as unflattenObject, i as isServiceDef, p as pascalCase, a as isProcedureDef, b as unflattenProcedures, c as camelCase } from './shared/arri.ebf86912.mjs';
|
|
4
4
|
export { d as isApplicationDef, n as normalizeWhitespace, r as removeDisallowedChars, s as setNestedObjectProperty } from './shared/arri.ebf86912.mjs';
|
|
5
|
-
import { d as defineClientGeneratorPlugin, i as isJsonSchemaScalarType, a as isJsonSchemaNullType, b as isJsonSchemaObject, c as isJsonSchemaRecord, e as isJsonSchemaEnum, f as isJsonSchemaArray } from './shared/arri.
|
|
6
|
-
export { p as classListTransformer, o as classTransformer, h as createDartClient, g as dartClientGenerator, l as dartModelFromJsonSchema, n as dartParsedJsonField, k as dartProcedureFromServiceDefinition, m as dartPropertyTypeFromSchema, j as dartServiceFromServiceDefinition, q as isDartType, r as isDartTypeWithNullables, t as transformers } from './shared/arri.
|
|
5
|
+
import { d as defineClientGeneratorPlugin, i as isJsonSchemaScalarType, a as isJsonSchemaNullType, b as isJsonSchemaObject, c as isJsonSchemaRecord, e as isJsonSchemaEnum, f as isJsonSchemaArray } from './shared/arri.d767421d.mjs';
|
|
6
|
+
export { p as classListTransformer, o as classTransformer, h as createDartClient, g as dartClientGenerator, l as dartModelFromJsonSchema, n as dartParsedJsonField, k as dartProcedureFromServiceDefinition, m as dartPropertyTypeFromSchema, j as dartServiceFromServiceDefinition, q as isDartType, r as isDartTypeWithNullables, t as transformers } from './shared/arri.d767421d.mjs';
|
|
7
7
|
import 'child_process';
|
|
8
8
|
|
|
9
9
|
let generatedModels = [];
|
|
@@ -724,7 +724,7 @@ const classListTransformer = (typename) => {
|
|
|
724
724
|
return {
|
|
725
725
|
fromJsonBody: (key, jsonKey, fallback) => {
|
|
726
726
|
return `${key}: json["${jsonKey}"] is List ?
|
|
727
|
-
(json["${jsonKey}"] as List<
|
|
727
|
+
(json["${jsonKey}"] as List<dynamic>)
|
|
728
728
|
.map((val) => ${typename}.fromJson(val)).toList() : ${fallback}`;
|
|
729
729
|
},
|
|
730
730
|
toJsonBody: (key, jsonKey, isNullable) => `"${jsonKey}": ${key}${isNullable ? "?" : ""}.map((val) => val.toJson()).toList()`
|
|
@@ -726,7 +726,7 @@ const classListTransformer = (typename) => {
|
|
|
726
726
|
return {
|
|
727
727
|
fromJsonBody: (key, jsonKey, fallback) => {
|
|
728
728
|
return `${key}: json["${jsonKey}"] is List ?
|
|
729
|
-
(json["${jsonKey}"] as List<
|
|
729
|
+
(json["${jsonKey}"] as List<dynamic>)
|
|
730
730
|
.map((val) => ${typename}.fromJson(val)).toList() : ${fallback}`;
|
|
731
731
|
},
|
|
732
732
|
toJsonBody: (key, jsonKey, isNullable) => `"${jsonKey}": ${key}${isNullable ? "?" : ""}.map((val) => val.toJson()).toList()`
|