@arrirpc/codegen-dart 0.45.3 → 0.45.5
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.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
@@ -213,7 +213,7 @@ function dartRpcFromDefinition(key, def, opts) {
|
|
213
213
|
);
|
214
214
|
return "";
|
215
215
|
}
|
216
|
-
function dartHttpRpcFromSchema(key, def,
|
216
|
+
function dartHttpRpcFromSchema(key, def, _opts) {
|
217
217
|
let returnType = `Future<String>`;
|
218
218
|
let returnTypeName = "String";
|
219
219
|
if (def.response) {
|
@@ -301,7 +301,7 @@ function dartHttpRpcFromSchema(key, def, opts) {
|
|
301
301
|
);
|
302
302
|
}`;
|
303
303
|
}
|
304
|
-
function dartWsRpcFromSchema(key, def,
|
304
|
+
function dartWsRpcFromSchema(key, def, _opts) {
|
305
305
|
const serverMsg = def.response ? codegenUtils.pascalCase(def.response, { normalize: true }) : "Null";
|
306
306
|
const clientMsg = def.params ? codegenUtils.pascalCase(def.params, { normalize: true }) : "Null";
|
307
307
|
const returnType = `Future<ArriWebsocketController<${serverMsg}, ${clientMsg}>>`;
|
package/dist/index.d.cts
CHANGED
@@ -16,8 +16,8 @@ interface ServiceOptions extends DartClientGeneratorOptions {
|
|
16
16
|
}
|
17
17
|
declare function dartServiceFromDefinition(name: string, def: ServiceDefinition, opts: ServiceOptions): string;
|
18
18
|
declare function dartRpcFromDefinition(key: string, def: RpcDefinition, opts: DartClientGeneratorOptions): string;
|
19
|
-
declare function dartHttpRpcFromSchema(key: string, def: HttpRpcDefinition,
|
20
|
-
declare function dartWsRpcFromSchema(key: string, def: WsRpcDefinition,
|
19
|
+
declare function dartHttpRpcFromSchema(key: string, def: HttpRpcDefinition, _opts: DartClientGeneratorOptions): string;
|
20
|
+
declare function dartWsRpcFromSchema(key: string, def: WsRpcDefinition, _opts: DartClientGeneratorOptions): string;
|
21
21
|
declare function dartTypeFromJtdSchema(
|
22
22
|
/**
|
23
23
|
* location in the tree i.e User.reviews.id
|
package/dist/index.d.mts
CHANGED
@@ -16,8 +16,8 @@ interface ServiceOptions extends DartClientGeneratorOptions {
|
|
16
16
|
}
|
17
17
|
declare function dartServiceFromDefinition(name: string, def: ServiceDefinition, opts: ServiceOptions): string;
|
18
18
|
declare function dartRpcFromDefinition(key: string, def: RpcDefinition, opts: DartClientGeneratorOptions): string;
|
19
|
-
declare function dartHttpRpcFromSchema(key: string, def: HttpRpcDefinition,
|
20
|
-
declare function dartWsRpcFromSchema(key: string, def: WsRpcDefinition,
|
19
|
+
declare function dartHttpRpcFromSchema(key: string, def: HttpRpcDefinition, _opts: DartClientGeneratorOptions): string;
|
20
|
+
declare function dartWsRpcFromSchema(key: string, def: WsRpcDefinition, _opts: DartClientGeneratorOptions): string;
|
21
21
|
declare function dartTypeFromJtdSchema(
|
22
22
|
/**
|
23
23
|
* location in the tree i.e User.reviews.id
|
package/dist/index.d.ts
CHANGED
@@ -16,8 +16,8 @@ interface ServiceOptions extends DartClientGeneratorOptions {
|
|
16
16
|
}
|
17
17
|
declare function dartServiceFromDefinition(name: string, def: ServiceDefinition, opts: ServiceOptions): string;
|
18
18
|
declare function dartRpcFromDefinition(key: string, def: RpcDefinition, opts: DartClientGeneratorOptions): string;
|
19
|
-
declare function dartHttpRpcFromSchema(key: string, def: HttpRpcDefinition,
|
20
|
-
declare function dartWsRpcFromSchema(key: string, def: WsRpcDefinition,
|
19
|
+
declare function dartHttpRpcFromSchema(key: string, def: HttpRpcDefinition, _opts: DartClientGeneratorOptions): string;
|
20
|
+
declare function dartWsRpcFromSchema(key: string, def: WsRpcDefinition, _opts: DartClientGeneratorOptions): string;
|
21
21
|
declare function dartTypeFromJtdSchema(
|
22
22
|
/**
|
23
23
|
* location in the tree i.e User.reviews.id
|
package/dist/index.mjs
CHANGED
@@ -211,7 +211,7 @@ function dartRpcFromDefinition(key, def, opts) {
|
|
211
211
|
);
|
212
212
|
return "";
|
213
213
|
}
|
214
|
-
function dartHttpRpcFromSchema(key, def,
|
214
|
+
function dartHttpRpcFromSchema(key, def, _opts) {
|
215
215
|
let returnType = `Future<String>`;
|
216
216
|
let returnTypeName = "String";
|
217
217
|
if (def.response) {
|
@@ -299,7 +299,7 @@ function dartHttpRpcFromSchema(key, def, opts) {
|
|
299
299
|
);
|
300
300
|
}`;
|
301
301
|
}
|
302
|
-
function dartWsRpcFromSchema(key, def,
|
302
|
+
function dartWsRpcFromSchema(key, def, _opts) {
|
303
303
|
const serverMsg = def.response ? pascalCase(def.response, { normalize: true }) : "Null";
|
304
304
|
const clientMsg = def.params ? pascalCase(def.params, { normalize: true }) : "Null";
|
305
305
|
const returnType = `Future<ArriWebsocketController<${serverMsg}, ${clientMsg}>>`;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arrirpc/codegen-dart",
|
3
|
-
"version": "0.45.
|
3
|
+
"version": "0.45.5",
|
4
4
|
"type": "module",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": {
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"dist"
|
23
23
|
],
|
24
24
|
"dependencies": {
|
25
|
-
"@arrirpc/codegen-utils": "0.45.
|
26
|
-
"@arrirpc/schema": "0.45.
|
25
|
+
"@arrirpc/codegen-utils": "0.45.5",
|
26
|
+
"@arrirpc/schema": "0.45.5"
|
27
27
|
}
|
28
28
|
}
|