arri 0.55.0 → 0.57.2
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/cli.cjs
CHANGED
|
@@ -11,7 +11,7 @@ const esbuild = require('esbuild');
|
|
|
11
11
|
const esbuildPluginReplace = require('esbuild-plugin-replace');
|
|
12
12
|
const path = require('pathe');
|
|
13
13
|
const prettier = require('prettier');
|
|
14
|
-
const dev = require('./shared/arri.
|
|
14
|
+
const dev = require('./shared/arri.42cdc72b.cjs');
|
|
15
15
|
const ofetch = require('ofetch');
|
|
16
16
|
const Degit = require('degit');
|
|
17
17
|
const enquirer = require('enquirer');
|
package/dist/cli.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { build as build$1 } from 'esbuild';
|
|
|
9
9
|
import { replace } from 'esbuild-plugin-replace';
|
|
10
10
|
import path from 'pathe';
|
|
11
11
|
import prettier from 'prettier';
|
|
12
|
-
import { d as defaultConfig, l as logger, s as setupWorkingDir, c as createAppWithRoutesModule, O as OUT_CODEGEN, e as OUT_SERVER_ENTRY, G as GEN_APP_FILE, f as OUT_APP_FILE, i as isArriConfig, g as getArriPackageMetadata, h as dev } from './shared/arri.
|
|
12
|
+
import { d as defaultConfig, l as logger, s as setupWorkingDir, c as createAppWithRoutesModule, O as OUT_CODEGEN, e as OUT_SERVER_ENTRY, G as GEN_APP_FILE, f as OUT_APP_FILE, i as isArriConfig, g as getArriPackageMetadata, h as dev } from './shared/arri.e6e562ed.mjs';
|
|
13
13
|
import { ofetch } from 'ofetch';
|
|
14
14
|
import Degit from 'degit';
|
|
15
15
|
import enquirer from 'enquirer';
|
package/dist/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const codegenDart = require('@arrirpc/codegen-dart');
|
|
|
4
4
|
const codegenKotlin = require('@arrirpc/codegen-kotlin');
|
|
5
5
|
const codegenRust = require('@arrirpc/codegen-rust');
|
|
6
6
|
const codegenTs = require('@arrirpc/codegen-ts');
|
|
7
|
-
const dev = require('./shared/arri.
|
|
7
|
+
const dev = require('./shared/arri.42cdc72b.cjs');
|
|
8
8
|
const codegenUtils = require('@arrirpc/codegen-utils');
|
|
9
9
|
require('node:fs');
|
|
10
10
|
require('node:fs/promises');
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { dartClientGenerator } from '@arrirpc/codegen-dart';
|
|
|
2
2
|
import { kotlinClientGenerator } from '@arrirpc/codegen-kotlin';
|
|
3
3
|
import { rustClientGenerator } from '@arrirpc/codegen-rust';
|
|
4
4
|
import { typescriptClientGenerator } from '@arrirpc/codegen-ts';
|
|
5
|
-
export { D as DEV_DEFINITION_ENDPOINT, d as defaultConfig, b as defineConfig, i as isArriConfig, a as isResolvedArriConfig } from './shared/arri.
|
|
5
|
+
export { D as DEV_DEFINITION_ENDPOINT, d as defaultConfig, b as defineConfig, i as isArriConfig, a as isResolvedArriConfig } from './shared/arri.e6e562ed.mjs';
|
|
6
6
|
export { createAppDefinition } from '@arrirpc/codegen-utils';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:fs/promises';
|
|
@@ -77,27 +77,10 @@ async function createAppWithRoutesModule(config) {
|
|
|
77
77
|
${routes.map(
|
|
78
78
|
(route) => `import ${route.importName} from '${route.importPath}';`
|
|
79
79
|
).join("\n")}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
for(const route of routes) {
|
|
85
|
-
if(route.route.transport === 'http') {
|
|
86
|
-
app.rpc({
|
|
87
|
-
name: route.id,
|
|
88
|
-
...route.route,
|
|
89
|
-
});
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
if (route.route.transport === 'ws') {
|
|
93
|
-
app.wsRpc({
|
|
94
|
-
name: route.id,
|
|
95
|
-
...route.route,
|
|
96
|
-
});
|
|
97
|
-
continue;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
export default app`,
|
|
80
|
+
|
|
81
|
+
${routes.map((route) => `app.rpc('${route.name}', ${route.importName});`).join("\n")}
|
|
82
|
+
|
|
83
|
+
export default app;`,
|
|
101
84
|
{ parser: "typescript", tabWidth: 4 }
|
|
102
85
|
);
|
|
103
86
|
await fs__default.writeFile(
|
|
@@ -56,27 +56,10 @@ async function createAppWithRoutesModule(config) {
|
|
|
56
56
|
${routes.map(
|
|
57
57
|
(route) => `import ${route.importName} from '${route.importPath}';`
|
|
58
58
|
).join("\n")}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
for(const route of routes) {
|
|
64
|
-
if(route.route.transport === 'http') {
|
|
65
|
-
app.rpc({
|
|
66
|
-
name: route.id,
|
|
67
|
-
...route.route,
|
|
68
|
-
});
|
|
69
|
-
continue;
|
|
70
|
-
}
|
|
71
|
-
if (route.route.transport === 'ws') {
|
|
72
|
-
app.wsRpc({
|
|
73
|
-
name: route.id,
|
|
74
|
-
...route.route,
|
|
75
|
-
});
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
export default app`,
|
|
59
|
+
|
|
60
|
+
${routes.map((route) => `app.rpc('${route.name}', ${route.importName});`).join("\n")}
|
|
61
|
+
|
|
62
|
+
export default app;`,
|
|
80
63
|
{ parser: "typescript", tabWidth: 4 }
|
|
81
64
|
);
|
|
82
65
|
await fs.writeFile(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arri",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"ofetch": "^1.3.4",
|
|
40
40
|
"pathe": "^1.1.2",
|
|
41
41
|
"prettier": "^3.3.3",
|
|
42
|
-
"@arrirpc/codegen-dart": "0.
|
|
43
|
-
"@arrirpc/codegen-kotlin": "0.
|
|
44
|
-
"@arrirpc/codegen-ts": "0.
|
|
45
|
-
"@arrirpc/
|
|
46
|
-
"@arrirpc/
|
|
47
|
-
"@arrirpc/codegen-
|
|
42
|
+
"@arrirpc/codegen-dart": "0.57.2",
|
|
43
|
+
"@arrirpc/codegen-kotlin": "0.57.2",
|
|
44
|
+
"@arrirpc/codegen-ts": "0.57.2",
|
|
45
|
+
"@arrirpc/codegen-rust": "0.57.2",
|
|
46
|
+
"@arrirpc/schema": "0.57.2",
|
|
47
|
+
"@arrirpc/codegen-utils": "0.57.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/degit": "^2.8.6"
|