@arrirpc/server 0.57.8 → 0.58.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/README.md +3 -1
- package/dist/index.cjs +1 -3
- package/dist/index.mjs +1 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -276,7 +276,9 @@ stream.close()
|
|
|
276
276
|
stream.onClosed(cb: () => any)
|
|
277
277
|
```
|
|
278
278
|
|
|
279
|
-
### Creating Websocket Procedures (Experimental
|
|
279
|
+
### Creating Websocket Procedures (Experimental
|
|
280
|
+
|
|
281
|
+
Very experimental. Do not use in production.
|
|
280
282
|
|
|
281
283
|
```ts
|
|
282
284
|
// Websocket procedures work really well with discriminated unions
|
package/dist/index.cjs
CHANGED
|
@@ -349,9 +349,7 @@ function registerRpc(router, path, procedure, opts) {
|
|
|
349
349
|
);
|
|
350
350
|
}
|
|
351
351
|
const response = await procedure.handler(
|
|
352
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
353
352
|
event.context,
|
|
354
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
355
353
|
event
|
|
356
354
|
);
|
|
357
355
|
event.context.response = response;
|
|
@@ -475,7 +473,7 @@ function getSchemaValidator(rpcName, type, schema$1) {
|
|
|
475
473
|
return schema.validatorFromAdaptedSchema(schema$1);
|
|
476
474
|
}
|
|
477
475
|
return schema.a.compile(schema$1);
|
|
478
|
-
} catch (
|
|
476
|
+
} catch (_) {
|
|
479
477
|
console.error(`Error compiling ${type} validator for ${rpcName}`);
|
|
480
478
|
return void 0;
|
|
481
479
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -348,9 +348,7 @@ function registerRpc(router, path, procedure, opts) {
|
|
|
348
348
|
);
|
|
349
349
|
}
|
|
350
350
|
const response = await procedure.handler(
|
|
351
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
352
351
|
event.context,
|
|
353
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
354
352
|
event
|
|
355
353
|
);
|
|
356
354
|
event.context.response = response;
|
|
@@ -474,7 +472,7 @@ function getSchemaValidator(rpcName, type, schema) {
|
|
|
474
472
|
return validatorFromAdaptedSchema(schema);
|
|
475
473
|
}
|
|
476
474
|
return a.compile(schema);
|
|
477
|
-
} catch (
|
|
475
|
+
} catch (_) {
|
|
478
476
|
console.error(`Error compiling ${type} validator for ${rpcName}`);
|
|
479
477
|
return void 0;
|
|
480
478
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arrirpc/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"scule": "^1.3.0",
|
|
29
29
|
"source-map-support": "^0.5.21",
|
|
30
30
|
"uncrypto": "^0.1.3",
|
|
31
|
-
"@arrirpc/codegen-
|
|
32
|
-
"@arrirpc/
|
|
33
|
-
"
|
|
34
|
-
"@arrirpc/
|
|
35
|
-
"@arrirpc/codegen-
|
|
36
|
-
"
|
|
31
|
+
"@arrirpc/codegen-utils": "0.58.1",
|
|
32
|
+
"@arrirpc/schema": "0.58.1",
|
|
33
|
+
"arri": "0.58.1",
|
|
34
|
+
"@arrirpc/codegen-kotlin": "0.58.1",
|
|
35
|
+
"@arrirpc/codegen-dart": "0.58.1",
|
|
36
|
+
"@arrirpc/codegen-ts": "0.58.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"bun-types": "^1.1.21"
|