arri 0.70.1 → 0.71.1
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 +8 -8
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +8 -8
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -124,7 +124,7 @@ function goServer(options = {}) {
|
|
|
124
124
|
default: {
|
|
125
125
|
await closeChildProcess();
|
|
126
126
|
childProcess?.removeAllListeners();
|
|
127
|
-
childProcess =
|
|
127
|
+
childProcess = undefined;
|
|
128
128
|
spawnProcess();
|
|
129
129
|
}
|
|
130
130
|
}
|
|
@@ -213,7 +213,7 @@ function goServer(options = {}) {
|
|
|
213
213
|
|
|
214
214
|
function tsServer(serverConfig) {
|
|
215
215
|
return common.defineServerConfig({
|
|
216
|
-
devArgs:
|
|
216
|
+
devArgs: undefined,
|
|
217
217
|
async devFn(_, generators) {
|
|
218
218
|
const resolvedConfig = {
|
|
219
219
|
port: serverConfig?.port ?? defaultTsServerConfig.port,
|
|
@@ -231,7 +231,7 @@ function tsServer(serverConfig) {
|
|
|
231
231
|
};
|
|
232
232
|
await startDevServer(resolvedConfig, generators);
|
|
233
233
|
},
|
|
234
|
-
buildArgs:
|
|
234
|
+
buildArgs: undefined,
|
|
235
235
|
async buildFn(args, generators) {
|
|
236
236
|
const resolvedConfig = {
|
|
237
237
|
port: serverConfig?.port ?? 3e3,
|
|
@@ -272,9 +272,9 @@ const defaultTsServerConfig = {
|
|
|
272
272
|
https: false,
|
|
273
273
|
http2: false,
|
|
274
274
|
devServer: {
|
|
275
|
-
additionalWatchDirs:
|
|
276
|
-
httpWithHttps:
|
|
277
|
-
httpWithHttpsPort:
|
|
275
|
+
additionalWatchDirs: undefined,
|
|
276
|
+
httpWithHttps: undefined,
|
|
277
|
+
httpWithHttpsPort: undefined
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
async function startBuild(generators, serverConfig, skipCodeGen = false) {
|
|
@@ -707,7 +707,7 @@ async function getFsRouteBatch(glob, globPattern, config) {
|
|
|
707
707
|
const disallowedNameChars = "~`!@#$%^&*()-+=[]{}\\|:;\"'<>,./";
|
|
708
708
|
const getRpcMetaFromPath = (config, filePath) => {
|
|
709
709
|
if (!config.procedureDir) {
|
|
710
|
-
return
|
|
710
|
+
return undefined;
|
|
711
711
|
}
|
|
712
712
|
const resolvedFilePath = filePath.split("./").join("/");
|
|
713
713
|
const parts = resolvedFilePath.split("/");
|
|
@@ -723,7 +723,7 @@ const getRpcMetaFromPath = (config, filePath) => {
|
|
|
723
723
|
const serviceParts = nameParts.filter((part) => part.trim().length > 0).map((part) => codegenUtils.removeDisallowedChars(part, disallowedNameChars));
|
|
724
724
|
const fileNameParts = fileName.split(".");
|
|
725
725
|
if (!fileNameParts.length) {
|
|
726
|
-
return
|
|
726
|
+
return undefined;
|
|
727
727
|
}
|
|
728
728
|
const rpcName = codegenUtils.removeDisallowedChars(
|
|
729
729
|
fileNameParts[0],
|
package/dist/index.d.cts
CHANGED
|
@@ -48,7 +48,7 @@ interface TsServerConfig {
|
|
|
48
48
|
*/
|
|
49
49
|
procedureGlobPatterns?: string[];
|
|
50
50
|
buildDir?: string;
|
|
51
|
-
esbuild?: Omit<esbuild.BuildOptions,
|
|
51
|
+
esbuild?: Omit<esbuild.BuildOptions, 'bundle' | 'format' | 'outfile' | 'outdir' | 'entryNames' | 'entryPoints' | 'packages'>;
|
|
52
52
|
https?: {
|
|
53
53
|
cert: string;
|
|
54
54
|
key: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -48,7 +48,7 @@ interface TsServerConfig {
|
|
|
48
48
|
*/
|
|
49
49
|
procedureGlobPatterns?: string[];
|
|
50
50
|
buildDir?: string;
|
|
51
|
-
esbuild?: Omit<esbuild.BuildOptions,
|
|
51
|
+
esbuild?: Omit<esbuild.BuildOptions, 'bundle' | 'format' | 'outfile' | 'outdir' | 'entryNames' | 'entryPoints' | 'packages'>;
|
|
52
52
|
https?: {
|
|
53
53
|
cert: string;
|
|
54
54
|
key: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ interface TsServerConfig {
|
|
|
48
48
|
*/
|
|
49
49
|
procedureGlobPatterns?: string[];
|
|
50
50
|
buildDir?: string;
|
|
51
|
-
esbuild?: Omit<esbuild.BuildOptions,
|
|
51
|
+
esbuild?: Omit<esbuild.BuildOptions, 'bundle' | 'format' | 'outfile' | 'outdir' | 'entryNames' | 'entryPoints' | 'packages'>;
|
|
52
52
|
https?: {
|
|
53
53
|
cert: string;
|
|
54
54
|
key: string;
|
package/dist/index.mjs
CHANGED
|
@@ -98,7 +98,7 @@ function goServer(options = {}) {
|
|
|
98
98
|
default: {
|
|
99
99
|
await closeChildProcess();
|
|
100
100
|
childProcess?.removeAllListeners();
|
|
101
|
-
childProcess =
|
|
101
|
+
childProcess = undefined;
|
|
102
102
|
spawnProcess();
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -187,7 +187,7 @@ function goServer(options = {}) {
|
|
|
187
187
|
|
|
188
188
|
function tsServer(serverConfig) {
|
|
189
189
|
return defineServerConfig({
|
|
190
|
-
devArgs:
|
|
190
|
+
devArgs: undefined,
|
|
191
191
|
async devFn(_, generators) {
|
|
192
192
|
const resolvedConfig = {
|
|
193
193
|
port: serverConfig?.port ?? defaultTsServerConfig.port,
|
|
@@ -205,7 +205,7 @@ function tsServer(serverConfig) {
|
|
|
205
205
|
};
|
|
206
206
|
await startDevServer(resolvedConfig, generators);
|
|
207
207
|
},
|
|
208
|
-
buildArgs:
|
|
208
|
+
buildArgs: undefined,
|
|
209
209
|
async buildFn(args, generators) {
|
|
210
210
|
const resolvedConfig = {
|
|
211
211
|
port: serverConfig?.port ?? 3e3,
|
|
@@ -246,9 +246,9 @@ const defaultTsServerConfig = {
|
|
|
246
246
|
https: false,
|
|
247
247
|
http2: false,
|
|
248
248
|
devServer: {
|
|
249
|
-
additionalWatchDirs:
|
|
250
|
-
httpWithHttps:
|
|
251
|
-
httpWithHttpsPort:
|
|
249
|
+
additionalWatchDirs: undefined,
|
|
250
|
+
httpWithHttps: undefined,
|
|
251
|
+
httpWithHttpsPort: undefined
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
254
|
async function startBuild(generators, serverConfig, skipCodeGen = false) {
|
|
@@ -681,7 +681,7 @@ async function getFsRouteBatch(glob, globPattern, config) {
|
|
|
681
681
|
const disallowedNameChars = "~`!@#$%^&*()-+=[]{}\\|:;\"'<>,./";
|
|
682
682
|
const getRpcMetaFromPath = (config, filePath) => {
|
|
683
683
|
if (!config.procedureDir) {
|
|
684
|
-
return
|
|
684
|
+
return undefined;
|
|
685
685
|
}
|
|
686
686
|
const resolvedFilePath = filePath.split("./").join("/");
|
|
687
687
|
const parts = resolvedFilePath.split("/");
|
|
@@ -697,7 +697,7 @@ const getRpcMetaFromPath = (config, filePath) => {
|
|
|
697
697
|
const serviceParts = nameParts.filter((part) => part.trim().length > 0).map((part) => removeDisallowedChars(part, disallowedNameChars));
|
|
698
698
|
const fileNameParts = fileName.split(".");
|
|
699
699
|
if (!fileNameParts.length) {
|
|
700
|
-
return
|
|
700
|
+
return undefined;
|
|
701
701
|
}
|
|
702
702
|
const rpcName = removeDisallowedChars(
|
|
703
703
|
fileNameParts[0],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arri",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"esbuild": "^0.24.2",
|
|
36
36
|
"esbuild-plugin-replace": "^1.4.0",
|
|
37
37
|
"globby": "^14.0.2",
|
|
38
|
-
"h3": "^1.13.
|
|
38
|
+
"h3": "^1.13.1",
|
|
39
39
|
"ofetch": "^1.4.1",
|
|
40
|
-
"pathe": "^
|
|
40
|
+
"pathe": "^2.0.1",
|
|
41
41
|
"prettier": "^3.4.2",
|
|
42
|
-
"@arrirpc/codegen-
|
|
43
|
-
"@arrirpc/codegen-
|
|
44
|
-
"@arrirpc/codegen-
|
|
45
|
-
"@arrirpc/codegen-
|
|
46
|
-
"@arrirpc/codegen-
|
|
47
|
-
"@arrirpc/codegen-utils": "0.
|
|
48
|
-
"@arrirpc/schema": "0.
|
|
42
|
+
"@arrirpc/codegen-kotlin": "0.71.1",
|
|
43
|
+
"@arrirpc/codegen-dart": "0.71.1",
|
|
44
|
+
"@arrirpc/codegen-rust": "0.71.1",
|
|
45
|
+
"@arrirpc/codegen-swift": "0.71.1",
|
|
46
|
+
"@arrirpc/codegen-ts": "0.71.1",
|
|
47
|
+
"@arrirpc/codegen-utils": "0.71.1",
|
|
48
|
+
"@arrirpc/schema": "0.71.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/degit": "^2.8.6"
|