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.
@@ -42,7 +42,7 @@ require('h3');
42
42
  require('@sinclair/typebox/errors');
43
43
  require('@sinclair/typebox/value');
44
44
  require('ofetch');
45
- require('../shared/arri.33c6d46f.cjs');
45
+ require('../shared/arri.f250629b.cjs');
46
46
  require('child_process');
47
47
  require('listhen');
48
48
 
@@ -40,7 +40,7 @@ import 'h3';
40
40
  import '@sinclair/typebox/errors';
41
41
  import '@sinclair/typebox/value';
42
42
  import 'ofetch';
43
- import '../shared/arri.b38c19c1.mjs';
43
+ import '../shared/arri.d767421d.mjs';
44
44
  import 'child_process';
45
45
  import 'listhen';
46
46
 
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.33c6d46f.cjs');
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.b38c19c1.mjs';
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.33c6d46f.cjs');
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.b38c19c1.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.b38c19c1.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.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<Map<String, dynamic>>)
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<Map<String, dynamic>>)
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()`
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "chokidar": "^3.5.3",
26
26
  "listhen": "^1.5.0"
27
27
  },
28
- "version": "0.0.42",
28
+ "version": "0.0.43",
29
29
  "repository": {
30
30
  "url": "https://github.com/modiimedia/arri"
31
31
  }