arri 0.74.0 → 0.75.0
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.mjs +8 -8
- package/package.json +14 -14
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 = void 0;
|
|
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: void 0,
|
|
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: void 0,
|
|
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: void 0,
|
|
276
|
+
httpWithHttps: void 0,
|
|
277
|
+
httpWithHttpsPort: void 0
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
async function startBuild(generators, serverConfig, skipCodeGen = false) {
|
|
@@ -716,7 +716,7 @@ async function getFsRouteBatch(glob, globPattern, config) {
|
|
|
716
716
|
const disallowedNameChars = "~`!@#$%^&*()-+=[]{}\\|:;\"'<>,./";
|
|
717
717
|
const getRpcMetaFromPath = (config, filePath) => {
|
|
718
718
|
if (!config.procedureDir) {
|
|
719
|
-
return
|
|
719
|
+
return void 0;
|
|
720
720
|
}
|
|
721
721
|
const resolvedFilePath = filePath.split("./").join("/");
|
|
722
722
|
const parts = resolvedFilePath.split("/");
|
|
@@ -732,7 +732,7 @@ const getRpcMetaFromPath = (config, filePath) => {
|
|
|
732
732
|
const serviceParts = nameParts.filter((part) => part.trim().length > 0).map((part) => codegenUtils.removeDisallowedChars(part, disallowedNameChars));
|
|
733
733
|
const fileNameParts = fileName.split(".");
|
|
734
734
|
if (!fileNameParts.length) {
|
|
735
|
-
return
|
|
735
|
+
return void 0;
|
|
736
736
|
}
|
|
737
737
|
const rpcName = codegenUtils.removeDisallowedChars(
|
|
738
738
|
fileNameParts[0],
|
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 = void 0;
|
|
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: void 0,
|
|
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: void 0,
|
|
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: void 0,
|
|
250
|
+
httpWithHttps: void 0,
|
|
251
|
+
httpWithHttpsPort: void 0
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
254
|
async function startBuild(generators, serverConfig, skipCodeGen = false) {
|
|
@@ -690,7 +690,7 @@ async function getFsRouteBatch(glob, globPattern, config) {
|
|
|
690
690
|
const disallowedNameChars = "~`!@#$%^&*()-+=[]{}\\|:;\"'<>,./";
|
|
691
691
|
const getRpcMetaFromPath = (config, filePath) => {
|
|
692
692
|
if (!config.procedureDir) {
|
|
693
|
-
return
|
|
693
|
+
return void 0;
|
|
694
694
|
}
|
|
695
695
|
const resolvedFilePath = filePath.split("./").join("/");
|
|
696
696
|
const parts = resolvedFilePath.split("/");
|
|
@@ -706,7 +706,7 @@ const getRpcMetaFromPath = (config, filePath) => {
|
|
|
706
706
|
const serviceParts = nameParts.filter((part) => part.trim().length > 0).map((part) => removeDisallowedChars(part, disallowedNameChars));
|
|
707
707
|
const fileNameParts = fileName.split(".");
|
|
708
708
|
if (!fileNameParts.length) {
|
|
709
|
-
return
|
|
709
|
+
return void 0;
|
|
710
710
|
}
|
|
711
711
|
const rpcName = removeDisallowedChars(
|
|
712
712
|
fileNameParts[0],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arri",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -26,26 +26,26 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@joshmossas/listhen": "^1.11.1",
|
|
29
|
-
"c12": "^2.0.
|
|
29
|
+
"c12": "^2.0.2",
|
|
30
30
|
"chokidar": "^4.0.3",
|
|
31
31
|
"citty": "^0.1.6",
|
|
32
32
|
"consola": "^3.4.0",
|
|
33
33
|
"degit": "^2.8.4",
|
|
34
34
|
"enquirer": "^2.4.1",
|
|
35
|
-
"esbuild": "^0.
|
|
35
|
+
"esbuild": "^0.25.0",
|
|
36
36
|
"esbuild-plugin-replace": "^1.4.0",
|
|
37
|
-
"globby": "^14.0
|
|
38
|
-
"h3": "^1.
|
|
37
|
+
"globby": "^14.1.0",
|
|
38
|
+
"h3": "^1.15.0",
|
|
39
39
|
"ofetch": "^1.4.1",
|
|
40
|
-
"pathe": "^2.0.
|
|
41
|
-
"prettier": "^3.
|
|
42
|
-
"@arrirpc/codegen-dart": "0.
|
|
43
|
-
"@arrirpc/codegen-
|
|
44
|
-
"@arrirpc/codegen-
|
|
45
|
-
"@arrirpc/codegen-
|
|
46
|
-
"@arrirpc/codegen-
|
|
47
|
-
"@arrirpc/
|
|
48
|
-
"@arrirpc/
|
|
40
|
+
"pathe": "^2.0.3",
|
|
41
|
+
"prettier": "^3.5.1",
|
|
42
|
+
"@arrirpc/codegen-dart": "0.75.0",
|
|
43
|
+
"@arrirpc/codegen-swift": "0.75.0",
|
|
44
|
+
"@arrirpc/codegen-kotlin": "0.75.0",
|
|
45
|
+
"@arrirpc/codegen-rust": "0.75.0",
|
|
46
|
+
"@arrirpc/codegen-utils": "0.75.0",
|
|
47
|
+
"@arrirpc/codegen-ts": "0.75.0",
|
|
48
|
+
"@arrirpc/schema": "0.75.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/degit": "^2.8.6"
|