@orpc/experimental-effect 2.0.0-beta.30 → 2.0.0-beta.31
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.mjs +3 -3
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { StandardJsonSchemaConverter } from '@orpc/json-schema';
|
|
2
2
|
import { Schema, Function, Effect } from 'effect';
|
|
3
3
|
import { ORPCError } from '@orpc/server';
|
|
4
|
+
import { getOwn } from '@orpc/shared';
|
|
4
5
|
export { h as handlerGen, r as runPromise } from './shared/experimental-effect.C9oJcd5q.mjs';
|
|
5
6
|
export { t as toStandardSchema } from './shared/experimental-effect.YQKompVf.mjs';
|
|
6
|
-
import '@orpc/shared';
|
|
7
7
|
import '@orpc/contract';
|
|
8
8
|
|
|
9
9
|
class EffectSchemaToJsonSchemaConverter {
|
|
@@ -34,8 +34,8 @@ const catchORPCErrorCodes = Function.dual(
|
|
|
34
34
|
2,
|
|
35
35
|
(self, cases) => self.pipe(
|
|
36
36
|
Effect.catchIf(
|
|
37
|
-
(error) => error instanceof ORPCError && typeof cases
|
|
38
|
-
(error) => cases
|
|
37
|
+
(error) => error instanceof ORPCError && typeof getOwn(cases, error.code) === "function",
|
|
38
|
+
(error) => getOwn(cases, error.code)(error)
|
|
39
39
|
)
|
|
40
40
|
)
|
|
41
41
|
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/experimental-effect",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.31",
|
|
5
5
|
"description": "Effect integration for oRPC: build typesafe procedures with Effect",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": [
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"effect": ">=4.0.0-beta.90"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@orpc/contract": "2.0.0-beta.
|
|
55
|
-
"@orpc/
|
|
56
|
-
"@orpc/
|
|
57
|
-
"@orpc/
|
|
54
|
+
"@orpc/contract": "2.0.0-beta.31",
|
|
55
|
+
"@orpc/server": "2.0.0-beta.31",
|
|
56
|
+
"@orpc/json-schema": "2.0.0-beta.31",
|
|
57
|
+
"@orpc/shared": "2.0.0-beta.31"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"effect": "4.0.0-rc.109"
|